CN107959610A - Determine the method and provider edge equipment of virtual network topology - Google Patents
Determine the method and provider edge equipment of virtual network topology Download PDFInfo
- Publication number
- CN107959610A CN107959610A CN201610900261.8A CN201610900261A CN107959610A CN 107959610 A CN107959610 A CN 107959610A CN 201610900261 A CN201610900261 A CN 201610900261A CN 107959610 A CN107959610 A CN 107959610A
- Authority
- CN
- China
- Prior art keywords
- core layer
- virtual core
- candidate
- layer device
- devices
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- 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
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
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
本发明实施例提供确定虚拟网络拓扑结构的方法和运营商边缘设备。该方法包括:第一运营商边缘PE设备获取虚拟专用网VPN中的每个候选虚拟核心层设备的属性信息;该第一PE设备根据该VPN包括的每个该候选虚拟核心层设备的该属性信息,确定该第一PE设备的身份是否为该虚拟核心层设备;该第一PE设备在确定该第一PE设备的身份为该虚拟核心层设备的情况下,确定该第一PE设备包括的虚拟接入层设备;该第一PE设备在确定该第一PE设备的身份不为该虚拟核心层设备的情况下,确定该第一PE设备的身份为虚拟接入层设备并确定该第一PE设备归属的虚拟核心层设备。基于上述技术方案,VPN中的PE设备可以自动建立虚拟网络拓扑结构。
Embodiments of the present invention provide a method for determining a virtual network topology and an operator edge device. The method includes: the first operator edge PE device obtains the attribute information of each candidate virtual core layer device in the virtual private network VPN; the first PE device according to the attribute information of each candidate virtual core layer device included in the VPN information, to determine whether the identity of the first PE device is the virtual core layer device; if the first PE device determines that the identity of the first PE device is the virtual core layer device, determine that the first PE device includes A virtual access layer device; when the first PE device determines that the identity of the first PE device is not the virtual core layer device, determine that the identity of the first PE device is a virtual access layer device and determine that the first PE device The virtual core layer device to which the PE device belongs. Based on the above technical solution, the PE equipment in the VPN can automatically establish a virtual network topology.
Description
技术领域technical field
本发明实施例涉及通信技术领域,并且更具体地,涉及确定虚拟网络拓扑结构的方法和运营商边缘(英文:Provider Edge,简称:PE)设备。Embodiments of the present invention relate to the technical field of communications, and more specifically, to a method for determining a virtual network topology and a provider edge (English: Provider Edge, PE for short) device.
背景技术Background technique
虚拟专用网络(英文:Virtual Private Network,简称:VPN)是在公用网络上建立的专用网络。VPN具有私密性好、灵活性高、可扩展性强等优点。因此,越来越多的企业在公用网络上建立自己的VPN。A virtual private network (English: Virtual Private Network, referred to as: VPN) is a private network established on a public network. VPN has the advantages of good privacy, high flexibility, and strong scalability. Therefore, more and more enterprises establish their own VPNs on public networks.
为了保证路由的可达性,VPN中的每个运营商边缘设备需要保存该VPN中其他PE设备始发的私网路由。In order to ensure the reachability of routes, each carrier edge device in the VPN needs to save the private network routes originating from other PE devices in the VPN.
图1是包括9个属于同一个VPN的网络系统的示意图。如图1所示的网络100中总共包括属于同一个VPN的9个PE设备,PE 101、PE 102、PE 103、PE 104、PE 105、PE 106、PE107、PE 108和PE 109。为了简便描述,图1中并未为示出PE设备之间的连接关系。但是,网络100中的每个PE设备都能够与该网络中的任一个PE设备进行通信。假设网络100中的每个PE设备始发1000条私网路由,则每个PE设备需要保存的路由数量为9000条,这就会大大消耗PE设备的存储资源。Fig. 1 is a schematic diagram including 9 network systems belonging to the same VPN. As shown in FIG. 1 , the network 100 includes a total of 9 PE devices belonging to the same VPN, namely PE 101 , PE 102 , PE 103 , PE 104 , PE 105 , PE 106 , PE 107 , PE 108 and PE 109 . For ease of description, the connection relationship between PE devices is not shown in FIG. 1 . However, each PE device in the network 100 can communicate with any PE device in the network. Assuming that each PE device in the network 100 originates 1000 private network routes, each PE device needs to save 9000 routes, which will greatly consume the storage resources of the PE device.
目前一种用于解决上述技术问题的方式是在VPN中设置一种虚拟网络拓扑结构。该虚拟网络拓扑结构包括虚拟核心层设备和虚拟接入层设备。该VPN中的每个PE设备都被划分为虚拟核心层设备或虚拟接入层设备。该VPN中的每个PE设备的身份仅在该VPN中有效。具体地,一个PE设备可以支持多个VPN。该PE设备在不同的VPN中的身份可以是不同的。例如,该PE设备在VPN 1中的身份可以是虚拟核心层设备,该PE设备的身份在VPN 2中的身份可以是虚拟接入层设备。该虚拟网络拓扑结构中的每个虚拟接入层设备都有一个所属的虚拟核心层设备。该虚拟网络拓扑结构中的每个虚拟核心层设备可以包括一个或多个虚拟接入层设备,也可以不包括虚拟接入层设备。该虚拟网络拓扑结构中的每个虚拟核心层设备会始发一条缺省路由。该虚拟网络拓扑结构中的每个虚拟核心层设备保存该VPN中每个PE设备始发的私网路由以及该每个虚拟核心层设备自己始发的缺省路由。该虚拟网络拓扑结构中的每个虚拟接入层设备仅需要保存该每个虚拟接入层设备始发的私网路由和该每个虚拟接入层设备所属的虚拟核心层设备始发的缺省路由即可。A current way to solve the above technical problems is to set a virtual network topology in the VPN. The virtual network topology structure includes virtual core layer devices and virtual access layer devices. Each PE device in the VPN is classified as a virtual core layer device or a virtual access layer device. The identity of each PE device in the VPN is valid only in the VPN. Specifically, a PE device can support multiple VPNs. The identity of the PE device in different VPNs may be different. For example, the identity of the PE device in VPN 1 may be a virtual core layer device, and the identity of the PE device in VPN 2 may be a virtual access layer device. Each virtual access layer device in the virtual network topology has a virtual core layer device to which it belongs. Each virtual core layer device in the virtual network topology may include one or more virtual access layer devices, or may not include virtual access layer devices. Each virtual core device in the virtual network topology will initiate a default route. Each virtual core layer device in the virtual network topology saves the private network route initiated by each PE device in the VPN and the default route initiated by each virtual core layer device itself. Each virtual access layer device in the virtual network topology only needs to save the private network route originating from each virtual access layer device and the default routing originating from the virtual core layer device to which each virtual access layer device belongs. Provincial routing can be.
还以图1所示的系统100为例。系统100中,PE 103、PE 106和PE 109可以分别被设置为虚拟核心层设备,其他PE设备被设置为虚拟接入层设备。PE 103包括的虚拟接入层设备为PE 101和PE 102,PE 106包括的虚拟接入层设备为PE 104和PE 105,PE 109包括的虚拟接入层设备为PE 107和PE 108。系统100中的每个虚拟接入层设备仅需要保存1001条路由即可,每个虚拟核心层设备保存的路由数目为9001条。该每个虚拟接入层设备仅需要保存1001条路由为该每个虚拟接入层设备始发的1000条路由以及该每个虚拟接入层设备所属的虚拟核心层设备始发的一条缺省路由。例如,PE 101仅需要保存PE 101始发的1000条路由以及PE 103始发的一条缺省路由即可。该每个虚拟核心层设备保存的9001条路由为系统100中每个PE设备始发的1000条路由以及该每个虚拟核心层设备自己始发的一条缺省路由。PE 103需要保存系统100中每个PE设备始发的1000条路由以及每个虚拟核心层设备始发的缺省路由。由此可见,系统100中大部分PE设备需要保存的路由数量都可以得到降低。Also take the system 100 shown in FIG. 1 as an example. In the system 100, PE 103, PE 106, and PE 109 can be set as virtual core layer devices, and other PE devices can be set as virtual access layer devices. The virtual access layer devices included in PE 103 are PE 101 and PE 102 , the virtual access layer devices included in PE 106 are PE 104 and PE 105 , and the virtual access layer devices included in PE 109 are PE 107 and PE 108 . Each virtual access layer device in the system 100 only needs to save 1001 routes, and the number of routes saved by each virtual core layer device is 9001. Each virtual access layer device only needs to save 1001 routes, which are 1000 routes originating from each virtual access layer device and a default route originating from the virtual core layer device to which each virtual access layer device belongs. routing. For example, PE 101 only needs to save 1000 routes originating from PE 101 and one default route originating from PE 103. The 9001 routes saved by each virtual core layer device are 1000 routes originating from each PE device in the system 100 and a default route originating from each virtual core layer device itself. PE 103 needs to save 1000 routes originating from each PE device in system 100 and a default route originating from each virtual core layer device. It can be seen that the number of routes that most PE devices in the system 100 need to save can be reduced.
虽然通过划分虚拟核心层设备和虚拟接入层设备能够降低PE设备的路由存储压力,但是虚拟核心层设备和虚拟接入层设备划分和维护还是采用手动方式进行的。运维人员提前规划好作为虚拟核心层设备的PE设备以及作为虚拟接入层设备的PE设备,并在每个PE设备上进行设置。因此,目前设置虚拟核心层设备和虚拟接入层设备的工作量大,人工成本也比较高。Although the route storage pressure of PE devices can be reduced by dividing virtual core layer devices and virtual access layer devices, the division and maintenance of virtual core layer devices and virtual access layer devices are still performed manually. Operation and maintenance personnel plan PE devices as virtual core layer devices and PE devices as virtual access layer devices in advance, and configure them on each PE device. Therefore, currently, the workload of setting up virtual core layer devices and virtual access layer devices is heavy, and labor costs are relatively high.
发明内容Contents of the invention
本发明实施例提供确定虚拟网络拓扑结构的方法和运营商边缘设备,以使得VPN中的PE设备可以自动建立虚拟网络拓扑结构。Embodiments of the present invention provide a method for determining a virtual network topology and an operator edge device, so that PE devices in a VPN can automatically establish a virtual network topology.
第一方面,本发明实施例提供一种确定虚拟网络拓扑结构的方法,该方法包括:第一运营商边缘PE设备获取虚拟专用网VPN中的每个候选虚拟核心层设备的属性信息,其中,该候选虚拟核心层设备为该VPN中身份能够被确定为虚拟核心层设备的PE设备,该VPN包括至少两个该候选虚拟核心层设备,该第一PE设备为该候选虚拟核心层设备,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽;该第一PE设备根据该VPN包括的每个该候选虚拟核心层设备的该属性信息,确定该第一PE设备的身份是否为该虚拟核心层设备,其中,该VPN包括的该至少两个该候选虚拟核心层设备中共有M个候选虚拟核心层设备的身份被确定为该虚拟核心层设备,M为大于或等于1正整数;该第一PE设备在确定该第一PE设备的身份为该虚拟核心层设备的情况下,确定该第一PE设备包括的虚拟接入层设备;该第一PE设备在确定该第一PE设备的身份不为该虚拟核心层设备的情况下,确定该第一PE设备的身份为虚拟接入层设备并确定该第一PE设备归属的虚拟核心层设备。基于上述技术方案,VPN中的PE设备可以自动建立虚拟网络拓扑结构。这样,无需人工规划该虚拟网络拓扑结构并人工设置每个PE设备的身份,从而减少了设置虚拟网络拓扑结构的工作量。In a first aspect, an embodiment of the present invention provides a method for determining a virtual network topology, the method including: a first operator edge PE device obtains attribute information of each candidate virtual core layer device in a virtual private network VPN, wherein, The candidate virtual core layer device is a PE device whose identity can be determined as a virtual core layer device in the VPN, the VPN includes at least two candidate virtual core layer devices, the first PE device is the candidate virtual core layer device, the The attribute information includes the maximum throughput of the PE device, the forwarding delay of the PE device, the delay of the link corresponding to the PE device, and the bandwidth of the link corresponding to the PE device; the first PE device includes each candidate according to the VPN The attribute information of the virtual core layer device determines whether the identity of the first PE device is the virtual core layer device, wherein there are M candidate virtual core layer devices among the at least two candidate virtual core layer devices included in the VPN The identity of the first PE device is determined as the virtual core layer device, and M is a positive integer greater than or equal to 1; the first PE device determines that the first PE device Included virtual access layer device; when the first PE device determines that the identity of the first PE device is not the virtual core layer device, determine that the identity of the first PE device is a virtual access layer device and determine the The virtual core layer device to which the first PE device belongs. Based on the above technical solution, the PE equipment in the VPN can automatically establish a virtual network topology. In this way, there is no need to manually plan the virtual network topology and manually set the identity of each PE device, thereby reducing the workload of setting the virtual network topology.
可选地,该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备的最大吞吐量大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。Optionally, the maximum throughput of the candidate virtual core device with the smallest maximum throughput among the M candidate virtual core devices is greater than that of the at least two candidate virtual core devices included in the VPN except for the M candidate virtual cores The maximum throughput of any candidate virtual core layer device other than the layer device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput.
可选地,该M个候选虚拟核心层设备中的第二候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量,且该第二候选虚拟核心层设备的转发时延小于第三候选虚拟核心层设备的转发时延,该第二候选虚拟核心层设备为该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第三候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第二候选虚拟核心层设备的最大吞吐量等于该第三候选虚拟核心层设备的最大吞吐量。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。同时,在出现因存在最大吞吐量排名相同的PE设备而导致的无法基于最大吞吐量选举该虚拟核心层设备的情况下,可以选择转发时延最小的PE设备作为该虚拟核心层设备。Optionally, the maximum throughput of the second candidate virtual core layer device among the M candidate virtual core layer devices is not less than the M candidate virtual core layer device among the at least two candidate virtual core layer devices included in the VPN The maximum throughput of any candidate virtual core layer device other than the device, and the forwarding delay of the second candidate virtual core layer device is less than the forwarding delay of the third candidate virtual core layer device, the second candidate virtual core layer device is The candidate virtual core device with the smallest maximum throughput among the M candidate virtual core devices, the third candidate virtual core device belongs to the at least two candidate virtual core devices included in the VPN and does not belong to the M candidates For a virtual core layer device, the maximum throughput of the second candidate virtual core layer device is equal to the maximum throughput of the third candidate virtual core layer device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput. At the same time, in the case that the virtual core layer device cannot be selected based on the maximum throughput due to the existence of PE devices with the same maximum throughput ranking, the PE device with the smallest forwarding delay can be selected as the virtual core layer device.
可选地,该M个候选虚拟核心层设备中的第四候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量,该第四候选虚拟核心层设备的转发时延不大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的转发时延,且该第四候选虚拟核心层设备对应的链路的带宽大于第五候选虚拟核心层设备对应的链路的带宽,其中,该第四候选虚拟核心层设备是该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第五候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第四候选虚拟核心层设备的最大吞吐量等于该第五候选虚拟核心层设备的最大吞吐量,该第四候选虚拟核心层设备的转发时延等于该第五候选虚拟核心层设备的转发时延。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。同时,在出现因存在最大吞吐量排名和转发时延排名相同的PE设备而导致的无法基于最大吞吐量和转发时延选举该虚拟核心层设备的情况下,可以选择链路带宽最大的PE设备作为该虚拟核心层设备。Optionally, the maximum throughput of the fourth candidate virtual core layer device among the M candidate virtual core layer devices is not less than that of the at least two candidate virtual core layer devices included in the VPN except for the M candidate virtual core layer devices The maximum throughput of any candidate virtual core layer device other than the device, and the forwarding delay of the fourth candidate virtual core layer device is not greater than the M candidate virtual core layer devices of the at least two candidate virtual core layer devices included in the VPN. The forwarding delay of any candidate virtual core layer device other than the core layer device, and the bandwidth of the link corresponding to the fourth candidate virtual core layer device is greater than the bandwidth of the link corresponding to the fifth candidate virtual core layer device, wherein the The fourth candidate virtual core layer device is the candidate virtual core layer device with the smallest maximum throughput among the M candidate virtual core layer devices, and the fifth candidate virtual core layer device belongs to the at least two candidate virtual core layer devices included in the VPN device and does not belong to the M candidate virtual core layer devices, the maximum throughput of the fourth candidate virtual core layer device is equal to the maximum throughput of the fifth candidate virtual core layer device, and the forwarding time of the fourth candidate virtual core layer device The delay is equal to the forwarding delay of the fifth candidate virtual core layer device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput. At the same time, in the case that the virtual core layer device cannot be elected based on the maximum throughput and forwarding delay due to the presence of PE devices with the same maximum throughput and forwarding delay rankings, the PE device with the largest link bandwidth can be selected as the virtual core layer device.
可选地,该M个候选虚拟核心层设备中的第六候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备,该第六候选虚拟核心层设备的转发时延不大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的转发时延,该第六候选虚拟核心层设备对应的链路的带宽不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备对应的链路的带宽,且该第六候选虚拟核心层设备对应的链路的时延小于第七候选虚拟核心层设备对应的链路的时延,其中,该第六候选虚拟核心层设备是该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第七候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第六候选虚拟核心层设备的最大吞吐量等于该第七候选虚拟核心层设备的最大吞吐量,该第六候选虚拟核心层设备的转发时延等于该第七候选虚拟核心层设备的转发时延,该第六候选虚拟核心层设备对应的链路的带宽等于该第七候选虚拟核心层设备对应的链路的带宽。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。同时,在出现因存在最大吞吐量排名、转发时延排名、链路带宽排名均相同的PE设备而导致的无法基于最大吞吐量、转发时延和链路带宽选举该虚拟核心层设备的情况下,可以选择链路时延最小的PE设备作为该虚拟核心层设备。Optionally, the maximum throughput of the sixth candidate virtual core layer device among the M candidate virtual core layer devices is not less than that of the at least two candidate virtual core layer devices included in the VPN except for the M candidate virtual core layer devices For any candidate virtual core layer device other than the device, the forwarding delay of the sixth candidate virtual core layer device is not greater than that of the at least two candidate virtual core layer devices included in the VPN except for the M candidate virtual core layer devices The forwarding delay of any candidate virtual core layer device, the bandwidth of the link corresponding to the sixth candidate virtual core layer device is not less than the at least two candidate virtual core layer devices included in the VPN except the M candidate virtual core layer devices The bandwidth of the link corresponding to any candidate virtual core device other than the core device, and the delay of the link corresponding to the sixth candidate virtual core device is less than the delay of the link corresponding to the seventh candidate virtual core device , wherein the sixth candidate virtual core device is the candidate virtual core device with the smallest maximum throughput among the M candidate virtual core devices, and the seventh candidate virtual core device belongs to the at least two virtual core devices included in the VPN. The candidate virtual core layer device does not belong to the M candidate virtual core layer devices, the maximum throughput of the sixth candidate virtual core layer device is equal to the maximum throughput of the seventh candidate virtual core layer device, and the sixth candidate virtual core layer device The forwarding delay of the device is equal to the forwarding delay of the seventh candidate virtual core device, and the bandwidth of the link corresponding to the sixth candidate virtual core device is equal to the bandwidth of the link corresponding to the seventh candidate virtual core device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput. At the same time, in the case that the virtual core layer device cannot be elected based on the maximum throughput, forwarding delay and link bandwidth due to the existence of PE devices with the same maximum throughput ranking, forwarding delay ranking and link bandwidth ranking , the PE device with the smallest link delay can be selected as the virtual core layer device.
可选地,该VPN包括的该至少两个该候选虚拟核心层设备占用的物理资源满足预设条件。基于上述技术方案,可以确保所选举的该虚拟核心层设备有足够的物理资源来处理虚拟接入层设备的请求。Optionally, physical resources occupied by the at least two candidate virtual core layer devices included in the VPN meet a preset condition. Based on the above technical solution, it can be ensured that the selected virtual core layer device has enough physical resources to process the request of the virtual access layer device.
可选地,该方法还包括:该第一PE设备确定需要重新确定该第一PE设备的身份;该第一PE设备获取该VPN包括的每个该候选虚拟核心层设备的属性信息;该第一PE设备根据该VPN包括的每个该候选虚拟核心层设备的属性信息,确定该第一PE的身份是否为该虚拟核心层设备。基于上述技术方案,该VPN中的PE设备可以根据实际情况,选择对建立的虚拟网络拓扑结构进行更新,从而保证该虚拟网络拓扑结构可以适应当前的网络状态。Optionally, the method further includes: the first PE device determines that the identity of the first PE device needs to be re-determined; the first PE device obtains attribute information of each candidate virtual core layer device included in the VPN; the second A PE device determines whether the identity of the first PE is the virtual core layer device according to the attribute information of each candidate virtual core layer device included in the VPN. Based on the above technical solution, the PE device in the VPN can choose to update the established virtual network topology according to the actual situation, so as to ensure that the virtual network topology can adapt to the current network state.
可选地,该第一PE设备确定需要重新确定该第一PE设备的身份,包括:该第一PE设备确定该VPN包括的该至少两个该候选虚拟核心层设备中的至少一个候选虚拟核心层设备的属性信息发生变化;或者该第一PE设备确定该VPN中身份能够被确定为虚拟核心层设备的PE设备发生变化。基于上述技术方案,该VPN中的PE设备可以根据该VPN中影响虚拟核心层设备选举的因子,确定对该虚拟网络拓扑结构进行更新。Optionally, the first PE device determining that the identity of the first PE device needs to be re-determined includes: the first PE device determining at least one candidate virtual core among the at least two candidate virtual core layer devices included in the VPN The attribute information of the layer device changes; or the first PE device determines that the PE device whose identity can be determined as a virtual core layer device in the VPN changes. Based on the above technical solution, the PE device in the VPN can determine to update the topology of the virtual network according to factors in the VPN that affect the selection of virtual core layer devices.
第二方面,本发明实施例提供一种确定虚拟网络拓扑结构的方法,该方法包括:第一PE设备确定该第一PE设备的身份为虚拟接入层设备;该第一PE设备确定VPN中的虚拟核心层设备,其中,该VPN中包括M个该虚拟核心层设备,M为大于或等于1的正整数,该第一PE设备从该M个虚拟核心层设备中确定第一虚拟核心层设备,其中该第一虚拟核心层设备为该第一PE设备归属的该虚拟核心层设备。基于上述技术方案,VPN中的PE设备可以自动建立虚拟网络拓扑结构。这样,无需人工规划该虚拟网络拓扑结构并人工设置每个PE设备的身份,从而减少了设置虚拟网络拓扑结构的工作量。In the second aspect, the embodiment of the present invention provides a method for determining the topology of a virtual network. The method includes: a first PE device determines that the identity of the first PE device is a virtual access layer device; The virtual core layer device, wherein, the VPN includes M virtual core layer devices, M is a positive integer greater than or equal to 1, and the first PE device determines the first virtual core layer from the M virtual core layer devices device, wherein the first virtual core device is the virtual core device to which the first PE device belongs. Based on the above technical solution, the PE equipment in the VPN can automatically establish a virtual network topology. In this way, there is no need to manually plan the virtual network topology and manually set the identity of each PE device, thereby reducing the workload of setting the virtual network topology.
可选地,该第一PE设备确定该第一PE设备的身份为虚拟接入层设备,包括:在该第一PE设备不为候选虚拟核心层设备的情况下,该第一PE设备确定该第一PE设备的身份为该虚拟接入层设备,其中该候选虚拟核心层设备为该VPN中身份能够被确定为该虚拟核心层设备的PE设备。基于上述技术方案,VPN中的PE设备可以自动建立虚拟网络拓扑结构。这样,无需人工规划该虚拟网络拓扑结构并人工设置每个PE设备的身份,从而减少了设置虚拟网络拓扑结构的工作量。Optionally, the first PE device determining that the identity of the first PE device is a virtual access layer device includes: if the first PE device is not a candidate virtual core layer device, the first PE device determines that the The identity of the first PE device is the virtual access layer device, and the candidate virtual core layer device is a PE device whose identity can be determined as the virtual core layer device in the VPN. Based on the above technical solution, the PE equipment in the VPN can automatically establish a virtual network topology. In this way, there is no need to manually plan the virtual network topology and manually set the identity of each PE device, thereby reducing the workload of setting the virtual network topology.
可选地,该第一PE设备确定该第一PE设备的身份为虚拟接入层设备,包括:该第一PE设备获取该VPN中的每个候选虚拟核心层设备的属性信息,其中,该候选虚拟核心层设备为该VPN中身份能够被确定为虚拟核心层设备的PE设备,该VPN包括至少两个该候选虚拟核心层设备,该第一PE设备为该候选虚拟核心层设备,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽;该第一PE设备根据该VPN包括的每个该候选虚拟核心层设备的该属性信息,确定该第一PE设备的身份不为该虚拟核心层设备;该第一PE设备确定该第一PE设备的身份为该虚拟接入层设备。基于上述技术方案,VPN中的PE设备可以自动建立虚拟网络拓扑结构。这样,无需人工规划该虚拟网络拓扑结构并人工设置每个PE设备的身份,从而减少了设置虚拟网络拓扑结构的工作量。Optionally, the first PE device determining that the identity of the first PE device is a virtual access layer device includes: the first PE device obtaining attribute information of each candidate virtual core layer device in the VPN, wherein the A candidate virtual core device is a PE device whose identity can be determined as a virtual core device in the VPN, the VPN includes at least two candidate virtual core devices, the first PE device is the candidate virtual core device, and the attribute The information includes the maximum throughput of the PE device, the forwarding delay of the PE device, the delay of the link corresponding to the PE device, and the bandwidth of the link corresponding to the PE device; The attribute information of the core layer device determines that the identity of the first PE device is not the virtual core layer device; the first PE device determines that the identity of the first PE device is the virtual access layer device. Based on the above technical solution, the PE equipment in the VPN can automatically establish a virtual network topology. In this way, there is no need to manually plan the virtual network topology and manually set the identity of each PE device, thereby reducing the workload of setting the virtual network topology.
可选地,该第一PE设备从该M个虚拟核心层设备中确定第一虚拟核心层设备,包括:该第一PE设备获取该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离;该第一PE设备根据该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离,确定该第一虚拟核心层设备,其中,该第一虚拟核心层设备与该第一PE设备之间的距离小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离。基于上述技术方案,该VPN中的虚拟接入层设备可以选择距离最近的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。Optionally, the first PE device determining the first virtual core layer device from the M virtual core layer devices includes: the first PE device obtaining each virtual core layer device in the M virtual core layer devices and the The distance of the first PE device; the first PE device determines the first virtual core layer device according to the distance between each of the M virtual core layer devices and the first PE device, wherein the first The distance between the virtual core layer device and the first PE device is smaller than the distance between any one of the M virtual core layer devices except the first virtual core layer device and the first PE device. Based on the above technical solution, the virtual access layer device in the VPN may select the closest virtual core layer device as the virtual core layer device to which the virtual access layer device belongs.
可选地,该第一PE设备从该M个虚拟核心层设备中确定第一虚拟核心层设备,包括:该第一PE设备获取该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离以及该M个虚拟核心层设备中每个虚拟核心层设备的属性信息,其中,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽;该第一PE设备根据该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离以及该M个虚拟核心层设备中每个虚拟核心层设备的属性信息从该M个虚拟核心层设备中确定第一虚拟核心层设备。基于上述技术方案,该VPN中的虚拟接入层设备可以在取法根据到虚拟核心层设备的距离确定归属的虚拟核心层设备的情况下,可以基于虚拟核心层设备的属性信息确定该虚拟接入层设备归属的虚拟核心层设备。Optionally, the first PE device determining the first virtual core layer device from the M virtual core layer devices includes: the first PE device obtaining each virtual core layer device in the M virtual core layer devices and the The distance of the first PE device and the attribute information of each virtual core layer device among the M virtual core layer devices, where the attribute information includes the maximum throughput of the PE device, the forwarding delay of the PE device, and the link The delay of the path and the bandwidth of the link corresponding to the PE device; the first PE device is based on the distance between each virtual core layer device in the M virtual core layer devices and the first PE device and the distance between the M virtual core layer devices The attribute information of each virtual core layer device in is determined from the M virtual core layer devices to determine the first virtual core layer device. Based on the above technical solution, the virtual access layer device in the VPN can determine the virtual access layer device based on the attribute information of the virtual core layer device when the method is used to determine the virtual core layer device to which it belongs based on the distance to the virtual core layer device. The virtual core layer device to which the layer device belongs.
可选地,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,且该第一虚拟核心层设备最大吞吐量小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量。基于上述技术方案,该VPN中的虚拟接入层设备可以在取法根据到虚拟核心层设备的距离确定归属的虚拟核心层设备的情况下,可以基于虚拟核心层设备的最大吞吐量确定该虚拟接入层设备归属的虚拟核心层设备。Optionally, the distance between the first virtual core layer device and the first PE device is no greater than the distance from any virtual core layer device except the first virtual core layer device among the M virtual core layer devices to the second virtual core layer device. A distance between PE devices, and the maximum throughput of the first virtual core layer device is smaller than the maximum throughput of any virtual core layer device except the first virtual core layer device among the M virtual core layer devices. Based on the above technical solution, the virtual access layer device in the VPN can determine the virtual access layer device based on the maximum throughput of the virtual core device The virtual core layer device to which the incoming device belongs.
可选地,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,该第一虚拟核心层设备最大吞吐量不小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量,且该第一虚拟核心层设备的转发时延小于该M个虚拟核心层设备中的第二虚拟核心层设备的转发时延,其中,该第二虚拟核心层设备与该第一PE设备之间的距离等于该第一虚拟核心层设备与该第一PE设备之间的距离,该第二虚拟核心层设备的最大吞吐量等于该第一虚拟核心层设备的最大吞吐量。基于上述技术方案,该VPN中的虚拟接入层设备可以在取法根据到虚拟核心层设备的距离和最大吞吐量确定归属的虚拟核心层设备的情况下,可以基于虚拟核心层设备的转发时延确定该虚拟接入层设备归属的虚拟核心层设备。Optionally, the distance between the first virtual core layer device and the first PE device is no greater than the distance from any virtual core layer device except the first virtual core layer device among the M virtual core layer devices to the second virtual core layer device. A distance between PE devices, the maximum throughput of the first virtual core layer device is not less than the maximum throughput of any one of the M virtual core layer devices except the first virtual core layer device, and The forwarding delay of the first virtual core layer device is less than the forwarding delay of the second virtual core layer device among the M virtual core layer devices, wherein the second virtual core layer device and the first PE device The distance is equal to the distance between the first virtual core layer device and the first PE device, and the maximum throughput of the second virtual core layer device is equal to the maximum throughput of the first virtual core layer device. Based on the above technical solution, the virtual access layer device in the VPN can determine the belonging virtual core layer device based on the distance to the virtual core layer device and the maximum throughput, and can be based on the forwarding delay of the virtual core layer device Determine the virtual core layer device to which the virtual access layer device belongs.
可选地,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,该第一虚拟核心层设备最大吞吐量不小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量,该第一虚拟核心层设备的转发时延不大于该M个虚拟核心层设备中的第二虚拟核心层设备的转发时延,且该第一虚拟核心层设备对应的链路的带宽大于该第二虚拟核心层设备对应的链路的带宽,其中,该第二虚拟核心层设备与该第一PE设备之间的距离等于该第一虚拟核心层设备与该第一PE设备之间的距离,该第二虚拟核心层设备的最大吞吐量等于该第一虚拟核心层设备的最大吞吐量,该第二虚拟核心层设备的转发时延等于该第一虚拟核心层设备的转发时延。基于上述技术方案,该VPN中的虚拟接入层设备可以在取法根据到虚拟核心层设备的距离、最大吞吐量和转发时延确定归属的虚拟核心层设备的情况下,可以基于虚拟核心层设备的链路带宽确定该虚拟接入层设备归属的虚拟核心层设备。Optionally, the distance between the first virtual core layer device and the first PE device is no greater than the distance from any virtual core layer device except the first virtual core layer device among the M virtual core layer devices to the second virtual core layer device. A distance between PE devices, the maximum throughput of the first virtual core layer device is not less than the maximum throughput of any one of the M virtual core layer devices except the first virtual core layer device, the The forwarding delay of the first virtual core layer device is not greater than the forwarding delay of the second virtual core layer device among the M virtual core layer devices, and the bandwidth of the link corresponding to the first virtual core layer device is greater than that of the second virtual core layer device The bandwidth of the link corresponding to the virtual core layer device, wherein the distance between the second virtual core layer device and the first PE device is equal to the distance between the first virtual core layer device and the first PE device, the The maximum throughput of the second virtual core device is equal to the maximum throughput of the first virtual core device, and the forwarding delay of the second virtual core device is equal to the forwarding delay of the first virtual core device. Based on the above technical solution, the virtual access layer device in the VPN can be based on the virtual core layer device The link bandwidth of the virtual access layer device determines the virtual core layer device to which the virtual access layer device belongs.
可选地,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,该第一虚拟核心层设备最大吞吐量不小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量,该第一虚拟核心层设备的转发时延不大于该M个虚拟核心层设备中的第二虚拟核心层设备的转发时延,该第一虚拟核心层设备对应的链路的带宽不小于该第二虚拟核心层设备对应的链路的带宽,且该第一虚拟核心层设备对应的链路的时延小于该第二虚拟核心层设备对应的链路的时延,其中,该第二虚拟核心层设备与该第一PE设备之间的距离等于该第一虚拟核心层设备与该第一PE设备之间的距离,该第二虚拟核心层设备的最大吞吐量等于该第一虚拟核心层设备的最大吞吐量,该第二虚拟核心层设备的转发时延等于该第一虚拟核心层设备的转发时延,该第一虚拟核心层设备对应的链路的带宽等于该第二虚拟核心层设备对应的链路的带宽。基于上述技术方案,该VPN中的虚拟接入层设备可以在取法根据到虚拟核心层设备的距离、最大吞吐量、转发时延和链路带宽确定归属的虚拟核心层设备的情况下,可以基于虚拟核心层设备的链路时延确定该虚拟接入层设备归属的虚拟核心层设备。Optionally, the distance between the first virtual core layer device and the first PE device is no greater than the distance from any virtual core layer device except the first virtual core layer device among the M virtual core layer devices to the second virtual core layer device. A distance between PE devices, the maximum throughput of the first virtual core layer device is not less than the maximum throughput of any one of the M virtual core layer devices except the first virtual core layer device, the The forwarding delay of the first virtual core layer device is not greater than the forwarding delay of the second virtual core layer device among the M virtual core layer devices, and the bandwidth of the link corresponding to the first virtual core layer device is not less than that of the second virtual core layer device. The bandwidth of the link corresponding to the virtual core layer device, and the delay of the link corresponding to the first virtual core layer device is less than the delay of the link corresponding to the second virtual core layer device, wherein the second virtual core layer device The distance between the device and the first PE device is equal to the distance between the first virtual core layer device and the first PE device, and the maximum throughput of the second virtual core layer device is equal to that of the first virtual core layer device Maximum throughput, the forwarding delay of the second virtual core layer device is equal to the forwarding delay of the first virtual core layer device, and the bandwidth of the link corresponding to the first virtual core layer device is equal to that of the second virtual core layer device bandwidth of the link. Based on the above technical solution, the virtual access layer device in the VPN can determine the virtual core layer device according to the distance to the virtual core layer device, maximum throughput, forwarding delay and link bandwidth, and can be based on The link delay of the virtual core layer device determines the virtual core layer device to which the virtual access layer device belongs.
第三方面,本发明实施例还提供一种PE设备,该PE设备包括执行第一方面或第一方面的任一种可能的实现方式的单元。In a third aspect, an embodiment of the present invention further provides a PE device, where the PE device includes a unit that executes the first aspect or any possible implementation manner of the first aspect.
第四方面,本发明实施例还提供一种PE设备,该PE设备包括执行第二方面或第二方面的任一种可能的实现方式的单元。In a fourth aspect, an embodiment of the present invention further provides a PE device, where the PE device includes a unit for executing the second aspect or any possible implementation manner of the second aspect.
第五方面,本发明实施例还提供一种PE设备,该PE设备包括处理器、存储器和收发器。存储器用于存储执行第一方面或第一方面的任一种可能的实现方式的指令。处理器用于结合收发器执行存储器中存储的指令。In a fifth aspect, an embodiment of the present invention further provides a PE device, where the PE device includes a processor, a memory, and a transceiver. The memory is used to store instructions for executing the first aspect or any possible implementation manner of the first aspect. The processor is used in conjunction with the transceiver to execute instructions stored in the memory.
第六方面,本发明实施例还提供一种PE设备,该PE设备包括处理器、存储器和收发器。存储器用于存储执行第二方面或第二方面的任一种可能的实现方式的指令。处理器用于结合收发器执行存储器中存储的指令。In a sixth aspect, an embodiment of the present invention further provides a PE device, where the PE device includes a processor, a memory, and a transceiver. The memory is used to store instructions for executing the second aspect or any possible implementation manner of the second aspect. The processor is used in conjunction with the transceiver to execute instructions stored in the memory.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1是包括9个属于同一个VPN的网络系统的示意图。Fig. 1 is a schematic diagram including 9 network systems belonging to the same VPN.
图2是根据本发明实施例提供的确定虚拟网络拓扑结构的方法的示意性流程图。Fig. 2 is a schematic flowchart of a method for determining a virtual network topology according to an embodiment of the present invention.
图3是根据本发明实施例提供的一种PE设备的结构框图。Fig. 3 is a structural block diagram of a PE device provided according to an embodiment of the present invention.
图4是根据本发明实施例提供的另一PE设备的结构框图。Fig. 4 is a structural block diagram of another PE device provided according to an embodiment of the present invention.
图5是根据本发明实施例提供的PE设备的结构框图。Fig. 5 is a structural block diagram of a PE device provided according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
图2是根据本发明实施例提供的确定虚拟网络拓扑结构的方法的示意性流程图。Fig. 2 is a schematic flowchart of a method for determining a virtual network topology according to an embodiment of the present invention.
201,第一PE设备获取VPN中每个候选虚拟核心层设备的属性信息,其中,该每个候选虚拟核心层设备为该VPN中身份能够被确定为虚拟核心层设备的PE设备,该VPN包括至少两个该候选虚拟核心层设备,该第一PE设备为该候选虚拟核心层设备,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽。201. The first PE device obtains attribute information of each candidate virtual core device in the VPN, where each candidate virtual core device is a PE device whose identity can be determined as a virtual core device in the VPN, and the VPN includes At least two of the candidate virtual core layer devices, the first PE device is the candidate virtual core layer device, and the attribute information includes the maximum throughput of the PE device, the forwarding delay of the PE device, and the delay of the link corresponding to the PE device The bandwidth of the link corresponding to the PE device.
具体地,VPN中可以包括多个PE设备。该多个PE设备中的一些PE设备可以参与选举该虚拟核心层设备。该多个PE设备中的另一些设备出于一些原因(例如出于规划策略的考虑等)并不会参与选举该虚拟核心层设备。该VPN中可以参与选举该虚拟核心层设备可以被称为候选虚拟核心层设备。该VPN中的一个PE设备在确定该PE设备不为该候选虚拟核心层设备的情况下,可以确定该PE设备的身份为虚拟接入层设备。或者,换句话说,该VPN中不参与选举虚拟核心层设备的身份都是该虚拟接入层设备。可以理解的是,除非特殊说明,本发明实施例中所称的PE设备都是可以支持虚拟核心层设备和虚拟接入层设备划分的PE设备。Specifically, multiple PE devices may be included in the VPN. Some PE devices among the multiple PE devices may participate in electing the virtual core layer device. Other devices among the plurality of PE devices will not participate in the election of the virtual core layer device for some reasons (for example, due to planning strategy considerations, etc.). The virtual core layer device that can participate in the election in the VPN may be called a candidate virtual core layer device. When a PE device in the VPN determines that the PE device is not the candidate virtual core layer device, it may determine that the identity of the PE device is a virtual access layer device. Or, in other words, the identity of the virtual core layer device in the VPN that does not participate in the election is the virtual access layer device. It can be understood that, unless otherwise specified, the PE devices referred to in the embodiments of the present invention are all PE devices that can support division of virtual core layer devices and virtual access layer devices.
可选的,在一些实施例中,该候选虚拟核心层设备占用的物理资源需要满足预设条件。例如,该候选虚拟核心层设备的中央处理器(英文:Central Processing Unit,简称:CPU)的占用率需要小于一个预设阈值(例如50%)。再如,该候选核心层设备的内存占用率需要小于一个预设阈值(例如50%)。又如,该虚拟核心层设备的CPU和内存的占用率均需要小于一个预设阈值(例如50%)。因此,可以理解的是,如果一个PE设备占用的物理资源不满足该预设条件,则该PE设备不能参与选举该虚拟核心层设备。因此,该PE设备的身份为该虚拟接入层设备。基于上述技术方案,可以确保所选举的该虚拟核心层设备有足够的物理资源来处理虚拟接入层设备的请求。Optionally, in some embodiments, the physical resources occupied by the candidate virtual core device need to meet a preset condition. For example, the usage rate of the central processing unit (English: Central Processing Unit, CPU for short) of the candidate virtual core layer device needs to be less than a preset threshold (for example, 50%). For another example, the memory usage rate of the candidate core layer device needs to be less than a preset threshold (for example, 50%). In another example, both the CPU and memory usage of the virtual core layer device need to be less than a preset threshold (for example, 50%). Therefore, it can be understood that if the physical resources occupied by a PE device do not meet the preset condition, the PE device cannot participate in the election of the virtual core layer device. Therefore, the identity of the PE device is the virtual access layer device. Based on the above technical solution, it can be ensured that the selected virtual core layer device has enough physical resources to process the request of the virtual access layer device.
该VPN中的该多个PE设备中的每个PE设备可以向其他PE设备发送第一指示消息来指示该每个PE设备是否参与选举该虚拟核心层设备。例如,该第一指示消息可以包括第一指示字段,该第一指示字段用于指示该每个PE设备是否参与选举该虚拟核心层设备。Each PE device among the plurality of PE devices in the VPN may send a first indication message to other PE devices to indicate whether each PE device participates in electing the virtual core layer device. For example, the first indication message may include a first indication field, where the first indication field is used to indicate whether each PE device participates in electing the virtual core layer device.
在一些实施例中,网络中可能包括多个VPN,该网络中的每个PE设备仅是在自己所在的VPN中的身份是虚拟核心层设或虚拟接入层设备。该网络中的每个PE设备可以通过广播的方式发送该第一指示消息。因此,每个PE设备可能接收到来自于不同VPN中的PE设备发送的第一指示消息。为了达到区分VPN的目的,该第一指示消息中还可以包括第二指示字段。该第二指示字段用于指示发送该第一指示消息的PE设备所属的VPN。具体地,该第二指示字段可以包括发送该第一指示消息的PE设备所属的VPN的标识。可以理解的是,在一些情况下,一个PE设备可以同时支持多个VPN。在此情况下,该第二指示字段可以包括发送该第一指示消息的PE设备支持的所有VPN的标识。In some embodiments, the network may include multiple VPNs, and each PE device in the network is only a virtual core layer device or a virtual access layer device in its own VPN. Each PE device in the network may send the first indication message in a broadcast manner. Therefore, each PE device may receive first indication messages sent by PE devices in different VPNs. In order to achieve the purpose of distinguishing VPNs, the first indication message may further include a second indication field. The second indication field is used to indicate the VPN to which the PE device sending the first indication message belongs. Specifically, the second indication field may include an identifier of the VPN to which the PE device sending the first indication message belongs. It can be understood that, in some cases, one PE device can support multiple VPNs at the same time. In this case, the second indication field may include identifiers of all VPNs supported by the PE device sending the first indication message.
通过该第一指示消息,该第一PE设备可以确定该第一PE设备所属的VPN中的候选虚拟核心层设备。可以理解的是,该第一PE设备是该VPN中任一个候选虚拟核心层设备。或者,换句话说,该VPN中的每个候选虚拟核心层设备都可以认为是该第一PE设备。该VPN中的每个候选核心层设备都需要指示第一PE设备执行的方法。Through the first indication message, the first PE device can determine a candidate virtual core layer device in the VPN to which the first PE device belongs. It can be understood that the first PE device is any candidate virtual core layer device in the VPN. Or, in other words, each candidate virtual core layer device in the VPN can be considered as the first PE device. Each candidate core layer device in the VPN needs to instruct the first PE device to execute the method.
第一PE设备可以直接确定该第一设备的属性信息。该第一设备可以接收该VPN中除该第一PE设备以外的其他候选虚拟核心层设备中的每个候选核心层设备发送的各自的属性信息。类似的,该第一PE设备也向该VPN中的除该第一PE设备以外的其他候选虚拟核心层设备发送该第一PE设备的属性信息。不同的属性信息可以通过不同的消息发送。The first PE device may directly determine the attribute information of the first device. The first device may receive respective attribute information sent by each candidate core layer device among other candidate virtual core layer devices in the VPN except the first PE device. Similarly, the first PE device also sends the attribute information of the first PE device to other candidate virtual core layer devices in the VPN except the first PE device. Different attribute information can be sent through different messages.
以第一PE设备为例,在一些实施例中,该第一PE设备可以向该VPN中除该第一PE设备以外的其他候选核心层设备中的每个候选核心层设备发送第一属性消息,该第一PE设备发送的第一属性消息可以包括该第一PE设备的最大吞吐量。该第一PE设备可以向该VPN中除该第一PE设备以外的其他候选核心层设备中的每个候选核心层设备发送第二属性消息,该第一PE设备发送的第二属性消息可以包括该第一PE设备的转发时延。PE设备的转发时延是指PE设备从入口接收到消息然后从出口发送出该消息的该PE设备内部的转发时延。该第一PE设备可以向该VPN中除该第一PE设备以外的其他候选核心层设备中的每个候选核心层设备发送第三属性消息,该第一PE设备发送的第三属性消息可以包括该第一PE设备对应的链路的时延。该第一PE设备可以向该VPN中除该第一PE设备以外的其他候选核心层设备中的每个候选核心层设备发送第四属性消息,该第一PE设备发送的第四属性消息可以包括该第一PE设备的对应的链路的带宽。Taking the first PE device as an example, in some embodiments, the first PE device may send the first attribute message to each candidate core layer device in the VPN except the first PE device , the first attribute message sent by the first PE device may include the maximum throughput of the first PE device. The first PE device may send a second attribute message to each candidate core layer device in the VPN except the first PE device, and the second attribute message sent by the first PE device may include The forwarding delay of the first PE device. The forwarding delay of the PE device refers to the internal forwarding delay of the PE device when the PE device receives a message from the ingress and then sends the message out through the egress. The first PE device may send a third attribute message to each candidate core layer device in the VPN except the first PE device, and the third attribute message sent by the first PE device may include The delay of the link corresponding to the first PE device. The first PE device may send a fourth attribute message to each candidate core layer device in the VPN except the first PE device, and the fourth attribute message sent by the first PE device may include The bandwidth of the corresponding link of the first PE device.
在另一些实施例中,该第一PE设备可以通过一个属性消息将该第一PE设备的每个属性信息发送至该VPN中除该第一PE设备以外的其他候选核心层设备。在另一些实施例中,该第一PE设备也可以分别通过两个属性消息将该第一PE设备的属性信息发送至该VPN中除该第一PE设备以外的每个候选虚拟核心层设备。In some other embodiments, the first PE device may send each attribute information of the first PE device to other candidate core layer devices in the VPN except the first PE device through an attribute message. In some other embodiments, the first PE device may also send the attribute information of the first PE device to each candidate virtual core layer device in the VPN except the first PE device through two attribute messages.
该VPN中的每个候选虚拟核心层设备都采用与该第一PE设备类似的方式,将该每个候选虚拟核心层设备的属性信息发送至该VPN中的各个候选虚拟核心层设备。Each candidate virtual core device in the VPN sends the attribute information of each candidate virtual core device to each candidate virtual core device in the VPN in a manner similar to that of the first PE device.
以图1所示的网络100为例。假设PE 101、PE 103、PE 106、PE 107和PE 109为该候选虚拟核心层设备。此外,网络100中除了如图1所示的属于同一个VPN的9个PE设备以外,还可以包括属于其他VPN的至少一个PE设备。以PE 101为例,PE 101可以接收到网络100中每个PE设备发送的第一指示消息。PE 101根据该每个PE设备发送的第一指示消息,可以确定PE 101与网络100中的PE 103、PE 106、PE 107和PE 109属于同一个VPN,且PE 101、PE 103、PE 106、PE 107和PE 109为该VPN中的候选虚拟核心层设备。此外,PE 101还可以根据该每个PE设备发送的第一指示消息,确定出PE 102、PE 104、PE 105和PE 108也属于该VPN且不参与虚拟核心层设备的选举。PE 101可以确定该PE 101的属性信息。PE 101可以分别接收PE 103、PE 106、PE 107和PE 109发送的各自的属性信息。同时,PE 101也可以将PE 101的属性信息发送至PE 103、PE 106、PE 107和PE 109。PE 103、PE 106、PE 107和PE 109也可以采用与PE 101相同的方式确定出属于该VPN的候选虚拟核心层设备,属于该VPN且不参与虚拟核心层设备的选举的PE设备,并获取到该VPN中的每个候选虚拟核心层设备的属性信息。Take the network 100 shown in FIG. 1 as an example. Assume that PE 101, PE 103, PE 106, PE 107, and PE 109 are the candidate virtual core layer devices. In addition, in addition to the nine PE devices belonging to the same VPN as shown in FIG. 1 , the network 100 may also include at least one PE device belonging to other VPNs. Taking PE 101 as an example, PE 101 may receive the first indication message sent by each PE device in network 100 . According to the first indication message sent by each PE device, PE 101 can determine that PE 101 and PE 103, PE 106, PE 107, and PE 109 in network 100 belong to the same VPN, and PE 101, PE 103, PE 106, PE 107 and PE 109 are candidate virtual core layer devices in the VPN. In addition, PE 101 may also determine that PE 102, PE 104, PE 105, and PE 108 also belong to the VPN and do not participate in the election of virtual core layer devices according to the first indication message sent by each PE device. The PE 101 can determine the attribute information of the PE 101 . PE 101 can respectively receive attribute information sent by PE 103, PE 106, PE 107, and PE 109. At the same time, PE 101 may also send the attribute information of PE 101 to PE 103 , PE 106 , PE 107 and PE 109 . PE 103, PE 106, PE 107, and PE 109 can also use the same method as PE 101 to determine candidate virtual core layer devices belonging to the VPN, PE devices that belong to the VPN and do not participate in the election of virtual core layer devices, and obtain To the attribute information of each candidate virtual core device in the VPN.
202,该第一PE设备根据该VPN包括的每个该候选虚拟核心层设备的属性信息,确定该第一PE设备的身份是否为该虚拟核心层设备,其中,该VPN包括的该至少两个候选虚拟核心层设备中共有M个候选虚拟核心层设备的身份被确定为该虚拟核心层设备,M为大于或等于1的正整数。202. The first PE device determines whether the identity of the first PE device is the virtual core layer device according to the attribute information of each candidate virtual core layer device included in the VPN, wherein the at least two virtual core layer devices included in the VPN A total of M candidate virtual core layer devices among the candidate virtual core layer devices are identified as the virtual core layer device, and M is a positive integer greater than or equal to 1.
该第一PE设备可以确定该第一PE设备的身份为该虚拟核心层设备。或者,该第一PE设备可以确定该第一PE设备的身份不为该虚拟核心层设备。The first PE device may determine that the identity of the first PE device is the virtual core layer device. Or, the first PE device may determine that the identity of the first PE device is not the virtual core layer device.
假设该VPN中包括的至少两个候选虚拟核心层设备的数目为N,且该N个候选虚拟核心层设备中有M个候选虚拟核心层设备被选为该虚拟核心层设备,且有K个候选虚拟核心层设备不会被选为该虚拟核心层设备,N为大于或等于2的正整数,K为整数,且N=M+K。Assume that the number of at least two candidate virtual core layer devices included in the VPN is N, and among the N candidate virtual core layer devices, M candidate virtual core layer devices are selected as the virtual core layer device, and there are K The candidate virtual core device will not be selected as the virtual core device, N is a positive integer greater than or equal to 2, K is an integer, and N=M+K.
可选的,在一些实施例中,该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备的最大吞吐量大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量。换句话说,在该实施例中,该K个候选虚拟核心层设备中任一个候选虚拟核心层设备的最大吞吐量都不等于该M个候选虚拟核心层设备中的一个候选虚拟核心层设备的最大吞吐量。Optionally, in some embodiments, among the M candidate virtual core layer devices, the maximum throughput of the candidate virtual core layer device with the smallest maximum throughput is greater than that of the at least two candidate virtual core layer devices included in the VPN except The maximum throughput of any candidate virtual core layer device other than the M candidate virtual core layer devices. In other words, in this embodiment, the maximum throughput of any candidate virtual core device among the K candidate virtual core devices is not equal to that of one candidate virtual core device among the M candidate virtual core devices. Maximum throughput.
可选的,在一些实施例中,该第一PE设备可以将该N个PE设备的最大吞吐量按照从大到小的顺序进行排序。若该第一PE设备的最大吞吐量为前M,则该第一PE设备可以确定该第一PE设备的身份为该虚拟核心层设备。若该第一PE设备的最大吞吐量不为前M,则该第一PE设备的身份不为该虚拟核心层设备。Optionally, in some embodiments, the first PE device may sort the maximum throughputs of the N PE devices in descending order. If the maximum throughput of the first PE device is top M, the first PE device may determine that the identity of the first PE device is the virtual core layer device. If the maximum throughput of the first PE device is not top-M, then the identity of the first PE device is not the virtual core layer device.
可选的,在另一些实施例中,该第一PE设备可以依次比较该第一PE设备的最大吞吐量和与该N个候选虚拟核心层设备中除该第一PE设备以外的每个候选虚拟核心层设备的最大吞吐量。若该第一PE设备确定该N个该候选虚拟核心层设备中有K个候选虚拟核心层设备的最大吞吐量小于该第一PE核心层设备的最大吞吐量,则可以确定该第一PE设备的身份为该虚拟核心层设备。若该第一PE设备确定该N个候选虚拟核心层设备中有M个候选虚拟核心层设备的最大吞吐量大于该第一PE核心层设备的最大吞吐量,则可以确定该第一PE设备的身份不为该虚拟核心层设备。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。Optionally, in some other embodiments, the first PE device may sequentially compare the maximum throughput of the first PE device with each candidate among the N candidate virtual core layer devices except the first PE device. The maximum throughput of the virtual core device. If the first PE device determines that the maximum throughput of K candidate virtual core layer devices among the N candidate virtual core layer devices is less than the maximum throughput of the first PE core layer device, the first PE device can be determined The identity of the virtual core layer device. If the first PE device determines that the maximum throughput of M candidate virtual core layer devices among the N candidate virtual core layer devices is greater than the maximum throughput of the first PE core layer device, then the first PE device can be determined The identity is not for this virtual core device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput.
还以图1所示的网络100为例。假设PE 101、PE 103、PE 106、PE 107和PE 109为该候选虚拟核心层设备,则N取值为5。假设M取值为3。PE 103可以确定出该五个候选虚拟核心层设备中存在至少两个虚拟核心层设备的最大吞吐量小于PE 103的最大吞吐量。在此情况下,PE 103可以确定出该PE 103的身份为该虚拟核心层设备。类似的,PE 106和PE 109也可以确定出有至少两个候选虚拟核心层设备的最大吞吐量小于其最大吞吐量。这样,PE 103、PE 106和PE 109可以确定出其身份为该虚拟核心层设备。PE 101和PE 107可以分别确定出有至少三个候选虚拟核心层设备的最大吞吐量大于其最大吞吐量。在此情况下,PE 101和PE 107可以分别确定出其身份不为该虚拟核心层设备。Also take the network 100 shown in FIG. 1 as an example. Assuming that PE 101 , PE 103 , PE 106 , PE 107 and PE 109 are the candidate virtual core layer devices, then N takes a value of 5. Assume that the value of M is 3. The PE 103 may determine that among the five candidate virtual core layer devices, the maximum throughput of at least two virtual core layer devices is smaller than the maximum throughput of the PE 103 . In this case, PE 103 can determine that the identity of the PE 103 is the virtual core layer device. Similarly, PE 106 and PE 109 may also determine that there are at least two candidate virtual core layer devices whose maximum throughput is smaller than their maximum throughput. In this way, PE 103, PE 106, and PE 109 can determine their identity as the virtual core layer device. PE 101 and PE 107 may respectively determine that there are at least three candidate virtual core layer devices whose maximum throughput is greater than their maximum throughput. In this case, PE 101 and PE 107 can respectively determine that their identity is not the virtual core layer device.
可选的,在一些实施例中,该K个候选虚拟核心层设备中的一个或多个候选虚拟核心层设备的最大吞吐量等于该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备。在此情况下,这些最大吞吐量相同的候选虚拟核心层设备可以比较PE设备的转发时延,根据转发时延确定出的候选虚拟核心层设备的身份。在此情况下,该M个候选虚拟核心层设备中的第二候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量,且该第二候选虚拟核心层设备的转发时延小于第三候选虚拟核心层设备的转发时延,该第二候选虚拟核心层设备为该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第三候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第二候选虚拟核心层设备的最大吞吐量等于该第三候选虚拟核心层设备的最大吞吐量。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。同时,在出现因存在最大吞吐量排名相同的PE设备而导致的无法基于最大吞吐量选举该虚拟核心层设备的情况下,可以选择转发时延最小的PE设备作为该虚拟核心层设备。Optionally, in some embodiments, the maximum throughput of one or more candidate virtual core layer devices among the K candidate virtual core layer devices is equal to the candidate virtual device with the smallest maximum throughput among the M candidate virtual core layer devices. Core layer equipment. In this case, these candidate virtual core layer devices with the same maximum throughput can compare the forwarding delay of the PE device, and determine the identity of the candidate virtual core layer device according to the forwarding delay. In this case, the maximum throughput of the second candidate virtual core layer device among the M candidate virtual core layer devices is not less than that of the at least two candidate virtual core layer devices included in the VPN except for the M candidate virtual core layer devices The maximum throughput of any candidate virtual core layer device other than the second candidate virtual core layer device, and the forwarding delay of the second candidate virtual core layer device is less than the forwarding delay of the third candidate virtual core layer device, the second candidate virtual core layer device is the candidate virtual core device with the smallest maximum throughput among the M candidate virtual core devices, and the third candidate virtual core device belongs to the at least two candidate virtual core devices included in the VPN and does not belong to the M For a candidate virtual core layer device, the maximum throughput of the second candidate virtual core layer device is equal to the maximum throughput of the third candidate virtual core layer device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput. At the same time, in the case that the virtual core layer device cannot be selected based on the maximum throughput due to the existence of PE devices with the same maximum throughput ranking, the PE device with the smallest forwarding delay can be selected as the virtual core layer device.
还以图1所示的系统100为例。假设PE 101、PE 103、PE 106、PE 107和PE 109为该候选虚拟核心层设备,则N取值为5。假设M取值为3。假设PE 109的最大吞吐量最大,PE 103、PE 107和PE106的最大吞吐量相同且均小于PE 109的最大吞吐量并大于PE 101的最大吞吐量。在此情况下,由于PE 109的最大吞吐量最大且大于至少两个虚拟候选核心层设备的最大吞吐量,则PE 109可以确定其身份为该虚拟核心层设备。PE 101的最大吞吐量最小且至少三个虚拟候选核心层设备的最大吞吐量大于PE 101的最大吞吐量,则PE 101可以确定其身份不为该虚拟核心层设备。PE 103可以比较PE 103、PE 106和PE 107的转发时延。若PE103的转发时延小于PE 106和PE 107的转发时延,则PE 103可以确定PE 103的身份为该虚拟核心层设备。类似的,PE 106可以比较PE 106、PE 103和PE 107的转发时延。若PE 106的转发时延小于PE 107的转发时延,但是大于PE 103的转发时延,则PE 106可以确定PE 106的身份为该虚拟核心层设备。PE 107可以比较PE 107、PE 103和PE 106的转发时延。若PE107的转发时延小于PE 106的转发时延和PE 103的转发时延,则PE 107可以确定PE 107的身份不为该虚拟核心层设备。Also take the system 100 shown in FIG. 1 as an example. Assuming that PE 101 , PE 103 , PE 106 , PE 107 and PE 109 are the candidate virtual core layer devices, then N takes a value of 5. Assume that the value of M is 3. Assuming that the maximum throughput of PE 109 is the largest, the maximum throughput of PE 103 , PE 107 and PE 106 are the same and smaller than the maximum throughput of PE 109 and greater than the maximum throughput of PE 101 . In this case, since the maximum throughput of PE 109 is the largest and greater than the maximum throughput of at least two virtual candidate core layer devices, PE 109 can determine its identity as the virtual core layer device. If the maximum throughput of PE 101 is the smallest and the maximum throughput of at least three virtual candidate core layer devices is greater than the maximum throughput of PE 101, then PE 101 may determine that its identity is not the virtual core layer device. PE 103 can compare the forwarding delays of PE 103 , PE 106 and PE 107 . If the forwarding delay of PE 103 is less than the forwarding delay of PE 106 and PE 107, PE 103 can determine that the identity of PE 103 is the virtual core layer device. Similarly, PE 106 can compare the forwarding delays of PE 106, PE 103, and PE 107. If the forwarding delay of PE 106 is less than the forwarding delay of PE 107 but greater than the forwarding delay of PE 103, PE 106 can determine that the identity of PE 106 is the virtual core layer device. PE 107 can compare the forwarding delays of PE 107, PE 103, and PE 106. If the forwarding delay of PE 107 is less than the forwarding delay of PE 106 and the forwarding delay of PE 103, PE 107 can determine that the identity of PE 107 is not the virtual core layer device.
可选的,在一些实施例中,一些候选虚拟核心层设备的最大吞吐量和PE设备的转发时延均相同。这样,即使基于最大吞吐量和PE设备的转发时延也不能确定出身份为虚拟核心层设备的候选虚拟核心层设备。在此情况下,可以通过比较PE设备对应的链路的带宽确定出该虚拟核心层设备。在此情况下,该M个候选虚拟核心层设备中的第四候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量,该第四候选虚拟核心层设备的转发时延不大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的转发时延,且该第四候选虚拟核心层设备对应的链路的带宽大于第五候选虚拟核心层设备对应的链路的带宽,其中,该第四候选虚拟核心层设备是该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第五候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第四候选虚拟核心层设备的最大吞吐量等于该第五候选虚拟核心层设备的最大吞吐量,该第四候选虚拟核心层设备的转发时延等于该第五候选虚拟核心层设备的转发时延。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。同时,在出现因存在最大吞吐量排名和转发时延排名相同的PE设备而导致的无法基于最大吞吐量和转发时延选举该虚拟核心层设备的情况下,可以选择链路带宽最大的PE设备作为该虚拟核心层设备。Optionally, in some embodiments, the maximum throughput of some candidate virtual core layer devices and the forwarding delay of the PE device are the same. In this way, a candidate virtual core device that is a virtual core device cannot be determined even based on the maximum throughput and the forwarding delay of the PE device. In this case, the virtual core layer device can be determined by comparing the bandwidth of the link corresponding to the PE device. In this case, the maximum throughput of the fourth candidate virtual core device among the M candidate virtual core devices is not less than that of the at least two candidate virtual core devices included in the VPN except for the M candidate virtual cores layer device other than the maximum throughput of any candidate virtual core layer device, and the forwarding delay of the fourth candidate virtual core layer device is not greater than the M candidate among the at least two candidate virtual core layer devices included in the VPN The forwarding delay of any candidate virtual core layer device other than the virtual core layer device, and the bandwidth of the link corresponding to the fourth candidate virtual core layer device is greater than the bandwidth of the link corresponding to the fifth candidate virtual core layer device, wherein, The fourth candidate virtual core layer device is the candidate virtual core layer device with the smallest maximum throughput among the M candidate virtual core layer devices, and the fifth candidate virtual core layer device belongs to the at least two candidate virtual core layer devices included in the VPN layer device and does not belong to the M candidate virtual core layer devices, the maximum throughput of the fourth candidate virtual core layer device is equal to the maximum throughput of the fifth candidate virtual core layer device, and the forwarding of the fourth candidate virtual core layer device The delay is equal to the forwarding delay of the fifth candidate virtual core layer device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput. At the same time, in the case that the virtual core layer device cannot be elected based on the maximum throughput and forwarding delay due to the presence of PE devices with the same maximum throughput and forwarding delay rankings, the PE device with the largest link bandwidth can be selected as the virtual core layer device.
还以图1所示的系统100为例。假设PE 101、PE 103、PE 106、PE 107和PE 109为该候选虚拟核心层设备,则N取值为5。假设M取值为3。假设PE 109的最大吞吐量最大,PE 103、PE 107和PE106的最大吞吐量相同且均小于PE 109的最大吞吐量并大于PE 101的最大吞吐量。在此情况下,由于PE 109的最大吞吐量最大且大于至少两个虚拟候选核心层设备的最大吞吐量,则PE 109可以确定其身份为该虚拟核心层设备。PE 101的最大吞吐量最小且至少三个虚拟候选核心层设备的最大吞吐量大于PE 101的最大吞吐量,则PE 101可以确定其身份不为该虚拟核心层设备。PE 103可以比较PE 103、PE 106和PE 107的转发时延。若PE103的转发时延小于PE 106和PE 107的转发时延,则PE 103可以确定PE 103的身份为该虚拟核心层设备。类似的,PE 106可以比较PE 106、PE 103和PE 107的转发时延。若PE 106的转发时延等于PE 107的转发时延,但是大于PE 103的转发时延,则PE 106可以比较PE 106对应的链路的带宽与PE 107对应的链路的带宽。若PE 106对应的链路的带宽大于PE 107对应的链路的带宽,则可以确定PE 106的身份为该虚拟核心层设备。PE 107可以比较PE 107、PE 103和PE 106的转发时延。若PE 107的转发时延等PE 106的转发时延且小于PE 103的转发时延,则可以比较PE 106对应的链路的带宽与PE 107对应的链路的带宽。若PE 106对应的链路的带宽大于PE 107对应的链路的带宽,PE 107可以确定PE 107的身份不为该虚拟核心层设备。Also take the system 100 shown in FIG. 1 as an example. Assuming that PE 101 , PE 103 , PE 106 , PE 107 and PE 109 are the candidate virtual core layer devices, then N takes a value of 5. Assume that the value of M is 3. Assuming that the maximum throughput of PE 109 is the largest, the maximum throughput of PE 103 , PE 107 and PE 106 are the same and smaller than the maximum throughput of PE 109 and greater than the maximum throughput of PE 101 . In this case, since the maximum throughput of PE 109 is the largest and greater than the maximum throughput of at least two virtual candidate core layer devices, PE 109 can determine its identity as the virtual core layer device. If the maximum throughput of PE 101 is the smallest and the maximum throughput of at least three virtual candidate core layer devices is greater than the maximum throughput of PE 101, then PE 101 may determine that its identity is not the virtual core layer device. PE 103 can compare the forwarding delays of PE 103 , PE 106 and PE 107 . If the forwarding delay of PE 103 is less than the forwarding delay of PE 106 and PE 107, PE 103 can determine that the identity of PE 103 is the virtual core layer device. Similarly, PE 106 can compare the forwarding delays of PE 106, PE 103, and PE 107. If the forwarding delay of PE 106 is equal to the forwarding delay of PE 107 but greater than the forwarding delay of PE 103, PE 106 can compare the bandwidth of the link corresponding to PE 106 with the bandwidth of the link corresponding to PE 107. If the bandwidth of the link corresponding to PE 106 is greater than the bandwidth of the link corresponding to PE 107, it can be determined that the identity of PE 106 is the virtual core layer device. PE 107 can compare the forwarding delays of PE 107, PE 103, and PE 106. If the forwarding delay of PE 107 and the forwarding delay of PE 106 are less than the forwarding delay of PE 103, the bandwidth of the link corresponding to PE 106 can be compared with the bandwidth of the link corresponding to PE 107. If the bandwidth of the link corresponding to PE 106 is greater than the bandwidth of the link corresponding to PE 107, PE 107 may determine that the identity of PE 107 is not the virtual core layer device.
可选的,在一些实施例中,一些候选虚拟核心层设备的最大吞吐量、PE备的转发时延以及PE设备对应的链路的带宽均相同。这样,即使基于最大吞吐量、PE备的转发时延以及PE设备对应的链路的带宽也不能确定出身份为虚拟核心层设备的候选虚拟核心层设备。在此情况下,可以通过比较PE设备对应的链路的时延确定出该虚拟核心层设备。在此情况下,该M个候选虚拟核心层设备中的第六候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备,该第六候选虚拟核心层设备的转发时延不大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的转发时延,该第六候选虚拟核心层设备对应的链路的带宽不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备对应的链路的带宽,且该第六候选虚拟核心层设备对应的链路的时延小于第七候选虚拟核心层设备对应的链路的时延,其中,该第六候选虚拟核心层设备是该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第七候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第六候选虚拟核心层设备的最大吞吐量等于该第七候选虚拟核心层设备的最大吞吐量,该第六候选虚拟核心层设备的转发时延等于该第七候选虚拟核心层设备的转发时延,该第六候选虚拟核心层设备对应的链路的带宽等于该第七候选虚拟核心层设备对应的链路的带宽。基于上述技术方案,VPN中的PE设备所选举出的虚拟核心层设备为最大吞吐量排名靠前的一个或多个PE设备。同时,在出现因存在最大吞吐量排名、转发时延排名、链路带宽排名均相同的PE设备而导致的无法基于最大吞吐量、转发时延和链路带宽选举该虚拟核心层设备的情况下,可以选择链路时延最小的PE设备作为该虚拟核心层设备。Optionally, in some embodiments, the maximum throughput of some candidate virtual core layer devices, the forwarding delay of the PE device, and the bandwidth of the link corresponding to the PE device are all the same. In this way, the candidate virtual core layer device whose identity is the virtual core layer device cannot be determined even based on the maximum throughput, the forwarding delay of the PE device, and the bandwidth of the link corresponding to the PE device. In this case, the virtual core layer device can be determined by comparing the delay of the link corresponding to the PE device. In this case, the maximum throughput of the sixth candidate virtual core device among the M candidate virtual core devices is not less than that of the at least two candidate virtual core devices included in the VPN except for the M candidate virtual cores For any candidate virtual core layer device other than the sixth candidate virtual core layer device, the forwarding delay of the sixth candidate virtual core layer device is not greater than the M candidate virtual core layer devices in the at least two candidate virtual core layer devices included in the VPN The forwarding delay of any candidate virtual core layer device other than the sixth candidate virtual core layer device, the bandwidth of the link corresponding to the sixth candidate virtual core layer device is not less than the M candidate among the at least two candidate virtual core layer devices included in the VPN The bandwidth of the link corresponding to any candidate virtual core device other than the virtual core device, and the delay of the link corresponding to the sixth candidate virtual core device is less than the time delay of the link corresponding to the seventh candidate virtual core device extension, wherein the sixth candidate virtual core device is the candidate virtual core device with the smallest maximum throughput among the M candidate virtual core devices, and the seventh candidate virtual core device belongs to the at least two virtual core devices included in the VPN. The candidate virtual core layer device does not belong to the M candidate virtual core layer devices, the maximum throughput of the sixth candidate virtual core layer device is equal to the maximum throughput of the seventh candidate virtual core layer device, and the sixth candidate virtual core layer device The forwarding delay of the layer device is equal to the forwarding delay of the seventh candidate virtual core layer device, and the bandwidth of the link corresponding to the sixth candidate virtual core layer device is equal to the bandwidth of the link corresponding to the seventh candidate virtual core layer device. Based on the above technical solution, the virtual core layer devices elected by the PE devices in the VPN are one or more PE devices with the highest throughput. At the same time, in the case that the virtual core layer device cannot be elected based on the maximum throughput, forwarding delay and link bandwidth due to the existence of PE devices with the same maximum throughput ranking, forwarding delay ranking and link bandwidth ranking , the PE device with the smallest link delay can be selected as the virtual core layer device.
还以图1所示的系统100为例。假设PE 101、PE 103、PE 106、PE 107和PE 109为该候选虚拟核心层设备,则N取值为5。假设M取值为3。假设PE 109的最大吞吐量最大,PE 103、PE 107和PE106的最大吞吐量相同且均小于PE 109的最大吞吐量并大于PE 101的最大吞吐量。在此情况下,由于PE 109的最大吞吐量最大且大于至少两个虚拟候选核心层设备的最大吞吐量,则PE 109可以确定其身份为该虚拟核心层设备。PE 101的最大吞吐量最小且至少三个虚拟候选核心层设备的最大吞吐量大于PE 101的最大吞吐量,则PE 101可以确定其身份不为该虚拟核心层设备。PE 103可以比较PE 103、PE 106和PE 107的转发时延。若PE103的转发时延小于PE 106和PE 107的转发时延,则PE 103可以确定PE 103的身份为该虚拟核心层设备。类似的,PE 106可以比较PE 106、PE 103和PE 107的转发时延。若PE 106的转发时延等于PE 107的转发时延,但是大于PE 103的转发时延,则PE 106可以比较PE 106对应的链路的带宽与PE 107对应的链路的带宽。若PE 106对应的链路的带宽与PE 107对应的链路的带宽也相同,则可以比较PE 106对应的链路的时延与PE 107对应的链路的时延。若PE 106对应的链路的时延小于PE 107对应的链路的时延,则可以确定PE 106的身份为该虚拟核心层设备。PE 107可以比较PE 107、PE 103和PE 106的转发时延。若PE 107的转发时延等PE 106的转发时延且小于PE 103的转发时延,则可以比较PE 106对应的链路的带宽与PE 107对应的链路的带宽。若PE 106对应的链路的带宽与PE 107对应的链路的带宽也相同,则可以比较PE 106对应的链路的时延与PE 107对应的链路的时延。若PE 106对应的链路的时延小于PE 107对应的链路的时延,则PE 107可以确定PE 107的身份不为该虚拟核心层设备。Also take the system 100 shown in FIG. 1 as an example. Assuming that PE 101 , PE 103 , PE 106 , PE 107 and PE 109 are the candidate virtual core layer devices, then N takes a value of 5. Assume that the value of M is 3. Assuming that the maximum throughput of PE 109 is the largest, the maximum throughput of PE 103 , PE 107 and PE 106 are the same and smaller than the maximum throughput of PE 109 and greater than the maximum throughput of PE 101 . In this case, since the maximum throughput of PE 109 is the largest and greater than the maximum throughput of at least two virtual candidate core layer devices, PE 109 can determine its identity as the virtual core layer device. If the maximum throughput of PE 101 is the smallest and the maximum throughput of at least three virtual candidate core layer devices is greater than the maximum throughput of PE 101, then PE 101 may determine that its identity is not the virtual core layer device. PE 103 can compare the forwarding delays of PE 103 , PE 106 and PE 107 . If the forwarding delay of PE 103 is less than the forwarding delay of PE 106 and PE 107, PE 103 can determine that the identity of PE 103 is the virtual core layer device. Similarly, PE 106 can compare the forwarding delays of PE 106, PE 103, and PE 107. If the forwarding delay of PE 106 is equal to the forwarding delay of PE 107 but greater than the forwarding delay of PE 103, PE 106 can compare the bandwidth of the link corresponding to PE 106 with the bandwidth of the link corresponding to PE 107. If the bandwidth of the link corresponding to PE 106 is also the same as the bandwidth of the link corresponding to PE 107, the delay of the link corresponding to PE 106 and the delay of the link corresponding to PE 107 may be compared. If the delay of the link corresponding to PE 106 is smaller than the delay of the link corresponding to PE 107, it can be determined that the identity of PE 106 is the virtual core layer device. PE 107 can compare the forwarding delays of PE 107, PE 103, and PE 106. If the forwarding delay of PE 107 and the forwarding delay of PE 106 are less than the forwarding delay of PE 103, the bandwidth of the link corresponding to PE 106 can be compared with the bandwidth of the link corresponding to PE 107. If the bandwidth of the link corresponding to PE 106 is also the same as the bandwidth of the link corresponding to PE 107, the delay of the link corresponding to PE 106 and the delay of the link corresponding to PE 107 may be compared. If the delay of the link corresponding to PE 106 is smaller than the delay of the link corresponding to PE 107, PE 107 may determine that the identity of PE 107 is not the virtual core layer device.
203,该第一PE设备在确定出该第一PE设备的身份为该虚拟核心层设备的情况下,可以确定该第一PE设备包括的虚拟接入层设备。该第一PE设备在确定该第一PE设备的身份不为该虚拟核心层设备的情况下,可以确定该第一PE设备的身份为该虚拟接入层设备并确定该第一PE设备归属的虚拟核心层设备。203. After determining that the identity of the first PE device is the virtual core layer device, the first PE device may determine a virtual access layer device included in the first PE device. When the first PE device determines that the identity of the first PE device is not the virtual core layer device, it may determine that the identity of the first PE device is the virtual access layer device and determine the address to which the first PE device belongs. Virtual core device.
具体地,该第一PE设备在确定出第一PE设备的身份后,可以向该VPN中的PE设备发送第二指示消息,该第二指示消息用于指示该第一PE设备的身份。Specifically, after determining the identity of the first PE device, the first PE device may send a second indication message to the PE devices in the VPN, where the second indication message is used to indicate the identity of the first PE device.
可选的,在一些实施例中,可以使用一个预设的类型-长度-值(英文:Type-Length-Value)的不同字段来表示该第一指示消息和该第二指示消息。该TLV中还可以携带PE设备所属的VPN。该TLV还可以用于指示该虚拟接入层设备归属的虚拟核心层设备。Optionally, in some embodiments, different fields of a preset Type-Length-Value (English: Type-Length-Value) may be used to represent the first indication message and the second indication message. The TLV may also carry the VPN to which the PE device belongs. The TLV may also be used to indicate the virtual core layer device to which the virtual access layer device belongs.
例如,该预设的TLV中可以包括VPN-ID字段,该VPN-ID字段用于指示该PE设备所属的VPN。该预设的TLV中可以包括Bit-H字段、Bit-S字段、VH-BGP-RID字段和VH-ID sub-TLV字段。若Bit-H=0,Bit-S=1,同时VH-BGP-RID=0,则表示发送该TLV的PE设备支持该虚拟网络拓扑结构的划分,但是该PE设备不参与该虚拟核心层设备的选举。若Bit-H=0,Bit-S=0,同时VH-BGP-RID=0,则表示发送该TLV的PE设备支持该虚拟网络拓扑结构的划分,并且参与该虚拟核心层设备的选举,目前出于待选举状态。若Bit-H=0,Bit-S=1,同时VH-BGP-RID=0,则表示已经选举出该虚拟核心层设备,发送该TLV的PE设备的身份为该虚拟接入层设备。若Bit-H=1,Bit-S=1,则表示错误情况。若Bit-H=1,Bit-S=0,没有VH-IDsub-TLV字段,表示已经选举出该虚拟核心层设备,发送该TLV的PE设备的身份为该虚拟核心层设备。VH-ID sub-TLV字段仅在Bit_S字段等于1的时候才存在。该TLV还可以包括Virtual HUB’s BGP Router ID字段,Virtual HUB’s BGP Router ID字段用于指示发送该TLV的PE设备归属的虚拟核心层设备(该PE设备的身份为该虚拟接入层设备)。For example, the preset TLV may include a VPN-ID field, where the VPN-ID field is used to indicate the VPN to which the PE device belongs. The preset TLV may include a Bit-H field, a Bit-S field, a VH-BGP-RID field and a VH-ID sub-TLV field. If Bit-H=0, Bit-S=1, and VH-BGP-RID=0, it means that the PE device sending the TLV supports the division of the virtual network topology, but the PE device does not participate in the virtual core layer device election. If Bit-H=0, Bit-S=0, and VH-BGP-RID=0 at the same time, it means that the PE device sending the TLV supports the division of the virtual network topology and participates in the election of the virtual core layer device. pending election. If Bit-H=0, Bit-S=1, and VH-BGP-RID=0 at the same time, it means that the virtual core layer device has been elected, and the identity of the PE device sending the TLV is the virtual access layer device. If Bit-H=1, Bit-S=1, it means an error condition. If Bit-H=1, Bit-S=0, and there is no VH-IDsub-TLV field, it means that the virtual core layer device has been elected, and the identity of the PE device sending the TLV is the virtual core layer device. The VH-ID sub-TLV field exists only when the Bit_S field is equal to 1. The TLV may also include a Virtual HUB's BGP Router ID field, and the Virtual HUB's BGP Router ID field is used to indicate the virtual core layer device to which the PE device sending the TLV belongs (the identity of the PE device is the virtual access layer device).
该VPN中身份为虚拟接入层设备的PE设备可以根据该PE设备与每个身份为虚拟核心层设备之间的距离确定出该PE设备归属的虚拟核心层设备。The PE device whose identity is a virtual access layer device in the VPN can determine the virtual core layer device to which the PE device belongs according to the distance between the PE device and each virtual core layer device.
可选的,在一些实施例中,如果该虚拟接入层设备与该M个虚拟核心层设备中每个虚拟核心层设备的距离均不相同,则可以确定出距离最近的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。基于上述技术方案,该VPN中的虚拟接入层设备可以选择距离最近的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。Optionally, in some embodiments, if the distance between the virtual access layer device and each of the M virtual core layer devices is different, it may be determined that the virtual core layer device with the closest distance is The virtual core layer device to which the virtual access layer device belongs. Based on the above technical solution, the virtual access layer device in the VPN may select the closest virtual core layer device as the virtual core layer device to which the virtual access layer device belongs.
可选的,在另一些实施例中,该虚拟接入层设备与至少两个虚拟核心层设备的距离均相同且与该至少两个虚拟核心层设备的距离小于该虚拟接入层设备到其他虚拟核心层设备的距离。在此情况下,该虚拟接入层设备可以根据该至少两个虚拟核心层设备的属性信息确定出该虚拟接入层设备归属的虚拟核心层设备。基于上述技术方案,该VPN中的虚拟接入层设备可以在取法根据到虚拟核心层设备的距离确定归属的虚拟核心层设备的情况下,可以基于虚拟核心层设备的属性信息确定该虚拟接入层设备归属的虚拟核心层设备。Optionally, in some other embodiments, the distance between the virtual access layer device and at least two virtual core layer devices is the same, and the distance between the virtual access layer device and other virtual core layer devices is smaller than the distance between the virtual access layer device and other The distance of the virtual core device. In this case, the virtual access layer device may determine the virtual core layer device to which the virtual access layer device belongs according to the attribute information of the at least two virtual core layer devices. Based on the above technical solution, the virtual access layer device in the VPN can determine the virtual access layer device based on the attribute information of the virtual core layer device when the method is used to determine the virtual core layer device to which it belongs based on the distance to the virtual core layer device. The virtual core layer device to which the layer device belongs.
具体地,在一些实施例中,该虚拟接入层设备可以确定该至少两个虚拟核心层的最大吞吐量,选择最大吞吐量最大的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。在另一些实施例中,该至少两个虚拟核心层设备的最大吞吐量可能相同。在此情况下,该虚拟接入层设备可以选择PE设备的转发时延最小的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。在另一些实施例中,该至少两个虚拟核心层设备的最大吞吐量和转发时延可能均相同。在此情况下,该虚拟接入层设备可以选择PE设备对应的链路的带宽最大的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。在另一些实施例中,该至少两个虚拟核心层设备的最大吞吐量、转发时延以及对应的链路的带宽可能均相同。在此情况下,该虚拟接入层设备可以选择PE设备对应的链路的时延最小的虚拟核心层设备为该虚拟接入层设备归属的虚拟核心层设备。Specifically, in some embodiments, the virtual access layer device may determine the maximum throughput of the at least two virtual core layers, and select the virtual core layer device with the largest maximum throughput as the virtual core to which the virtual access layer device belongs layer device. In some other embodiments, the maximum throughputs of the at least two virtual core layer devices may be the same. In this case, the virtual access layer device may select the virtual core layer device with the smallest forwarding delay of the PE device as the virtual core layer device to which the virtual access layer device belongs. In some other embodiments, the maximum throughput and forwarding delay of the at least two virtual core layer devices may be the same. In this case, the virtual access layer device may select the virtual core layer device with the largest link bandwidth corresponding to the PE device as the virtual core layer device to which the virtual access layer device belongs. In some other embodiments, the maximum throughput, the forwarding delay, and the bandwidth of the corresponding link of the at least two virtual core layer devices may all be the same. In this case, the virtual access layer device may select the virtual core layer device with the smallest link delay corresponding to the PE device as the virtual core layer device to which the virtual access layer device belongs.
身份为该虚拟核心层设备的PE设备的数目M可以是预先设置的。M的设置可以是一个具体的整数值,也可以根据百分比来确定。例如,可以确定一个VPN中X%的设备为该虚拟核心层设备。假设VPN中PE设备的数目与X%的乘积不为整数,则可以向上取整或向下取整来确定虚拟核心层设备的数目。The number M of PE devices whose identity is the virtual core layer device may be preset. The setting of M can be a specific integer value, and can also be determined according to a percentage. For example, it can be determined that X% of devices in a VPN are the virtual core layer devices. Assuming that the product of the number of PE devices in the VPN and X% is not an integer, the number of virtual core layer devices can be determined by rounding up or down.
PE设备对应的链路,是指PE设备与用户侧边缘(英文:Customer Edge,简称:CE)设备之间的链路。如果该PE设备与多个CE设备之间存在链路或者该PE设备与CE设备之间包括多条链路,则该PE设备对应的链路的带宽为多条链路带宽之和,PE设备对应链路的时延为多条链路时延之和。The link corresponding to the PE device refers to the link between the PE device and a customer edge (English: Customer Edge, CE for short) device. If there are links between the PE device and multiple CE devices or there are multiple links between the PE device and the CE device, the bandwidth of the link corresponding to the PE device is the sum of the bandwidths of multiple links, and the PE device The delay of the corresponding link is the sum of the delays of multiple links.
通过图2所示的方法,VPN中的PE设备可以自动建立虚拟网络拓扑结构。这样,无需人工规划该虚拟网络拓扑结构并人工设置每个PE设备的身份,从而减少了设置虚拟网络拓扑结构的工作量。Through the method shown in Figure 2, the PE equipment in the VPN can automatically establish a virtual network topology. In this way, there is no need to manually plan the virtual network topology and manually set the identity of each PE device, thereby reducing the workload of setting the virtual network topology.
在完成了虚拟网络拓扑结构的建立后,虚拟核心层设备可以将该虚拟核心层设备的缺省路由发布至该虚拟核心层设备包括的虚拟接入层设备,并接收该VPN中各个PE设备始发的路由。该虚拟接入层设备可以将该虚拟接入层设备始发的路由发布至该虚拟接入层设备归属的虚拟核心层设备,并接收该虚拟核心层设备发布的缺省路由。该虚拟核心层设备发布缺省路由时使用的出口目标(英文:Export Target,简称:ERT)属性与该虚拟核心层设备包括的虚拟接入层设备的入口目标(英文:Import Target,简称:IRT)属性。该虚拟核心层设备的IRT属性与该VPN中的每个PE设备的ERT属性匹配。该虚拟接入层设备的ERT属性与该虚拟接入层设备所属的虚拟核心层设备的IRT属性匹配。After completing the establishment of the virtual network topology, the virtual core layer device can advertise the default route of the virtual core layer device to the virtual access layer device included in the virtual core layer device, and receive route sent. The virtual access layer device can advertise the route originating from the virtual access layer device to the virtual core layer device to which the virtual access layer device belongs, and receive the default route advertised by the virtual core layer device. The export target (English: Export Target, referred to as: ERT) attribute used when the virtual core layer device publishes the default route and the entry target (English: Import Target, referred to as: IRT) of the virtual access layer device included in the virtual core layer device )Attributes. The IRT attribute of the virtual core layer device matches the ERT attribute of each PE device in the VPN. The ERT attribute of the virtual access layer device matches the IRT attribute of the virtual core layer device to which the virtual access layer device belongs.
进一步,在一些实施例中,在完成了虚拟网络拓扑结构建立后,可能还需要对建立好的虚拟网络拓扑结构进行更新。在确定需要进行更新后,需要重新执行图2所示方法来确定更新后的虚拟网络拓扑结构。换句话说,该第一PE设备需要确定重新确定该第一PE设备的身份。Further, in some embodiments, after the establishment of the virtual network topology is completed, it may be necessary to update the established virtual network topology. After it is determined that an update is required, the method shown in FIG. 2 needs to be re-executed to determine the updated virtual network topology. In other words, the first PE device needs to determine and re-determine the identity of the first PE device.
可选的,在一些实施例中,该第一PE设备确定需要重新确定该第一PE设备的身份,包括:该第一PE设备确定该VPN包括的该至少两个该候选虚拟核心层设备中的至少一个候选虚拟核心层设备的属性信息发生变化;或者该第一PE设备确定该VPN中身份能够被确定为虚拟核心层设备的PE设备发生变化。基于上述技术方案,该VPN中的PE设备可以根据实际情况,选择对建立的虚拟网络拓扑结构进行更新,从而保证该虚拟网络拓扑结构可以适应当前的网络状态。Optionally, in some embodiments, the first PE device determines that the identity of the first PE device needs to be re-determined, including: the first PE device determines that the at least two candidate virtual core layer devices included in the VPN The attribute information of at least one candidate virtual core layer device changes; or the first PE device determines that a PE device whose identity can be determined as a virtual core layer device in the VPN changes. Based on the above technical solution, the PE device in the VPN can choose to update the established virtual network topology according to the actual situation, so as to ensure that the virtual network topology can adapt to the current network state.
还以图1所示的网络100为例。假设PE 101、PE 103、PE 106、PE 107和PE 109为该候选虚拟核心层设备,且PE 103、PE 106和PE 109的身份被确定为该虚拟核心层设备。如果PE 101、PE 103、PE 106、PE 107和PE 109中的一个PE设备的属性信息发生变化,则需要重新确定每个候选虚拟核心层设备的身份。如果PE 101、PE 103、PE 106、PE 107和PE 109中的一个PE设备退出了该VPN或者不再为该候选虚拟核心层设备,则也需要重新确定该每个候选虚拟核心层设备的身份。假设该VPN中增加了一个可以参与选举虚拟核心层设备的PE设备(例如,新增了一个PE设备或者一个PE设备的身份变更为该候选虚拟核心层设备),则也需要重新确定该每个候选虚拟核心层设备的身份。Also take the network 100 shown in FIG. 1 as an example. It is assumed that PE 101, PE 103, PE 106, PE 107, and PE 109 are the candidate virtual core layer devices, and identities of PE 103, PE 106, and PE 109 are determined to be the virtual core layer devices. If the attribute information of one PE device among PE 101 , PE 103 , PE 106 , PE 107 and PE 109 changes, the identity of each candidate virtual core layer device needs to be re-determined. If a PE device among PE 101, PE 103, PE 106, PE 107, and PE 109 exits the VPN or is no longer the candidate virtual core device, it is also necessary to re-determine the identity of each candidate virtual core device . Assuming that a PE device that can participate in the election of a virtual core layer device is added to the VPN (for example, a new PE device is added or the identity of a PE device is changed to the candidate virtual core layer device), it is also necessary to re-determine each The identity of the candidate virtual core device.
例如,PE 103不再支持当前该VPN,则该VPN中的PE设备需要重新选举该VPN中的虚拟核心层设备。For example, if PE 103 no longer supports the current VPN, the PE devices in the VPN need to re-elect the virtual core layer device in the VPN.
再如,PE 102的资源占用情况满足该预设条件从而可以参与该虚拟核心层设备的选举,则该VPN中的PE设备需要重新选举该VPN中的虚拟核心层设备。For another example, if the resource occupation of PE 102 satisfies the preset condition and thus can participate in the election of the virtual core layer device, the PE device in the VPN needs to re-elect the virtual core layer device in the VPN.
又如,PE 103与其包括的虚拟接入层设备(例如PE 101)之间的距离发生变化,那么PE 103对应的链路的时延可能也会发生变化。在此情况下,也需要重新选举该VPN中的虚拟核心层设备。For another example, if the distance between PE 103 and its virtual access layer device (for example, PE 101 ) changes, the delay of the link corresponding to PE 103 may also change. In this case, it is also necessary to re-elect the virtual core layer device in the VPN.
又如,PE 103的属性信息发生变化(例如PE 103的最大吞吐量发生变化),则该VPN中的PE设备需要重新选举该VPN中的虚拟核心层设备。For another example, if the attribute information of PE 103 changes (for example, the maximum throughput of PE 103 changes), the PE equipment in the VPN needs to re-elect the virtual core layer equipment in the VPN.
又如,一个新的PE设备加入到该VPN中,则该VPN中的PE设备需要重新选举该VPN中的虚拟核心层设备。For another example, when a new PE device joins the VPN, the PE device in the VPN needs to re-elect the virtual core layer device in the VPN.
进一步,在一些实施例中,该第一PE设备确定该VPN包括的该至少两个该候选虚拟核心层设备中的至少一个候选虚拟核心层设备的属性信息发生变化,包括:该第一PE设备确定该VPN包括的该至少两个该候选虚拟核心层设备中的至少一个候选虚拟核心层设备的属性信息发生变化的范围超过预设阈值。这样,可以避免一些属性信息频繁发生变化导致的需要重新确定该虚拟网络拓扑结构的情况发生。基于上述技术方案,该VPN中的PE设备可以根据该VPN中影响虚拟核心层设备选举的因子,确定对该虚拟网络拓扑结构进行更新。Further, in some embodiments, the first PE device determines that attribute information of at least one candidate virtual core layer device among the at least two candidate virtual core layer devices included in the VPN changes, including: the first PE device It is determined that a change range of attribute information of at least one candidate virtual core device among the at least two candidate virtual core device included in the VPN exceeds a preset threshold. In this way, it is possible to avoid the need to re-determine the virtual network topology caused by frequent changes of some attribute information. Based on the above technical solution, the PE device in the VPN can determine to update the topology of the virtual network according to factors in the VPN that affect the selection of virtual core layer devices.
还以图1所示的网络100为例。假设该预设阈值为10%,那么若PE 103确定PE 103的最大吞吐量的变化范围小于10%,则确定不需要重新确定PE 103的身份;若PE 103确定PE 103的最大吞吐量的变化范围大于10%,则确定需要重新确定PE 103的身份。可以理解的是,不同的属性信息的预设阈值可以是不同的,也可以是相同的,本发明实施例对此并不限定。Also take the network 100 shown in FIG. 1 as an example. Assuming that the preset threshold is 10%, if PE 103 determines that the variation range of the maximum throughput of PE 103 is less than 10%, then it is determined that the identity of PE 103 does not need to be re-determined; if PE 103 determines that the variation of the maximum throughput of PE 103 If the range is greater than 10%, it is determined that the PE 103 needs to be re-identified. It can be understood that the preset thresholds of different attribute information may be different or the same, which is not limited in this embodiment of the present invention.
图3是根据本发明实施例提供的一种PE设备的结构框图。该PE设备为第一PE设备,该第一PE设备包括获取单元301和处理单元302。Fig. 3 is a structural block diagram of a PE device provided according to an embodiment of the present invention. The PE device is a first PE device, and the first PE device includes an acquiring unit 301 and a processing unit 302 .
获取单元301,用于获取虚拟专用网VPN中的每个候选虚拟核心层设备的属性信息,其中,该候选虚拟核心层设备为该VPN中身份能够被确定为虚拟核心层设备的PE设备,该VPN包括至少两个该候选虚拟核心层设备,该第一PE设备为该候选虚拟核心层设备,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽。The acquiring unit 301 is configured to acquire attribute information of each candidate virtual core layer device in a virtual private network VPN, wherein the candidate virtual core layer device is a PE device whose identity can be determined as a virtual core layer device in the VPN, the The VPN includes at least two candidate virtual core layer devices, the first PE device is the candidate virtual core layer device, and the attribute information includes the maximum throughput of the PE device, the forwarding delay of the PE device, and the link corresponding to the PE device. Latency and bandwidth of the link corresponding to the PE device.
处理单元302,用于根据该VPN包括的每个该候选虚拟核心层设备的该属性信息,确定该第一PE设备的身份是否为该虚拟核心层设备,其中,该VPN包括的该至少两个该候选虚拟核心层设备中共有M个候选虚拟核心层设备的身份被确定为该虚拟核心层设备,M为大于或等于1正整数。The processing unit 302 is configured to determine whether the identity of the first PE device is the virtual core layer device according to the attribute information of each candidate virtual core layer device included in the VPN, wherein the at least two virtual core layer devices included in the VPN A total of M candidate virtual core layer devices among the candidate virtual core layer devices are identified as the virtual core layer device, and M is a positive integer greater than or equal to 1.
处理单元302,还用于在确定该第一PE设备的身份为该虚拟核心层设备的情况下,确定该第一PE设备包括的虚拟接入层设备。The processing unit 302 is further configured to determine a virtual access layer device included in the first PE device when it is determined that the identity of the first PE device is the virtual core layer device.
处理单元302,还用于在确定该第一PE设备的身份不为该虚拟核心层设备的情况下,确定该第一PE设备的身份为虚拟接入层设备并确定该第一PE设备归属的虚拟核心层设备。The processing unit 302 is further configured to determine that the identity of the first PE device is not the virtual core layer device, and determine that the identity of the first PE device is a virtual access layer device and determine the address to which the first PE device belongs. Virtual core device.
可选的,在一些实施例中,该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备的最大吞吐量大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量。Optionally, in some embodiments, among the M candidate virtual core layer devices, the maximum throughput of the candidate virtual core layer device with the smallest maximum throughput is greater than that of the at least two candidate virtual core layer devices included in the VPN except The maximum throughput of any candidate virtual core layer device other than the M candidate virtual core layer devices.
可选的,在另一些实施例中,该M个候选虚拟核心层设备中的第二候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量,且该第二候选虚拟核心层设备的转发时延小于第三候选虚拟核心层设备的转发时延,该第二候选虚拟核心层设备为该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第三候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第二候选虚拟核心层设备的最大吞吐量等于该第三候选虚拟核心层设备的最大吞吐量。Optionally, in some other embodiments, the maximum throughput of the second candidate virtual core layer device among the M candidate virtual core layer devices is not less than that of the at least two candidate virtual core layer devices included in the VPN except The maximum throughput of any candidate virtual core layer device other than the M candidate virtual core layer devices, and the forwarding delay of the second candidate virtual core layer device is less than the forwarding delay of the third candidate virtual core layer device. The second candidate virtual core layer device is the candidate virtual core layer device with the smallest maximum throughput among the M candidate virtual core layer devices, and the third candidate virtual core layer device belongs to the at least two candidate virtual core layer devices included in the VPN. and does not belong to the M candidate virtual core layer devices, the maximum throughput of the second candidate virtual core layer device is equal to the maximum throughput of the third candidate virtual core layer device.
可选的,在另一些实施例中,该M个候选虚拟核心层设备中的第四候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的最大吞吐量,该第四候选虚拟核心层设备的转发时延不大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的转发时延,且该第四候选虚拟核心层设备对应的链路的带宽大于第五候选虚拟核心层设备对应的链路的带宽,其中,该第四候选虚拟核心层设备是该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第五候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第四候选虚拟核心层设备的最大吞吐量等于该第五候选虚拟核心层设备的最大吞吐量,该第四候选虚拟核心层设备的转发时延等于该第五候选虚拟核心层设备的转发时延。Optionally, in some other embodiments, the maximum throughput of the fourth candidate virtual core layer device among the M candidate virtual core layer devices is not less than that of the at least two candidate virtual core layer devices included in the VPN except The maximum throughput of any candidate virtual core layer device other than the M candidate virtual core layer devices, and the forwarding delay of the fourth candidate virtual core layer device is not greater than the at least two candidate virtual core layer devices included in the VPN The forwarding delay of any candidate virtual core layer device except the M candidate virtual core layer devices, and the bandwidth of the link corresponding to the fourth candidate virtual core layer device is greater than that of the link corresponding to the fifth candidate virtual core layer device The bandwidth of the path, wherein, the fourth candidate virtual core layer device is the candidate virtual core layer device with the smallest maximum throughput among the M candidate virtual core layer devices, and the fifth candidate virtual core layer device belongs to the at least Two of the candidate virtual core layer devices do not belong to the M candidate virtual core layer devices, the maximum throughput of the fourth candidate virtual core layer device is equal to the maximum throughput of the fifth candidate virtual core layer device, and the fourth candidate The forwarding delay of the virtual core device is equal to the forwarding delay of the fifth candidate virtual core device.
可选的,在另一些实施例中,该M个候选虚拟核心层设备中的第六候选虚拟核心层设备的最大吞吐量不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备,该第六候选虚拟核心层设备的转发时延不大于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备的转发时延,该第六候选虚拟核心层设备对应的链路的带宽不小于该VPN包括的该至少两个该候选虚拟核心层设备中除该M个候选虚拟核心层设备以外的任一个候选虚拟核心层设备对应的链路的带宽,且该第六候选虚拟核心层设备对应的链路的时延小于第七候选虚拟核心层设备对应的链路的时延,其中,该第六候选虚拟核心层设备是该M个候选虚拟核心层设备中最大吞吐量最小的候选虚拟核心层设备,该第七候选虚拟核心层设备属于该VPN包括的该至少两个该候选虚拟核心层设备且不属于该M个候选虚拟核心层设备,该第六候选虚拟核心层设备的最大吞吐量等于该第七候选虚拟核心层设备的最大吞吐量,该第六候选虚拟核心层设备的转发时延等于该第七候选虚拟核心层设备的转发时延,该第六候选虚拟核心层设备对应的链路的带宽等于该第七候选虚拟核心层设备对应的链路的带宽。Optionally, in some other embodiments, the maximum throughput of the sixth candidate virtual core layer device among the M candidate virtual core layer devices is not less than that of the at least two candidate virtual core layer devices included in the VPN except For any candidate virtual core layer device other than the M candidate virtual core layer devices, the forwarding delay of the sixth candidate virtual core layer device is not greater than that of the at least two candidate virtual core layer devices included in the VPN except the M The forwarding delay of any candidate virtual core layer device other than the six candidate virtual core layer devices, the bandwidth of the link corresponding to the sixth candidate virtual core layer device is not less than the at least two candidate virtual core layer devices included in the VPN The bandwidth of the link corresponding to any candidate virtual core layer device except the M candidate virtual core layer devices, and the delay of the link corresponding to the sixth candidate virtual core layer device is less than the seventh candidate virtual core layer device The delay of the corresponding link, wherein the sixth candidate virtual core device is the candidate virtual core device with the smallest maximum throughput among the M candidate virtual core devices, and the seventh candidate virtual core device belongs to the VPN The at least two candidate virtual core layer devices are included and do not belong to the M candidate virtual core layer devices, the maximum throughput of the sixth candidate virtual core layer device is equal to the maximum throughput of the seventh candidate virtual core layer device, The forwarding delay of the sixth candidate virtual core device is equal to the forwarding delay of the seventh candidate virtual core device, and the bandwidth of the link corresponding to the sixth candidate virtual core device is equal to that of the seventh candidate virtual core device. bandwidth of the link.
进一步,该VPN包括的该至少两个该候选虚拟核心层设备占用的物理资源满足预设条件。Further, the physical resources occupied by the at least two candidate virtual core layer devices included in the VPN meet a preset condition.
进一步,处理单元302,还用于确定重新确定该第一PE设备的身份。该获取单元301,还用于获取该VPN包括的每个该候选虚拟核心层设备的属性信息。处理单元302,还用于根据该VPN包括的每个该候选虚拟核心层设备的属性信息,确定该第一PE的身份是否为该虚拟核心层设备。Further, the processing unit 302 is further configured to determine and re-determine the identity of the first PE device. The acquiring unit 301 is further configured to acquire attribute information of each candidate virtual core layer device included in the VPN. The processing unit 302 is further configured to determine whether the identity of the first PE is the virtual core device according to the attribute information of each candidate virtual core device included in the VPN.
可选的,在一些实施例中,处理单元302,具体用于确定该VPN包括的该至少两个该候选虚拟核心层设备中的至少一个候选虚拟核心层设备的属性信息发生变化;或者确定该VPN中身份能够被确定为虚拟核心层设备的PE设备发生变化。Optionally, in some embodiments, the processing unit 302 is specifically configured to determine that attribute information of at least one candidate virtual core device among the at least two candidate virtual core devices included in the VPN changes; or determine that the The PE device whose identity can be determined as a virtual core layer device in the VPN changes.
图3所示的获取单元301可以通过收发器实现,处理单元302可以通过处理器实现。获取单元301和处理单元302执行的步骤的具体过程和有益效果,可以参考图2所示实施例中的在第一PE设备,在此就不必赘述。The acquiring unit 301 shown in FIG. 3 may be implemented by a transceiver, and the processing unit 302 may be implemented by a processor. For the specific process and beneficial effects of the steps performed by the acquiring unit 301 and the processing unit 302, reference may be made to the first PE device in the embodiment shown in FIG. 2 , and details are not described here.
图4是根据本发明实施例提供的另一PE设备的结构框图。该PE设备为第一PE设备,该PE设备包括第一处理单元401、第二处理单元402和第三处理单元403。Fig. 4 is a structural block diagram of another PE device provided according to an embodiment of the present invention. The PE device is a first PE device, and the PE device includes a first processing unit 401 , a second processing unit 402 and a third processing unit 403 .
第一处理单元401,用于确定该第一PE设备的身份为虚拟接入层设备。The first processing unit 401 is configured to determine that the identity of the first PE device is a virtual access layer device.
第二处理单元402,用于确定VPN中的虚拟核心层设备,其中,该VPN中包括M个该虚拟核心层设备,M为大于或等于1的正整数。The second processing unit 402 is configured to determine virtual core layer devices in the VPN, where the VPN includes M virtual core layer devices, and M is a positive integer greater than or equal to 1.
第三处理单元403,用于从该M个虚拟核心层设备中确定第一虚拟核心层设备,其中该第一虚拟核心层设备为该第一PE设备归属的该虚拟核心层设备。The third processing unit 403 is configured to determine a first virtual core device from the M virtual core devices, where the first virtual core device is the virtual core device to which the first PE device belongs.
可选的,在一些实施例中,第一处理单元401,具体用于在该第一PE设备不为候选虚拟核心层设备的情况下,确定该第一PE设备的身份为该虚拟接入层设备,其中该候选虚拟核心层设备为该VPN中身份能够被确定为该虚拟核心层设备的PE设备。Optionally, in some embodiments, the first processing unit 401 is specifically configured to determine that the identity of the first PE device is the virtual access layer device when the first PE device is not a candidate virtual core layer device. device, wherein the candidate virtual core layer device is a PE device whose identity can be determined as the virtual core layer device in the VPN.
可选的,在另一些实施例中,第一处理单元401,具体用于获取该VPN中的每个候选虚拟核心层设备的属性信息,其中,该候选虚拟核心层设备为该VPN中身份能够被确定为虚拟核心层设备的PE设备,该VPN包括至少两个该候选虚拟核心层设备,该第一PE设备为该候选虚拟核心层设备,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽;根据该VPN包括的每个该候选虚拟核心层设备的该属性信息,确定该第一PE设备的身份不为该虚拟核心层设备;确定该第一PE设备的身份为该虚拟接入层设备。Optionally, in some other embodiments, the first processing unit 401 is specifically configured to acquire attribute information of each candidate virtual core device in the VPN, where the candidate virtual core device is an identity capable A PE device determined as a virtual core layer device, the VPN includes at least two candidate virtual core layer devices, the first PE device is the candidate virtual core layer device, and the attribute information includes the maximum throughput of the PE device, the PE device The forwarding delay of the PE device, the delay of the link corresponding to the PE device, and the bandwidth of the link corresponding to the PE device; according to the attribute information of each candidate virtual core layer device included in the VPN, determine the identity of the first PE device Not the virtual core layer device; determine that the identity of the first PE device is the virtual access layer device.
可选的,在一些实施例中,第三处理单元403,具体用于从该M个虚拟核心层设备中确定第一虚拟核心层设备,包括:该第一PE设备获取该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离;该第一PE设备根据该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离,确定该第一虚拟核心层设备,其中,该第一虚拟核心层设备与该第一PE设备之间的距离小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离。Optionally, in some embodiments, the third processing unit 403 is specifically configured to determine the first virtual core layer device from the M virtual core layer devices, including: obtaining the M virtual core layer devices by the first PE device The distance between each virtual core layer device in the device and the first PE device; the first PE device determines the first PE device according to the distance between each virtual core layer device among the M virtual core layer devices and the first PE device A virtual core layer device, wherein the distance between the first virtual core layer device and the first PE device is smaller than that of any virtual core layer device except the first virtual core layer device among the M virtual core layer devices. The distance between the first PE devices.
可选的,在另一些实施例中,第三处理单元403,具体用于获取该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离以及该M个虚拟核心层设备中每个虚拟核心层设备的属性信息,其中,该属性信息包括PE设备的最大吞吐量、PE设备的转发时延、PE设备对应的链路的时延和PE设备对应的链路的带宽;根据该M个虚拟核心层设备中每个虚拟核心层设备与该第一PE设备的距离以及该M个虚拟核心层设备中每个虚拟核心层设备的属性信息从该M个虚拟核心层设备中确定第一虚拟核心层设备。Optionally, in some other embodiments, the third processing unit 403 is specifically configured to acquire the distance between each virtual core layer device among the M virtual core layer devices and the first PE device and the distance between the M virtual core layer devices The attribute information of each virtual core layer device in the device, where the attribute information includes the maximum throughput of the PE device, the forwarding delay of the PE device, the delay of the link corresponding to the PE device, and the bandwidth of the link corresponding to the PE device ; From the M virtual core layer devices according to the distance between each virtual core layer device in the M virtual core layer devices and the first PE device and the attribute information of each virtual core layer device in the M virtual core layer devices Determine the first virtual core layer device.
可选的,在一些实施例中,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,且该第一虚拟核心层设备最大吞吐量小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量。Optionally, in some embodiments, the distance between the first virtual core layer device and the first PE device is not greater than any virtual core layer device except the first virtual core layer device among the M virtual core layer devices. The distance between the core layer device and the first PE device, and the maximum throughput of the first virtual core layer device is smaller than any virtual core layer device in the M virtual core layer devices except the first virtual core layer device maximum throughput.
可选的,在另一些实施例中,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,该第一虚拟核心层设备最大吞吐量不小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量,且该第一虚拟核心层设备的转发时延小于该M个虚拟核心层设备中的第二虚拟核心层设备的转发时延,其中,该第二虚拟核心层设备与该第一PE设备之间的距离等于该第一虚拟核心层设备与该第一PE设备之间的距离,该第二虚拟核心层设备的最大吞吐量等于该第一虚拟核心层设备的最大吞吐量。Optionally, in some other embodiments, the distance between the first virtual core layer device and the first PE device is no greater than any one of the M virtual core layer devices except the first virtual core layer device The distance between the virtual core layer device and the first PE device, the maximum throughput of the first virtual core layer device is not less than any one of the M virtual core layer devices except the first virtual core layer device The maximum throughput of the device, and the forwarding delay of the first virtual core layer device is less than the forwarding delay of the second virtual core layer device among the M virtual core layer devices, wherein the second virtual core layer device and the The distance between the first PE devices is equal to the distance between the first virtual core layer device and the first PE device, and the maximum throughput of the second virtual core layer device is equal to the maximum throughput of the first virtual core layer device .
可选的,在另一些实施例中,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,该第一虚拟核心层设备最大吞吐量不小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量,该第一虚拟核心层设备的转发时延不大于该M个虚拟核心层设备中的第二虚拟核心层设备的转发时延,且该第一虚拟核心层设备对应的链路的带宽大于该第二虚拟核心层设备对应的链路的带宽,其中,该第二虚拟核心层设备与该第一PE设备之间的距离等于该第一虚拟核心层设备与该第一PE设备之间的距离,该第二虚拟核心层设备的最大吞吐量等于该第一虚拟核心层设备的最大吞吐量,该第二虚拟核心层设备的转发时延等于该第一虚拟核心层设备的转发时延。Optionally, in some other embodiments, the distance between the first virtual core layer device and the first PE device is no greater than any one of the M virtual core layer devices except the first virtual core layer device The distance between the virtual core layer device and the first PE device, the maximum throughput of the first virtual core layer device is not less than any one of the M virtual core layer devices except the first virtual core layer device The maximum throughput of the device, the forwarding delay of the first virtual core layer device is not greater than the forwarding delay of the second virtual core layer device among the M virtual core layer devices, and the chain corresponding to the first virtual core layer device The bandwidth of the path is greater than the bandwidth of the link corresponding to the second virtual core layer device, wherein the distance between the second virtual core layer device and the first PE device is equal to the distance between the first virtual core layer device and the first PE The distance between the devices, the maximum throughput of the second virtual core device is equal to the maximum throughput of the first virtual core device, and the forwarding delay of the second virtual core device is equal to that of the first virtual core device forwarding delay.
可选的,在另一些实施例中,该第一虚拟核心层设备与该第一PE设备之间的距离不大于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备到该第一PE设备之间的距离,该第一虚拟核心层设备最大吞吐量不小于该M个虚拟核心层设备中除该第一虚拟核心层设备以外的任一个虚拟核心层设备的最大吞吐量,该第一虚拟核心层设备的转发时延不大于该M个虚拟核心层设备中的第二虚拟核心层设备的转发时延,该第一虚拟核心层设备对应的链路的带宽不小于该第二虚拟核心层设备对应的链路的带宽,且该第一虚拟核心层设备对应的链路的时延小于该第二虚拟核心层设备对应的链路的时延,其中,该第二虚拟核心层设备与该第一PE设备之间的距离等于该第一虚拟核心层设备与该第一PE设备之间的距离,该第二虚拟核心层设备的最大吞吐量等于该第一虚拟核心层设备的最大吞吐量,该第二虚拟核心层设备的转发时延等于该第一虚拟核心层设备的转发时延,该第一虚拟核心层设备对应的链路的带宽等于该第二虚拟核心层设备对应的链路的带宽。Optionally, in some other embodiments, the distance between the first virtual core layer device and the first PE device is no greater than any one of the M virtual core layer devices except the first virtual core layer device The distance between the virtual core layer device and the first PE device, the maximum throughput of the first virtual core layer device is not less than any one of the M virtual core layer devices except the first virtual core layer device The maximum throughput of the device, the forwarding delay of the first virtual core layer device is not greater than the forwarding delay of the second virtual core layer device among the M virtual core layer devices, the link corresponding to the first virtual core layer device The bandwidth of the link corresponding to the second virtual core layer device is not less than the bandwidth of the link corresponding to the first virtual core layer device, and the delay of the link corresponding to the first virtual core layer device is less than the delay of the link corresponding to the second virtual core layer device, wherein , the distance between the second virtual core layer device and the first PE device is equal to the distance between the first virtual core layer device and the first PE device, and the maximum throughput of the second virtual core layer device is equal to the The maximum throughput of the first virtual core layer device, the forwarding delay of the second virtual core layer device is equal to the forwarding delay of the first virtual core layer device, and the bandwidth of the link corresponding to the first virtual core layer device is equal to the Bandwidth of the link corresponding to the second virtual core layer device.
图4所示的第一处理单元401、第二处理单元402和第三处理单元403可以通过处理器实现。第一处理单元401、第二处理单元402和第三处理单元403执行的步骤的具体过程和有益效果,可以参考图2所示实施例中的身份为虚拟接入层设备的PE设备,在此就不必赘述。The first processing unit 401 , the second processing unit 402 and the third processing unit 403 shown in FIG. 4 may be implemented by a processor. For the specific process and beneficial effect of the steps performed by the first processing unit 401, the second processing unit 402, and the third processing unit 403, reference may be made to the PE device whose identity is a virtual access layer device in the embodiment shown in FIG. There is no need to go into details.
图5是根据本发明实施例提供的PE设备的结构框图。如图5所示的PE设备500包括处理器501、存储器502和收发器503。Fig. 5 is a structural block diagram of a PE device provided according to an embodiment of the present invention. The PE device 500 shown in FIG. 5 includes a processor 501 , a memory 502 and a transceiver 503 .
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read-Only Memory,ROM)、可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的指令,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read-Only Memory, ROM), programmable read-only memory or electrically erasable programmable memory, registers, etc. in the storage medium. The storage medium is located in the memory 502, and the processor 501 reads the instructions in the memory 502, and completes the steps of the above method in combination with its hardware.
可选的,在一些实施例中,存储器502可以存储用于执行如图2所示方法中第一PE设备执行的方法的指令。处理器501可以执行存储器502中存储的指令结合其他硬件(例如收发器503)完成如图2所示方法中第一PE设备执行的步骤,具体工作过程和有益效果可以参见图2所示实施例中第一PE设备的描述。Optionally, in some embodiments, the memory 502 may store instructions for executing the method executed by the first PE device in the methods shown in FIG. 2 . The processor 501 can execute the instructions stored in the memory 502 and combine with other hardware (such as the transceiver 503) to complete the steps performed by the first PE device in the method shown in FIG. 2 . For the specific working process and beneficial effects, please refer to the embodiment shown in FIG. 2 A description of the first PE device in .
可选的,在另一些实施例中,存储器502可以存储用于执行如图2所示方法中身份为虚拟接入层设备的PE设备执行的方法的指令。处理器501可以执行存储器502中存储的指令结合其他硬件(例如收发器503)完成如图2所示方法中身份为虚拟接入层设备的PE设备执行的步骤,具体工作过程和有益效果可以参见图2所示实施例中身份为虚拟接入层设备的PE设备的描述。Optionally, in some other embodiments, the memory 502 may store instructions for executing the method performed by the PE device whose identity is the virtual access layer device in the method shown in FIG. 2 . The processor 501 can execute the instructions stored in the memory 502 in conjunction with other hardware (such as the transceiver 503) to complete the steps performed by the PE device whose identity is a virtual access layer device in the method shown in Figure 2. The specific working process and beneficial effects can be found in In the embodiment shown in FIG. 2, the identity is a description of a PE device whose identity is a virtual access layer device.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内,因此本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention, so the protection scope of the present invention should be based on the protection scope of the claims.
Claims (34)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610900261.8A CN107959610B (en) | 2016-10-14 | 2016-10-14 | Method and operator edge device for determining virtual network topology |
| PCT/CN2017/105889 WO2018068748A1 (en) | 2016-10-14 | 2017-10-12 | Method for determining virtual network topological structure, and provider edge device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610900261.8A CN107959610B (en) | 2016-10-14 | 2016-10-14 | Method and operator edge device for determining virtual network topology |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107959610A true CN107959610A (en) | 2018-04-24 |
| CN107959610B CN107959610B (en) | 2021-06-22 |
Family
ID=61905770
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610900261.8A Active CN107959610B (en) | 2016-10-14 | 2016-10-14 | Method and operator edge device for determining virtual network topology |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107959610B (en) |
| WO (1) | WO2018068748A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111163499A (en) * | 2019-11-29 | 2020-05-15 | 联通物联网有限责任公司 | Access method, device, electronic equipment and storage medium |
| WO2021164573A1 (en) * | 2020-02-20 | 2021-08-26 | 华为技术有限公司 | Designated forwarder election method, and apparatus |
| US20240214340A1 (en) * | 2021-08-27 | 2024-06-27 | Beijing Zitiao Network Technology Co., Ltd. | Methods, apparatuses, systems and storage media for processing a link in a conversation |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7152115B2 (en) * | 2001-07-12 | 2006-12-19 | Nortel Networks Limited | Virtual private networks |
| CN101164265A (en) * | 2005-03-18 | 2008-04-16 | 思科技术公司 | Algorithm used for backup PE selection |
| CN101247267A (en) * | 2008-03-19 | 2008-08-20 | 中兴通讯股份有限公司 | Method and device for automatic discovery of three-layer virtual private network topology in network management system |
| CN102394804A (en) * | 2011-11-02 | 2012-03-28 | 中兴通讯股份有限公司 | VPN system building method and VPN system |
| CN103457820A (en) * | 2013-08-27 | 2013-12-18 | 华为技术有限公司 | Method and device for achieving layering virtual special local area network service |
| CN104144135A (en) * | 2014-07-25 | 2014-11-12 | 电子科技大学 | Resource allocation method and indestructible resource allocation method for multicast virtual network |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1214583C (en) * | 2002-08-23 | 2005-08-10 | 华为技术有限公司 | Three layer virtual private network and its construction method |
| CN101119222B (en) * | 2007-09-13 | 2011-03-23 | 杭州华三通信技术有限公司 | Method, device and system for implementing multicast of HOPE network |
-
2016
- 2016-10-14 CN CN201610900261.8A patent/CN107959610B/en active Active
-
2017
- 2017-10-12 WO PCT/CN2017/105889 patent/WO2018068748A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7152115B2 (en) * | 2001-07-12 | 2006-12-19 | Nortel Networks Limited | Virtual private networks |
| CN101164265A (en) * | 2005-03-18 | 2008-04-16 | 思科技术公司 | Algorithm used for backup PE selection |
| CN101247267A (en) * | 2008-03-19 | 2008-08-20 | 中兴通讯股份有限公司 | Method and device for automatic discovery of three-layer virtual private network topology in network management system |
| CN102394804A (en) * | 2011-11-02 | 2012-03-28 | 中兴通讯股份有限公司 | VPN system building method and VPN system |
| CN103457820A (en) * | 2013-08-27 | 2013-12-18 | 华为技术有限公司 | Method and device for achieving layering virtual special local area network service |
| CN104144135A (en) * | 2014-07-25 | 2014-11-12 | 电子科技大学 | Resource allocation method and indestructible resource allocation method for multicast virtual network |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111163499A (en) * | 2019-11-29 | 2020-05-15 | 联通物联网有限责任公司 | Access method, device, electronic equipment and storage medium |
| CN111163499B (en) * | 2019-11-29 | 2022-01-04 | 联通物联网有限责任公司 | Access method, device, electronic equipment and storage medium |
| WO2021164573A1 (en) * | 2020-02-20 | 2021-08-26 | 华为技术有限公司 | Designated forwarder election method, and apparatus |
| US12273800B2 (en) | 2020-02-20 | 2025-04-08 | Huawei Technologies Co., Ltd. | Designated forwarder election method and device |
| US20240214340A1 (en) * | 2021-08-27 | 2024-06-27 | Beijing Zitiao Network Technology Co., Ltd. | Methods, apparatuses, systems and storage media for processing a link in a conversation |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2018068748A1 (en) | 2018-04-19 |
| CN107959610B (en) | 2021-06-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12047244B2 (en) | Method and system of connecting to a multipath hub in a cluster | |
| US9306838B2 (en) | Method for avoiding a loop in a network | |
| CN112448900A (en) | Data transmission method and device | |
| CN102006184B (en) | Management method, device and network device of stack link | |
| WO2020108587A1 (en) | Data processing method, controller and forwarding device | |
| US10848377B2 (en) | Access point instantiation of a mesh network | |
| CN112311674B (en) | Message sending method, device and storage medium | |
| CN103209132A (en) | Method, device and system for achieving multicast in transparent interconnection of lots of links (TRILL) network | |
| CN105490937B (en) | Ethernet virtual network gateway switching method and service provider edge node device | |
| GB2485026A (en) | Routed Split Multi-Link Trunking (RSMLT) resiliency for Wireless Local Area Network (WLAN) split-plane environments | |
| WO2014180199A1 (en) | Network establishment method and control device | |
| US9521073B2 (en) | Enhanced fine-grained overlay transport virtualization multi-homing using per-network authoritative edge device synchronization | |
| CN107959610A (en) | Determine the method and provider edge equipment of virtual network topology | |
| GB2496943A (en) | Managing IGMP multicast transmission using multiple queriers | |
| CN113572685B (en) | Information reporting method, information processing method, device and equipment | |
| CN113595915B (en) | Method and related equipment for forwarding message | |
| US10680931B2 (en) | Ingress gateway selection for a shortest path bridging network to support inter domain multicast routing | |
| WO2019001260A1 (en) | Method and node for determining transmission path | |
| US20170111206A1 (en) | System for media distribution and rendering on spatially extended wireless networks | |
| EP2879338A1 (en) | Logical channel establishing method and system, edge virtual bridging station, and bridge | |
| CN104348737A (en) | Multicast message transmission method and switches | |
| CN102857441B (en) | End system address is avoided to distribute the method and route-bridge of information protocol message storm | |
| WO2022242661A1 (en) | Communication processing method and related device | |
| WO2023050818A1 (en) | Data forwarding method and system, electronic device, and storage medium | |
| CN109617818B (en) | Message forwarding method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |