WO2008098493A1 - A method for aggregating routes, a method for forwarding messages and an autonomous system border router - Google Patents

A method for aggregating routes, a method for forwarding messages and an autonomous system border router Download PDF

Info

Publication number
WO2008098493A1
WO2008098493A1 PCT/CN2008/070201 CN2008070201W WO2008098493A1 WO 2008098493 A1 WO2008098493 A1 WO 2008098493A1 CN 2008070201 W CN2008070201 W CN 2008070201W WO 2008098493 A1 WO2008098493 A1 WO 2008098493A1
Authority
WO
WIPO (PCT)
Prior art keywords
route
label
aggregated
original
asbr
Prior art date
Application number
PCT/CN2008/070201
Other languages
French (fr)
Chinese (zh)
Inventor
Yong Li
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008098493A1 publication Critical patent/WO2008098493A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Definitions

  • Route aggregation method Route aggregation method, message forwarding method, and autonomous system border router
  • the present invention relates to a routing protocol technology in the field of data communication, and specifically relates to a method for implementing route aggregation in a Border Gateway Protocol/Multiple Protocol Label Switching Virtual Private Network (BGP/MPLS VPN). Packet forwarding method and autonomous system border router.
  • Border Gateway Protocol/Multiple Protocol Label Switching Virtual Private Network BGP/MPLS VPN.
  • BGP/MPLS VPN is a mechanism that allows a service provider (SP) to use its own backbone network to provide customers with virtual private network (VPN) services.
  • BGP/MPLS VPN uses the Border Gateway Protocol (BGP) protocol to advertise VPN routes on the service provider backbone network and forward VPN packets on the service provider backbone network using the MPLS (Multi Protocol Label Switch) protocol.
  • the MPLS protocol is a protocol for forwarding MPLS packets by using labels in MPLS packets.
  • the VPN packets also belong to MPLS packets.
  • FIG. 1 shows the block diagram of the BGP/MPLS VPN network model.
  • the BGP/MPLS VPN includes: a User Edge Device (CE) 101, a Provider Edge (PE) 102, and a Service Provider Router (P, Provider) 103. among them,
  • CE101 is used to connect user sites to the SP backbone network.
  • PE102 is an edge device of the SP backbone network and is directly connected to the CE. In a BGP/MPLS VPN network, all VPN information is processed on the PE.
  • a VPN routing forwarding forwarding instance (VRF, VPN Routing & Forwarding Instance) is stored on the PE.
  • the VPN instance contains routing tables and forwarding tables. The VPN packet arriving at PE102 can be based on the phase. The VPN instance should be forwarded.
  • P103 is the backbone router of the SP backbone network. It only needs to be responsible for forwarding VPN packets and does not need to maintain VPN information.
  • each PE 102 exchanges VPN routes, that is, routes are advertised to ensure the uniformity of routing between PEs. Since a user site can belong to multiple VPNs, the IP address of the user site can belong to multiple VPNs. Therefore, the VPN route uses the route distinguisher (RD, Route Distinguisher) to indicate which VPN the VPN route comes from.
  • the IP address in the VPN route consists of the RD and IPv4 address prefixes/masks, so the VPN route is also called VPN-IPv4 route.
  • a PE When a PE distributes a VPN-IPv4 route using BGP, it uses itself as the next hop node and assigns and distributes a label for the VPN-IPv4 route. In the case that the current number of VPNs and the number of routes to the user sites of each VPN are large, the number of routes received and saved by the PE will be very large. To solve this problem, VPN-IPv4 routes are currently aggregated on the PE. Route aggregation is a method of merging multiple original routes into one aggregated route and using a single aggregate address to represent a series of network numbers. The route aggregation method on the PE can reduce the number of routes sent by PEs to other PEs, thus reducing the amount of route storage on each PE.
  • An autonomous system is a group of routers and networks under the control of a regulatory agency.
  • the VPN spans multiple autonomous systems, and an inter-domain VPN is formed.
  • PEs belonging to different autonomous systems can exchange VPN routes through the Autonomous System Border Router (ASBR) of their respective ASs.
  • ASBR Autonomous System Border Router
  • the embodiment of the present invention provides a route aggregation method, where the route aggregation method is applied to a network including at least one ASBR, and the ASBR is connected to at least one PE, and the method includes:
  • the ASBR receives multiple original routes from the PE, aggregates the original routes of the same subnet with the same route distinguisher (RD), generates an aggregated route, assigns a label to each aggregated route, and adds the label to the aggregated route.
  • the label generates an aggregated route carrying the label.
  • the embodiment of the present invention provides a packet forwarding method, where the packet forwarding method is applied to a network including at least one ASBR, and the ASBR is connected to at least one PE, and the method includes:
  • the first ASBR receives at least one original route from the at least one PE, aggregates the original routes that belong to the same subnet, and generates an aggregated route, and assigns a label to each aggregated route, and joins the aggregated route.
  • the label generates an aggregated route carrying the label;
  • the first ASBR receives the The packet carrying the packet sent by the second ASBR obtains the corresponding original route from the corresponding relationship according to the label carried in the packet; and obtains the packet forwarding route from the obtained original route; The forwarding route forwards the packet.
  • the embodiment of the invention further provides an autonomous system border router, which can reduce the received and saved routes and reduce the burden of routing and forwarding.
  • the ASBR is applied to a network including multiple ASBRs, and each ASBR is connected to multiple PEs, where the ASBR includes a route aggregation processing unit and a label allocation unit.
  • the route aggregation processing unit is configured to receive a plurality of original routes from multiple PEs, and aggregate the original routes that belong to the same subnet, and generate an aggregation route, and send the aggregation route to the label distribution unit.
  • the label allocating unit is configured to allocate a label for each aggregated route received from the route aggregation processing unit, and add the label to the aggregated route to generate an aggregated route carrying the label.
  • the route aggregation method, the packet forwarding method, and the autonomous system border router perform aggregation processing and label distribution on the ASBR on the VPN-IPv4 route received from the PE.
  • the ASBR advertises only the aggregated routes to the ASBRs of other ASs.
  • the ASBRs of other autonomous systems only advertise the aggregated routes to the ASBRs of the local AS. Therefore, the route received and saved by the ASBR is effectively reduced, the burden of routing and forwarding is reduced, and the problem of insufficient routing capacity of the ASBR is solved.
  • the reduction of routes reduces the number of labels allocated for routes, which greatly saves label resources.
  • Figure 1 shows the block diagram of the BGP/MPLS VPN network model.
  • FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for a route aggregation method according to an embodiment of the present invention.
  • FIG. 4 is a flow chart of a method for implementing packet forwarding by using the route aggregation method of FIG. 3.
  • FIG. 5 is a flow chart of another embodiment of implementing packet forwarding by using the route aggregation method of FIG. 3.
  • FIG. 6 is a flow chart showing an example of the message forwarding method of FIG. 5.
  • FIG. 7 is a schematic structural diagram of a first embodiment of an autonomous system border router according to the present invention.
  • FIG. 8 is a schematic structural diagram of a second embodiment of an autonomous system border router according to the present invention. Mode for carrying out the invention
  • FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present invention.
  • the block diagram of the cross-domain BGP/MPLS VPN network model is shown in Figure 2.
  • the AS (Autonomous System) 100 and AS200 are two autonomous systems.
  • PE-1, PE-2, and ASBR-1 belong to AS100.
  • PE-3, PE-4 and ASBR-2 belong to AS200.
  • PEs that belong to different ASs need to be routed through the ASBR.
  • the VPN-IPv4 route carrying the label is sent to PE-3 through ASBR-1 and ASBR-2. Both ASBR-1 and ASBR-2 store and re-specify the processing of the next hop node and label in the received VPN-IPv4 route.
  • ASBR-1 and ASBR-2 store and re-specify the processing of the next hop node and label in the received VPN-IPv4 route.
  • the ASBR aggregates the VPN-IPv4 routes sent by all the PEs in the AS, and the ASBR is responsible for receiving and storing the VPN-IPv4 routes sent by all the PEs of the AS. It is advertised to the ASBRs of other ASs. It also receives and saves the VPN-IPv4 routes advertised by the ASBRs of other ASs and advertises them to the PEs of the AS.
  • the ASBR has high storage and forwarding capacity.
  • the existing aggregation of routes on the PE can only reduce the number of VPN-IPv4 routes advertised by each PE to the ASBR to a certain extent.
  • the number of VPN-IPv4 routes that need to be stored and processed on the ASBR is still very large when the number of PEs in the entire network is large and the number of VPNs and the number of user sites per VPN are large.
  • the ASBR will have problems such as insufficient routing capacity, insufficient label resources, and excessive forwarding burden.
  • the PE In a cross-domain VPN, the PE only maintains the routes of the VPNs connected to it. Therefore, the VPN-IPv4 routes received by the ASBR from different PEs may come from the same VPN and still belong to the same subnet, so there is a possibility of further aggregation. But the prior art is not on the ASBR.
  • the VPN-IPv4 routes that may also be aggregated are aggregated, but all received VPN-IPv4 routes are advertised to other autonomous systems.
  • FIG. 3 is a flowchart of a method for a route aggregation method according to an embodiment of the present invention. The method specifically includes the following two steps:
  • Step 301 The ASBR receives multiple original routes from multiple PEs, and aggregates the original routes that belong to the same subnet and generates an aggregated route.
  • route aggregation is a method in which multiple VPN-IPv4 routes with the same RD and IPv4 address prefix/mask belong to the same subnet, that is, original routes, are aggregated and merged into one aggregation route.
  • Route aggregation can use the aggregation algorithm defined by BGP.
  • the VPN-IPv4 routes sent by the PE include attribute information such as RD, IPv4 address prefix/mask, route target (RT, Route Target), next hop node, and outgoing label. Therefore, the aggregated route needs to inherit the attribute information of the original route.
  • the RD of the aggregated route, the IPv4 address before the mask, and the RT are determined according to the original route.
  • the next hop of the aggregated route is the ASBR itself.
  • the outgoing label of the aggregated route is specified by the ASBR.
  • the aggregation process includes: If the IPv4 address prefix/mask of the original route belongs to the same subnet, the ASBR will pre-address multiple IPv4 addresses belonging to the same subnet according to the RD and IPv4 address prefix/mask of the original route. And merging into a short masked IPv4 address before the 3/4/mask, and determining the merged IPv4 address prefix/mask as the pre-mask of the IPv4 address of the aggregated route; determining the RD of the original route as the RD of the aggregated route; Determine the RT of the aggregated route based on the RT of the original route.
  • Step 302 The ASBR allocates an inbound label to each of the aggregated routes, and adds the inbound label to the aggregated route to generate an aggregated route that carries the inbound label.
  • the inbound label assigned to the aggregated route in this step is the outgoing label specified by the ASBR for the aggregated route.
  • the label carried in the original route received from the PE is the outgoing label
  • the label allocated for the aggregated route is the incoming label.
  • the ASBR advertises the advertised route
  • the ASBR that receives the advertised route carries the label. Therefore, the following describes the labeling of the aggregated route, the outgoing label carried by the aggregated route, and the incoming label carried by the aggregated route.
  • FIG. 4 is a flow chart of a method for implementing packet forwarding by using the route aggregation method of FIG. 3. Referring to FIG. 4, the method specifically includes the following steps:
  • Step 401 The ASBR receives multiple original routes from multiple PEs, and aggregates original routes that belong to the same subnet and generates aggregated routes.
  • Step 402 Assign an inbound label to each aggregation route, and add the ingress label to the aggregation route to generate an aggregation route carrying the label.
  • Step 403 Store the correspondence between the inbound label allocated to the aggregated route and the original route corresponding to the aggregated route.
  • Step 404 Publish the aggregated route carrying the inbound label allocated to the ASBR of the other autonomous system.
  • Step 405 The ASBR obtains the original route corresponding to the carried label of the VPN packet according to the correspondence between the inbound label and the original route that is stored in the ASBR, when the ASBR receives the VPN packet carrying the label from the ASBR of the other autonomous system. Obtain the VPN in the original route to forward the route, and then forward the VPN message.
  • FIG. 5 is a flowchart of another method for implementing packet forwarding by using the route aggregation method of FIG. 3. Referring to FIG. 5, the method specifically includes the following steps:
  • Step 500 Create a Forward Information Base (FIB) table, also called an RD FIB table, for each RD routing table in the ASBR.
  • FIB Forward Information Base
  • This step is performed once during ASBR configuration. After the RD FIB table is created, it is not necessary to perform the route aggregation every time.
  • the RD routing table is used to store the VPN-IPv4 routes received by the ASBR and the aggregated routes after the ASBR is aggregated. All VPN-IPv4 routes are stored in the corresponding RD routing table according to the RD.
  • the fields in the RD routing table include RD, IPv4 address/mask, next hop node, RT, outgoing label, and so on.
  • Each RD FIB table corresponds to an RD routing table. It can also be said that each RD FIB table corresponds to a different RD. Since an aggregated route corresponds to multiple original routes, these original routes are called original routes suppressed by route aggregation.
  • the RD FIB stores the original route that is suppressed by aggregation.
  • the fields in the RD FIB table include RD, IPv4 address/mask, next hop node, RT, outgoing label, and so on.
  • Step 501 The ASBR receives the original route sent by multiple PEs, and performs aggregation processing on the same original route of the RD.
  • the original route received by the ASBR can be the route that is aggregated by the PE.
  • the ASBR will receive the original routes from multiple PEs, depending on the route specifier RD.
  • the ASBRs After receiving the original routes of multiple PEs, the ASBRs are respectively stored in the corresponding RD routing table according to the different routing specifiers RD, and the original routes received from the PEs in the RD routing tables respectively.
  • the aggregation process is performed, and the aggregation route is stored in the corresponding RD routing table.
  • the purpose of aggregating the original routes in each RD routing table is also to aggregate the same original routes of the RD.
  • Aggregated routes are also VPN-IPv4 routes. After the aggregation process is performed in this step, the RD, IPv4 address prefix/mask, and RT of the aggregated route are determined.
  • RT is the information that is sent along with the route during the route advertisement process.
  • the RT is divided into an entry RT (Import RT) and an exit RT (Export RT).
  • the import RT list is configured in the VPN instance of the PE.
  • the RT acts as a route filter.
  • the RT referred to in this embodiment refers to Export RT.
  • the RT attribute is attached to the route and sent simultaneously. Therefore, when the ASBR performs route aggregation, it also needs to process the RT.
  • the same route of RD its RT will be configured to be the same, but it may not be the same.
  • the RTs of the original routes participating in the aggregation may be the same, so that the aggregated routes use the same RT as the original routes.
  • the RT of the original route participating in the aggregation can also be different.
  • the aggregation route can select the following strategies to determine the RT it carries:
  • Step 502 Add the original route suppressed by the route aggregation to the RD FIB table.
  • each original route that is suppressed by the route aggregation may be stored in the RD FIB table as a forwarding equivalence class map next hop mark forwarding entry (FTN, FEC to NHLFE).
  • FTN forwarding equivalence class map next hop mark forwarding entry
  • the fields of the FTN entry include the RD of the original route, the IPv4 address prefix/mask, the next hop node, the outgoing label, and the RT.
  • Step 503 The ASBR allocates a label for the aggregated route, and creates an ILM of the incoming label. In this step, the operation of assigning the label to the aggregation route and creating the ILM of the inbound label can be performed in two ways.
  • the first method is to assign an inbound label to each aggregation route, and then create an ILM for each inbound label.
  • the second is to assign an ingress label to each RD routing table, and create an ILM for the ingress label corresponding to the RD routing table.
  • the aggregated routes in the same RD routing table use the same ingress label.
  • assigning an ingress label to an RD routing table is to assign an ingress label to the same aggregated route of the RD.
  • the label is allocated to the aggregation route, which saves the label resources of the ASBR.
  • the created type of ILM is pop-up (POP), and the mapping relationship is to map the inbound label to the corresponding RD FIB table. Therefore, the ILM includes the following fields:
  • the ILM records the correspondence between the ingress label allocated for the aggregated route and the RD FIB table corresponding to the RD of the aggregated route.
  • the original route that is suppressed by aggregation is stored in the RD FIB table.
  • the ILM and the RD FIB table jointly store the correspondence between the ingress label allocated for the aggregated route and the original route of the aggregated route.
  • the route is processed according to the existing technology, that is, an ingress label is assigned to the route, and an operation type is exchanged (SWAP) for the ingress label.
  • ILM The ILM records the outgoing label corresponding to the incoming label.
  • the ASBR processes the received VPN packet
  • the corresponding ILM is found according to the ingress label at the top of the label stack.
  • the SWAP operation indication in the ILM the outgoing label in the ILM is exchanged with the incoming label at the top of the label stack, according to the ILM mapping.
  • the next hop forwarding entry forwards the current MPLS text to the corresponding PE through the SP backbone network.
  • Step 504 The ASBR uses itself as the next hop node to advertise the aggregated route carrying the next hop node and the inbound label allocated for the aggregation route to the ASBRs of other autonomous systems.
  • Step 505 After receiving the aggregated route, the ASBR of the other autonomous system re-assigns the next hop node and the ingress label, and then advertises the aggregated route to the PE in the autonomous system to which it belongs.
  • the subsequent operations performed by the ASBRs of other autonomous systems after receiving the aggregated routes are the same as those in the prior art.
  • the VPN-IPv4 routes on the PE and the ASBR are the same in the inter-AS VPN.
  • the correct packet forwarding can be performed on the SP backbone network.
  • Step 506 When the ASBR of the local AS receives the packet carrying the label sent by the ASBR of the other autonomous system, searches for the corresponding ILM according to the inbound label carried in the packet, and obtains the corresponding RD FIB table according to the found ILM.
  • the ASBR checks the inbound label of the top of the label of the VPN packet, finds the corresponding ILM according to the inbound label, and pops up according to the POP operation indication in the ILM.
  • the inbound label of the label stack is obtained, and the IP packet is obtained.
  • the RD FIB table corresponding to the RD is found; and the destination address in the IP packet header is compared with the found RD FIB table.
  • the IPv4 address prefix of the FTN item is matched by the longest match, and the outbound label of the matched FTN item is pushed into the label stack, and the packet is forwarded to the corresponding PE according to the next hop node through the SP backbone network.
  • the following describes the route aggregation in the embodiment of the present invention and the specific implementation process of routing advertisement and packet forwarding after route aggregation.
  • the RD of vpnl is 100:1 and there are three routes: 10.1.1.0/24, 10.1.2.0/24, 10.1.3.0/24.
  • the RD of vpn2 is 100:2 and there are three routes: 20.1.1.0/24, 20.1.2.0/24, 20.1.3.0/24.
  • vpnl Configure two VPN instances on PE-2, vpnl and vpn2:
  • the RD of vpnl is 100:1 and there are three routes: 10.2.1.0/24, 10.2.2.0/24, 10.2.3.0/24.
  • the RD of ⁇ 2 is 100:2 and there are three routes: 20.2.1.0/24, 20.2.2.0/24, 20.2.3.0/24.
  • vpn1 on all PEs belong to the same VPN, and all vpn2 belong to another VPN.
  • Both PE-1 and PE-2 can perform route summarization, and only the aggregated VPN-IPv4 routes are advertised to ASBR-1.
  • FIG. 6 is a flow chart showing an example of the message forwarding method of FIG. 5. Referring to Figure 6, the method includes the following steps:
  • step 600 the ASBR creates two corresponding RD FIB tables for the routing tables with RDs of 100:1 and 100:2.
  • Step 601 PE-1 and PE-2 respectively aggregate and assign the routes configured in the VPN instance to the label, and use the self as the next hop node to generate an aggregated route of the PE.
  • PE-1 generates the aggregated route of PE-1 based on the two VPN instances.
  • PE-2 generates the aggregation route of PE-2 according to the two VPN instances configured as follows: RD 100:1 10.2.0.0/16 Next hop PE-2 Incoming label Lm RT 100:1; RD 100:2 20.2.0.0 /16 Next hop PE-2 Incoming label Ln RT 100:2.
  • the aggregation path of the PE-1 carrying the label from the PE-1 of the ASBR-1 is:
  • the aggregation route of the PE-2 carrying the label from the PE-2 of the ASBR-1 is:
  • Step 603 The ASBR-1 aggregates the aggregated routes of the PEs received from PE-1 and PE-2 in the RD routing table corresponding to the RD.
  • the routes that ASBR-1 receives from PE-1 and from PE-2 are called original routes.
  • ASBR-1 includes at least two RD routing tables, namely: an RD routing table with an RD of 100:1 and an RD routing table with an RD of 100:2. After polymerization, it is obtained:
  • the route 10.1.0.0/16 and 10.2.0.0/16 in the RD routing table with the RD of 100:1 generates the route 10.0.0.0/8, and the RT is 100:1.
  • the aggregated route is saved to the RD with the RD of 100:1. In the routing table.
  • the route with the RD of 100:2 in the RD routing table is 20.0.1.0/16, 20.2.0.0/16, which generates 20.0.0.0/8, and the RT is 100:2.
  • the aggregated route is saved to the RD route with the RD of 100:2. In the table.
  • Step 604 Add the original route suppressed by the route aggregation to the RD FIB table corresponding to each RD routing table.
  • an FTN entry is added to the RD FIB table with an RD of 100:1, and each FTN entry corresponds to a suppressed original route:
  • Step 605 ASBR-1 assigns an inbound label to the RD routing table, and creates an ILM whose inbound label operation type is POP. Aggregated routes in the RD routing table use the ingress label assigned to the RD routing table to which they belong.
  • ASBR-1 assigns the label Lj to the RD routing table with the RD of 100:1; creates the ILM entry for Lj; assigns the label Lk to the RD routing table with the RD of 100:2; creates the ILM entry for Lk.
  • the above two ILM items include:
  • the ASBR-1 of this example only needs to assign two labels to the route received from the PE to create two ILMs.
  • the ASBR-1 assigns 4 ingress labels to the routes received from the PE to create 4 ILMs. It can be seen that the embodiment of the present invention not only reduces the number of routes sent by the ASBR, but also reduces the demand for labels.
  • Step 606 The ASBR-1 advertises the determined aggregation route to the ASBR-2 as the next hop node that advertises the route.
  • the aggregation route advertised by ASBR-1 to ASBR-2 is:
  • the ASBR-1 only needs to advertise the two VPN-IPv4 routes carrying the label to the ASBR-2.
  • the current technology is used for the route advertisement.
  • ASBR -1 A VPN-IPv4 route carrying the label is required to be advertised to the ASBR-2. Therefore, the route received and saved by the ASBR-2 is reduced to half of the original, and the route advertised by the ASBR-2 to the PE in the autonomous system is Also reduced to half of the original.
  • Step 607 When the ASBR-1 receives the VPN packet carrying the label sent by the ASBR-2, searches for the corresponding ILM according to the inbound label carried in the packet, and finds the packet according to the ILM from the corresponding FIB table. Forward the route and forward the packet according to the forwarding route.
  • the ASBR-1 when the ASBR-1 receives the VPN packet from the ASBR-2 and assumes the label Lj at the top of the label stack of the VPN packet, the ASBR-1 finds the corresponding ILM according to the label Lj, according to the ILM.
  • the RD is 100:1, and the RD FIB table with the RD of 100:1 is found.
  • the packet label is popped up to obtain an IP packet header; according to the destination address in the IP packet header.
  • the RD FIB table with the RD of 100:1 the longest matching method is used to match the original route, and the matching original route is used as the forwarding route of the VPN packet. Assuming that the destination address of the obtained IP packet is 10.1.1.2/32, the following original route is matched in the RD FIB table with the RD of 100:1:
  • FIG. 7 is a schematic structural diagram of a first embodiment of an autonomous system border router according to the present invention.
  • the autonomous system border router includes a route aggregation processing unit 701 and a label allocation unit 702.
  • the route aggregation processing unit 701 is configured to generate an aggregation route according to the original route received from multiple PEs. After the label is allocated to the aggregation route, the aggregation route carrying the inbound label is sent to the label allocation unit 702.
  • the label allocating unit 702 is configured to allocate an inbound label for each aggregated route received from the route aggregation processing unit 701, and generate an aggregated route carrying the incoming label.
  • FIG. 8 is a schematic structural diagram of a second embodiment of an autonomous system border router according to the present invention.
  • the ASBR of this embodiment includes a route aggregation processing unit 801, a label distribution unit 802, a route issuing unit 803, a correspondence relationship recording unit 804, a storage unit 805, and a message forwarding unit 806.
  • the ASBR in this embodiment further includes a correspondence relationship recording unit 804, a storage unit 805, and a message forwarding unit 806. among them,
  • the correspondence relationship recording unit 804 is configured to receive the aggregated route carried by the label distribution unit 804 and carry the inbound label, and obtain the original route corresponding to the aggregated route carrying the label from the route aggregation processing unit 801, and then assign the inbound label to the aggregated route.
  • the correspondence between the original routes corresponding to the aggregated route is recorded in the storage unit 805.
  • the storage unit 805 is configured to store a correspondence between an inbound label allocated for the aggregated route and an original route corresponding to the aggregated route.
  • the text forwarding unit 806 is configured to receive the packet carrying the label sent by the ASBR of the other autonomous system, and find the original route corresponding to the label from the corresponding relationship in the storage unit 805 according to the ingress label carried in the packet. And obtain the forwarding route of the packet from the original route that is found, and forward the message.
  • the autonomous system border router configuration shown in FIG. 8 may be employed.
  • the storage unit 805 stores the RD FIB table corresponding to each RD and the ILM table in which the ILM corresponding to each inbound label is stored.
  • the storage unit 805 also stores an RD routing table corresponding to each RD.
  • Each RD FIB table corresponds to an RD routing table.
  • the route aggregation processing unit 801 receives the original route of each PE, and aggregates the original routes of the same RD, and sends the aggregated route to the label distribution unit 802, and sends the aggregated route and its corresponding original route to the corresponding relationship record unit 804. .
  • the label assigning unit 802 allocates an inbound label to each of the received aggregated routes, and sends the aggregated route that carries the incoming label to the corresponding relationship recording unit 804.
  • the correspondence relationship recording unit 804 receives the aggregated route sent by the route aggregation processing unit 801 and its corresponding original route, and also receives the aggregated route carried by the label allocation unit 802 and carries the incoming label.
  • the original route corresponding to the aggregated route is stored in the corresponding RD FIB table in the storage unit 805 according to the RD; the ILM of the operation type POP is created for the inbound label carried in the aggregated route, and the ILM is stored in the ILM table of the storage unit 805.
  • the aggregated route and its corresponding original route are stored in the corresponding RD routing table in the storage unit 805.
  • RD FIB table the destination address in the IP packet header is matched with the IPv4 address prefix of the FTN entry in the RD FIB table.
  • the VPN packet is forwarded to the SP backbone network according to the matched FTN entry. Corresponding PE.
  • the route aggregation method, the route forwarding based on the route aggregation, and the ASBR that can implement route aggregation and packet forwarding can effectively reduce the VPN issued by the autonomous system.
  • the number of IPv4 routes reduces the routing capacity of the ASBR and PE devices on the entire network.
  • the label resources of the ASBR are saved, and a large number of ILM entries are avoided, which reduces the burden on the forwarding layer.
  • the number of VPN-IPv4 routes on the entire network and the ILM entries on the ASBR are reduced, thereby saving memory resources, reducing the refresh of forwarding information between the main control board and the interface board, and improving the operation of the network device. stability.
  • the route aggregation solution When the route aggregation solution is applied to a large-scale cross-domain VPN network of the carrier, the problem that the routing capacity is insufficient and the label resources are insufficient on the ASBR can be effectively solved. Indirectly increases the routing capacity and stability of ASBR devices.

Abstract

The present invention provides a route aggregation method which is applied to a network comprising at least one Autonomous System Border Router (ASBR), each ASBR is connected to at least one Provider Edge (PE), the method includes: the ASBR receiving a plurality of original routes from the PE, aggregating the original routes which have a same Route Distinguisher (RD) and belong to a same sub-network, generating aggregated routes, distributing a label to each aggregated route, and adding the label into the aggregated route, generating an aggregated route with the label. The routes which are received and stored by the Autonomous System Border Router are reduced by using the present invention, and the burden of forwarding the routes is also reduced. Simultaneously, the present invention also provides a method for forwarding messages and an Autonomous System Border Router, and the routes which are received and stored by the Autonomous System Border Router are effectually reduced, so as to reduce the number of the routes in the whole network.

Description

路由聚合方法、 报文转发方法以及自治系统边界路由器 技术领域  Route aggregation method, message forwarding method, and autonomous system border router
本发明涉及数据通信领域的路由协议技术, 具体涉及边界网关协议 / 多协议标签转发虚拟专用网络 (BGP/MPLS VPN , Border Gateway Protocol/Multiple Protocol Label Switch Virtual Private Network )中, 实现 路由聚合的方法、 报文转发方法以及自治系统边界路由器。 发明背景  The present invention relates to a routing protocol technology in the field of data communication, and specifically relates to a method for implementing route aggregation in a Border Gateway Protocol/Multiple Protocol Label Switching Virtual Private Network (BGP/MPLS VPN). Packet forwarding method and autonomous system border router. Background of the invention
BGP/MPLS VPN, 是一种允许服务提供商 ( SP, Service Provider ) 使用自己的骨干网络, 为客户提供虚拟专用网 (VPN, Virtual Private Network )服务的机制。 BGP/MPLS VPN使用边界网关协议( BGP, Border Gateway Protocol )协议在服务提供商骨干网上发布 VPN路由, 使用多 协议标签转发( MPLS, Multiple Protocol Label Switch )协议在服务提供 商骨干网上转发 VPN报文。 MPLS协议是利用 MPLS报文中的标签对 MPLS报文进行转发的协议, VPN报文也属于 MPLS报文。  BGP/MPLS VPN is a mechanism that allows a service provider (SP) to use its own backbone network to provide customers with virtual private network (VPN) services. BGP/MPLS VPN uses the Border Gateway Protocol (BGP) protocol to advertise VPN routes on the service provider backbone network and forward VPN packets on the service provider backbone network using the MPLS (Multi Protocol Label Switch) protocol. . The MPLS protocol is a protocol for forwarding MPLS packets by using labels in MPLS packets. The VPN packets also belong to MPLS packets.
图 1 为 BGP/MPLS VPN 网络模型的组成框图。 如图 1 所示, BGP/MPLS VPN包括: 用户网络边缘设备 ( CE, Customer Edge ) 101 , 服务提供商边缘路由器(PE, Provider Edge ) 102和服务提供商路由器 ( P, Provider ) 103。 其中,  Figure 1 shows the block diagram of the BGP/MPLS VPN network model. As shown in FIG. 1, the BGP/MPLS VPN includes: a User Edge Device (CE) 101, a Provider Edge (PE) 102, and a Service Provider Router (P, Provider) 103. among them,
CE101用于将用户站点连接至 SP骨干网络。  CE101 is used to connect user sites to the SP backbone network.
PE102是 SP骨干网络的边缘设备,与 CE直接相连。 BGP/MPLS VPN 网络中, 所有 VPN信息的处理都在 PE上进行。 PE上存储有 VPN路由 转发实例( VRF, VPN Routing & Forwarding Instance ), 筒称 VPN实例。 VPN实例中包含路由表和转发表。 到达 PE102的 VPN报文可以根据相 应的 VPN实例进行转发。 PE102 is an edge device of the SP backbone network and is directly connected to the CE. In a BGP/MPLS VPN network, all VPN information is processed on the PE. A VPN routing forwarding forwarding instance (VRF, VPN Routing & Forwarding Instance) is stored on the PE. The VPN instance contains routing tables and forwarding tables. The VPN packet arriving at PE102 can be based on the phase. The VPN instance should be forwarded.
P103是 SP骨干网络的骨干路由器, 只需负责 VPN报文的转发, 不 用维护 VPN信息。  P103 is the backbone router of the SP backbone network. It only needs to be responsible for forwarding VPN packets and does not need to maintain VPN information.
采用 BGP/MPLS VPN进行报文转发之前, 首先, 各 PE102之间要 进行 VPN路由的交换, 即路由发布, 以保正 PE间路由的统一, 才能进 行正常的 VPN 4艮文转发。 由于一个用户站点可以属于多个 VPN, 该用 户站点的 IP地址就可以属于多个 VPN。 因此 VPN路由采用路由区分符 ( RD, Route Distinguisher )来表示 VPN路由来自哪个 VPN。 VPN路由 中的 IP地址由 RD和 IPv4地址前 ¾ /掩码组成, 因此 VPN路由也称为 VPN-IPv4路由。  Before BGP/MPLS VPN is used for packet forwarding, firstly, each PE 102 exchanges VPN routes, that is, routes are advertised to ensure the uniformity of routing between PEs. Since a user site can belong to multiple VPNs, the IP address of the user site can belong to multiple VPNs. Therefore, the VPN route uses the route distinguisher (RD, Route Distinguisher) to indicate which VPN the VPN route comes from. The IP address in the VPN route consists of the RD and IPv4 address prefixes/masks, so the VPN route is also called VPN-IPv4 route.
当 PE用 BGP分发一个 VPN-IPv4路由时, 使用自身作为下一跳节 点, 并为 VPN-IPv4路由指定和分发一个标签。 在当前 VPN数量和每个 VPN的用户站点路由数量都很大的情况下, PE所接收和保存的路由数 量将十分巨大, 为了解决这个问题, 目前是在 PE上对 VPN-IPv4路由进 行聚合。 路由聚合是将多条原始路由合并成一条聚合路由, 用一个聚合 地址代表一系列网络号的一种方法。 采用在 PE上进行路由聚合的方法 能够减少 PE向其它 PE发送的路由数量, 从而减少各个 PE上的路由存 储量。  When a PE distributes a VPN-IPv4 route using BGP, it uses itself as the next hop node and assigns and distributes a label for the VPN-IPv4 route. In the case that the current number of VPNs and the number of routes to the user sites of each VPN are large, the number of routes received and saved by the PE will be very large. To solve this problem, VPN-IPv4 routes are currently aggregated on the PE. Route aggregation is a method of merging multiple original routes into one aggregated route and using a single aggregate address to represent a series of network numbers. The route aggregation method on the PE can reduce the number of routes sent by PEs to other PEs, thus reducing the amount of route storage on each PE.
一个自治系统是处于一个管理机构控制之下的路由器和网络群组。 在实际组网应用中, 当 SP骨干网络由一个以上的管理机构提供时, VPN 跨越了多个自治系统, 就形成了跨域 VPN。 对于跨域 VPN来说, 属于 不同自治系统的 PE 可以通过各自自治系统的自治系统边界路由器 ( ASBR, Autonomous System Border Router )进行 VPN路由交换。 发明内容 An autonomous system is a group of routers and networks under the control of a regulatory agency. In an actual networking application, when the SP backbone network is provided by more than one management organization, the VPN spans multiple autonomous systems, and an inter-domain VPN is formed. For inter-AS VPNs, PEs belonging to different autonomous systems can exchange VPN routes through the Autonomous System Border Router (ASBR) of their respective ASs. Summary of the invention
本发明实施例提供了一种路由聚合方法, 该路由聚合方法应用于包 括至少一个 ASBR的网络, 所述 ASBR与至少一个 PE连接, 该方法包 括:  The embodiment of the present invention provides a route aggregation method, where the route aggregation method is applied to a network including at least one ASBR, and the ASBR is connected to at least one PE, and the method includes:
ASBR接收来自 PE的多条原始路由, 将路由区分符 ( RD )相同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 为每个聚合路由分 配一标签, 并在所述聚合路由中加入所述标签, 生成携带标签的聚合路 由。  The ASBR receives multiple original routes from the PE, aggregates the original routes of the same subnet with the same route distinguisher (RD), generates an aggregated route, assigns a label to each aggregated route, and adds the label to the aggregated route. The label generates an aggregated route carrying the label.
本发明实施例提供了一种报文转发方法, 该报文转发方法应用于包 括至少一个 ASBR的网络, 所述 ASBR与至少一个 PE连接, 该方法包 括:  The embodiment of the present invention provides a packet forwarding method, where the packet forwarding method is applied to a network including at least one ASBR, and the ASBR is connected to at least one PE, and the method includes:
第一 ASBR接收来自至少一个 PE的至少一条原始路由, 将 RD相 同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 并为每个聚合 路由分配一标签, 并在所述聚合路由中加入所述标签, 生成携带标签的 聚合路由;  The first ASBR receives at least one original route from the at least one PE, aggregates the original routes that belong to the same subnet, and generates an aggregated route, and assigns a label to each aggregated route, and joins the aggregated route. The label generates an aggregated route carrying the label;
存储为聚合路由分配的标签和该聚合路由对应的原始路由之间的对 应关系;将所述携带标签的聚合路由发布给另一自治系统的第二 ASBR; 所述第一 ASBR接收到所述第二 ASBR发来的携带标签的报文, 根 据报文所携带的标签, 从所述对应关系中, 获取对应的原始路由; 从获 取的所述原始路由中获取所述报文转发路由; 根据所述转发路由转发该 报文。  And storing the corresponding relationship between the label allocated to the aggregation route and the original route corresponding to the aggregation route; and the advertised route carrying the label is advertised to the second ASBR of another autonomous system; the first ASBR receives the The packet carrying the packet sent by the second ASBR obtains the corresponding original route from the corresponding relationship according to the label carried in the packet; and obtains the packet forwarding route from the obtained original route; The forwarding route forwards the packet.
本发明实施例还提供了一种自治系统边界路由器, 能够减少接收和 保存的路由, 减轻路由转发的负担。  The embodiment of the invention further provides an autonomous system border router, which can reduce the received and saved routes and reduce the burden of routing and forwarding.
该 ASBR应用于包括多个 ASBR的网络, 所述每个 ASBR与多个 PE连接, 该 ASBR包括路由聚合处理单元和标签分配单元; 所述路由聚合处理单元, 用于接收来自多个 PE 的多条原始路由, 将 RD相同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 发送 给标签分配单元; The ASBR is applied to a network including multiple ASBRs, and each ASBR is connected to multiple PEs, where the ASBR includes a route aggregation processing unit and a label allocation unit. The route aggregation processing unit is configured to receive a plurality of original routes from multiple PEs, and aggregate the original routes that belong to the same subnet, and generate an aggregation route, and send the aggregation route to the label distribution unit.
所述标签分配单元, 用于为接收自所述路由聚合处理单元的每个聚 合路由分配一标签, 并在所述聚合路由中加入所述标签, 生成携带标签 的聚合路由。  The label allocating unit is configured to allocate a label for each aggregated route received from the route aggregation processing unit, and add the label to the aggregated route to generate an aggregated route carrying the label.
与现有技术相比, 本发明实施例所提供的路由聚合方法、 报文转发 方法和自治系统边界路由器, 在 ASBR上将接收自 PE的 VPN-IPv4路 由进行聚合处理和标签分配。 ASBR仅将聚合后的路由发布给其它自治 系统的 ASBR。 相应的, 其它自治系统的 ASBR仅将聚合后的路由发布 给本自治系统的 ASBR。 因此有效的减少了 ASBR接收和保存的路由, 降低了路由转发负担, 解决了 ASBR路由容量不足的问题。 同时, 路由 的减少, 为路由分配的标签也随之减少, 大大节省了标签资源。 附图简要说明  Compared with the prior art, the route aggregation method, the packet forwarding method, and the autonomous system border router provided by the embodiment of the present invention perform aggregation processing and label distribution on the ASBR on the VPN-IPv4 route received from the PE. The ASBR advertises only the aggregated routes to the ASBRs of other ASs. Correspondingly, the ASBRs of other autonomous systems only advertise the aggregated routes to the ASBRs of the local AS. Therefore, the route received and saved by the ASBR is effectively reduced, the burden of routing and forwarding is reduced, and the problem of insufficient routing capacity of the ASBR is solved. At the same time, the reduction of routes reduces the number of labels allocated for routes, which greatly saves label resources. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为 BGP/MPLS VPN网络模型的组成框图。  Figure 1 shows the block diagram of the BGP/MPLS VPN network model.
图 2为本发明实施例应用场景图。  FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present invention.
图 3为本发明实施例中路由聚合方法的方法流程图。  FIG. 3 is a flowchart of a method for a route aggregation method according to an embodiment of the present invention.
图 4为采用图 3的路由聚合方法实现报文转发一实施例的方法流程 图。  FIG. 4 is a flow chart of a method for implementing packet forwarding by using the route aggregation method of FIG. 3.
图 5为采用图 3的路由聚合方法实现报文转发另一实施例的方法流 程图。  FIG. 5 is a flow chart of another embodiment of implementing packet forwarding by using the route aggregation method of FIG. 3.
图 6为采用图 5的报文转发方法的一个实例流程图。  FIG. 6 is a flow chart showing an example of the message forwarding method of FIG. 5.
图 7为本发明自治系统边界路由器实施例一的组成结构示意图。 图 8为本发明自治系统边界路由器实施例二的组成结构示意图。 实施本发明的方式 FIG. 7 is a schematic structural diagram of a first embodiment of an autonomous system border router according to the present invention. FIG. 8 is a schematic structural diagram of a second embodiment of an autonomous system border router according to the present invention. Mode for carrying out the invention
为使本发明实施例的目的、 技术方案和优点更加清楚明白, 下面结 合实施例和附图, 对本发明实施例进行进一步详细说明。  The embodiments of the present invention will be further described in detail below with reference to the embodiments and the accompanying drawings.
图 2为本发明实施例应用场景图。图示为跨域 BGP/MPLS VPN网络 模型的组成框图, 参见图 2, 自治系统(AS, Autonomous System ) 100 和 AS200是两个自治系统, PE-1、 PE-2和 ASBR-1属于 AS100, PE-3、 PE-4和 ASBR-2属于 AS200。分属于不同自治系统的 PE需要通过 ASBR 进行路由发布。  FIG. 2 is a schematic diagram of an application scenario according to an embodiment of the present invention. The block diagram of the cross-domain BGP/MPLS VPN network model is shown in Figure 2. The AS (Autonomous System) 100 and AS200 are two autonomous systems. PE-1, PE-2, and ASBR-1 belong to AS100. PE-3, PE-4 and ASBR-2 belong to AS200. PEs that belong to different ASs need to be routed through the ASBR.
例如, PE-1向 PE-3发布路由时,要将携带标签的 VPN-IPv4路由经 由 ASBR-1和 ASBR-2发送到 PE-3。 在该路由发布过程中 ASBR-1和 ASBR-2都要对接收的携带标签的 VPN-IPv4路由进行存储和重新指定 下一跳节点和标签的处理。 可见, 对于跨域 VPN来说, ASBR上汇聚了 其所属自治系统中所有 PE发来的 VPN-IPv4路由, 而且 ASBR不仅要 负责接收和保存本自治系统所有 PE发来的 VPN-IPv4路由,然后向其它 自治系统的 ASBR发布, 还要接收和保存其它自治系统 ASBR发布的 VPN-IPv4路由, 并向本自治系统的 PE发布, 因此对 ASBR的路由存储 量和转发能力要求较高。 而现有的在 PE对路由的聚合, 只能在一定程 度上减少各个 PE发布给 ASBR的 VPN-IPv4路由数量。 当全网 PE数量 众多, 且 VPN数量和每个 VPN的用户站点路由数量都很大的情况下, ASBR上需要存储和处理的 VPN-IPv4路由数量仍然十分巨大。 当运营 商建立大型跨域 VPN网络时, ASBR将出现路由容量不足、标签资源不 足、 转发负担过重等问题。  For example, when PE-1 advertises a route to PE-3, the VPN-IPv4 route carrying the label is sent to PE-3 through ASBR-1 and ASBR-2. Both ASBR-1 and ASBR-2 store and re-specify the processing of the next hop node and label in the received VPN-IPv4 route. It can be seen that for the inter-AS VPN, the ASBR aggregates the VPN-IPv4 routes sent by all the PEs in the AS, and the ASBR is responsible for receiving and storing the VPN-IPv4 routes sent by all the PEs of the AS. It is advertised to the ASBRs of other ASs. It also receives and saves the VPN-IPv4 routes advertised by the ASBRs of other ASs and advertises them to the PEs of the AS. Therefore, the ASBR has high storage and forwarding capacity. However, the existing aggregation of routes on the PE can only reduce the number of VPN-IPv4 routes advertised by each PE to the ASBR to a certain extent. The number of VPN-IPv4 routes that need to be stored and processed on the ASBR is still very large when the number of PEs in the entire network is large and the number of VPNs and the number of user sites per VPN are large. When an operator establishes a large-scale cross-domain VPN network, the ASBR will have problems such as insufficient routing capacity, insufficient label resources, and excessive forwarding burden.
在跨域 VPN中,由于 PE只维护与其相连 VPN的路由。所以, ASBR 接收的来自不同 PE的 VPN-IPv4路由可能来自相同的 VPN, 仍然属于 相同子网, 因此存在进一步聚合的可能。 但现有技术并没有在 ASBR上 对还可能聚合的 VPN-IPv4路由进行聚合,而是将接收的 VPN-IPv4路由 全部发布到其它自治系统。 In a cross-domain VPN, the PE only maintains the routes of the VPNs connected to it. Therefore, the VPN-IPv4 routes received by the ASBR from different PEs may come from the same VPN and still belong to the same subnet, so there is a possibility of further aggregation. But the prior art is not on the ASBR. The VPN-IPv4 routes that may also be aggregated are aggregated, but all received VPN-IPv4 routes are advertised to other autonomous systems.
因此, 本发明实施例在 ASBR上, 根据接收自多个 PE的原始路由, 将 RD相同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 为每 个聚合路由分配一标签, 并在聚合路由中加入该标签, 生成携带标签的 聚合路由。 从而减少 ASBR向其它自治系统 ASBR发布路由的数量。 图 3为本发明实施例中路由聚合方法的方法流程图。 该方法具体包 括以下两个步骤:  Therefore, in the embodiment of the present invention, on the ASBR, the original routes that belong to the same subnet are aggregated according to the original routes received from the multiple PEs to generate an aggregation route, and each aggregation route is assigned a label and is aggregated. The label is added to the route to generate an aggregated route carrying the label. This reduces the number of routes that the ASBR advertises to other ASBRs. FIG. 3 is a flowchart of a method for a route aggregation method according to an embodiment of the present invention. The method specifically includes the following two steps:
步骤 301 , ASBR接收来自多个 PE的多条原始路由, 将 RD相同、 属于相同子网的原始路由进行聚合, 生成聚合路由。  Step 301: The ASBR receives multiple original routes from multiple PEs, and aggregates the original routes that belong to the same subnet and generates an aggregated route.
本步骤中, 路由聚合是将 RD相同、 IPv4地址前缀 /掩码属于相同子 网的多个 VPN-IPv4路由, 即原始路由, 进行聚合, 合并成一个聚合路 由的方法。路由聚合可以采用 BGP定义的聚合算法。 PE发来的 VPN-IPv4 路由包括 RD、 IPv4地址前缀 /掩码、 路由目标(RT, Route Target )、 下 一跳节点和出标签等属性信息, 因此聚合路由需要继承原始路由的属性 信息。 在聚合处理时, 根据原始路由确定聚合路由的 RD、 IPv4地址前 ¾ /掩码以及 RT。 聚合路由的下一跳节点是 ASBR自身, 聚合路由的出 标签由 ASBR指定。  In this step, route aggregation is a method in which multiple VPN-IPv4 routes with the same RD and IPv4 address prefix/mask belong to the same subnet, that is, original routes, are aggregated and merged into one aggregation route. Route aggregation can use the aggregation algorithm defined by BGP. The VPN-IPv4 routes sent by the PE include attribute information such as RD, IPv4 address prefix/mask, route target (RT, Route Target), next hop node, and outgoing label. Therefore, the aggregated route needs to inherit the attribute information of the original route. During the aggregation process, the RD of the aggregated route, the IPv4 address before the mask, and the RT are determined according to the original route. The next hop of the aggregated route is the ASBR itself. The outgoing label of the aggregated route is specified by the ASBR.
聚合过程包括: 如果判断原始路由的 IPv4地址前缀 /掩码属于相同 子网, 则 ASBR根据原始路由的 RD和 IPv4地址前缀 /掩码, 将属于相 同子网的多个 IPv4地址前 ¾ /掩码, 合并成一个掩码较短的 IPv4地址前 ¾ /掩码,将合并后的 IPv4地址前缀 /掩码确定为聚合路由的 IPv4地址前 掩码; 将原始路由的 RD确定为聚合路由的 RD; 根据原始路由的 RT 确定聚合路由的 RT。 步骤 302, ASBR 为每个聚合路由分配一入标签, 并在聚合路由中 加入该入标签, 生成携带入标签的聚合路由。 The aggregation process includes: If the IPv4 address prefix/mask of the original route belongs to the same subnet, the ASBR will pre-address multiple IPv4 addresses belonging to the same subnet according to the RD and IPv4 address prefix/mask of the original route. And merging into a short masked IPv4 address before the 3/4/mask, and determining the merged IPv4 address prefix/mask as the pre-mask of the IPv4 address of the aggregated route; determining the RD of the original route as the RD of the aggregated route; Determine the RT of the aggregated route based on the RT of the original route. Step 302: The ASBR allocates an inbound label to each of the aggregated routes, and adds the inbound label to the aggregated route to generate an aggregated route that carries the inbound label.
这里需要说明的是, 本步骤中为聚合路由分配的入标签, 也就是上 述 ASBR 为聚合路由指定的出标签。 因为, 在路由发布过程中, 对于 ASBR来说, 从 PE接收的原始路由中携带的标签是出标签, 为聚合路 由分配的标签是入标签。 但当 ASBR将聚合路由发布出去时, 对于接收 该聚合路由的 ASBR来说, 聚合路由所携带的标签为出标签。 因此, 以 下所说的为聚合路由分配入标签、 聚合路由所携带的出标签和聚合路由 所携带的入标签都是指同一个标签。  The inbound label assigned to the aggregated route in this step is the outgoing label specified by the ASBR for the aggregated route. For the ASBR, the label carried in the original route received from the PE is the outgoing label, and the label allocated for the aggregated route is the incoming label. When the ASBR advertises the advertised route, the ASBR that receives the advertised route carries the label. Therefore, the following describes the labeling of the aggregated route, the outgoing label carried by the aggregated route, and the incoming label carried by the aggregated route.
至此, 完成了在 ASBR上的路由聚合。  At this point, the route aggregation on the ASBR is completed.
图 4为采用图 3的路由聚合方法实现报文转发一实施例的方法流程 图。 参见图 4, 该方法具体包括以下步骤:  FIG. 4 is a flow chart of a method for implementing packet forwarding by using the route aggregation method of FIG. 3. Referring to FIG. 4, the method specifically includes the following steps:
步骤 401 , ASBR接收来自多个 PE的多条原始路由, 将 RD相同、 属于相同子网的原始路由进行聚合, 生成聚合路由。  Step 401: The ASBR receives multiple original routes from multiple PEs, and aggregates original routes that belong to the same subnet and generates aggregated routes.
步骤 402, 为每个聚合路由分配一入标签, 并在聚合路由中加入该 入标签, 生成携带入标签的聚合路由。  Step 402: Assign an inbound label to each aggregation route, and add the ingress label to the aggregation route to generate an aggregation route carrying the label.
步骤 403, 存储为聚合路由分配的入标签与该聚合路由对应的原始 路由之间的对应关系。  Step 403: Store the correspondence between the inbound label allocated to the aggregated route and the original route corresponding to the aggregated route.
步骤 404, 将携带有为其分配的入标签的聚合路由发布给其它自治 系统的 ASBR。  Step 404: Publish the aggregated route carrying the inbound label allocated to the ASBR of the other autonomous system.
步骤 405 , ASBR从其它自治系统的 ASBR接收到携带入标签的 VPN 报文时,根据 ASBR存储的入标签与原始路由的对应关系, 获取与 VPN 报文所携带入标签对应的原始路由, 并从获取的原始路由中获取 VPN 才艮文转发路由, 从而转发 VPN 4艮文。  Step 405: The ASBR obtains the original route corresponding to the carried label of the VPN packet according to the correspondence between the inbound label and the original route that is stored in the ASBR, when the ASBR receives the VPN packet carrying the label from the ASBR of the other autonomous system. Obtain the VPN in the original route to forward the route, and then forward the VPN message.
至此, 完成了报文转发。 以下再举一实施例, 详细说明如何建立并存储为聚合路由分配的入 标签与该聚合路由对应的原始路由之间的对应关系, 并利用该对应关系 正确的转发报文。 图 5为采用图 3的路由聚合方法实现报文转发另一实 施例的方法流程图。 参见图 5, 该方法具体包括以下步骤: At this point, the message forwarding is completed. In the following, an embodiment is described in detail, how to establish and store the correspondence between the inbound label allocated to the aggregated route and the original route corresponding to the aggregated route, and use the corresponding relationship to correctly forward the packet. FIG. 5 is a flowchart of another method for implementing packet forwarding by using the route aggregation method of FIG. 3. Referring to FIG. 5, the method specifically includes the following steps:
步骤 500, 为 ASBR中每个 RD路由表创建一个转发信息库( FIB, Forward Information Base )表, 也叫 RD FIB表。  Step 500: Create a Forward Information Base (FIB) table, also called an RD FIB table, for each RD routing table in the ASBR.
本步骤在进行 ASBR配置时执行一次。 创建好 RD FIB表以后, 在 进行路由聚合时不用每次都执行。  This step is performed once during ASBR configuration. After the RD FIB table is created, it is not necessary to perform the route aggregation every time.
RD路由表用于存储 ASBR接收的 VPN-IPv4路由和 ASBR聚合后的 聚合路由。 所有 VPN-IPv4路由都是根据 RD的不同, 分别存储于相应 的 RD路由表中。 RD路由表中的字段包括 RD、 IPv4地址 /掩码、 下一 跳节点、 RT、 出标签等。  The RD routing table is used to store the VPN-IPv4 routes received by the ASBR and the aggregated routes after the ASBR is aggregated. All VPN-IPv4 routes are stored in the corresponding RD routing table according to the RD. The fields in the RD routing table include RD, IPv4 address/mask, next hop node, RT, outgoing label, and so on.
每个 RD FIB表对应一个 RD路由表,也可以说每个 RD FIB表对应 一个不同的 RD。 由于一条聚合路由对应多个原始路由, 这些原始路由 就称为被路由聚合抑制的原始路由。 RD FIB存储的就是被聚合抑制的原 始路由, 该 RD FIB表中的字段包括 RD、 IPv4地址 /掩码、 下一跳节点、 RT、 出标签等。  Each RD FIB table corresponds to an RD routing table. It can also be said that each RD FIB table corresponds to a different RD. Since an aggregated route corresponds to multiple original routes, these original routes are called original routes suppressed by route aggregation. The RD FIB stores the original route that is suppressed by aggregation. The fields in the RD FIB table include RD, IPv4 address/mask, next hop node, RT, outgoing label, and so on.
步骤 501 , ASBR接收多个 PE发来的原始路由, 并对 RD相同的原 始路由进行聚合处理。  Step 501: The ASBR receives the original route sent by multiple PEs, and performs aggregation processing on the same original route of the RD.
本步骤中, 如果各 PE已经对路由进行了聚合, 则 ASBR接收的原 始路由可以是经 PE聚合后的路由。  In this step, if the routes have been aggregated by the PEs, the original route received by the ASBR can be the route that is aggregated by the PE.
ASBR将接收自多个 PE的原始路由,根据路由区分符 RD的不同进  The ASBR will receive the original routes from multiple PEs, depending on the route specifier RD.
ASBR在接收到多个 PE的原始路由后,根据路由区分符 RD的不同分别 存入相应的 RD路由表,分别对各 RD路由表中的接收自 PE的原始路由 进行聚合处理, 将聚合路由存入对应的 RD路由表。 为每个 RD路由表 中的原始路由进行聚合的目的也是对 RD相同的原始路由进行聚合。 聚 合路由也是 VPN-IPv4路由。 本步骤进行聚合处理后, 确定了聚合路由 的 RD、 IPv4地址前缀 /掩码和 RT。 After receiving the original routes of multiple PEs, the ASBRs are respectively stored in the corresponding RD routing table according to the different routing specifiers RD, and the original routes received from the PEs in the RD routing tables respectively. The aggregation process is performed, and the aggregation route is stored in the corresponding RD routing table. The purpose of aggregating the original routes in each RD routing table is also to aggregate the same original routes of the RD. Aggregated routes are also VPN-IPv4 routes. After the aggregation process is performed in this step, the RD, IPv4 address prefix/mask, and RT of the aggregated route are determined.
RT是路由发布过程中, 随路由一起发送的信息。 RT分为入口 RT ( Import RT )和出口 RT( Export RT )。 PE中的 VPN实例中配置了 Import RT列表,当 PE接收的路由的 Export RT与 PE中 Import RT列表相匹配, 路由才会被引入到该 VPN实例中。 RT起到了路由过滤的作用。 本实施 例中所指的 RT是指 Export RT。 在路由发布过程中, 该 RT属性附加在 路由上同时发送。 因此在 ASBR进行路由聚合时, 也需要对 RT进行处 理。 一般 RD相同的路由, 其 RT也会配置成相同的, 但也有可能不相 同。  RT is the information that is sent along with the route during the route advertisement process. The RT is divided into an entry RT (Import RT) and an exit RT (Export RT). The import RT list is configured in the VPN instance of the PE. When the exported RT of the route received by the PE matches the imported RT list in the PE, the route is imported into the VPN instance. RT acts as a route filter. The RT referred to in this embodiment refers to Export RT. During the route issuance, the RT attribute is attached to the route and sent simultaneously. Therefore, when the ASBR performs route aggregation, it also needs to process the RT. Generally, the same route of RD, its RT will be configured to be the same, but it may not be the same.
本发明实施例中, 参与聚合的原始路由的 RT可以相同, 这样聚合 后的路由就使用跟原始路由相同的 RT。参与聚合的原始路由的 RT也可 以不相同。 对于参与聚合的原始路由 RT不相同的情况, 聚合路由可以 选择如下几种策略确定其所携带的 RT:  In the embodiment of the present invention, the RTs of the original routes participating in the aggregation may be the same, so that the aggregated routes use the same RT as the original routes. The RT of the original route participating in the aggregation can also be different. For the case where the original routes RT participating in the aggregation are different, the aggregation route can select the following strategies to determine the RT it carries:
1)取参与聚合的原始路由所携带的 RT的全集;  1) taking the complete set of RTs carried by the original route participating in the aggregation;
2)取参与聚合的原始路由所携带的 RT的交集;  2) taking the intersection of the RTs carried by the original routes participating in the aggregation;
3) 在 RD路由表上手工设置聚合路由可以携带的 RT;  3) Manually set the RT that the aggregated route can carry on the RD routing table.
4)根据路由策略设置聚合路由可以携带的 RT。  4) Set the RT that the aggregated route can carry according to the routing policy.
步骤 502 , 将被路由聚合抑制的原始路由加入 RD FIB表。  Step 502: Add the original route suppressed by the route aggregation to the RD FIB table.
在实际应用中, 可以将每一条被路由聚合抑制的原始路由作为一条 转发等价类映射下一跳标记转发条目 ( FTN, FEC to NHLFE )项存储在 RD FIB表中。 FTN项的字段包括原始路由的 RD、 IPv4地址前缀 /掩码、 下一跳节点、 出标签和 RT。 步骤 503, ASBR为聚合路由分配入标签, 并创建该入标签的 ILM。 本步骤中,为聚合路由分配入标签并创建该入标签的 ILM的操作可 以有两种方式, 方式一是为每个聚合路由分别分配一个入标签, 再为每 个入标签创建一个 ILM; 方式二是为每个 RD路由表分配一个入标签, 并为 RD路由表对应的入标签创建一个 ILM, 同一 RD路由表中的聚合 路由使用相同的入标签。 实质上, 为一个 RD路由表分配一个入标签就 是为 RD相同的聚合路由分配一个入标签。 采用方式二为聚合路由分配 入标签, 更加节省 ASBR的标签资源。 这里, 所创建的 ILM的操作类型 为弹出(POP ),且映射关系为将入标签映射到对应的 RD FIB表。 因此, ILM包括以下字段: In an actual application, each original route that is suppressed by the route aggregation may be stored in the RD FIB table as a forwarding equivalence class map next hop mark forwarding entry (FTN, FEC to NHLFE). The fields of the FTN entry include the RD of the original route, the IPv4 address prefix/mask, the next hop node, the outgoing label, and the RT. Step 503: The ASBR allocates a label for the aggregated route, and creates an ILM of the incoming label. In this step, the operation of assigning the label to the aggregation route and creating the ILM of the inbound label can be performed in two ways. The first method is to assign an inbound label to each aggregation route, and then create an ILM for each inbound label. The second is to assign an ingress label to each RD routing table, and create an ILM for the ingress label corresponding to the RD routing table. The aggregated routes in the same RD routing table use the same ingress label. Essentially, assigning an ingress label to an RD routing table is to assign an ingress label to the same aggregated route of the RD. In the second mode, the label is allocated to the aggregation route, which saves the label resources of the ASBR. Here, the created type of ILM is pop-up (POP), and the mapping relationship is to map the inbound label to the corresponding RD FIB table. Therefore, the ILM includes the following fields:
入标签 操作类型 POP RD  In Tag Operation Type POP RD
其中, 通过 RD可以查找到对应的 RD FIB表。 因此, 本实施例中, ILM记录了为聚合路由分配的入标签与该聚合路由的 RD对应的 RD FIB 表的对应关系。 而 RD FIB表中存储了被聚合抑制的原始路由。 从而可 见, ILM和 RD FIB表共同存储了为聚合路由分配的入标签和该聚合路 由的原始路由的对应关系。  Among them, the corresponding RD FIB table can be found through RD. Therefore, in this embodiment, the ILM records the correspondence between the ingress label allocated for the aggregated route and the RD FIB table corresponding to the RD of the aggregated route. The original route that is suppressed by aggregation is stored in the RD FIB table. Thus, it can be seen that the ILM and the RD FIB table jointly store the correspondence between the ingress label allocated for the aggregated route and the original route of the aggregated route.
如果 ASBR从 PE接收的原始路由中包括不能被聚合的路由, 则对 该路由按照现有技术进行处理, 即对该路由分配一个入标签, 为该入标 签创建一个操作类型为交换(SWAP ) 的 ILM。 ILM记录了入标签对应 的出标签。 在 ASBR对接收的 VPN报文进行处理时, 根据标签栈顶的 入标签找到对应的 ILM, 根据 ILM中 SWAP操作指示, 将 ILM中的出 标签与标签栈顶的入标签交换,根据 ILM映射的下一跳转发条目, 将当 前 MPLS 文通过 SP骨干网转发给相应的 PE。  If the original route received by the ASBR from the PE includes a route that cannot be aggregated, the route is processed according to the existing technology, that is, an ingress label is assigned to the route, and an operation type is exchanged (SWAP) for the ingress label. ILM. The ILM records the outgoing label corresponding to the incoming label. When the ASBR processes the received VPN packet, the corresponding ILM is found according to the ingress label at the top of the label stack. According to the SWAP operation indication in the ILM, the outgoing label in the ILM is exchanged with the incoming label at the top of the label stack, according to the ILM mapping. The next hop forwarding entry forwards the current MPLS text to the corresponding PE through the SP backbone network.
步骤 504, ASBR将自身作为下一跳节点, 将携带有下一跳节点和 为聚合路由分配的入标签的聚合路由发布给其它自治系统的 ASBR。 步骤 505, 其他自治系统的 ASBR接收到聚合路由后, 重新指定下 一跳节点和入标签, 然后再将聚合路由发布给其所属自治系统内的 PE。 Step 504: The ASBR uses itself as the next hop node to advertise the aggregated route carrying the next hop node and the inbound label allocated for the aggregation route to the ASBRs of other autonomous systems. Step 505: After receiving the aggregated route, the ASBR of the other autonomous system re-assigns the next hop node and the ingress label, and then advertises the aggregated route to the PE in the autonomous system to which it belongs.
本步骤中, 其它自治系统的 ASBR接收到聚合路由后进行的后续操 作与现有技术相同。 本步骤执行后, 就使得跨域 VPN中 PE和 ASBR上 的 VPN-IPv4路由一致, 便可以在 SP骨干网上进行正确的报文转发。  In this step, the subsequent operations performed by the ASBRs of other autonomous systems after receiving the aggregated routes are the same as those in the prior art. After the step is performed, the VPN-IPv4 routes on the PE and the ASBR are the same in the inter-AS VPN. The correct packet forwarding can be performed on the SP backbone network.
步骤 506 , 当本自治系统的 ASBR接收到其它自治系统的 ASBR发 来的携带入标签的报文, 根据报文所携带的入标签查找对应的 ILM, 根 据查找到的 ILM从对应的 RD FIB表存储的原始路由中查找出该4艮文的 转发路由, 根据转发路由转发该报文。  Step 506: When the ASBR of the local AS receives the packet carrying the label sent by the ASBR of the other autonomous system, searches for the corresponding ILM according to the inbound label carried in the packet, and obtains the corresponding RD FIB table according to the found ILM. The forwarded route of the 4 艮 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。
本步骤中, 在 ASBR从其它自治系统的 ASBR接收到 VPN报文时, 对该 VPN报文标签栈顶的入标签进行检查, 根据该入标签找到对应的 ILM, 根据 ILM中 POP操作指示, 弹出标签栈顶的入标签, 得到 IP报 文; 根据 ILM中 RD的指示, 查找到与该 RD对应的 RD FIB表; 再将 IP报文头中的目的地址, 与查到的 RD FIB表中各 FTN项的 IPv4地址 前缀进行最长匹配,将匹配到的 FTN项中出标签压入标签栈,根据下一 跳节点将报文通过 SP骨干网转发给相应的 PE。  In this step, when the ASBR receives the VPN packet from the ASBR of the other autonomous system, the ASBR checks the inbound label of the top of the label of the VPN packet, finds the corresponding ILM according to the inbound label, and pops up according to the POP operation indication in the ILM. The inbound label of the label stack is obtained, and the IP packet is obtained. According to the RD indication in the ILM, the RD FIB table corresponding to the RD is found; and the destination address in the IP packet header is compared with the found RD FIB table. The IPv4 address prefix of the FTN item is matched by the longest match, and the outbound label of the matched FTN item is pushed into the label stack, and the packet is forwarded to the corresponding PE according to the next hop node through the SP backbone network.
下面举例说明本发明实施例的路由聚合, 以及在路由聚合后进行路 由发布和报文转发的具体实现过程。  The following describes the route aggregation in the embodiment of the present invention and the specific implementation process of routing advertisement and packet forwarding after route aggregation.
本例假设, 图 2中的 PE-1上配置两个 VPN实例: vpnl和 vpn2。 这 两个 VPN实例中的路由信息是从与其相连的 CE学习到的路由。  This example assumes that two VPN instances are configured on PE-1 in Figure 2: vpnl and vpn2. The routing information in the two VPN instances is the route learned from the CE connected to it.
vpnl 的 RD 是 100:1 , 有三条路由: 10.1.1.0/24 , 10.1.2.0/24 , 10.1.3.0/24。  The RD of vpnl is 100:1 and there are three routes: 10.1.1.0/24, 10.1.2.0/24, 10.1.3.0/24.
vpn2 的 RD 是 100:2 , 有三条路由: 20.1.1.0/24 , 20.1.2.0/24 , 20.1.3.0/24。  The RD of vpn2 is 100:2 and there are three routes: 20.1.1.0/24, 20.1.2.0/24, 20.1.3.0/24.
PE-2上配置两个 VPN实例, vpnl和 vpn2: vpnl 的 RD 是 100:1 , 有三条路由: 10.2.1.0/24 , 10.2.2.0/24 , 10.2.3.0/24。 Configure two VPN instances on PE-2, vpnl and vpn2: The RD of vpnl is 100:1 and there are three routes: 10.2.1.0/24, 10.2.2.0/24, 10.2.3.0/24.
νρη2 的 RD 是 100:2 , 有三条路由: 20.2.1.0/24 , 20.2.2.0/24 , 20.2.3.0/24。  The RD of νρη2 is 100:2 and there are three routes: 20.2.1.0/24, 20.2.2.0/24, 20.2.3.0/24.
整网中, 所有 PE上的 vpnl属于同一个 VPN, 所有 vpn2属于另一 个 VPN。 PE-1和 PE-2均能进行路由聚合, 仅把聚合后的 VPN-IPv4路 由发布给 ASBR-1。  In the entire network, vpn1 on all PEs belong to the same VPN, and all vpn2 belong to another VPN. Both PE-1 and PE-2 can perform route summarization, and only the aggregated VPN-IPv4 routes are advertised to ASBR-1.
图 6为采用图 5的报文转发方法的一个实例流程图。 参见图 6, 该 方法包括以下步骤:  FIG. 6 is a flow chart showing an example of the message forwarding method of FIG. 5. Referring to Figure 6, the method includes the following steps:
步骤 600, ASBR预先为 RD为 100:1和 100:2的路由表创建两个对 应的 RD FIB表。  In step 600, the ASBR creates two corresponding RD FIB tables for the routing tables with RDs of 100:1 and 100:2.
步骤 601 , PE-1和 PE-2分别将配置在 VPN实例中的路由进行聚合 和分配入标签, 并将自身作为下一跳节点, 生成 PE的聚合路由。  Step 601: PE-1 and PE-2 respectively aggregate and assign the routes configured in the VPN instance to the label, and use the self as the next hop node to generate an aggregated route of the PE.
本步骤中, PE-1根据配置的两个 VPN实例, 生成 PE-1的聚合路由 为:  In this step, PE-1 generates the aggregated route of PE-1 based on the two VPN instances.
RD 100:1 10.1.0.0/16 下一跳 PE-1 入标签 Lm RT 100:1; RD 100:2 20.1.0.0/16 下一跳 PE-1 入标签 Ln RT 100:2。 PE-2根据配置的两个 VPN实例, 生成 PE-2的聚合路由为: RD 100:1 10.2.0.0/16 下一跳 PE-2 入标签 Lm RT 100:1; RD 100:2 20.2.0.0/16 下一跳 PE-2 入标签 Ln RT 100:2。 步骤 602 , PE- 1和 PE-2分别将 PE的聚合路由发给 ASBR- 1。  RD 100:1 10.1.0.0/16 Next hop PE-1 Incoming label Lm RT 100:1; RD 100:2 20.1.0.0/16 Next hop PE-1 Incoming label Ln RT 100:2. PE-2 generates the aggregation route of PE-2 according to the two VPN instances configured as follows: RD 100:1 10.2.0.0/16 Next hop PE-2 Incoming label Lm RT 100:1; RD 100:2 20.2.0.0 /16 Next hop PE-2 Incoming label Ln RT 100:2. Step 602: PE-1 and PE-2 respectively send the aggregation route of the PE to ASBR-1.
本步骤中, ASBR-1接收到来自 PE-1的携带标签的 PE-1的聚合路 由为:  In this step, the aggregation path of the PE-1 carrying the label from the PE-1 of the ASBR-1 is:
RD 100:1 10.1.0.0/16 下一跳 PE-1 出标签 Lm RT 100:1; RD 100:2 20.1.0.0/16 下一跳 PE-1 出标签 Ln RT 100:2。 ASBR-1接收到来自 PE-2的携带标签的 PE-2的聚合路由为:RD 100:1 10.1.0.0/16 Next hop PE-1 outgoing label Lm RT 100:1; RD 100:2 20.1.0.0/16 Next hop PE-1 outgoing label Ln RT 100:2. The aggregation route of the PE-2 carrying the label from the PE-2 of the ASBR-1 is:
RD 100:1 10.2.0.0/16 下一跳 PE-2 出标签 Lm RT 100:1;RD 100:1 10.2.0.0/16 Next hop PE-2 outgoing label Lm RT 100:1;
RD 100:2 20.2.0.0/16 下一跳 PE-2 出标签 Ln RT 100:2。 这里需要说明的是, ASBR-1接收到的 PE的聚合路由中的出标签, 就是 PE生成的聚合路由的入标签。 RD 100:2 20.2.0.0/16 Next hop PE-2 outgoing label Ln RT 100:2. It should be noted that the outgoing label in the aggregated route of the PE received by the ASBR-1 is the incoming label of the aggregated route generated by the PE.
步骤 603, ASBR-1以 RD对应的 RD路由表为单位, 对从 PE-1和 PE-2接收的 PE的聚合路由进行聚合。 ASBR-1从 PE-1和从 PE-2接收 的路由都称为原始路由。  Step 603: The ASBR-1 aggregates the aggregated routes of the PEs received from PE-1 and PE-2 in the RD routing table corresponding to the RD. The routes that ASBR-1 receives from PE-1 and from PE-2 are called original routes.
本实例中, ASBR-1至少包括两个 RD路由表,分别为: RD为 100:1 的 RD路由表和 RD为 100:2的 RD路由表。 经聚合处理, 得到:  In this example, ASBR-1 includes at least two RD routing tables, namely: an RD routing table with an RD of 100:1 and an RD routing table with an RD of 100:2. After polymerization, it is obtained:
RD为 100:1的 RD路由表中的路由 10.1.0.0/16、 10.2.0.0/16聚合产 生路由 10.0.0.0/8, RT为 100:1; 该聚合路由保存到 RD为 100:1的 RD 路由表中。  The route 10.1.0.0/16 and 10.2.0.0/16 in the RD routing table with the RD of 100:1 generates the route 10.0.0.0/8, and the RT is 100:1. The aggregated route is saved to the RD with the RD of 100:1. In the routing table.
RD为 100:2的 RD路由表中的路由 20.1.0.0/16、 20.2.0.0/16聚合产 生 20.0.0.0/8, RT为 100:2; 该聚合路由保存到 RD为 100:2的 RD路由 表中。  The route with the RD of 100:2 in the RD routing table is 20.0.1.0/16, 20.2.0.0/16, which generates 20.0.0.0/8, and the RT is 100:2. The aggregated route is saved to the RD route with the RD of 100:2. In the table.
步骤 604,在每个 RD路由表对应的 RD FIB表中加入被路由聚合抑 制的原始路由。  Step 604: Add the original route suppressed by the route aggregation to the RD FIB table corresponding to each RD routing table.
本步骤中, 在 RD为 100:1的 RD FIB表中加入 FTN项, 每个 FTN 项对应一个被抑制的原始路由:  In this step, an FTN entry is added to the RD FIB table with an RD of 100:1, and each FTN entry corresponds to a suppressed original route:
RD 100:1 10.1.0.0/16 下- -跳 PE-1 出标签 Lm RT 100:1; RD 100:1 10.1.0.0/16 Down--hop PE-1 Out Label Lm RT 100:1;
RD 100:1 10.2.0.0/16 下- -跳 PE-2 出标签 Lm RT 100:1; 在 RD为 100:2的 RD FIB表中加入 FTN项: RD 100:1 10.2.0.0/16 Down--hop PE-2 Outbound Lm RT 100:1; Add FTN entry in the RD FIB table with RD 100:2:
RD 100:2 20.1.0.0/16 下- -跳 PE-1 出标签 Ln RT 100:2; RD 100:2 20.1.0.0/16 Down--hop PE-1 Out Label Ln RT 100:2;
RD 100:2 20.2.0.0/16 下一一跳 PE-2 出标签 Ln RT 100:2。 步骤 605, ASBR- 1为 RD路由表分配入标签, 并创建该入标签操作 类型为 POP的 ILM。 RD路由表中的聚合路由均使用为其所属 RD路由 表分配的入标签。 RD 100:2 20.2.0.0/16 Next hop PE-2 out label Ln RT 100:2. Step 605: ASBR-1 assigns an inbound label to the RD routing table, and creates an ILM whose inbound label operation type is POP. Aggregated routes in the RD routing table use the ingress label assigned to the RD routing table to which they belong.
本步骤中, ASBR-1为 RD是 100:1的 RD路由表分配入标签 Lj; 为 Lj创建 ILM项; 为 RD为 100:2的 RD路由表分配入标签 Lk; 为 Lk创 建 ILM项。 上述两个 ILM项分别包括:  In this step, ASBR-1 assigns the label Lj to the RD routing table with the RD of 100:1; creates the ILM entry for Lj; assigns the label Lk to the RD routing table with the RD of 100:2; creates the ILM entry for Lk. The above two ILM items include:
入标签 Lj 操作类型 POP RD 100:1;  Incoming label Lj operation type POP RD 100:1;
入标签 Lk 操作类型 POP RD 100:2。  Incoming label Lk operation type POP RD 100:2.
可见, 本实例的 ASBR- 1只需为其从 PE接收到的路由分配两个标 签, 创建 2个 ILM。 而现有技术, ASBR- 1要为其从 PE接收到的路由分 配 4个入标签,创建 4个 ILM。可见采用本发明实施例不仅减少了 ASBR 向外发送的路由数量, 而且减少了标签的需求量。  It can be seen that the ASBR-1 of this example only needs to assign two labels to the route received from the PE to create two ILMs. In the prior art, the ASBR-1 assigns 4 ingress labels to the routes received from the PE to create 4 ILMs. It can be seen that the embodiment of the present invention not only reduces the number of routes sent by the ASBR, but also reduces the demand for labels.
步骤 606, ASBR-1将自身作为发布路由的下一跳节点, 将确定的聚 合路由发布给 ASBR-2。  Step 606: The ASBR-1 advertises the determined aggregation route to the ASBR-2 as the next hop node that advertises the route.
ASBR-1发布给 ASBR-2的聚合路由为:  The aggregation route advertised by ASBR-1 to ASBR-2 is:
RD 100:1 10.0.0.0/8 下一跳 ASBR-1 入标签 Lj RT 100:1;  RD 100:1 10.0.0.0/8 Next hop ASBR-1 Incoming label Lj RT 100:1;
RD 100:2 20.0.0.0/8 下一跳 ASBR-1 入标签 Lk RT 100:2;  RD 100:2 20.0.0.0/8 Next hop ASBR-1 Incoming label Lk RT 100:2;
可见, ASBR-1 只需将两条携带标签的 VPN-IPv4 路由发布给 ASBR-2„ 而采用现用技术进行路由发布, 在 PE-1和 PE-2配置的 VPN 实例相同的情况下, ASBR-1 需要向 ASBR-2 发布 4 条携带标签的 VPN-IPv4路由。因此本实例 ASBR-2接收和保存的路由减少为原来的一 半, 且 ASBR-2向其自治系统内的 PE所发布的路由也减少为原来的一 半。 步骤 607,当 ASBR-1接收到 ASBR-2发来的携带标签的 VPN报文, 根据报文所携带的入标签查找对应的 ILM, 根据该 ILM从对应的 FIB 表中查找出该报文的转发路由, 根据转发路由转发该报文。 It can be seen that the ASBR-1 only needs to advertise the two VPN-IPv4 routes carrying the label to the ASBR-2. The current technology is used for the route advertisement. In the case that the VPN instances configured on PE-1 and PE-2 are the same, ASBR -1 A VPN-IPv4 route carrying the label is required to be advertised to the ASBR-2. Therefore, the route received and saved by the ASBR-2 is reduced to half of the original, and the route advertised by the ASBR-2 to the PE in the autonomous system is Also reduced to half of the original. Step 607: When the ASBR-1 receives the VPN packet carrying the label sent by the ASBR-2, searches for the corresponding ILM according to the inbound label carried in the packet, and finds the packet according to the ILM from the corresponding FIB table. Forward the route and forward the packet according to the forwarding route.
本实例中, 当 ASBR-1接收到来自 ASBR-2的 VPN报文时,假设该 VPN报文的标签栈顶的标签 Lj , 则 ASBR-1根据该标签 Lj查到对应的 ILM, 根据该 ILM中 RD为 100:1 , 查找到 RD为 100:1的 RD FIB表; 再根据该 ILM中操作类型 POP的指示将报文标签弹出,得到 IP报文头; 根据 IP报文头中的目的地址到 RD为 100:1的 RD FIB表中, 采用最长 匹配的方法, 匹配到相应的原始路由, 并将匹配的原始路由作为 VPN 报文的转发路由。 假设得到的 IP报文目的地址为 10.1.1.2/32, 则在 RD 为 100:1的 RD FIB表中匹配到以下原始路由:  In this example, when the ASBR-1 receives the VPN packet from the ASBR-2 and assumes the label Lj at the top of the label stack of the VPN packet, the ASBR-1 finds the corresponding ILM according to the label Lj, according to the ILM. The RD is 100:1, and the RD FIB table with the RD of 100:1 is found. Then, according to the indication of the operation type POP in the ILM, the packet label is popped up to obtain an IP packet header; according to the destination address in the IP packet header. In the RD FIB table with the RD of 100:1, the longest matching method is used to match the original route, and the matching original route is used as the forwarding route of the VPN packet. Assuming that the destination address of the obtained IP packet is 10.1.1.2/32, the following original route is matched in the RD FIB table with the RD of 100:1:
RD 100:1 10.1.0.0/16 下一跳 PE-1 出标签 Lm RT100:1; 贝' J , 根据该原始路由, 将新的出标签 Lm放入 VPN报文的标签栈, 并根据下一跳 PE-1将报文转发到正确的 PE。  RD 100:1 10.1.0.0/16 Next hop PE-1 outgoing label Lm RT100:1; B'J, according to the original route, put the new outgoing label Lm into the label stack of the VPN packet, and according to the next The PE-1 forwards the packet to the correct PE.
为实现图 3示出的路由聚合方法, 本发明提供了一种自治系统边界 路由器。图 7为本发明自治系统边界路由器实施例一的组成结构示意图, 该自治系统边界路由器包括路由聚合处理单元 701和标签分配单元 702。  To implement the route aggregation method illustrated in Figure 3, the present invention provides an autonomous system border router. FIG. 7 is a schematic structural diagram of a first embodiment of an autonomous system border router according to the present invention. The autonomous system border router includes a route aggregation processing unit 701 and a label allocation unit 702.
路由聚合处理单元 701 , 用于根据接收自多个 PE的原始路由, 生成 聚合路由; 为聚合路由分配入标签后, 将携带有入标签的聚合路由发送 给标签分配单元 702。  The route aggregation processing unit 701 is configured to generate an aggregation route according to the original route received from multiple PEs. After the label is allocated to the aggregation route, the aggregation route carrying the inbound label is sent to the label allocation unit 702.
标签分配单元 702, 用于为接收自路由聚合处理单元 701的每个聚 合路由分配入标签, 生成携带入标签的聚合路由。  The label allocating unit 702 is configured to allocate an inbound label for each aggregated route received from the route aggregation processing unit 701, and generate an aggregated route carrying the incoming label.
为实现图 4示出的报文转发方法, 还需要在上述 ASBR的组成结构 中添加实现报文转发的相关模块。 其具体实施方式如图 8所示。  In order to implement the packet forwarding method shown in FIG. 4, it is also required to add a related module for implementing packet forwarding in the composition of the foregoing ASBR. The specific embodiment is shown in FIG. 8.
图 8为本发明自治系统边界路由器实施例二的组成结构示意图。 参 见图 8, 本实施例的 ASBR包括路由聚合处理单元 801、 标签分配单元 802、 路由发布单元 803、 对应关系记录单元 804、 存储单元 805和报文 转发单元 806。 FIG. 8 is a schematic structural diagram of a second embodiment of an autonomous system border router according to the present invention. Reference As shown in FIG. 8, the ASBR of this embodiment includes a route aggregation processing unit 801, a label distribution unit 802, a route issuing unit 803, a correspondence relationship recording unit 804, a storage unit 805, and a message forwarding unit 806.
与图 7示出的自治系统边界路由器实施例一不同之处在于, 本实施 例中 ASBR进一步包括对应关系记录单元 804、 存储单元 805和报文转 发单元 806。 其中,  The difference from the embodiment 1 of the autonomous system border router shown in FIG. 7 is that the ASBR in this embodiment further includes a correspondence relationship recording unit 804, a storage unit 805, and a message forwarding unit 806. among them,
对应关系记录单元 804, 用于接收标签分配单元 804发送的携带入 标签的聚合路由, 从路由聚合处理单元 801中获取携带入标签的聚合路 由对应的原始路由, 再将为聚合路由分配的入标签与该聚合路由对应的 原始路由之间的对应关系记录在存储单元 805中。  The correspondence relationship recording unit 804 is configured to receive the aggregated route carried by the label distribution unit 804 and carry the inbound label, and obtain the original route corresponding to the aggregated route carrying the label from the route aggregation processing unit 801, and then assign the inbound label to the aggregated route. The correspondence between the original routes corresponding to the aggregated route is recorded in the storage unit 805.
存储单元 805 , 用于存储为聚合路由分配的入标签和该聚合路由对 应的原始路由之间的对应关系。  The storage unit 805 is configured to store a correspondence between an inbound label allocated for the aggregated route and an original route corresponding to the aggregated route.
文转发单元 806, 用于接收其它自治系统的 ASBR发来的携带入 标签的报文, 根据报文所携带的入标签, 从存储单元 805中的对应关系 中, 查找入标签对应的原始路由, 并从查找到的原始路由中获取报文的 转发路由, 并转发该 4艮文。  The text forwarding unit 806 is configured to receive the packet carrying the label sent by the ASBR of the other autonomous system, and find the original route corresponding to the label from the corresponding relationship in the storage unit 805 according to the ingress label carried in the packet. And obtain the forwarding route of the packet from the original route that is found, and forward the message.
为了实现图 5示出的报文转发方法, 可以采用图 8示出的自治系统 边界路由器组成结构。 在存储单元 805中存储各 RD对应的 RD FIB表 和存储有各入标签对应的 ILM的 ILM表。 该存储单元 805还存储有各 RD对应的 RD路由表。 每一个 RD FIB表对应一个 RD路由表。  In order to implement the message forwarding method shown in FIG. 5, the autonomous system border router configuration shown in FIG. 8 may be employed. The storage unit 805 stores the RD FIB table corresponding to each RD and the ILM table in which the ILM corresponding to each inbound label is stored. The storage unit 805 also stores an RD routing table corresponding to each RD. Each RD FIB table corresponds to an RD routing table.
下面对照存储单元 805所存储的各种表, 对自治系统边界路由器实 施例二其它组成单元的工作原理进行相应的说明。  The working principle of the other component units of the autonomous system border router embodiment 2 will be described below in comparison with the various tables stored in the storage unit 805.
其中,路由聚合处理单元 801接收各 PE的原始路由,对 RD相同的 原始路由进行聚合, 将聚合路由发送给标签分配单元 802, 同时将聚合 路由及其对应的原始路由发送给对应关系记录单元 804。 标签分配单元 802为接收的每一聚合路由分配一入标签, 将该入标 并将该携带入标签的聚合路由发送给对应关系记录单元 804。 The route aggregation processing unit 801 receives the original route of each PE, and aggregates the original routes of the same RD, and sends the aggregated route to the label distribution unit 802, and sends the aggregated route and its corresponding original route to the corresponding relationship record unit 804. . The label assigning unit 802 allocates an inbound label to each of the received aggregated routes, and sends the aggregated route that carries the incoming label to the corresponding relationship recording unit 804.
对应关系记录单元 804, 接收路由聚合处理单元 801发送的聚合路 由及其对应的原始路由, 还接收标签分配单元 802发送的携带入标签的 聚合路由。 将聚合路由对应的原始路由, 按照 RD的不同存入存储单元 805中相应的 RD FIB表中; 为聚合路由携带的入标签创建操作类型为 POP的 ILM, 将 ILM存入存储单元 805的 ILM表中; 将聚合路由及其 对应的原始路由存入存储单元 805中相应的 RD路由表中。  The correspondence relationship recording unit 804 receives the aggregated route sent by the route aggregation processing unit 801 and its corresponding original route, and also receives the aggregated route carried by the label allocation unit 802 and carries the incoming label. The original route corresponding to the aggregated route is stored in the corresponding RD FIB table in the storage unit 805 according to the RD; the ILM of the operation type POP is created for the inbound label carried in the aggregated route, and the ILM is stored in the ILM table of the storage unit 805. The aggregated route and its corresponding original route are stored in the corresponding RD routing table in the storage unit 805.
文转发单元 806, 在接收到其它 ASBR转发的 VPN 文时, 用于 根据 ILM的指示弹出该入标签, 得到 IP报文; 同时根据 ILM中的 RD 在存储单元 805中查找到与该 RD对应的 RD FIB表; 再将 IP报文头中 的目的地址, 与查到的 RD FIB表中 FTN项的 IPv4地址前缀进行最长 匹配, 根据匹配到的 FTN项将 VPN报文通过 SP骨干网转发给相应的 PE。  The text forwarding unit 806, when receiving the VPN text forwarded by the other ASBR, is configured to pop the inbound label according to the ILM indication to obtain an IP packet; and simultaneously find the corresponding RD in the storage unit 805 according to the RD in the ILM. RD FIB table; the destination address in the IP packet header is matched with the IPv4 address prefix of the FTN entry in the RD FIB table. The VPN packet is forwarded to the SP backbone network according to the matched FTN entry. Corresponding PE.
由以上所述可以看出, 本发明实施例所提供的路由聚合方法、 基于 路由聚合的报文转发以及能够实现路由聚合以及报文转发的 ASBR, 都 能够有效的减少自治系统向外发布的 VPN-IPv4 路由数量, 减轻全网 ASBR和 PE设备的路由容量负担。 节省了 ASBR的标签资源, 避免创 建大量的 ILM表项, 减轻了转发层面的负担。 进一步的, 由于减少了全 网 VPN-IPv4路由数量以及 ASBR上的 ILM表项,因此节省了内存资源, 减少转发信息在主控板和接口板之间的刷新, 提高了网络设备在运行中 的稳定度。 当本发明实施例路由聚合方案应用在运营商大型跨域 VPN 网络中时,可以有效解决 ASBR上路由容量不足、标签资源不足的问题, 间接增加了 ASBR设备的路由容量和稳定性。 It can be seen from the above that the route aggregation method, the route forwarding based on the route aggregation, and the ASBR that can implement route aggregation and packet forwarding can effectively reduce the VPN issued by the autonomous system. - The number of IPv4 routes reduces the routing capacity of the ASBR and PE devices on the entire network. The label resources of the ASBR are saved, and a large number of ILM entries are avoided, which reduces the burden on the forwarding layer. Further, the number of VPN-IPv4 routes on the entire network and the ILM entries on the ASBR are reduced, thereby saving memory resources, reducing the refresh of forwarding information between the main control board and the interface board, and improving the operation of the network device. stability. When the route aggregation solution is applied to a large-scale cross-domain VPN network of the carrier, the problem that the routing capacity is insufficient and the label resources are insufficient on the ASBR can be effectively solved. Indirectly increases the routing capacity and stability of ASBR devices.
综上所述, 以上仅为本发明的较佳实施例而已, 并非用于限定本发 明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换、 改进等, 均应包含在本发明的保护范围之内。  In conclusion, the above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种路由聚合方法, 应用于包括至少一个自治系统边界路由器 ( ASBR )的网络, 所述 ASBR与至少一个提供商边界设备 ( PE )连接, 其特征在于, 该方法包括: A route aggregation method is applied to a network including at least one autonomous system border router (ASBR), and the ASBR is connected to at least one provider border device (PE), and the method includes:
ASBR接收来自 PE的多条原始路由, 将路由区分符 (RD )相同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 为每个聚合路由分 配一标签, 并在所述聚合路由中加入所述标签, 生成携带标签的聚合路 由。  The ASBR receives multiple original routes from the PE, aggregates the original routes of the same subnet with the same route distinguisher (RD), generates an aggregated route, assigns a label to each aggregated route, and adds the label to the aggregated route. The label generates an aggregated route carrying the label.
2、 根据权利要求 1所述的方法, 其特征在于, 在 ASBR接收所述 原始路由之前, 该方法进一步包括: PE对所要发送的路由进行聚合后, 发送给 ASBR;  The method according to claim 1, wherein before the ASBR receives the original route, the method further comprises: the PE aggregating the route to be sent, and sending the route to the ASBR;
所述原始路由为 PE聚合后的路由。  The original route is a route after the PE is aggregated.
3、根据权利要求 1所述的方法, 其特征在于, 所述为每个聚合路由 分配一标签为:  The method according to claim 1, wherein the assigning a label to each aggregated route is:
为每个聚合路由分别分配互不相同的标签;  Assigning different labels to each aggregated route;
或者, 为 RD相同的聚合路由分配相同的标签。  Or, assign the same label to the same aggregated route of the RD.
4、 根据权利要求 1所述的方法, 其特征在于, 所述将 RD相同、 属 于相同子网的原始路由进行聚合, 生成聚合路由为: ASBR根据所述原 始路由的 RD和 IPv4地址前缀 /掩码, 将属于相同子网的多个 IPv4地址 前^ /掩码,合并成一个掩码较短的 IPv4地址前 ¾ /掩码,将合并后的 IPv4 地址前缀 /掩码确定为聚合路由的 IPv4地址前缀 /掩码,将原始路由的 RD 确定为聚合路由的 RD , 根据原始路由的路由目标 RT确定聚合路由的 RT。  The method according to claim 1, wherein the original routes of the same RD and the same subnet are aggregated to generate an aggregated route: the ASBR prefixes/masks the RD and the IPv4 address according to the original route. The code combines multiple IPv4 address pre-/masks belonging to the same subnet into a short masked IPv4 address before the mask, and the merged IPv4 address prefix/mask is determined as the aggregated route of IPv4. The address prefix/mask determines the RD of the original route as the RD of the aggregated route, and determines the RT of the aggregated route according to the route target RT of the original route.
5、根据权利要求 4所述的方法, 其特征在于, 所述确定聚合路由的 RT为: The method according to claim 4, wherein the determining the aggregated route RT is:
当生成所述聚合路由的各原始路由的 RT相同时,将该相同的 RT作 为聚合路由的 RT;  When the RTs of the original routes of the aggregated route are the same, the same RT is used as the RT of the aggregated route;
当生成所述聚合路由的各原始路由的 RT不同时, 取各原始路由的 RT的全集作为聚合路由的 RT, 或者取各原始路由的 RT的交集作为聚 合路由的 RT, 或者手工设置聚合路由的 RT; 或者根据路由策略设置聚 合路由的 RT。  When the RTs of the original routes of the aggregation route are different, the complete set of RTs of the original routes is taken as the RT of the aggregated route, or the intersection of the RTs of the original routes is taken as the RT of the aggregated route, or the aggregated route is manually set. RT; or set the RT of the aggregated route according to the routing policy.
6、 一种 文转发方法, 应用于包括至少一个 ASBR 的网络, 所述 ASBR与至少一个 PE连接, 其特征在于, 该方法包括:  A text forwarding method is applied to a network including at least one ASBR, where the ASBR is connected to at least one PE, and the method includes:
第一 ASBR接收来自至少一个 PE的至少一条原始路由, 将 RD相 同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 为每个聚合路 由分配一标签, 并在所述聚合路由中加入所述标签, 生成携带标签的聚 合路由;  The first ASBR receives at least one original route from the at least one PE, aggregates the original routes of the same RD, and generates an aggregated route, assigns a label to each aggregated route, and adds the label to the aggregated route. The label is generated, and an aggregated route carrying the label is generated.
存储为聚合路由分配的标签和该聚合路由对应的原始路由之间的对 应关系;将所述携带标签的聚合路由发布给另一自治系统的第二 ASBR;  The corresponding relationship between the label assigned to the aggregated route and the original route corresponding to the aggregated route; the aggregated route carrying the label is advertised to the second ASBR of another autonomous system;
所述第一 ASBR接收到所述第二 ASBR发来的携带标签的报文,根 据报文所携带的标签, 从所述对应关系中, 获取对应的原始路由; 从获 取的所述原始路由中获取所述报文转发路由; 根据所述转发路由转发该 报文。  The first ASBR receives the packet carrying the label from the second ASBR, and obtains a corresponding original route from the corresponding relationship according to the label carried in the packet; Obtaining the packet forwarding route; forwarding the packet according to the forwarding route.
7、 根据权利要求 6所述的方法, 其特征在于, 该方法进一步包括, 第一 ASBR预先针对不同 RD分别创建对应的转发信息库(FIB )表; 所述存储为聚合路由分配的标签和该聚合路由对应的原始路由之间 的对应关系的步骤包括:记录为聚合路由分配的标签和 RD的对应关系; 将所述聚合路由对应的原始路由记录在该聚合路由的 RD对应的 FIB表 中; 所述获取所述报文的转发路由的步骤包括: 根据报文所携带的标 签,从所述对应关系中查找对应的 RD; 从所述查找到的 RD对应的 FIB 表中获取原始路由, 从所述获取的原始路由中获取所述报文的转发路 由; 根据所述转发路由转发该报文。 The method according to claim 6, wherein the method further comprises: the first ASBR separately creating a corresponding forwarding information base (FIB) table for different RDs; the storing is a label allocated by the aggregated route and the The step of the corresponding relationship between the original routes corresponding to the aggregated route includes: recording the correspondence between the label and the RD that are allocated for the aggregated route; and recording the original route corresponding to the aggregated route in the FIB table corresponding to the RD of the aggregated route; The step of obtaining the forwarding route of the packet includes: searching for the corresponding RD from the corresponding relationship according to the label carried in the packet; and obtaining the original route from the FIB table corresponding to the found RD, Acquiring the forwarding route of the packet in the obtained original route; forwarding the packet according to the forwarding route.
8、根据权利要求 6或 7所述的方法, 其特征在于, 所述原始路由中 携带 IPv4地址前缀或掩码;  The method according to claim 6 or 7, wherein the original route carries an IPv4 address prefix or a mask;
所述获取所述报文的转发路由包括: 将所述报文的目的 IP地址, 与 所述获取的原始路由中携带的 IPv4地址前缀进行匹配,将匹配成功的原 始路由作为所述报文的转发路由。  The obtaining the forwarding route of the packet includes: matching the destination IP address of the packet with the IPv4 address prefix carried in the obtained original route, and using the original route that is successfully matched as the packet Forward the route.
9、 一种自治系统边界路由器, 应用于包括多个 ASBR 的网络, 所 述每个 ASBR与多个 PE连接, 其特征在于, 该 ASBR包括路由聚合处 理单元和标签分配单元;  An autonomous system border router, which is applied to a network including multiple ASBRs, where each ASBR is connected to multiple PEs, and the ASBR includes a route aggregation processing unit and a label allocation unit.
所述路由聚合处理单元, 用于接收来自多个 PE的多条原始路由, 将 RD相同、 属于相同子网的原始路由进行聚合, 生成聚合路由, 发送 给标签分配单元;  The route aggregation processing unit is configured to receive multiple original routes from multiple PEs, and aggregate the original routes that belong to the same subnet, and generate an aggregation route, and send the aggregation route to the label distribution unit.
所述标签分配单元, 用于为接收自所述路由聚合处理单元的每个聚 合路由分配一标签, 并在所述聚合路由中加入所述标签, 生成携带标签 的聚合路由。  The label allocating unit is configured to allocate a label for each aggregated route received from the route aggregation processing unit, and add the label to the aggregated route to generate an aggregated route carrying the label.
10、 根据权利要求 9所述的自治系统边界路由器, 其特征在于, 该 自治系统边界路由器进一步包括路由发布单元, 用于将所述携带标签的 聚合路由发送给另一自治系统的 ASBR。  The autonomous system border router according to claim 9, wherein the autonomous system border router further comprises a route issuing unit, configured to send the label-carrying aggregation route to an ASBR of another autonomous system.
11、根据权利要求 10所述的自治系统边界路由器, 其特征在于, 该 自治系统边界路由器进一步包括存储单元、 对应关系记录单元和报文转 发单元;  The autonomous system border router according to claim 10, wherein the autonomous system border router further comprises a storage unit, a correspondence relationship recording unit, and a message forwarding unit;
所述对应关系记录单元, 用于接收所述标签分配单元的所述携带标 签的聚合路由 , 从所述路由聚合处理单元中获取所述携带标签的聚合路 由对应的原始路由, 再将为所述聚合路由分配的标签以及该聚合路由对 应的原始路由记录在所述存储单元中; The correspondence relationship recording unit is configured to receive the carrying label of the label allocating unit And the original route corresponding to the aggregated route carrying the label is obtained from the route aggregation processing unit, and the label allocated for the aggregated route and the original route corresponding to the aggregated route are recorded in the storage unit. in;
所述存储单元, 用于存储为聚合路由分配的标签和该聚合路由对应 的原始路由之间的对应关系; 向所述 文转发单元返回标签对应的原始 路由;  The storage unit is configured to store a correspondence between a label allocated for an aggregated route and an original route corresponding to the aggregated route; and return, to the text forwarding unit, an original route corresponding to the label;
所述报文转发单元, 用于接收另一自治系统的 ASBR发来的携带标 签的报文,根据报文所携带的标签,从所述存储单元存储的对应关系中, 查找对应的原始路由, 并从查找到的原始路由中获取所述报文的转发路 由, 根据所述转发路由转发所述报文。  The packet forwarding unit is configured to receive a packet carrying a label sent by an ASBR of another autonomous system, and search for a corresponding original route from a correspondence stored in the storage unit according to the label carried in the packet. The forwarding route of the packet is obtained from the original route that is found, and the packet is forwarded according to the forwarding route.
PCT/CN2008/070201 2007-02-09 2008-01-28 A method for aggregating routes, a method for forwarding messages and an autonomous system border router WO2008098493A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710080106A CN100596107C (en) 2007-02-09 2007-02-09 Packet forwarding method and border router of autonomous system
CN200710080106.7 2007-02-09

Publications (1)

Publication Number Publication Date
WO2008098493A1 true WO2008098493A1 (en) 2008-08-21

Family

ID=38701303

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070201 WO2008098493A1 (en) 2007-02-09 2008-01-28 A method for aggregating routes, a method for forwarding messages and an autonomous system border router

Country Status (2)

Country Link
CN (1) CN100596107C (en)
WO (1) WO2008098493A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824633A (en) * 2020-06-19 2021-12-21 华为技术有限公司 Method for releasing route in campus network and network equipment
CN114338525A (en) * 2021-12-28 2022-04-12 中国电信股份有限公司 Automatic route aggregation method and device, electronic equipment and storage medium

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100596107C (en) * 2007-02-09 2010-03-24 华为技术有限公司 Packet forwarding method and border router of autonomous system
CN101394333B (en) * 2007-09-17 2016-01-20 华为技术有限公司 The method E-Packeted, device and network system
CN101237376A (en) * 2008-01-24 2008-08-06 华为技术有限公司 A label acquisition method of virtual private network and independent system boundary routing device
CN101227405B (en) * 2008-02-18 2011-12-07 中兴通讯股份有限公司 Route assemblage method and system
CN101534239B (en) 2008-03-13 2012-01-25 华为技术有限公司 Method and device for installing routers
WO2010069261A1 (en) 2008-12-19 2010-06-24 华为技术有限公司 Method, device and system for processing border gateway protocol route
CN101442491B (en) * 2008-12-26 2011-03-30 杭州华三通信技术有限公司 Route transmission method and routing device for nesting VPN
CN101572669A (en) * 2009-05-27 2009-11-04 中兴通讯股份有限公司 Transmitting method of VPN message as well as allocating and deleting method of the router marks thereof
CN101674241B (en) * 2009-09-15 2012-07-04 杭州华三通信技术有限公司 Method and equipment for avoiding RIP loop circuit in CE dual-homing network
CN102075419B (en) * 2010-12-27 2014-06-18 杭州华三通信技术有限公司 Method for generating and transmitting three-layer virtual special network equative routing and edge router
CN103026667B (en) * 2011-07-28 2016-05-25 华为技术有限公司 A kind of label distribution method, device and system
CN102244615B (en) * 2011-08-15 2014-06-04 福建星网锐捷网络有限公司 Forwarding entry sending method, device and system as well as autonomous system border router
CN103001872B (en) * 2011-09-13 2016-03-30 华为技术有限公司 A kind of label distribution method and polymerization unit
CN102882785B (en) * 2012-09-26 2015-07-08 华为技术有限公司 Area border router and node protection method based on border gateway protocol
CN103124236B (en) * 2013-02-27 2015-12-23 迈普通信技术股份有限公司 The management method of route and label and device
CN104219142B (en) * 2013-05-30 2017-06-16 中国电信股份有限公司 Access method, system and the DCBR of the virtual machine migrated across IDC
CN105337870B (en) * 2014-08-15 2018-11-27 新华三技术有限公司 A kind of route issuing method and device
CN107547374B (en) * 2017-06-01 2020-04-28 新华三技术有限公司 Aggregation route processing method and device
CN109005110B (en) * 2018-08-29 2021-05-28 新华三技术有限公司合肥分公司 Method and device for generating aggregation route
CN110896379B (en) 2018-09-13 2022-11-08 中兴通讯股份有限公司 Message sending method, binding relationship notification method, device and storage medium
CN112187641B (en) * 2020-06-24 2022-03-11 华为技术有限公司 Routing information sending method, message sending method and related device
JP2023534051A (en) * 2020-07-17 2023-08-07 華為技術有限公司 Route announcement method and related devices
CN112468395B (en) * 2020-12-08 2022-07-01 信而泰(无锡)信息技术有限公司 Method and device for processing BGP (border gateway protocol) route
CN113518034B (en) * 2021-05-07 2023-08-15 中国移动通信集团陕西有限公司 Method, device, equipment and storage medium for route detection
CN113765803B (en) * 2021-08-05 2023-10-24 新华三大数据技术有限公司 Route release method and device and network equipment
CN114900459B (en) * 2022-06-17 2023-12-05 平安科技(深圳)有限公司 Route multiplexing method, device, equipment and storage medium
CN115412528A (en) * 2022-08-08 2022-11-29 北京达佳互联信息技术有限公司 Host routing address storage method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414749A (en) * 2002-08-23 2003-04-30 华为技术有限公司 Three layer virtual private network and its construction method
CN1716901A (en) * 2004-06-30 2006-01-04 华为技术有限公司 Virtual special network system of mixed station mixed skeleton network and its realizing method
CN1794691A (en) * 2004-12-22 2006-06-28 阿尔卡特公司 Virtual private networking methods and systems
WO2006084956A1 (en) * 2005-02-14 2006-08-17 Teliasonera Ab Method for providing virtual private network services between autonomous systems
US20060262735A1 (en) * 2005-05-23 2006-11-23 James Guichard Hierarchical label distribution for inter-area summarization of edge-device addresses
CN101014014A (en) * 2007-02-09 2007-08-08 华为技术有限公司 Routing aggregation method, packet transmitting method and border router of autonomous system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414749A (en) * 2002-08-23 2003-04-30 华为技术有限公司 Three layer virtual private network and its construction method
CN1716901A (en) * 2004-06-30 2006-01-04 华为技术有限公司 Virtual special network system of mixed station mixed skeleton network and its realizing method
CN1794691A (en) * 2004-12-22 2006-06-28 阿尔卡特公司 Virtual private networking methods and systems
WO2006084956A1 (en) * 2005-02-14 2006-08-17 Teliasonera Ab Method for providing virtual private network services between autonomous systems
US20060262735A1 (en) * 2005-05-23 2006-11-23 James Guichard Hierarchical label distribution for inter-area summarization of edge-device addresses
CN101014014A (en) * 2007-02-09 2007-08-08 华为技术有限公司 Routing aggregation method, packet transmitting method and border router of autonomous system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113824633A (en) * 2020-06-19 2021-12-21 华为技术有限公司 Method for releasing route in campus network and network equipment
CN114338525A (en) * 2021-12-28 2022-04-12 中国电信股份有限公司 Automatic route aggregation method and device, electronic equipment and storage medium
CN114338525B (en) * 2021-12-28 2023-07-21 中国电信股份有限公司 Automatic route aggregation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101014014A (en) 2007-08-08
CN100596107C (en) 2010-03-24

