WO2020119644A1 - Forwarding entry generation method, apparatus, and device - Google Patents

Forwarding entry generation method, apparatus, and device Download PDF

Info

Publication number
WO2020119644A1
WO2020119644A1 PCT/CN2019/124063 CN2019124063W WO2020119644A1 WO 2020119644 A1 WO2020119644 A1 WO 2020119644A1 CN 2019124063 W CN2019124063 W CN 2019124063W WO 2020119644 A1 WO2020119644 A1 WO 2020119644A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
label
tunnel
forwarding entry
message
Prior art date
Application number
PCT/CN2019/124063
Other languages
French (fr)
Chinese (zh)
Inventor
赵科强
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020119644A1 publication Critical patent/WO2020119644A1/en

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/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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 present application relates to the field of network communications, and in particular, to a forwarding entry generation method, device, and equipment.
  • fast reroute (FRR) technology came into being.
  • This technology can calculate one or more backup paths in advance for the main path. When the link or node on the main path fails, the traffic can be quickly switched to the backup path, thereby improving the reliability of the network.
  • the core step of fast rerouting is to calculate the loop-free backup next hop (LFA) to the destination node for the source node of the main path. If the loop-free backup next hop cannot be calculated, the source node reaches the destination The node's remote loop-free backup next-hop (remote loop free alternative, R-LFA). Then, the backup path is calculated according to the next hop of the source node's ring-free backup or the next hop of the remote ring-free backup.
  • LFA loop-free backup next hop
  • the next hop of the remote loopless backup of the source node cannot be calculated, and the backup path cannot be calculated.
  • the path from the source node to the destination node can only be re-converged after the failure of the main path in the traditional way , So it will cause traffic interruption and business loss
  • Embodiments of the present application provide a forwarding entry generation method, device, and equipment, which are used to reduce the time of traffic interruption and reduce the loss of services.
  • an embodiment of the present application provides a forwarding entry generation method, which can be applied to a first node, and the first node is a source node of a main path.
  • the method includes the following steps: First, the first node establishes a tunnel to the second node.
  • the second node is a Q node that belongs to Q-space in the network topology from the source node to the destination node of the main path.
  • the second node may be the Q node closest or farthest from the first node in Q space.
  • the tunnel does not go through the main path.
  • the type of tunnel is, for example, a resource reservation protocol-resource engineering (reservation protocol-traffic engineering, RSVP-TE) tunnel.
  • RSVP-TE resource reservation protocol-resource engineering
  • the first node generates a forwarding entry of the first node.
  • the forwarding entry of the first node includes an outgoing interface, and the outgoing interface is a tunnel interface of the tunnel.
  • the forwarding entry of the first node is used to send a The node forwards the message.
  • the message may be an internet protocol (IP) message or a multi-protocol label switching (MPLS) message, etc.
  • IP internet protocol
  • MPLS multi-protocol label switching
  • the first node establishes a tunnel to the second node as the Q node, and generates a forwarding entry of the first node according to the tunnel interface of the tunnel, so that the first node can be in the case of a failure of the main path.
  • the embodiment of the present application can effectively shorten the traffic switching The time required to reduce business losses. If the first node automatically calculates the Q node as the second node, it can also reduce manual workload and improve the efficiency of generating the forwarding entry of the first node.
  • the forwarding entry of the first node may be a routing entry for forwarding IP packets or a label forwarding entry for forwarding MPLS packets.
  • the forwarding entry of the first node is a routing entry
  • the forwarding entry of the first node also includes a next-hop address
  • the next-hop address is an Internet protocol IP address of the second node obtained in advance.
  • the next hop address is the IP address of the second node acquired in advance.
  • the IP address of the second node is used by the first node to look up the address resolution protocol (ARP) table, obtain the media access control (MAC) address, and encapsulate the MAC address in the Ethernet header of the packet .
  • ARP address resolution protocol
  • MAC media access control
  • the label forwarding entry of the first node is a label forwarding entry
  • the label forwarding entry also includes an output label
  • the output label includes a first label and a second label
  • the first label is a label from the first node to the second node
  • the second label is a multi-protocol label switching MPLS traffic engineering (TE) label for the tunnel.
  • the method further includes: the first node establishing a remote LDP session with the second node to receive the first label sent by the second node.
  • the method further includes: when the main path fails, the first node sends a message to the second node through the tunnel, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label.
  • an embodiment of the present application also provides a forwarding entry generation device, which is applied to a first node, and the first node is a source node of a primary path.
  • the device includes: a tunnel establishment unit, configured to establish a path to the second node
  • the second node is the Q node in the Q space in the network topology from the source node to the destination node of the main path.
  • the tunnel does not pass through the main path; the entry generation unit is used to generate the forwarding entry of the first node.
  • the forwarding entry of a node includes the outgoing interface, and the outgoing interface is the tunnel interface of the tunnel.
  • the forwarding entry of the first node is used to forward the message to the second node when the main path fails.
  • the forwarding entry of the first node is a routing entry or a label forwarding entry.
  • the forwarding entry of the first node is a routing entry
  • the forwarding entry of the first node also includes a next-hop address
  • the next-hop address is an Internet protocol IP address of the second node obtained in advance.
  • the label forwarding entry of the first node is a label forwarding entry
  • the label forwarding entry also includes an output label
  • the output label includes a first label and a second label.
  • the first label is from the first node to the first The two-node label distribution protocol LDP label
  • the second label is the tunnel's multi-protocol label switching traffic engineering MPLS TE label.
  • the device further includes: a session establishment unit, configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
  • a session establishment unit configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
  • the device further includes: a message sending unit, configured to send a message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label .
  • a message sending unit configured to send a message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label .
  • the second node is the Q node that is closest to or farthest from the first node in Q space.
  • the tunnel is a resource reservation protocol-traffic engineering RSVP-TE tunnel.
  • the message is an IP message or an MPLS message.
  • an embodiment of the present application further provides a forwarding entry generation device, where the device is a first node, and the first node includes a storage unit, a processing unit, and a communication unit,
  • Storage unit for storing instructions
  • the processing unit is configured to execute instructions in the memory and execute the foregoing forwarding entry generation method
  • the communication unit is used to communicate with the second node.
  • an embodiment of the present application further provides a computer-readable storage medium, including instructions that, when run on a computer, cause the computer to execute the foregoing forwarding entry generation method.
  • FIG. 1 is a schematic diagram of a networking provided by an embodiment of this application.
  • FIG. 2 is a schematic flowchart of a method for generating a forwarding entry provided by an embodiment of this application;
  • FIG. 3 is a schematic diagram of packet forwarding corresponding to the example shown in FIG. 1 provided by an embodiment of the present application;
  • FIG. 4 is a structural block diagram of a forwarding entry generation device provided by an embodiment of the present application.
  • FIG. 5 is a hardware architecture diagram of a forwarding entry generation device provided by an embodiment of the present application.
  • the core step of fast rerouting technology is to calculate the next hop of the loop-free backup to the destination node or the next hop of the remote loop-free backup for the source node of the main path.
  • the main path is usually one path, and the backup path may have one or more paths.
  • the main path and the backup path are two or more paths starting from the source node.
  • the source node refers to the starting node where the main path and the backup path intersect, and it may or may not be the initial node for packet forwarding.
  • the main path and the backup path correspond to different outgoing interfaces.
  • the destination node is the end node where the main path and the backup path intersect. It may or may not be the end node for packet forwarding. Usually there are two forwarding entries in the source node.
  • the forwarding entry corresponding to the main path is used to forward the message to the next hop node of the main path, and the forwarding entry corresponding to the standby path is used to the next hop of the standby path.
  • the node forwards the message.
  • the source node uses the forwarding entry corresponding to the main path to forward the message; when the main path fails, the source node uses the forwarding entry corresponding to the standby path to forward the message.
  • cost(N ⁇ D) ⁇ cost(N ⁇ S)+cost(S ⁇ D) where S is the source node, D is the destination node, and N is the LFA of the source node, cost(N ⁇ D) refers to the link cost of the shortest path from N to D, cost(N ⁇ S) refers to the link cost of the shortest path from N to S, and cost(S ⁇ D) refers to the shortest path from S to D Link cost.
  • Figure 1 is a schematic diagram of networking.
  • this network includes source node S, destination node D, node A directly connected to source node S and node B directly connected to destination node, where source node S is directly connected to destination node D, node A and node B is directly connected.
  • the main path is the path from the source node S to the destination node D.
  • R-LFA can be calculated.
  • the method of calculating R-LFA is to calculate the PQ nodes of the network topology from the source node to the destination node.
  • the so-called PQ node refers to a node that belongs to both P space (P-space) and Q space.
  • P-space refers to the set of shortest path trees with the source node as the root node, and all slave root nodes reachable without going through the main path.
  • the Q space refers to the set of reverse shortest path trees with the destination node as the root node, and all slave nodes reachable without going through the main path.
  • the P node belonging to the P space includes node A
  • the Q node belonging to the Q space includes node B.
  • the PQ node cannot be obtained, that is, the R-LFA cannot be calculated.
  • the prior art can only follow the traditional way, when the main path from the source node S to the destination node D fails, the path from the source node to the destination node is re-converged to pass the recalculated path Forward the message. This process takes a long time and may cause traffic interruption and business loss.
  • the embodiments of the present application provide a forwarding entry generation method, device, and equipment, which can still quickly switch to a standby path for packet forwarding when PQ nodes are not calculated, reducing traffic interruption And the purpose of reducing business losses.
  • this figure is a schematic flowchart of a method for generating a forwarding entry provided by an embodiment of the present application.
  • the method may be applied to a first node, and the first node may be a source node of a main path, that is, a source of a backup path node.
  • the first node may be a device such as a router, a switch, or a software defined network (SDN) controller.
  • SDN software defined network
  • the forwarding table entry generation method includes the following steps:
  • S101 The first node establishes a tunnel to the second node.
  • the second node is a Q node belonging to the Q space in the network topology from the source node to the destination node of the main path.
  • the Q node is Node B. Since the Q node to the destination node does not pass through the main path, the Q node is used as the first node's acyclic backup next hop node, which can ensure that after the main path fails, the source node can report through the backup path through the Q node to the destination node. Forwarding of text.
  • the Q node may be automatically calculated by the first node, or may be designated. If the Q space includes multiple Q nodes, one Q node can be selected from the multiple Q nodes as the second node. For example, the node closest to the first node or the node farthest from the first node may be selected as the second node from the plurality of Q nodes. Specifically, the first node may calculate the distance between the multiple Q nodes and the first node, and then determine the node that is closest to or farthest from the first node according to the distance between the multiple Q nodes and the first node. The second node. Of course, the selection of the second node may also be based on other rules, which are not specifically limited in the embodiments of the present application.
  • the second node may be a device such as a router, a switch, or a software defined network (software defined network, SDN) controller.
  • the second node is a non-neighbor node of the first node, so in order for the second node to be the next hop of the first node's acyclic backup, the first node needs to establish a tunnel to the second node , And the tunnel does not go through the main path, otherwise the backup path will not work when the main path fails.
  • the first node excludes the establishment of a tunnel between the protected link and the protected node, the protected link is the outgoing interface of the primary path from the first node to the destination node, and the protected node is the primary path of the primary path from the first node to the destination node Next hop.
  • the protected link is the link between the source node S and the destination node D, and the protected node is the destination node D.
  • the source node S establishes a tunnel to node B, which does not go directly through the main path from source node S to node D.
  • the tunnel may be an RSVP-TE tunnel or other types of tunnels, which are not specifically limited in the embodiments of the present application.
  • the process of establishing a tunnel may be that the first node sends a tunnel establishment request to the second node, and the second node sends the tunnel's MPLS TE label to the first node according to the tunnel establishment request.
  • the first node After receiving the MPLS TE label, the first node generates a tunnel interface.
  • the tunnel interface is a logical interface, and it has a mapping relationship with the physical interface.
  • the first node generates a forwarding entry of the first node.
  • the forwarding entry of the first node includes an outgoing interface, and the outgoing interface is a tunnel interface of a tunnel.
  • the first node After generating the tunnel, the first node locally generates the forwarding entry of the first node, and the forwarding entry of the first node is a forwarding entry corresponding to the standby path.
  • the forwarding entry of the first node includes the outgoing interface, and the outgoing interface is the tunnel interface of the tunnel.
  • the forwarding entry of the first node is used to forward the message to the second node when the main path fails, that is, when the first node forwards the message, the message is forwarded to the second node according to the tunnel corresponding to the tunnel interface.
  • the forwarding entry of the first node may be a routing entry for forwarding IP packets, or a label forwarding entry for forwarding MPLS packets.
  • the forwarding entry of the first node may further include a next-hop address, and the next-hop address is the IP address of the second node obtained in advance.
  • the IP address of the second node is used by the first node to look up the address resolution protocol (ARP) table, obtain the media access control (MAC) address, and encapsulate the MAC address in the Ethernet header of the packet .
  • ARP address resolution protocol
  • MAC media access control
  • the first node needs to obtain the IP addresses of all nodes and the neighbor information of each node in the network topology from the source node to the destination node before calculating the Q space.
  • the IP address of the second node If the second node is designated in advance, the first node may obtain the IP address of the second node before generating the routing table entry of the first node. As to how to obtain the IP address of the second node belongs to information known to those skilled in the art, it will not be repeated here.
  • the routing entry of the first node may also include the destination IP address
  • the destination address is the IP address of the destination node.
  • the first node finds the routing table entry corresponding to the standby path according to the IP address of the destination node carried in the packet, and obtains the outgoing interface in the routing table entry, that is, the tunnel interface. Then send the message to the second node through the tunnel corresponding to the tunnel interface.
  • the first node may encapsulate the MPLS TE label of the tunnel on the outer layer of the message.
  • the second node pops up the outer encapsulated label, and then processes the message.
  • the forwarding entry of the first node may include the outgoing label in addition to the outgoing interface.
  • the outgoing label in the label forwarding entry of the first node may include a first label and a second label.
  • the first label is the LDP label from the first node to the second node
  • the second label is the MPLS TE label of the tunnel.
  • the first label can be obtained as follows: the first node establishes a remote LDP session with the second node to receive the first label sent by the second node, that is, the LDP label, and the LDP label is used for the second node pair The message is forwarded. That is, after the first node and the second node establish a remote LDP session, the second node can send the first label to the first node.
  • the process of establishing a session may be that the first node sends the first hello message to the second node through the tunnel. After receiving the first hello message, the second node sends the second hello message to the first node. The second node establishes a remote LDP session.
  • the inner layer of the packet can encapsulate the first label
  • the outer layer of the packet can encapsulate the second label.
  • the second node pops up the outer second label to obtain the first label, and forwards the message according to the first label.
  • the MPLS TE label sent by the second node to the first node is usually different from the MPLS TE label actually received by the first node because Other nodes need to exchange labels.
  • the second node sends the MPLS TE label 1 to the third node.
  • the third node After receiving the MPLS TE label 1, the third node performs label exchange, and exchanges it for MPLS TE label 2, and then sends the first node The node sends the MPLS TE label 2. Therefore, the MPLS TE label received by the first node is MPLS TE label 2, not MPLS TE label 1.
  • the outer label carried in the message sent by the first node is MPLS TE label 2
  • the label is exchanged for the message, that is, in the message Replace the outer label of MPLS with TE label 1, and then send the message carrying MPLS TE label 1 to the second node.
  • the second node pops up the outer MPLS TE label 1, and then forwards the message according to the inner label.
  • the first node can search for the label forwarding entry of the backup path corresponding to the label in the received packet, obtain the corresponding outgoing interface and outgoing label, and remove the packet from the outgoing interface. That is, the tunnel interface is forwarded.
  • the first node establishes a tunnel to the second node that is the Q node, and generates a forwarding entry of the first node according to the tunnel interface of the tunnel, so that the first node can be in the case of a failure of the main path.
  • Switch the traffic to the backup path in time that is, the first node can timely send the packet to the second node through the tunnel corresponding to the tunnel interface, and the second node sends the packet to the destination node.
  • the embodiments of the present application can effectively shorten the traffic switching The time required to reduce business losses. If the first node automatically calculates the Q node as the second node, it can also reduce manual workload and improve the efficiency of generating the forwarding entry of the first node.
  • the second node may send the MPLS TE label of the tunnel to the first node.
  • the second node After the first node establishes a remote LDP session with the second node, the second node generates a first label and sends it to the first node.
  • the first label is an LDP label from the first node to the second node.
  • the second node After generating the first label, the second node may generate the forwarding entry of the second node.
  • the forwarding entry of the second node may also be a routing entry for forwarding IP packets, or a label forwarding entry for forwarding MPLS packets.
  • the routing entry of the second node may include at least the destination IP address, the next hop address, and the outgoing interface.
  • the destination IP address in the routing table entry of the second node is the IP address of the destination node.
  • the next hop address in the second node routing table entry is the IP address of the next hop node in the shortest path from the second node to the destination node.
  • the outgoing interface in the routing entry of the second node is an interface that can forward the packet to the next hop of the second node.
  • the second node After receiving the IP packet forwarded by the first node through the tunnel, the second node searches for the corresponding routing entry according to the destination IP address carried in the IP packet, and obtains the corresponding next hop address and outgoing address in the routing entry Interface, and forward the packet to the next-hop node of the second node according to the next-hop address and the outgoing interface.
  • the outer encapsulated label is popped up, and then according to the destination IP address carried in the packet and the second node Routing table entry forwards the message
  • the label forwarding entry of the second node may include at least an incoming label, an outgoing label, and an outgoing interface.
  • the incoming label is the first label
  • the outgoing label is the LDP label from the second node to the next hop node
  • the outgoing interface is the interface that can forward the packet to the next hop of the second node.
  • the second node After receiving the MPLS packet forwarded by the first node through the tunnel, the second node pops up the outer label of the MPLS packet, that is, the second label. According to the inner label in the MPLS packet, that is, the first label, the label forwarding entry whose second label is the second label is searched, and the outgoing label and the outgoing interface in the label forwarding entry are obtained.
  • the second node replaces the outgoing label in the label forwarding entry with the inner label in the packet, and forwards the packet to the next hop node of the second node according to the outgoing interface in the label forwarding entry.
  • FIG. 3 is a schematic diagram of packet forwarding corresponding to the example shown in FIG.
  • node B is a Q node
  • the intermediate node of the tunnel is node A, that is, the tunnel passes node A.
  • the source node S sends a tunnel establishment request to the node A, and the destination address of the tunnel establishment request is the IP address of the node B.
  • the node A forwards the tunnel establishment request to the node B.
  • Node B generates the MPLS TE label of the tunnel, that is, 46002, and carries the label in the reply message to node A.
  • node A After receiving the response message, node A performs label exchange, that is, the MPLS TE label of the tunnel 46002 in the response message is exchanged to the MPLS TE label 46001 of the tunnel, and forwards the response message carrying the MPLS TE label 46001 of the tunnel Give source node S. At the same time, the node A stores the mapping relationship of the MPLS TE label 46002 of the destination node D tunnel.
  • the source node S can establish a remote LDP session with the node B. After establishing the remote LDP session, the node B sends the source node S the LDP label from the source node S to the node B, that is, 56231.
  • the source node S After establishing the tunnel, the source node S generates a label forwarding entry of the source node S.
  • the label forwarding entry of the source node S includes an outgoing interface and an outgoing label.
  • the outgoing interface is a tunnel interface established by the source node S to the tunnel of node B.
  • the output label includes a first label 56231 and a second label 46001.
  • Node B generates a label forwarding entry for node B.
  • the label forwarding entry for node B includes an incoming label, an outgoing label, and an outgoing interface.
  • the incoming label of the node B label forwarding entry is 56231, the outgoing label is the LDP label from node B to the destination node D, namely 56232; the outgoing interface is the interface connecting the node B and the destination node D.
  • the source node S finds the corresponding outgoing label and outgoing interface according to searching the local label forwarding entry.
  • the source node S encapsulates the LDP label 56231 in the inner layer of the packet, and the outer layer encapsulates the MPLS TE label 46001 in the tunnel, and sends the encapsulated packet out through the tunnel interface.
  • the physical interface corresponding to the tunnel interface is the source node S and the node A physical interface connected.
  • Node A After receiving the message, Node A performs label exchange on the outer label of the message, that is, replaces the outer label of the message with the tunnel's MPLS TE label 46002. Then node A sends the message carrying the tunnel's MPLS TE label 46002 to node B.
  • Node B After receiving the packet, Node B pops up the outer label 46002 of the packet, obtains the inner label 56231, and finds the label forwarding entry with the label 56231.
  • the label forwarding entry includes the outgoing label 56232 and the outgoing interface .
  • Node B then replaces the incoming label of the message with 56232, and sends the message out through the interface connecting node B and destination node D, so that destination node D can receive the message.
  • the source node S establishes a tunnel to the node B, and generates a label forwarding entry of the source node S according to the tunnel interface of the tunnel, that is, a label forwarding entry corresponding to the backup path.
  • the source node S can forward the packet in time according to the label forwarding entry corresponding to the backup path, reducing the time of traffic interruption and the probability of service damage.
  • this figure is a structural block diagram of a forwarding entry generation device provided by an embodiment of the present application.
  • the forwarding entry generation device provided in the embodiment of the present application is applied to a first node, and the first node can implement the function of the first node in the embodiment shown in FIG. 2.
  • the first node is the source node of the main path.
  • the first node includes: a tunnel establishment unit 401 and an entry generation unit 402.
  • the tunnel establishment unit 401 is used to execute S101 in the embodiment shown in FIG. 2, and the entry generation unit 402 is used to execute S102 in the embodiment shown in FIG. 2. specific,
  • the tunnel establishment unit 401 is used to establish a tunnel to a second node.
  • the second node is a Q node belonging to the Q space in the network topology from the source node to the destination node of the main path, and the tunnel does not pass through the main path.
  • the entry generation unit 402 is used to generate a forwarding entry of the first node.
  • the forwarding entry of the first node includes an outgoing interface, and the outgoing interface is a tunnel interface of the tunnel.
  • the forwarding entry of the first node is used when the primary path fails Forward the message to the second node.
  • the forwarding entry of the first node is a routing entry or a label forwarding entry.
  • the forwarding entry of the first node is a routing entry
  • the forwarding entry of the first node also includes a next-hop address
  • the next-hop address is an Internet protocol IP address of the second node obtained in advance.
  • the label forwarding entry of the first node is a label forwarding entry
  • the label forwarding entry also includes an output label
  • the output label includes a first label and a second label.
  • the first label is from the first node to the first The two-node label distribution protocol LDP label
  • the second label is the tunnel's multi-protocol label switching traffic engineering MPLS TE label.
  • the device further includes: a session establishment unit, configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
  • a session establishment unit configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
  • the device further includes: a message sending unit, configured to send a message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label .
  • a message sending unit configured to send a message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label .
  • the second node is the Q node that is closest to or farthest from the first node in Q space.
  • the tunnel is a resource reservation protocol-traffic engineering RSVP-TE tunnel.
  • the message is an IP message or an MPLS message.
  • an embodiment of the present application further provides a forwarding entry generating device 500.
  • the device is a first node, and the device 500 can implement the function of the first node in the embodiment shown in FIG. 2.
  • the device 500 includes a storage unit 501, a processing unit 502, and a communication unit 503,
  • Storage unit 501 for storing instructions
  • the processing unit 502 is configured to execute the instructions in the storage unit 501 and execute the foregoing forwarding entry generation method applied to the first node in the embodiment shown in FIG. 2;
  • the communication unit 503 is used to communicate with the second node.
  • the storage unit 501, the processing unit 502 and the communication unit 503 are connected to each other through a bus 504; the bus 504 may be a peripheral component interconnection (PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) Bus etc.
  • PCI peripheral component interconnection
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the storage unit 501 may be a random-access memory (RAM), flash memory, flash, read-only memory (ROM), erasable programmable read-only memory (erasable programmable read only memory), EPROM), electrically erasable programmable read only memory (electrically erasable programmable read only memory (EEPROM), register (register), hard disk, removable hard disk, CD-ROM or any other form of storage medium known to those skilled in the art.
  • RAM random-access memory
  • ROM read-only memory
  • ROM erasable programmable read-only memory
  • EPROM erasable programmable read only memory
  • EEPROM electrically erasable programmable read only memory
  • register register
  • hard disk removable hard disk
  • CD-ROM any other form of storage medium known to those skilled in the art.
  • the processing unit 502 may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or field programmable Gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, DSP and microprocessor combinations, and so on.
  • the communication unit 503 may be, for example, an interface card or the like, and may be an Ethernet interface or an asynchronous transfer mode (Asynchronous Transfer Mode, ATM) interface.
  • ATM asynchronous Transfer Mode
  • An embodiment of the present application also provides a computer-readable storage medium, including instructions that, when run on a computer, cause the computer to execute the foregoing forwarding entry generation method.
  • An embodiment of the present application further provides a forwarding entry generation system, which includes the first node and the second node provided in the embodiment shown in FIG. 2.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • 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, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium , Including several instructions to enable 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 the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
  • Computer-readable media includes computer storage media and communication media, where communication media includes any medium that facilitates transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

Landscapes

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

Abstract

Embodiments of the present application provide a forwarding entry generation method, apparatus, and device for reducing traffic interruption duration and service loss. The forwarding entry generation method comprises: a first node establishing a tunnel to a second node, the first node being a source node of a main path, and the second node being in a network topology from the source node to a destination node of the main path and being a Q node belonging to a Q space, wherein the tunnel does not pass through the main path; and the first node generating a forwarding entry of the first node, the forwarding entry of the first node comprising an outbound interface, and the outbound interface being a tunnel interface of the tunnel, wherein the forwarding entry of the first node is used to forward a packet to the second node when the main path is faulty.

Description

一种转发表项生成方法、装置及设备Method, device and equipment for generating forwarding entry
本申请要求于2018年12月10日提交中国国家知识产权局、申请号201811504018.X、申请名称为“一种转发表项生成方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the State Intellectual Property Office of China on December 10, 2018, application number 201811504018.X, the application name is "a method, device and equipment for generating forwarding entries", all of its content Incorporated by reference in this application.
技术领域Technical field
本申请涉及网络通信领域,尤其涉及一种转发表项生成方法、装置及设备。The present application relates to the field of network communications, and in particular, to a forwarding entry generation method, device, and equipment.
背景技术Background technique
当网络中链路或者节点失效后,经过这些失效节点到达目的节点的报文可能被丢弃或者形成回环,这样网络中就不可避免地会产生暂态的流量中断或者流量回环现象,直到网络重新收敛计算出新的路径。通常,这样的中断会持续几秒左右。When the link or node in the network fails, the packets that pass through these failed nodes to the destination node may be discarded or form a loopback. In this way, transient traffic interruption or traffic loopback will inevitably occur in the network until the network re-converges Calculate the new path. Usually, such an interruption will last for a few seconds or so.
随着网络规模的扩大,以及新的应用层出不穷,有些应用对流量的中断非常敏感,比如IP电话、流媒体、网游以及远程视频会议等实时业务。这样,当节点失效后,对流量的快速恢复就显得尤其重要。With the expansion of the network scale and the emergence of new applications, some applications are very sensitive to the interruption of traffic, such as real-time services such as IP phones, streaming media, online games and remote video conferencing. In this way, when the node fails, the rapid recovery of traffic becomes particularly important.
为了减小网络中流量中断时间,快速重路由(fast reroute,FRR)技术应运而生。该技术能够预先为主路径计算一条或多条备路径,当主路径上的链路或节点失效后,流量能够快速的被切换到备路径,从而提高网络的可靠性。In order to reduce the interruption time of traffic in the network, fast reroute (FRR) technology came into being. This technology can calculate one or more backup paths in advance for the main path. When the link or node on the main path fails, the traffic can be quickly switched to the backup path, thereby improving the reliability of the network.
快速重路由的核心步骤是针对主路径的源节点计算出到达目的节点的无环备份下一跳(loop free alternate,LFA),如果计算不出无环备份下一跳,则计算源节点到达目的节点的远端无环备份下一跳(remote loop free alternate,R-LFA)。然后根据源节点的无环备份下一跳或远端无环备份下一跳计算得到备路径。The core step of fast rerouting is to calculate the loop-free backup next hop (LFA) to the destination node for the source node of the main path. If the loop-free backup next hop cannot be calculated, the source node reaches the destination The node's remote loop-free backup next-hop (remote loop free alternative, R-LFA). Then, the backup path is calculated according to the next hop of the source node's ring-free backup or the next hop of the remote ring-free backup.
但在一些场景中无法计算出源节点的远端无环备份下一跳,也就无法计算得到备路径,只能按照传统方式在主路径故障之后,重新收敛计算从源节点到目的节点的路径,所以会造成流量的中断以及业务的损失However, in some scenarios, the next hop of the remote loopless backup of the source node cannot be calculated, and the backup path cannot be calculated. The path from the source node to the destination node can only be re-converged after the failure of the main path in the traditional way , So it will cause traffic interruption and business loss
发明内容Summary of the invention
本申请实施例提供了一种转发表项生成方法、装置及设备,用于减少流量中断的时间以及降低业务的损失。Embodiments of the present application provide a forwarding entry generation method, device, and equipment, which are used to reduce the time of traffic interruption and reduce the loss of services.
第一方面,本申请实施例提供了一种转发表项生成方法,该方法可以应用于第一节点,第一节点为主路径的源节点。该方法包括如下步骤:首先,第一节点建立通往第二节点的隧道。其中,第二节点为从源节点到达主路径的目的节点的网络拓扑中属于Q空间(Q-space)的Q节点。例如,第二节点可以是Q空间中与第一节点距离最近或距离最远的Q节点。隧道不经过主路径。隧道的类型例如为资源预留协议-流量工程(resource reservation protocol-traffic engineering,RSVP-TE)隧道。其次,第一节点生成第一节点的转发表项,第一节点的转发表项包括出接口,出接口为隧道的隧道接口,第一节点的转发表项用于在主路径故障时向第二节点转发报文。报文可以是互联网协议(internet protocol,IP)报文或多协议标签交换(multi-protocol label  switching,MPLS)报文等。本申请实施例通过第一节点建立通往作为Q节点的第二节点的隧道,并根据该隧道的隧道接口生成第一节点的转发表项,使得第一节点能够在主路径故障的情况下,及时的将流量切换到备路径,即第一节点能够及时的将报文通过与隧道接口对应的隧道发送给第二节点,由第二节点将报文发送给目的节点。相对于现有的在无法计算出PQ节点时,只能在主路径故障之后重新收敛计算从源节点到目的节点的路径,从而进行报文转发的方案,本申请实施例能够有效缩短流量切换所需要的时间,减少业务的损失。若第一节点自动计算Q节点作为第二节点,则还可以减少人工的工作量,提高第一节点的转发表项的生成效率。In a first aspect, an embodiment of the present application provides a forwarding entry generation method, which can be applied to a first node, and the first node is a source node of a main path. The method includes the following steps: First, the first node establishes a tunnel to the second node. The second node is a Q node that belongs to Q-space in the network topology from the source node to the destination node of the main path. For example, the second node may be the Q node closest or farthest from the first node in Q space. The tunnel does not go through the main path. The type of tunnel is, for example, a resource reservation protocol-resource engineering (reservation protocol-traffic engineering, RSVP-TE) tunnel. Second, the first node generates a forwarding entry of the first node. The forwarding entry of the first node includes an outgoing interface, and the outgoing interface is a tunnel interface of the tunnel. The forwarding entry of the first node is used to send a The node forwards the message. The message may be an internet protocol (IP) message or a multi-protocol label switching (MPLS) message, etc. In the embodiment of the present application, the first node establishes a tunnel to the second node as the Q node, and generates a forwarding entry of the first node according to the tunnel interface of the tunnel, so that the first node can be in the case of a failure of the main path. Switch the traffic to the backup path in time, that is, the first node can timely send the packet to the second node through the tunnel corresponding to the tunnel interface, and the second node sends the packet to the destination node. Compared with the existing solution where the PQ node cannot be calculated, the path from the source node to the destination node can only be re-converged after the failure of the main path, so as to perform packet forwarding, the embodiment of the present application can effectively shorten the traffic switching The time required to reduce business losses. If the first node automatically calculates the Q node as the second node, it can also reduce manual workload and improve the efficiency of generating the forwarding entry of the first node.
在本申请实施例中,第一节点的转发表项可以是用于转发IP报文的路由表项或用于转发MPLS报文的标签转发表项。In the embodiment of the present application, the forwarding entry of the first node may be a routing entry for forwarding IP packets or a label forwarding entry for forwarding MPLS packets.
若第一节点的转发表项为路由表项,则第一节点的转发表项中还包括下一跳地址,下一跳地址为预先获取的第二节点的互联网协议IP地址。下一跳地址为预先获取的第二节点的IP地址。第二节点的IP地址用于第一节点查找地址解析协议(address resolution protocol,ARP)表,获取媒体访问控制(media access control,MAC)地址,并将MAC地址封装在报文的以太网头中。If the forwarding entry of the first node is a routing entry, the forwarding entry of the first node also includes a next-hop address, and the next-hop address is an Internet protocol IP address of the second node obtained in advance. The next hop address is the IP address of the second node acquired in advance. The IP address of the second node is used by the first node to look up the address resolution protocol (ARP) table, obtain the media access control (MAC) address, and encapsulate the MAC address in the Ethernet header of the packet .
若第一节点的转发表项为标签转发表项,则标签转发表项中还包括出标签,出标签包括第一标签和第二标签,第一标签为从第一节点到第二节点的标签分发协议(label distribution protocol,LDP)标签,第二标签为隧道的多协议标签交换MPLS流量工程(traffic engineering,TE)标签。If the forwarding entry of the first node is a label forwarding entry, the label forwarding entry also includes an output label, and the output label includes a first label and a second label, and the first label is a label from the first node to the second node A distribution protocol (label, distribution, LDP) label, and the second label is a multi-protocol label switching MPLS traffic engineering (TE) label for the tunnel.
为了获取第一标签,该方法还包括:第一节点与第二节点建立远端LDP会话,以接收第二节点发送的第一标签。In order to obtain the first label, the method further includes: the first node establishing a remote LDP session with the second node to receive the first label sent by the second node.
可选的,该方法还包括:在主路径故障时,第一节点通过隧道向第二节点发送报文,报文的内层封装第一标签,报文的外层封装第二标签。Optionally, the method further includes: when the main path fails, the first node sends a message to the second node through the tunnel, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label.
第二方面,本申请实施例还提供了一种转发表项生成装置,应用于第一节点,第一节点为主路径的源节点,装置包括:隧道建立单元,用于建立通往第二节点的隧道,第二节点为从源节点到达主路径的目的节点的网络拓扑中属于Q空间的Q节点,隧道不经过主路径;表项生成单元,用于生成第一节点的转发表项,第一节点的转发表项包括出接口,出接口为隧道的隧道接口,第一节点的转发表项用于在主路径故障时向第二节点转发报文。In a second aspect, an embodiment of the present application also provides a forwarding entry generation device, which is applied to a first node, and the first node is a source node of a primary path. The device includes: a tunnel establishment unit, configured to establish a path to the second node The second node is the Q node in the Q space in the network topology from the source node to the destination node of the main path. The tunnel does not pass through the main path; the entry generation unit is used to generate the forwarding entry of the first node. The forwarding entry of a node includes the outgoing interface, and the outgoing interface is the tunnel interface of the tunnel. The forwarding entry of the first node is used to forward the message to the second node when the main path fails.
可选的,第一节点的转发表项为路由表项或标签转发表项。Optionally, the forwarding entry of the first node is a routing entry or a label forwarding entry.
可选的,若第一节点的转发表项为路由表项,则第一节点的转发表项中还包括下一跳地址,下一跳地址为预先获取的第二节点的互联网协议IP地址。Optionally, if the forwarding entry of the first node is a routing entry, the forwarding entry of the first node also includes a next-hop address, and the next-hop address is an Internet protocol IP address of the second node obtained in advance.
可选的,若第一节点的转发表项为标签转发表项,则标签转发表项中还包括出标签,出标签包括第一标签和第二标签,第一标签为从第一节点到第二节点的标签分发协议LDP标签,第二标签为隧道的多协议标签交换流量工程MPLS TE标签。Optionally, if the forwarding entry of the first node is a label forwarding entry, the label forwarding entry also includes an output label, and the output label includes a first label and a second label. The first label is from the first node to the first The two-node label distribution protocol LDP label, the second label is the tunnel's multi-protocol label switching traffic engineering MPLS TE label.
可选的,装置还包括:会话建立单元,用于与第二节点建立远端LDP会话,以接收第二节点发送的第一标签。Optionally, the device further includes: a session establishment unit, configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
可选的,装置还包括:报文发送单元,用于在主路径故障时,通过隧道向第二节点发送报文,报文的内层封装第一标签,报文的外层封装第二标签。Optionally, the device further includes: a message sending unit, configured to send a message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label .
可选的,第二节点为Q空间中与第一节点距离最近或距离最远的Q节点。Optionally, the second node is the Q node that is closest to or farthest from the first node in Q space.
可选的,隧道为资源预留协议-流量工程RSVP-TE隧道。Optionally, the tunnel is a resource reservation protocol-traffic engineering RSVP-TE tunnel.
可选的,报文为IP报文或MPLS报文。Optionally, the message is an IP message or an MPLS message.
第三方面,本申请实施例还提供了一种转发表项生成设备,设备为第一节点,第一节点包括存储单元、处理单元和通信单元,In a third aspect, an embodiment of the present application further provides a forwarding entry generation device, where the device is a first node, and the first node includes a storage unit, a processing unit, and a communication unit,
存储单元,用于存储指令;Storage unit for storing instructions;
处理单元,用于执行存储器中的指令,执行上述转发表项生成方法;The processing unit is configured to execute instructions in the memory and execute the foregoing forwarding entry generation method;
通信单元,用于与第二节点进行通信。The communication unit is used to communicate with the second node.
第四方面,本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述转发表项生成方法。According to a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, including instructions that, when run on a computer, cause the computer to execute the foregoing forwarding entry generation method.
附图说明BRIEF DESCRIPTION
图1为本申请实施例提供的组网的示意图;FIG. 1 is a schematic diagram of a networking provided by an embodiment of this application;
图2为本申请实施例提供的一种转发表项生成方法的流程示意图;2 is a schematic flowchart of a method for generating a forwarding entry provided by an embodiment of this application;
图3为本申请实施例提供的与图1所示示例所对应的报文转发示意图;3 is a schematic diagram of packet forwarding corresponding to the example shown in FIG. 1 provided by an embodiment of the present application;
图4为本申请实施例提供的一种转发表项生成装置的结构框图;4 is a structural block diagram of a forwarding entry generation device provided by an embodiment of the present application;
图5为本申请实施例提供的一种转发表项生成设备的硬件架构图。FIG. 5 is a hardware architecture diagram of a forwarding entry generation device provided by an embodiment of the present application.
具体实施方式detailed description
如前文所提,快速重路由技术的核心步骤是针对主路径的源节点计算出到达目的节点的无环备份下一跳或远端无环备份下一跳。As mentioned above, the core step of fast rerouting technology is to calculate the next hop of the loop-free backup to the destination node or the next hop of the remote loop-free backup for the source node of the main path.
在本申请实施例中,主路径通常为一条路径,备路径可以有一条或多条路径。主路径和备路径是从源节点出发的两条或两条以上的路径。需要说明的是,在本申请实施例中,源节点是指主路径和备路径交汇的起始节点,它有可能是报文转发的初始节点,也有可能不是。对于源节点而言,主路径和备路径对应不同的出接口。目的节点是主路径和备路径交汇的终节点,它有可能是报文转发的终节点,也有可能不是。通常源节点中有两个转发表项,与主路径对应的转发表项用于向主路径的下一跳节点转发报文,与备路径对应的转发表项用于向备路径的下一跳节点转发报文。当主路径正常时,源节点采用与主路径对应的转发表项转发报文;当主路径故障时,源节点采用与备路径对应的转发表项转发报文。In the embodiment of the present application, the main path is usually one path, and the backup path may have one or more paths. The main path and the backup path are two or more paths starting from the source node. It should be noted that, in the embodiment of the present application, the source node refers to the starting node where the main path and the backup path intersect, and it may or may not be the initial node for packet forwarding. For the source node, the main path and the backup path correspond to different outgoing interfaces. The destination node is the end node where the main path and the backup path intersect. It may or may not be the end node for packet forwarding. Usually there are two forwarding entries in the source node. The forwarding entry corresponding to the main path is used to forward the message to the next hop node of the main path, and the forwarding entry corresponding to the standby path is used to the next hop of the standby path. The node forwards the message. When the main path is normal, the source node uses the forwarding entry corresponding to the main path to forward the message; when the main path fails, the source node uses the forwarding entry corresponding to the standby path to forward the message.
若要计算备路径,可以首先计算从源节点到目的节点的LFA。LFA需要满足的条件是:cost(N→D)<cost(N→S)+cost(S→D),其中,S是源节点,D是目的节点,N是源节点的LFA,cost(N→D)是指从N到D最短路径的链路开销,cost(N→S)是指从N到S最短路径的链路开销,cost(S→D)是指从S到D最短路径的链路开销。To calculate the backup path, you can first calculate the LFA from the source node to the destination node. The conditions that LFA needs to meet are: cost(N→D)<cost(N→S)+cost(S→D), where S is the source node, D is the destination node, and N is the LFA of the source node, cost(N →D) refers to the link cost of the shortest path from N to D, cost(N→S) refers to the link cost of the shortest path from N to S, and cost(S→D) refers to the shortest path from S to D Link cost.
举个例子,参见图1,该图为组网的示意图。在该组网中,包括源节点S、目的节点D以及与源节点S直连的节点A和与目的节点直连的节点B,其中,源节点S与目的节点D直接连接,节点A和节点B直接连接。主路径为源节点S到目的节点D的路径。For example, see Figure 1, which is a schematic diagram of networking. In this network, it includes source node S, destination node D, node A directly connected to source node S and node B directly connected to destination node, where source node S is directly connected to destination node D, node A and node B is directly connected. The main path is the path from the source node S to the destination node D.
源节点S与目的节点D之间的链路开销为10,源节点S与节点A之间的链路开 销为10,节点A与节点B之间的链路开销为100,节点B与目的节点D之间的链路开销为10。所以,源节点S的邻居节点A到目的节点D的最短路径为:节点A→源节点S→目的节点D,cost(A→D)=cost(A→S)+cost(S→D)=20。而cost(A→S)=10,The link cost between source node S and destination node D is 10, the link cost between source node S and node A is 10, the link cost between node A and node B is 100, and node B and destination node The link overhead between D is 10. Therefore, the shortest path from the neighbor node A of the source node S to the destination node D is: node A→source node S→destination node D, cost(A→D)=cost(A→S)+cost(S→D)= 20. And cost(A→S)=10,
cost(S→D)=10,所以cost(A→D)=cost(A→S)+cost(S→D),不满足LFA的条件,也就说明节点A不能作为源节点S的LFA。cost(S→D)=10, so cost(A→D)=cost(A→S)+cost(S→D), the condition of LFA is not satisfied, which means that node A cannot be the LFA of source node S.
如果无法计算出LFA,则可以计算R-LFA。计算R-LFA的方法是计算从源节点到目的节点之间的网络拓扑的PQ节点。所谓PQ节点是指同时属于P空间(P-space)和Q空间的节点。P空间是指以源节点为根节点建立最短路径树,所有从根节点不经过主路径可达的节点集合。Q空间是指以目的节点为根节点建立反向最短路径树,所有从根节点不经过主路径可达的节点的集合。If LFA cannot be calculated, R-LFA can be calculated. The method of calculating R-LFA is to calculate the PQ nodes of the network topology from the source node to the destination node. The so-called PQ node refers to a node that belongs to both P space (P-space) and Q space. P-space refers to the set of shortest path trees with the source node as the root node, and all slave root nodes reachable without going through the main path. The Q space refers to the set of reverse shortest path trees with the destination node as the root node, and all slave nodes reachable without going through the main path.
以图1为例,属于P空间的P节点包括节点A,属于Q空间的Q节点包括节点B,P空间和Q空间没有交集,所以无法得到PQ节点,即无法计算出R-LFA。Taking Figure 1 as an example, the P node belonging to the P space includes node A, and the Q node belonging to the Q space includes node B. There is no intersection between the P space and the Q space, so the PQ node cannot be obtained, that is, the R-LFA cannot be calculated.
在此情况下,现有技术只能按照传统的方式,当从源节点S到目的节点D的主路径发生故障之后,重新收敛计算从源节点到目的节点的路径,以通过该重新计算的路径转发报文。这个过程需要较长的时间,可能会造成流量的中断及业务的损失。In this case, the prior art can only follow the traditional way, when the main path from the source node S to the destination node D fails, the path from the source node to the destination node is re-converged to pass the recalculated path Forward the message. This process takes a long time and may cause traffic interruption and business loss.
为了解决上述技术问题,本申请实施例提供了一种转发表项生成方法、装置及设备,能够在算不出PQ节点时,仍然能够实现快速的切换到备路径进行报文转发,减少流量中断的现象以及降低业务损失的目的。In order to solve the above technical problems, the embodiments of the present application provide a forwarding entry generation method, device, and equipment, which can still quickly switch to a standby path for packet forwarding when PQ nodes are not calculated, reducing traffic interruption And the purpose of reducing business losses.
下面结合附图对本申请的技术方案进行详细介绍。The technical solution of the present application will be described in detail below with reference to the drawings.
参见图2,该图为本申请实施例提供的一种转发表项生成方法的流程示意图,该方法可以应用于第一节点,第一节点可以为主路径的源节点,也就是备路径的源节点。第一节点可以是路由器、交换机或软件定义网络(software defined network,SDN)控制器等设备。Referring to FIG. 2, this figure is a schematic flowchart of a method for generating a forwarding entry provided by an embodiment of the present application. The method may be applied to a first node, and the first node may be a source node of a main path, that is, a source of a backup path node. The first node may be a device such as a router, a switch, or a software defined network (SDN) controller.
该转发表项生成方法包括如下步骤:The forwarding table entry generation method includes the following steps:
S101:第一节点建立通往第二节点的隧道。S101: The first node establishes a tunnel to the second node.
在本申请实施例中,第二节点为从源节点到达主路径的目的节点的网络拓扑中属于Q空间的Q节点。以图1为例,Q节点为节点B。由于Q节点到目的节点不经过主路径,所以将Q节点作为第一节点的无环备份下一跳节点,能够保证当主路径故障之后,源节点可以通过经过Q节点到达目的节点的备路径实现报文的转发。In the embodiment of the present application, the second node is a Q node belonging to the Q space in the network topology from the source node to the destination node of the main path. Taking Figure 1 as an example, the Q node is Node B. Since the Q node to the destination node does not pass through the main path, the Q node is used as the first node's acyclic backup next hop node, which can ensure that after the main path fails, the source node can report through the backup path through the Q node to the destination node. Forwarding of text.
在实际应用中,Q节点可以是第一节点自动计算的,也可以是指定的。若Q空间包括多个Q节点,可以从多个Q节点中选出一个Q节点作为第二节点。例如,可以从多个Q节点中选择出与第一节点距离最近的节点或距离最远的节点作为第二节点。具体的,第一节点可以计算多个Q节点与第一节点之间的距离,然后根据多个Q节点与第一节点之间的距离,确定出与第一节点距离最近或最远的节点作为第二节点。当然,选择第二节点还可以依据其他规则,本申请实施例不做具体限定。In practical applications, the Q node may be automatically calculated by the first node, or may be designated. If the Q space includes multiple Q nodes, one Q node can be selected from the multiple Q nodes as the second node. For example, the node closest to the first node or the node farthest from the first node may be selected as the second node from the plurality of Q nodes. Specifically, the first node may calculate the distance between the multiple Q nodes and the first node, and then determine the node that is closest to or farthest from the first node according to the distance between the multiple Q nodes and the first node. The second node. Of course, the selection of the second node may also be based on other rules, which are not specifically limited in the embodiments of the present application.
在本申请实施例中,第二节点可以是路由器、交换机或软件定义网络(software defined network,SDN)控制器等设备。In the embodiment of the present application, the second node may be a device such as a router, a switch, or a software defined network (software defined network, SDN) controller.
根据Q空间的定义可知,第二节点是第一节点的非邻居节点,所以,为了能让第二节点作为第一节点的无环备份下一跳,第一节点需要建立到第二节点的隧道,且隧 道不经过主路径,否则当主路径故障时,备路径也无法工作。具体的,第一节点排除被保护链路和被保护节点建立隧道,被保护链路为第一节点到目的节点的主路径的出接口,被保护节点为第一节点到目的节点的主路径的下一跳。以图1为例,被保护链路为源节点S和目的节点D之间的链路,被保护节点为目的节点D。源节点S建立通往节点B的隧道,该隧道不经过从源节点S直接到节点D的主路径。According to the definition of Q space, the second node is a non-neighbor node of the first node, so in order for the second node to be the next hop of the first node's acyclic backup, the first node needs to establish a tunnel to the second node , And the tunnel does not go through the main path, otherwise the backup path will not work when the main path fails. Specifically, the first node excludes the establishment of a tunnel between the protected link and the protected node, the protected link is the outgoing interface of the primary path from the first node to the destination node, and the protected node is the primary path of the primary path from the first node to the destination node Next hop. Taking FIG. 1 as an example, the protected link is the link between the source node S and the destination node D, and the protected node is the destination node D. The source node S establishes a tunnel to node B, which does not go directly through the main path from source node S to node D.
其中,隧道可以是RSVP-TE隧道或其他类型的隧道,本申请实施例不做具体限定。The tunnel may be an RSVP-TE tunnel or other types of tunnels, which are not specifically limited in the embodiments of the present application.
以隧道为RSVP-TE隧道为例,建立隧道的过程可以是:第一节点向第二节点发送隧道建立请求,第二节点根据隧道建立请求向第一节点发送隧道的MPLS TE标签。第一节点在接收到MPLS TE标签之后,生成隧道接口。隧道接口为逻辑接口,它和物理接口具有映射关系。在转发报文时,先在报文的外层封装MPLS TE标签,然后通过与隧道接口对应的物理接口转发该报文。Taking the tunnel as an RSVP-TE tunnel as an example, the process of establishing a tunnel may be that the first node sends a tunnel establishment request to the second node, and the second node sends the tunnel's MPLS TE label to the first node according to the tunnel establishment request. After receiving the MPLS TE label, the first node generates a tunnel interface. The tunnel interface is a logical interface, and it has a mapping relationship with the physical interface. When forwarding a packet, first encapsulate the MPLS TE label on the outer layer of the packet, and then forward the packet through the physical interface corresponding to the tunnel interface.
S102:第一节点生成第一节点的转发表项,第一节点的转发表项包括出接口,出接口为隧道的隧道接口。S102: The first node generates a forwarding entry of the first node. The forwarding entry of the first node includes an outgoing interface, and the outgoing interface is a tunnel interface of a tunnel.
第一节点在生成隧道之后,本地生成第一节点的转发表项,第一节点的该转发表项为与备路径对应的转发表项。第一节点的转发表项包括出接口,出接口是隧道的隧道接口。第一节点的转发表项用于在主路径故障时向第二节点转发报文,也就是说,当第一节点转发报文时,根据隧道接口对应的隧道向第二节点转发报文。After generating the tunnel, the first node locally generates the forwarding entry of the first node, and the forwarding entry of the first node is a forwarding entry corresponding to the standby path. The forwarding entry of the first node includes the outgoing interface, and the outgoing interface is the tunnel interface of the tunnel. The forwarding entry of the first node is used to forward the message to the second node when the main path fails, that is, when the first node forwards the message, the message is forwarded to the second node according to the tunnel corresponding to the tunnel interface.
在本申请实施例中,第一节点的转发表项可以是用于转发IP报文的路由表项,也可以是用于转发MPLS报文的标签转发表项。In the embodiment of the present application, the forwarding entry of the first node may be a routing entry for forwarding IP packets, or a label forwarding entry for forwarding MPLS packets.
如果第一节点的转发表项是用于转发IP的路由表项,则第一节点的转发表项中还可以包括下一跳地址,下一跳地址为预先获取的第二节点的IP地址。第二节点的IP地址用于第一节点查找地址解析协议(address resolution protocol,ARP)表,获取媒体访问控制(media access control,MAC)地址,并将MAC地址封装在报文的以太网头中。If the forwarding entry of the first node is a routing entry for forwarding IP, the forwarding entry of the first node may further include a next-hop address, and the next-hop address is the IP address of the second node obtained in advance. The IP address of the second node is used by the first node to look up the address resolution protocol (ARP) table, obtain the media access control (MAC) address, and encapsulate the MAC address in the Ethernet header of the packet .
若第二节点是第一节点计算得到的,那么第一节点在计算Q空间之前就需要获取从源节点到目的节点的网络拓扑中所有节点的IP地址和各个节点的邻居信息,这其中就包括第二节点的IP地址。若第二节点是被预先指定的,那么可以在生成第一节点的路由表项之前,第一节点获取第二节点的IP地址。至于如何获取第二节点的IP地址是属于本领域技术人员均知晓的信息,此处不再赘述。If the second node is calculated by the first node, then the first node needs to obtain the IP addresses of all nodes and the neighbor information of each node in the network topology from the source node to the destination node before calculating the Q space. The IP address of the second node. If the second node is designated in advance, the first node may obtain the IP address of the second node before generating the routing table entry of the first node. As to how to obtain the IP address of the second node belongs to information known to those skilled in the art, it will not be repeated here.
除了下一跳地址和出接口外,若第一节点的路由表项还可以包括目的IP地址,目的地址为目的节点的IP地址。当主路径故障之后,第一节点根据报文中携带的目的节点的IP地址找到与备路径对应的路由表项,获取路由表项中的出接口,即隧道接口。然后通过与隧道接口对应的隧道向第二节点发送该报文。In addition to the next hop address and the outgoing interface, if the routing entry of the first node may also include the destination IP address, the destination address is the IP address of the destination node. After the main path fails, the first node finds the routing table entry corresponding to the standby path according to the IP address of the destination node carried in the packet, and obtains the outgoing interface in the routing table entry, that is, the tunnel interface. Then send the message to the second node through the tunnel corresponding to the tunnel interface.
在向第二节点发送报文时,第一节点可以在报文外层封装隧道的MPLS TE标签。在第二节点接收到该报文之后,弹出外层封装的标签,然后对报文进行处理。When sending a message to the second node, the first node may encapsulate the MPLS TE label of the tunnel on the outer layer of the message. After receiving the message, the second node pops up the outer encapsulated label, and then processes the message.
如果第一节点的转发表项是用于转发MPLS报文的标签转发表项,则第一节点的转发表项中除了出接口以外,还可以包括出标签。在本申请实施例中,第一节点的标签转发表项中的出标签可以包括第一标签和第二标签。第一标签为从第一节点到第二节点的LDP标签,第二标签为隧道的MPLS TE标签。If the forwarding entry of the first node is a label forwarding entry for forwarding MPLS packets, the forwarding entry of the first node may include the outgoing label in addition to the outgoing interface. In the embodiment of the present application, the outgoing label in the label forwarding entry of the first node may include a first label and a second label. The first label is the LDP label from the first node to the second node, and the second label is the MPLS TE label of the tunnel.
其中,第一标签可以通过如下方式获得:第一节点与第二节点建立远端LDP会话(session),以接收第二节点发送的第一标签,即LDP标签,LDP标签用于第二节点对报文进行转发。也就是说,在第一节点和第二节点建立了远端LDP会话之后,第二节点就可以向第一节点发送第一标签。建立会话的过程可以是第一节点通过隧道向第二节点发送第一hello消息,第二节点在接收到第一hello消息之后,向第一节点发送第二hello消息,这样,第一节点就与第二节点建立了远端LDP会话。Among them, the first label can be obtained as follows: the first node establishes a remote LDP session with the second node to receive the first label sent by the second node, that is, the LDP label, and the LDP label is used for the second node pair The message is forwarded. That is, after the first node and the second node establish a remote LDP session, the second node can send the first label to the first node. The process of establishing a session may be that the first node sends the first hello message to the second node through the tunnel. After receiving the first hello message, the second node sends the second hello message to the first node. The second node establishes a remote LDP session.
当第一节点通过隧道向第二节点发送MPLS报文时,报文的内层可以封装第一标签,报文的外层可以封装第二标签。那么第二节点在接收到报文之后,弹出外层的第二标签,得到第一标签,并根据第一标签进行报文转发。When the first node sends an MPLS packet to the second node through the tunnel, the inner layer of the packet can encapsulate the first label, and the outer layer of the packet can encapsulate the second label. Then, after receiving the message, the second node pops up the outer second label to obtain the first label, and forwards the message according to the first label.
需要说明的是,若隧道经过除第一节点和第二节点之外的其他节点,则第二节点向第一节点发送的MPLS TE标签与第一节点实际接收到的MPLS TE标签通常不同,因为其他节点需要进行标签交换。例如,假设隧道经过第三节点,那么第二节点向第三节点发送MPLS TE标签1,第三节点在接收到MPLS TE标签1之后,进行标签交换,交换为MPLS TE标签2,然后向第一节点发送MPLS TE标签2。所以第一节点接收到的MPLS TE标签为MPLS TE标签2,而不是MPLS TE标签1。同样,在转发报文时,第一节点发出的报文中携带的外层标签为MPLS TE标签2,在第三节点接收到MPLS TE标签2之后,对报文进行标签交换,即将报文中的外层标签替换为MPLS TE标签1,然后将携带有MPLS TE标签1的报文发送给第二节点。第二节点在接收到携带有外层MPLS TE标签1的报文之后,弹出外层的MPLS TE标签1,然后根据内层标签进行报文转发。It should be noted that if the tunnel passes other nodes than the first node and the second node, the MPLS TE label sent by the second node to the first node is usually different from the MPLS TE label actually received by the first node because Other nodes need to exchange labels. For example, assuming that the tunnel passes through the third node, the second node sends the MPLS TE label 1 to the third node. After receiving the MPLS TE label 1, the third node performs label exchange, and exchanges it for MPLS TE label 2, and then sends the first node The node sends the MPLS TE label 2. Therefore, the MPLS TE label received by the first node is MPLS TE label 2, not MPLS TE label 1. Similarly, when forwarding the message, the outer label carried in the message sent by the first node is MPLS TE label 2, and after the third node receives the MPLS TE label 2, the label is exchanged for the message, that is, in the message Replace the outer label of MPLS with TE label 1, and then send the message carrying MPLS TE label 1 to the second node. After receiving the message carrying the outer MPLS TE label 1, the second node pops up the outer MPLS TE label 1, and then forwards the message according to the inner label.
除了出接口和出标签以外,第一节点的标签转发表项中还可以有入标签。当主路径故障后,第一节点可以查找入标签为接收到的报文中的标签所对应的备路径的标签转发表项,得到对应的出接口和出标签,并将报文从该出接口,即隧道接口转发出去。In addition to the outgoing interface and the outgoing label, there may be an incoming label in the label forwarding entry of the first node. When the main path fails, the first node can search for the label forwarding entry of the backup path corresponding to the label in the received packet, obtain the corresponding outgoing interface and outgoing label, and remove the packet from the outgoing interface. That is, the tunnel interface is forwarded.
本申请实施例通过第一节点建立通往作为Q节点的第二节点的隧道,并根据该隧道的隧道接口生成第一节点的转发表项,使得第一节点能够在主路径故障的情况下,及时的将流量切换到备路径,即第一节点能够及时的将报文通过与隧道接口对应的隧道发送给第二节点,由第二节点将报文发送给目的节点。相对于现有的在无法计算出PQ节点时,只能在主路径故障之后重新收敛计算从源节点到目的节点的路径,从而进行报文转发的方案,本申请实施例能够有效缩短流量切换所需要的时间,减少业务的损失。若第一节点自动计算Q节点作为第二节点,则还可以减少人工的工作量,提高第一节点的转发表项的生成效率。In the embodiment of the present application, the first node establishes a tunnel to the second node that is the Q node, and generates a forwarding entry of the first node according to the tunnel interface of the tunnel, so that the first node can be in the case of a failure of the main path. Switch the traffic to the backup path in time, that is, the first node can timely send the packet to the second node through the tunnel corresponding to the tunnel interface, and the second node sends the packet to the destination node. Compared with the existing solution where the PQ node cannot be calculated, the path from the source node to the destination node can only be re-converged after the failure of the main path to calculate the packet forwarding, the embodiments of the present application can effectively shorten the traffic switching The time required to reduce business losses. If the first node automatically calculates the Q node as the second node, it can also reduce manual workload and improve the efficiency of generating the forwarding entry of the first node.
以上都是从第一节点的角度来介绍本申请实施例提供的技术方案,下面以第二节点的角度来介绍。The above are the technical solutions provided by the embodiments of the present application from the perspective of the first node, and the following is the perspective of the second node.
第二节点在接收到第一节点发送的隧道建立请求,并生成隧道的MPLS TE标签之后,可以向第一节点发送隧道的MPLS TE标签。After receiving the tunnel establishment request sent by the first node and generating the MPLS TE label of the tunnel, the second node may send the MPLS TE label of the tunnel to the first node.
可选的,在第一节点与第二节点建立远端LDP会话之后,第二节点生成第一标签并向第一节点发送,第一标签为从第一节点到第二节点的LDP标签。在生成第一标签之后,第二节点可以生成第二节点的转发表项。Optionally, after the first node establishes a remote LDP session with the second node, the second node generates a first label and sends it to the first node. The first label is an LDP label from the first node to the second node. After generating the first label, the second node may generate the forwarding entry of the second node.
同第一节点相似,第二节点的转发表项也可以是用于转发IP报文的路由表项,或者是用于转发MPLS报文的标签转发表项。Similar to the first node, the forwarding entry of the second node may also be a routing entry for forwarding IP packets, or a label forwarding entry for forwarding MPLS packets.
如果第二节点的转发表项是路由表项,那么第二节点的路由表项中可以至少包括目的IP地址、下一跳地址和出接口。其中,第二节点路由表项中的目的IP地址为目的节点的IP地址。第二节点路由表项中的下一跳地址为从第二节点到目的节点最短路径中下一跳节点的IP地址。第二节点路由表项中的出接口为能够将报文转发到第二节点下一跳的接口。If the forwarding entry of the second node is a routing entry, the routing entry of the second node may include at least the destination IP address, the next hop address, and the outgoing interface. The destination IP address in the routing table entry of the second node is the IP address of the destination node. The next hop address in the second node routing table entry is the IP address of the next hop node in the shortest path from the second node to the destination node. The outgoing interface in the routing entry of the second node is an interface that can forward the packet to the next hop of the second node.
当第二节点接收到第一节点通过隧道转发过来的IP报文之后,根据IP报文中携带的目的IP地址查找对应的路由表项,并获取路由表项中对应的下一跳地址和出接口,并根据下一跳地址和出接口将报文转发给第二节点的下一跳节点。After receiving the IP packet forwarded by the first node through the tunnel, the second node searches for the corresponding routing entry according to the destination IP address carried in the IP packet, and obtains the corresponding next hop address and outgoing address in the routing entry Interface, and forward the packet to the next-hop node of the second node according to the next-hop address and the outgoing interface.
当第一节点在报文外层封装了隧道的MPLS TE标签,那么在第二节点接收到该报文之后,弹出外层封装的标签,然后根据报文中携带的目的IP地址以及第二节点的路由表项转发该报文When the first node encapsulates the MPLS TE label of the tunnel in the outer layer of the packet, after the second node receives the packet, the outer encapsulated label is popped up, and then according to the destination IP address carried in the packet and the second node Routing table entry forwards the message
如果第二节点的转发表项是标签转发表项,那么第二节点的标签转发表项中可以至少包括入标签、出标签和出接口。其中的入标签为第一标签,出标签为从第二节点到下一跳节点的LDP标签,出接口为能够将报文转发到第二节点下一跳的接口。If the forwarding entry of the second node is a label forwarding entry, the label forwarding entry of the second node may include at least an incoming label, an outgoing label, and an outgoing interface. The incoming label is the first label, the outgoing label is the LDP label from the second node to the next hop node, and the outgoing interface is the interface that can forward the packet to the next hop of the second node.
当第二节点接收到第一节点通过隧道转发过来的MPLS报文之后,弹出MPLS报文的外层标签,即第二标签。并根据MPLS报文中的内层标签,即第一标签,查找入标签为第二标签的标签转发表项,并获取该标签转发表项中的出标签和出接口。第二节点将标签转发表项中的出标签替换掉报文中的内层标签,并根据标签转发表项中的出接口将报文转发给第二节点的下一跳节点。After receiving the MPLS packet forwarded by the first node through the tunnel, the second node pops up the outer label of the MPLS packet, that is, the second label. According to the inner label in the MPLS packet, that is, the first label, the label forwarding entry whose second label is the second label is searched, and the outgoing label and the outgoing interface in the label forwarding entry are obtained. The second node replaces the outgoing label in the label forwarding entry with the inner label in the packet, and forwards the packet to the next hop node of the second node according to the outgoing interface in the label forwarding entry.
下面结合图1所示的应用场景对本申请的技术方案进行详细介绍。The technical solution of the present application will be described in detail in conjunction with the application scenario shown in FIG. 1 below.
参见图3,该图为与图1所示示例所对应的报文转发示意图。由于节点B为Q节点,所以可以从源节点S建立到节点B的隧道,该隧道的中间节点为节点A,即隧道经过节点A。在建立隧道时,源节点S向节点A发送隧道建立请求,隧道建立请求的目的地址是节点B的IP地址。节点A在接收到隧道建立请求之后,将隧道建立请求转发给节点B。节点B生成隧道的MPLS TE标签,即46002,并将该标签携带在应答报文中发送给节点A。节点A在接收到应答报文之后,进行标签交换,即将应答报文中的隧道的MPLS TE标签46002交换为隧道的MPLS TE标签46001,并将携带有隧道的MPLS TE标签46001的应答报文转发给源节点S。同时,节点A存储目的节点D隧道的MPLS TE标签46002的映射关系。Refer to FIG. 3, which is a schematic diagram of packet forwarding corresponding to the example shown in FIG. Since node B is a Q node, a tunnel can be established from source node S to node B. The intermediate node of the tunnel is node A, that is, the tunnel passes node A. When establishing a tunnel, the source node S sends a tunnel establishment request to the node A, and the destination address of the tunnel establishment request is the IP address of the node B. After receiving the tunnel establishment request, the node A forwards the tunnel establishment request to the node B. Node B generates the MPLS TE label of the tunnel, that is, 46002, and carries the label in the reply message to node A. After receiving the response message, node A performs label exchange, that is, the MPLS TE label of the tunnel 46002 in the response message is exchanged to the MPLS TE label 46001 of the tunnel, and forwards the response message carrying the MPLS TE label 46001 of the tunnel Give source node S. At the same time, the node A stores the mapping relationship of the MPLS TE label 46002 of the destination node D tunnel.
源节点S可以与节点B建立远端LDP会话,在建立远端LDP会话之后,节点B向源节点S发送源节点S到节点B的LDP标签,即56231。The source node S can establish a remote LDP session with the node B. After establishing the remote LDP session, the node B sends the source node S the LDP label from the source node S to the node B, that is, 56231.
源节点S在建立隧道之后生成源节点S的标签转发表项,源节点S的标签转发表项中包括出接口和出标签。其中,出接口为源节点S建立的通往节点B的隧道的隧道接口。出标签包括第一标签56231和第二标签46001。节点B生成节点B的标签转发表项,节点B的标签转发表项中包括入标签、出标签和出接口。其中节点B标签转发表项的入标签为56231,出标签为节点B到目的节点D的LDP标签,即56232;出接 口为节点B与目的节点D相连接的接口。After establishing the tunnel, the source node S generates a label forwarding entry of the source node S. The label forwarding entry of the source node S includes an outgoing interface and an outgoing label. The outgoing interface is a tunnel interface established by the source node S to the tunnel of node B. The output label includes a first label 56231 and a second label 46001. Node B generates a label forwarding entry for node B. The label forwarding entry for node B includes an incoming label, an outgoing label, and an outgoing interface. The incoming label of the node B label forwarding entry is 56231, the outgoing label is the LDP label from node B to the destination node D, namely 56232; the outgoing interface is the interface connecting the node B and the destination node D.
当从源节点S到目的节点D的主路径故障之后,源节点S根据查找本地标签转发表项,找到对应的出标签和出接口。源节点S在报文的内层封装LDP标签56231,外层封装隧道的MPLS TE标签46001,并将封装好的报文通过隧道接口发送出去,该隧道接口对应的物理接口为源节点S与节点A连接的物理接口。When the main path from the source node S to the destination node D fails, the source node S finds the corresponding outgoing label and outgoing interface according to searching the local label forwarding entry. The source node S encapsulates the LDP label 56231 in the inner layer of the packet, and the outer layer encapsulates the MPLS TE label 46001 in the tunnel, and sends the encapsulated packet out through the tunnel interface. The physical interface corresponding to the tunnel interface is the source node S and the node A physical interface connected.
当节点A接收到报文之后,对报文的外层标签进行标签交换,即将报文的外层标签替换为隧道的MPLS TE标签46002。然后节点A将携带有隧道的MPLS TE标签46002的报文发送给节点B。After receiving the message, Node A performs label exchange on the outer label of the message, that is, replaces the outer label of the message with the tunnel's MPLS TE label 46002. Then node A sends the message carrying the tunnel's MPLS TE label 46002 to node B.
节点B在接收到报文之后,弹出报文的外层标签46002,获取到内层标签56231,并查找入标签为56231的标签转发表项,该标签转发表项中包括出标签56232和出接口。然后节点B将报文的入标签替换为56232,并通过节点B与目的节点D相连接的接口把报文发送出去,以使目的节点D能够接收到报文。After receiving the packet, Node B pops up the outer label 46002 of the packet, obtains the inner label 56231, and finds the label forwarding entry with the label 56231. The label forwarding entry includes the outgoing label 56232 and the outgoing interface . Node B then replaces the incoming label of the message with 56232, and sends the message out through the interface connecting node B and destination node D, so that destination node D can receive the message.
在上述方案中,源节点S通过建立通往节点B的隧道,并根据隧道的隧道接口生成源节点S的标签转发表项,也就是与备路径对应的标签转发表项。当主路径出现故障之后,源节点S能够根据与备路径对应的标签转发表项及时的将报文转发出去,降低流量中断的时间以及业务受损的概率。In the above solution, the source node S establishes a tunnel to the node B, and generates a label forwarding entry of the source node S according to the tunnel interface of the tunnel, that is, a label forwarding entry corresponding to the backup path. When the main path fails, the source node S can forward the packet in time according to the label forwarding entry corresponding to the backup path, reducing the time of traffic interruption and the probability of service damage.
参见图4,该图为本申请实施例提供的一种转发表项生成装置的结构框图。Referring to FIG. 4, this figure is a structural block diagram of a forwarding entry generation device provided by an embodiment of the present application.
本申请实施例提供的转发表项生成装置,应用于第一节点,该第一节点可以实现图2所示实施例中第一节点的功能。该第一节点为主路径的源节点,第一节点包括:隧道建立单元401和表项生成单元402。其中,隧道建立单元401用于执行图2所示实施例中的S101,表项生成单元402用于执行图2所示实施例中的S102。具体的,The forwarding entry generation device provided in the embodiment of the present application is applied to a first node, and the first node can implement the function of the first node in the embodiment shown in FIG. 2. The first node is the source node of the main path. The first node includes: a tunnel establishment unit 401 and an entry generation unit 402. The tunnel establishment unit 401 is used to execute S101 in the embodiment shown in FIG. 2, and the entry generation unit 402 is used to execute S102 in the embodiment shown in FIG. 2. specific,
隧道建立单元401,用于建立通往第二节点的隧道,第二节点为从源节点到达主路径的目的节点的网络拓扑中属于Q空间的Q节点,隧道不经过主路径。The tunnel establishment unit 401 is used to establish a tunnel to a second node. The second node is a Q node belonging to the Q space in the network topology from the source node to the destination node of the main path, and the tunnel does not pass through the main path.
表项生成单元402,用于生成第一节点的转发表项,第一节点的转发表项包括出接口,出接口为隧道的隧道接口,第一节点的转发表项用于在主路径故障时向第二节点转发报文。The entry generation unit 402 is used to generate a forwarding entry of the first node. The forwarding entry of the first node includes an outgoing interface, and the outgoing interface is a tunnel interface of the tunnel. The forwarding entry of the first node is used when the primary path fails Forward the message to the second node.
可选的,第一节点的转发表项为路由表项或标签转发表项。Optionally, the forwarding entry of the first node is a routing entry or a label forwarding entry.
可选的,若第一节点的转发表项为路由表项,则第一节点的转发表项中还包括下一跳地址,下一跳地址为预先获取的第二节点的互联网协议IP地址。Optionally, if the forwarding entry of the first node is a routing entry, the forwarding entry of the first node also includes a next-hop address, and the next-hop address is an Internet protocol IP address of the second node obtained in advance.
可选的,若第一节点的转发表项为标签转发表项,则标签转发表项中还包括出标签,出标签包括第一标签和第二标签,第一标签为从第一节点到第二节点的标签分发协议LDP标签,第二标签为隧道的多协议标签交换流量工程MPLS TE标签。Optionally, if the forwarding entry of the first node is a label forwarding entry, the label forwarding entry also includes an output label, and the output label includes a first label and a second label. The first label is from the first node to the first The two-node label distribution protocol LDP label, the second label is the tunnel's multi-protocol label switching traffic engineering MPLS TE label.
可选的,装置还包括:会话建立单元,用于与第二节点建立远端LDP会话,以接收第二节点发送的第一标签。Optionally, the device further includes: a session establishment unit, configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
可选的,装置还包括:报文发送单元,用于在主路径故障时,通过隧道向第二节点发送报文,报文的内层封装第一标签,报文的外层封装第二标签。Optionally, the device further includes: a message sending unit, configured to send a message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the second label .
可选的,第二节点为Q空间中与第一节点距离最近或距离最远的Q节点。Optionally, the second node is the Q node that is closest to or farthest from the first node in Q space.
可选的,隧道为资源预留协议-流量工程RSVP-TE隧道。Optionally, the tunnel is a resource reservation protocol-traffic engineering RSVP-TE tunnel.
可选的,报文为IP报文或MPLS报文。Optionally, the message is an IP message or an MPLS message.
参见图5,本申请实施例还提供了一种转发表项生成设备500,设备为第一节点,设备500可以实现图2所示实施例中第一节点的功能。设备500包括存储单元501、处理单元502和通信单元503,Referring to FIG. 5, an embodiment of the present application further provides a forwarding entry generating device 500. The device is a first node, and the device 500 can implement the function of the first node in the embodiment shown in FIG. 2. The device 500 includes a storage unit 501, a processing unit 502, and a communication unit 503,
存储单元501,用于存储指令; Storage unit 501 for storing instructions;
处理单元502,用于执行存储单元501中的指令,执行上述应用于图2所示实施例中第一节点的转发表项生成方法;The processing unit 502 is configured to execute the instructions in the storage unit 501 and execute the foregoing forwarding entry generation method applied to the first node in the embodiment shown in FIG. 2;
通信单元503,用于与第二节点进行通信。The communication unit 503 is used to communicate with the second node.
存储单元501、处理单元502和通信单元503通过总线504相互连接;总线504可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The storage unit 501, the processing unit 502 and the communication unit 503 are connected to each other through a bus 504; the bus 504 may be a peripheral component interconnection (PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) Bus etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only a thick line is used in FIG. 5, but it does not mean that there is only one bus or one type of bus.
上述存储单元501可以是随机存取存储器(random-access memory,RAM)、闪存(flash)、只读存储器(read only memory,ROM)、可擦写可编程只读存储器(erasable programmable read only memory,EPROM)、电可擦除可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、寄存器(register)、硬盘、移动硬盘、CD-ROM或者本领域技术人员知晓的任何其他形式的存储介质。The storage unit 501 may be a random-access memory (RAM), flash memory, flash, read-only memory (ROM), erasable programmable read-only memory (erasable programmable read only memory), EPROM), electrically erasable programmable read only memory (electrically erasable programmable read only memory (EEPROM), register (register), hard disk, removable hard disk, CD-ROM or any other form of storage medium known to those skilled in the art.
上述处理单元502例如可以是中央处理器(central processing unit,CPU)、通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The processing unit 502 may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or field programmable Gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, DSP and microprocessor combinations, and so on.
上述通信单元503例如可以是接口卡等,可以为以太(ethernet)接口或异步传输模式(asynchronous transfer mode,ATM)接口。The communication unit 503 may be, for example, an interface card or the like, and may be an Ethernet interface or an asynchronous transfer mode (Asynchronous Transfer Mode, ATM) interface.
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行上述转发表项生成方法。An embodiment of the present application also provides a computer-readable storage medium, including instructions that, when run on a computer, cause the computer to execute the foregoing forwarding entry generation method.
本申请实施例还提供了一种转发表项生成系统,该系统包含图2所示实施例中提供的第一节点和第二节点。An embodiment of the present application further provides a forwarding entry generation system, which includes the first node and the second node provided in the embodiment shown in FIG. 2.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列 出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above drawings are used to distinguish similar objects without using To describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than what is illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, processes, methods, systems, products or devices that contain a series of steps or units need not be limited to those clearly listed Those steps or units, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or equipment.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a division of logical functions. In actual implementation, there may be other divisions, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a storage medium , Including several instructions to enable 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 the embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that in one or more of the above examples, the functions described in the present invention may be implemented by hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media, where communication media includes any medium that facilitates transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific embodiments of the present invention.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they can still The technical solutions described in the embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种转发表项生成方法,其特征在于,所述方法包括:A forwarding entry generation method, characterized in that the method includes:
    第一节点建立通往第二节点的隧道,所述第一节点为主路径的源节点,所述第二节点为从所述源节点到达所述主路径的目的节点的网络拓扑中属于Q空间的Q节点,所述隧道不经过所述主路径;The first node establishes a tunnel to a second node, the first node is the source node of the main path, and the second node is the Q space in the network topology from the source node to the destination node of the main path Q node, the tunnel does not pass through the main path;
    所述第一节点生成所述第一节点的转发表项,所述第一节点的转发表项包括出接口,所述出接口为所述隧道的隧道接口,所述第一节点的转发表项用于在所述主路径故障时向所述第二节点转发报文。The first node generates a forwarding entry of the first node, the forwarding entry of the first node includes an outgoing interface, the outgoing interface is a tunnel interface of the tunnel, and the forwarding entry of the first node It is used to forward a message to the second node when the main path fails.
  2. 根据权利要求1所述的方法,其特征在于,所述第一节点的转发表项为路由表项或标签转发表项。The method according to claim 1, wherein the forwarding entry of the first node is a routing entry or a label forwarding entry.
  3. 根据权利要求2所述的方法,其特征在于,若所述第一节点的转发表项为所述路由表项,则所述第一节点的转发表项中还包括下一跳地址,所述下一跳地址为预先获取的所述第二节点的互联网协议IP地址。The method according to claim 2, wherein if the forwarding entry of the first node is the routing entry, then the forwarding entry of the first node further includes a next hop address, the The next hop address is an Internet protocol IP address of the second node that is obtained in advance.
  4. 根据权利要求2所述的方法,其特征在于,若所述第一节点的转发表项为所述标签转发表项,则所述标签转发表项中还包括出标签,所述出标签包括第一标签和第二标签,所述第一标签为从所述第一节点到所述第二节点的标签分发协议LDP标签,所述第二标签为所述隧道的多协议标签交换流量工程MPLS TE标签。The method according to claim 2, wherein if the forwarding entry of the first node is the label forwarding entry, the label forwarding entry further includes an outgoing label, and the outgoing label includes a A label and a second label, the first label is a label distribution protocol LDP label from the first node to the second node, the second label is a multi-protocol label switching traffic engineering MPLS TE of the tunnel label.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    所述第一节点与所述第二节点建立远端LDP会话,以接收所述第二节点发送的所述第一标签。The first node establishes a remote LDP session with the second node to receive the first label sent by the second node.
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:The method according to claim 4 or 5, wherein the method further comprises:
    在主路径故障时,所述第一节点通过所述隧道向所述第二节点发送所述报文,所述报文的内层封装所述第一标签,所述报文的外层封装所述第二标签。When the main path fails, the first node sends the message to the second node through the tunnel, the inner layer of the message encapsulates the first label, and the outer layer of the message encapsulates the Describe the second label.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述第二节点为所述Q空间中与所述第一节点距离最近或距离最远的Q节点。The method according to any one of claims 1-6, wherein the second node is a Q node in the Q space that is closest or farthest from the first node.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述隧道为资源预留协议-流量工程RSVP-TE隧道。The method according to any one of claims 1-7, wherein the tunnel is a resource reservation protocol-traffic engineering RSVP-TE tunnel.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述报文为IP报文或MPLS报文。The method according to any one of claims 1-8, wherein the message is an IP message or an MPLS message.
  10. 一种转发表项生成装置,其特征在于,应用于第一节点,所述第一节点为主路径的源节点,所述装置包括:A forwarding entry generation device is characterized by being applied to a first node, where the first node is a source node of a main path, and the device includes:
    隧道建立单元,用于建立通往第二节点的隧道,所述第二节点为从所述源节点到达所述主路径的目的节点的网络拓扑中属于Q空间的Q节点,所述隧道不经过所述主路径;A tunnel establishment unit is used to establish a tunnel to a second node, which is a Q node belonging to the Q space in the network topology from the source node to the destination node of the main path, and the tunnel does not pass through The main path;
    表项生成单元,用于生成所述第一节点的转发表项,所述第一节点的转发表项包括出接口,所述出接口为所述隧道的隧道接口,所述第一节点的转发表项用于在所述主路径故障时向所述第二节点转发报文。An entry generating unit is used to generate a forwarding entry of the first node, the forwarding entry of the first node includes an outgoing interface, the outgoing interface is a tunnel interface of the tunnel, and the forwarding of the first node The published item is used to forward a message to the second node when the main path fails.
  11. 根据权利要求10所述的装置,其特征在于,所述第一节点的转发表项为路由表项或标签转发表项。The apparatus according to claim 10, wherein the forwarding entry of the first node is a routing entry or a label forwarding entry.
  12. 根据权利要求11所述的装置,其特征在于,若所述第一节点的转发表项为所述路由表项,则所述第一节点的转发表项中还包括下一跳地址,所述下一跳地址为预先获取的所述第二节点的互联网协议IP地址。The apparatus according to claim 11, wherein if the forwarding entry of the first node is the routing entry, the forwarding entry of the first node further includes a next hop address, the The next hop address is an Internet protocol IP address of the second node that is obtained in advance.
  13. 根据权利要求11所述的装置,其特征在于,若所述第一节点的转发表项为所述标签转发表项,则所述标签转发表项中还包括出标签,所述出标签包括第一标签和第二标签,所述第一标签为从所述第一节点到所述第二节点的标签分发协议LDP标签,所述第二标签为所述隧道的多协议标签交换流量工程MPLS TE标签。The apparatus according to claim 11, wherein if the forwarding entry of the first node is the label forwarding entry, the label forwarding entry further includes an outgoing label, and the outgoing label includes a A label and a second label, the first label is a label distribution protocol LDP label from the first node to the second node, and the second label is a multi-protocol label switching traffic engineering MPLS TE of the tunnel label.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The device according to claim 13, wherein the device further comprises:
    会话建立单元,用于与所述第二节点建立远端LDP会话,以接收所述第二节点发送的所述第一标签。The session establishment unit is configured to establish a remote LDP session with the second node to receive the first label sent by the second node.
  15. 根据权利要求13或14所述的装置,其特征在于,所述装置还包括:The device according to claim 13 or 14, wherein the device further comprises:
    报文发送单元,用于在主路径故障时,通过所述隧道向所述第二节点发送所述报文,所述报文的内层封装所述第一标签,所述报文的外层封装所述第二标签。The message sending unit is configured to send the message to the second node through the tunnel when the main path fails, the inner layer of the message encapsulates the first label, and the outer layer of the message The second label is encapsulated.
  16. 根据权利要求10-15任一项所述的装置,其特征在于,所述第二节点为所述Q空间中与所述第一节点距离最近或距离最远的Q节点。The apparatus according to any one of claims 10-15, wherein the second node is a Q node that is closest to or farthest from the first node in the Q space.
  17. 根据权利要求10-16任一项所述的装置,其特征在于,所述隧道为资源预留协议-流量工程RSVP-TE隧道。The apparatus according to any one of claims 10 to 16, wherein the tunnel is a resource reservation protocol-traffic engineering RSVP-TE tunnel.
  18. 根据权利要求10-17任一项所述的装置,其特征在于,所述报文为IP报文或MPLS报文。The device according to any one of claims 10-17, wherein the message is an IP message or an MPLS message.
  19. 一种转发表项生成设备,其特征在于,所述设备为第一节点,所述第一节点包括存储单元、处理单元和通信单元,A forwarding entry generation device, characterized in that the device is a first node, and the first node includes a storage unit, a processing unit, and a communication unit,
    所述存储单元,用于存储指令;The storage unit is used to store instructions;
    所述处理单元,用于执行所述存储器中的所述指令,执行权利要求1-9任意一项所述的方法;The processing unit is configured to execute the instruction in the memory and execute the method according to any one of claims 1-9;
    所述通信单元,用于与第二节点进行通信。The communication unit is used to communicate with the second node.
  20. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得所述计算机执行以上权利要求1-9任意一项所述的方法。A computer-readable storage medium including instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-9 above.
PCT/CN2019/124063 2018-12-10 2019-12-09 Forwarding entry generation method, apparatus, and device WO2020119644A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811504018.X 2018-12-10
CN201811504018.XA CN109617803B (en) 2018-12-10 2018-12-10 Forwarding table item generation method, device and equipment

Publications (1)

Publication Number Publication Date
WO2020119644A1 true WO2020119644A1 (en) 2020-06-18

Family

ID=66007575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124063 WO2020119644A1 (en) 2018-12-10 2019-12-09 Forwarding entry generation method, apparatus, and device

Country Status (2)

Country Link
CN (1) CN109617803B (en)
WO (1) WO2020119644A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617803B (en) * 2018-12-10 2020-02-21 华为技术有限公司 Forwarding table item generation method, device and equipment
CN112087376B (en) * 2019-06-14 2023-03-14 中兴通讯股份有限公司 Load sharing method and device
CN110493129B (en) * 2019-07-25 2021-11-09 新华三大数据技术有限公司 Updating method of backup label path, message forwarding method and device
CN112398732B (en) * 2019-08-12 2023-09-12 迈普通信技术股份有限公司 Message processing method, device and system
CN114513452B (en) * 2020-10-29 2024-01-02 北京华为数字技术有限公司 Method, device, computer equipment and storage medium for forwarding message
CN114039859B (en) * 2021-11-03 2023-05-30 中盈优创资讯科技有限公司 STN network equipment chain ring changing method and device
CN116094994A (en) * 2021-11-08 2023-05-09 中兴通讯股份有限公司 Label generating method, network device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060087965A1 (en) * 2004-10-27 2006-04-27 Shand Ian Michael C Method and apparatus for forwarding data in a data communications network
CN101099086A (en) * 2005-02-22 2008-01-02 思科技术公司 Method and apparatus for constructing a repair path around a non-available component in a data communications network
US7496650B1 (en) * 2003-01-09 2009-02-24 Cisco Technology, Inc. Identifying and suppressing transient routing updates
CN106161246A (en) * 2016-06-15 2016-11-23 杭州华三通信技术有限公司 The implementation method of alternate routing and device
CN106330701A (en) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 Fast rerouting method and device for ring network
CN109617803A (en) * 2018-12-10 2019-04-12 北京华为数字技术有限公司 A kind of forwarding-table item generation method, device and equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782762B2 (en) * 2007-09-21 2010-08-24 Alcatel Lucent RSVP-TE enhancement for MPLS-FRR bandwidth optimization
CN101695053B (en) * 2009-09-30 2012-05-23 清华大学 IP fast rerouting method for improving inter-domain routing OSPF algorithm
US9178799B2 (en) * 2013-02-01 2015-11-03 TELEFONAKTIEBOLAGET L M ERRICSSON (publ) Method and system of shortest path bridging (SPB) enhanced resilience with loop mitigation
JP2017034463A (en) * 2015-07-31 2017-02-09 富士通株式会社 Protection method, communication system, and end node
US9998361B2 (en) * 2015-09-30 2018-06-12 Juniper Networks, Inc. MLDP multicast only fast re-route over remote loop-free alternate backup path
CN107888493B (en) * 2017-11-30 2020-04-21 迈普通信技术股份有限公司 Method and device for establishing label switching path
CN108429688B (en) * 2018-03-28 2020-07-10 山西大学 Single-node fault route protection method based on segment route

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496650B1 (en) * 2003-01-09 2009-02-24 Cisco Technology, Inc. Identifying and suppressing transient routing updates
US20060087965A1 (en) * 2004-10-27 2006-04-27 Shand Ian Michael C Method and apparatus for forwarding data in a data communications network
CN101099086A (en) * 2005-02-22 2008-01-02 思科技术公司 Method and apparatus for constructing a repair path around a non-available component in a data communications network
CN106330701A (en) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 Fast rerouting method and device for ring network
CN106161246A (en) * 2016-06-15 2016-11-23 杭州华三通信技术有限公司 The implementation method of alternate routing and device
CN109617803A (en) * 2018-12-10 2019-04-12 北京华为数字技术有限公司 A kind of forwarding-table item generation method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NORTEL NETWORKS: "IP UTRAN – Text proposal for section 6.2.4 "MPLS" of TR 25.933", 3GPP TSG-RAN WG3 MEETING #18 TSGR3 TDOC R3-010180, 12 January 2001 (2001-01-12), XP050148970, DOI: 20200220102654A *

Also Published As

Publication number Publication date
CN109617803B (en) 2020-02-21
CN109617803A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
WO2020119644A1 (en) Forwarding entry generation method, apparatus, and device
US20200296025A1 (en) Route Processing Method and Apparatus, and Data Transmission Method and Apparatus
CN111510379B (en) EVPN message processing method, device and system
WO2018166253A1 (en) Evpn packet processing method, device and system
US7269135B2 (en) Methods and systems for providing redundant connectivity across a network using a tunneling protocol
WO2020135395A1 (en) Notification method and device for prefix identifier of cross-interior gateway protocol
JP7176095B2 (en) COMMUNICATION METHOD, COMMUNICATION DEVICE AND COMMUNICATION SYSTEM
CN108574616A (en) A kind of method, equipment and the system of processing routing
WO2021031648A1 (en) Evpn and vpls coexistence method, apparatus, and system
TW201134151A (en) RSVP-TE graceful restart under fast re-route conditions
WO2020186803A1 (en) Fault protection method, node, and storage medium
WO2008083590A1 (en) Method and apparatus of rapid convergence of point-to-point service
US20120243442A1 (en) Directing traffic in an edge network element operable to perform layer 2 data forwarding and supporting any of various spanning tree protocols
US20210119906A1 (en) Loop Avoidance Communications Method, Device, and System
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
CN110380966B (en) Method for discovering forwarding path and related equipment thereof
CN114070770A (en) Method, device and system for receiving and transmitting message
JP7273125B2 (en) Method and first network device for transmitting BIERv6 packets
WO2018040614A1 (en) Method, related device, and system for establishing label-switched path for virtual private network
CN108199960B (en) Multicast data message forwarding method, entrance routing bridge, exit routing bridge and system
US10924395B2 (en) Seamless multipoint label distribution protocol (mLDP) transport over a bit index explicit replication (BIER) core
WO2022257773A1 (en) Routing detection method, device, system, and storage medium
CN110535675B (en) Method and device for multicast fast switching
CN116886663A (en) E-TREE implementation mode, device and communication equipment based on RFC 8317
CN115499369A (en) Path protection method and device

Legal Events

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

Ref document number: 19897359

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19897359

Country of ref document: EP

Kind code of ref document: A1