WO2013037280A1 - 一种标签分配方法及聚合设备 - Google Patents

一种标签分配方法及聚合设备 Download PDF

Info

Publication number
WO2013037280A1
WO2013037280A1 PCT/CN2012/081164 CN2012081164W WO2013037280A1 WO 2013037280 A1 WO2013037280 A1 WO 2013037280A1 CN 2012081164 W CN2012081164 W CN 2012081164W WO 2013037280 A1 WO2013037280 A1 WO 2013037280A1
Authority
WO
WIPO (PCT)
Prior art keywords
layer
aggregation
label
lsp
aggregation device
Prior art date
Application number
PCT/CN2012/081164
Other languages
English (en)
French (fr)
Inventor
王海波
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013037280A1 publication Critical patent/WO2013037280A1/zh

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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • H04L45/507Label distribution

Definitions

  • the present invention relates to the field of communication network technologies, and in particular, to a label distribution method and an aggregation device. Background technique
  • SPE Superstratum Provider Edge
  • UPE User-side Provider Edge
  • LSPs Label Switch Paths
  • the SPE needs to advertise all routes learned from the UPE to the NPE (Network Provider).
  • the edge of the network is the edge device of the network, and the label switched path is set up to guide the traffic to be forwarded to the corresponding UPE according to the LSP.
  • the greater the number of UPEs the greater the pressure on the SPE.
  • the ASBR Autonomous System Boundary Router
  • PE Provide Edge
  • the ASBR needs to assign a label to all the routes advertised by the other ASBRs and create an LSP.
  • the ASBR needs to allocate a large number of labels and create a large number of LSPs.
  • the label distribution is performed by pressing the one-hop allocation label technology. If SPE1 learns the route from UPE1 and UPE2 and sends it to NPE1, there are 10 UPE1 and UPE2. VPN, each VPN has 10 routes, and the technology of assigning labels by one-hop in the prior art can allocate a label to the same hop, the same next hop, and the same label. An LSP is set up. SPE1 needs to assign a label to 10 routes in each VPN on UPE1 and UPE2. A total of 20 labels need to be allocated to establish 20 LSPs.
  • Embodiments of the present invention provide a label distribution method and an aggregation device, which can reduce label allocation and save label resources.
  • a method for assigning labels including:
  • the aggregation device receives the routing message sent by the first edge device, where the routing message includes the private network route advertised by the first edge device;
  • the aggregation device allocates an aggregation label corresponding to the first edge device, and establishes a label switching path LSP according to the aggregation label, where the LSP is used by the aggregation device to receive the data carrying the aggregation label.
  • the message is transmitted to the first edge device.
  • An aggregation device comprising:
  • a routing message receiving unit configured to receive a routing message sent by the first edge device, where the routing message includes a private network route advertised by the first edge device;
  • a label allocation and LSP establishing unit configured to allocate an aggregation label corresponding to the first edge device, and establish an LSP according to the aggregation label, where the LSP is used by the aggregation device to receive the aggregation label
  • the data message is transmitted to the first edge device.
  • a second layer polymerization device comprising:
  • a routing message receiving unit configured to receive a routing message sent by the first layer aggregation device, where the routing message includes a private network route advertised by the first edge device;
  • a label allocation and LSP establishing unit configured to allocate a second layer aggregation label, and establish a second layer LSP corresponding to the second layer aggregation label, where the second layer LSP is used to set the second layer aggregation
  • the data packet carrying the second layer aggregation label received by the backup is transmitted to the first layer aggregation device.
  • a data packet forwarding method includes:
  • the first edge device sends a routing message to the aggregation device, where the routing message includes a private network route advertised by the first edge device;
  • the aggregation device receives the routing message
  • the aggregation device allocates an aggregation label corresponding to the first edge device, and establishes an LSP according to the aggregation label, where the LSP is used by the aggregation device to transmit the received data packet carrying the aggregation label.
  • the aggregation device sends the private network route and the aggregation label to the second edge device by using a routing message
  • the second edge device receives a routing message sent by the aggregation device
  • the aggregation label is carried in the data packet and sent to the aggregation device;
  • the aggregation device forwards the received data packet to the first edge device by using the LSP according to the aggregation label;
  • the first edge device sends the received data message to a corresponding destination.
  • a text forwarding system where the text forwarding system includes:
  • the aggregation device includes: an aggregation device routing message receiving unit, configured to receive a routing message sent by the first edge device, where the routing message includes the first Private network route advertised by the edge device;
  • a label allocation and LSP establishing unit configured to allocate an aggregation label corresponding to the first edge device, and establish an LSP according to the aggregation label, where the LSP is used by the aggregation device to receive the aggregation label Data message is transmitted to the first edge device;
  • a routing message sending unit configured to send the aggregated label to the second edge device by using a routing message.
  • the label distribution method and the aggregation device provided by the embodiment of the present invention, by receiving a routing message sent by the first edge device, assigning an aggregation label corresponding to the first edge device, and establishing an LSP according to the aggregation label, where the LSP is used. Receiving, by the aggregation device, the received data packet carrying the aggregation label to the first edge device.
  • the solution provided by the embodiment of the present invention can reduce the allocation of labels and correspondingly reduce the number of established LSPs, thereby saving label resources and reducing establishment compared with the prior art label allocation process. The purpose of the number of LSPs.
  • FIG. 1 is a schematic structural diagram of a system to which a label distribution method according to Embodiment 1 of the present invention is applied;
  • FIG. 2 is a flowchart of a label distribution method according to Embodiment 1 of the present invention.
  • FIG. 3 is a block diagram of an aggregation device according to Embodiment 1 of the present invention.
  • FIG. 4 is a flowchart of another method for allocating labels according to Embodiment 2 of the present invention
  • FIG. 5 is a block diagram of another aggregation device according to Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of a packet forwarding method according to Embodiment 3 of the present invention.
  • FIG. 7 is a block diagram of still another packet forwarding system according to Embodiment 3 of the present invention.
  • FIG. 8 is a block diagram of still another packet forwarding system according to Embodiment 3 of the present invention.
  • the embodiment of the invention provides a label distribution method, which is applicable to the scenario shown in FIG. 1 .
  • the first edge device can be an NPE or a UPE
  • the second edge device can be either an NPE or a UPE.
  • the first edge device is a UPE
  • the second edge device is an NPE
  • the first edge device is an NPE
  • the second edge device is a UPE
  • the aggregation device can be SPE or ASBR.
  • the first edge device is a UPE
  • the second edge device is an NPE
  • the aggregation device is an SPE as an example.
  • the method includes:
  • the aggregation device receives a routing message sent by the first edge device, where the routing message includes a private network route advertised by the first edge device.
  • the routing message includes a private network route advertised by the first edge device, and the private network route in the routing message includes information such as an RD (Route Di St inguisher) and a next hop address.
  • the routing message further includes a private network label that is allocated by the first edge device to the private network route. As shown in Figure 1, the routing message has an RD of 1 : 1 , the next address is 1. 1. 1. 1/ 32 , and the private label ( Labe l ) is 1025 .
  • the aggregation device allocates an aggregation label corresponding to the first edge device, and establishes an LSP according to the aggregation label, where the LSP is used by the aggregation device to receive the data packet carrying the aggregation label.
  • the text is transmitted to the first edge device.
  • the aggregation tag allocated by the aggregation device for all routing information received from the first edge device is the same for the first edge device, thereby achieving the purpose of reducing the number of allocated tags.
  • the aggregation device allocates an aggregation label 2000 for the first edge device, and then sends the RD, the next hop routing information, the private network label, and the aggregation label to the second edge device by using a routing message.
  • the routing message may be a routing update of the BGP (Border Gateway Protocol) protocol
  • the aggregation label may be a newly added attribute of the routing update message, or may be an extended label stack. Way to add in the route more In the label stack of the NLPI (Network Layer Reachabi ty Informa t ion) in the new packet.
  • the aggregation device allocates the first aggregation label
  • the private network route and the aggregation label are sent to the second edge device by using a routing message.
  • the embodiment of the present invention provides an aggregation device.
  • the aggregation device includes: a routing message receiving unit 301, a label allocation and an LSP establishing unit 302.
  • the routing message receiving unit 301 is configured to receive a routing message sent by the first edge device, where the routing message includes a private network route advertised by the first edge device;
  • a label allocation and LSP establishing unit 302 configured to allocate an aggregation label corresponding to the first edge device, and establish an LSP according to the aggregation label, where the LSP is used by the aggregation device to receive the aggregation The data message of the tag is transmitted to the first edge device.
  • the aggregation label assigned by the label allocation and LSP establishing unit 302 for all routing information received from the first edge device is the same for the first edge device, thereby achieving the purpose of reducing the number of allocated labels.
  • the aggregation device may further include a routing message sending unit, configured to send the aggregated label to the second edge device by using a routing message.
  • a routing message sending unit configured to send the aggregated label to the second edge device by using a routing message.
  • the assigned aggregate tag can be added to the routing message and sent to the second edge device.
  • the label distribution method and the aggregation device provided by the embodiment of the present invention, by receiving a routing message sent by the first edge device, assigning an aggregation label corresponding to the first edge device, and establishing an LSP according to the aggregation label, where the LSP is used. Receiving, by the aggregation device, the received data packet carrying the aggregation label to the first edge device.
  • the solution provided by the embodiment of the present invention can reduce the allocation of labels and correspondingly reduce the number of established LSPs, thereby saving label resources and reducing establishment compared with the prior art label allocation process. The purpose of the number of LSPs.
  • the aggregation device includes at least two layers of aggregation devices.
  • the aggregation device may be an SPE or an ASBR, where the first layer aggregation device may include at least Two polymerization devices, the present invention is for convenience of description
  • the aggregation device includes a first layer aggregation device and a second layer aggregation device, and the first layer aggregation device further includes two aggregation devices, where the label assigned by the first layer aggregation device may be Referring collectively to the first layer of aggregation tags, the tags assigned by the second layer of aggregation devices can be collectively referred to as the second layer of aggregation tags.
  • the first edge device may be an NPE or a UPE
  • the second edge device may be an NPE or a UPE.
  • the first edge device is an UPE
  • the second edge device is an NPE
  • the first edge device is an NPE
  • the second edge device is an NPE as an example for detailed description.
  • the method includes:
  • the layer 2 aggregation device receives the routing message sent by the first layer aggregation device.
  • the first edge device sends a routing message to the first layer aggregation device, where the routing message includes a private network route advertised by the first edge device, and the private network route in the routing message includes RD (Route Di And the information of the next hop address, and the routing information includes the private network label allocated by the first edge device for the private network route.
  • the routing message is a routing update message of the BGP protocol, and the aggregation label may be a newly added attribute of the routing update message, or may be added in the network layer of the routing update message in an extended label stack manner.
  • the next hop is available in the label stack of the NLPI (Network Layer Reachabi Li ty Information).
  • the first layer aggregation device includes two aggregation devices: a first first layer aggregation device and a second first layer aggregation device.
  • the message is transmitted to the first edge device.
  • the first first layer aggregation device allocates a first first layer aggregation label to the first edge device, and the second first layer aggregation device allocates a second first layer aggregation label to the first edge device; a first first layer LSP of a first layer aggregation device and corresponding to the second first layer a second first layer LSP, the first first layer LSP starting from the first first layer aggregation device, the first edge device as a destination, and the second first layer LSP
  • the first layer of the aggregation device is the starting point, and the first edge device is the destination.
  • the first layer LSP is used to send the data packet to the first edge device, where the second first When receiving the data packet carrying the second layer of the aggregation label, the layer aggregation device sends the data packet to the first edge device by using the second layer LSP.
  • the first first layer aggregation device and the second first layer aggregation device send the allocated first layer one aggregation tag and the second first layer aggregation tag to the second layer aggregation device by using a routing message. For example, the first layer aggregation device adds the first layer aggregation tag to the routing message, and sends the same to the layer 2 aggregation device along with the private network route and the private network label.
  • the second layer aggregation device allocates a second layer aggregation label, and establishes a second layer LSP corresponding to the second layer aggregation label, where the second layer LSP is used to receive the second layer aggregation device. Transmitting, by the second layer aggregation device, an aggregation label for all routing information received from the first layer aggregation device to the first layer aggregation device.
  • Each of the first layer of aggregation devices is identical, thereby achieving the goal of reducing the number of assigned tags.
  • the second layer aggregation device may allocate a first layer 2 aggregation label for the first layer layer aggregation device, a second layer layer aggregation label for the second layer layer aggregation device, and establish Corresponding to the second LSP corresponding to the first layer of the aggregation label and the third LSP corresponding to the second layer of the aggregation label, where the second LSP starts with the second layer aggregation device, with the first A layer of the aggregation device is the destination, and the third LSP starts from the second layer aggregation device and takes the second layer aggregation device as the destination.
  • the second layer aggregation device may also allocate only one second layer aggregation label for the first layer aggregation device. For example, when the first first layer aggregation device is in the active state and the second first layer aggregation device is in the standby state, a second layer aggregation label is allocated to the first layer aggregation device in the active state, and is established. Corresponding to the second layer LSP of the first layer 2 aggregation label, The second layer LSP takes the second layer aggregation device as a starting point and takes the first layer layer aggregation device as a destination.
  • the layer 2 aggregation device allocates the second layer aggregation label to include any one of the following modes:
  • Manner 1 The second layer aggregation device allocates a second layer aggregation label, and replaces the first layer aggregation label with the second layer aggregation label;
  • Manner 2 The second layer aggregation device allocates a second layer aggregation label, and superimposes the second layer aggregation label on the first layer aggregation label.
  • the layer 2 aggregation device After the layer 2 aggregation label is allocated, the layer 2 aggregation device sends the layer 2 aggregate label to the second edge device by using a routing message. It should be noted that, when the second layer aggregation device replaces the received first layer aggregation label with the received first layer aggregation label, the routing message sent to the second edge device includes only the second layer aggregation label; When the layer 2 aggregation device superimposes the second layer aggregation label on the first layer aggregation label, the routing message sent to the second edge device includes the first layer aggregation label and the second layer aggregation label.
  • the layer 2 aggregation device may add the allocated layer 2 aggregation label to the other edge device in the routing message received from the first layer aggregation device, or replace the second layer aggregation label with the allocated layer.
  • the first layer aggregation device in the routing message received by the first layer aggregation device sends the replaced routing message to the second edge device.
  • the routing message is a routing update message of the BGP protocol
  • the aggregation label may be a newly added attribute of the routing update message, or may be added in the network layer of the routing update message in an extended label stack manner.
  • the next hop can reach the label NLPI (Network Layer Reachabi li ty Informa t ion ).
  • the second layer aggregation device receives the data packet that is sent by the second edge device and carries the second layer aggregation label, and forwards the data packet to the first layer according to the second layer aggregation label.
  • the second layer aggregation device receives the The data packet sent by the second edge device carries the second layer of the aggregation label and does not carry the first layer of the aggregation label.
  • the routing message sent by the layer 2 aggregation device to the second edge device includes the first layer of the aggregation label and the second layer.
  • the label is aggregated, the data packet sent by the second edge device that is received by the second layer aggregation device carries the second layer aggregation label and the first layer aggregation label.
  • the forwarding, by the second layer aggregation device, the data packet to the first layer aggregation device according to the second layer aggregation label also includes two modes:
  • Manner 1 When the second layer aggregation device receives the data packet carrying the second layer aggregation label and the first layer aggregation label, the second layer aggregation device pops up the received data packet. The second layer of the middle layer and the outer layer of the aggregation label are sent to the first layer aggregation device by using the layer 2 LSP. Transmitting, by the first layer aggregation device, the first layer aggregation label in the received data packet, and passing the data packet of the popped first layer aggregation label to the first layer according to the first layer aggregation label The LSP is sent to the first edge device.
  • Manner 2 When the second layer aggregation device receives the data packet that carries the second layer aggregation label and does not carry the data packet of the first layer aggregation label, the second layer aggregation device And the second layer aggregation label in the received data packet is exchanged into the first layer aggregation label, and the data packet exchanged into the first layer aggregation label passes the second layer LSP. Send to the first layer aggregation device. Sending, by the first layer aggregation device, the data packet to the first layer LSP corresponding to the first layer aggregation label according to the first layer aggregation label in the received data packet An edge device.
  • the data packet includes a second layer aggregation label and a first layer aggregation label, where the first layer aggregation label included in the data packet is a first layer first aggregation label, and the first first layer aggregation
  • the tag is an aggregation tag allocated by the first layer aggregation device to the first edge device.
  • the second layer aggregation device pops up the second layer aggregation label in the received data packet, and then the data packet
  • the first layer of the aggregation label is the second layer of the aggregation label
  • the second layer of the aggregation label is the aggregation label of the second layer of the aggregation device for the first edge device, and then the data packet is sent.
  • the data packet is sent to the first edge device by using the first layer LSP.
  • the second layer aggregation device will receive the data packet.
  • the second layer of the aggregation label is switched to the first layer of the aggregation label, and the data packet is sent to the second layer 1 aggregation device; the first layer aggregation device pops the first of the received data packets.
  • the layer aggregates the label, and sends the data packet to the first edge device by using the first layer LSP according to the first layer aggregation label.
  • the second layer aggregation device stores information about the first layer aggregation label.
  • the embodiment of the present invention provides a layer 2 aggregation device.
  • the aggregation device may be an SPE or an ASBR.
  • the aggregation device includes: a routing message receiving unit 501, a label allocation and an LSP establishing unit 502. .
  • the routing message receiving unit 501 is configured to receive a routing message sent by the first layer aggregation device, where the routing message includes a private network route advertised by the first edge device;
  • the routing message receiving unit 501 receives the routing message sent by the first layer aggregation device in the first layer aggregation device and the routing message sent by the second layer aggregation device.
  • the first edge device sends a routing message to the first layer aggregation device, where the routing message includes a private network route advertised by the first edge device, where the private network route includes information such as an RD and a next hop address.
  • the routing message further includes a private network label that is allocated by the first edge device for the private network route.
  • the first layer aggregation device adds the allocated first layer aggregation label to the routing message and sends the first layer aggregation label to the second layer aggregation device.
  • the first first layer aggregation device and the second first layer aggregation device in the first layer aggregation device respectively allocate an aggregation label for the first edge device, and then add the allocated first first layer aggregation in the routing message.
  • the label or the second first layer aggregation label is sent to the second layer aggregation device.
  • the first edge device may be a UPE or For the NPE, the solution provided by the embodiment of the present invention is described by using the first edge device as a UPE.
  • a label allocation and LSP establishing unit 502 configured to allocate a second layer aggregation label, and establish a second layer LSP corresponding to the second layer aggregation label, where the second layer LSP is used to receive the second layer aggregation device Receiving the data packet carrying the second layer aggregation label to the first layer aggregation device;
  • the aggregation label assigned by the label allocation and LSP establishing unit 502 for all routing information received from the first layer aggregation device is the same for each first layer aggregation device, thereby achieving the purpose of reducing the number of allocated labels.
  • the label allocation and LSP establishing unit 502 allocates a second layer aggregation label for each of the first layer aggregation device and the second layer aggregation device in the first layer aggregation device
  • the label The allocation and LSP establishing unit 502 specifically includes:
  • a first label allocation and LSP establishing module 5021 configured to allocate a first layer 2 aggregation label to the first layer layer aggregation device, and establish a first layer 2 corresponding to the first layer layer aggregation label LSP, the first layer 2 LSP takes the second layer aggregation device as a starting point, and the first layer layer aggregation device is used as a destination;
  • a second label allocation and LSP establishing module 5022 configured to allocate a second layer 2 aggregation label to the second layer layer aggregation device, and establish a second layer 2 corresponding to the second layer layer aggregation label LSP, the second layer 2 LSP takes the second layer aggregation device as a starting point, and the second layer layer aggregation device as a destination.
  • the label allocation and LSP establishing unit 502 allocates only one layer 2 aggregation label to the first layer aggregation device and the second layer aggregation device in the first layer aggregation device, the label allocation and The LSP establishing unit 502 specifically includes:
  • the first layer aggregation device active/standby state determining module 502 3 is configured to determine an active/standby state of the first layer aggregation device.
  • the label allocation and LSP establishing module 5024 is configured to allocate a second layer aggregation label to the first layer aggregation device in the active state determined by the first layer aggregation device active/standby state determining module 5 023, and establish a corresponding The second layer LSP of the second layer aggregation label, where the second layer LSP is used And transmitting, by the second layer aggregation device, the data packet carrying the second layer aggregation label to the first layer aggregation device.
  • the second layer aggregation device may further include: a data packet processing unit, configured to pass the data packet to the second layer according to the second layer aggregation label in the data packet received by the aggregation device
  • the LSP is sent to the first layer aggregation device.
  • Packet forwarding module configured to pop up the second layer in the received data packet, when the data packet received by the second layer aggregation device includes the second layer aggregation label and the first layer aggregation label.
  • the data packet forwarding module is configured to send, by using the layer 2 LSP, the data packet that is to be sent to the first layer aggregation device by using the layer 2 LSP.
  • the label processing module is configured to receive the data packet received by the second layer aggregation device.
  • the second layer of the aggregation label is switched to the first layer of the aggregation label, and the data packet exchanged for the first layer of the aggregation label is sent to the first layer aggregation device by using the layer 2 LSP.
  • the data packet processing unit may further include an active/standby switchover detection module, configured to detect whether the primary layer aggregation device switches between the active and standby states. For example, when the first first layer aggregation device in the first layer aggregation device is switched to the standby state due to the failover, and the second first layer aggregation device is switched from the standby state to the standby state, the active/standby switchover detection is performed.
  • the module detects the switching of the active and standby states, and notifies the label processing module, where the label processing module receives the second layer in the data packet including the second layer aggregation label and the first layer aggregation label.
  • the first layer of the aggregation label is the first layer of the aggregation label
  • the first layer of the aggregation label is the first layer of the aggregation device that is in the active state before the handover.
  • the label processing module exchanges the first first layer aggregation label of the inner layer into the second first layer aggregation label, where the second first layer aggregation label is the second first layer currently in the active state.
  • the aggregation device is allocated for the first edge device.
  • the data packet forwarding module sends the data packet carrying the second layer 1 aggregate label to the first layer. Aggregation device.
  • the first layer aggregation device that receives the data packet carrying the second layer of the aggregation label forwards the data packet to the first edge device according to the second layer 1 aggregation label.
  • the label distribution method and the aggregation device provided by the embodiment of the present invention allocate an aggregation label for each layer aggregation device through a layer 2 aggregation device, or allocate an aggregation label for multiple layer aggregation devices.
  • the solution provided by the embodiment of the present invention can reduce the allocation of labels and correspondingly reduce the number of established LSPs, thereby saving label resources and reducing establishment compared with the prior art label allocation process. The purpose of the number of LSPs.
  • the embodiment of the present invention provides a packet sending method, which is described by taking a hierarchical VPN networking as an example.
  • the layering refers to the PE device participating in the VPN service deployment, and continues to divide according to different functions of the VPN service deployment. .
  • the first edge device in the embodiment of the present invention may be an NPE or a UPE
  • the second edge device may be an NPE or a UPE.
  • the first edge device is a UPE
  • the second edge device is an NPE
  • the first edge device is an NPE
  • the second edge device is a UPE
  • the process of sending the packet in the embodiment is similar to the process in which the second edge device is the NPE when the first edge device is the UPE. Therefore, in the solution provided by the embodiment of the present invention, the first edge device is a UPE, and the second edge device is an NPE as an example for detailed description.
  • An embodiment of the present invention provides a packet sending method, including:
  • the first edge device sends a routing message to the aggregation device, where the routing message includes a private network route advertised by the first edge device.
  • the routing message further includes a private network label that is allocated by the first edge device to the private network route, where the private network route includes information such as an RD and a next hop address.
  • the routing message has an RD of 1 : 1
  • the next hop address is 1. 1. 1. 1 / 32
  • the private network label (Labe l ) is 1025.
  • the aggregation device receives a routing message sent by the first edge device.
  • the aggregation device allocates an aggregation label corresponding to the first edge device, and Establishing an LSP according to the aggregation label, where the LSP is used by the aggregation device to transmit the received data packet carrying the aggregation label to the first edge device;
  • the aggregation device allocates the label resource according to the label allocation method in Embodiment 1; when the aggregation device includes the first layer aggregation device and the second layer aggregation The device allocates label resources according to the label allocation method in Embodiment 2, and details are not described herein again.
  • the aggregation device sends the private network route, the first aggregation label, to the second edge device by using a routing message.
  • the aggregation tag may be added to the routing message and sent to the second edge device.
  • the routing message is a routing update packet of the BGP protocol
  • the aggregation label may be a newly added attribute of the routing update message, or may be added to the network layer in the routing update manner by using an extended label stack.
  • the next hop access information NLPI Network Layer Reachabi li ty Informat ion ) is tagged.
  • the aggregation device when the aggregation device includes only one layer of the aggregation device, the aggregation device sends the private network route, the private network label, and the first aggregation label to the second edge device by using a routing message;
  • the second layer aggregation device uses the private network route, the private network label, the first layer aggregation label, and the second layer aggregation label to use the route Sending a message to the second edge device, where the second layer aggregation label is superimposed on the first layer aggregation label; or the second layer aggregation device routing the private network and the private network
  • the label, the second layer aggregation label is sent to the second edge device by using a routing message, and the second layer aggregation label replaces the first layer aggregation label.
  • the second edge device receives the routing message sent by the aggregation device.
  • the second edge device may be an NPE.
  • the NPE After receiving the routing message, the NPE directly saves the received message in the forwarding table. a label in the routing message;
  • the aggregation label is carried in the data packet and sent to the aggregation device.
  • the second edge device when the second edge device receives the data packet that needs to be forwarded, it searches for a private message.
  • the FIB Forwarding Information Base
  • the second edge device sends a data packet carrying the aggregation label to the aggregation device.
  • the data packet is sent to the aggregation device by using the public network tunnel identified by the second edge device to the public network tunnel label of the aggregation device.
  • the aggregation device receives the data packet sent by the second edge device. For example, when the aggregation device includes only one layer of the aggregation device, the aggregation device receives the second edge device.
  • the data packet that is sent, the data packet includes the private network label, the aggregation label, and a public network tunnel label of the second edge device to the aggregation device;
  • the first layer aggregation device and the second layer aggregation device, the second layer aggregation device receives the data packet sent by the second edge device, where the data packet includes the private network label, a first layer of the aggregation label, the second layer of the aggregation label, and the second edge device to the public network tunnel label of the aggregation device; or the data packet includes the private network label, the second layer Aggregating the label and the public network tunnel label of the second edge device to the aggregation device;
  • the aggregation device forwards the received data packet to the first edge device by using the LSP according to the aggregation label.
  • the aggregation device pops up the public network tunnel label of the data packet, reads the aggregation label, queries the ILM table, and obtains the data packet to be obtained. Forwarding to the first edge device, and then forwarding the data packet To the first edge device.
  • the IMME (Incoming Labe Map) table has a mapping relationship from the inbound label to the corresponding next hop label forwarding entry to transfer the data to the correct next hop address.
  • the aggregation device When the aggregation device includes the first layer aggregation device and the second layer aggregation device, the aggregation device forwards the data packet to the first edge device according to the packet forwarding manner in the label allocation method provided in Embodiment 1 , will not repeat them here.
  • the first edge device sends the received data message to a corresponding destination. For example, after the data packet reaches the first edge device, the first edge device pops up the private network label and enters the corresponding VPN instance. The first edge device sends the data to the corresponding destination by searching the FIB table. Ground.
  • an embodiment of the present invention further provides a packet forwarding system, where the packet forwarding system includes: a first edge device 701, an aggregation device 702, and a second edge device 703.
  • the first edge device 701 is configured to send a routing message to the aggregation device 702, where the routing message includes a private network route advertised by the first edge device;
  • the first edge device 701 may be a UPE or an NPE. For convenience of description, the first edge device 701 is described as a UPE in detail.
  • the aggregation device may include: an aggregation device routing message receiving unit, configured to receive a routing message sent by the first edge device, where the routing message includes a private network route advertised by the first edge device;
  • a label allocation and LSP establishing unit configured to allocate an aggregation label corresponding to the first edge device, and establish an LSP according to the aggregation label, where the LSP is used by the aggregation device to receive the aggregation label Data message is transmitted to the first edge device;
  • a routing message sending unit configured to send the aggregated label to the second edge device by using a routing message.
  • the aggregation device may be the aggregation device in the embodiment 1 or the aggregation device described in the embodiment 2, and details are not described herein again.
  • Figure 7 is a schematic diagram of the system structure when the aggregation device includes a layer of aggregation devices
  • Figure 8 is a schematic diagram of the system structure when the aggregation device includes two layers of aggregation devices.
  • the second edge device 703 is configured to receive the routing message sent by the aggregation device 702, and save the private network route and the aggregation label in the routing message; the second edge device is further configured to receive the required When the data packet is forwarded to the first edge device, the aggregation label is carried in the data packet and sent to the aggregation device, and the data packet carrying the aggregation label is sent to the aggregation. device.
  • the second edge device 703 is the same as the received routing message, and details are not described herein again.
  • the packet forwarding method and system provided by the embodiment of the present invention, by receiving a routing message sent by the first edge device, allocating an aggregation label corresponding to the first edge device, and establishing an LSP according to the aggregation label, The data packet that is received by the aggregation device and carries the aggregation label is transmitted to the first edge device by using the LSP.
  • the solution provided by the embodiment of the present invention can reduce the allocation of labels and correspondingly reduce the number of established LSPs, thereby saving label resources and reducing establishment compared with the prior art label allocation process. The purpose of the number of LSPs.
  • the program can be stored in a computer readable storage medium.
  • the storage medium can include: Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Acce ss Memory), disk or optical disk.

Abstract

本发明公开了一种标签分配方法及聚合设备,涉及通信网络技术领域,通过接收第一边缘设备发送的路由消息,分配一个与所述第一边缘设备对应的聚合标签,根据所述聚合标签建立LSP,所述LSP用于所述聚合设备将接收到的携带所述第一聚合标签的数据报文传送到所述第一边缘设备。与现有技术标签分配过程中需要消耗大量标签资源相比,本发明实施例提供的方案,可以减少标签的分配,并且相应的减少建立的LSP的数量,从而达到了节约标签资源和减少建立的LSP数量的目的。

Description

一种标签分配方法及聚合设备
本申请要求于 2011 年 9 月 13 日提交中国专利局、 申请号为 201110269861.6, 发明名称为 "一种标签分配方法及聚合设备" 的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信网络技术领域, 尤其涉及一种标签分配方法及聚合设 备。 背景技术
随着分层 VPN ( Virtual Private Network, 虚拟专用网 )方案在 IP RAN ( IP Radio Access Network, IP 无线接入网) 中应用的越来越广, SPE ( Superstratum Provider Edge, 聚合运营商边缘设备)从 UPE (User-end Provider Edge, 用户侧运营商边缘设备) 学习到的路由数量不断增大, 同 时 SPE建立的 LSP (Label Switch Path, 标签转发路径) 的数量也不断增 大。
SPE 需要将从 UPE 学习到的所有路由发布给 NPE (Network Provider
Edge, 网络侧运营商边缘设备), 并且建立 LSP ( label switched path, 标 签交换路径), 以指导流量根据该 LSP转发到对应的 UPE, 这样, UPE数量 越多, SPE的压力越大。
同样, 对于第二种跨域(Option B)的场景, ASBR ( Autonomous System Boundary Router,自治系统边界路由器)需要为域内 PE (Provider Edge, 运营商边缘设备)的所有路由分别分配一个标签, 并相应地创建 LSP, 同时 还需要为另外的 ASBR发布过来的所有路由分别分配一个标签, 并相应地创 建 LSP,对于较大的网络, ASBR需要支持分配大量的标签和创建大量的 LSP。
当前的组网中, 利用按下一跳分配标签技术进行标签的分配。 假如, SPE1从 UPE1、 UPE2学习路由发布给 NPE1, 其中 UPE1、 UPE2上各有 10个 VPN , 每个 VPN有 1 0条路由, 釆用现有技术中的按下一跳分配标签的技术, 可以对同一个 PE发布的 RD相同、 相同下一跳、 相同标签的路由分配一个 标签, 建立一条 LSP , 这样 SPE1需要给 UPE1和 UPE2上的每个 VPN下的 1 0 条路由分配一个标签, 一共需要分配 20个标签, 建立 20条 LSP。
然而, 釆用现有技术分配标签资源时, 如果 PE上的 VPN很多, 则 SPE 或 ASBR设备仍需要申请大量标签、 消耗大量标签资源。 发明内容
本发明的实施例提供一种标签分配方法及聚合设备, 可以减少标签的 分配, 节约标签资源。
为达到上述目的, 本发明的实施例釆用如下技术方案:
一种标签分配方法, 包括:
聚合设备接收第一边缘设备发送的路由消息, 所述路由消息包括所述 第一边缘设备发布的私网路由;
所述聚合设备分配一个与所述第一边缘设备对应的聚合标签, 并根据 所述聚合标签建立标签交换路径 LSP ,所述 LSP用于所述聚合设备将接收到 的携带所述聚合标签的数据报文传送到所述第一边缘设备。
一种聚合设备, 包括:
路由消息接收单元, 用于接收第一边缘设备发送的路由消息, 所述路 由消息包括所述第一边缘设备发布的私网路由;
标签分配与 LSP建立单元, 用于分配一个与所述第一边缘设备对应的 聚合标签, 并根据所述聚合标签建立 LSP , 所述 LSP用于所述聚合设备将接 收到的携带所述聚合标签的数据报文传送到所述第一边缘设备。
一种第二层聚合设备, 包括:
路由消息接收单元, 用于接收第一层聚合设备发送的路由消息, 所述 路由消息包括所述第一边缘设备发布的私网路由;
标签分配与 LSP建立单元, 用于分配第二层聚合标签, 并建立对应所 述第二层聚合标签的第二层 LSP ,所述第二层 LSP用于将所述第二层聚合设 备接收到的携带有所述第二层聚合标签的数据报文传送到所述第一层聚合 设备。
一种数据报文转发方法, 包括:
第一边缘设备向聚合设备发送路由消息, 所述路由消息中包括所述第 一边缘设备发布的私网路由;
所述聚合设备接收所述路由消息;
所述聚合设备分配一个与所述第一边缘设备对应的聚合标签, 并根据 所述聚合标签建立 LSP ,所述 LSP用于所述聚合设备将接收到的携带所述聚 合标签的数据报文传送到所述第一边缘设备;
所述聚合设备将所述私网路由、 所述聚合标签利用路由消息发送给第 二边缘设备;
所述第二边缘设备接收所述聚合设备发送的路由消息;
所述第二边缘设备接收到需要转发到所述第一边缘设备的数据报文 时, 将所述聚合标签携带在所述数据报文中发送给所述聚合设备;
所述聚合设备接收所述第二边缘设备发送的所述数据报文;
所述聚合设备根据所述聚合标签, 通过所述 LSP将收到的所述数据报 文转发给所述第一边缘设备;
所述第一边缘设备将接收到的所述数据报文发送到相应的目的地。 一种 文转发系统, 所述 文转发系统包括:
第一边缘设备、 第二边缘设备和聚合设备, 其中所述聚合设备包括: 聚合设备路由消息接收单元, 用于接收所述第一边缘设备发送的路由消息, 所述路由消息包括所述第一边缘设备发布的私网路由;
标签分配与 LSP建立单元, 用于分配一个与所述第一边缘设备对应的 聚合标签, 并根据所述聚合标签建立 LSP , 所述 LSP用于所述聚合设备将接 收到的携带所述聚合标签的数据报文传送到所述第一边缘设备;
路由消息发送单元, 用于将所述聚合标签利用路由消息发送给所述第 二边缘设备。 本发明实施例提供的标签分配方法及聚合设备, 通过接收第一边缘设 备发送的路由消息, 分配一个与所述第一边缘设备对应的聚合标签, 根据 所述聚合标签建立 LSP ,所述 LSP用于所述聚合设备将接收到的携带所述聚 合标签的数据报文传送到所述第一边缘设备。 与现有技术标签分配过程中 需要消耗大量标签资源相比, 本发明实施例提供的方案, 可以减少标签的 分配, 并且相应的减少建立的 LSP 的数量, 从而达到了节约标签资源和减 少建立的 LSP数量的目的。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为本发明实施例 1提供的一种标签分配方法所适用的系统结构示 意图;
图 2为本发明实施例 1提供的一种标签分配方法的流程图;
图 3为本发明实施例 1提供的一种聚合设备的框图;
图 4为本发明实施例 2提供的另一种标签分配方法的流程图; 图 5为本发明实施例 1提供的另一种聚合设备的框图;
图 6为本发明实施例 3提供的一种报文转发方法的流程图;
图 7为本发明实施例 3提供的再一种报文转发系统的框图;
图 8为本发明实施例 3提供的再一种报文转发系统的框图。
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
实施例 1
本发明实施例提供一种标签分配方法, 该方法适用于图 1所示的场景。 图 1所示的场景中, 第一边缘设备可以为 NPE, 也可以为 UPE, 第二边缘设 备可以为 NPE , 也可以为 UPE。 但是, 当第一边缘设备为 UPE时, 第二边缘 设备为 NPE; 当第一边缘设备为 NPE时, 第二边缘设备为 UPE。 聚合设备可 以为 SPE或者 ASBR。 本发明实施例提供的方案中, 以第一边缘设备为 UPE, 第二边缘设备为 NPE , 聚合设备为 SPE为例进行详细的描述。 如图 1所示, 该方法包括:
101 , 聚合设备接收第一边缘设备发送的路由消息, 所述路由消息包括 所述第一边缘设备发布的私网路由;
举例来说, 所述路由消息中包括所述第一边缘设备发布的私网路由, 所述路由消息中的私网路由包括 RD ( Route Di s t ingui sher,路由标识)和 下一跳地址等信息, 所述路由消息中还包括所述第一边缘设备为所述私网 路由分配的私网标签。 如图 1所示, 路由消息中 RD为 1 : 1 , 下一 ϋ地址为 1. 1. 1. 1/ 32 , 私网标签 ( Labe l )为 1025。
102 , 所述聚合设备分配一个与所述第一边缘设备对应的聚合标签, 并 根据所述聚合标签建立 LSP ,所述 LSP用于所述聚合设备将接收到的携带所 述聚合标签的数据报文传送到所述第一边缘设备。
所述聚合设备针对从所述第一边缘设备接收到的所有的路由信息分配 的所述聚合标签对于所述第一边缘设备都是相同的, 从而达到减少分配的 标签数量的目的。
例如, 如图 1所示, 聚合设备针对第一边缘设备分配聚合标签 2000 , 然后将所述 RD、 下一跳路由信息、 私网标签和聚合标签通过路由消息发送 给第二边缘设备。 举例来说, 所述路由消息可以为 BGP (Border Ga teway Protocol, 边界网关协议)协议的路由更新 ^艮文, 所述聚合标签可以为路由 更新报文一个新增加的属性, 或者以扩展标签栈的方式添加在所述路由更 新报文中的 NLPI ( Network Layer Reachabi l i ty Informa t ion, 网络层下 一跳可达信息) 的标签栈中。 所述聚合设备分配完所述第一聚合标签后, 将所述私网路由、 所述聚合标签利用路由消息发送给第二边缘设备。
本发明实施例提供一种聚合设备, 如图 3 所示, 所述聚合设备包括: 路由消息接收单元 301 , 标签分配与 LSP建立单元 302。
路由消息接收单元 301 , 用于接收第一边缘设备发送的路由消息, 所述 路由消息包括所述第一边缘设备发布的私网路由;
标签分配与 LSP建立单元 302 ,用于分配一个与所述第一边缘设备对应 的聚合标签, 并根据所述聚合标签建立 LSP, 所述 LSP用于所述聚合设备将 接收到的携带所述聚合标签的数据报文传送到所述第一边缘设备。
所述标签分配与 LSP建立单元 302针对从第一边缘设备接收到的所有 的路由信息分配的所述聚合标签对于所述第一边缘设备都是相同的, 从而 达到减少分配的标签数量的目的。
所述聚合设备还可以进一步包括一个路由消息发送单元, 用于将所述 聚合标签利用路由消息发送给第二边缘设备。 举例来说, 可以将分配的聚 合标签添加在所述路由消息中发送给第二边缘设备。
本发明实施例提供的标签分配方法和聚合设备, 通过接收第一边缘设 备发送的路由消息, 分配一个与所述第一边缘设备对应的聚合标签, 根据 所述聚合标签建立 LSP,所述 LSP用于所述聚合设备将接收到的携带所述聚 合标签的数据报文传送到所述第一边缘设备。 与现有技术标签分配过程中 需要消耗大量标签资源相比, 本发明实施例提供的方案, 可以减少标签的 分配, 并且相应的减少建立的 LSP 的数量, 从而达到了节约标签资源和减 少建立的 LSP数量的目的。
实施例 2
本发明实施例提供一种标签分配的方法, 应用场景为, 聚合设备中至 少包含两层聚合设备, 这里, 聚合设备可以为 SPE , 也可以为 ASBR, 其中, 第一层聚合设备中可以包含至少两个聚合设备, 为了方便描述, 本发明实 施例提供的方案中, 以聚合设备包括第一层聚合设备和第二层聚合设备, 而第一层聚合设备进一步包括两个聚合设备为例进行描述, 其中第一层聚 合设备分配的标签可以统称为第一层聚合标签, 第二层聚合设备分配的标 签可以统称为第二层聚合标签。 需要说明的是, 第一边缘设备可以为 NPE, 也可以为 UPE, 第二边缘设备可以为 NPE, 也可以为 UPE。 但是, 当第一边 缘设备为 UPE时, 第二边缘设备为 NPE; 当第一边缘设备为 NPE时, 第二边 缘设备为 UPE。 本发明实施例提供的方案中, 以第一边缘设备为 UPE, 第二 边缘设备为 NPE为例进行详细的描述。
如图 4所示, 该方法包括:
401 , 第二层聚合设备接收第一层聚合设备发送的路由消息;
举例来说, 第一边缘设备向第一层聚合设备发送路由消息, 所述路由 消息中包括所述第一边缘设备发布的私网路由, 所述路由消息中的私网路 由包括 RD ( Route Di s t ingui sher,路由标识)和下一跳地址等信息, 所述 路由消息中还包括所述第一边缘设备为所述私网路由分配的私网标签。 例 如, 所述路由消息为 BGP协议的路由更新报文, 所述聚合标签可以为路由 更新报文一个新增加的属性, 或者以扩展标签栈的方式添加在所述路由更 新才艮文中的网络层下一跳可达信息 NLPI ( Network Layer Reachabi l i ty Informat ion ) 的标签栈中。
举例来说, 所述第一层聚合设备中包括两个聚合设备: 第一第一层聚 合设备和第二第一层聚合设备。 第一第一层聚合设备和第二第一层聚合设 备接收所述第一边缘设备发送的所述路由消息, 分别为所述私网路由分配 一个与所述第一边缘设备对应的第一层聚合标签, 并分别建立对应所述第 一层聚合标签的第一层 LSP,所述第一层 LSP用于所述第一层聚合设备将接 收到的携带有所述第一层聚合标签的数据报文传送到所述第一边缘设备。 其中, 第一第一层聚合设备针对第一边缘设备分配第一第一层聚合标签, 第二第一层聚合设备针对第一边缘设备分配第二第一层聚合标签; 并建立 对应所述第一第一层聚合设备的第一第一层 LSP和对应所述第二第一层聚 合标签的第二第一层 LSP ,所述第一第一层 LSP以所述第一第一层聚合设备 为起点, 以第一边缘设备为目的地, 第二第一层 LSP 以所述第二第一层聚 合设备为起点, 以第一边缘设备为目的地。 当第一第一层聚合设备接收到 携带有第一第一层聚合标签的数据报文时, 使用所述第一第一层 LSP将数 据报文发送到第一边缘设备, 当第二第一层聚合设备接收到携带有第二第 一层聚合标签的数据报文时, 使用所述第二第一层 LSP将数据报文发送到 第一边缘设备。
所述第一第一层聚合设备和第二第一层聚合设备将分配的所述第一第 一层聚合标签和第二第一层聚合标签利用路由消息发送给所述第二层聚合 设备。 举例来说, 所述第一层聚合设备将所述第一层聚合标签添加在所述 路由消息中, 随私网路由和私网标签一起发送给所述第二层聚合设备。
402 , 所述第二层聚合设备分配第二层聚合标签, 并建立对应所述第二 层聚合标签的第二层 LSP ,所述第二层 LSP用于将所述第二层聚合设备接收 到的携带有所述第二层聚合标签的数据报文传送到所述第一层聚合设备; 所述第二层聚合设备针对从第一层聚合设备接收到的所有的路由信息 分配的聚合标签对于每一个第一层聚合设备都是相同的, 从而达到减少分 配的标签数量的目的。
举例来说, 所述第二层聚合设备可以针对所述第一第一层聚合设备分 配第一第二层聚合标签, 针对第二第一层聚合设备分配第二第二层聚合标 签; 并建立对应所述第一第二层聚合标签的第二 LSP和对应所述第二第二 层聚合标签的第三 LSP , 所述第二 LSP以所述第二层聚合设备为起点, 以第 一第一层聚合设备为目的地, 所述第三 LSP以所述第二层聚合设备为起点, 以第二第一层聚合设备为目的地。
或者, 所述第二层聚合设备也可以针对所述第一层聚合设备只分配一 个第二层聚合标签。 例如, 当第一第一层聚合设备处于主用状态, 第二第 一层聚合设备处于备用状态时, 针对处于主用状态的第一第一层聚合设备 分配一个第二层聚合标签, 并建立对应第一第二层聚合标签的第二层 LSP , 所述第二层 LSP 以所述第二层聚合设备为起点, 以第一第一层聚合设备为 目的地。
举例来说, 所述第二层聚合设备分配第二层聚合标签包括以下任一种 方式:
方式一: 所述第二层聚合设备分配第二层聚合标签, 并使用所述第二 层聚合标签替换所述第一层聚合标签;
方式二: 所述第二层聚合设备分配第二层聚合标签, 并将所述第二层 聚合标签叠加在所述第一层聚合标签之上。
分配完第二层聚合标签后, 所述第二层聚合设备将所述第二层聚合标 签利用路由消息发送给第二边缘设备。 需要说明的是, 当第二层聚合设备 将分配的第二层聚合标签替换收到的第一层聚合标签时, 发送给第二边缘 设备的路由消息中只包括第二层聚合标签; 当第二层聚合设备将分配第二 层聚合标签叠加到第一层聚合标签上时, 发送给第二边缘设备的路由消息 中包括第一层聚合标签和第二层聚合标签。 举例来说, 所述第二层聚合设 备可以将分配的第二层聚合标签添加在从第一层聚合设备收到的路由消息 中发送给其他边缘设备, 或者用分配的第二层聚合标签替换从第一层聚合 设备收到的路由消息中的第一层聚合设备, 将替换后的路由消息发送给第 二边缘设备。
例如, 所述路由消息为 BGP协议的路由更新报文, 所述聚合标签可以 为路由更新报文一个新增加的属性, 或者以扩展标签栈的方式添加在所述 路由更新才艮文中的网络层下一跳可达信息 NLPI ( Network Layer Reachabi l i ty Informa t ion ) 的标签我中。
403 , 所述第二层聚合设备接收所述第二边缘设备发送的携带第二层聚 合标签的数据报文, 并根据所述第二层聚合标签将数据报文转发到所述第 一层聚合设备;
具体地, 当第二层聚合设备发送给第二边缘设备的路由消息中包括第 二聚合标签而不包括第一层聚合标签时, 所述第二层聚合设备接收的所述 第二边缘设备发送的数据报文携带第二层聚合标签而没有携带第一层聚合 标签; 当第二层聚合设备发送给第二边缘设备的路由消息中包括第一层聚 合标签和第二层聚合标签时, 所述第二层聚合设备接收的所述第二边缘设 备发送的数据报文携带第二层聚合标签和第一层聚合标签。
相应地, 所述第二层聚合设备根据所述第二层聚合标签将数据报文转 发到所述第一层聚合设备也包括两种方式:
方式一: 当所述第二层聚合设备接收到携带有所述第二层聚合标签和 第一层聚合标签的数据报文时 , 所述第二层聚合设备弹出接收到的所述数 据报文中外层的所述第二层聚合标签, 并将所述弹出所述第二层聚合标签 的数据报文通过所述第二层 LSP发送给所述第一层聚合设备。 所述第一层 聚合设备弹出接收到的数据报文中的第一层聚合标签, 并根据所述第一层 聚合标签将所述弹出第一层聚合标签的数据报文通过所述第一层 LSP发送 给所述第一边缘设备。
方式二: 当所述第二层聚合设备接收到数据报文中携带有所述第二层 聚合标签, 而没有携带所述第一层聚合标签的数据报文时, 所述第二层聚 合设备将接收到的所述数据报文中的所述第二层聚合标签交换为所述第一 层聚合标签, 并将交换为所述第一层聚合标签的数据报文通过所述第二层 LSP发送给所述第一层聚合设备。所述第一层聚合设备根据接收到的数据报 文中的第一层聚合标签, 通过所述第一层聚合标签对应的所述第一层 LSP , 将所述数据报文发送给所述第一边缘设备。
举例来说, 对于所述第一层聚合设备中的第一第一层聚合设备处于主 用状态, 而第二第一层聚合设备处于备用状态的场景, 如果第二层聚合设 备接收到的所述数据报文中包括第二层聚合标签和第一层聚合标签, 这时 所述数据报文中包括的第一层聚合标签为第一第一层聚合标签, 所述第一 第一层聚合标签为所述第一第一层聚合设备针对第一边缘设备分配的聚合 标签。 当所述第一第一层聚合设备发生故障时, 所述第二层聚合设备弹出 接收到的所述数据报文中的所述第二层聚合标签, 然后把数据报文中的第 一第一层聚合标签交换为第二第一层聚合标签, 所述第二第一层聚合标签 为所述第二第一层聚合设备针对第一边缘设备分配的聚合标签, 然后将数 据报文发送给所述第二第一层聚合设备; 所述第二第一层聚合设备弹出接 收到的数据报文中的第二第一层聚合标签, 并根据所述第二第一层聚合标 签将数据报文通过所述第一层 LSP发送给所述第一边缘设备。
再举例来说, 如果第二层聚合设备接收到的数据报文中包括第二层聚 合标签而不包括第一层聚合标签时, 所述第二层聚合设备将接收到的所述 数据报文中的第二层聚合标签交换为第一层聚合标签, 并将数据报文发送 给所述第二第一层聚合设备; 所述第一层聚合设备弹出接收到的数据报文 中的第一层聚合标签, 并根据所述第一层聚合标签将所述数据报文通过所 述第一层 LSP发送给所述第一边缘设备。 其中, 第二层聚合设备存储有所 述第一层聚合标签的信息。
本发明实施例提供一种第二层聚合设备, 如图 5 所示, 该聚合设备可 以为 SPE , 也可以为 ASBR , 该聚合设备具体包括: 路由消息接收单元 501 , 标签分配与 LSP建立单元 502。
路由消息接收单元 501 , 用于接收第一层聚合设备发送的路由消息, 所 述路由消息包括所述第一边缘设备发布的私网路由;
举例来说, 所述路由消息接收单元 501 接收第一层聚合设备中的第一 第一层聚合设备发送的路由消息和第二第一层聚合设备发送的路由消息。
举例来说, 第一边缘设备向第一层聚合设备发送路由消息, 所述路由 消息中包括所述第一边缘设备发布的私网路由, 该私网路由包括 RD和下一 跳地址等信息, 所述路由消息中还包括所述第一边缘设备为所述私网路由 分配的私网标签。 第一层聚合设备在所述路由消息中添加其分配的第一层 聚合标签后发送给第二层聚合设备。 例如, 第一层聚合设备中的第一第一 层聚合设备和第二第一层聚合设备分别针对第一边缘设备分配聚合标签, 然后在所述路由消息中添加分配的第一第一层聚合标签或者第二第一层聚 合标签后发送给第二层聚合设备。 其中, 第一边缘设备可以为 UPE , 也可以 为 NPE , 本发明实施例提供的方案中以第一边缘设备为 UPE进行描述。 标签分配与 LSP建立单元 502 , 用于分配第二层聚合标签, 并建立对应 所述第二层聚合标签的第二层 LSP ,所述第二层 LSP用于将所述第二层聚合 设备接收到的携带有所述第二层聚合标签的数据报文传送到所述第一层聚 合设备;
所述标签分配与 LSP建立单元 502针对从第一层聚合设备接收到的所 有的路由信息分配的聚合标签对于每一个第一层聚合设备都是相同的, 从 而达到减少分配的标签数量的目的。
举例来说, 当所述标签分配与 LSP建立单元 502针对第一层聚合设备 中的第一第一层聚合设备和第二第一层聚合设备各分配一个第二层聚合标 签时, 所述标签分配与 LSP建立单元 502具体包括:
第一标签分配与 LSP建立模块 5021 , 用于针对所述第一第一层聚合设 备分配一第一第二层聚合标签, 并建立对应所述第一第二层聚合标签的第 一第二层 LSP , 所述第一第二层 LSP以所述第二层聚合设备为起点, 以第一 第一层聚合设备为目的地;
第二标签分配与 LSP建立模块 5022 , 用于针对所述第二第一层聚合设 备分配一第二第二层聚合标签, 并建立对应所述第二第二层聚合标签的第 二第二层 LSP , 所述第二第二层 LSP以所述第二层聚合设备为起点, 以所述 第二第一层聚合设备为目的地。
或者, 当所述标签分配与 LSP建立单元 502针对第一层聚合设备中的 第一第一层聚合设备和第二第一层聚合设备只分配一个第二层聚合标签 时, 所述标签分配与 LSP建立单元 502具体包括:
第一层聚合设备主备状态确定模块 502 3 , 用于确定第一层聚合设备的 主备状态;
标签分配与 LSP建立模块 5024 , 用于针对所述第一层聚合设备主备状 态确定模块 5 023确定的处于主用状态的第一层聚合设备分配一个第二层聚 合标签, 并建立对应所述第二层聚合标签的第二层 LSP , 所述第二层 LSP用 于将所述第二层聚合设备接收到的携带有所述第二层聚合标签的数据报文 传送到所述第一层聚合设备。
所述第二层聚合设备可以进一步包括, 数据报文处理单元, 用于根据 所述聚合设备接收到的数据报文中的第二层聚合标签, 将所述数据报文通 过所述第二层 LSP发送给所述第一层聚合设备。 报文转发模块。 其中, 当第二层聚合设备接收到的数据报文中包括既第二 层聚合标签又包括第一层聚合标签时, 所述标签处理模块用于弹出接收到 的数据报文中的第二层聚合标签, 所述数据报文转发模块用于根据所述第 二层聚合标签将弹出第二层聚合标签的数据报文通过所述第二层 LSP发送 给第一层聚合设备。 当第二层聚合设备接收到的数据报文中包括第二层聚 合标签而不包括第一层聚合标签时, 所述标签处理模块用于将所述第二层 聚合设备接收到的数据报文中的第二层聚合标签交换为第一层聚合标签, 并将交换为第一层聚合标签的数据报文通过所述第二层 LSP发送给所述第 一层聚合设备。
再举例来说, 所述数据报文处理单元还可以进一步包括主备切换检测 模块, 用于检测第一层聚合设备是否发生主用和备用状态的切换。 例如, 当所述第一层聚合设备中的第一第一层聚合设备由于故障切换为备用状 态, 而第二第一层聚合设备由备用状态切换为主用状态时, 所述主备切换 检测模块检测到所述主备状态的切换, 并通知所述标签处理模块, 所述标 签处理模块将接收到的包括有第二层聚合标签和第一层聚合标签的数据报 文中的第二层聚合标签弹出, 该第一层聚合标签此时为第一第一层聚合标 签, 该第一第一层聚合标签是由切换前处于主用状态的第一第一层聚合设 备针对第一边缘设备分配的, 所述标签处理模块将内层的第一第一层聚合 标签交换为第二第一层聚合标签, 该第二第一层聚合标签是由当前处于主 用状态的第二第一层聚合设备针对第一边缘设备分配的。 然后所述数据报 文转发模块将携带所述第二第一层聚合标签的数据报文发送给所述第一层 聚合设备。 接收到所述携带所述第二第一层聚合标签的数据报文的第一层 聚合设备根据所述第二第一层聚合标签将数据报文转发给第一边缘设备。
本发明实施例提供的标签分配方法和聚合设备通过二层聚合设备针对 每个一层聚合设备分配一个聚合标签, 或者针对多个一层聚合设备分配一 个聚合标签。 与现有技术标签分配过程中需要消耗大量标签资源相比, 本 发明实施例提供的方案, 可以减少标签的分配, 并且相应的减少建立的 LSP 的数量, 从而达到了节约标签资源和减少建立的 LSP数量的目的。
实施例 3
本发明实施例提供一种报文发送方法, 以分层 VPN组网为例进行描述, 这里, 分层指参与 VPN业务部署的 PE设备, 按照其在参与 VPN业务部署时 的不同功能继续划分层次。
需要说明的是, 本发明实施例中的第一边缘设备可以为 NPE , 也可以为 UPE , 第二边缘设备可以为 NPE , 也可以为 UPE。 但是, 当第一边缘设备为 UPE时, 第二边缘设备为 NPE; 当第一边缘设备为 NPE时, 第二边缘设备为 UPE。 当第一边缘设备为 NPE时, 第二边缘设备为 UPE时, 本实施例提供的 报文发送方法的执行过程与当第一边缘设备为 UPE时,第二边缘设备为 NPE 的处理过程类似。 因此, 本发明实施例提供的方案中, 以第一边缘设备为 UPE , 第二边缘设备为 NPE为例进行详细的描述。
本发明实施例提供一种报文发送方法, 包括:
601 , 第一边缘设备向聚合设备发送路由消息, 所述路由消息中包括所 述第一边缘设备发布的私网路由;
举例来说, 所述路由消息中还包括所述第一边缘设备为所述私网路由 分配的私网标签, 所述私网路由中包括 RD和下一跳地址等信息。 如图 1所 示, 路由消息中 RD为 1 : 1 , 下一跳地址为 1. 1. 1. 1 / 32 , 私网标签(Labe l ) 为 1025。
602 , 所述聚合设备接收所述第一边缘设备发送的路由消息;
603 , 所述聚合设备分配一个与所述第一边缘设备对应的聚合标签, 并 根据所述聚合标签建立 LSP,所述 LSP用于所述聚合设备将接收到的携带所 述聚合标签的数据报文传送到所述第一边缘设备;
举例来说, 当所述聚合设备仅包含一层聚合设备时, 所述聚合设备按 照实施例 1 中的标签分配方法分配标签资源; 当所述聚合设备包含第一层 聚合设备和第二层聚合设备时, 所述聚合设备按照实施例 2 中的标签分配 方法分配标签资源, 在此不再赘述。
604 , 所述聚合设备将所述私网路由、 所述第一聚合标签利用路由消息 发送给第二边缘设备;
具体地, 可以将所述聚合标签添加到所述路由消息中, 发送给所述第 二边缘设备。 例如, 所述路由消息为 BGP协议的路由更新报文, 所述聚合 标签可以为路由更新报文一个新增加的属性, 或者以扩展标签栈的方式添 加在所述路由更新 ^艮文中的网络层下一跳可达信息 NLPI ( Network Layer Reachabi l i ty Informat ion ) 的标签我中。
举例来说, 当所述聚合设备仅包含一层聚合设备时, 所述聚合设备将 所述私网路由、 私网标签、 所述第一聚合标签利用路由消息发送给所述第 二边缘设备; 当所述聚合设备包含第一层聚合设备和第二层聚合设备时, 所述第二层聚合设备将所述私网路由、 私网标签、 第一层聚合标签、 第二 层聚合标签利用路由消息发送给所述第二边缘设备, 此时, 所述第二层聚 合标签叠加在所述第一层聚合标签之上; 或者, 所述第二层聚合设备将所 述私网路由、 私网标签、 第二层聚合标签利用路由消息发送给所述第二边 缘设备, 此时, 所述第二层聚合标签替换所述第一层聚合标签。
605 , 所述第二边缘设备接收所述聚合设备发送的所述路由消息; 举例来说, 所述第二边缘设备可以为 NPE, NPE接收到路由消息后, 在 转发表中直接保存接收到的所述路由消息中的标签;
606 , 所述第二边缘设备接收到需要转发到所述第一边缘设备的数据报 文时 , 将所述聚合标签携带在所述数据报文中发送给所述聚合设备;
举例来说, 所述第二边缘设备接收到需要转发的数据报文时, 查找私 网 FIB ( Forward Informa t ion Base , 转发信息库), 获得所述数据才艮文将 要转发到的聚合设备, 然后按顺序在所述数据报文中压入各个标签。 例如, 当所述第二边缘设备中保存的各个标签为所述私网标签、 所述第一层聚合 标签、 所述第二层聚合标签时, 在所述数据报文中按顺序压入所述私网标 签、 所述第一层聚合标签、 所述第二层聚合标签、 所述第二边缘设备到所 述聚合设备的公网隧道标签; 当所述第二边缘设备中保存的各个标签为所 述私网标签、 所述第二层聚合标签时, 在所述数据报文中按顺序压入所述 私网标签、 第二层聚合标签时、 所述第二边缘设备到所述聚合设备的公网 隧道标签。
所述第二边缘设备将携带所述聚合标签的数据报文发送给所述聚合设 备。 例如, 通过所述第二边缘设备到所述聚合设备的公网隧道标签标识的 公网隧道将所述数据报文发送给所述聚合设备。
607 , 所述聚合设备接收所述第二边缘设备发送的所述数据报文; 举例来说, 当所述聚合设备中仅包含一层聚合设备时, 所述聚合设备 接收所述第二边缘设备发送的所述数据报文, 所述数据报文中包括所述私 网标签、 所述聚合标签和所述第二边缘设备到所述聚合设备的公网隧道标 签; 当所述聚合设备中包含第一层聚合设备和第二层聚合设备时, 所述第 二层聚合设备接收所述第二边缘设备发送的所述数据报文, 所述数据报文 中包括所述私网标签、 所述第一层聚合标签、 所述第二层聚合标签和所述 第二边缘设备到所述聚合设备的公网隧道标签; 或者所述数据报文中包括 所述私网标签、 所述第二层聚合标签和所述第二边缘设备到所述聚合设备 的公网隧道标签;
608 , 所述聚合设备根据所述聚合标签, 通过所述 LSP将收到的所述数 据报文转发给所述第一边缘设备;
举例说明, 当所述聚合设备仅包含一层聚合设备时, 所述聚合设备弹 出所述数据报文的公网隧道标签, 读取所述聚合标签, 查询 ILM表, 获得 所述数据报文将要转发到的所述第一边缘设备, 然后将所述数据报文转发 至所述第一边缘设备。 其中, 所述 ILM ( Incoming Labe l Map, 标签转发映 射表)表具有从入标签到相应的下一跳标记转发入口的映射关系, 以将数 据才艮文传送到正确的下一跳地址。
当所述聚合设备包含第一层聚合设备和第二层聚合设备时, 所述聚合 设备按照实施例 1提供的标签分配方法中报文转发的方式将数据报文转发 给所述第一边缘设备, 在此不再赘述。
609 , 第一边缘设备将接收到的所述数据报文发送到相应的目的地。 举例来说, 所述数据报文到达第一边缘设备后, 第一边缘设备弹出私 网标签, 进入对应的 VPN实例, 第一边缘设备通过查找 FIB表从而将数据 "^文传送到相应的目的地。
参见图 7 , 本发明实施例还提供一种报文转发系统, 所述报文转发系统 包括: 第一边缘设备 701 , 聚合设备 702 , 第二边缘设备 703。
第一边缘设备 701 , 用于向聚合设备 702发送路由消息, 所述路由消息 包括所述第一边缘设备发布的私网路由;
所述第一边缘设备 701可以为 UPE , 也可以为 NPE, 为了方便描述, 本 发明实施例以所述第一边缘设备 701为 UPE进行详细描述。
举例来说, 所述聚合设备可以包括: 聚合设备路由消息接收单元, 用 于接收所述第一边缘设备发送的路由消息, 所述路由消息包括所述第一边 缘设备发布的私网路由;
标签分配与 LSP建立单元, 用于分配一个与所述第一边缘设备对应的 聚合标签, 并根据所述聚合标签建立 LSP, 所述 LSP用于所述聚合设备将接 收到的携带所述聚合标签的数据报文传送到所述第一边缘设备;
路由消息发送单元, 用于将所述聚合标签利用路由消息发送给所述第 二边缘设备。
所述聚合设备可以为实施例 1 中的所述聚合设备, 也可以为实施例 2 中所述的聚合设备, 在此不再赘述。 图 7 为聚合设备包括一层聚合设备时 的系统结构示意图, 图 8 为聚合设备包括两层聚合设备时的系统结构示意 图。
所述第二边缘设备 703 , 用于接收所述聚合设备 702发送的路由消息, 并保存所述路由消息中的所述私网路由、 聚合标签; 所述第二边缘设备还 用于接收到需要转发到所述第一边缘设备的数据报文时, 将所述聚合标签 携带在所述数据报文中发送给所述聚合设备, 并将携带所述聚合标签的数 据报文发送给所述聚合设备。 所述第二边缘设备 703对接收到的路由消息 式相同, 在此不再赘述。
本发明实施例提供的报文转发方法和系统, 通过接收第一边缘设备发 送的路由消息, 分配一个与所述第一边缘设备对应的聚合标签, 并根据所 述聚合标签建立 LSP ,将所述聚合设备接收到的携带所述聚合标签的数据报 文通过所述 LSP传送到所述第一边缘设备。 与现有技术标签分配过程中需 要消耗大量标签资源相比, 本发明实施例提供的方案, 可以减少标签的分 配, 并且相应的减少建立的 LSP 的数量, 从而达到了节约标签资源和减少 建立的 LSP数量的目的。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分 步骤是可以通过程序来指令相关的硬件来完成, 该程序可以存储于一计算 机可读存储介质中, 存储介质可以包括: 只读存储器 (ROM , Read Only Memory ), 随机存取存储器(RAM, Random Acce s s Memory )、 磁盘或光盘等。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应所述以权利要求的保护范围为准。

Claims

权利要求
1、 一种标签分配方法, 其特征在于, 包括:
聚合设备接收第一边缘设备发送的路由消息, 所述路由消息包括所述 第一边缘设备发布的私网路由;
所述聚合设备分配一个与所述第一边缘设备对应的聚合标签, 并根据 所述聚合标签建立标签交换路径 LSP ,所述 LSP用于所述聚合设备将接收到 的携带所述聚合标签的数据报文传送到所述第一边缘设备。
2、 根据权利要求 1所述的标签分配方法, 其特征在于,
当所述聚合设备包括第一层聚合设备和第二层聚合设备时, 所述聚合 设备分配一个与所述第一边缘设备对应的聚合标签 , 并根据所述聚合标签 建立 LSP具体包括:
所述第一层聚合设备针对所述私网路由分配一个与所述第一边缘设备 对应的第一层聚合标签, 并建立对应所述第一层聚合标签的第一层 LSP , 所 述第一层 LSP用于所述第一层聚合设备将接收到的携带有所述第一层聚合 标签的数据报文传送到所述第一边缘设备;
所述第二层聚合设备接收所述第一层聚合设备发送的路由消息, 所述 第一层聚合设备发送的路由消息中携带所述私网路由和所述第一层聚合标 签;
所述第二层聚合设备分配第二层聚合标签, 并建立对应所述第二层聚 合标签的第二层 LSP ,所述第二层 LSP用于将所述第二层聚合设备接收到的 携带有所述第二层聚合标签的数据报文传送到所述第一层聚合设备。
3、 根据权利要求 2所述的标签分配方法, 其特征在于, 当所述第一层 聚合设备包括两个聚合设备时, 所述第二层聚合设备分配第二层聚合标签 包括:
所述第二层聚合设备分别为所述第一层聚合设备中每个第一层聚合设 备分配一个第二层聚合标签; 或者,
所述第二层聚合设备针对所述第一层聚合设备只分配一个第二层聚合 标签。
4、 根据权利要求 2或 3所述的标签分配方法, 其特征在于, 所述第二 层聚合设备分配第二层聚合标签包括:
所述第二层聚合设备分配第二层聚合标签, 并使用所述第二层聚合标 签替换所述第一层聚合标签; 或者,
所述第二层聚合设备分配第二层聚合标签, 并将所述第二层聚合标签 叠加在所述第一层聚合标签之上。
5、 根据权利要求 2-4任意一项所述的标签分配方法, 其特征在于, 当 所述第一层聚合设备中处于主用状态的第一第一层聚合设备发生故障, 而 处于备用状态的第二第一层聚合设备切换为主用状态时, 所述第二层聚合 设备将接收到的携带有所述第一第一层聚合标签和第二层聚合标签的数据 报文中的第二层聚合标签弹出, 并将所述第一第一层聚合标签交换为第二 第一层聚合标签后发送给所述第二第一层聚合设备; 或者,
当所述第一层聚合设备中处于主用状态的第一第一层聚合设备发生故 障时, 而处于备用状态的第二第一层聚合设备切换为主用状态时, 所述第 二层聚合设备将接收到的携带有所述第二层聚合标签的数据报文中的第二 层聚合标签交换为第二第一层聚合标签后发送给所述第二第一层聚合设 备。
6、 一种聚合设备, 其特征在于, 包括:
路由消息接收单元, 用于接收第一边缘设备发送的路由消息, 所述路 由消息包括所述第一边缘设备发布的私网路由;
标签分配与 LSP建立单元, 用于分配一个与所述第一边缘设备对应的 聚合标签, 并根据所述聚合标签建立 LSP , 所述 LSP用于所述聚合设备将接 收到的携带所述聚合标签的数据报文传送到所述第一边缘设备。
7、 一种第二层聚合设备, 其特征在于, 包括:
路由消息接收单元, 用于接收第一层聚合设备发送的路由消息, 所述 路由消息包括所述第一边缘设备发布的私网路由; 标签分配与 LSP建立单元, 用于分配第二层聚合标签, 并建立对应所 述第二层聚合标签的第二层 LSP ,所述第二层 LSP用于将所述第二层聚合设 备接收到的携带有所述第二层聚合标签的数据报文传送到所述第一层聚合 设备。
8、 根据权利要求 7所述的第二层聚合设备, 其特征在于, 所述标签分 配与 LSP建立单元包括:
第一标签分配与 LSP建立模块, 用于针对第一层聚合设备中的第一第 一层聚合设备分配一个第一第二层聚合标签, 并建立对应所述第一第二层 聚合标签的第一第二层 LSP ,所述第一第二层 LSP以所述第二层聚合设备为 起点, 以第一第一层聚合设备为目的地;
第二标签分配与 LSP建立模块, 用于针对第一层聚合设备中的第二第 一层聚合设备分配一个第二第二层聚合标签, 并建立对应所述第二第二层 聚合标签的第二第二层 LSP ,所述第二第二层 LSP以所述第二层聚合设备为 起点, 以所述第二第一层聚合设备为目的地。
9、 根据权利要求 7所述的第二层聚合设备, 其特征在于, 所述标签分 配与 LSP建立单元包括:
第一层聚合设备主备状态确定模块, 用于确定第一层聚合设备的主备 状态;
标签分配与 LSP建立模块, 用于针对所述第一层聚合设备主备状态确 定模块确定的处于主用状态的第一层聚合设备分配一个第二层聚合标签, 并建立对应所述第二层聚合标签的第二层 LSP ,所述第二层 LSP用于将所述 第二层聚合设备接收到的携带有所述第二层聚合标签的数据报文传送到所 述第一层聚合设备。
1 0、 根据权利要求 7-9任意一项所述的第二层聚合设备, 其特征在于, 所述第二层聚合设备进一步包括数据报文处理单元, 所述数据报文处理单 元用于根据所述第二层聚合设备接收到的数据报文中的第二层聚合标签, 将所述数据报文通过所述第二层 LSP发送给所述第一层聚合设备。
11、根据权利要求 7-10任意一项所述的第二层聚合设备,其特征在于, 所述标签分配与 LSP建立单元包括:
主备切换检测模块, 用于检测第一层聚合设备是否发生主用和备用状 态的切换;
标签处理模块, 用于将接收到的携带有第二层聚合标签和第一层聚合 标签的数据报文中的第二层聚合标签弹出, 该第一层聚合标签为切换前处 于主用状态的第一第一层聚合设备针对第一边缘设备分配的第一第一层聚 合标签, 将所述第一第一层聚合标签交换为第二第一层聚合标签, 所述第 二第一层聚合标签是由当前处于主用状态的第二第一层聚合设备针对第一 边缘设备分配的, 然后由所述数据报文处理单元将携带所述第二第一层聚 合标签的数据报文发送给所述第二第一层聚合设备。
12、 一种数据报文转发方法, 其特征在于, 包括:
第一边缘设备向聚合设备发送路由消息, 所述路由消息中包括所述第 一边缘设备发布的私网路由;
所述聚合设备接收所述路由消息;
所述聚合设备分配一个与所述第一边缘设备对应的聚合标签, 并根据 所述聚合标签建立 LSP ,所述 LSP用于所述聚合设备将接收到的携带所述聚 合标签的数据报文传送到所述第一边缘设备;
所述聚合设备将所述私网路由、 所述聚合标签利用路由消息发送给第 二边缘设备;
所述第二边缘设备接收所述聚合设备发送的路由消息;
所述第二边缘设备接收到需要转发到所述第一边缘设备的数据报文 时, 将所述聚合标签携带在所述数据报文中发送给所述聚合设备;
所述聚合设备接收所述第二边缘设备发送的所述数据报文;
所述聚合设备根据所述聚合标签, 通过所述 LSP将收到的所述数据报 文转发给所述第一边缘设备;
所述第一边缘设备将接收到的所述数据报文发送到相应的目的地。 、 一种 文转发系统, 其特征在于, 所述 文转发系统包括: 第
PCT/CN2012/081164 2011-09-13 2012-09-10 一种标签分配方法及聚合设备 WO2013037280A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110269861.6 2011-09-13
CN201110269861.6A CN103001872B (zh) 2011-09-13 2011-09-13 一种标签分配方法及聚合设备

