[go: up one dir, main page]

WO2017193733A1 - Route propagation method, and node - Google Patents

Route propagation method, and node Download PDF

Info

Publication number
WO2017193733A1
WO2017193733A1 PCT/CN2017/079350 CN2017079350W WO2017193733A1 WO 2017193733 A1 WO2017193733 A1 WO 2017193733A1 CN 2017079350 W CN2017079350 W CN 2017079350W WO 2017193733 A1 WO2017193733 A1 WO 2017193733A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
label
target route
identifier information
global
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/079350
Other languages
French (fr)
Chinese (zh)
Inventor
梁乾灯
陈霞
李振斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
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 WO2017193733A1 publication Critical patent/WO2017193733A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised 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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • the embodiments of the present invention relate to the field of network communication technologies, and in particular, to a method and a node for route distribution.
  • the globality of the global label is limited to the network domain where the application global label is deployed, and only the global label is unique within the network domain. In the forwarding path of the global label, the label is not exchanged or the label and the inbound label are exactly the same when the label is exchanged. However, the network domain where the global label is applied may be a subset of the Multi-Protocol Label Switching (MPLS) network. Therefore, you need to consider the global label and the local label. The problem of docking.
  • MPLS Multi-Protocol Label Switching
  • the prior art relies on the static configuration to identify the edge node of the network domain where the application global label is deployed, which is not flexible and automatic, and may cause the forwarding node to get an error response or cause a label conflict of the neighbor node of the forwarding node.
  • the present application provides a method and a node for route distribution, and the forwarding node can automatically identify whether the neighbor node of the dynamic routing protocol relative to the downstream is an edge node of the network domain where the global label is applied, and can avoid the mapping between the route and the global label. Spread to nodes outside the network domain to avoid label conflicts or unnecessary error responses from these external nodes.
  • a local label that uniquely identifies a service for example, an IP prefix
  • takes effect on a node device, including a virtual device.
  • Global tag A tag that uniquely identifies a service in a network of an administrative domain and can take effect on multiple nodes (devices) of the network.
  • Global label domain which deploys networks that apply global labels.
  • Global labels can be advertised between nodes in the global label domain, and local labels that are valid only locally on the node can be advertised.
  • a global label application policy is a policy for assigning global labels to specified routes.
  • Dynamic routing protocol According to whether it is used within an autonomous domain, the dynamic routing protocol is divided into an Interior Gateway Protocol ("IGP") and an Exterior Gateway Protocol (“EGP").
  • An autonomous system (AS) refers to a network with a unified management organization and a unified routing policy.
  • the routing protocol adopted within the autonomous domain is called the internal gateway protocol.
  • the Routing Information Protocol (RIP) and the Open Shortest Path First (OSPF) are used.
  • the external gateway protocol is mainly used for routing between multiple autonomous domains. Select, commonly used is the Border Gateway Protocol (“BGP”) and BGP-4.
  • Disseminate an operation in which a node in a network sends a message to another node, where the message includes but is not limited to: a mapping relationship between a route, a route, and a label, an identifier information of a global label domain where the node is located, a BGP update message, Link state protocol in Link-State-Advertisement (LSA) message and Intermediate System to Intermediate System (IS-IS) protocol in OSPF Link State Protocol Data Unit ("LSP").
  • LSA Link-State-Advertisement
  • IS-IS Intermediate System to Intermediate System
  • LSP OSPF Link State Protocol Data Unit
  • the dissemination can be replaced with words such as posting, sending, advertising, and the like.
  • a method for routing a route including: receiving, by a first node, first identifier information that is generated by a second node, where the first identifier information is used to identify a global label domain to which the second node belongs; And the node, according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route is generated to the second node, where the second identifier information is used to identify the first The global label domain to which the node belongs.
  • the destination route is the route from the first node to the second node.
  • the node may be, but not limited to, a router and a switch.
  • the identifier information of the global label domain may be a router ID of the controller node of the global label domain, or other globally unique ID value, which is not limited in this application.
  • the first node when the first node receives the ID sent by the second node, it confirms whether the received ID is the same as the ID of the global label domain to which it belongs. If the same, the second node and the first node belong to the same global label.
  • the domain that is, the first node is not an edge node of the global label domain, and the first node may distribute the mapping relationship between the received route and the global label to the second node. If the ID sent by the second node received by the first node is different from the ID of the global tag field to which the first node belongs or the first node does not receive the ID advertised by the second node, the first node and the second node are considered to be different.
  • the node determines the type of the label to be distributed to the neighbor node by the matching result of the identifier information of the global label domain to which the node belongs and the identification information of the global label domain to which the neighbor node of the node belongs.
  • the method before the mapping, by the first node, the mapping of the target route and the label corresponding to the target to the target node, the method further includes: The first node acquires the target route; the first node allocates or applies a label for the target route.
  • the first node allocates or applies a label to the target route, including: if the target route hits the first a routing policy of the global label that is deployed on the node, the first node requests a label for the target route from the control node in the global label domain to which the first node belongs; the first node receives the target route sent by the control node The first tag is allocated, and the first tag is valid in the global tag domain to which the first node belongs.
  • the first node according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route is generated to the second node, including: if the first node determines The first identifier The information is matched with the identifier of the second identifier information, and the first node distributes the mapping relationship between the target route and the first label to the second node; and/or, if the first node determines the first identifier information and The second identifier information does not match, and the first node distributes the mapping relationship between the target route and the second label to the second node, where the second label is valid locally at the first node.
  • the first identifier information and the second identifier information are matched.
  • the global label field identified by the first identifier information and the global label field identified by the second identifier information are the same global label domain, and the first identifier information and the second identifier information are not.
  • the matching may be understood as the global label field identified by the first identification information and the global label domain identified by the second identification information is not the same global label domain.
  • the first identifier information and the second identifier information are matched.
  • the global label domain ID identified by the first identifier information is the same as the global label domain ID of the second identifier information, and the first identifier information and the second identifier information.
  • the mismatch can be understood as the difference between the global tag domain ID identified by the first identity information and the global tag domain ID identified by the second identity information.
  • the first node is configured with the global label allocated for the target route, or the control node of the global label domain to which the first node belongs has sent the global label corresponding to the target route to the first node
  • a node directly assigns a global label corresponding to the target route to the target route, and obtains a mapping relationship between the target route and the global label, and does not need to apply to the control node again.
  • the first node when the first node receives the mapping relationship between the target route and the label advertised by the other node, if the first node determines that the valid range of the label is the global label domain to which the first node belongs, the first node does not Assigning a local label to the target route, the first node assigning a label to the target route at this time can be understood as the first node assigning the received label to the target route.
  • the method for the route distribution in the embodiment of the present invention does not need to configure the mapping rule between the global label and the local label, and the node can automatically implement the docking between the global label forwarding path and the traditional label switching path.
  • the first node allocates or applies a label to the target route, including: if the target route meets the following conditions ( 1) or (2), the first node assigns a third label to the target route, wherein the third label is valid locally at the first node: (1) the target route does not hit the deployment on the first node The routing policy of the global label is applied, and the global label that is not allocated for the target routing is not configured on the first node, and (2) the routing policy for applying the global label is not deployed on the first node, and the target is not pre-defined on the first node.
  • Global label for route assignment ;
  • the first node according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route is distributed to the second node, including: the first node The second node spreads the mapping relationship between the target route and the third label.
  • the method for the route distribution in the embodiment of the present invention does not need to configure the mapping rule between the global label and the local label, and the node can automatically implement the docking between the global label forwarding path and the traditional label switching path.
  • the first node acquires the target route, including: The first node receives a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is a label that the third node allocates or applies for the target route;
  • the first node allocates or applies a label to the target route, including: the first node determines a valid range of the fourth label; if the valid range of the fourth label is not a global label field to which the first node belongs, The first node assigns or applies a label to the target route.
  • the first node determines the mapping relationship message.
  • the valid range of the label in the middle is the global label field to which the first node belongs. If the valid range of the label is not the global label field to which the first node belongs, the first node needs to allocate or apply a label for the route in the received route and label mapping relationship; if the valid range of the label is the first The global label field to which the node belongs, indicating that the node that broadcasts the mapping relationship message belongs to the same global label domain as the first node, and the first node maintains the mapping relationship between the received route and the label, and the received route and label are received. The mapping relationship is added to the routing and global label mapping relationship table in the first node.
  • mapping table of the local label to the global label of the upstream node and a mapping table of the global label to the newly allocated label of the local label appear at the same time, so that the label formed by the actual iteration
  • the inbound label of the forwarding table is the newly assigned label of the local
  • the outgoing label is the local label advertised by the upstream forwarding node, and does not contain the information of the global label.
  • the mapping relationship message that is transmitted by the third node further includes a label type indication information, where the label type indication information indicates whether the valid range of the label in the mapping relationship message is a global label field to which the first node belongs; The first node determines the valid range of the label according to the label type indication information.
  • the acquiring, by the first node, the target route may include: the first node generates the target route, or the first node receives a customer edge (Customer Edge, referred to as “CE”) The target route sent by the node.
  • Customer Edge referred to as “CE”
  • CE Customer Edge
  • the first node generates a target route that is locally originated as a destination or learns to a target route without a label mapping relationship.
  • the first node determines a valid range of the fourth label, including: the first node receives the third The third identifier information that is generated by the node, the third identifier information is used to identify the global label domain to which the third node belongs; the first node determines the fourth according to the matching result of the second identifier information and the third identifier information The valid range of the label.
  • the first node determines, according to a matching result of the second identifier information and the third identifier information, The valid range of four tags, including:
  • the first node determines the fourth label according to the relationship between the fourth label and the range of the global label address pool of the first node. effective coverage.
  • the first node determines whether the fourth label is in the first node.
  • the range of the global label address pool is the range of labels that the first node itself can assign to the route. If the first node is not in the global label address pool, the valid range of the fourth label is The global label field to which the first node belongs, otherwise the valid range of the fourth label is considered to be the third node local, that is, the fourth label is the local label of the third node.
  • the first node if the first node does not receive the identifier information that is used by the third node to identify the global label domain to which the third node belongs, the first node considers that the third node does not belong to the same global label domain, or The third node is not a node of the global label domain, and the first node may directly determine that the fourth label is a local label whose valid range is local to the third node.
  • the first node receives the second First identification information distributed by the node, the package
  • the first node receives the border gateway protocol BGP update message that is sent by the second node, and the BGP update message carries the first identifier information; or the first node receives the open shortest path priority that is broadcast by the second node.
  • the link state of the OSPF protocol advertises the LSA message, where the LSA message carries the first identifier information; or the first node receives the link state protocol data unit of the intermediate system distributed by the second node to the intermediate system IS-IS protocol
  • the LSP carries the first identification information.
  • the LSP carries a type length value TLV option, where the TLV option carries the first identifier information.
  • a node comprising: a method for performing the first aspect or any of the possible implementations of the first aspect.
  • the node comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
  • a node including: a processor, a memory, a receiver, and a transmitter, the processor, the memory, the receiver, and the transmitter are connected by a bus system, and the memory is configured to store an instruction, where The processor is operative to execute instructions stored in the memory to control the receiver to receive information or the transmitter to transmit information such that the node performs the method of any of the first aspect or any of the possible implementations of the first aspect.
  • a computer readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.
  • a network system includes a first node and a second node, where the first node is configured to receive first identifier information that is sent by the second node, where the first identifier information is used to identify Describe a global label field to which the second node belongs;
  • the first node is configured to: according to the matching result of the first identifier information and the second identifier information, distribute a mapping relationship between the target route and a label corresponding to the target route to the second node, where the second identifier information
  • the global label domain to which the first node belongs is used, and the target route is a route from the first node to the second node.
  • FIG. 2 is a schematic flowchart of a method for route distribution according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a route distribution method according to another embodiment of the present application.
  • FIG. 4 is a schematic block diagram of a node in accordance with an embodiment of the present application.
  • FIG. 5 is another schematic block diagram of a node according to an embodiment of the present application.
  • FIG. 6 is a schematic block diagram of a node according to another embodiment of the present application.
  • FIGS. 1(a)-(c) are schematic views of a scenario to which an embodiment of the present invention is applied.
  • the global label domain covers multiple Autonomous System (AS) 1 and AS2, and the Autonomous System Boundary Router (ASBR).
  • ASBR Autonomous System Boundary Router
  • 1 and ASBR4 are edge nodes of the global label domain
  • ASBR2 and ASBR3 are not edge nodes of the global label domain.
  • the global label field covers the AS6 of the single dynamic routing protocol.
  • ASBR1 and ASBR2 are the edge nodes of the global label domain.
  • ASBR2 needs to terminate the global label forwarding path from ASBR1 to ASBR2.
  • the local tag that was advertised and valid locally in ASBR3.
  • the Border Gateway Protocol (BGP) is used between ASBR1 and ASBR2.
  • BGP runs between ASBR3 and ASBR4.
  • the global label field covers a single dynamic routing protocol autonomous domain.
  • ASBR1 and ASBR2 are edge nodes of the global label domain 1, and belong to AS1.
  • BGP runs between ASBR1 and ASBR2.
  • ASBR3 and ASBR4 are edge nodes of global label domain 2 and belong to AS2.
  • BGP runs between ASBR3 and ASBR4.
  • the ASBR2 needs to terminate the global label forwarding path from ASBR1 to ASBR2, and replace the local label with the local label valid in ASBR3.
  • ASBR3 can re-drive the traffic to a new global label forwarding path.
  • the method 100 includes:
  • the first node receives the first identifier information that is sent by the second node, where the first identifier information is used to identify the global label domain to which the second node belongs.
  • the node after the node joins the global label domain according to the signaling or the configuration, the node advertises the identifier of the global label domain that the user joins to the node's own internal gateway protocol ("IGP") or the BGP neighbor. ID information, and the ID of the global tag field to which the neighbor node is advertised by the neighbor node is saved.
  • the global tag domain ID information may be set to an invalid value indicating that the node advertising the global tag domain ID information does not join the global tag domain.
  • forwarding nodes A, B, C, and E join the global label domain, forwarding nodes A, B, and C belong to AS1, forwarding nodes E and D belong to AS2, and forwarding nodes F, G, and H belong to AS3.
  • a global label application policy matching 192.0.3.1/32 is deployed on the forwarding node A. That is, the forwarding node A allocates a global label to match the IP prefix of 192.0.3.1/32; and deploys a global matching match of 192.0.4.1/32 on the forwarding node E.
  • the label application policy that is, the forwarding node E assigns a global label to the IP prefix matching the 192.0.4.1/32.
  • An IBGP internal BGP
  • EBGP external BGP
  • the dotted line in FIG. 3 indicates the process of advertising the mapping between the route corresponding to the local loopback interface address 192.3.3.1/32 of the customer edge (Customer Edge ("CE") node 1 and the label bound to the route.
  • the specific notification process shown by the dotted line in FIG. 3 is: CE1 advertises the route corresponding to 192.0.3.1/32 to node A, and node A requests the control node for the route (corresponding to number 1 in FIG. 3) and receives The label sent by the control node for the route (corresponding to the number 2 in FIG. 3); the node A notifies the node C of the mapping relationship between the route and the label (corresponding to the number 3 in FIG. 3); the node C receives the node A.
  • the mapping relationship is advertised to the node E (corresponding to the number 4 in FIG. 3).
  • the node E After receiving the mapping relationship advertised by the node C, the node E re-assigns the label to the node G and sends the label to the node G. Notifying the mapping relationship between the route and the re-allocated label of the node C (corresponding to the number 5 in FIG. 3); after receiving the mapping relationship advertised by the node E, the node G re-assigns the label to the route and advertises the route to the node H. Reassigned with node G Signed mapping relation (corresponding to FIG. 3 No. 6); Node H advertises the route to CE2.
  • the dotted line in FIG. 3 indicates the notification process of the mapping between the route corresponding to the loopback interface address 192.0.4.1/32 of CE2 and the label bound to the route.
  • the specific notification process will be specifically described below.
  • the BGP update message may carry the newly defined Path Attribute or the newly defined Extended Communities Attribute to the BGP neighbor node of the forwarding node A (below Also referred to as "BGP Peer", the forwarding node B, C advertises the ID information of the global label field that it joins, and saves the ID of the global label field to which the forwarding node B, C advertises, and the forwarding node B, C belong.
  • the newly defined path attribute or the newly defined extended team attribute carries the ID information of the global label field added by the forwarding node that sends the attribute. If the ID of the global label field is an invalid value, it indicates that the path attribute or the new definition carrying the new definition is sent.
  • the forwarding node of the BGP update message that extends the team attribute does not join the global tag field.
  • the forwarding node E in the same AS2 can determine that the forwarding node C in AS1 belongs to the same global label domain according to the ID information of the global label domain joined by the forwarding node C advertised by the forwarding node C, and the forwarding node D in AS2
  • the forwarding nodes F, G, and H in AS3 do not belong to the global label domain.
  • the forwarding node G does not join the global label field, and may not notify the E, F, and H of the ID information of the global label field to which it belongs, but may receive the ID information of the global label field to which the forwarding node E to which the forwarding node E belongs.
  • a global label field attribute (Global-Label-Domain-Attribute) may be newly defined in the Path Attribute, and the Global-Label-Domain-Attribute carries the ID information of the global label field, and the Path Attribute
  • the reference format is shown in Table 1.
  • the definition of the attributes (Flags) field can be referred to the Request For Comments (RFC) 1267.
  • the Type field defines the type of the tag as a global tag. This attribute is optional and non-transitive.
  • Length field indicating the length of the global label.
  • the global tag domain ID indicates the ID of the global tag domain, and the ID of the global tag domain is unique throughout the global tag domain.
  • a Global-Label-Domain-Attribute attribute may be newly defined in the Extended Communities Attribute, and the reference format of the Extended Communities Attribute is as shown in Table 2.
  • the global tag domain ID indicates the ID of the global tag domain, and the ID of the global tag domain is unique throughout the global tag domain.
  • the forwarding node may define a new chain in the OSPF protocol when advertising the ID information of the global label domain to which the forwarding node belongs.
  • Link state (“LS") type Global-Label Domain-Link-State-Advertisement (GLDLSA), which carries the ID of the global tag domain.
  • the forwarding node advertises a GLD-LSA message to its neighboring node, and the neighboring node that receives the GLD-LSA message can obtain the ID information of the global label domain to which the forwarding node belongs from the GLD-LSA message.
  • GLD The reference format of the -LSA is shown in Table 3.
  • LSA Header refers to RFC 2328.
  • TMD To Be Determined
  • a global tag domain ID (GLD_ID) indicating the ID of the global tag domain whose ID is unique throughout the global tag domain.
  • TLV Type-Length-Value
  • IS-IS Intermediate System to Intermediate System
  • the Type in the TLV option indicates the global tag domain attribute, this attribute is optional, the Length field indicates the length of the GLD_ID, the GLD_ID indicates the ID of the global tag field, and the ID of the global tag field is unique in the entire global tag field.
  • the forwarding node may carry the new TLV option in a Link State Protocol Data Unit (LSP), and the forwarding node that receives the LSP sent by the forwarding node may learn the LSP according to the LSP. ID of the global tag domain to which the forwarding node belongs.
  • LSP Link State Protocol Data Unit
  • ID of the global tag domain to which the forwarding node belongs For example, the reference format of the TLV can be as shown in Table 4.
  • the first node according to the matching result of the first identifier information and the second identifier information, distributes, to the second node, a mapping relationship between the target route and a label corresponding to the target route, where the second identifier information is used. And identifying the global label domain to which the first node belongs, the target route is a route from the first node to the second node.
  • the first node may generate the first node as a source node, use the second node as a destination route of the destination node, or learn the target route from the first node to the second node without a label mapping relationship. .
  • the first node then checks whether the target route hits the global label application policy deployed locally by the first node. If the target route hits the global label application policy deployed locally by the first node, the first node may apply for a global label to the control node of the global label domain to which the first node belongs. Or, if the first node has a global label locally, the first node allocates the existing global label to the target route, and forms a mapping relationship between the target route and the global label.
  • the first node allocates a local label to the target route to form a target route and The mapping relationship of local tags.
  • the forwarding node A learns that the customer edge (Customer Edge ("CE") node 1 is advertised by BGP or locally configured route 192.0.3.1/32. Because the route 192.0.3.1/32 hits the global label application policy of the local deployment of the forwarding node A, the forwarding node A applies the global label to the control node of the global label domain to which the forwarding node A belongs for the route 192.0.3.1/32.
  • Customer Edge Customer Edge
  • the forwarding node A sends the request information carrying the route (192.0.3.1/31) to which the global label is to be applied to the control node.
  • the request information may further include a virtual routing forwarding (Virtual Routing Forwarding, referred to as "VRF" information.
  • VRF Virtual Routing Forwarding
  • the control node responds to the request information of the forwarding node A, and allocates a global route for the forwarding node A (192.0.3.1/31). Label Lable1, and send a mapping relationship between the route 192.0.3.1/31 and the Lable 1 to the forwarding node A.
  • the protocol for the forwarding node A to interact with the control node may be an extended BGP or RESTConf protocol, or may be other protocols. The invention is not limited thereto.
  • the forwarding node A may further send the label range of the forwarding node A to the control node, so that the control node allocates the global label to the forwarding node A within the label range of the forwarding node A.
  • the forwarding node determines whether the label is a global label. If the forwarding node determines that the label is a global label, the forwarding node advertises a route to the neighboring node of the forwarding node according to the identifier of the global label domain to which the neighboring node of the forwarding node belongs and the identifier of the global label domain to which the forwarding node belongs. The mapping relationship with the label. If the forwarding node determines that the label is not a global label, the forwarding node directly advertises the mapping relationship between the route and the label to the neighboring node of the forwarding node.
  • the forwarding node A obtains the mapping relationship between 192.0.3.1/32 and the global label Label 1, and checks the ID of the global label domain to which the own BGP Peer forwarding node belongs, and the forwarding node A determines the forwarding node C.
  • the forwarding node A and the forwarding node A belong to the same global label domain, and the forwarding node A advertises the mapping relationship between 192.0.3.1/32 and Label 1 to the forwarding node C through BGP.
  • the forwarding node A can also notify the forwarding node C of the mapping relationship between 192.0.3.1/32 and Label 1 through a Label Distribution Protocol ("LDP") session.
  • LDP Label Distribution Protocol
  • the forwarding node A advertises a label mapping message to the forwarding node C.
  • the label field in the universal label TLV in the label mapping message includes a global label flag, where the global label flag is used to indicate the label in the advertised mapping relationship. Whether it is a global label.
  • the highest bit of the 32Bit tag field may be defined as a global tag flag bit. When the value of the flag bit is 1, the tag in the mapping relationship is a global tag. When the value of the flag bit is 0, the mapping relationship is The label is a local label.
  • the forwarding node B determines that the forwarding node E and the forwarding node B belong to the same global label domain according to the ID of the global label domain to which the forwarding node E advertised by the forwarding node E belongs, so the forwarding node B adopts the same same as the forwarding node A.
  • the method notifies the forwarding node E of the mapping relationship between 192.0.3.1/32 and Label 1.
  • the forwarding node E After the forwarding node E receives the mapping relationship between 192.0.1.3/32 and Label 1 advertised by the forwarding node B, the forwarding node E determines the forwarding node B and the forwarding node according to the ID of the global label domain to which the forwarding node B advertised by the forwarding node B belongs. E belongs to the same global label field, so the forwarding node E directly adds the mapping relationship between 192.0.3.1/32 and Label 1 in the forwarding node E, and the forwarding node E does not receive the global label to which the forwarding node G advertised by the forwarding node G belongs.
  • the forwarding node E determines that the forwarding node G and the forwarding node E are not in the same global label domain, so the forwarding node E obtains the local label Label 2 from the local label resource pool local to the forwarding node E, and The forwarding node G advertises the mapping relationship between 192.0.3.1/32 and Label 2.
  • the forwarding node G since the forwarding node G does not belong to the global label domain, the forwarding node G obtains the local label Label 3 from the local label resource pool of the forwarding node G, and advertises the mapping of 192.0.3.1/32 and Label 3 to the forwarding node H through BGP. relationship.
  • the forwarding path of the traffic from CE2 with IP address 192.0.4.1 to CE1 with IP address 192.0.3.1 is: CE2->H->G->E->C->A->CE1,
  • the label forwarding table along the way is CE2->(Input:192.0.3.1)H(Output:Label 3)->G(Output:Label 2)->E(Output:Label 1)->C(Output:Label 1) -> A (Output: 192.0.3.1) -> CE1, where H->G->E is a legacy LSP, the label is switched point by point to the forwarding node; E->C->A is the global label forwarding path.
  • the forwarding node H in FIG. 3 receives the route 192.0.4.1/32 advertised by the CE2 or locally configured, because the forwarding node H does not join the global label domain, the forwarding node H allocates the route 192.0.4.1/32. A local label Label 4. And advertise the route to the forwarding node G through the BGP to the forwarding node G. 192.0.4.1/32, and advertise the mapping between the 192.0.4.1/32 and the label 4 to the forwarding node G through LDP. Optionally, the forwarding node H can also forward the node G through BGP. The mapping relationship between the route 190.4.4.1/32 and Label 4 is notified (corresponding to the number I in Figure 3).
  • the forwarding node G When the forwarding node G receives the mapping relationship between the route 190.4.1.3/32 and the Label 4 advertised by the forwarding node H, since the forwarding node G is not in the global label domain, the forwarding node G assigns the local label Label 5 to the route 192.4.4.1/32. The mapping relationship between the route 190.4.4.1/32 and the Label 5 is notified to the forwarding node E through BGP (corresponding to the number II in FIG. 3).
  • the forwarding node E After the forwarding node E receives the mapping relationship between the forwarding node G and the route 190.4.4.1/32 and Label 5, the forwarding node E The forwarding node G and the forwarding node E do not belong to the same global label domain, so the Label 5 advertised by the forwarding node G is not a global label. However, the forwarding node E checks that the route 190.4.4.1/32 hits the global label application policy deployed locally by the forwarding node E. Therefore, the forwarding node E requests the control node of the global label domain to which the forwarding node E belongs to apply for the global correspondence corresponding to the 192.0.4.1/32. Label (corresponding to number III in Figure 3). The control node of the global label field assigns the global label Label 6 to the route 192.0.4.1/32, and sends the global label Label 6 assigned to the route 192.4.4.1/32 to the forwarding node E (corresponding to the number IV in FIG. 3).
  • the forwarding node E determines that the forwarding node C and the forwarding node E belong to the same global label domain according to the ID of the global label domain to which the forwarding node C advertised by the forwarding node C belongs, whereby the forwarding node E directly advertises the route to the forwarding node C through BGP 192.0.
  • the mapping relationship between 4.1/32 and Label 6 (corresponding to the number V in Figure 3).
  • the forwarding node C determines that the forwarding node C and the forwarding node A belong to the same global label domain according to the ID of the global label domain to which the forwarding node A advertised by the forwarding node A belongs. Therefore, the forwarding node C directly advertises the route to the forwarding node A through BGP.
  • the mapping relationship between 192.0.4.1/32 and Label 6 (corresponding to the number VI in Figure 3).
  • the forwarding path of the traffic from CE1 with the IP address of 192.0.3.1 to the IP address of 192.0.4.1 is CE1->A->C->E->G->H->CE2.
  • the label forwarding table is CE1->(Input:192.0.4.1)A(Output:Label 6)->C(Output:Label 6)->E(Output:Label 5)->G(Output:Label 4)- >A(Output:192.0.3.1)->CE2, where A->E->C is the global label forwarding path, E->G->H is the traditional LSP, and the label is switched point by point to the forwarding node.
  • the node 10 includes:
  • the receiving unit 11 is configured to receive first identifier information that is generated by the second node, where the first identifier information is used to identify a global label domain to which the second node belongs;
  • the sending unit 12 is configured to: according to the matching result of the first identifier information and the second identifier information, distribute a mapping relationship between the target route and a label corresponding to the target route to the second node, where the second identifier information is used by To identify the global tag domain to which the node belongs, the target route is the route of the node to the second node.
  • the node of the embodiment of the present invention determines the type of the label to be transmitted to the neighbor node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs.
  • the edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.
  • the node 10 further includes: a processing unit 13;
  • the processing unit 13 is configured to: acquire the target route; and allocate or apply a label for the target route.
  • the sending unit 12 is further configured to: if the target route hits a routing policy of the application global label deployed on the node, to the control node in the global label domain to which the node belongs a destination route requesting label; the receiving unit 11 is further configured to: receive a first label that is sent by the control node and that is allocated to the target route, where the first label is valid in a global label domain to which the node belongs;
  • the sending unit 12 is configured to: spread the mapping relationship between the target route and the first label to the second node; and/or,
  • the sending unit 12 And a method for: transmitting, to the second node, a mapping relationship between the target route and the second label, where the second label is valid locally at the node.
  • the processing unit 13 is specifically configured to: if the target route meets the following condition (1) or (2), assign a third label to the target route, where the third label It is valid locally on the node: (1) The target route does not hit the routing policy of the request global label deployed on the node, and there is no global label allocated on the node for the target route. (2) There is no deployment request globally on the node. The routing policy of the label and there is no global label assigned to the target route on the node;
  • the sending unit 12 is specifically configured to: spread the mapping relationship between the target route and the third label to the second node.
  • the receiving unit 11 is further configured to: receive a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is that the third node allocates the target route Or the label of the application;
  • the processing unit 13 is specifically configured to: determine a valid range of the fourth label, and determine, if it is determined that the valid range of the fourth label is not a global label field to which the node belongs, Target route assignment or application tag.
  • the receiving unit 11 is further configured to: receive third identifier information that is distributed by the third node, where the third identifier information is used to identify a global label domain to which the third node belongs;
  • the processing unit 13 is specifically configured to: determine, according to a matching result of the second identifier information and the third identifier information, a valid range of the fourth label.
  • the processing unit 13 is specifically configured to: if the processing unit Determining that the second identifier information matches the third identifier information, and determining a valid range of the fourth label according to the relationship between the fourth label and the range of the global label address pool of the node.
  • the receiving unit 11 is specifically configured to: receive a border gateway protocol BGP update message that is sent by the second node, where the BGP update message carries the first identifier information; or, receive the first The link state of the open shortest path first OSPF protocol of the two-node broadcasts the LSA message, the LSA message carries the first identifier information; or receives the link of the intermediate-to-intermediate system IS-IS protocol spread by the second node
  • the state protocol data unit LSP carries the first identification information.
  • the node 10 may correspond to performing the first node in the method 100 in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the node 10 are respectively implemented to implement FIG. 2
  • the corresponding process corresponding to the first node in the method in the method is not described here for brevity.
  • the node of the embodiment of the present invention determines the type of the label advertised to the neighboring node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs.
  • the edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.
  • an embodiment of the present invention further provides a node 100.
  • the node 100 includes a processor 101, a receiver 102, a transmitter 103, and a memory 104.
  • the processor 101, the memory 104, the receiver 102 and the transmitter 103 are connected by a bus system 105 for storing instructions for executing instructions stored by the memory 104 to control the receiver 102 to receive.
  • the signal and control transmitter 103 sends a signal.
  • the receiver 102 is configured to: receive the first identifier information that is sent by the second node, where the first identifier information is used to identify the global label domain to which the second node belongs; the sender 103 is further configured to: And mapping, according to the matching result of the first identifier information and the second identifier information, a mapping relationship between the target route and a label corresponding to the target route, where the second identifier information is used to identify that the node belongs to A global label field, the destination route is a route from the node to the second node.
  • the node of the embodiment of the present invention determines the type of the label advertised to the neighboring node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs.
  • the edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.
  • the processor 101 may be a central processing unit (“CPU"), and the processor 101 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 104 can include read only memory and random access memory and provides instructions and data to the processor 410. A portion of the memory 104 may also include a non-volatile random access memory. For example, the memory 104 can also store information of the device type.
  • the bus system 105 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 105 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 101 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 104, and the processor 101 reads the information in the memory 104 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the processor 101 before the transmitter 103 transmits the mapping relationship between the target route and the label corresponding to the target route to the second node, the processor 101 is configured to: obtain the target route; Target route assignment or application tag.
  • the transmitter 103 is specifically configured to: if the target route hits a routing policy of a request global label deployed on the node, the control node in the global label domain to which the node belongs is the target route. Apply for a label;
  • the receiver 102 is specifically configured to: receive a first label that is sent by the control node and that is allocated to the target route, where the first label is valid in a global label field to which the node belongs;
  • the transmitter 103 is configured to: spread the mapping relationship between the target route and the first label to the second node; and/or,
  • the transmitter 103 is configured to: spread the mapping relationship between the target route and the second label to the second node, where the second label is This node is valid locally.
  • the processor 101 is specifically configured to: if the target route meets the following condition (1) or (2), assign a third label to the target route, where the third label is in the The node is locally valid: (1) The target route does not hit the routing policy of the request global label deployed on the node, and there is no global label allocated on the node for the target route. (2) The global label is not deployed on the node. Routing policy and there is no global label assigned to the target route on the node;
  • the transmitter 103 is specifically configured to: distribute the mapping relationship between the target route and the third label to the second node.
  • the receiver 102 is further configured to: receive a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is used by the third node to allocate or apply for the target route. s Mark;
  • the processor 101 is specifically configured to: determine a valid range of the fourth label, and determine, if the valid range of the fourth label is not a global label field to which the node belongs, Target route assignment or application tag.
  • the receiver 102 is further configured to: receive the third identifier information that is sent by the third node, where the third identifier information is used to identify a global label domain to which the third node belongs;
  • the processor 101 is specifically configured to: determine, according to a matching result of the second identifier information and the third identifier information, a valid range of the fourth label.
  • the processor 101 in determining a valid range of the fourth label according to a matching result of the second identifier information and the third identifier information, is specifically configured to: if the processor 101 determines The second identifier information is matched with the third identifier information, and the effective range of the fourth label is determined according to the relationship between the fourth label and the range of the global label address pool of the node.
  • the receiver 102 is configured to: receive a border gateway protocol BGP update message that is sent by the second node, where the BGP update message carries the first identifier information; or receive the second node.
  • the link state of the open shortest path first OSPF protocol is advertised to the LSA message, and the LSA message carries the first identifier information; or, the link state of the intermediate system to the intermediate system IS-IS protocol is received.
  • the protocol data unit LSP message carries the first identifier information.
  • the node 100 may correspond to the node 10 in the embodiment of the present invention, and may correspond to the first node in the method 100 according to the embodiment of the present invention, and each module in the node 100
  • the foregoing and other operations and/or functions are respectively used to implement the corresponding processes corresponding to the first node in the method of FIG. 2, and are not described herein again for brevity.
  • the node of the embodiment of the present invention determines the type of the label advertised to the neighboring node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs.
  • the edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple orders.
  • Meta or components may be combined or integrated into another system, or some features may be omitted or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • An integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a route propagation method, and a node. The method comprises: a first node receives first identification information propagated by a second node and used to indicate a global label domain that the second node belongs to; and the first node propagates to the second node and according to a matching result of the first identification information and second identification information, a mapping relationship between a target route and a label corresponding to the target route, wherein the second identification information is used to indicate a global label domain that the first node belongs to, and the target route is a route from the first node to the second node. Therefore, the embodiment can automatically prevent the mapping relationship between the route and the global label thereof from being propagated to a node outside the global label domains of the first and second nodes, preventing label conflict or an unnecessary false response of an external node.

Description

路由散播的方法和节点Route dissemination method and node

本申请要求于2016年05月13日提交中国专利局、申请号为201610321953.7、发明名称为“路由散播的方法和节点”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. Serial No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No

技术领域Technical field

本申请实施例涉及网络通信技术领域,尤其涉及路由散播的方法和节点。The embodiments of the present invention relate to the field of network communication technologies, and in particular, to a method and a node for route distribution.

背景技术Background technique

全局标签的全局性受限于部署应用全局标签的网络域,仅仅在该网络域内,全局标签是唯一的。在全局标签的转发路径中,标签是不交换的或者标签交换时出标签和入标签完全一致。但由于部署应用全局标签的网络域可能只是多协议标签转发(Multi-Protocol Label Switching,简称为“MPLS”)网络的子集,所以需要考虑全局标签和本地标签在部署应用全局标签的网络域节点上对接的问题。The globality of the global label is limited to the network domain where the application global label is deployed, and only the global label is unique within the network domain. In the forwarding path of the global label, the label is not exchanged or the label and the inbound label are exactly the same when the label is exchanged. However, the network domain where the global label is applied may be a subset of the Multi-Protocol Label Switching (MPLS) network. Therefore, you need to consider the global label and the local label. The problem of docking.

现有技术中,从传统标签交换路径(Label Switch Path,简称为“LSP”)对接到全局标签转发路径时,只需要在对接的转发节点上部署为路由申请全局标签的规则,即可以实现LSP与全局标签转发路径的无缝对接。但是从全局标签转发路径对接到LSP时,需要靠配置识别在哪些转发节点配置分段路由映射服务器(Segment Routing Mapping Server,简称为“SRMS”),并在SRMS上配置全局标签到本地标签的映射规则。In the prior art, when a traditional label switching path ("LSP") is connected to a global label forwarding path, only the rules for requesting a global label are required to be configured on the forwarding node. Seamlessly interface with the global label forwarding path. However, when the global label forwarding path is connected to the LSP, the configuration needs to identify which forwarding nodes are configured with the Segment Routing Mapping Server (SRMS), and configure the global label to local label mapping on the SRMS. rule.

由此可见,现有技术依赖于静态配置来识别部署应用全局标签的网络域的边缘节点,不够灵活和自动化,并会导致转发节点得到错误应答或造成转发节点的邻居节点的标签冲突。It can be seen that the prior art relies on the static configuration to identify the edge node of the network domain where the application global label is deployed, which is not flexible and automatic, and may cause the forwarding node to get an error response or cause a label conflict of the neighbor node of the forwarding node.

发明内容Summary of the invention

本申请提供了一种路由散播的方法和节点,转发节点能够自动识别自身相对于下游的动态路由协议邻居节点是否是部署应用全局标签的网络域的边缘节点,能够避免路由和全局标签的映射关系扩散到该网络域外部的节点上,避免导致这些外部的节点出现标签冲突或不必要的错误应答。The present application provides a method and a node for route distribution, and the forwarding node can automatically identify whether the neighbor node of the dynamic routing protocol relative to the downstream is an edge node of the network domain where the global label is applied, and can avoid the mapping between the route and the global label. Spread to nodes outside the network domain to avoid label conflicts or unnecessary error responses from these external nodes.

为了方便理解本申请实施例,首先在此介绍本申请实施例描述中会引入的几个要素。In order to facilitate the understanding of the embodiments of the present application, several elements introduced in the description of the embodiments of the present application are first introduced herein.

本地标签,在节点(设备,包括虚拟设备)本地唯一标识一种业务(例如,IP前缀)并生效的标签。A local label that uniquely identifies a service (for example, an IP prefix) and takes effect on a node (device, including a virtual device).

全局标签:在一个管理域的网络内唯一标识一种业务,可以在该网络的多个节点(设备)上生效的标签。Global tag: A tag that uniquely identifies a service in a network of an administrative domain and can take effect on multiple nodes (devices) of the network.

全局标签域,部署应用全局标签的网络。全局标签域中的节点之间可以通告全局标签,也可以通告仅在节点本地有效的本地标签。Global label domain, which deploys networks that apply global labels. Global labels can be advertised between nodes in the global label domain, and local labels that are valid only locally on the node can be advertised.

全局标签申请策略,是为指定的路由分配全局标签的策略。A global label application policy is a policy for assigning global labels to specified routes.

动态路由协议:根据是否在一个自治域内部使用,动态路由协议分为内部网关协议(Interior Gateway Protocol,简称为“IGP”)和外部网关协议(Exterior Gateway Protocol,简称为“EGP”)。其中,自治域(Autonomous System,简称为“AS”)指一个具有统一管理机构、统一路由策略的网络。自治域内部采用的路由选择协议称为内部网关协议,常用的有路 由信息协议(Routing Information Protocol,简称为“RIP”)、开放式最短路径优先的路由协议(Open Shortest Path First,简称为“OSPF”);外部网关协议主要用于多个自治域之间的路由选择,常用的是边界网关协议(Border Gateway Protocol,简称为“BGP”)和BGP-4。Dynamic routing protocol: According to whether it is used within an autonomous domain, the dynamic routing protocol is divided into an Interior Gateway Protocol ("IGP") and an Exterior Gateway Protocol ("EGP"). An autonomous system (AS) refers to a network with a unified management organization and a unified routing policy. The routing protocol adopted within the autonomous domain is called the internal gateway protocol. The Routing Information Protocol (RIP) and the Open Shortest Path First (OSPF) are used. The external gateway protocol is mainly used for routing between multiple autonomous domains. Select, commonly used is the Border Gateway Protocol ("BGP") and BGP-4.

散播(Disseminate),网络中的一个节点向另一节点发送消息的操作,其中,消息包括但不限于:路由、路由和标签的映射关系、节点所在的全局标签域的标识信息、BGP更新消息、OSPF协议中的链路状态通告(Link-State-Advertisement,简称为“LSA”)消息、中间系统到中间系统(Intermediate System to Intermediate System,简称为“IS-IS”)协议中的链路状态协议数据单元(Link State Protocol Data Unit,简称为“LSP”)。在描述具体的实施例时,散播可以用发布、发送、通告等词语来代替。Disseminate, an operation in which a node in a network sends a message to another node, where the message includes but is not limited to: a mapping relationship between a route, a route, and a label, an identifier information of a global label domain where the node is located, a BGP update message, Link state protocol in Link-State-Advertisement (LSA) message and Intermediate System to Intermediate System (IS-IS) protocol in OSPF Link State Protocol Data Unit ("LSP"). In describing a particular embodiment, the dissemination can be replaced with words such as posting, sending, advertising, and the like.

第一方面,提供了一种路由散播的方法,包括:第一节点接收第二节点散播的第一标识信息,该第一标识信息用于标识该第二节点所属的全局标签域;该第一节点根据该第一标识信息与第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,其中,该第二标识信息用于标识该第一节点所属的全局标签域,该目标路由为该第一节点到该第二节点的路由。In a first aspect, a method for routing a route is provided, including: receiving, by a first node, first identifier information that is generated by a second node, where the first identifier information is used to identify a global label domain to which the second node belongs; And the node, according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route is generated to the second node, where the second identifier information is used to identify the first The global label domain to which the node belongs. The destination route is the route from the first node to the second node.

在本申请实施例中,节点可以为但不限于路由器和交换机。In the embodiment of the present application, the node may be, but not limited to, a router and a switch.

可选的,全局标签域的标识信息可以为全局标签域的控制器节点的路由(Router)ID,或者其他全局唯一的ID值,本申请对此不作限定。Optionally, the identifier information of the global label domain may be a router ID of the controller node of the global label domain, or other globally unique ID value, which is not limited in this application.

相对应的,第一节点接收到第二节点发送的ID时,确认接收到的ID是否与自身所属的全局标签域的ID相同,如果相同则认为第二节点与第一节点属于同一个全局标签域,也即第一节点不是全局标签域的边缘节点,第一节点可以将接收到的路由和全局标签的映射关系散播给第二节点。如果第一节点接收到的第二节点发送的ID和自身所属的全局标签域的ID不相同或者第一节点没有接收到第二节点通告的ID,则认为第一节点与第二节点属于不同的全局标签域,或者说第一节点为其所属的全局标签域的边缘节点。第一节点向第二节点散播路由和本地标签的映射关系,该本地标签在该第一节点本地有效。Correspondingly, when the first node receives the ID sent by the second node, it confirms whether the received ID is the same as the ID of the global label domain to which it belongs. If the same, the second node and the first node belong to the same global label. The domain, that is, the first node is not an edge node of the global label domain, and the first node may distribute the mapping relationship between the received route and the global label to the second node. If the ID sent by the second node received by the first node is different from the ID of the global tag field to which the first node belongs or the first node does not receive the ID advertised by the second node, the first node and the second node are considered to be different. The global label field, or the edge node of the global label field to which the first node belongs. The first node disseminates a mapping relationship between the route and the local label to the second node, and the local label is valid locally at the first node.

因此,本申请实施例的路由散播的方法,节点通过自身所属的全局标签域的标识信息和该节点的邻居节点所属的全局标签域的标识信息的匹配结果,确定向邻居节点散播的标签的类型,无需对全局标签域网络的边缘节点进行人工配置,能够自动避免路由和全局标签的映射关系扩散到节点所属的全局标签域网络外部的节点上,避免导致这些外部的节点出现标签冲突或不必要的错误应答。Therefore, in the method of route distribution in the embodiment of the present application, the node determines the type of the label to be distributed to the neighbor node by the matching result of the identifier information of the global label domain to which the node belongs and the identification information of the global label domain to which the neighbor node of the node belongs. There is no need to manually configure the edge nodes of the global label domain network, and the mapping between the routing and the global label can be automatically prevented from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary of these external nodes. The error response.

结合第一方面,在第一方面的第一种可能的实现方式中,在该第一节点向第二节点散播目标路由和与该目标路由该目标相对应的标签的映射关系之前,还包括:该第一节点获取该目标路由;该第一节点为该目标路由分配或申请标签。In conjunction with the first aspect, in a first possible implementation manner of the first aspect, before the mapping, by the first node, the mapping of the target route and the label corresponding to the target to the target node, the method further includes: The first node acquires the target route; the first node allocates or applies a label for the target route.

结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,该第一节点为该目标路由分配或申请标签,包括:如果该目标路由命中该第一节点上部署的申请全局标签的路由策略,该第一节点向该第一节点所属的全局标签域中的控制节点为该目标路由申请标签;该第一节点接收该控制节点发送的为该目标路由分配的第一标签,该第一标签在该第一节点所属的全局标签域内有效。In conjunction with the first possible implementation of the first aspect, in a second possible implementation manner of the first aspect, the first node allocates or applies a label to the target route, including: if the target route hits the first a routing policy of the global label that is deployed on the node, the first node requests a label for the target route from the control node in the global label domain to which the first node belongs; the first node receives the target route sent by the control node The first tag is allocated, and the first tag is valid in the global tag domain to which the first node belongs.

其中,该第一节点根据该第一标识信息与第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,包括:如果该第一节点确定该第一标识 信息与该第二标识信息标识的相匹配,该第一节点向该第二节点散播该目标路由和该第一标签的映射关系;和/或,如果该第一节点确定该第一标识信息与该第二标识信息不相匹配,该第一节点向该第二节点散播该目标路由和第二标签的映射关系,该第二标签在该第一节点本地有效。The first node, according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route is generated to the second node, including: if the first node determines The first identifier The information is matched with the identifier of the second identifier information, and the first node distributes the mapping relationship between the target route and the first label to the second node; and/or, if the first node determines the first identifier information and The second identifier information does not match, and the first node distributes the mapping relationship between the target route and the second label to the second node, where the second label is valid locally at the first node.

第一标识信息与第二标识信息相匹配可以理解为第一标识信息标识的全局标签域与第二标识信息标识的全局标签域为同一个全局标签域,第一标识信息与第二标识信息不相匹配可以理解为第一标识信息标识的全局标签域和第二标识信息标识的全局标签域不是同一个全局标签域。可选地,第一标识信息与第二标识信息相匹配可以理解为第一标识信息标识的全局标签域ID与第二标识信息标识的全局标签域ID相同,第一标识信息与第二标识信息不相匹配可以理解为第一标识信息标识的全局标签域ID和第二标识信息标识的全局标签域ID不同。The first identifier information and the second identifier information are matched. The global label field identified by the first identifier information and the global label field identified by the second identifier information are the same global label domain, and the first identifier information and the second identifier information are not. The matching may be understood as the global label field identified by the first identification information and the global label domain identified by the second identification information is not the same global label domain. Optionally, the first identifier information and the second identifier information are matched. The global label domain ID identified by the first identifier information is the same as the global label domain ID of the second identifier information, and the first identifier information and the second identifier information. The mismatch can be understood as the difference between the global tag domain ID identified by the first identity information and the global tag domain ID identified by the second identity information.

可选地,如果第一节点本地已经配置有为该目标路由分配的全局标签,或第一节点所属的全局标签域的控制节点已经向第一节点下发过该目标路由对应的全局标签,第一节点直接将已有的与该目标路由相对应的全局标签分配给该目标路由,得到该目标路由和全局标签的映射关系,不需要再向控制节点申请。Optionally, if the first node is configured with the global label allocated for the target route, or the control node of the global label domain to which the first node belongs has sent the global label corresponding to the target route to the first node, A node directly assigns a global label corresponding to the target route to the target route, and obtains a mapping relationship between the target route and the global label, and does not need to apply to the control node again.

需要说明的是,第一节点接收到其他节点通告过来的目标路由和标签的映射关系时,如果第一节点确定该标签的有效范围为该第一节点所属的全局标签域,第一节点不会为目标路由分配本地标签,此时第一节点为该目标路由分配标签可以理解为第一节点将接收到的标签分配给该目标路由。It should be noted that, when the first node receives the mapping relationship between the target route and the label advertised by the other node, if the first node determines that the valid range of the label is the global label domain to which the first node belongs, the first node does not Assigning a local label to the target route, the first node assigning a label to the target route at this time can be understood as the first node assigning the received label to the target route.

因此,本申请实施例的路由散播的方法,不需要配置全局标签和本地标签的映射规则,节点可以自动实现全局标签转发路径和传统标签交换路径的对接。Therefore, the method for the route distribution in the embodiment of the present invention does not need to configure the mapping rule between the global label and the local label, and the node can automatically implement the docking between the global label forwarding path and the traditional label switching path.

结合第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,该第一节点为该目标路由分配或申请标签,包括:如果该目标路由满足以下条件(1)或(2),该第一节点将第三标签分配给该目标路由,其中,该第三标签在该第一节点本地有效:(1)该目标路由没有命中该第一节点上部署的申请全局标签的路由策略且该第一节点上没有预先为该目标路由分配的全局标签,(2)该第一节点上没有部署申请全局标签的路由策略且该第一节点上没有预先为该目标路由分配的全局标签;In conjunction with the first possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the first node allocates or applies a label to the target route, including: if the target route meets the following conditions ( 1) or (2), the first node assigns a third label to the target route, wherein the third label is valid locally at the first node: (1) the target route does not hit the deployment on the first node The routing policy of the global label is applied, and the global label that is not allocated for the target routing is not configured on the first node, and (2) the routing policy for applying the global label is not deployed on the first node, and the target is not pre-defined on the first node. Global label for route assignment;

其中,该第一节点根据该第一标识信息与该第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,包括:该第一节点向该第二节点散播该目标路由和该第三标签的映射关系。The first node, according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route is distributed to the second node, including: the first node The second node spreads the mapping relationship between the target route and the third label.

因此,本申请实施例的路由散播的方法,不需要配置全局标签和本地标签的映射规则,节点可以自动实现全局标签转发路径和传统标签交换路径的对接。Therefore, the method for the route distribution in the embodiment of the present invention does not need to configure the mapping rule between the global label and the local label, and the node can automatically implement the docking between the global label forwarding path and the traditional label switching path.

结合第一方面的第一种至第三种可能的实现方式中任一可能的实现方式,在第一方面的第四种可能的实现方式中,该第一节点获取该目标路由,包括:该第一节点接收第三节点散播的该目标路由和第四标签的映射关系,该第四标签为该第三节点为该目标路由分配或申请的标签;With reference to any possible implementation of the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, the first node acquires the target route, including: The first node receives a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is a label that the third node allocates or applies for the target route;

其中,该第一节点为该目标路由分配或申请标签,包括:该第一节点确定该第四标签的有效范围;如果该第四标签的有效范围不是该第一节点所属的全局标签域,该第一节点为该目标路由分配或申请标签。The first node allocates or applies a label to the target route, including: the first node determines a valid range of the fourth label; if the valid range of the fourth label is not a global label field to which the first node belongs, The first node assigns or applies a label to the target route.

换句话说,第一节点在接收到一条路由和标签的映射关系报文后,判断该映射关系报文 中的标签的有效范围为该第一节点所属的全局标签域的。如果该标签的有效范围不是该第一节点所属的全局标签域,第一节点需要为接收到的路由和标签映射关系报文中的路由分配或申请标签;如果该标签的有效范围为该第一节点所属的全局标签域,说明散播映射关系报文的节点与该第一节点属于相同的全局标签域,第一节点将维持接收到的路由和标签的映射关系,并将接收到的路由和标签的映射关系添加到第一节点中的路由和全局标签映射关系表中。In other words, after receiving the mapping relationship between the route and the label, the first node determines the mapping relationship message. The valid range of the label in the middle is the global label field to which the first node belongs. If the valid range of the label is not the global label field to which the first node belongs, the first node needs to allocate or apply a label for the route in the received route and label mapping relationship; if the valid range of the label is the first The global label field to which the node belongs, indicating that the node that broadcasts the mapping relationship message belongs to the same global label domain as the first node, and the first node maintains the mapping relationship between the received route and the label, and the received route and label are received. The mapping relationship is added to the routing and global label mapping relationship table in the first node.

可以理解的是,在本申请实施例中,如果归属某个全局标签域的转发节点的上下游转发节点都不归属该全局标签域,在该转发节点上,对于一条命中该转发节点上部署的申请全局标签的路由策略或已被分配全局标签的路由来说,会同时出现上游节点的本地标签到全局标签的映射表和该全局标签到本地新分配标签的映射表,这样实际迭代形成的标签转发表的入标签是本地新分配的标签,出标签是上游转发节点通告过来的本地标签,并不包含全局标签的信息。It can be understood that, in the embodiment of the present application, if the upstream and downstream forwarding nodes of the forwarding node that belong to a certain global label domain do not belong to the global label domain, on the forwarding node, for a hit on the forwarding node, the deployment is performed. When a routing policy that requests a global label or a route that has been assigned a global label, a mapping table of the local label to the global label of the upstream node and a mapping table of the global label to the newly allocated label of the local label appear at the same time, so that the label formed by the actual iteration The inbound label of the forwarding table is the newly assigned label of the local, and the outgoing label is the local label advertised by the upstream forwarding node, and does not contain the information of the global label.

可选地,在第三节点散播的映射关系报文中还携带标签类型指示信息,该标签类型指示信息指示映射关系报文中的标签的有效范围是否为该第一节点所属的全局标签域;该第一节点根据该标签类型指示信息,确定标签的有效范围。Optionally, the mapping relationship message that is transmitted by the third node further includes a label type indication information, where the label type indication information indicates whether the valid range of the label in the mapping relationship message is a global label field to which the first node belongs; The first node determines the valid range of the label according to the label type indication information.

在本申请实施例中,可选地,该第一节点获取该目标路由还可以包括:该第一节点生成该目标路由,或该第一节点接收客户边缘(Customer Edge,简称为“CE”)节点发送的该目标路由。或者,可以描述为该第一节点生成本地作为起源的目标路由或学习到无标签映射关系的目标路由。In the embodiment of the present application, optionally, the acquiring, by the first node, the target route may include: the first node generates the target route, or the first node receives a customer edge (Customer Edge, referred to as “CE”) The target route sent by the node. Alternatively, it may be described that the first node generates a target route that is locally originated as a destination or learns to a target route without a label mapping relationship.

结合第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,该第一节点确定该第四标签的有效范围,包括:该第一节点接收该第三节点散播的第三标识信息,该第三标识信息用于标识该第三节点所属的全局标签域;该第一节点根据该第二标识信息与该第三标识信息的匹配结果,确定该第四标签的有效范围。With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the first node determines a valid range of the fourth label, including: the first node receives the third The third identifier information that is generated by the node, the third identifier information is used to identify the global label domain to which the third node belongs; the first node determines the fourth according to the matching result of the second identifier information and the third identifier information The valid range of the label.

结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,该第一节点根据该第二标识信息与该第三标识信息的匹配结果,确定该第四标签的有效范围,包括:With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the first node determines, according to a matching result of the second identifier information and the third identifier information, The valid range of four tags, including:

如果该第一节点确定该第二标识信息与该第三标识信息相匹配,该第一节点根据该第四标签与该第一节点的全局标签地址池的范围的关系,确定该第四标签的有效范围。If the first node determines that the second identifier information matches the third identifier information, the first node determines the fourth label according to the relationship between the fourth label and the range of the global label address pool of the first node. effective coverage.

具体来说,第一节点如果确定第二标识信息与第三标识信息相匹配,也就说明第三节点和第一节点属于同一个全局标签域,第一节点确定第四标签是否在第一节点的全局标签地址池的范围内,该全局标签地址池的范围是该第一节点自身能够给路由分配的标签的范围,如果第一节点不在该全局标签地址池内,说明第四标签的有效范围为该第一节点所属的全局标签域,否则认为第四标签的有效范围为第三节点本地,也就是说第四标签为第三节点的本地标签。Specifically, if the first node determines that the second identifier information matches the third identifier information, the first node and the first node belong to the same global label domain, and the first node determines whether the fourth label is in the first node. The range of the global label address pool is the range of labels that the first node itself can assign to the route. If the first node is not in the global label address pool, the valid range of the fourth label is The global label field to which the first node belongs, otherwise the valid range of the fourth label is considered to be the third node local, that is, the fourth label is the local label of the third node.

或者,如果第一节点没有接收到该第三节点散播的用于标识第三节点所属的全局标签域的标识信息,第一节点认为第三节点与第一节点不属于同一个全局标签域,或者第三节点不是全局标签域的节点,第一节点可以直接确定该第四标签为有效范围为第三节点本地的本地标签。Or, if the first node does not receive the identifier information that is used by the third node to identify the global label domain to which the third node belongs, the first node considers that the third node does not belong to the same global label domain, or The third node is not a node of the global label domain, and the first node may directly determine that the fourth label is a local label whose valid range is local to the third node.

结合第一方面,或第一方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第一方面的第七种可能的实现方式中,该第一节点接收第二节点散播的第一标识信息,包 括:该第一节点接收该第二节点散播的边界网关协议BGP更新消息,该BGP更新消息中携带该第一标识信息;或,该第一节点接收该第二节点散播的开放式最短路径优先OSPF协议的链路状态通告LSA消息,该LSA消息中携带该第一标识信息;或,该第一节点接收该第二节点散播的中间系统到中间系统IS-IS协议的链路状态协议数据单元LSP,该LSP中携带该第一标识信息。With reference to the first aspect, or any one of the first to the sixth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the first node receives the second First identification information distributed by the node, the package The first node receives the border gateway protocol BGP update message that is sent by the second node, and the BGP update message carries the first identifier information; or the first node receives the open shortest path priority that is broadcast by the second node. The link state of the OSPF protocol advertises the LSA message, where the LSA message carries the first identifier information; or the first node receives the link state protocol data unit of the intermediate system distributed by the second node to the intermediate system IS-IS protocol The LSP carries the first identification information.

可选地,该LSP中携带类型长度值TLV选项,该TLV选项中携带该第一标识信息。Optionally, the LSP carries a type length value TLV option, where the TLV option carries the first identifier information.

第二方面,提供了一种节点,包括:用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该节点包括用于执行上述第一方面或第一方面的任意可能的实现方式中的方法的单元。In a second aspect, a node is provided, comprising: a method for performing the first aspect or any of the possible implementations of the first aspect. In particular, the node comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.

第三方面,提供了一种节点,包括:处理器、存储器、接收器和发送器,该处理器、该存储器、该接收器和该发送器通过总线系统相连,该存储器用于存储指令,该处理器用于执行该存储器中存储的指令,以控制该接收器接收信息或该发送器发送信息,使得该节点执行上述第一方面或第一方面的任意可能的实现方式中的方法。In a third aspect, a node is provided, including: a processor, a memory, a receiver, and a transmitter, the processor, the memory, the receiver, and the transmitter are connected by a bus system, and the memory is configured to store an instruction, where The processor is operative to execute instructions stored in the memory to control the receiver to receive information or the transmitter to transmit information such that the node performs the method of any of the first aspect or any of the possible implementations of the first aspect.

第四方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In a fourth aspect, a computer readable medium is provided for storing a computer program comprising instructions for performing the method of the first aspect or any of the possible implementations of the first aspect.

第五方面,提供了一种网络系统,该网络系统包括第一节点和第二节点,该第一节点用于接收该第二节点散播的第一标识信息,该第一标识信息用于标识所述第二节点所属的全局标签域;According to a fifth aspect, a network system is provided, where the network system includes a first node and a second node, where the first node is configured to receive first identifier information that is sent by the second node, where the first identifier information is used to identify Describe a global label field to which the second node belongs;

该第一节点用于根据所述第一标识信息与第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,其中,该第二标识信息用于标识该第一节点所属的全局标签域,该目标路由为该第一节点到该第二节点的路由。The first node is configured to: according to the matching result of the first identifier information and the second identifier information, distribute a mapping relationship between the target route and a label corresponding to the target route to the second node, where the second identifier information The global label domain to which the first node belongs is used, and the target route is a route from the first node to the second node.

以上可选方式适用于从第一方面至第五方面的所有方面。The above alternatives apply to all aspects from the first aspect to the fifth aspect.

附图说明DRAWINGS

为了更清楚地说明本申请实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present application. For the embodiments, other drawings may be obtained from those skilled in the art without any inventive labor.

图1(a)-(c)是本申请应用场景的示意图;1(a)-(c) are schematic diagrams of application scenarios of the present application;

图2是根据本申请实施例的路由散播的方法的示意性流程图;2 is a schematic flowchart of a method for route distribution according to an embodiment of the present application;

图3是根据本申请另一实施例的路由散播方法的示意图;FIG. 3 is a schematic diagram of a route distribution method according to another embodiment of the present application; FIG.

图4是根据本申请实施例的节点的示意性框图;4 is a schematic block diagram of a node in accordance with an embodiment of the present application;

图5是根据本申请实施例的节点的另一示意性框图;FIG. 5 is another schematic block diagram of a node according to an embodiment of the present application; FIG.

图6是根据本申请另一实施例的节点的示意性框图。FIG. 6 is a schematic block diagram of a node according to another embodiment of the present application.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.

图1(a)-(c)是应用本发明实施例的场景的示意图。如图1(a)所示,全局标签域覆盖多个动态路由协议自治域(Autonomous System,简称为“AS”)1和AS2,自治域边界路由器(Autonomous System Boundary Router,简称为“ASBR”)1和ASBR4是全局标签域的边缘节点,ASBR2和ASBR3则不是全局标签域的边缘节点。1(a)-(c) are schematic views of a scenario to which an embodiment of the present invention is applied. As shown in Figure 1(a), the global label domain covers multiple Autonomous System (AS) 1 and AS2, and the Autonomous System Boundary Router (ASBR). 1 and ASBR4 are edge nodes of the global label domain, and ASBR2 and ASBR3 are not edge nodes of the global label domain.

图1(b)中,全局标签域覆盖单个动态路由协议自治域AS1,ASBR1和ASBR2是全局标签域的边缘节点,ASBR2需要终结ASBR1到ASBR2的全局标签转发路径,为该路径流量换上ASBR3分配通告过来的、在ASBR3本地有效的本地标签。ASBR1与ASBR2之间运行边界网关协议(Border Gateway Protocol,简称为“BGP”),ASBR3和ASBR4之间运行BGP。In Figure 1(b), the global label field covers the AS6 of the single dynamic routing protocol. ASBR1 and ASBR2 are the edge nodes of the global label domain. ASBR2 needs to terminate the global label forwarding path from ASBR1 to ASBR2. The local tag that was advertised and valid locally in ASBR3. The Border Gateway Protocol (BGP) is used between ASBR1 and ASBR2. BGP runs between ASBR3 and ASBR4.

图1(c)中,全局标签域覆盖单个动态路由协议自治域,ASBR1和ASBR2是全局标签域1的边缘节点,且属于AS1,ASBR1和ASBR2之间运行BGP。ASBR3和ASBR4是全局标签域2的边缘节点,且属于AS2,ASBR3和ASBR4之间运行BGP。ASBR2需要终结ASBR1到ASBR2的全局标签转发路径,为该路径流量换上ASBR3分配通告过来的、在ASBR3本地有效的本地标签。ASBR3可以重新将该流量牵引到一条新的全局标签转发路径上。In Figure 1(c), the global label field covers a single dynamic routing protocol autonomous domain. ASBR1 and ASBR2 are edge nodes of the global label domain 1, and belong to AS1. BGP runs between ASBR1 and ASBR2. ASBR3 and ASBR4 are edge nodes of global label domain 2 and belong to AS2. BGP runs between ASBR3 and ASBR4. The ASBR2 needs to terminate the global label forwarding path from ASBR1 to ASBR2, and replace the local label with the local label valid in ASBR3. ASBR3 can re-drive the traffic to a new global label forwarding path.

图2是根据本发明实施例的路由散播的方法的示意性流程图。如图2所示,方法100包括:2 is a schematic flowchart of a method for route spreading according to an embodiment of the present invention. As shown in FIG. 2, the method 100 includes:

S110,第一节点接收第二节点散播的第一标识信息,该第一标识信息用于标识该第二节点所属的全局标签域;S110. The first node receives the first identifier information that is sent by the second node, where the first identifier information is used to identify the global label domain to which the second node belongs.

在本发明实施例中,节点根据信令或配置加入全局标签域后,向该节点自己的内部网关协议(Interior Gateway Protocol,简称为“IGP”)或BGP邻居通告自己加入的全局标签域的标识ID信息,并保存邻居节点通告的该邻居节点归属的全局标签域的ID。全局标签域ID信息可以设定为无效值,该无效值表示通告该全局标签域ID信息的节点没有加入全局标签域。In the embodiment of the present invention, after the node joins the global label domain according to the signaling or the configuration, the node advertises the identifier of the global label domain that the user joins to the node's own internal gateway protocol ("IGP") or the BGP neighbor. ID information, and the ID of the global tag field to which the neighbor node is advertised by the neighbor node is saved. The global tag domain ID information may be set to an invalid value indicating that the node advertising the global tag domain ID information does not join the global tag domain.

以图3为例,图3中转发节点A、B、C、E加入全局标签域,转发节点A、B、C属于AS1,转发节点E、D属于AS2,转发节点F、G、H属于AS3。在转发节点A上部署匹配192.0.3.1/32的全局标签申请策略,即转发节点A为匹配192.0.3.1/32的IP前缀分配全局标签;在转发节点E上部署匹配192.0.4.1/32的全局标签申请策略,即转发节点E为匹配192.0.4.1/32的IP前缀分配全局标签。自治域内的转发节点之间建立IBGP(内部BGP)连接,跨域的相邻转发节点之间建立EBGP(外部BGP)连接。As shown in Figure 3, in Figure 3, forwarding nodes A, B, C, and E join the global label domain, forwarding nodes A, B, and C belong to AS1, forwarding nodes E and D belong to AS2, and forwarding nodes F, G, and H belong to AS3. . A global label application policy matching 192.0.3.1/32 is deployed on the forwarding node A. That is, the forwarding node A allocates a global label to match the IP prefix of 192.0.3.1/32; and deploys a global matching match of 192.0.4.1/32 on the forwarding node E. The label application policy, that is, the forwarding node E assigns a global label to the IP prefix matching the 192.0.4.1/32. An IBGP (internal BGP) connection is established between the forwarding nodes in the autonomous domain, and an EBGP (external BGP) connection is established between the adjacent forwarding nodes in the inter-domain.

图3中虚线表示客户边缘(Customer Edge,简称为“CE”)节点1的本地环回(Loopback)接口地址192.0.3.1/32对应的路由和该路由绑定的标签的映射关系的通告过程,如图3中虚线所示出的具体通告过程为:CE1将192.0.3.1/32对应的路由通告给节点A,节点A向控制节点为该路由申请标签(对应图3中的编号1)并接收控制节点发送的为该路由分配的标签(对应图3中的编号2);节点A向节点C通告该路由和该标签的映射关系(对应图3中的编号3);节点C接收到节点A通告过来的映射关系后,将该映射关系通告给节点E(对应图3中的编号4);节点E接收到节点C通告过来的该映射关系后,重新为该路由分配标签,并向节点G通告该路由与节点C重新分配的标签的映射关系(对应图3中的编号5);节点G接收到节点E通告过来的映射关系后,重新为该路由分配标签,并向节点H通告该路由和节点G重新分配的标签的映射关系(对应图3中的编号6);节点 H将该路由通告给CE2。The dotted line in FIG. 3 indicates the process of advertising the mapping between the route corresponding to the local loopback interface address 192.3.3.1/32 of the customer edge (Customer Edge ("CE") node 1 and the label bound to the route. The specific notification process shown by the dotted line in FIG. 3 is: CE1 advertises the route corresponding to 192.0.3.1/32 to node A, and node A requests the control node for the route (corresponding to number 1 in FIG. 3) and receives The label sent by the control node for the route (corresponding to the number 2 in FIG. 3); the node A notifies the node C of the mapping relationship between the route and the label (corresponding to the number 3 in FIG. 3); the node C receives the node A. After the advertised mapping relationship is advertised, the mapping relationship is advertised to the node E (corresponding to the number 4 in FIG. 3). After receiving the mapping relationship advertised by the node C, the node E re-assigns the label to the node G and sends the label to the node G. Notifying the mapping relationship between the route and the re-allocated label of the node C (corresponding to the number 5 in FIG. 3); after receiving the mapping relationship advertised by the node E, the node G re-assigns the label to the route and advertises the route to the node H. Reassigned with node G Signed mapping relation (corresponding to FIG. 3 No. 6); Node H advertises the route to CE2.

图3中的点线表示CE2的Loopback接口地址192.0.4.1/32对应的路由和与该路由绑定的标签的映射关系的通告过程,具体的通告过程将在下文中具体描述。The dotted line in FIG. 3 indicates the notification process of the mapping between the route corresponding to the loopback interface address 192.0.4.1/32 of CE2 and the label bound to the route. The specific notification process will be specifically described below.

图3中转发节点A加入全局标签域后,可以在BGP update消息中携带新定义的路径属性(Path Attribute)或新定义的扩展团队属性(Extended Communities Attribute)向转发节点A的BGP邻居节点(以下也称为“BGP Peer”)转发节点B、C通告自己加入的全局标签域的ID信息,并保存转发节点B、C通告的、转发节点B、C归属的全局标签域的ID。新定义的路径属性或新定义的扩展团队属性携带发送该属性的转发节点加入的全局标签域的ID信息,如果全局标签域的ID为无效值,表示发送携带该新定义的路径属性或新定义的扩展团队属性的BGP update消息的转发节点没有加入全局标签域。同理AS2中的转发节点E可以根据转发节点C通告的转发节点C加入的全局标签域的ID信息确定AS1中的转发节点C和自己属于同一个全局标签域,而AS2中的转发节点D和AS3中的转发节点F、G、H不属于全局标签域。转发节点G没有加入全局标签域,可以不向E、F、H通告自己所属的全局标签域的ID信息,但可以收到转发节点E的通告的转发节点E所属的全局标签域的ID信息。After the forwarding node A joins the global label domain in Figure 3, the BGP update message may carry the newly defined Path Attribute or the newly defined Extended Communities Attribute to the BGP neighbor node of the forwarding node A (below Also referred to as "BGP Peer", the forwarding node B, C advertises the ID information of the global label field that it joins, and saves the ID of the global label field to which the forwarding node B, C advertises, and the forwarding node B, C belong. The newly defined path attribute or the newly defined extended team attribute carries the ID information of the global label field added by the forwarding node that sends the attribute. If the ID of the global label field is an invalid value, it indicates that the path attribute or the new definition carrying the new definition is sent. The forwarding node of the BGP update message that extends the team attribute does not join the global tag field. The forwarding node E in the same AS2 can determine that the forwarding node C in AS1 belongs to the same global label domain according to the ID information of the global label domain joined by the forwarding node C advertised by the forwarding node C, and the forwarding node D in AS2 The forwarding nodes F, G, and H in AS3 do not belong to the global label domain. The forwarding node G does not join the global label field, and may not notify the E, F, and H of the ID information of the global label field to which it belongs, but may receive the ID information of the global label field to which the forwarding node E to which the forwarding node E belongs.

可选的,作为一个例子,可以在Path Attribute中新定义一种全局标签域属性(Global-Label-Domain-Attribute),Global-Label-Domain-Attribute中携带全局标签域的ID信息,Path Attribute的参考格式如表1所示。Optionally, as an example, a global label field attribute (Global-Label-Domain-Attribute) may be newly defined in the Path Attribute, and the Global-Label-Domain-Attribute carries the ID information of the global label field, and the Path Attribute The reference format is shown in Table 1.

表1Table 1

Figure PCTCN2017079350-appb-000001
Figure PCTCN2017079350-appb-000001

属性(Flags)域的定义可参照参考请求注解(Request For Comments,简称为“RFC”)1267。The definition of the attributes (Flags) field can be referred to the Request For Comments (RFC) 1267.

类型(Type)域定义标签的类型是全局标签,这个属性是可选的并且非传递性的。The Type field defines the type of the tag as a global tag. This attribute is optional and non-transitive.

长度(Length)域,指示全局标签的长度。Length field indicating the length of the global label.

全局标签域ID(GLD_ID),指示全局标签域的ID,全局标签域的ID在整个全局标签域中是唯一的。The global tag domain ID (GLD_ID) indicates the ID of the global tag domain, and the ID of the global tag domain is unique throughout the global tag domain.

可选的,作为一个例子,可以在Extended Communities Attribute中新定义一种Global-Label-Domain-Attribute属性,Extended Communities Attribute的参考格式如表2所示。Optionally, as an example, a Global-Label-Domain-Attribute attribute may be newly defined in the Extended Communities Attribute, and the reference format of the Extended Communities Attribute is as shown in Table 2.

表2Table 2

Figure PCTCN2017079350-appb-000002
Figure PCTCN2017079350-appb-000002

Figure PCTCN2017079350-appb-000003
Figure PCTCN2017079350-appb-000003

全局标签域ID(GLD_ID),指示全局标签域的ID,全局标签域的ID在整个全局标签域中是唯一的。The global tag domain ID (GLD_ID) indicates the ID of the global tag domain, and the ID of the global tag domain is unique throughout the global tag domain.

进一步地,在本发明实施例的方法在应用于部分覆盖单个AS的全局标签域中时,转发节点在通告自身所属的全局标签域的ID信息时,可以在OSPF协议中定义一种新的链路状态(Link State,简称为“LS”)类型:全局标签域链路状态通告(Global-Label Domain-Link-State-Advertisement,简称为“GLDLSA”,这个GLD-LSA中携带全局标签域的ID信息。转发节点向其邻居节点通告GLD-LSA消息,接收到该GLD-LSA消息的邻居节点可以从该GLD-LSA消息中获取该转发节点所属的全局标签域的ID信息。举例来说,GLD-LSA的参考格式如表3所示。Further, when the method in the embodiment of the present invention is applied to the global label domain partially covering a single AS, the forwarding node may define a new chain in the OSPF protocol when advertising the ID information of the global label domain to which the forwarding node belongs. Link state ("LS") type: Global-Label Domain-Link-State-Advertisement (GLDLSA), which carries the ID of the global tag domain. The forwarding node advertises a GLD-LSA message to its neighboring node, and the neighboring node that receives the GLD-LSA message can obtain the ID information of the global label domain to which the forwarding node belongs from the GLD-LSA message. For example, GLD The reference format of the -LSA is shown in Table 3.

表3table 3

Figure PCTCN2017079350-appb-000004
Figure PCTCN2017079350-appb-000004

LSA头(Header)的定义参考RFC 2328,“LS类型”在LSA Header中的取值是待定的(To Be Determined,简称为“TBD”)。The definition of the LSA Header refers to RFC 2328. The value of "LS Type" in the LSA Header is To Be Determined ("TBD").

全局标签域ID(GLD_ID),指示全局标签域的ID,该全局标签域的ID在整个全局标签域中是唯一的。A global tag domain ID (GLD_ID) indicating the ID of the global tag domain whose ID is unique throughout the global tag domain.

进一步的,可以在中间系统到中间系统(Intermediate System to Intermediate System,简称为“IS-IS”)协议中定义一种新的类型-长度-值(Type-Length-Value,简称为“TLV”)选项,该TLV选项中的Type指示为全局标签域属性,这个属性是可选的,Length域指示GLD_ID的长度,GLD_ID指示全局标签域的ID,全局标签域的ID在整个全局标签域中是唯一的,转发节点在链路状态协议数据单元(Link State Protocol Data Unit,简称为“LSP”)中可携带该新的TLV选项,接收到该转发节点发送的LSP的转发节点可以根据该LSP获知该转发节点所属的全局标签域的ID。举例来说,TLV的参考格式可以如表4所示。Further, a new Type-Length-Value ("TLV") can be defined in the Intermediate System to Intermediate System (IS-IS) protocol. Option, the Type in the TLV option indicates the global tag domain attribute, this attribute is optional, the Length field indicates the length of the GLD_ID, the GLD_ID indicates the ID of the global tag field, and the ID of the global tag field is unique in the entire global tag field. The forwarding node may carry the new TLV option in a Link State Protocol Data Unit (LSP), and the forwarding node that receives the LSP sent by the forwarding node may learn the LSP according to the LSP. ID of the global tag domain to which the forwarding node belongs. For example, the reference format of the TLV can be as shown in Table 4.

表4 Table 4

Figure PCTCN2017079350-appb-000005
Figure PCTCN2017079350-appb-000005

S120,该第一节点根据该第一标识信息与第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,其中,该第二标识信息用于标识该第一节点所属的全局标签域,该目标路由为该第一节点到该第二节点的路由。S120. The first node, according to the matching result of the first identifier information and the second identifier information, distributes, to the second node, a mapping relationship between the target route and a label corresponding to the target route, where the second identifier information is used. And identifying the global label domain to which the first node belongs, the target route is a route from the first node to the second node.

可选的,第一节点可以生成该第一节点作为源节点、以该第二节点为目的节点的目标路由或学习到从该第一节点到该第二节点的无标签映射关系的该目标路由。之后该第一节点检查该目标路由是否命中该第一节点本地部署的全局标签申请策略。如果该目标路由命中该第一节点本地部署的全局标签申请策略,该第一节点可以向该第一节点所属的全局标签域的控制节点申请一个全局标签。或者,如果该第一节点本地已有全局标签,则第一节点将已有的全局标签分配给该目标路由,形成目标路由和全局标签的映射关系。如果该目标路由没有命中该第一节点本地部署的全局标签申请策略且该第一节点本地没有与该目标路由对应的全局标签存在,该第一节点为目标路由分配一个本地标签,形成目标路由和本地标签的映射关系。Optionally, the first node may generate the first node as a source node, use the second node as a destination route of the destination node, or learn the target route from the first node to the second node without a label mapping relationship. . The first node then checks whether the target route hits the global label application policy deployed locally by the first node. If the target route hits the global label application policy deployed locally by the first node, the first node may apply for a global label to the control node of the global label domain to which the first node belongs. Or, if the first node has a global label locally, the first node allocates the existing global label to the target route, and forms a mapping relationship between the target route and the global label. If the target route does not hit the global label application policy deployed locally by the first node and the first node does not have a global label corresponding to the target route, the first node allocates a local label to the target route to form a target route and The mapping relationship of local tags.

例如,在图3中,转发节点A学习到客户边缘(Customer Edge,简称为“CE”)节点1通过BGP通告过来的或本地配置的路由192.0.3.1/32。由于路由192.0.3.1/32命中转发节点A本地部署的全局标签申请策略,转发节点A向转发节点A所属的全局标签域的控制节点为路由192.0.3.1/32申请全局标签。For example, in FIG. 3, the forwarding node A learns that the customer edge (Customer Edge ("CE") node 1 is advertised by BGP or locally configured route 192.0.3.1/32. Because the route 192.0.3.1/32 hits the global label application policy of the local deployment of the forwarding node A, the forwarding node A applies the global label to the control node of the global label domain to which the forwarding node A belongs for the route 192.0.3.1/32.

具体地,转发节点A向控制节点发送携带要申请全局标签的路由(192.0.3.1/31)的请求信息。该请求信息中还可以包括虚拟路由转发表(Virtual Routing Forwarding,简称为“VRF”信息。控制节点响应转发节点A的请求信息,为转发节点A发送的路由(192.0.3.1/31)分配一个全局标签Lable1,并向转发节点A发送路由192.0.3.1/31和Lable 1的映射关系。其中,转发节点A与控制节点交互的协议可以是扩展的BGP或RESTConf协议,还可以是其他的协议,本发明对此不作限定。Specifically, the forwarding node A sends the request information carrying the route (192.0.3.1/31) to which the global label is to be applied to the control node. The request information may further include a virtual routing forwarding (Virtual Routing Forwarding, referred to as "VRF" information. The control node responds to the request information of the forwarding node A, and allocates a global route for the forwarding node A (192.0.3.1/31). Label Lable1, and send a mapping relationship between the route 192.0.3.1/31 and the Lable 1 to the forwarding node A. The protocol for the forwarding node A to interact with the control node may be an extended BGP or RESTConf protocol, or may be other protocols. The invention is not limited thereto.

可选的,转发节点A还可以向控制节点发送转发节点A的标签范围,以便于控制节点在转发节点A的标签范围内为转发节点A分配全局标签。Optionally, the forwarding node A may further send the label range of the forwarding node A to the control node, so that the control node allocates the global label to the forwarding node A within the label range of the forwarding node A.

在本发明实施例中,转发节点在向该转发节点的邻居节点通告一条路由和标签的映射关系前,该转发节点确定该标签是否为全局标签。如果该转发节点确定该标签为全局标签,该转发节点根据该转发节点的邻居节点所属的全局标签域的标识和该转发节点自身所属的全局标签域的标识,向该转发节点的邻居节点通告路由和标签的映射关系。如果该转发节点确定该标签不是全局标签,该转发节点直接向该转发节点的邻居节点通告该路由和标签的映射关系。In the embodiment of the present invention, before the forwarding node advertises a mapping relationship between the route and the label to the neighboring node of the forwarding node, the forwarding node determines whether the label is a global label. If the forwarding node determines that the label is a global label, the forwarding node advertises a route to the neighboring node of the forwarding node according to the identifier of the global label domain to which the neighboring node of the forwarding node belongs and the identifier of the global label domain to which the forwarding node belongs. The mapping relationship with the label. If the forwarding node determines that the label is not a global label, the forwarding node directly advertises the mapping relationship between the route and the label to the neighboring node of the forwarding node.

例如,在图3中,转发节点A获得192.0.3.1/32和全局标签Label 1的映射关系,通过检查自己的BGP Peer转发节点所属的全局标签域的ID,转发节点A确定转发节点C 和转发节点A属于同一个全局标签域,则转发节点A通过BGP分别向转发节点C通告192.0.3.1/32和Label 1的映射关系。可选的,转发节点A也可以通过标签分布协议(Label Distribution Protocol,简称为“LDP”)会话向转发节点C通告192.0.3.1/32和Label 1的映射关系。具体的,转发节点A向转发节点C通告标签映射消息,该标签映射消息中的通用标签TLV中的标签字段中包括全局标签标志位,该全局标签标志位用于指示通告的映射关系中的标签是否为全局标签。例如,可以将32Bit的标签字段的最高位定义为全局标签标志位,该标志位的值取1时,表示映射关系中的标签是全局标签,该标志位的值取0时,表示映射关系中的标签为本地标签。For example, in FIG. 3, the forwarding node A obtains the mapping relationship between 192.0.3.1/32 and the global label Label 1, and checks the ID of the global label domain to which the own BGP Peer forwarding node belongs, and the forwarding node A determines the forwarding node C. The forwarding node A and the forwarding node A belong to the same global label domain, and the forwarding node A advertises the mapping relationship between 192.0.3.1/32 and Label 1 to the forwarding node C through BGP. Optionally, the forwarding node A can also notify the forwarding node C of the mapping relationship between 192.0.3.1/32 and Label 1 through a Label Distribution Protocol ("LDP") session. Specifically, the forwarding node A advertises a label mapping message to the forwarding node C. The label field in the universal label TLV in the label mapping message includes a global label flag, where the global label flag is used to indicate the label in the advertised mapping relationship. Whether it is a global label. For example, the highest bit of the 32Bit tag field may be defined as a global tag flag bit. When the value of the flag bit is 1, the tag in the mapping relationship is a global tag. When the value of the flag bit is 0, the mapping relationship is The label is a local label.

在图3中,转发节点B根据转发节点E通告的转发节点E所属的全局标签域的ID确定转发节点E与转发节点B属于同一个全局标签域,所以转发节点B采用与转发节点A相同的方法向转发节点E通告192.0.3.1/32和Label 1的映射关系。In FIG. 3, the forwarding node B determines that the forwarding node E and the forwarding node B belong to the same global label domain according to the ID of the global label domain to which the forwarding node E advertised by the forwarding node E belongs, so the forwarding node B adopts the same same as the forwarding node A. The method notifies the forwarding node E of the mapping relationship between 192.0.3.1/32 and Label 1.

转发节点E接收到转发节点B通告过来的192.0.3.1/32和Label 1的映射关系后,转发节点E根据转发节点B通告的转发节点B所属的全局标签域的ID确定转发节点B与转发节点E属于同一个全局标签域,所以转发节点E直接在转发节点E本地添加192.0.3.1/32和Label 1的映射关系,并且转发节点E没有收到转发节点G通告的转发节点G所属的全局标签域的ID,由此转发节点E确定转发节点G和转发节点E不是归属于同一个全局标签域,所以转发节点E从转发节点E本地的本地标签资源池中获得本地标签Label 2,通过BGP向转发节点G通告192.0.3.1/32和Label 2的映射关系。After the forwarding node E receives the mapping relationship between 192.0.1.3/32 and Label 1 advertised by the forwarding node B, the forwarding node E determines the forwarding node B and the forwarding node according to the ID of the global label domain to which the forwarding node B advertised by the forwarding node B belongs. E belongs to the same global label field, so the forwarding node E directly adds the mapping relationship between 192.0.3.1/32 and Label 1 in the forwarding node E, and the forwarding node E does not receive the global label to which the forwarding node G advertised by the forwarding node G belongs. The ID of the domain, whereby the forwarding node E determines that the forwarding node G and the forwarding node E are not in the same global label domain, so the forwarding node E obtains the local label Label 2 from the local label resource pool local to the forwarding node E, and The forwarding node G advertises the mapping relationship between 192.0.3.1/32 and Label 2.

并且,由于转发节点G不属于全局标签域,所以转发节点G会从转发节点G的本地标签资源池中获得本地标签Label 3,通过BGP向转发节点H通告192.0.3.1/32和Label 3的映射关系。Moreover, since the forwarding node G does not belong to the global label domain, the forwarding node G obtains the local label Label 3 from the local label resource pool of the forwarding node G, and advertises the mapping of 192.0.3.1/32 and Label 3 to the forwarding node H through BGP. relationship.

由以上步骤可知,从IP地址为192.0.4.1的CE2到IP地址为192.0.3.1的CE1的流量的转发路径为:CE2->H->G->E->C->A->CE1,沿途的标签转发表为CE2->(Input:192.0.3.1)H(Output:Label 3)->G(Output:Label 2)->E(Output:Label 1)->C(Output:Label 1)->A(Output:192.0.3.1)->CE1,其中,H->G->E是传统LSP,标签对转发节点逐点交换;E->C->A是全局标签转发路径。The forwarding path of the traffic from CE2 with IP address 192.0.4.1 to CE1 with IP address 192.0.3.1 is: CE2->H->G->E->C->A->CE1, The label forwarding table along the way is CE2->(Input:192.0.3.1)H(Output:Label 3)->G(Output:Label 2)->E(Output:Label 1)->C(Output:Label 1) -> A (Output: 192.0.3.1) -> CE1, where H->G->E is a legacy LSP, the label is switched point by point to the forwarding node; E->C->A is the global label forwarding path.

现在将结合图3,以路由192.0.4.1/32和与该路由192.0.4.1/32绑定的标签的映射关系的通告过程为例,描述本发明实施例的路由散播的方法的一个具体流程。Referring to FIG. 3, a specific process of the method for routing the route of the embodiment of the present invention will be described by taking the advertised process of the mapping relationship between the 192.0.4.1/32 and the label bound to the route 190.4.4.1.32 as an example.

具体来说,图3中转发节点H接收到CE2通告过来的或本地配置的路由192.0.4.1/32后,因为转发节点H没有加入全局标签域,所以转发节点H为路由192.0.4.1/32分配一个本地标签Label 4。并通过BGP向转发节点G通告路由192.0.4.1/32,通过LDP向转发节点G通告路由192.0.4.1/32和Label 4的映射关系,可选的,转发节点H还可以通过BGP向转发节点G通告路由192.0.4.1/32和Label 4的映射关系(对应图3中的编号I)。Specifically, after the forwarding node H in FIG. 3 receives the route 192.0.4.1/32 advertised by the CE2 or locally configured, because the forwarding node H does not join the global label domain, the forwarding node H allocates the route 192.0.4.1/32. A local label Label 4. And advertise the route to the forwarding node G through the BGP to the forwarding node G. 192.0.4.1/32, and advertise the mapping between the 192.0.4.1/32 and the label 4 to the forwarding node G through LDP. Optionally, the forwarding node H can also forward the node G through BGP. The mapping relationship between the route 190.4.4.1/32 and Label 4 is notified (corresponding to the number I in Figure 3).

转发节点G接收到转发节点H通告的路由192.0.4.1/32和Label 4的映射关系时,由于转发节点G也不在全局标签域中,转发节点G为路由192.0.4.1/32分配本地标签Label 5,通过BGP向转发节点E通告路由192.0.4.1/32和Label 5的映射关系(对应图3中的编号II)。When the forwarding node G receives the mapping relationship between the route 190.4.1.3/32 and the Label 4 advertised by the forwarding node H, since the forwarding node G is not in the global label domain, the forwarding node G assigns the local label Label 5 to the route 192.4.4.1/32. The mapping relationship between the route 190.4.4.1/32 and the Label 5 is notified to the forwarding node E through BGP (corresponding to the number II in FIG. 3).

转发节点E接收到转发节点G通告路由192.0.4.1/32和Label 5的映射关系后,因 为转发节点G与转发节点E不属于同一个全局标签域,所以转发节点G通告过来的Label 5不是全局标签。但转发节点E检查发现路由192.0.4.1/32命中转发节点E本地部署的全局标签申请策略,所以转发节点E向转发节点E所属的全局标签域的控制节点申请路由192.0.4.1/32对应的全局标签(对应图3中的编号III)。全局标签域的控制节点分配全局标签Label 6给路由192.0.4.1/32,并将为路由192.0.4.1/32分配的全局标签Label 6发送给转发节点E(对应图3中的编号IV)。After the forwarding node E receives the mapping relationship between the forwarding node G and the route 190.4.4.1/32 and Label 5, the forwarding node E The forwarding node G and the forwarding node E do not belong to the same global label domain, so the Label 5 advertised by the forwarding node G is not a global label. However, the forwarding node E checks that the route 190.4.4.1/32 hits the global label application policy deployed locally by the forwarding node E. Therefore, the forwarding node E requests the control node of the global label domain to which the forwarding node E belongs to apply for the global correspondence corresponding to the 192.0.4.1/32. Label (corresponding to number III in Figure 3). The control node of the global label field assigns the global label Label 6 to the route 192.0.4.1/32, and sends the global label Label 6 assigned to the route 192.4.4.1/32 to the forwarding node E (corresponding to the number IV in FIG. 3).

转发节点E根据转发节点C通告的转发节点C所属的全局标签域的ID确定转发节点C和转发节点E属于同一个全局标签域,由此转发节点E直接通过BGP向转发节点C通告路由192.0.4.1/32与Label 6的映射关系(对应图3中的编号V)。The forwarding node E determines that the forwarding node C and the forwarding node E belong to the same global label domain according to the ID of the global label domain to which the forwarding node C advertised by the forwarding node C belongs, whereby the forwarding node E directly advertises the route to the forwarding node C through BGP 192.0. The mapping relationship between 4.1/32 and Label 6 (corresponding to the number V in Figure 3).

同样地,转发节点C根据转发节点A通告的转发节点A所属的全局标签域的ID确定转发节点C和转发节点A属于同一个全局标签域,因此转发节点C直接通过BGP向转发节点A通告路由192.0.4.1/32与Label 6的映射关系(对应图3中的编号VI)。Similarly, the forwarding node C determines that the forwarding node C and the forwarding node A belong to the same global label domain according to the ID of the global label domain to which the forwarding node A advertised by the forwarding node A belongs. Therefore, the forwarding node C directly advertises the route to the forwarding node A through BGP. The mapping relationship between 192.0.4.1/32 and Label 6 (corresponding to the number VI in Figure 3).

由以上步骤可知,从IP地址为192.0.3.1的CE1到IP地址为192.0.4.1的CE2的流量的转发路径为CE1->A->C->E->G->H->CE2,沿途的标签转发表为CE1->(Input:192.0.4.1)A(Output:Label 6)->C(Output:Label 6)->E(Output:Label 5)->G(Output:Label 4)->A(Output:192.0.3.1)->CE2,其中,A->E->C是全局标签转发路径,E->G->H是传统LSP,标签对转发节点逐点交换。According to the above procedure, the forwarding path of the traffic from CE1 with the IP address of 192.0.3.1 to the IP address of 192.0.4.1 is CE1->A->C->E->G->H->CE2. The label forwarding table is CE1->(Input:192.0.4.1)A(Output:Label 6)->C(Output:Label 6)->E(Output:Label 5)->G(Output:Label 4)- >A(Output:192.0.3.1)->CE2, where A->E->C is the global label forwarding path, E->G->H is the traditional LSP, and the label is switched point by point to the forwarding node.

以上结合图2和图3详细描述了根据本发明实施例的路由散播的方法,下面将结合图4和图5详细描述根据本发明实施例的节点。如图4所示,节点10包括:The method of route spreading according to an embodiment of the present invention is described in detail above with reference to FIGS. 2 and 3. Hereinafter, a node according to an embodiment of the present invention will be described in detail with reference to FIGS. 4 and 5. As shown in FIG. 4, the node 10 includes:

接收单元11,用于接收第二节点散播的第一标识信息,该第一标识信息用于标识该第二节点所属的全局标签域;The receiving unit 11 is configured to receive first identifier information that is generated by the second node, where the first identifier information is used to identify a global label domain to which the second node belongs;

发送单元12,用于根据该第一标识信息与第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,其中,该第二标识信息用于标识该节点所属的全局标签域,该目标路由为该节点到该第二节点的路由。The sending unit 12 is configured to: according to the matching result of the first identifier information and the second identifier information, distribute a mapping relationship between the target route and a label corresponding to the target route to the second node, where the second identifier information is used by To identify the global tag domain to which the node belongs, the target route is the route of the node to the second node.

因此,本发明实施例的节点通过自身所属的全局标签域的标识信息和该节点的邻居节点所属的全局标签域的标识信息的匹配结果,确定向邻居节点散播的标签的类型,无需对全局标签域网络的边缘节点进行人工配置,能够自动避免路由和全局标签的映射关系扩散到节点所属的全局标签域网络外部的节点上,避免导致这些外部的节点出现标签冲突或不必要的错误应答。Therefore, the node of the embodiment of the present invention determines the type of the label to be transmitted to the neighbor node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs. The edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.

在本发明实施例中,可选地,如图5所示,该节点10还包括:处理单元13;In the embodiment of the present invention, optionally, as shown in FIG. 5, the node 10 further includes: a processing unit 13;

其中,在该发送单元12向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系之前,该处理单元13用于:获取该目标路由;为该目标路由分配或申请标签。Before the sending unit 12 distributes the mapping relationship between the target route and the label corresponding to the target route to the second node, the processing unit 13 is configured to: acquire the target route; and allocate or apply a label for the target route.

在本发明实施例中,可选地,该发送单元12还用于:如果该目标路由命中该节点上部署的申请全局标签的路由策略,向该节点所属的全局标签域中的控制节点为该目标路由申请标签;该接收单元11还用于:接收该控制节点发送的为该目标路由分配的第一标签,该第一标签在该节点所属的全局标签域内有效;In the embodiment of the present invention, the sending unit 12 is further configured to: if the target route hits a routing policy of the application global label deployed on the node, to the control node in the global label domain to which the node belongs a destination route requesting label; the receiving unit 11 is further configured to: receive a first label that is sent by the control node and that is allocated to the target route, where the first label is valid in a global label domain to which the node belongs;

如果该处理单元13确定该第一标识信息与该第二标识信息相匹配,该发送单元12用于:向该第二节点散播该目标路由和该第一标签的映射关系;和/或,If the processing unit 13 determines that the first identifier information matches the second identifier information, the sending unit 12 is configured to: spread the mapping relationship between the target route and the first label to the second node; and/or,

如果该处理单元13确定该第一标识信息与该第二标识信息不相匹配,该发送单元12 用于:向该第二节点散播该目标路由和第二标签的映射关系,该第二标签在该节点本地有效。If the processing unit 13 determines that the first identification information does not match the second identification information, the sending unit 12 And a method for: transmitting, to the second node, a mapping relationship between the target route and the second label, where the second label is valid locally at the node.

在本发明实施例中,可选地,该处理单元13具体用于:如果该目标路由满足以下条件(1)或(2),将第三标签分配给该目标路由,其中,该第三标签在该节点本地有效:(1)该目标路由没有命中该节点上部署的申请全局标签的路由策略且该节点上没有预先为该目标路由分配的全局标签,(2)该节点上没有部署申请全局标签的路由策略且该节点上没有预先为该目标路由分配的全局标签;In the embodiment of the present invention, the processing unit 13 is specifically configured to: if the target route meets the following condition (1) or (2), assign a third label to the target route, where the third label It is valid locally on the node: (1) The target route does not hit the routing policy of the request global label deployed on the node, and there is no global label allocated on the node for the target route. (2) There is no deployment request globally on the node. The routing policy of the label and there is no global label assigned to the target route on the node;

其中,该发送单元12具体用于:向该第二节点散播该目标路由和该第三标签的映射关系。The sending unit 12 is specifically configured to: spread the mapping relationship between the target route and the third label to the second node.

在本发明实施例中,可选地,该接收单元11还用于:接收第三节点散播的该目标路由和第四标签的映射关系,该第四标签为该第三节点为该目标路由分配或申请的标签;In the embodiment of the present invention, the receiving unit 11 is further configured to: receive a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is that the third node allocates the target route Or the label of the application;

其中,在为该目标路由分配或申请标签方面,该处理单元13具体用于:确定该第四标签的有效范围;如果确定该第四标签的有效范围不是该节点所属的全局标签域,为该目标路由分配或申请标签。The processing unit 13 is specifically configured to: determine a valid range of the fourth label, and determine, if it is determined that the valid range of the fourth label is not a global label field to which the node belongs, Target route assignment or application tag.

在本发明实施例中,可选地,该接收单元11还用于:接收该第三节点散播的第三标识信息,该第三标识信息用于标识该第三节点所属的全局标签域;In the embodiment of the present invention, the receiving unit 11 is further configured to: receive third identifier information that is distributed by the third node, where the third identifier information is used to identify a global label domain to which the third node belongs;

其中,该处理单元13具体用于:根据该第二标识信息与该第三标识信息的匹配结果,确定该第四标签的有效范围。The processing unit 13 is specifically configured to: determine, according to a matching result of the second identifier information and the third identifier information, a valid range of the fourth label.

在本发明实施例中,可选地,在根据该第二标识信息与该第三标识信息的匹配结果,确定该第四标签的有效范围方面,该处理单元13具体用于:如果该处理单元确定该第二标识信息与该第三标识信息相匹配,根据该第四标签与该节点的全局标签地址池的范围的关系,确定该第四标签的有效范围。In the embodiment of the present invention, optionally, in determining the effective range of the fourth label according to the matching result of the second identifier information and the third identifier information, the processing unit 13 is specifically configured to: if the processing unit Determining that the second identifier information matches the third identifier information, and determining a valid range of the fourth label according to the relationship between the fourth label and the range of the global label address pool of the node.

在本发明实施例中,可选地,该接收单元11具体用于:接收该第二节点散播的边界网关协议BGP更新消息,该BGP更新消息中携带该第一标识信息;或,接收该第二节点散播的开放式最短路径优先OSPF协议的链路状态通告LSA消息,该LSA消息中携带该第一标识信息;或,接收该第二节点散播的中间到中间系统IS-IS协议的链路状态协议数据单元LSP,该LSP中携带该第一标识信息。In the embodiment of the present invention, the receiving unit 11 is specifically configured to: receive a border gateway protocol BGP update message that is sent by the second node, where the BGP update message carries the first identifier information; or, receive the first The link state of the open shortest path first OSPF protocol of the two-node broadcasts the LSA message, the LSA message carries the first identifier information; or receives the link of the intermediate-to-intermediate system IS-IS protocol spread by the second node The state protocol data unit LSP carries the first identification information.

应理解,根据本发明实施例的节点10可对应于执行本发明实施例中的方法100中的第一节点,并且节点10中的各个模块的上述和其它操作和/或功能分别为了实现图2中的方法中第一节点对应的相应流程,为了简洁,在此不再赘述。It should be understood that the node 10 according to an embodiment of the present invention may correspond to performing the first node in the method 100 in the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the node 10 are respectively implemented to implement FIG. 2 The corresponding process corresponding to the first node in the method in the method is not described here for brevity.

因此,本发明实施例的节点通过自身所属的全局标签域的标识信息和该节点的邻居节点所属的全局标签域的标识信息的匹配结果,确定向邻居节点通告的标签的类型,无需对全局标签域网络的边缘节点进行人工配置,能够自动避免路由和全局标签的映射关系扩散到节点所属的全局标签域网络外部的节点上,避免导致这些外部的节点出现标签冲突或不必要的错误应答。Therefore, the node of the embodiment of the present invention determines the type of the label advertised to the neighboring node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs. The edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.

如图6所示,本发明实施例还提供了一种节点100。该节点100包括处理器101、接收器102、发送器103和存储器104。其中,处理器101、存储器104、接收器102和发送器103通过总线系统105相连,该存储器104用于存储指令,该处理器101用于执行该存储器104存储的指令,以控制接收器102接收信号和控制发送器103发送信号。 As shown in FIG. 6, an embodiment of the present invention further provides a node 100. The node 100 includes a processor 101, a receiver 102, a transmitter 103, and a memory 104. The processor 101, the memory 104, the receiver 102 and the transmitter 103 are connected by a bus system 105 for storing instructions for executing instructions stored by the memory 104 to control the receiver 102 to receive. The signal and control transmitter 103 sends a signal.

其中,该接收器102用于:用于接收第二节点散播的第一标识信息,该第一标识信息用于标识该第二节点所属的全局标签域;该发送器103还用于:用于根据该第一标识信息与第二标识信息的匹配结果,向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系,其中,该第二标识信息用于标识该节点所属的全局标签域,该目标路由为该节点到该第二节点的路由。The receiver 102 is configured to: receive the first identifier information that is sent by the second node, where the first identifier information is used to identify the global label domain to which the second node belongs; the sender 103 is further configured to: And mapping, according to the matching result of the first identifier information and the second identifier information, a mapping relationship between the target route and a label corresponding to the target route, where the second identifier information is used to identify that the node belongs to A global label field, the destination route is a route from the node to the second node.

因此,本发明实施例的节点通过自身所属的全局标签域的标识信息和该节点的邻居节点所属的全局标签域的标识信息的匹配结果,确定向邻居节点通告的标签的类型,无需对全局标签域网络的边缘节点进行人工配置,能够自动避免路由和全局标签的映射关系扩散到节点所属的全局标签域网络外部的节点上,避免导致这些外部的节点出现标签冲突或不必要的错误应答。Therefore, the node of the embodiment of the present invention determines the type of the label advertised to the neighboring node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs. The edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.

应理解,在本发明实施例中,该处理器101可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器101还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 101 may be a central processing unit ("CPU"), and the processor 101 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.

该存储器104可以包括只读存储器和随机存取存储器,并向处理器410提供指令和数据。存储器104的一部分还可以包括非易失性随机存取存储器。例如,存储器104还可以存储设备类型的信息。The memory 104 can include read only memory and random access memory and provides instructions and data to the processor 410. A portion of the memory 104 may also include a non-volatile random access memory. For example, the memory 104 can also store information of the device type.

该总线系统105除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统105。The bus system 105 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 105 in the figure.

在实现过程中,上述方法的各步骤可以通过处理器101中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器104,处理器101读取存储器104中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 101 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 104, and the processor 101 reads the information in the memory 104 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.

可选地,作为一个实施例,在该发送器103向该第二节点散播目标路由和与该目标路由相对应的标签的映射关系之前,该处理器101用于:获取该目标路由;为该目标路由分配或申请标签。Optionally, as an embodiment, before the transmitter 103 transmits the mapping relationship between the target route and the label corresponding to the target route to the second node, the processor 101 is configured to: obtain the target route; Target route assignment or application tag.

可选地,作为一个实施例,该发送器103具体用于:如果该目标路由命中该节点上部署的申请全局标签的路由策略,向该节点所属的全局标签域中的控制节点为该目标路由申请标签;Optionally, as an embodiment, the transmitter 103 is specifically configured to: if the target route hits a routing policy of a request global label deployed on the node, the control node in the global label domain to which the node belongs is the target route. Apply for a label;

该接收器102具体用于:接收该控制节点发送的为该目标路由分配的第一标签,该第一标签在该节点所属的全局标签域内有效;The receiver 102 is specifically configured to: receive a first label that is sent by the control node and that is allocated to the target route, where the first label is valid in a global label field to which the node belongs;

如果该处理器101确定该第一标识信息与该第二标识信息相匹配,该发送器103用于:向该第二节点散播该目标路由和该第一标签的映射关系;和/或,If the processor 101 determines that the first identifier information matches the second identifier information, the transmitter 103 is configured to: spread the mapping relationship between the target route and the first label to the second node; and/or,

如果该处理器101确定该第一标识信息与该第二标识信息不相匹配,该发送器103用于:向该第二节点散播该目标路由和第二标签的映射关系,该第二标签在该节点本地有效。 If the processor 101 determines that the first identifier information does not match the second identifier information, the transmitter 103 is configured to: spread the mapping relationship between the target route and the second label to the second node, where the second label is This node is valid locally.

可选地,作为一个实施例,该处理器101具体用于:如果该目标路由满足以下条件(1)或(2),将第三标签分配给该目标路由,其中,该第三标签在该节点本地有效:(1)该目标路由没有命中该节点上部署的申请全局标签的路由策略且该节点上没有预先为该目标路由分配的全局标签,(2)该节点上没有部署申请全局标签的路由策略且该节点上没有预先为该目标路由分配的全局标签;Optionally, as an embodiment, the processor 101 is specifically configured to: if the target route meets the following condition (1) or (2), assign a third label to the target route, where the third label is in the The node is locally valid: (1) The target route does not hit the routing policy of the request global label deployed on the node, and there is no global label allocated on the node for the target route. (2) The global label is not deployed on the node. Routing policy and there is no global label assigned to the target route on the node;

其中,该发送器103具体用于:向该第二节点散播该目标路由和该第三标签的映射关系。The transmitter 103 is specifically configured to: distribute the mapping relationship between the target route and the third label to the second node.

可选地,作为一个实施例,该接收器102还用于:接收第三节点散播的该目标路由和第四标签的映射关系,该第四标签为该第三节点为该目标路由分配或申请的标签;Optionally, as an embodiment, the receiver 102 is further configured to: receive a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is used by the third node to allocate or apply for the target route. s Mark;

其中,在为该目标路由分配或申请标签方面,该处理器101具体用于:确定该第四标签的有效范围;如果确定该第四标签的有效范围不是该节点所属的全局标签域,为该目标路由分配或申请标签。The processor 101 is specifically configured to: determine a valid range of the fourth label, and determine, if the valid range of the fourth label is not a global label field to which the node belongs, Target route assignment or application tag.

可选地,作为一个实施例,该接收器102还用于:接收该第三节点散播的第三标识信息,该第三标识信息用于标识该第三节点所属的全局标签域;Optionally, as an embodiment, the receiver 102 is further configured to: receive the third identifier information that is sent by the third node, where the third identifier information is used to identify a global label domain to which the third node belongs;

其中,该处理器101具体用于:根据该第二标识信息与该第三标识信息的匹配结果,确定该第四标签的有效范围。The processor 101 is specifically configured to: determine, according to a matching result of the second identifier information and the third identifier information, a valid range of the fourth label.

可选地,作为一个实施例,在根据该第二标识信息与该第三标识信息的匹配结果,确定该第四标签的有效范围方面,该处理器101具体用于:如果该处理器101确定该第二标识信息与该第三标识信息相匹配,根据该第四标签与该节点的全局标签地址池的范围的关系,确定该第四标签的有效范围。Optionally, as an embodiment, in determining a valid range of the fourth label according to a matching result of the second identifier information and the third identifier information, the processor 101 is specifically configured to: if the processor 101 determines The second identifier information is matched with the third identifier information, and the effective range of the fourth label is determined according to the relationship between the fourth label and the range of the global label address pool of the node.

可选地,作为一个实施例,该接收器102具体用于:接收该第二节点散播的边界网关协议BGP更新消息,该BGP更新消息中携带该第一标识信息;或,接收该第二节点散播的开放式最短路径优先OSPF协议的链路状态通告LSA消息,该LSA消息中携带该第一标识信息;或,接收该第二节点散播的中间系统到中间系统IS-IS协议的链路状态协议数据单元LSP消息,该LSP中携带该第一标识信息。Optionally, as an embodiment, the receiver 102 is configured to: receive a border gateway protocol BGP update message that is sent by the second node, where the BGP update message carries the first identifier information; or receive the second node. The link state of the open shortest path first OSPF protocol is advertised to the LSA message, and the LSA message carries the first identifier information; or, the link state of the intermediate system to the intermediate system IS-IS protocol is received. The protocol data unit LSP message carries the first identifier information.

应理解,根据本发明实施例的节点100可对应于本发明实施例中的节点10,并可以对应于执行根据本发明实施例的方法100中的第一节点,并且节点100中的各个模块的上述和其它操作和/或功能分别为了实现图2方法中的第一节点对应的相应流程,为了简洁,在此不再赘述。It should be understood that the node 100 according to an embodiment of the present invention may correspond to the node 10 in the embodiment of the present invention, and may correspond to the first node in the method 100 according to the embodiment of the present invention, and each module in the node 100 The foregoing and other operations and/or functions are respectively used to implement the corresponding processes corresponding to the first node in the method of FIG. 2, and are not described herein again for brevity.

因此,本发明实施例的节点通过自身所属的全局标签域的标识信息和该节点的邻居节点所属的全局标签域的标识信息的匹配结果,确定向邻居节点通告的标签的类型,无需对全局标签域网络的边缘节点进行人工配置,能够自动避免路由和全局标签的映射关系扩散到节点所属的全局标签域网络外部的节点上,避免导致这些外部的节点出现标签冲突或不必要的错误应答。Therefore, the node of the embodiment of the present invention determines the type of the label advertised to the neighboring node by the matching result of the identifier information of the global label domain to which the node belongs and the identifier information of the global label domain to which the neighbor node belongs. The edge nodes of the domain network are manually configured to automatically prevent the mapping between the route and the global label from spreading to the nodes outside the global label domain network to which the node belongs, so as to avoid label conflicts or unnecessary error responses of these external nodes.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单 元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple orders. Meta or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称为“ROM”)、随机存取存储器(Random Access Memory,简称为“RAM”)、磁碟或者光盘等各种可以存储程序代码的介质。An integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD. A variety of media that can store program code.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (17)

一种路由散播的方法,其特征在于,包括:A method for route dissemination, comprising: 第一节点接收第二节点散播的第一标识信息,所述第一标识信息用于标识所述第二节点所属的全局标签域;The first node receives the first identifier information that is sent by the second node, where the first identifier information is used to identify the global label domain to which the second node belongs; 所述第一节点根据所述第一标识信息与第二标识信息的匹配结果,向所述第二节点散播目标路由和与所述目标路由相对应的标签的映射关系,其中,所述第二标识信息用于标识所述第一节点所属的全局标签域,所述目标路由为所述第一节点到所述第二节点的路由。Determining, by the first node, a mapping relationship between the target route and a label corresponding to the target route to the second node according to a matching result of the first identifier information and the second identifier information, where the second node The identifier information is used to identify a global label domain to which the first node belongs, and the target route is a route from the first node to the second node. 根据权利要求1所述的方法,其特征在于,在所述第一节点向所述第二节点散播目标路由和与所述目标路由相对应的标签的映射关系之前,还包括:The method according to claim 1, wherein before the first node distributes the mapping relationship between the target route and the label corresponding to the target route to the second node, the method further includes: 所述第一节点获取所述目标路由;The first node acquires the target route; 所述第一节点为所述目标路由分配或申请标签。The first node allocates or applies a label to the target route. 根据权利要求2所述的方法,其特征在于,所述第一节点为所述目标路由分配或申请标签,包括:The method according to claim 2, wherein the first node assigns or applies a label to the target route, including: 如果所述目标路由命中所述第一节点上部署的申请全局标签的路由策略,所述第一节点向所述第一节点所属的全局标签域中的控制节点为所述目标路由申请标签;If the target route hits the routing policy of the request global label deployed on the first node, the first node applies a label to the target node to the control node in the global label domain to which the first node belongs; 所述第一节点接收所述控制节点发送的为所述目标路由分配的第一标签,所述第一标签在所述第一节点所属的全局标签域内有效。The first node receives a first label that is sent by the control node and is allocated to the target route, where the first label is valid in a global label domain to which the first node belongs. 其中,所述第一节点根据所述第一标识信息与第二标识信息的匹配结果,向所述第二节点散播目标路由和与所述目标路由相对应的标签的映射关系,包括:The first node, according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route to the second node, including: 如果所述第一节点确定所述第一标识信息与所述第二标识信息相匹配,所述第一节点向所述第二节点散播所述目标路由和所述第一标签的映射关系;If the first node determines that the first identifier information matches the second identifier information, the first node distributes a mapping relationship between the target route and the first label to the second node; 和/或,and / or, 如果所述第一节点确定所述第一标识信息与所述第二标识信息不相匹配,所述第一节点向所述第二节点散播所述目标路由和第二标签的映射关系,所述第二标签在所述第一节点本地有效。If the first node determines that the first identifier information does not match the second identifier information, the first node transmits a mapping relationship between the target route and the second label to the second node, The second tag is valid locally at the first node. 根据权利要求2所述的方法,其特征在于,所述第一节点为所述目标路由分配或申请标签,包括:The method according to claim 2, wherein the first node assigns or applies a label to the target route, including: 如果所述目标路由满足以下条件(1)或(2),所述第一节点将第三标签分配给所述目标路由,其中,所述第三标签在所述第一节点本地有效:(1)所述目标路由没有命中所述第一节点上部署的申请全局标签的路由策略且所述第一节点上没有预先为所述目标路由分配的全局标签,(2)所述第一节点上没有部署申请全局标签的路由策略且所述第一节点上没有预先为所述目标路由分配的全局标签;If the target route satisfies the following condition (1) or (2), the first node assigns a third label to the target route, wherein the third label is valid locally at the first node: (1) The destination route does not hit the routing policy of the request global label deployed on the first node, and the first node does not have a global label previously allocated for the target route, and (2) the first node does not have Deploying a routing policy for requesting a global label and having no global label previously allocated for the target route on the first node; 其中,所述第一节点根据所述第一标识信息与第二标识信息的匹配结果,向所述第二节点散播目标路由和与所述目标路由相对应的标签的映射关系,包括:The first node, according to the matching result of the first identifier information and the second identifier information, the mapping relationship between the target route and the label corresponding to the target route to the second node, including: 所述第一节点向所述第二节点散播所述目标路由和所述第三标签的映射关系。The first node distributes a mapping relationship between the target route and the third label to the second node. 根据权利要求2至4中任一项所述的方法,其特征在于,所述第一节点获取所述目标路由,包括:The method according to any one of claims 2 to 4, wherein the acquiring, by the first node, the target route comprises: 所述第一节点接收第三节点散播的所述目标路由和第四标签的映射关系,所述第四标签为所述第三节点为所述目标路由分配或申请的标签; The first node receives a mapping relationship between the target route and the fourth label that is distributed by the third node, where the fourth label is a label that is allocated or applied by the third node for the target route; 其中,所述第一节点为所述目标路由分配或申请标签,包括:The first node allocates or applies a label to the target route, including: 所述第一节点确定所述第四标签的有效范围;Determining, by the first node, a valid range of the fourth tag; 如果所述第四标签的有效范围不是所述第一节点所属的全局标签域,所述第一节点为所述目标路由分配或申请标签。If the valid range of the fourth tag is not the global tag domain to which the first node belongs, the first node allocates or applies a label for the target route. 根据权利要求5所述的方法,其特征在于,所述第一节点确定所述第四标签的有效范围,包括:The method according to claim 5, wherein the determining, by the first node, the effective range of the fourth tag comprises: 所述第一节点接收所述第三节点散播的第三标识信息,所述第三标识信息用于标识所述第三节点所属的全局标签域;Receiving, by the first node, third identifier information that is distributed by the third node, where the third identifier information is used to identify a global label domain to which the third node belongs; 所述第一节点根据所述第二标识信息与所述第三标识信息的匹配结果,确定所述第四标签的有效范围。Determining, by the first node, a valid range of the fourth label according to a matching result of the second identifier information and the third identifier information. 根据权利要求6所述的方法,其特征在于,所述第一节点根据所述第二标识信息与所述第三标识信息的匹配结果,确定所述第四标签的有效范围,包括:The method according to claim 6, wherein the determining, by the first node, the valid range of the fourth label according to the matching result of the second identifier information and the third identifier information, including: 如果所述第一节点确定所述第二标识信息与所述第三标识信息相匹配,所述第一节点根据所述第四标签与所述第一节点的全局标签地址池的范围的关系,确定所述第四标签的有效范围。If the first node determines that the second identifier information matches the third identifier information, the first node is configured according to a relationship between the fourth label and a range of a global label address pool of the first node, Determining a valid range of the fourth tag. 根据权利要求1至7中任一项所述的方法,其特征在于,所述第一节点接收第二节点散播的第一标识信息,包括:The method according to any one of claims 1 to 7, wherein the first node receives the first identification information that is transmitted by the second node, and includes: 所述第一节点接收所述第二节点散播的边界网关协议BGP更新消息,所述BGP更新消息中携带所述第一标识信息;或,Receiving, by the first node, a border gateway protocol BGP update message that is sent by the second node, where the BGP update message carries the first identifier information; or 所述第一节点接收所述第二节点散播的开放式最短路径优先OSPF协议的链路状态通告LSA消息,所述LSA消息中携带所述第一标识信息;或,Receiving, by the first node, a link state advertisement LSA message of the open shortest path first OSPF protocol that is sent by the second node, where the LSA message carries the first identifier information; or 所述第一节点接收所述第二节点散播的中间系统到中间系统IS-IS协议的链路状态协议数据单元LSP,所述LSP中携带所述第一标识信息。The first node receives the link state protocol data unit LSP of the intermediate system to the intermediate system IS-IS protocol, and the LSP carries the first identifier information. 一种节点,其特征在于,包括:A node, comprising: 接收单元,用于接收第二节点散播的第一标识信息,所述第一标识信息用于标识所述第二节点所属的全局标签域;a receiving unit, configured to receive first identifier information that is sent by the second node, where the first identifier information is used to identify a global label domain to which the second node belongs; 收发单元,用于根据所述第一标识信息与第二标识信息的匹配结果,向所述第二节点散播目标路由和与所述目标路由相对应的标签的映射关系,其中,所述第二标识信息用于标识所述节点所属的全局标签域,所述目标路由为所述节点到所述第二节点的路由。The transceiver unit is configured to: according to the matching result of the first identifier information and the second identifier information, distribute a mapping relationship between the target route and a label corresponding to the target route to the second node, where the second The identifier information is used to identify a global label domain to which the node belongs, and the target route is a route from the node to the second node. 根据权利要求9所述的节点,其特征在于,所述节点还包括:处理单元;The node according to claim 9, wherein the node further comprises: a processing unit; 其中,在所述发送单元向所述第二节点散播目标路由和与所述目标路由相对应的标签的映射关系之前,所述处理单元用于:The processing unit is configured to: before the sending unit transmits the mapping relationship between the target route and the label corresponding to the target route to the second node: 获取所述目标路由;Obtaining the target route; 为所述目标路由分配或申请标签。Assign or request a label for the target route. 根据权利要求10所述的节点,其特征在于,所述收发单元还用于:The node according to claim 10, wherein the transceiver unit is further configured to: 如果所述目标路由命中所述节点上部署的申请全局标签的路由策略,向所述节点所属的全局标签域中的控制节点为所述目标路由申请标签;If the target route hits the routing policy of the request global label deployed on the node, the control node in the global label domain to which the node belongs applies for the target route; 接收所述控制节点发送的为所述目标路由分配的第一标签,所述第一标签在所述节点所属的全局标签域内有效; Receiving, by the control node, a first label allocated to the target route, where the first label is valid in a global label domain to which the node belongs; 如果所述处理单元确定所述第一标识信息与所述第二标识信息相匹配,向所述第二节点散播所述目标路由和所述第一标签的映射关系;和/或,If the processing unit determines that the first identifier information matches the second identifier information, spreading a mapping relationship between the target route and the first label to the second node; and/or, 如果所述处理单元确定所述第一标识信息与所述第二标识信息不相匹配,向所述第二节点散播所述目标路由和第二标签的映射关系,所述第二标签在所述节点本地有效。If the processing unit determines that the first identifier information does not match the second identifier information, the mapping relationship between the target route and the second label is distributed to the second node, where the second label is in the The node is valid locally. 根据权利要求10所述的节点,其特征在于,所述处理单元具体用于:The node according to claim 10, wherein the processing unit is specifically configured to: 如果所述目标路由满足以下条件(1)或(2),将第三标签分配给所述目标路由,其中,所述第三标签在所述节点本地有效:(1)所述目标路由没有命中所述节点上部署的申请全局标签的路由策略且所述节点上没有预先为所述目标路由分配的全局标签,(2)所述节点上没有部署申请全局标签的路由策略且所述节点上没有预先为所述目标路由分配的全局标签;Assigning a third label to the target route if the target route satisfies the following condition (1) or (2), wherein the third label is valid locally at the node: (1) the target route does not hit a routing policy of the global label that is deployed on the node and the global label that is not allocated for the target routing on the node, and (2) no routing policy for applying the global label is deployed on the node, and the node does not have a routing policy. a global label assigned in advance to the target route; 其中,所述发送单元具体用于:The sending unit is specifically configured to: 向所述第二节点散播所述目标路由和所述第三标签的映射关系。And mapping the mapping between the target route and the third label to the second node. 根据权利要求10至12中任一项所述的方法,其特征在于,所述接收单元还用于:The method according to any one of claims 10 to 12, wherein the receiving unit is further configured to: 接收第三节点散播的所述目标路由和第四标签的映射关系,所述第四标签为所述第三节点为所述目标路由分配或申请的标签;And receiving, by the third node, a mapping relationship between the target route and the fourth label, where the fourth label is a label that is allocated or applied by the third node for the target route; 其中,在为所述目标路由分配或申请标签方面,所述处理单元具体用于:The processing unit is specifically configured to allocate or apply a label for the target route: 确定所述第四标签的有效范围;Determining a valid range of the fourth label; 如果确定所述第四标签的有效范围不是所述节点所属的全局标签域,为所述目标路由分配或申请标签。If it is determined that the valid range of the fourth tag is not the global tag domain to which the node belongs, assign or apply a label for the target route. 根据权利要求13所述的节点,其特征在于,所述接收单元还用于:The node according to claim 13, wherein the receiving unit is further configured to: 接收所述第三节点散播的第三标识信息,所述第三标识信息用于标识所述第三节点所属的全局标签域;Receiving, by the third node, third identifier information, where the third identifier information is used to identify a global label domain to which the third node belongs; 其中,所述处理单元具体用于:The processing unit is specifically configured to: 根据所述第二标识信息与所述第三标识信息的匹配结果,确定所述第四标签的有效范围。And determining, according to a matching result of the second identifier information and the third identifier information, a valid range of the fourth label. 根据权利要求14所述的节点,其特征在于,在根据所述第二标识信息与所述第三标识信息的匹配结果,确定所述第四标签的有效范围方面,所述处理单元具体用于:The node according to claim 14, wherein the processing unit is specifically configured to determine a valid range of the fourth tag according to a matching result of the second identification information and the third identification information. : 如果所述处理单元确定所述第二标识信息与所述第三标识信息相匹配,根据所述第四标签与该节点的全局标签地址池的范围的关系,确定所述第四标签的有效范围。If the processing unit determines that the second identifier information matches the third identifier information, determining a valid range of the fourth label according to a relationship between the fourth label and a range of a global label address pool of the node . 根据权利要求9至15中任一项所述的节点,其特征在于,所述接收单元具体用于:The node according to any one of claims 9 to 15, wherein the receiving unit is specifically configured to: 接收所述第二节点散播的边界网关协议BGP更新消息,所述BGP更新消息中携带所述第一标识信息;或,Receiving, by the second node, a Border Gateway Protocol BGP update message, where the BGP update message carries the first identifier information; or 接收所述第二节点散播的开放式最短路径优先OSPF协议的链路状态通告LSA消息,所述LSA消息中携带所述第一标识信息;或,Receiving, by the second node, the link state advertisement LSA message of the open shortest path first OSPF protocol, where the LSA message carries the first identifier information; or 接收所述第二节点散播的中间系统到中间系统IS-IS协议的链路状态协议数据单元LSP,所述LSP中携带所述第一标识信息。And receiving, by the second node, the intermediate system to the link state protocol data unit LSP of the intermediate system IS-IS protocol, where the LSP carries the first identifier information. 一种节点,其特征在于,包括:处理器、存储器、接收器和发送器,所述处理器、所述存储器、所述接收器和所述发送器通过总线系统相连,所述存储器用于存储指 令,所述处理器用于执行所述存储器中存储的指令,以控制所述接收器接收信息或所述发送器发送信息,使得所述节点执行权利要求1至8中任一项中所述的方法。 A node, comprising: a processor, a memory, a receiver, and a transmitter, wherein the processor, the memory, the receiver, and the transmitter are connected by a bus system, and the memory is used for storing Means The processor is configured to execute an instruction stored in the memory to control the receiver to receive information or the transmitter to transmit information, such that the node performs the method of any one of claims 1 to 8. method.
PCT/CN2017/079350 2016-05-13 2017-04-01 Route propagation method, and node Ceased WO2017193733A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610321953.7 2016-05-13
CN201610321953.7A CN107370675B (en) 2016-05-13 2016-05-13 Method and node for route dissemination

Publications (1)

Publication Number Publication Date
WO2017193733A1 true WO2017193733A1 (en) 2017-11-16

Family

ID=60267645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079350 Ceased WO2017193733A1 (en) 2016-05-13 2017-04-01 Route propagation method, and node

Country Status (2)

Country Link
CN (1) CN107370675B (en)
WO (1) WO2017193733A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598564A (en) * 2019-02-20 2020-08-28 华为技术有限公司 Block link point connection establishing method, device and equipment
CN111600797A (en) * 2019-02-21 2020-08-28 华为技术有限公司 Data transmission method, node and system
CN112491707A (en) * 2019-09-11 2021-03-12 华为技术有限公司 A method and device for determining a forwarding path
EP3849146A4 (en) * 2018-10-31 2021-10-06 Huawei Technologies Co., Ltd. TRANSMISSION PROCESS AND APPARATUS FOR A LINK RESOURCE
CN113905291A (en) * 2020-06-22 2022-01-07 中兴通讯股份有限公司 Connection establishing method, device and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259341B (en) * 2017-12-06 2020-12-29 新华三技术有限公司 Prefix label distribution method and SDN controller
CN110083568B (en) * 2019-03-29 2021-07-13 海光信息技术股份有限公司 Data exchange system, data exchange command routing method, chip and electronic device
EP3984177A1 (en) * 2019-06-13 2022-04-20 Telefonaktiebolaget LM Ericsson (publ) Methods, nodes and systems in a communications network
CN112583714B (en) * 2019-09-30 2022-10-18 华为技术有限公司 Routing control method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674224A (en) * 2008-09-08 2010-03-17 华为技术有限公司 Method, label switching router and system for generating forwarding-table item information
CN102710519A (en) * 2012-06-01 2012-10-03 中兴通讯股份有限公司 Method, system and device for establishing and removing cross-domain LSP (Label Switching Path)
CN102857424A (en) * 2012-08-30 2013-01-02 杭州华三通信技术有限公司 Method and equipment for establishing LSP (label switched path) in MPLS (multi-protocol label switching) network
CN103986654A (en) * 2014-05-05 2014-08-13 杭州华三通信技术有限公司 LSP generating method and device
CN105337863A (en) * 2014-07-29 2016-02-17 杭州迪普科技有限公司 Label assigning method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100433691C (en) * 2005-11-02 2008-11-12 华为技术有限公司 Routing method of virtual special network
CN100531144C (en) * 2007-04-25 2009-08-19 华为技术有限公司 Router and routing transmission method
CN101465793B (en) * 2007-12-18 2011-02-16 中国科学院计算技术研究所 Method and device for obtaining shortest route between two points in network
CN101577660B (en) * 2008-05-05 2012-03-21 华为技术有限公司 Method and device for acquiring label forwarding list item and forwarding message
US9450864B2 (en) * 2013-10-11 2016-09-20 Futurewei Technologies, Inc. Using PCE as SDN controller
EP3043519B1 (en) * 2013-10-18 2019-08-28 Huawei Technologies Co., Ltd. Method, controller, forwarding device, and network system for forwarding packets
CN103841022B (en) * 2014-03-12 2017-04-05 华为技术有限公司 For setting up the method and device in tunnel
US9860325B2 (en) * 2014-03-18 2018-01-02 Axis Ab Tunnel broker in a service oriented architecture
CN105323176A (en) * 2014-06-20 2016-02-10 中兴通讯股份有限公司 Method and apparatus for publishing address information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674224A (en) * 2008-09-08 2010-03-17 华为技术有限公司 Method, label switching router and system for generating forwarding-table item information
CN102710519A (en) * 2012-06-01 2012-10-03 中兴通讯股份有限公司 Method, system and device for establishing and removing cross-domain LSP (Label Switching Path)
CN102857424A (en) * 2012-08-30 2013-01-02 杭州华三通信技术有限公司 Method and equipment for establishing LSP (label switched path) in MPLS (multi-protocol label switching) network
CN103986654A (en) * 2014-05-05 2014-08-13 杭州华三通信技术有限公司 LSP generating method and device
CN105337863A (en) * 2014-07-29 2016-02-17 杭州迪普科技有限公司 Label assigning method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3849146A4 (en) * 2018-10-31 2021-10-06 Huawei Technologies Co., Ltd. TRANSMISSION PROCESS AND APPARATUS FOR A LINK RESOURCE
US11252085B2 (en) 2018-10-31 2022-02-15 Huawei Technologies Co., Ltd. Link resource transmission method and apparatus
CN111598564A (en) * 2019-02-20 2020-08-28 华为技术有限公司 Block link point connection establishing method, device and equipment
CN111598564B (en) * 2019-02-20 2023-11-21 华为技术有限公司 Blockchain node connection establishment method, device and equipment
CN111600797A (en) * 2019-02-21 2020-08-28 华为技术有限公司 Data transmission method, node and system
US11570093B2 (en) 2019-02-21 2023-01-31 Huawei Technologies Co., Ltd. Data transmission method, node and system
CN112491707A (en) * 2019-09-11 2021-03-12 华为技术有限公司 A method and device for determining a forwarding path
CN112491707B (en) * 2019-09-11 2022-04-05 华为技术有限公司 Method and device for determining forwarding path
US12166657B2 (en) 2019-09-11 2024-12-10 Huawei Technologies Co., Ltd. Forwarding path determining method and apparatus
CN113905291A (en) * 2020-06-22 2022-01-07 中兴通讯股份有限公司 Connection establishing method, device and storage medium

Also Published As

Publication number Publication date
CN107370675B (en) 2021-02-23
CN107370675A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN107370675B (en) Method and node for route dissemination
CN104518972B (en) Dynamic area filtering for link-state routing protocols
CN105594167B (en) Method, controller, forwarding device and network system for forwarding message
US8259564B1 (en) Egress protection for label switched paths
CN103634217B (en) Method for issuing route information, method and device for transmitting massage
US8488614B1 (en) Upstream label assignment for the label distribution protocol
CN109417508B (en) Method and device for constructing hierarchical Path Computation Element (PCE) network topology
CN112087386B (en) A message processing method, device and system
CN104869061B (en) Utilize the neighbours' label distribution method and router of tag distribution protocol
WO2021196717A1 (en) Multicast traffic transmission method and apparatus, communication node, and storage medium
CN113452610B (en) Seamless end-to-end segmented routing method across metropolitan area network and area border router
CN107528779B (en) Method for network, router and storage medium
CN103733576B (en) Signaling a label switched path (lsp) tunneling model
WO2017128656A1 (en) Virtual private network (vpn) service optimization method and device
CN110896379B (en) Message sending method, binding relationship notification method, device and storage medium
CN111585780A (en) Supports multiple virtual networks through the underlying network topology
WO2017036233A1 (en) Sr forwarding entry generation method and apparatus
WO2015192501A1 (en) Address information publishing method and apparatus
WO2015165311A1 (en) Method for transmitting data packet and provider edge device
WO2022048417A1 (en) Packet processing method, border device, and computer-readable storage medium
CN112511427A (en) Segment routing service processing method and device, routing equipment and storage medium
WO2016150093A1 (en) Packet forward method, device, and pe apparatus
CN106921573A (en) It is used to issue the method and device of tenant's route in NVo3 networks
CN105391633B (en) The route issuing method of transponder, controller and controller
JP2023547485A (en) Next hop determination method and device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17795351

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17795351

Country of ref document: EP

Kind code of ref document: A1