Similar Documents

Publication Publication Date Title
WO2008098493A1 (en) A method for aggregating routes, a method for forwarding messages and an autonomous system border router
CN110830352B (en) Method and device for realizing VPN cross-domain and boundary node
US10880203B2 (en) Centralized segment routing dataplane based backup path validation
US8085690B1 (en) Managing routing information in a hub-and-spokes network
US7710970B2 (en) Source identifier for MAC address learning
JP5237391B2 (en) VPN implementation over a link state protocol controlled Ethernet network
JP3699837B2 (en) Router device and label switch path control method
US8611359B1 (en) Scaling MPLS across areas of an autonomous system using labeled interior border gateway protocol
CN111385207B (en) Service data forwarding method, network device and network system
CN110324226A (en) Improve the aliasing behavior of more host site flows in ether Virtual Private Network network
US8125926B1 (en) Inter-autonomous system (AS) virtual private local area network service (VPLS)
EP1811728B1 (en) Method, system and device of traffic management in a multi-protocol label switching network
US11792044B2 (en) Offset label for aggregating multicasts from multiple virtual private networks on a single multicast distribution tree
WO2008009223A1 (en) A method and router for route distribution
US11799772B2 (en) Support for multiple virtual networks over an underlay network topology
CN106850380B (en) Method and system for realizing three-layer virtual special network of multi-protocol label switching
WO2013139270A1 (en) Method, device, and system for implementing layer3 virtual private network
CN102474451B (en) Connect internal layer and outer MPLS label
WO2017114158A1 (en) Method and device for publishing tenant routing in nvo3 network
Brittain et al. MPLS virtual private networks
JP2012175198A (en) Circulation route setting system and method
WO2023050981A1 (en) Allocation method and apparatus for virtual private network service identifier, and message processing method and apparatus
CN115277304A (en) Flow forwarding method and device
CN117692384A (en) Method for realizing VPN local interview and related device
Farrel et al. MPLS VIRTUAL PRIVATE NETWORKS

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08706578

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08706578

Country of ref document: EP

Kind code of ref document: A1