Publications (1)

Publication Number Publication Date
WO2013037280A1 true WO2013037280A1 (zh) 2013-03-21

Family

ID=47882611

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/081164 WO2013037280A1 (zh) 2011-09-13 2012-09-10 一种标签分配方法及聚合设备

Country Status (2)

Country Link
CN (1) CN103001872B (zh)
WO (1) WO2013037280A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601431B (zh) * 2014-12-31 2018-04-20 华为技术有限公司 一种vpn业务的接入方法及网络设备
CN106034075B (zh) * 2015-03-09 2020-03-27 中兴通讯股份有限公司 一种为vpn路由分配标签的方法及装置
CN114726775B (zh) * 2020-06-24 2023-04-28 华为技术有限公司 一种路由信息发送方法、报文发送方法及相关装置
CN112598096B (zh) * 2020-12-15 2021-07-20 广州若羽臣科技股份有限公司 一种基于商品大数据的电子价签更新方法及系统
CN113765794B (zh) * 2021-09-30 2022-11-25 新华三信息安全技术有限公司 数据发送的方法、装置、电子设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725727A (zh) * 2004-07-21 2006-01-25 华为技术有限公司 一种标签交换路径聚合方法
CN101014014A (zh) * 2007-02-09 2007-08-08 华为技术有限公司 路由聚合方法、报文转发方法以及自治系统边界路由器
CN101013995A (zh) * 2007-02-12 2007-08-08 华为技术有限公司 网络节点设备、网络系统及隧道建立方法
CN101142791A (zh) * 2005-02-14 2008-03-12 特利亚索内拉股份公司 用于在自治系统之间提供虚拟专用网络服务的方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100391199C (zh) * 2004-11-22 2008-05-28 华为技术有限公司 一种增强通用成帧规程连接能力的方法及其装置与系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725727A (zh) * 2004-07-21 2006-01-25 华为技术有限公司 一种标签交换路径聚合方法
CN101142791A (zh) * 2005-02-14 2008-03-12 特利亚索内拉股份公司 用于在自治系统之间提供虚拟专用网络服务的方法
CN101014014A (zh) * 2007-02-09 2007-08-08 华为技术有限公司 路由聚合方法、报文转发方法以及自治系统边界路由器
CN101013995A (zh) * 2007-02-12 2007-08-08 华为技术有限公司 网络节点设备、网络系统及隧道建立方法

Also Published As

Publication number Publication date
CN103001872B (zh) 2016-03-30
CN103001872A (zh) 2013-03-27

Similar Documents

Publication Publication Date Title
US9781032B1 (en) MPLS label usage in ethernet virtual private networks
US10250459B2 (en) Bandwidth on-demand services in multiple layer networks
CN102664788B (zh) Mpls l3vpn中ce双归链路保护的方法及系统
CN101771577B (zh) 一种为双向lsp建立双向转发检测的方法、系统及设备
WO2010069175A1 (zh) 一种建立双向转发检测的方法、系统及设备
US20130272114A1 (en) Pseudo wire switching method and device
WO2012130034A1 (zh) 一种vpls快速重路由方法和设备
WO2018103099A1 (zh) 发送和接收消息的方法、设备和系统
US9813332B2 (en) Method, device and system for establishing label switched path
WO2011060667A1 (zh) 一种虚拟专用局域网络中链路保护的方法及设备
US8988985B2 (en) Internetworking and IP address management in unified MPLS and IP networks
WO2022121466A1 (zh) 以太虚拟专用网的数据处理方法、设备及存储介质
WO2013139270A1 (zh) 实现三层虚拟专用网络的方法、设备及系统
WO2019205836A1 (zh) 一种数据报文转发的方法及装置
WO2013037280A1 (zh) 一种标签分配方法及聚合设备
US20230208751A1 (en) Packet forwarding method, device, and system
CN102316014A (zh) 分层虚拟专用局域网服务环境下的负载分担方法及路由器
WO2011140923A1 (zh) 一种建立标签交换路径的方法和装置
WO2013159549A1 (zh) 一种建立和使用浮动网段的方法、装置和系统
CN103139040A (zh) 一种扩展的vpn frr实现方法和设备
WO2016090815A1 (zh) 一种部署大容量业务时的切换控制方法及装置
EP2832055B1 (en) Pseudowire groups in a packet switched network
EP2832061B1 (en) Pseudowire extended group messaging in a packet switched network
CN106789523B (zh) 一种逻辑隧道的创建方法及装置
WO2011144139A1 (zh) 检测自治系统内ip地址冲突的方法及设备

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: 12831171

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: 12831171

Country of ref document: EP

Kind code of ref document: A1