WO2016090950A1 - Label request message control method and system and upstream and downstream label switching router - Google Patents

Label request message control method and system and upstream and downstream label switching router Download PDF

Info

Publication number
WO2016090950A1
WO2016090950A1 PCT/CN2015/087541 CN2015087541W WO2016090950A1 WO 2016090950 A1 WO2016090950 A1 WO 2016090950A1 CN 2015087541 W CN2015087541 W CN 2015087541W WO 2016090950 A1 WO2016090950 A1 WO 2016090950A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
message
request message
switching router
upstream
Prior art date
Application number
PCT/CN2015/087541
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 WO2016090950A1 publication Critical patent/WO2016090950A1/en

Links

Images

Definitions

  • This application relates to, but is not limited to, a communication domain tag request message.
  • MPLS Multiprotocol Label Switching
  • IPv4 Internet Protocol version 4
  • IPX Internet Packet Exchange
  • Appletalk Internet Protocol version 6
  • CLNP Connectionless Network Protocol
  • MPLS provides a way to map IP addresses to simple fixed-length labels for different packet forwarding and packet switching techniques. Compared with the traditional IP routing method, it analyzes the IP packet header only at the edge of the network during data forwarding, instead of analyzing the IP packet header at each hop; the fixed length label is inserted into the beginning of each packet or cell. It can be used by hardware to quickly exchange packets between two links, saving processing time.
  • MPLS has the following advantages: 1) MPLS encapsulates network layer packets by using fixed-length labels. Routers in the MPLS network no longer look up routes according to the destination IP address, but forward packets according to labels, speeding up the forwarding speed.
  • Each node on the packet forwarding path establishes a virtual channel for packet forwarding by assigning labels, thereby providing a connection-oriented service for the network layer.
  • MPLS is located between the link layer and the network layer. It can be built on multiple link layer protocols (such as PPP, ATM, Frame Relay, Ethernet, etc.) for multiple network layers (IPv4, IPv6, IPX, etc.). ) Provides connection-oriented services. 4) It not only supports multiple routing protocols, but also supports policy-based constrained routing, which can meet the requirements of many new applications for the network. 5) MPLS was originally proposed as a protocol to improve the forwarding speed of routers, but its use is not limited to this. MPLS can also be used to build VPN (Virtual Private Network) networks, implement traffic engineering, and provide QoS (Quality of Service) guarantees are favored by large-scale IP networks.
  • VPN Virtual Private Network
  • QoS Quality of Service
  • the upstream LSR explicitly sends a label request message to the LSR of the FEC next hop to notify the downstream LSR to allocate a label for the FEC.
  • the downstream LSR meets the protocol requirements, the FEC is assigned a label and a label mapping message is sent to advertise the binding of the label to the FEC. If the downstream LSR does not meet the requirements of the protocol (for example, the routing table of the downstream LSR does not match the entry of the FEC address prefix, or the other non-label resources are insufficient), the downstream LSR replies with a status code to the upstream LSR. "No route" notification message.
  • the upstream LSR will resend the label request message to the downstream LSR for the FEC.
  • the upstream LSR has a large number of such FECs that need to send the request label message, and the downstream LSR cannot satisfy the condition to send the label mapping message to the upstream LSR, the same process will continue over and over again, and the system will always consume more resources to process. These messages, which affect device performance.
  • This document provides a method and system for controlling a label request message and an upstream and downstream label switching router, which solves the problem that the related technology repeatedly transmits a label request message to waste resources.
  • the label request message includes an identifier of a forwarding equivalence class, and the label request message is used by the downstream label switching router. Forward the equivalence class to assign labels;
  • a notification message is used to control the sending of the label request message
  • the first notification message is parsed, and the subsequent transmission of the label request message is controlled according to the parsed first control message.
  • the first control message includes stopping a message for the forwarding equivalence class, and/or stopping a message for all forwarding equivalence classes; the control obtained according to the parsing
  • the sending of the label request message after the message control includes: if the parsing is to stop the forwarding equivalence class, stop sending the label request message to the forwarding equivalence class; if the parsing is to stop all forwarding equivalents
  • the class message stops sending tag request messages to all forwarding equivalence classes.
  • the downstream label switching router satisfies the label request message of the upstream label switching router, receiving the downstream label And a second notification message sent by the switching router, where the second notification message includes a second control message of the label request message, where the second control message includes restoring the message to the forwarding equivalence class, and/or restoring to all forwarding Equivalence class message; parsing the second notification message, if the parsing is to recover the message of the forwarding equivalence class, resending the tag request message to the forwarding equivalence class; if the parsing is to recover all Forwards the message of the equivalence class and resends the tag request message to all forwarding equivalence classes.
  • the first control message is a message extended to an extended state value of the first notification message, and/or the second control message is extended to the second notification The message in the extended status value of the message.
  • a label request message sent by an upstream label switching router, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used to allocate the forwarding equivalence class. label;
  • the first notification message fed back to the upstream label switching router includes a first control message of the label request message, where the first notification message is used
  • the control tag requests the sending of a message.
  • the label request message that does not satisfy the upstream label switching router includes failing to allocate labels for all forwarding equivalence classes of the upstream label switching router, and/or cannot exchange for the upstream label.
  • the forwarding equivalence class assignment label of the router; the first notification message fed back to the upstream label switching router includes: when the label cannot be allocated for all forwarding equivalence classes of the upstream label switching router,
  • the upstream label switching router feedback includes a first control message for stopping forwarding of all messages of the equivalence class; when the label cannot be allocated for the forwarding equivalence class of the upstream label switching router, the feedback to the upstream label switching router includes Stopping the first control message for the message forwarding the equivalence class.
  • the sending is sent to the upstream label switching router.
  • a second notification message where the second notification message includes a second control message of the label request message, determining whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class, and if the feedback is All the second control information of the message forwarding the equivalence class; if not fed back, determining whether the first control message including stopping the message of the forwarding equivalence class is fed back, and if the feedback is over, the sending includes restoring the The second control information of the message forwarding the equivalence class.
  • the first notification message is extended, the first control message is extended to an extended state value of the first notification message, and/or the second notification is The message is extended to extend the second control message to an extended status value of the second notification message.
  • the upstream label switching router sends a label request message to the downstream label switching router, and the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for the downstream label switching.
  • the router allocates a label to the forwarding equivalence class;
  • the downstream label switching router feeds back a first notification message to the upstream label switching router, where the first notification message includes a first control message of the label request message.
  • the first notification message is used to control sending of the label request message;
  • the upstream label switching router receives the first notification message fed back by the downstream label switching router, parses the first notification message, and controls transmission of the label request message after the first control message obtained by the parsing.
  • the label request sending module is configured to send a label request message to the downstream label switching router in a downstream on-demand label issuing manner, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for The downstream label switching router allocates a label to the forwarding equivalence class;
  • the notification message receiving module is configured to: when the downstream label switching router does not satisfy the label request message of the upstream label switching router, receive the first notification message fed back by the downstream label switching router, where the first notification message includes a label request message The first control message, the first notification message is used to control the sending of the label request message; and the first notification message is parsed, and the label after the label request sending module is notified according to the first control message obtained by the parsing The request message is sent.
  • the first control message includes stopping a message for the forwarding equivalence class, and/or stopping a message for all forwarding equivalence classes; the notification message receiving module is further configured to If the notification message receiving module parses the message that stops the forwarding equivalence class, notifying the tag request sending module to stop sending the tag request message to the forwarding equivalence class; if the parsing is to stop all Forwarding the message of the equivalence class, notifying the tag request sending module to stop sending the tag request message to all forwarding equivalence classes.
  • the notification information receiving module is further configured to: receive a second notification message sent by the downstream label switching router, where the second notification message includes a second control message of the label request message, The second control message includes restoring the message to the forwarding equivalence class, and/or restoring the message to all forwarding equivalence classes; the notification information receiving module is further configured to: parse the second notification message, if parsed Recovering the message of the forwarding equivalence class, notifying the tag request sending module to resend the tag request message to the forwarding equivalence class; if the parsing is to recover all the forwarding equivalence class messages, Notifying the tag request sending module to resend the tag request message to all forwarding equivalence
  • the tag request receiving module is configured to: receive, in a downstream on-demand label issuing mode, a label request message sent by an upstream label switching router, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is set. To: assign a label to the forwarding equivalence class;
  • the notification message sending module is configured to: a first notification message fed back to the upstream label switching router, where the first notification message includes a first control of the label request message The message, the first notification message is used to control the sending of the label request message.
  • the label request message that does not satisfy the upstream label switching router includes failing to allocate labels for all forwarding equivalence classes of the upstream label switching router, and/or cannot exchange for the upstream label.
  • the forwarding equivalence class assigning a label of the router; the notification message sending module is further configured to: when the label cannot be allocated for all the forwarding equivalence classes of the upstream label switching router, the feedback to the upstream label switching router includes stopping a first control message for all messages forwarding the equivalence class; when the label cannot be assigned to the forwarding equivalence class of the upstream label switching router, the feedback to the upstream label switching router includes stopping the forwarding of the forwarding equivalent The first control message of the class's message.
  • the notification message sending module further sets And sending a second notification message to the upstream label switching router, where the second notification message includes a second control message of the label request message, and determining whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class.
  • a control system for tag request messages including an upstream label switching router and a downstream label switching router:
  • the upstream label switching router is configured to send a label request message to the downstream label switching router in a downstream on-demand label issuing manner, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for
  • the downstream label switching router is equivalent to the forwarding Class assignment label
  • the downstream label switching router is configured to: receive a label request message sent by the upstream label switching router;
  • the downstream label switching router is further configured to: a first notification message fed back to the upstream label switching router, where the first notification message includes a label request message a first control message, where the first notification message is used to control transmission of a label request message;
  • the upstream label switching router is further configured to: receive a first notification message fed back by the downstream label switching router, parse the first notification message, and control transmission of the label request message after the first control message obtained by the parsing.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the embodiment of the present invention provides a method and a system for controlling a label request message, and an upstream and downstream label switching router.
  • the method for controlling the label request message in the present application is to send a label request message to the downstream in a downstream label-on-demand label distribution mode.
  • the label switching router the label request message includes an identifier of the forwarding equivalence class, and the label request message is used by the downstream label switching router to allocate a label for the forwarding equivalence class, and then when the downstream label switching router does not satisfy the label request message of the upstream label switching router Receiving a first notification message fed back by the downstream label switching router, where the first notification message includes a first control message of the label request message, where the first notification message is used to control the sending of the label request message, and the first notification message is parsed according to the parsing
  • the first control message controls the sending of the label request message; when the downstream label switching router satisfies the label request message of the upstream label switching router, the downstream label switching router receives the label mapping message of the forwarding equivalent class.
  • the downstream label switching router fails to meet the label request message of the upstream label switching router, the first label notification message is sent according to the feedback first notification message, so that the upstream label repeatedly sends the label request. Messages reduce the system's resource consumption in processing these messages, conserve resources, and improve system processing performance.
  • FIG. 1 is a schematic flowchart of a method for controlling a label request message according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart 1 of a method for controlling a label request message according to Embodiment 2 of the present invention
  • FIG. 3 is a second schematic flowchart of a method for controlling a label request message according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of a topology structure of an upstream and downstream label switching router in a method for controlling a label request message according to Embodiment 3 of the present invention
  • FIG. 5 is a schematic flowchart 1 of a method for controlling a label request message according to Embodiment 3 of the present invention.
  • FIG. 6 is a second schematic flowchart of a method for controlling a label request message according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic flowchart 3 of a method for controlling a label request message according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic flowchart 4 of a method for controlling a label request message according to Embodiment 3 of the present invention.
  • FIG. 9 is a schematic flowchart 5 of a method for controlling a label request message according to Embodiment 3 of the present invention.
  • FIG. 10 is a schematic flowchart 6 of a method for controlling a label request message according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic structural diagram of an upstream label switching router according to Embodiment 4 of the present invention.
  • FIG. 12 is a schematic structural diagram of a downstream label switching router according to Embodiment 4 of the present invention.
  • FIG. 13 is a schematic structural diagram of a control system of a label request message according to Embodiment 4 of the present invention.
  • FEC Forwarding Equivalence Class
  • MPLS is actually a classification and forwarding technology. It classifies packets with the same forwarding processing method (same destination, same forwarding path or with the same service level, etc.) as a forwarding equivalence class. Packets belonging to the same forwarding equivalence class will get exactly the same processing in the same MPLS network.
  • the label is a fixed length and only has a local An identifier of meaning that uniquely identifies the FEC to which a packet belongs. A tag can only represent one FEC. The tag length is 4 bytes.
  • the LSP Label Switched Path
  • LSR Label Switched Path
  • LSR Label Switching Router
  • a network composed of LSRs is called an MPLS domain.
  • the sender router of the data packet is the upstream LSR of an LSP, and the receiver router is the downstream LSR.
  • Label publishing method Label publishing means that the label assigned to the FEC is advertised to other LSRs.
  • the label allocation control mode refers to the method of establishing an LSP for the FEC.
  • independent label control mode Independent: The LSR can advertise label mapping to the LSR connected to it at any time.
  • Ordered label control mode (Ordered): The LSR notifies the label mapping of the FEC to its upstream LSR only if it receives the label assigned by its downstream LSR to an FEC or the LSR is the egress node of the FEC. 7) Label publishing protocol: The label publishing protocol is a signaling protocol of MPLS, which is responsible for dividing FEC, issuing labels, and establishing maintenance LSPs. There are many types of label distribution protocols. There are protocols for label distribution, such as LDP (Label Distribution Protocol), and protocols that support label distribution after extension, such as BGP and RSVP-TE. The technologies of the embodiments of the present invention are all implemented based on LDP specified in RFC 5036.
  • the method for controlling the label request message in this embodiment includes the following steps:
  • Step S101 Send a label request message to the downstream label switching router in the downstream on-demand label issuing mode
  • the label request message includes an identifier for forwarding the equivalence class, and the label request message is used by the downstream label switching router to allocate a label for the forwarding equivalence class; the upstream LSR sends a label request to a certain FEC that has not yet assigned the label.
  • Downstream LSR In the DOD mode, for one has not yet There is a forwarding equivalence class FEC that obtains a label from the downstream LSR, and the upstream LSR sends a label request message to the downstream LSR; and records related content of the label request message, so that when the first notification message of the feedback is received later, The corresponding FEC is identified.
  • Step S102 Receive a first notification message fed back by the downstream label switching router when the downstream label switching router does not satisfy the label request message of the upstream label switching router;
  • the first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message.
  • the downstream LSR receives the label request message of the upstream LSR for a certain FEC, it is determined.
  • the first notification message is fed back to the upstream LSR.
  • the first notification message is used to control the sending of the label request message. It should be understood as the first notification message, which can be used to inform the upstream LSR.
  • the LSR cannot satisfy the information of the label request message message and causes it to stop the transmission of the subsequent label request message.
  • the result of the determination that the downstream LSR cannot satisfy the label request message of the upstream LSR includes two cases: 1.
  • the FEC allocation label and the binding label of the advertisement label and the FEC cannot be allocated for the label request message.
  • the downstream LSR learns that the route is incomplete, and there is no entry in the routing table that matches the FEC address prefix. 2.
  • the next hop of the upstream LSR cannot be used to assign labels and advertisement labels to the FEC of the LSR.
  • the downstream LSR has configured a policy to prohibit the advertisement of the label to the upstream LSR; or the downstream LSR uses the ordered label control mode and has not received the label mapping message from its downstream LSR.
  • the downstream LSR needs to record the related content of the label request message, so that when the "no route" notification message is sent subsequently, the related fields required by the protocol can be correctly filled.
  • Step S103 Parsing the first notification message, and controlling transmission of the subsequent label request message according to the parsed first control message.
  • the upstream LSR parses the content of the first notification message, that is, parses the first control message, and controls the label request message according to the content of the first control message.
  • the sending where the control tag request message is sent, includes stopping the sending of a request for the FEC tag request message, and further includes stopping sending all unassigned FEC tag request messages.
  • the first control message includes stopping the message of the forwarding equivalence class, and/or stopping the message for all forwarding equivalence classes; and controlling, according to the parsed control message, in the foregoing step S103
  • the sending of the subsequent label request message includes: if the parsing is to stop forwarding the equivalence class message, the sending of the label request message to the forwarding equivalence class is stopped; if the parsing is to stop the message of all forwarding equivalence classes, the message is stopped.
  • a label request message is sent for all forwarding equivalence classes.
  • the first notification message includes an extended status value
  • parsing the first notification message includes parsing an extended status value of the first notification message, and controlling transmission of the label request message according to the parsed extended status value.
  • the first notification message can be an extended "no route" notification message.
  • the first control message includes a message that stops the forwarding equivalence class and can be correspondingly set to a first preset extended state value, and the message for stopping all forwarding equivalence classes can be correspondingly set to a third preset extended state value.
  • the sending of the label request message according to the extended state value obtained by the parsing comprises: if the parsed extended status value is the first preset extended status value, stopping sending the label request message to the forwarding equivalence class, and continuing to the other forwarding equivalence class Sending a label request message; if the parsed extended status value is a third preset extended status value, stopping sending a label request message to all forwarding equivalence classes.
  • the first notification message is an extended "no route” notification message
  • the extended "no route” notification message extension status value is parsed to control the transmission of the label request message.
  • the downstream LSR when the downstream LSR receives the label request message of the upstream LSR for a certain FEC, and determines that the label request message of the upstream LSR cannot be satisfied, the downstream LSR is notified by sending an extended “no route” notification message.
  • the label request message is repeatedly sent; the upstream receives the "no route” notification message of the extension to stop sending the label request message, and controls the sending of the label request message according to the extended status value in the "no route” notification message that parses the extension. This can prevent the upstream LSR from repeatedly sending label request messages, reducing the resource consumption of the system in processing these messages, and improving the processing performance of the system.
  • the downstream label switching router When the downstream label switching router satisfies the label request message of the upstream label switching router, the downstream label switching router receives the label mapping message of the forwarding equivalent class. For example, when the downstream LSR meets the protocol requirements, the FEC is assigned a label and a label mapping message is sent to advertise the label's binding to the FEC.
  • step S103 that is, after the transmission of the label request message after the control according to the first control message obtained by the parsing, when the downstream label switching router satisfies the label request message of the upstream label switching router, the receiving of the label sent by the downstream label switching router a second notification message, the second notification message comprising a second control message of the label request message, the second control message comprising: restoring the message to the forwarding equivalence class, and/or restoring the message to all forwarding equivalence classes; parsing the second notification message If the parsing is to restore the forwarding equivalence class message, the label request message is sent again to the forwarding equivalence class; if the parsing is to recover all the forwarding equivalence class messages, the forwarding is equivalent to all forwarding.
  • the class sends a tag request message.
  • the second notification message includes an extended status value
  • parsing the second notification message includes parsing an extended status value of the second notification message, and controlling transmission of the label request message according to the parsed extended status value.
  • the second notification message can be an extended "no route" notification message.
  • the second control message includes a message that restores the forwarding equivalence class, and can be correspondingly set to a second preset extended state value, and the message for restoring all forwarding equivalence classes can be correspondingly set to a fourth preset extended state value.
  • the sending of the label request message according to the extended state value obtained by the parsing comprises: if the parsed extended status value is the second preset extended status value, resuming sending the label request message to the forwarding equivalence class; if the parsed extended status value is obtained If the state value is extended for the fourth preset, the label request message is resumed for all forwarding equivalence classes.
  • the second notification message is an extended "no route” notification message
  • the extended "no route” notification message extension status value is parsed to control the transmission of the label request message.
  • the upstream LSR when the downstream LSR re-learns or recovers the fault, and determines that the label request message of the upstream LSR is satisfied, the upstream LSR is notified to resend the label request message by sending an extended “no route” notification message; The extended "no route” notification message resumes sending the tag request message, and controls the transmission of the tag request message based on the extended status value in the "no route” notification message parsing the extension.
  • the upstream LSR can know the downstream LSR situation, and control the sending of the label request message according to the situation, thereby improving the processing performance of the system.
  • the method for controlling the label request message in this embodiment includes the following steps:
  • Step S201 Receive a label request message sent by an upstream label switching router in a downstream label-on-demand label issuing manner
  • the label request message includes an identifier for forwarding the equivalence class, and the label request message is used by the downstream label switching router to allocate labels for the forwarding equivalence class.
  • Step S202 When the label request message of the upstream label switching router is not met, the first notification message fed back to the upstream label switching router;
  • the first notification message includes a first control message of the label request message, and the first notification message is used to control the transmission of the label request message.
  • the label is assigned to the forwarding equivalence class, and the upstream label switching router feeds back the label mapping message of the equivalence class.
  • the label request message that does not satisfy the upstream label switching router includes that the forwarding equivalence class of the upstream label switching router cannot be assigned a label, and/or the forwarding equivalence class of the upstream label switching router cannot be assigned a label;
  • the first notification message fed back by the label switching router includes: when the label cannot be allocated to all forwarding equivalence classes of the upstream label switching router, feeding back to the upstream label switching router a first control message including stopping the forwarding of all the messages of the equivalence class;
  • the first label control message including the stop of the forwarding of the equivalence class message is fed back to the upstream label switching router.
  • the second notification is sent to the upstream label switching router.
  • the second notification message includes a second control message of the label request message, and determines whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class. If the feedback is sent, the sending includes restoring all forwarding equivalence classes.
  • the second control information of the message if there is no feedback, determine whether the first control message including stopping the message of the forwarding equivalence class is fed back, and if the feedback is over, transmitting the message including restoring the message to the forwarding equivalence class Two control information.
  • the first notification message may be extended to extend the first control message to an extended status value of the first notification message and/or to extend the second notification message to extend the second control message to an extension of the second notification message In the status value.
  • This embodiment further provides a method for controlling another label request message, as shown in FIG. 3, including the following steps:
  • Step S301 In the downstream on-demand label issuing mode, the upstream label switching router sends a label request message to the downstream label switching router.
  • Step S302 The downstream label switching router receives the label request message sent by the upstream label switching router.
  • the label request message includes an identifier for forwarding the equivalence class, and the label request message is used by the downstream label switching router to allocate labels for the forwarding equivalence class.
  • Step S303 When the label request message of the upstream label switching router is not met, the downstream label switching router feeds back the first notification message to the upstream label switching router;
  • the first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message;
  • Step S304 The upstream label switching router receives the first notification message fed back by the downstream label switching router, parses the first notification message, and controls the sending of the label request message after the first control message obtained by the parsing; when the label of the upstream label switching router is satisfied When requesting a message, the downstream label switching router allocates a label to the forwarding equivalence class, and feeds back the label mapping message of the equivalence class to the upstream label switching router; the upstream label switching router receives the label mapping message of the downstream label switching router feedback forwarding equivalence class .
  • the first notification message and the second notification message are “no route” notification messages carrying the extended status TLV, and the first notification message and the second notification message are not limited to such other messages that can be used to control the label request.
  • the first control message and the second control message are respectively an extended state value in the first notification message and an extended state value in the second notification message.
  • the first notification message and the second notification message may be defined as a "no route" notification message containing an extended status value.
  • the extended state TLV structure is carried in the optional parameter of the LDP notification message defined in RFC 5036, and the extended LSR is used to indicate whether the upstream LSR continues to send the label request message.
  • the U-bit of the extended state TLV structure described in the embodiment of the present invention needs to be set to 1; the F-bit needs to be set to 0.
  • the extended status value is a value of 4 bytes in length.
  • the value used by the extended status value herein may be defined as follows: 0x3F000001: indicating that the label request message does not need to be sent for the FEC; 0x3F000002: indicating that the label request message needs to be continuously sent for the FEC; 0x3F000003: indicating that it is not needed Continuing to send a label request message for all FECs whose next hop is the downstream LSR and has not received the label from it; 0x3F000004: indicates that all FECs that need to re-send the downstream LSR for the downstream LSR and have not received the label from it yet Tag request message.
  • the value here can be defined according to the situation.
  • the upstream LSR After the upstream LSR sends a label request message to a certain FEC, it receives a "no route" from the downstream LSR. When the message is notified, it is judged whether there is an extended state TLV structure, and if it exists, the extended state value is continuously judged. If the value is 0x3F000001, the label request message of the FEC is not retransmitted to the downstream LSR; if the value is 0x3F000003, then the next hop is no longer the next LSR and the label has not been received yet. All FECs continue to send tag request messages. When the configuration of the downstream LSR or the route learning is changed, the label request message sent by the upstream LSR can be satisfied.
  • the downstream LSR resends only the extended status value according to the previously sent “no route” notification message. Routing" notification message. If a "no route” notification message with an extended status value of 0x3F000003 has occurred before, a "no route” notification message with the extended status value changed to 0x3F000004 is resent. If the "no route” notification message with the extended status value of 0x3F000003 has not been sent before, then all the FECs that have satisfied the condition and have previously sent the "no route” notification message with the extended status value of 0x3F000001 resend the extended status. The value is changed to the "no route” notification message of 0x3F000002.
  • the upstream LSR receives the "no route" notification message retransmitted by the downstream LSR, if the extended state value is 0x3F000004, the upstream LSR starts to re-take the next hop as the downstream LSR and has not received all the labels from it.
  • the FEC sends a label request message. If the value is 0x3F000002, the upstream LSR sends a label request message only for the FEC corresponding to the message.
  • the method for reducing the label request message in the DOD mode of the MPLS network in the embodiment of the present invention is coordinated by the upstream LSR and the downstream LSR.
  • the processing steps of the upstream LSR are as shown in Figure 4, including:
  • Step S401 In the DOD mode, for a specific FEC that has not obtained a label from the downstream LSR, the upstream LSR sends a label request message to the downstream LSR; and records related content of the label request message;
  • Step S402 When receiving the "no route" notification message replied by the downstream LSR, determine whether there is an extended state TLV structure; if the TLV structure exists, proceed to step S403, otherwise, according to the original process specified by the LDP protocol;
  • Step S403 Continue to judge the extended state value in the TLV structure. If the value is 0x3F000003, the label request message is no longer sent for all the FECs whose next hop is the downstream LSR and has not received the label from the downstream LSR. If the value is 0x3F000001, the subsequent LSR is no longer attached to the downstream LSR.
  • Step S404 The upstream LSR starts to resend the label request message for all the FECs whose next hop is the downstream LSR and has not received the label from it;
  • Step S405 The upstream LSR sends a label request message only for the FEC corresponding to the message.
  • the processing of the downstream LSR is as shown in Figure 5, including:
  • Step S501 When the downstream LSR receives the label request message of the upstream LSR for a certain FEC, the related content of the label request message is recorded;
  • Step S502 determining whether the label request message of the upstream LSR is satisfied and assigning a label to the FEC; if the label is not available for the FEC corresponding to the label request message, the method further determines whether the current LDP connection is DOD mode; if it is the DOD mode, the process proceeds to step S503; otherwise, it is processed according to the original process specified by the LDP protocol;
  • Step S503 determining whether the downstream LSR cannot allocate the label and the label of the notification label and the FEC to the FEC of the LSR for the next hop of the upstream LSR; if yes, proceed to step S504; otherwise, perform the process of step S505;
  • Step S504 Send a “No Route” notification message carrying the extended status TLV to the upstream LSR.
  • the U-bit of the extended status TLV is set to 1, the F-bit is set to 0, and the extended status value is set to 0x3F000003. Then, the process proceeds to step S506. ;
  • Step S505 Send a "No Route" notification message carrying the extended state TLV to the upstream LSR; wherein, the U-bit of the extended state TLV is set to 1, the F-bit is set to 0, and the extended state value is set to 0x3F000001;
  • the label request message sent by the upstream LSR can be resent, and the "no route” notification message with different extended state values is resent; if the extended status value is 0x3F000003 If there is no route notification message, the "no route” notification message with the extended status value changed to 0x3F000004 is resent. If the downstream LSR has not sent a "no route” notification message with an extended status value of 0x3F000003, then the condition has been met and the extended status value of 0x3F000001 has been sent before. All FECs of the notification message resend the "no route" notification message with the extended status value changed to 0x3F000002.
  • the arrow indicates an indication of the next hop direction of all FECs on each LSR.
  • R1 and R6 which are LSP1: R1->R2->R4->R6 and LSP2: R1->R3->R5->R6.
  • the label distribution mode between R1 and R2 and R3 is DOD mode, and R2 and R3 are both downstream devices of the R1 device.
  • the data traffic corresponding to the FEC is forwarded on LSP1 and LSP2.
  • R2 can be revoked as the label of all FECs allocated by R1 to prevent the quantity traffic from being forwarded on the LSP1 path that has failed.
  • R1 needs to send a label request message to R2 for all FECs whose next hop is R2 but has not yet obtained a label from it.
  • the upstream LSR receives the response of the downstream LSR replying to the "no route" notification message, including the following steps:
  • step S701 R1, which is the upstream LSR, sends a label request message of a certain FEC to R2 downstream thereof. After waiting for the reply information of R2, the process proceeds to step S702.
  • step S801 after receiving the label request message sent by R1, R2 records the related content of the message; in step S802, it is determined that the label request message of the R1 cannot be satisfied; in step S803, it is determined that the current The LDP connection is in the DOD mode; and in step S804, it is determined that R2 has been unable to assign a label to the FEC of the LSR for all the next hops on the R1; then, in step S805, the "no route carrying the extended status TLV is sent to the R1.
  • the notification message has an extended status value of 0x3F000003.
  • step S807 is performed to process according to the flow specified by the label distribution protocol. If the result of the determination is no at step 804, a "no route" notification message carrying the extended status TLV is sent to R1 with an extended status value of 0x3F000001.
  • Step S702 R1 receives R2 reply "no route” notification message, after determining that the received "no route” notification message contains the extended state TLV, proceeds to step S703;
  • Step S703, R1 determines that the extended state value in the extended state TLV belongs to the scope defined by the embodiment of the present invention, proceeds to step S704;
  • Step S704 after determining that the extended state value is 0x3F000003, proceeds to step S705; after determining that the extended state value is 0x3F000001, proceeds to step S706;
  • step S705 R1 no longer sends a label request message for all FECs whose next hop is R2, and the process ends.
  • step S706 R1 does not resend the label request message of the FEC to R2, and the process ends.
  • R2 finds that the LSPs corresponding to R1->R2->R4->R6 can be restored for these FECs, and only the "no route" notification with different extended state values is resent.
  • the message includes the following steps:
  • Step S901 after confirming that R4 is restored, R2 can satisfy the label request message sent by the previous upstream LSR, and proceeds to step S902;
  • Step S902 if R2 determines that the "no route” notification message of the extended state value 0x3F000003 has been sent before, proceeds to step S903; if R2 determines that the "no route” notification message of the extended state value 0x3F000001 has been previously sent, proceeds to step S904;
  • step S903 R2 resends the "no route" notification message whose extension status value is changed to 0x3F000004 to R1, and ends the flow.
  • Step S904 the FEC resends the "no route” notification message whose extension state value is changed to 0x3F000002 for the FEC that has satisfied the condition and has previously sent the "no route” notification message of the extended state value 0x3F000001, and ends the flow.
  • R1 restarts sending the label request message to R2, including the following steps:
  • Step S1001, R1 re-receives the "no route" notification message containing the extended state TLV sent by R2, proceeds to step S1002;
  • Step S1002 if R1 determines that the extended state value is 0x3F000004, proceeds to step S1003; if R1 determines that the extended state value is 0x3F000001, proceeds to step S1004;
  • step S1003 R1 starts to resend the label request message for all FECs whose next hop is R2 and has not received the label binding from the same, and the process ends.
  • step S1004 R1 sends a label request message to the FEC corresponding to the message, and the process ends.
  • the present embodiment provides an upstream label switching router 1101.
  • the label request sending module 1111 and the notification message receiving module 1112 are provided.
  • the label request sending module 1111 is configured to send a label request message to the downstream label switching router 1201.
  • the label request message includes an identifier of a forwarding equivalence class, and the label request message is used by the downstream label switching router 1201 to allocate a label for the forwarding equivalence class; when the downstream label switching router 1201 does not satisfy the label request message of the upstream label switching router 1101, the notification is notified.
  • the message receiving module 1112 is configured to: receive a first notification message fed back by the downstream label switching router 1201, where the first notification message includes a first control message of the label request message, the first notification message is used to control the sending of the label request message, and the notification message is received.
  • the module 1112 is further configured to: parse the first notification message, and notify the label request sending module 1111 to send the label request message according to the parsed first control message.
  • the first control message includes stopping the message to the forwarding equivalence class, and/or stopping the message for all forwarding equivalence classes; the notification message receiving module 1112 is further configured to: if the parsing is to stop forwarding the equivalence class message, The notification tag request sending module 1111 stops sending the tag request message to the forwarding equivalence class; if the parsing is to stop the message of all forwarding equivalence classes, the notification tag request sending module 1111 stops sending the tag request message to all forwarding equivalence classes.
  • the downstream label switching router 1201 satisfies the label request message of the upstream label switching router 1101, and notifies the information.
  • the receiving module is further configured to: receive a second notification message sent by the downstream label switching router 1201, where the second notification message includes a second control message of the label request message, where the second control message includes restoring the message to the forwarding equivalence class, and/or Recovering the message for all forwarding equivalence classes;
  • the notification message receiving module 1112 is further configured to: parse the second notification message, and if the parsing is to restore the forwarding equivalence class, the notification tag request sending module 1111 re-orients the forwarding The class sends a tag request message; if the parsing is to recover all the messages of the forwarding equivalence class, the notification tag request sending module 1111 resends the tag request message to all forwarding equivalence classes.
  • the first control message is a message extended to an extended status value of the first notification message, and/or a second The control message is a message that is extended to the extended status value of the second notification message.
  • the present embodiment provides a downstream label switching router 1201.
  • the label request receiving module 1211 and the notification message sending and receiving module 1212 are provided.
  • the label request receiving module 1211 is configured to receive the label request sent by the upstream label switching router 1101.
  • the message request message includes an identifier of a forwarding equivalence class, and the tag request message is used to allocate a tag to the forwarding equivalence class; when the tag request message of the upstream label switching router 1101 is not satisfied, the notification message sending and receiving module 1212 is configured to:
  • the label request message that does not satisfy the upstream label switching router 1101 includes that the label cannot be assigned to all forwarding equivalence classes of the upstream label switching router 1101, and/or the label cannot be assigned to the forwarding equivalence class of the upstream label switching router 1101;
  • the module 1212 is further configured to: when the label cannot be assigned to all forwarding equivalence classes of the upstream label switching router 1101, feed back to the upstream label switching router 1101 a first control message including stopping the forwarding of all the messages of the equivalence class; When the forwarding equivalence class of the upstream label switching router 1101 allocates a label, the upstream label switching router 1101 feeds back a first control message including stopping the forwarding of the equivalence class message.
  • the notification message sending and receiving module 1212 is further configured to: forward the label switching router 1101 Sending a second notification message, where the second notification message includes a second control message of the label request message, determining whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class, and if the feedback is Forwarding the second control information of the message of the equivalence class; if there is no feedback, determining whether the first control message including stopping the message of the forwarding equivalence class is fed back, if the feedback is over, sending the retrieving pair forwarding equivalence class The second control information of the message.
  • Extending the first notification message extending the first control message to an extended state value of the first notification message, and/or extending the second notification message to extend the second control message to an extended state of the second notification message In the value.
  • This embodiment provides a control system for a label request message, as shown in FIG. 13, including an upstream label switching router 1101 and a downstream label switching router 1201: an upstream label switching router 1101.
  • the method is configured to: send a label request message to the downstream label switching router 1201, the label request message includes an identifier of a forwarding equivalence class, the label request message is used by the downstream label switching router 1201 to allocate a label for the forwarding equivalence class; and the downstream label switching router 1201 sets The receiving the label request message sent by the upstream label switching router 1101; when the label request message of the upstream label switching router 1101 is not satisfied, the downstream label switching router 1201 is further configured to: the first notification message fed back to the upstream label switching router 1101, The first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message.
  • the upstream label switching router 1101 is further configured to: receive the first notification message fed back by the downstream label switching router 1201,
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the present invention stops sending the label request message to the downstream label switching router by using the first notification message that is fed back, which can prevent the upstream label from repeatedly sending the label request message. Reduce the system's resource consumption in processing these messages, save resources, and improve system processing performance.

Abstract

The present invention relates to the field of communications, and disclosed are a label request message control method and system and upstream and downstream label switching router. The method comprises: in a downstream on-demand label release mode, firstly transmitting a label request message to a downstream label switching router; then receiving a first notification message fed back by the downstream label switching router if the downstream label switching router does not satisfy the label request message of the upstream label switching router, the first notification message comprising a first control message of the label request message and being used to control the transmission of the label request message; parsing the first notification message and controlling subsequent transmission of the label request message according to the parsed first control message.

Description

标签请求消息的控制方法和系统及上下游标签交换路由器Control method and system for label request message and upstream and downstream label switching router 技术领域Technical field
本申请涉及但不限于通信领域标签请求消息。This application relates to, but is not limited to, a communication domain tag request message.
背景技术Background technique
MPLS(Multiprotocol Label Switching,多协议标签交换)起源于IPv4(Internet Protocol version 4,因特网协议版本4),最初是为了提高转发速度而提出的,其核心技术可扩展到多种网络协议,包括IPv6(Internet Protocol version 6,因特网协议版本6)、IPX(Internet Packet Exchange,网际报文交换)、Appletalk和CLNP(Connectionless Network Protocol,无连接网络协议)等。MPLS中的“M”指的就是支持多种网络协议。MPLS (Multiprotocol Label Switching) originated from IPv4 (Internet Protocol version 4) and was originally proposed to improve forwarding speed. Its core technology can be extended to a variety of network protocols, including IPv6 ( Internet Protocol version 6, Internet Protocol version 6), IPX (Internet Packet Exchange), Appletalk, and CLNP (Connectionless Network Protocol). The "M" in MPLS refers to supporting multiple network protocols.
MPLS提供了一种将IP地址映射为简单的具有固定长度的标签,用于不同的包转发和包交换技术。与传统IP路由方式相比,它在数据转发时,只在网络边缘分析IP报文头,而不用在每一跳都分析IP报文头;固定长度标签被插入每一个包或信元的开始处,并且可被硬件用来在两个链接间快速交换包,从而节约了处理时间。MPLS具有以下优点:1)MPLS利用固定长度的标签来封装网络层分组,MPLS网络中的路由器不再根据目的IP地址查找路由,而是根据标签转发分组,加快了转发速度。2)分组转发路径上的每个节点通过分配标签,建立分组转发的虚拟通道,从而为网络层提供面向连接的服务。3)支持多种链路层协议和网络层协议。MPLS位于链路层和网络层之间,它可以建立在多种链路层协议(如PPP、ATM、帧中继、以太网等)之上,为多种网络层(IPv4、IPv6、IPX等)提供面向连接的服务。4)不仅支持多种路由协议,还支持基于策略的约束路由,可以满足多种新应用对网络的要求。5)MPLS最初是为提高路由器的转发速度而提出的一个协议,但是它的用途不仅仅局限于此,MPLS还可以用来构建VPN(Virtual Private Network,虚拟专用网络)网络、实现流量工程、提供QoS(Quality of Service,服务质量)保证等,受到大规模IP网络的青睐。MPLS provides a way to map IP addresses to simple fixed-length labels for different packet forwarding and packet switching techniques. Compared with the traditional IP routing method, it analyzes the IP packet header only at the edge of the network during data forwarding, instead of analyzing the IP packet header at each hop; the fixed length label is inserted into the beginning of each packet or cell. It can be used by hardware to quickly exchange packets between two links, saving processing time. MPLS has the following advantages: 1) MPLS encapsulates network layer packets by using fixed-length labels. Routers in the MPLS network no longer look up routes according to the destination IP address, but forward packets according to labels, speeding up the forwarding speed. 2) Each node on the packet forwarding path establishes a virtual channel for packet forwarding by assigning labels, thereby providing a connection-oriented service for the network layer. 3) Support multiple link layer protocols and network layer protocols. MPLS is located between the link layer and the network layer. It can be built on multiple link layer protocols (such as PPP, ATM, Frame Relay, Ethernet, etc.) for multiple network layers (IPv4, IPv6, IPX, etc.). ) Provides connection-oriented services. 4) It not only supports multiple routing protocols, but also supports policy-based constrained routing, which can meet the requirements of many new applications for the network. 5) MPLS was originally proposed as a protocol to improve the forwarding speed of routers, but its use is not limited to this. MPLS can also be used to build VPN (Virtual Private Network) networks, implement traffic engineering, and provide QoS (Quality of Service) guarantees are favored by large-scale IP networks.
DOD方式下标签请求消息的规定和处理说明在DOD方式下,对于某个 特定的FEC,上游LSR会明确地向该FEC下一跳的LSR发送标签请求消息,来通知该下游LSR为该FEC分配标签。当下游LSR满足协议要求时,会为该FEC分配标签,并发送标签映射消息来通告标签与该FEC的绑定。而下游LSR不满足协议要求时(如:下游LSR的路由表中并没有匹配到该FEC地址前缀的条目,或者有其它非标签资源不足的原因),下游LSR会向上游LSR回复一个状态码为“没有路由”的通知消息。按照RFC3031的要求,上游LSR后面会重新为该FEC向下游LSR发送标签请求消息。当上游LSR存在大量这样的需要发送请求标签消息的FEC,而下游LSR一直无法满足条件向上游LSR发送标签映射消息时,相同的过程会周而复始的进行下去,系统就会一直消耗较多资源来处理这些消息,从而影响到设备性能。The specification and processing description of the label request message in the DOD mode is in the DOD mode, for a certain For a specific FEC, the upstream LSR explicitly sends a label request message to the LSR of the FEC next hop to notify the downstream LSR to allocate a label for the FEC. When the downstream LSR meets the protocol requirements, the FEC is assigned a label and a label mapping message is sent to advertise the binding of the label to the FEC. If the downstream LSR does not meet the requirements of the protocol (for example, the routing table of the downstream LSR does not match the entry of the FEC address prefix, or the other non-label resources are insufficient), the downstream LSR replies with a status code to the upstream LSR. "No route" notification message. According to the requirements of RFC3031, the upstream LSR will resend the label request message to the downstream LSR for the FEC. When the upstream LSR has a large number of such FECs that need to send the request label message, and the downstream LSR cannot satisfy the condition to send the label mapping message to the upstream LSR, the same process will continue over and over again, and the system will always consume more resources to process. These messages, which affect device performance.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种标签请求消息的控制方法和系统及上、下游标签交换路由器,解决相关技术重复发送标签请求消息浪费资源的问题。This document provides a method and system for controlling a label request message and an upstream and downstream label switching router, which solves the problem that the related technology repeatedly transmits a label request message to waste resources.
一种标签请求消息的控制方法,包括:A method for controlling a label request message includes:
在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;Sending a label request message to the downstream label switching router in a downstream on-demand label issuing manner, the label request message includes an identifier of a forwarding equivalence class, and the label request message is used by the downstream label switching router. Forward the equivalence class to assign labels;
当下游标签交换路由器不满足上游标签交换路由器的标签请求消息时,接收所述下游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;Receiving, by the downstream label switching router, a first notification message that is fed back by the downstream label switching router, where the first notification message includes a first control message of the label request message, where the first label switching router does not meet the label request message of the upstream label switching router. A notification message is used to control the sending of the label request message;
解析所述第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。The first notification message is parsed, and the subsequent transmission of the label request message is controlled according to the parsed first control message.
在本发明的一种实施例中,所述第一控制消息包括停止对所述转发等价类的消息,和/或停止对所有转发等价类的消息;所述根据解析得到的控制 消息控制之后的标签请求消息的发送包括:如是解析得到的是停止所述转发等价类的消息,则停止对所述转发等价类发送标签请求消息;如是解析得到的是停止所有转发等价类的消息,则停止对所有转发等价类发送标签请求消息。In an embodiment of the present invention, the first control message includes stopping a message for the forwarding equivalence class, and/or stopping a message for all forwarding equivalence classes; the control obtained according to the parsing The sending of the label request message after the message control includes: if the parsing is to stop the forwarding equivalence class, stop sending the label request message to the forwarding equivalence class; if the parsing is to stop all forwarding equivalents The class message stops sending tag request messages to all forwarding equivalence classes.
在本发明的一种实施例中,在根据解析得到的第一控制消息控制之后的标签请求消息的发送之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,接收所述下游标签交换路由器发送的第二通知消息,所述第二通知消息包括标签请求消息的第二控制消息,所述第二控制消息包括恢复对所述转发等价类的消息,和/或恢复对所有转发等价类的消息;解析所述第二通知消息,如是解析得到的是恢复所述转发等价类的消息,则重新对所述转发等价类发送标签请求消息;如是解析得到的是恢复所有转发等价类的消息,则重新对所有转发等价类发送标签请求消息。In an embodiment of the present invention, after the sending of the label request message after the control according to the first control message obtained by the parsing, when the downstream label switching router satisfies the label request message of the upstream label switching router, receiving the downstream label And a second notification message sent by the switching router, where the second notification message includes a second control message of the label request message, where the second control message includes restoring the message to the forwarding equivalence class, and/or restoring to all forwarding Equivalence class message; parsing the second notification message, if the parsing is to recover the message of the forwarding equivalence class, resending the tag request message to the forwarding equivalence class; if the parsing is to recover all Forwards the message of the equivalence class and resends the tag request message to all forwarding equivalence classes.
在本发明的一种实施例中,所述第一控制消息为扩展到所述第一通知消息的扩展状态值中的消息,和/或所述第二控制消息为扩展到所述第二通知消息的扩展状态值中的消息。In an embodiment of the present invention, the first control message is a message extended to an extended state value of the first notification message, and/or the second control message is extended to the second notification The message in the extended status value of the message.
一种标签请求消息的控制方法,包括:A method for controlling a label request message includes:
在下游按需的标签发布方式下,接收上游标签交换路由器发送的标签请求消息,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于为所述转发等价类分配标签;Receiving, in a downstream on-demand label issuing manner, a label request message sent by an upstream label switching router, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used to allocate the forwarding equivalence class. label;
当不满足上游标签交换路由器的标签请求消息时,向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送。When the label request message of the upstream label switching router is not satisfied, the first notification message fed back to the upstream label switching router, the first notification message includes a first control message of the label request message, where the first notification message is used The control tag requests the sending of a message.
在本发明的一种实施例中,所述不满足上游标签交换路由器的标签请求消息包括无法为所述上游标签交换路由器所有的转发等价类分配标签,和/或无法为所述上游标签交换路由器的所述转发等价类分配标签;所述向所述上游标签交换路由器反馈的第一通知消息包括:当无法为所述上游标签交换路由器所有的转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所有转发等价类的消息的第一控制消息;当无法为所述上游标签交换路由器的所述转发等价类分配标签时,向所述上游标签交换路由器反馈包括 停止对所述转发等价类的消息的第一控制消息。In an embodiment of the present invention, the label request message that does not satisfy the upstream label switching router includes failing to allocate labels for all forwarding equivalence classes of the upstream label switching router, and/or cannot exchange for the upstream label. The forwarding equivalence class assignment label of the router; the first notification message fed back to the upstream label switching router includes: when the label cannot be allocated for all forwarding equivalence classes of the upstream label switching router, The upstream label switching router feedback includes a first control message for stopping forwarding of all messages of the equivalence class; when the label cannot be allocated for the forwarding equivalence class of the upstream label switching router, the feedback to the upstream label switching router includes Stopping the first control message for the message forwarding the equivalence class.
在本发明的一种实施例中,在向所述上游标签交换路由器反馈的第一通知消息之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,向所述上游标签交换路由器发送第二通知消息,所述第二通知消息包括标签请求消息的第二控制消息,判断之前是否反馈包括停止对所有转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所有转发等价类的消息的第二控制信息;如果没反馈过,判断之前是否反馈过包括停止对所述转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所述转发等价类的消息的第二控制信息。In an embodiment of the present invention, after the first notification message fed back to the upstream label switching router, when the downstream label switching router satisfies the label request message of the upstream label switching router, the sending is sent to the upstream label switching router. a second notification message, where the second notification message includes a second control message of the label request message, determining whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class, and if the feedback is All the second control information of the message forwarding the equivalence class; if not fed back, determining whether the first control message including stopping the message of the forwarding equivalence class is fed back, and if the feedback is over, the sending includes restoring the The second control information of the message forwarding the equivalence class.
在本发明的一种实施例中,对所述第一通知消息进行扩展,将所述第一控制消息扩展到所述第一通知消息的扩展状态值中,和/或对所述第二通知消息进行扩展,将所述第二控制消息扩展到所述第二通知消息的扩展状态值中。In an embodiment of the present invention, the first notification message is extended, the first control message is extended to an extended state value of the first notification message, and/or the second notification is The message is extended to extend the second control message to an extended status value of the second notification message.
一种标签请求消息的控制方法,包括:A method for controlling a label request message includes:
在下游按需的标签发布方式下,上游标签交换路由器发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;In the downstream on-demand label issuing mode, the upstream label switching router sends a label request message to the downstream label switching router, and the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for the downstream label switching. The router allocates a label to the forwarding equivalence class;
所述下游标签交换路由器接收所述上游标签交换路由器发送的标签请求消息;Receiving, by the downstream label switching router, a label request message sent by the upstream label switching router;
当不满足所述上游标签交换路由器的标签请求消息时,所述下游标签交换路由器向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;When the label request message of the upstream label switching router is not satisfied, the downstream label switching router feeds back a first notification message to the upstream label switching router, where the first notification message includes a first control message of the label request message. The first notification message is used to control sending of the label request message;
所述上游标签交换路由器接收所述下游标签交换路由器反馈的第一通知消息,解析所述第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。The upstream label switching router receives the first notification message fed back by the downstream label switching router, parses the first notification message, and controls transmission of the label request message after the first control message obtained by the parsing.
一种上游标签交换路由器,包括标签请求发送模块和通知消息接收模块: An upstream label switching router includes a label request sending module and a notification message receiving module:
所述标签请求发送模块设置为:在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;The label request sending module is configured to send a label request message to the downstream label switching router in a downstream on-demand label issuing manner, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for The downstream label switching router allocates a label to the forwarding equivalence class;
所述通知消息接收模块设置为:当下游标签交换路由器不满足上游标签交换路由器的标签请求消息时,接收所述下游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;以及,解析所述第一通知消息,根据解析得到的第一控制消息通知所述标签请求发送模块控制之后的标签请求消息的发送。The notification message receiving module is configured to: when the downstream label switching router does not satisfy the label request message of the upstream label switching router, receive the first notification message fed back by the downstream label switching router, where the first notification message includes a label request message The first control message, the first notification message is used to control the sending of the label request message; and the first notification message is parsed, and the label after the label request sending module is notified according to the first control message obtained by the parsing The request message is sent.
在本发明的一种实施例中,所述第一控制消息包括停止对所述转发等价类的消息,和/或停止对所有转发等价类的消息;所述通知消息接收模块还设置为:如是所述通知消息接收模块解析得到的是停止所述转发等价类的消息,则通知所述标签请求发送模块停止对所述转发等价类发送标签请求消息;如是解析得到的是停止所有转发等价类的消息,则通知所述标签请求发送模块停止对所有转发等价类发送标签请求消息。In an embodiment of the present invention, the first control message includes stopping a message for the forwarding equivalence class, and/or stopping a message for all forwarding equivalence classes; the notification message receiving module is further configured to If the notification message receiving module parses the message that stops the forwarding equivalence class, notifying the tag request sending module to stop sending the tag request message to the forwarding equivalence class; if the parsing is to stop all Forwarding the message of the equivalence class, notifying the tag request sending module to stop sending the tag request message to all forwarding equivalence classes.
在本发明的一种实施例中,在所述通知消息接收模块根据解析得到的第一控制消息通知所述标签请求发送模块控制之后的标签请求消息的发送之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,所述通知信息接收模块还设置为:接收所述下游标签交换路由器发送的第二通知消息,所述第二通知消息包括标签请求消息的第二控制消息,所述第二控制消息包括恢复对所述转发等价类的消息,和/或恢复对所有转发等价类的消息;所述通知信息接收模块还设置为:解析所述第二通知消息,如是解析得到的是恢复所述转发等价类的消息,则通知所述标签请求发送模块重新对所述转发等价类发送标签请求消息;如是解析得到的是恢复所有转发等价类的消息,则所述通知所述标签请求发送模块重新对所有转发等价类发送标签请求消息。In an embodiment of the present invention, after the notification message receiving module notifies the label request message after the label request sending module controls the first control message obtained by the parsing, the downstream label switching router satisfies the upstream label. When the label request message of the router is exchanged, the notification information receiving module is further configured to: receive a second notification message sent by the downstream label switching router, where the second notification message includes a second control message of the label request message, The second control message includes restoring the message to the forwarding equivalence class, and/or restoring the message to all forwarding equivalence classes; the notification information receiving module is further configured to: parse the second notification message, if parsed Recovering the message of the forwarding equivalence class, notifying the tag request sending module to resend the tag request message to the forwarding equivalence class; if the parsing is to recover all the forwarding equivalence class messages, Notifying the tag request sending module to resend the tag request message to all forwarding equivalence classes.
一种下游标签交换路由器,包括标签请求接收模块和通知消息发送模块: A downstream label switching router includes a label request receiving module and a notification message sending module:
所述标签请求接收模块设置为:在下游按需的标签发布方式下,接收上游标签交换路由器发送的标签请求消息,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息设置为:为所述转发等价类分配标签;The tag request receiving module is configured to: receive, in a downstream on-demand label issuing mode, a label request message sent by an upstream label switching router, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is set. To: assign a label to the forwarding equivalence class;
当不满足上游标签交换路由器的标签请求消息时,所述通知消息发送模块设置为:向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送。When the label request message of the upstream label switching router is not satisfied, the notification message sending module is configured to: a first notification message fed back to the upstream label switching router, where the first notification message includes a first control of the label request message The message, the first notification message is used to control the sending of the label request message.
在本发明的一种实施例中,所述不满足上游标签交换路由器的标签请求消息包括无法为所述上游标签交换路由器所有的转发等价类分配标签,和/或无法为所述上游标签交换路由器的所述转发等价类分配标签;所述通知消息发送模块还设置为:当无法为所述上游标签交换路由器所有的转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所有转发等价类的消息的第一控制消息;当无法为所述上游标签交换路由器的所述转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所述转发等价类的消息的第一控制消息。In an embodiment of the present invention, the label request message that does not satisfy the upstream label switching router includes failing to allocate labels for all forwarding equivalence classes of the upstream label switching router, and/or cannot exchange for the upstream label. The forwarding equivalence class assigning a label of the router; the notification message sending module is further configured to: when the label cannot be allocated for all the forwarding equivalence classes of the upstream label switching router, the feedback to the upstream label switching router includes stopping a first control message for all messages forwarding the equivalence class; when the label cannot be assigned to the forwarding equivalence class of the upstream label switching router, the feedback to the upstream label switching router includes stopping the forwarding of the forwarding equivalent The first control message of the class's message.
在本发明的一种实施例中,在向所述上游标签交换路由器反馈的第一通知消息之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,所述通知消息发送模块还设置为:向所述上游标签交换路由器发送第二通知消息,所述第二通知消息包括标签请求消息的第二控制消息,判断之前是否反馈包括停止对所有转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所有转发等价类的消息的第二控制信息;如果没反馈过,判断之前是否反馈过包括停止对所述转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所述转发等价类的消息的第二控制信息。In an embodiment of the present invention, after the first notification message fed back to the upstream label switching router, when the downstream label switching router satisfies the label request message of the upstream label switching router, the notification message sending module further sets And sending a second notification message to the upstream label switching router, where the second notification message includes a second control message of the label request message, and determining whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class. And if the feedback is over, sending the second control information including restoring the message to all forwarding equivalence classes; if not, determining whether the first control message including stopping the message of the forwarding equivalence class is fed back, If feedback is passed, second control information including a message to restore the forwarding equivalence class is transmitted.
一种标签请求消息的控制系统,包括上游标签交换路由器和下游标签交换路由器:A control system for tag request messages, including an upstream label switching router and a downstream label switching router:
所述上游标签交换路由器设置为:在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价 类分配标签;The upstream label switching router is configured to send a label request message to the downstream label switching router in a downstream on-demand label issuing manner, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for The downstream label switching router is equivalent to the forwarding Class assignment label;
所述下游标签交换路由器设置为:接收所述上游标签交换路由器发送的标签请求消息;The downstream label switching router is configured to: receive a label request message sent by the upstream label switching router;
当不满足所述上游标签交换路由器的标签请求消息时,所述下游标签交换路由器还设置为:向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;When the label request message of the upstream label switching router is not satisfied, the downstream label switching router is further configured to: a first notification message fed back to the upstream label switching router, where the first notification message includes a label request message a first control message, where the first notification message is used to control transmission of a label request message;
所述上游标签交换路由器还设置为:接收所述下游标签交换路由器反馈的第一通知消息,解析所述第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。The upstream label switching router is further configured to: receive a first notification message fed back by the downstream label switching router, parse the first notification message, and control transmission of the label request message after the first control message obtained by the parsing.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
本发明实施例提供一种标签请求消息的控制方法和系统及上、下游标签交换路由器,本申请标签请求消息的控制方法为:在下游按需的标签发布方式下,先发送标签请求消息给下游标签交换路由器,标签请求消息包括一个转发等价类的标识,标签请求消息用于下游标签交换路由器为转发等价类分配标签,然后当下游标签交换路由器不满足上游标签交换路由器的标签请求消息时,接收下游标签交换路由器反馈的第一通知消息,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送,解析第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送;当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,接收下游标签交换路由器反馈转发等价类的标签映射消息。与相关技术相比,当下游标签交换路由器无法满足上游标签交换路由器的标签请求消息时,根据反馈的第一通知消息来停止对下游标签交换路由器发送标签请求消息,能够避免上游标签重复发送标签请求消息,减少系统在处理这些消息的资源消耗,节约资源,提高系统的处理性能。 The embodiment of the present invention provides a method and a system for controlling a label request message, and an upstream and downstream label switching router. The method for controlling the label request message in the present application is to send a label request message to the downstream in a downstream label-on-demand label distribution mode. The label switching router, the label request message includes an identifier of the forwarding equivalence class, and the label request message is used by the downstream label switching router to allocate a label for the forwarding equivalence class, and then when the downstream label switching router does not satisfy the label request message of the upstream label switching router Receiving a first notification message fed back by the downstream label switching router, where the first notification message includes a first control message of the label request message, where the first notification message is used to control the sending of the label request message, and the first notification message is parsed according to the parsing The first control message controls the sending of the label request message; when the downstream label switching router satisfies the label request message of the upstream label switching router, the downstream label switching router receives the label mapping message of the forwarding equivalent class. Compared with the related art, when the downstream label switching router fails to meet the label request message of the upstream label switching router, the first label notification message is sent according to the feedback first notification message, so that the upstream label repeatedly sends the label request. Messages reduce the system's resource consumption in processing these messages, conserve resources, and improve system processing performance.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例一提供的标签请求消息的控制方法流程示意图;1 is a schematic flowchart of a method for controlling a label request message according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的标签请求消息的控制方法流程示意图一;2 is a schematic flowchart 1 of a method for controlling a label request message according to Embodiment 2 of the present invention;
图3为本发明实施例二提供的标签请求消息的控制方法流程示意图二;3 is a second schematic flowchart of a method for controlling a label request message according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的标签请求消息的控制方法流中上、下游标签交换路由器拓扑结构示意图;4 is a schematic diagram of a topology structure of an upstream and downstream label switching router in a method for controlling a label request message according to Embodiment 3 of the present invention;
图5为本发明实施例三提供的标签请求消息的控制方法流程示意图一;5 is a schematic flowchart 1 of a method for controlling a label request message according to Embodiment 3 of the present invention;
图6为本发明实施例三提供的标签请求消息的控制方法流程示意图二;6 is a second schematic flowchart of a method for controlling a label request message according to Embodiment 3 of the present invention;
图7为本发明实施例三提供的标签请求消息的控制方法流程示意图三;FIG. 7 is a schematic flowchart 3 of a method for controlling a label request message according to Embodiment 3 of the present invention;
图8为本发明实施例三提供的标签请求消息的控制方法流程示意图四;8 is a schematic flowchart 4 of a method for controlling a label request message according to Embodiment 3 of the present invention;
图9为本发明实施例三提供的标签请求消息的控制方法流程示意图五;9 is a schematic flowchart 5 of a method for controlling a label request message according to Embodiment 3 of the present invention;
图10为本发明实施例三提供的标签请求消息的控制方法流程示意图六;10 is a schematic flowchart 6 of a method for controlling a label request message according to Embodiment 3 of the present invention;
图11为本发明实施例四提供的上游标签交换路由器结构示意图;11 is a schematic structural diagram of an upstream label switching router according to Embodiment 4 of the present invention;
图12为本发明实施例四提供的下游标签交换路由器结构示意图;12 is a schematic structural diagram of a downstream label switching router according to Embodiment 4 of the present invention;
图13为本发明实施例四提供的标签请求消息的控制系统结构示意图。FIG. 13 is a schematic structural diagram of a control system of a label request message according to Embodiment 4 of the present invention.
本发明的实施方式Embodiments of the invention
实施例一Embodiment 1
本实施例涉及相关MPLS(Multiprotocol Label Switching,多协议标签交换)技术的概念有:1)FEC(Forwarding Equivalence Class,转发等价类)是MPLS中的一个重要概念。MPLS实际上是一种分类转发技术,它将具有相同转发处理方式(目的地相同、使用转发路径相同或具有相同服务等级等)的分组归为一类,称为转发等价类。属于相同转发等价类的分组在同一个MPLS网络中将获得完全相同的处理。2)标签是一个长度固定,仅具有本地 意义的标识符,用于唯一标识一个分组所属的FEC。一个标签只能代表一个FEC。标签长度为4个字节。3)LSP(Label Switched Path,标签交换路径)是指一个转发等价类在MPLS网络中经过的LSR构成的路径,即从入口LSR到出口LSR的一条单向路径,称为LSP。4)LSR(Label Switching Router,标签交换路由器)是具有标签发布能力和标签交换能力的设备,是MPLS网络中的基本元素。所有LSR都具有MPLS能力。由LSR构成的网络称为MPLS域。在分组转发路径上,数据分组的发送方路由器是一条LSP的上游LSR,接收方路由器是下游LSR。5)标签发布方式:标签发布就是将为FEC分配的标签通告给其他LSR。MPLS中使用的标签发布方式有两种:下游自主方式DU(Downstream Unsolicited,下游自主):对于一个特定的FEC,下游LSR为该FEC分配标签,并主动将标签通告给上游LSR。下游按需方式DOD(Downstream on Demand,下游按需):对于一个特定的FEC,上游LSR请求下游LSR为该FEC分配标签,下游LSR收到请求后,为该FEC分配标签并向上游LSR通告该标签。6)标签分配控制方式是指为FEC建立LSP的方式。标签分配控制方式分为两种:独立标签控制方式(Independent):LSR可以在任意时间向与它连接的LSR通告标签映射。有序标签控制方式(Ordered):LSR只有收到它的下游LSR为某个FEC分配的标签,或该LSR是此FEC的出口节点时,才会向它的上游LSR通告此FEC的标签映射。7)标签发布协议:标签发布协议是MPLS的信令协议,负责划分FEC、发布标签、建立维护LSP等。标签发布协议的种类较多,有专为标签发布而制定的协议,如LDP(Label Distribution Protocol,标签分发协议),也有扩展后支持标签发布的协议,如BGP、RSVP-TE。本发明实施例所属技术均是基于RFC 5036规定的LDP来实现的。The concepts of the related MPLS (Multiprotocol Label Switching) technology are as follows: 1) FEC (Forwarding Equivalence Class) is an important concept in MPLS. MPLS is actually a classification and forwarding technology. It classifies packets with the same forwarding processing method (same destination, same forwarding path or with the same service level, etc.) as a forwarding equivalence class. Packets belonging to the same forwarding equivalence class will get exactly the same processing in the same MPLS network. 2) The label is a fixed length and only has a local An identifier of meaning that uniquely identifies the FEC to which a packet belongs. A tag can only represent one FEC. The tag length is 4 bytes. 3) The LSP (Label Switched Path) is a path formed by the LSR that the forwarding equivalence class passes through in the MPLS network. That is, a unidirectional path from the ingress LSR to the egress LSR is called an LSP. 4) LSR (Label Switching Router) is a device with label publishing capability and label switching capability, and is a basic element in an MPLS network. All LSRs have MPLS capabilities. A network composed of LSRs is called an MPLS domain. On the packet forwarding path, the sender router of the data packet is the upstream LSR of an LSP, and the receiver router is the downstream LSR. 5) Label publishing method: Label publishing means that the label assigned to the FEC is advertised to other LSRs. There are two types of label advertisements used in MPLS: Downstream Unsolicited (DU): For a specific FEC, the downstream LSR allocates labels to the FEC and proactively advertises the labels to the upstream LSR. Downstream on-demand (DOD): For a specific FEC, the upstream LSR requests the downstream LSR to assign a label to the FEC. After receiving the request, the downstream LSR allocates a label to the FEC and advertises the label to the upstream LSR. label. 6) The label allocation control mode refers to the method of establishing an LSP for the FEC. There are two types of label allocation control methods: independent label control mode (Independent): The LSR can advertise label mapping to the LSR connected to it at any time. Ordered label control mode (Ordered): The LSR notifies the label mapping of the FEC to its upstream LSR only if it receives the label assigned by its downstream LSR to an FEC or the LSR is the egress node of the FEC. 7) Label publishing protocol: The label publishing protocol is a signaling protocol of MPLS, which is responsible for dividing FEC, issuing labels, and establishing maintenance LSPs. There are many types of label distribution protocols. There are protocols for label distribution, such as LDP (Label Distribution Protocol), and protocols that support label distribution after extension, such as BGP and RSVP-TE. The technologies of the embodiments of the present invention are all implemented based on LDP specified in RFC 5036.
本实施例的标签请求消息的控制方法,如图1所示,包括以下步骤:The method for controlling the label request message in this embodiment, as shown in FIG. 1, includes the following steps:
步骤S101:在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器;Step S101: Send a label request message to the downstream label switching router in the downstream on-demand label issuing mode;
在该步骤中,标签请求消息包括一个转发等价类的标识,标签请求消息用于下游标签交换路由器为转发等价类分配标签;上游LSR会对还没有分配标签的某个FEC发送标签请求给下游LSR。在DOD方式下,对于一个还没 有从下游LSR获得标签的某个转发等等价类FEC,上游LSR向该下游LSR发送标签请求消息;并且记录该标签请求消息的相关内容,以便后面收到反馈的第一通知消息时,能识别到相应的FEC。In this step, the label request message includes an identifier for forwarding the equivalence class, and the label request message is used by the downstream label switching router to allocate a label for the forwarding equivalence class; the upstream LSR sends a label request to a certain FEC that has not yet assigned the label. Downstream LSR. In the DOD mode, for one has not yet There is a forwarding equivalence class FEC that obtains a label from the downstream LSR, and the upstream LSR sends a label request message to the downstream LSR; and records related content of the label request message, so that when the first notification message of the feedback is received later, The corresponding FEC is identified.
步骤S102:当下游标签交换路由器不满足上游标签交换路由器的标签请求消息时,接收下游标签交换路由器反馈的第一通知消息;Step S102: Receive a first notification message fed back by the downstream label switching router when the downstream label switching router does not satisfy the label request message of the upstream label switching router;
在该步骤中,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送;下游LSR收到上游LSR针对某个FEC的标签请求消息时,判断出无法满足上游LSR的该标签请求消息时,会反馈第一通知消息给上游LSR,第一通知消息为用于控制标签请求消息发送的信息;应该理解为第一通知消息,是可以告诉上游LSR下游LSR无法满足标签请求消息消息的信息并且让其停止后续的标签请求消息的发送。其中,下游LSR无法满足上游LSR的该标签请求消息的判断结果包括两种情况:一、无法为该标签请求消息中的FEC分配标签和通告标签与FEC的绑定。例如:下游LSR学习路由不全,其路由表中没有匹配到该FEC地址前缀的条目。二、无法为上游LSR所有的下一跳为本LSR的FEC分配标签和通告标签与FEC的绑定。例如:该下游LSR已经配置了策略来禁止向该上游LSR来通告标签;或者该下游LSR使用了有序标签控制方式,并且还没有从其下游LSR收到过标签映射消息。下游LSR在收到上游LSR针对某个FEC的标签请求消息时,需要记录该标签请求消息的相关内容,以便后续发送“没有路由”通知消息时,可以正确填充协议要求的相关字段。In this step, the first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message. When the downstream LSR receives the label request message of the upstream LSR for a certain FEC, it is determined. When the label request message of the upstream LSR is not satisfied, the first notification message is fed back to the upstream LSR. The first notification message is used to control the sending of the label request message. It should be understood as the first notification message, which can be used to inform the upstream LSR. The LSR cannot satisfy the information of the label request message message and causes it to stop the transmission of the subsequent label request message. The result of the determination that the downstream LSR cannot satisfy the label request message of the upstream LSR includes two cases: 1. The FEC allocation label and the binding label of the advertisement label and the FEC cannot be allocated for the label request message. For example, the downstream LSR learns that the route is incomplete, and there is no entry in the routing table that matches the FEC address prefix. 2. The next hop of the upstream LSR cannot be used to assign labels and advertisement labels to the FEC of the LSR. For example, the downstream LSR has configured a policy to prohibit the advertisement of the label to the upstream LSR; or the downstream LSR uses the ordered label control mode and has not received the label mapping message from its downstream LSR. When receiving the label request message of the upstream LSR for an FEC, the downstream LSR needs to record the related content of the label request message, so that when the "no route" notification message is sent subsequently, the related fields required by the protocol can be correctly filled.
步骤S103:解析第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。Step S103: Parsing the first notification message, and controlling transmission of the subsequent label request message according to the parsed first control message.
在该步骤中,在上游LSR收到下游LSR反馈的第一通知消息后,会解析该第一通知消息的内容即解析第一控制消息,根据该第一控制消息的内容来控制标签请求消息的发送,这里的控制标签请求消息的发送包括停止发送某个请求的FEC标签请求消息,还包括停止发送所有没有分配的FEC标签请求消息。In this step, after receiving the first notification message fed back by the downstream LSR, the upstream LSR parses the content of the first notification message, that is, parses the first control message, and controls the label request message according to the content of the first control message. The sending, where the control tag request message is sent, includes stopping the sending of a request for the FEC tag request message, and further includes stopping sending all unassigned FEC tag request messages.
可选的,第一控制消息包括停止对转发等价类的消息,和/或停止对所有转发等价类的消息;在上述步骤S103中根据解析得到的控制消息控制之 后的标签请求消息的发送包括:如是解析得到的是停止转发等价类的消息,则停止对转发等价类发送标签请求消息;如是解析得到的是停止所有转发等价类的消息,则停止对所有转发等价类发送标签请求消息。可选的,第一通知消息包括扩展状态值,解析第一通知消息包括解析第一通知消息的扩展状态值,根据解析得到的扩展状态值来控制标签请求消息的发送。例如,第一通知消息可以为一个扩展的“没有路由”通知消息。第一控制消息包括停止对转发等价类的消息可以对应设置为第一预设扩展状态值,停止对所有转发等价类的消息可对应设置为第三预设扩展状态值。根据解析得到的扩展状态值控制标签请求消息的发送包括:如是解析得到的扩展状态值为第一预设扩展状态值,则停止对转发等价类发送标签请求消息,继续对其他转发等价类发送标签请求消息;如是解析得到的扩展状态值为第三预设扩展状态值,则停止对所有转发等价类发送标签请求消息。当第一通知消息为扩展的“没有路由”通知消息,那么就会解析扩展的“没有路由”通知消息扩展状态值来控制标签请求消息的发送。例如,当下游LSR收到上游LSR针对某个FEC的标签请求消息时,判断出无法满足上游LSR的该标签请求消息时,通过发送扩展的“没有路由”通知消息,来告知上游LSR不需要再重复发送标签请求消息了;上游收到该扩展的“没有路由”通知消息就停止发送标签请求消息,根据解析该扩展的“没有路由”通知消息中的扩展状态值来控制标签请求消息的发送。这样可以避免上游LSR重复发送标签请求消息,减少系统在处理这些消息的资源消耗,提高系统的处理性能。当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,接收下游标签交换路由器反馈转发等价类的标签映射消息。例如,当下游LSR满足协议要求时,会为该FEC分配标签,并发送标签映射消息来通告标签与该FEC的绑定。Optionally, the first control message includes stopping the message of the forwarding equivalence class, and/or stopping the message for all forwarding equivalence classes; and controlling, according to the parsed control message, in the foregoing step S103 The sending of the subsequent label request message includes: if the parsing is to stop forwarding the equivalence class message, the sending of the label request message to the forwarding equivalence class is stopped; if the parsing is to stop the message of all forwarding equivalence classes, the message is stopped. A label request message is sent for all forwarding equivalence classes. Optionally, the first notification message includes an extended status value, and parsing the first notification message includes parsing an extended status value of the first notification message, and controlling transmission of the label request message according to the parsed extended status value. For example, the first notification message can be an extended "no route" notification message. The first control message includes a message that stops the forwarding equivalence class and can be correspondingly set to a first preset extended state value, and the message for stopping all forwarding equivalence classes can be correspondingly set to a third preset extended state value. The sending of the label request message according to the extended state value obtained by the parsing comprises: if the parsed extended status value is the first preset extended status value, stopping sending the label request message to the forwarding equivalence class, and continuing to the other forwarding equivalence class Sending a label request message; if the parsed extended status value is a third preset extended status value, stopping sending a label request message to all forwarding equivalence classes. When the first notification message is an extended "no route" notification message, the extended "no route" notification message extension status value is parsed to control the transmission of the label request message. For example, when the downstream LSR receives the label request message of the upstream LSR for a certain FEC, and determines that the label request message of the upstream LSR cannot be satisfied, the downstream LSR is notified by sending an extended “no route” notification message. The label request message is repeatedly sent; the upstream receives the "no route" notification message of the extension to stop sending the label request message, and controls the sending of the label request message according to the extended status value in the "no route" notification message that parses the extension. This can prevent the upstream LSR from repeatedly sending label request messages, reducing the resource consumption of the system in processing these messages, and improving the processing performance of the system. When the downstream label switching router satisfies the label request message of the upstream label switching router, the downstream label switching router receives the label mapping message of the forwarding equivalent class. For example, when the downstream LSR meets the protocol requirements, the FEC is assigned a label and a label mapping message is sent to advertise the label's binding to the FEC.
在上述步骤S103后,即在根据解析得到的第一控制消息控制之后的标签请求消息的发送之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,接收下游标签交换路由器发送的第二通知消息,第二通知消息包括标签请求消息的第二控制消息,第二控制消息包括恢复对转发等价类的消息,和/或恢复对所有转发等价类的消息;解析第二通知消息,如是解析得到的是恢复转发等价类的消息,则重新对转发等价类发送标签请求消息;如是解析得到的是恢复所有转发等价类的消息,则重新对所有转发等价 类发送标签请求消息。可选的,第二通知消息包括扩展状态值,解析第二通知消息包括解析第二通知消息的扩展状态值,根据解析得到的扩展状态值来控制标签请求消息的发送。例如,第二通知消息可以为一个扩展的“没有路由”通知消息。第二控制消息包括恢复对转发等价类的消息可以对应设置为第二预设扩展状态值,恢复对所有转发等价类的消息可对应设置为第四预设扩展状态值。根据解析得到的扩展状态值控制标签请求消息的发送包括:如是解析得到的扩展状态值为第二预设扩展状态值,则恢复对转发等价类发送标签请求消息;如是解析得到的扩展状态值为第四预设扩展状态值,则恢复对所有转发等价类发送标签请求消息。当第二通知消息为扩展的“没有路由”通知消息,那么就会解析扩展的“没有路由”通知消息扩展状态值来控制标签请求消息的发送。例如,当下游LSR重新学习或者故障恢复后,判断出满足上游LSR的该标签请求消息时,通过发送扩展的“没有路由”通知消息,来告知上游LSR重新发送标签请求消息了;上游收到该扩展的“没有路由”通知消息就恢复发送标签请求消息,根据解析该扩展的“没有路由”通知消息中的扩展状态值来控制标签请求消息的发送。这样可以使上游LSR得知下游LSR情况,根据情况来控制标签请求消息的发送,提高系统的处理性能。After the foregoing step S103, that is, after the transmission of the label request message after the control according to the first control message obtained by the parsing, when the downstream label switching router satisfies the label request message of the upstream label switching router, the receiving of the label sent by the downstream label switching router a second notification message, the second notification message comprising a second control message of the label request message, the second control message comprising: restoring the message to the forwarding equivalence class, and/or restoring the message to all forwarding equivalence classes; parsing the second notification message If the parsing is to restore the forwarding equivalence class message, the label request message is sent again to the forwarding equivalence class; if the parsing is to recover all the forwarding equivalence class messages, the forwarding is equivalent to all forwarding. The class sends a tag request message. Optionally, the second notification message includes an extended status value, and parsing the second notification message includes parsing an extended status value of the second notification message, and controlling transmission of the label request message according to the parsed extended status value. For example, the second notification message can be an extended "no route" notification message. The second control message includes a message that restores the forwarding equivalence class, and can be correspondingly set to a second preset extended state value, and the message for restoring all forwarding equivalence classes can be correspondingly set to a fourth preset extended state value. The sending of the label request message according to the extended state value obtained by the parsing comprises: if the parsed extended status value is the second preset extended status value, resuming sending the label request message to the forwarding equivalence class; if the parsed extended status value is obtained If the state value is extended for the fourth preset, the label request message is resumed for all forwarding equivalence classes. When the second notification message is an extended "no route" notification message, the extended "no route" notification message extension status value is parsed to control the transmission of the label request message. For example, when the downstream LSR re-learns or recovers the fault, and determines that the label request message of the upstream LSR is satisfied, the upstream LSR is notified to resend the label request message by sending an extended “no route” notification message; The extended "no route" notification message resumes sending the tag request message, and controls the transmission of the tag request message based on the extended status value in the "no route" notification message parsing the extension. In this way, the upstream LSR can know the downstream LSR situation, and control the sending of the label request message according to the situation, thereby improving the processing performance of the system.
实施例二Embodiment 2
本实施例的标签请求消息的控制方法,如图2所示,包括以下步骤:The method for controlling the label request message in this embodiment, as shown in FIG. 2, includes the following steps:
步骤S201:在下游按需的标签发布方式下,接收上游标签交换路由器发送的标签请求消息;Step S201: Receive a label request message sent by an upstream label switching router in a downstream label-on-demand label issuing manner;
在该步骤中,标签请求消息包括一个转发等价类的标识,标签请求消息用于下游标签交换路由器为转发等价类分配标签。In this step, the label request message includes an identifier for forwarding the equivalence class, and the label request message is used by the downstream label switching router to allocate labels for the forwarding equivalence class.
步骤S202:当不满足上游标签交换路由器的标签请求消息时,向上游标签交换路由器反馈的第一通知消息;Step S202: When the label request message of the upstream label switching router is not met, the first notification message fed back to the upstream label switching router;
在该步骤中,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送。当满足上游标签交换路由器的标签请 求消息时,为转发等价类分配标签,并向上游标签交换路由器反馈转发等价类的标签映射消息。In this step, the first notification message includes a first control message of the label request message, and the first notification message is used to control the transmission of the label request message. When meeting the label of the upstream label switching router, please When requesting a message, the label is assigned to the forwarding equivalence class, and the upstream label switching router feeds back the label mapping message of the equivalence class.
在步骤S202中,不满足上游标签交换路由器的标签请求消息包括无法为上游标签交换路由器所有的转发等价类分配标签,和/或无法为上游标签交换路由器的转发等价类分配标签;向上游标签交换路由器反馈的第一通知消息包括:当无法为上游标签交换路由器所有的转发等价类分配标签时,向上游标签交换路由器反馈包括停止对所有转发等价类的消息的第一控制消息;当无法为上游标签交换路由器的转发等价类分配标签时,向上游标签交换路由器反馈包括停止对转发等价类的消息的第一控制消息。In step S202, the label request message that does not satisfy the upstream label switching router includes that the forwarding equivalence class of the upstream label switching router cannot be assigned a label, and/or the forwarding equivalence class of the upstream label switching router cannot be assigned a label; The first notification message fed back by the label switching router includes: when the label cannot be allocated to all forwarding equivalence classes of the upstream label switching router, feeding back to the upstream label switching router a first control message including stopping the forwarding of all the messages of the equivalence class; When the label cannot be assigned to the forwarding equivalence class of the upstream label switching router, the first label control message including the stop of the forwarding of the equivalence class message is fed back to the upstream label switching router.
在步骤S202后,即在根据解析得到的第一控制消息控制之后的标签请求消息的发送之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,向上游标签交换路由器发送第二通知消息,第二通知消息包括标签请求消息的第二控制消息,判断之前是否反馈包括停止对所有转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所有转发等价类的消息的第二控制信息;如果没反馈过,判断之前是否反馈过包括停止对转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对转发等价类的消息的第二控制信息。After the step S202, that is, after the transmission of the label request message after the control according to the first control message obtained by the parsing, when the downstream label switching router satisfies the label request message of the upstream label switching router, the second notification is sent to the upstream label switching router. The second notification message includes a second control message of the label request message, and determines whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class. If the feedback is sent, the sending includes restoring all forwarding equivalence classes. The second control information of the message; if there is no feedback, determine whether the first control message including stopping the message of the forwarding equivalence class is fed back, and if the feedback is over, transmitting the message including restoring the message to the forwarding equivalence class Two control information.
可以对第一通知消息进行扩展,将第一控制消息扩展到第一通知消息的扩展状态值中,和/或对第二通知消息进行扩展,将第二控制消息扩展到第二通知消息的扩展状态值中。The first notification message may be extended to extend the first control message to an extended status value of the first notification message and/or to extend the second notification message to extend the second control message to an extension of the second notification message In the status value.
本实施例还提供另外标签请求消息的控制方法,如图3所示,包括以下步骤:This embodiment further provides a method for controlling another label request message, as shown in FIG. 3, including the following steps:
步骤S301:在下游按需的标签发布方式下,上游标签交换路由器发送标签请求消息给下游标签交换路由器;Step S301: In the downstream on-demand label issuing mode, the upstream label switching router sends a label request message to the downstream label switching router.
步骤S302:下游标签交换路由器接收上游标签交换路由器发送的标签请求消息;Step S302: The downstream label switching router receives the label request message sent by the upstream label switching router.
在该步骤中,标签请求消息包括一个转发等价类的标识,标签请求消息用于下游标签交换路由器为转发等价类分配标签。 In this step, the label request message includes an identifier for forwarding the equivalence class, and the label request message is used by the downstream label switching router to allocate labels for the forwarding equivalence class.
步骤S303:当不满足上游标签交换路由器的标签请求消息时,下游标签交换路由器向上游标签交换路由器反馈的第一通知消息;Step S303: When the label request message of the upstream label switching router is not met, the downstream label switching router feeds back the first notification message to the upstream label switching router;
在该步骤中,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送;In this step, the first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message;
步骤S304:上游标签交换路由器接收下游标签交换路由器反馈的第一通知消息,解析第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送;当满足上游标签交换路由器的标签请求消息时,下游标签交换路由器为转发等价类分配标签,并向上游标签交换路由器反馈转发等价类的标签映射消息;上游标签交换路由器接收下游标签交换路由器反馈转发等价类的标签映射消息。Step S304: The upstream label switching router receives the first notification message fed back by the downstream label switching router, parses the first notification message, and controls the sending of the label request message after the first control message obtained by the parsing; when the label of the upstream label switching router is satisfied When requesting a message, the downstream label switching router allocates a label to the forwarding equivalence class, and feeds back the label mapping message of the equivalence class to the upstream label switching router; the upstream label switching router receives the label mapping message of the downstream label switching router feedback forwarding equivalence class .
实施例三Embodiment 3
下面对本发明实施例的在DOD方式下减少标签请求消息的方法进行说明。在本实施例中,第一通知消息和第二通知消息为携带扩展状态TLV的“没有路由”通知消息,第一通知消息和第二通知消息不仅限于如此,其他可以用来控制标签请求的消息都可以,这里的第一控制消息和第二控制消息分别为第一通知消息中的扩展状态值和第二通知消息中的扩展状态值。第一通知消息和第二通知消息可以定义为包含扩展状态值的“没有路由”通知消息。例如,采用在RFC5036定义的LDP通知消息的可选参数中携带扩展状态TLV结构,以不同的扩展状态值来指示上游LSR是否继续发送标签请求消息。本发明实施例所述的扩展状态TLV结构的U-bit需要设置为1;F-bit需要设置为0。扩展状态值为4字节长度的数值。为了便于叙述,这里的扩展状态值使用的值,可以按如下定义:0x3F000001:表示不需要为该FEC继续发送标签请求消息;0x3F000002:表示需要为该FEC继续发送标签请求消息;0x3F000003:表示不需要为下一跳为该下游LSR且还没有从其收到标签的所有FEC继续发送标签请求消息;0x3F000004:表示需要重新为下一跳为该下游LSR且还没有从其收到标签的所有FEC发送标签请求消息。当然,不仅限于上述扩展状态值的定义,这里的值可以根据情况进行定义。其中,上游LSR为某个FEC发送标签请求消息后,收到下游LSR回复的“没有路由” 通知消息时,判断是否存在扩展状态TLV结构,如果存在则继续判断扩展状态值。如果该值为0x3F000001,则后续不再向该下游LSR重发此FEC的标签请求消息;如果该值为0x3F000003,则后续不再为下一跳为该下游LSR且还没有从其收到标签的所有FEC继续发送标签请求消息。其中,当下游LSR的配置或者路由学习等发生变化,可以满足之前上游LSR发送的标签请求消息时,下游LSR根据之前发送的“没有路由”通知消息,重发一次仅扩展状态值不同的“没有路由”通知消息。如果之前发生过扩展状态值为0x3F000003的“没有路由”通知消息,则重发一次扩展状态值改为0x3F000004的“没有路由”通知消息。而如果之前没有发送过扩展状态值为0x3F000003的“没有路由”通知消息时,则为已经满足条件,并且之前发送过扩展状态值为0x3F000001的“没有路由”通知消息的所有FEC重发一次扩展状态值改为0x3F000002的“没有路由”通知消息。其中,当上游LSR收到下游LSR重新发送的“没有路由”通知消息时,如果扩展状态值为0x3F000004,则上游LSR开始重新为下一跳为该下游LSR且还没有从其收到标签的所有FEC发送标签请求消息。而如果该值为0x3F000002,上游LSR只为该消息对应的FEC发送标签请求消息。A method for reducing a label request message in the DOD mode according to an embodiment of the present invention is described below. In this embodiment, the first notification message and the second notification message are “no route” notification messages carrying the extended status TLV, and the first notification message and the second notification message are not limited to such other messages that can be used to control the label request. The first control message and the second control message are respectively an extended state value in the first notification message and an extended state value in the second notification message. The first notification message and the second notification message may be defined as a "no route" notification message containing an extended status value. For example, the extended state TLV structure is carried in the optional parameter of the LDP notification message defined in RFC 5036, and the extended LSR is used to indicate whether the upstream LSR continues to send the label request message. The U-bit of the extended state TLV structure described in the embodiment of the present invention needs to be set to 1; the F-bit needs to be set to 0. The extended status value is a value of 4 bytes in length. For convenience of description, the value used by the extended status value herein may be defined as follows: 0x3F000001: indicating that the label request message does not need to be sent for the FEC; 0x3F000002: indicating that the label request message needs to be continuously sent for the FEC; 0x3F000003: indicating that it is not needed Continuing to send a label request message for all FECs whose next hop is the downstream LSR and has not received the label from it; 0x3F000004: indicates that all FECs that need to re-send the downstream LSR for the downstream LSR and have not received the label from it yet Tag request message. Of course, it is not limited to the definition of the above extended state value, and the value here can be defined according to the situation. After the upstream LSR sends a label request message to a certain FEC, it receives a "no route" from the downstream LSR. When the message is notified, it is judged whether there is an extended state TLV structure, and if it exists, the extended state value is continuously judged. If the value is 0x3F000001, the label request message of the FEC is not retransmitted to the downstream LSR; if the value is 0x3F000003, then the next hop is no longer the next LSR and the label has not been received yet. All FECs continue to send tag request messages. When the configuration of the downstream LSR or the route learning is changed, the label request message sent by the upstream LSR can be satisfied. The downstream LSR resends only the extended status value according to the previously sent “no route” notification message. Routing" notification message. If a "no route" notification message with an extended status value of 0x3F000003 has occurred before, a "no route" notification message with the extended status value changed to 0x3F000004 is resent. If the "no route" notification message with the extended status value of 0x3F000003 has not been sent before, then all the FECs that have satisfied the condition and have previously sent the "no route" notification message with the extended status value of 0x3F000001 resend the extended status. The value is changed to the "no route" notification message of 0x3F000002. If the upstream LSR receives the "no route" notification message retransmitted by the downstream LSR, if the extended state value is 0x3F000004, the upstream LSR starts to re-take the next hop as the downstream LSR and has not received all the labels from it. The FEC sends a label request message. If the value is 0x3F000002, the upstream LSR sends a label request message only for the FEC corresponding to the message.
本发明实施例的一种MPLS网络在DOD方式下减少标签请求消息的方法由上游LSR和下游LSR的协同处理。The method for reducing the label request message in the DOD mode of the MPLS network in the embodiment of the present invention is coordinated by the upstream LSR and the downstream LSR.
上游LSR的处理步骤如图4所示,包括:The processing steps of the upstream LSR are as shown in Figure 4, including:
步骤S401:在DOD方式下,对于一个还没有从下游LSR获得标签的特定FEC,上游LSR向该下游LSR发送标签请求消息;并且记录该标签请求消息的相关内容;Step S401: In the DOD mode, for a specific FEC that has not obtained a label from the downstream LSR, the upstream LSR sends a label request message to the downstream LSR; and records related content of the label request message;
步骤S402:当收到下游LSR回复的“没有路由”通知消息时,判断是否存在扩展状态TLV结构;如果存在该TLV结构,则进行步骤S403处理,否则按LDP协议规定的原有流程处理;Step S402: When receiving the "no route" notification message replied by the downstream LSR, determine whether there is an extended state TLV structure; if the TLV structure exists, proceed to step S403, otherwise, according to the original process specified by the LDP protocol;
步骤S403:继续判断该TLV结构中的扩展状态值。如果该值为0x3F000003,则后续不再为下一跳为该下游LSR且还没有从其收到标签的所有FEC继续发送标签请求消息;如果该值为0x3F000001,则后续不再向该下游LSR重发此FEC的标签请求消息,并继续处理其它的FEC;如果该值为 0x3F000004,则进行步骤S404处理;如果该值为0x3F000002,则进行步骤S405处理;而如果该值为本发明实施例定义的0x3F000001至0x3F000004之外的值时,则后续需要继续向该下游LSR发送此FEC的标签请求消息。Step S403: Continue to judge the extended state value in the TLV structure. If the value is 0x3F000003, the label request message is no longer sent for all the FECs whose next hop is the downstream LSR and has not received the label from the downstream LSR. If the value is 0x3F000001, the subsequent LSR is no longer attached to the downstream LSR. Send a label request message for this FEC and continue processing other FECs; if the value is 0x3F000004, proceed to step S404; if the value is 0x3F000002, proceed to step S405; and if the value is a value other than 0x3F000001 to 0x3F000004 defined in the embodiment of the present invention, then it is necessary to continue to send the downstream LSR FEC tag request message.
步骤S404:上游LSR开始重新为下一跳为该下游LSR且还没有从其收到标签的所有FEC发送标签请求消息;Step S404: The upstream LSR starts to resend the label request message for all the FECs whose next hop is the downstream LSR and has not received the label from it;
步骤S405:上游LSR只为该消息对应的FEC发送标签请求消息。Step S405: The upstream LSR sends a label request message only for the FEC corresponding to the message.
下游LSR的处理如图5所示,包括:The processing of the downstream LSR is as shown in Figure 5, including:
步骤S501:下游LSR收到上游LSR针对某个FEC的标签请求消息时,记录该标签请求消息的相关内容;Step S501: When the downstream LSR receives the label request message of the upstream LSR for a certain FEC, the related content of the label request message is recorded;
步骤S502:判断是否满足上游LSR的该标签请求消息和为该FEC分配标签;如果不是标签资源不足的原因而无法为请标签请求消息对应的FEC分配标签时,则继续判断当前的LDP连接是否是DOD方式;如果是DOD方式,则进行步骤S503处理,否则按LDP协议规定的原有流程处理;Step S502: determining whether the label request message of the upstream LSR is satisfied and assigning a label to the FEC; if the label is not available for the FEC corresponding to the label request message, the method further determines whether the current LDP connection is DOD mode; if it is the DOD mode, the process proceeds to step S503; otherwise, it is processed according to the original process specified by the LDP protocol;
步骤S503:判断该下游LSR是否无法为该上游LSR所有的下一跳为本LSR的FEC分配标签和通告标签与FEC的绑定;如果是,则进行步骤S504处理;否则进行步骤S505处理;Step S503: determining whether the downstream LSR cannot allocate the label and the label of the notification label and the FEC to the FEC of the LSR for the next hop of the upstream LSR; if yes, proceed to step S504; otherwise, perform the process of step S505;
步骤S504:向上游LSR发送携带扩展状态TLV的“没有路由”通知消息;其中,扩展状态TLV的U-bit设置为1,F-bit设置为0,扩展状态值设置0x3F000003;然后进行步骤S506处理;Step S504: Send a “No Route” notification message carrying the extended status TLV to the upstream LSR. The U-bit of the extended status TLV is set to 1, the F-bit is set to 0, and the extended status value is set to 0x3F000003. Then, the process proceeds to step S506. ;
步骤S505:向上游LSR发送携带扩展状态TLV的“没有路由”通知消息;其中,扩展状态TLV的U-bit设置为1,F-bit设置为0,扩展状态值设置0x3F000001;Step S505: Send a "No Route" notification message carrying the extended state TLV to the upstream LSR; wherein, the U-bit of the extended state TLV is set to 1, the F-bit is set to 0, and the extended state value is set to 0x3F000001;
当下游LSR的配置或者路由学习等发生变化,可以满足之前上游LSR发送的标签请求消息时,重发一次仅扩展状态值不同的“没有路由”通知消息;如果发送过扩展状态值为0x3F000003的“没有路由”通知消息,则重发一次扩展状态值改为0x3F000004的“没有路由”通知消息。如果下游LSR之前没有发送过扩展状态值为0x3F000003的“没有路由”通知消息时,则为已经满足条件,并且之前发送过扩展状态值为0x3F000001的“没有路 由”通知消息的所有FEC重发一次扩展状态值改为0x3F000002的“没有路由”通知消息。When the configuration of the downstream LSR or the route learning changes, the label request message sent by the upstream LSR can be resent, and the "no route" notification message with different extended state values is resent; if the extended status value is 0x3F000003 If there is no route notification message, the "no route" notification message with the extended status value changed to 0x3F000004 is resent. If the downstream LSR has not sent a "no route" notification message with an extended status value of 0x3F000003, then the condition has been met and the extended status value of 0x3F000001 has been sent before. All FECs of the notification message resend the "no route" notification message with the extended status value changed to 0x3F000002.
下面结合附图6-9进行详细说明:The following is a detailed description with reference to Figures 6-9:
如图6所示,箭头所指是所有FEC在每个LSR上的下一跳方向的指示。对于某个FEC,会在R1与R6这两个LSR之间形成了2条LSP,分别是LSP1:R1->R2->R4->R6和LSP2:R1->R3->R5->R6。R1与R2,R3之间的标签发布方式为DOD方式,R2、R3都是R1设备的下游设备。正常情况下,该FEC对应的数据流量在LSP1和LSP2上进行转发。当R4节点出现故障后,可以让R2撤销为R1分配的所有FEC的标签,以防止数量流量在已经出现故障的LSP1路径上进行转发。在R4节点故障排除之前,如果按照目前的协议规定,R1需要为所有下一跳为R2但还没有从其获得标签的FEC向R2发送标签请求消息。As shown in Figure 6, the arrow indicates an indication of the next hop direction of all FECs on each LSR. For a certain FEC, two LSPs are formed between the two LSRs, R1 and R6, which are LSP1: R1->R2->R4->R6 and LSP2: R1->R3->R5->R6. The label distribution mode between R1 and R2 and R3 is DOD mode, and R2 and R3 are both downstream devices of the R1 device. Normally, the data traffic corresponding to the FEC is forwarded on LSP1 and LSP2. After the R4 node fails, R2 can be revoked as the label of all FECs allocated by R1 to prevent the quantity traffic from being forwarded on the LSP1 path that has failed. Before the R4 node is troubleshooting, if the current protocol stipulates, R1 needs to send a label request message to R2 for all FECs whose next hop is R2 but has not yet obtained a label from it.
下面结合附图对技术方案在对R1和R2上的实施作进一步的详细描述:The implementation of the technical solution on R1 and R2 will be further described in detail below with reference to the accompanying drawings:
如图7所示,上游LSR发送标签请求消息后收到下游LSR回复“没有路由”通知消息的处理,包括以下步骤:As shown in Figure 7, after receiving the label request message, the upstream LSR receives the response of the downstream LSR replying to the "no route" notification message, including the following steps:
步骤S701,作为上游LSR的R1向其下游的R2发送某个FEC的标签请求消息。并等待R2的回复信息后才进入步骤S702处理。In step S701, R1, which is the upstream LSR, sends a label request message of a certain FEC to R2 downstream thereof. After waiting for the reply information of R2, the process proceeds to step S702.
如图8所示,在步骤S801,R2收到R1发送的标签请求消息后,记录该消息的相关内容;在步骤S802,判断出无法满足该R1的标签请求消息;在步骤S803,判断出当前的LDP连接是DOD方式;并在步骤S804,判断出R2已经无法为R1上所有的下一跳为本LSR的FEC分配标签了;然后在步骤S805,向R1发送携带扩展状态TLV的“没有路由”通知消息,其扩展状态值为0x3F000003。如果在步骤S803,判断出当前的LDP连接不是DOD方式,则执行步骤S807,按标签分发协议规定的流程处理。如果在步骤804,判断结果为否,则向R1发送携带扩展状态TLV的“没有路由”通知消息,其扩展状态值为0x3F000001。As shown in FIG. 8, in step S801, after receiving the label request message sent by R1, R2 records the related content of the message; in step S802, it is determined that the label request message of the R1 cannot be satisfied; in step S803, it is determined that the current The LDP connection is in the DOD mode; and in step S804, it is determined that R2 has been unable to assign a label to the FEC of the LSR for all the next hops on the R1; then, in step S805, the "no route carrying the extended status TLV is sent to the R1. The notification message has an extended status value of 0x3F000003. If it is determined in step S803 that the current LDP connection is not the DOD mode, step S807 is performed to process according to the flow specified by the label distribution protocol. If the result of the determination is no at step 804, a "no route" notification message carrying the extended status TLV is sent to R1 with an extended status value of 0x3F000001.
步骤S702,R1收到R2回复“没有路由”通知消息,在判断出收到的“没有路由”通知消息中含有扩展状态TLV后,进入步骤S703; Step S702, R1 receives R2 reply "no route" notification message, after determining that the received "no route" notification message contains the extended state TLV, proceeds to step S703;
步骤S703,R1判断出扩展状态TLV中的扩展状态值属于本发明实施例定义的范围后,进入步骤S704;Step S703, R1 determines that the extended state value in the extended state TLV belongs to the scope defined by the embodiment of the present invention, proceeds to step S704;
步骤S704,判断扩展状态值为0x3F000003后,进入步骤S705;判断扩展状态值为0x3F000001后,进入步骤S706;Step S704, after determining that the extended state value is 0x3F000003, proceeds to step S705; after determining that the extended state value is 0x3F000001, proceeds to step S706;
步骤S705,R1不再为下一跳为R2的所有FEC发送标签请求消息了,结束流程。In step S705, R1 no longer sends a label request message for all FECs whose next hop is R2, and the process ends.
步骤S706,R1后续不再向R2重发此FEC的标签请求消息,结束本流程。In step S706, R1 does not resend the label request message of the FEC to R2, and the process ends.
如图9所示,当R4节点故障排除后,R2发现可以为这些FEC恢复R1->R2->R4->R6对应的LSP了,会重发一次仅扩展状态值不同的“没有路由”通知消息,包括以下步骤:As shown in Figure 9, after the R4 node is faulty, R2 finds that the LSPs corresponding to R1->R2->R4->R6 can be restored for these FECs, and only the "no route" notification with different extended state values is resent. The message includes the following steps:
步骤S901,R2在确认R4恢复后,自己可以满足之前上游LSR发送的标签请求消息了,进入步骤S902;Step S901, after confirming that R4 is restored, R2 can satisfy the label request message sent by the previous upstream LSR, and proceeds to step S902;
步骤S902,如果R2判断出之前发送过扩展状态值0x3F000003的“没有路由”通知消息,进入步骤S903;如果R2判断出之前发送过扩展状态值0x3F000001的“没有路由”通知消息,进入步骤S904;Step S902, if R2 determines that the "no route" notification message of the extended state value 0x3F000003 has been sent before, proceeds to step S903; if R2 determines that the "no route" notification message of the extended state value 0x3F000001 has been previously sent, proceeds to step S904;
步骤S903,R2向R1重发一次扩展状态值改为0x3F000004的“没有路由”通知消息,结束本流程。In step S903, R2 resends the "no route" notification message whose extension status value is changed to 0x3F000004 to R1, and ends the flow.
步骤S904,为已经满足条件,且之前发送过扩展状态值0x3F000001的“没有路由”通知消息的FEC重发一次扩展状态值改为0x3F000002的“没有路由”通知消息,结束本流程。Step S904, the FEC resends the "no route" notification message whose extension state value is changed to 0x3F000002 for the FEC that has satisfied the condition and has previously sent the "no route" notification message of the extended state value 0x3F000001, and ends the flow.
如图10所示,R1重新收到R2发送的含扩展状态TLV的“没有路由”通知消息后,重新开始向R2发送标签请求消息,包括以下步骤:As shown in Figure 10, after receiving the "no route" notification message with the extended status TLV sent by R2, R1 restarts sending the label request message to R2, including the following steps:
步骤S1001,R1重新收到R2发送的含扩展状态TLV的“没有路由”通知消息,进入步骤S1002;Step S1001, R1 re-receives the "no route" notification message containing the extended state TLV sent by R2, proceeds to step S1002;
步骤S1002,如果R1判断出扩展状态值为0x3F000004,进入步骤S1003;如果R1判断出扩展状态值为0x3F000001,进入步骤S1004;Step S1002, if R1 determines that the extended state value is 0x3F000004, proceeds to step S1003; if R1 determines that the extended state value is 0x3F000001, proceeds to step S1004;
步骤S1003,R1开始重新为下一跳为R2的且还没有从其收到标签绑定的所有FEC发送标签请求消息,流程结束。 In step S1003, R1 starts to resend the label request message for all FECs whose next hop is R2 and has not received the label binding from the same, and the process ends.
步骤S1004,R1为该消息对应的FEC发送标签请求消息,流程结束。In step S1004, R1 sends a label request message to the FEC corresponding to the message, and the process ends.
实施例四Embodiment 4
本实施例提供一种上游标签交换路由器1101,如图11所示,包括标签请求发送模块1111和通知消息接收模块1112:标签请求发送模块1111设置为:发送标签请求消息给下游标签交换路由器1201,标签请求消息包括一个转发等价类的标识,标签请求消息用于下游标签交换路由器1201为转发等价类分配标签;当下游标签交换路由器1201不满足上游标签交换路由器1101的标签请求消息时,通知消息接收模块1112设置为:接收下游标签交换路由器1201反馈的第一通知消息,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送;通知消息接收模块1112还设置为:解析第一通知消息,根据解析得到的第一控制消息通知标签请求发送模块1111控制之后的标签请求消息的发送。The present embodiment provides an upstream label switching router 1101. As shown in FIG. 11, the label request sending module 1111 and the notification message receiving module 1112 are provided. The label request sending module 1111 is configured to send a label request message to the downstream label switching router 1201. The label request message includes an identifier of a forwarding equivalence class, and the label request message is used by the downstream label switching router 1201 to allocate a label for the forwarding equivalence class; when the downstream label switching router 1201 does not satisfy the label request message of the upstream label switching router 1101, the notification is notified. The message receiving module 1112 is configured to: receive a first notification message fed back by the downstream label switching router 1201, where the first notification message includes a first control message of the label request message, the first notification message is used to control the sending of the label request message, and the notification message is received. The module 1112 is further configured to: parse the first notification message, and notify the label request sending module 1111 to send the label request message according to the parsed first control message.
第一控制消息包括停止对转发等价类的消息,和/或停止对所有转发等价类的消息;通知消息接收模块1112还设置为:如是解析得到的是停止转发等价类的消息,则通知标签请求发送模块1111停止对转发等价类发送标签请求消息;如是解析得到的是停止所有转发等价类的消息,则通知标签请求发送模块1111停止对所有转发等价类发送标签请求消息。The first control message includes stopping the message to the forwarding equivalence class, and/or stopping the message for all forwarding equivalence classes; the notification message receiving module 1112 is further configured to: if the parsing is to stop forwarding the equivalence class message, The notification tag request sending module 1111 stops sending the tag request message to the forwarding equivalence class; if the parsing is to stop the message of all forwarding equivalence classes, the notification tag request sending module 1111 stops sending the tag request message to all forwarding equivalence classes.
在通知消息接收模块1112根据解析得到的第一控制消息通知标签请求发送模块1111控制之后的标签请求消息的发送之后,当下游标签交换路由器1201满足上游标签交换路由器1101的标签请求消息时,通知信息接收模块还设置为:接收下游标签交换路由器1201发送的第二通知消息,第二通知消息包括标签请求消息的第二控制消息,第二控制消息包括恢复对转发等价类的消息,和/或恢复对所有转发等价类的消息;通知消息接收模块1112还设置为:解析第二通知消息,如是解析得到的是恢复转发等价类的消息,则通知标签请求发送模块1111重新对转发等价类发送标签请求消息;如是解析得到的是恢复所有转发等价类的消息,则通知标签请求发送模块1111重新对所有转发等价类发送标签请求消息。After the notification message receiving module 1112 notifies the label request message after the label request sending module 1111 controls the first control message obtained by the parsing, the downstream label switching router 1201 satisfies the label request message of the upstream label switching router 1101, and notifies the information. The receiving module is further configured to: receive a second notification message sent by the downstream label switching router 1201, where the second notification message includes a second control message of the label request message, where the second control message includes restoring the message to the forwarding equivalence class, and/or Recovering the message for all forwarding equivalence classes; the notification message receiving module 1112 is further configured to: parse the second notification message, and if the parsing is to restore the forwarding equivalence class, the notification tag request sending module 1111 re-orients the forwarding The class sends a tag request message; if the parsing is to recover all the messages of the forwarding equivalence class, the notification tag request sending module 1111 resends the tag request message to all forwarding equivalence classes.
第一控制消息为扩展到第一通知消息的扩展状态值中的消息,和/第二 控制消息为扩展到第二通知消息的扩展状态值中的消息。The first control message is a message extended to an extended status value of the first notification message, and/or a second The control message is a message that is extended to the extended status value of the second notification message.
本实施例提供一种下游标签交换路由器1201,如图12所示,包括标签请求接收模块1211和通知消息发送收模块1212:标签请求接收模块1211设置为:接收上游标签交换路由器1101发送的标签请求消息,标签请求消息包括一个转发等价类的标识,标签请求消息用于为转发等价类分配标签;当不满足上游标签交换路由器1101的标签请求消息时,通知消息发送收模块1212设置为:向上游标签交换路由器1101反馈的第一通知消息,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送。The present embodiment provides a downstream label switching router 1201. As shown in FIG. 12, the label request receiving module 1211 and the notification message sending and receiving module 1212 are provided. The label request receiving module 1211 is configured to receive the label request sent by the upstream label switching router 1101. The message request message includes an identifier of a forwarding equivalence class, and the tag request message is used to allocate a tag to the forwarding equivalence class; when the tag request message of the upstream label switching router 1101 is not satisfied, the notification message sending and receiving module 1212 is configured to: The first notification message fed back to the upstream label switching router 1101, the first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message.
不满足上游标签交换路由器1101的标签请求消息包括无法为上游标签交换路由器1101所有的转发等价类分配标签,和/或无法为上游标签交换路由器1101的转发等价类分配标签;通知消息发送收模块1212还设置为:当无法为上游标签交换路由器1101所有的转发等价类分配标签时,向上游标签交换路由器1101反馈包括停止对所有转发等价类的消息的第一控制消息;当无法为上游标签交换路由器1101的转发等价类分配标签时,向上游标签交换路由器1101反馈包括停止对转发等价类的消息的第一控制消息。The label request message that does not satisfy the upstream label switching router 1101 includes that the label cannot be assigned to all forwarding equivalence classes of the upstream label switching router 1101, and/or the label cannot be assigned to the forwarding equivalence class of the upstream label switching router 1101; The module 1212 is further configured to: when the label cannot be assigned to all forwarding equivalence classes of the upstream label switching router 1101, feed back to the upstream label switching router 1101 a first control message including stopping the forwarding of all the messages of the equivalence class; When the forwarding equivalence class of the upstream label switching router 1101 allocates a label, the upstream label switching router 1101 feeds back a first control message including stopping the forwarding of the equivalence class message.
在向所述上游标签交换路由器反馈的第一通知消息之后,当下游标签交换路由器1201满足上游标签交换路由器1101的标签请求消息时,通知消息发送收模块1212还设置为:向上游标签交换路由器1101发送第二通知消息,第二通知消息包括标签请求消息的第二控制消息,判断之前是否反馈包括停止对所有转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所有转发等价类的消息的第二控制信息;如果没反馈过,判断之前是否反馈过包括停止对转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对转发等价类的消息的第二控制信息。After the first notification message fed back to the upstream label switching router, when the downstream label switching router 1201 meets the label request message of the upstream label switching router 1101, the notification message sending and receiving module 1212 is further configured to: forward the label switching router 1101 Sending a second notification message, where the second notification message includes a second control message of the label request message, determining whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class, and if the feedback is Forwarding the second control information of the message of the equivalence class; if there is no feedback, determining whether the first control message including stopping the message of the forwarding equivalence class is fed back, if the feedback is over, sending the retrieving pair forwarding equivalence class The second control information of the message.
对第一通知消息进行扩展,将第一控制消息扩展到第一通知消息的扩展状态值中,和/或对第二通知消息进行扩展,将第二控制消息扩展到第二通知消息的扩展状态值中。Extending the first notification message, extending the first control message to an extended state value of the first notification message, and/or extending the second notification message to extend the second control message to an extended state of the second notification message In the value.
本实施例提供一种标签请求消息的控制系统,如图13所示,包括上游标签交换路由器1101和下游标签交换路由器1201:上游标签交换路由器1101 设置为:发送标签请求消息给下游标签交换路由器1201,标签请求消息包括一个转发等价类的标识,标签请求消息用于下游标签交换路由器1201为转发等价类分配标签;下游标签交换路由器1201设置为:接收上游标签交换路由器1101发送的标签请求消息;当不满足上游标签交换路由器1101的标签请求消息时,下游标签交换路由器1201还设置为:向上游标签交换路由器1101反馈的第一通知消息,第一通知消息包括标签请求消息的第一控制消息,第一通知消息用于控制标签请求消息的发送;上游标签交换路由器1101还设置为:接收下游标签交换路由器1201反馈的第一通知消息,解析第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。This embodiment provides a control system for a label request message, as shown in FIG. 13, including an upstream label switching router 1101 and a downstream label switching router 1201: an upstream label switching router 1101. The method is configured to: send a label request message to the downstream label switching router 1201, the label request message includes an identifier of a forwarding equivalence class, the label request message is used by the downstream label switching router 1201 to allocate a label for the forwarding equivalence class; and the downstream label switching router 1201 sets The receiving the label request message sent by the upstream label switching router 1101; when the label request message of the upstream label switching router 1101 is not satisfied, the downstream label switching router 1201 is further configured to: the first notification message fed back to the upstream label switching router 1101, The first notification message includes a first control message of the label request message, and the first notification message is used to control the sending of the label request message. The upstream label switching router 1101 is further configured to: receive the first notification message fed back by the downstream label switching router 1201, and analyze The first notification message controls the sending of the label request message after the first control message obtained by the parsing.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
当下游标签交换路由器无法满足上游标签交换路由器的标签请求消息时,本发明实施例通过反馈的第一通知消息来停止对下游标签交换路由器发送标签请求消息,能够避免上游标签重复发送标签请求消息,减少系统在处理这些消息的资源消耗,节约资源,提高系统的处理性能。 When the downstream label switching router fails to meet the label request message of the upstream label switching router, the embodiment of the present invention stops sending the label request message to the downstream label switching router by using the first notification message that is fed back, which can prevent the upstream label from repeatedly sending the label request message. Reduce the system's resource consumption in processing these messages, save resources, and improve system processing performance.

Claims (15)

  1. 一种标签请求消息的控制方法,包括:A method for controlling a label request message includes:
    在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;Sending a label request message to the downstream label switching router in a downstream on-demand label issuing manner, the label request message includes an identifier of a forwarding equivalence class, and the label request message is used by the downstream label switching router. Forward the equivalence class to assign labels;
    当下游标签交换路由器不满足上游标签交换路由器的标签请求消息时,接收所述下游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;Receiving, by the downstream label switching router, a first notification message that is fed back by the downstream label switching router, where the first notification message includes a first control message of the label request message, where the first label switching router does not meet the label request message of the upstream label switching router. A notification message is used to control the sending of the label request message;
    解析所述第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。The first notification message is parsed, and the subsequent transmission of the label request message is controlled according to the parsed first control message.
  2. 如权利要求1所述的标签请求消息的控制方法,其中,所述第一控制消息包括停止对所述转发等价类的消息,和/或停止对所有转发等价类的消息;所述根据解析得到的控制消息控制之后的标签请求消息的发送包括:如是解析得到的是停止所述转发等价类的消息,则停止对所述转发等价类发送标签请求消息;如是解析得到的是停止所有转发等价类的消息,则停止对所有转发等价类发送标签请求消息。The method for controlling a tag request message according to claim 1, wherein the first control message comprises stopping a message for the forwarding equivalence class, and/or stopping a message for all forwarding equivalence classes; The sending of the label request message after the control message is controlled comprises: if the parsing is to stop the forwarding equivalence class, stopping sending the label request message to the forwarding equivalence class; if the parsing is stopped, All messages forwarding the equivalence class stop sending tag request messages to all forwarding equivalence classes.
  3. 如权利要求2所述的标签请求消息的控制方法,其中,在根据解析得到的第一控制消息控制之后的标签请求消息的发送之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,接收所述下游标签交换路由器发送的第二通知消息,所述第二通知消息包括标签请求消息的第二控制消息,所述第二控制消息包括恢复对所述转发等价类的消息,和/或恢复对所有转发等价类的消息;解析所述第二通知消息,如是解析得到的是恢复所述转发等价类的消息,则重新对所述转发等价类发送标签请求消息;如是解析得到的是恢复所有转发等价类的消息,则重新对所有转发等价类发送标签请求消息。The method for controlling a tag request message according to claim 2, wherein after the downstream tag switching router satisfies the tag request message of the upstream tag switching router after the transmission of the tag request message after the control according to the first control message obtained by the parsing Receiving, by the downstream label switching router, a second notification message, where the second notification message includes a second control message of the label request message, where the second control message includes restoring the message to the forwarding equivalence class, and And resuming the message for all forwarding equivalence classes; parsing the second notification message, if the parsing is to recover the message of the forwarding equivalence class, resending the tag request message to the forwarding equivalence class; The parsing result is to restore all the forwarding equivalence class messages, and then re-send the label request message to all forwarding equivalence classes.
  4. 如权利要求1-3任一项所述的标签请求消息的控制方法,其中,所述第一控制消息为扩展到所述第一通知消息的扩展状态值中的消息,和/或所 述第二控制消息为扩展到所述第二通知消息的扩展状态值中的消息。The method for controlling a tag request message according to any one of claims 1 to 3, wherein the first control message is a message extended to an extended status value of the first notification message, and/or The second control message is a message that is extended to an extended status value of the second notification message.
  5. 一种标签请求消息的控制方法,包括:A method for controlling a label request message includes:
    在下游按需的标签发布方式下,接收上游标签交换路由器发送的标签请求消息,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于为所述转发等价类分配标签;Receiving, in a downstream on-demand label issuing manner, a label request message sent by an upstream label switching router, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used to allocate the forwarding equivalence class. label;
    当不满足上游标签交换路由器的标签请求消息时,向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送。When the label request message of the upstream label switching router is not satisfied, the first notification message fed back to the upstream label switching router, the first notification message includes a first control message of the label request message, where the first notification message is used The control tag requests the sending of a message.
  6. 如权利要求5所述的标签请求消息的控制方法,其中,所述不满足上游标签交换路由器的标签请求消息包括无法为所述上游标签交换路由器所有的转发等价类分配标签,和/或无法为所述上游标签交换路由器的所述转发等价类分配标签;所述向所述上游标签交换路由器反馈的第一通知消息包括:当无法为所述上游标签交换路由器所有的转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所有转发等价类的消息的第一控制消息;当无法为所述上游标签交换路由器的所述转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所述转发等价类的消息的第一控制消息。The method for controlling a label request message according to claim 5, wherein the label request message that does not satisfy the upstream label switching router includes failing to allocate labels for all forwarding equivalence classes of the upstream label switching router, and/or cannot Allocating a label for the forwarding equivalence class of the upstream label switching router; the first notification message fed back to the upstream label switching router includes: failing to allocate all forwarding equivalence classes for the upstream label switching router And transmitting, to the upstream label switching router, a first control message including stopping the forwarding of the message of the forwarding equivalence class; when the label cannot be allocated for the forwarding equivalence class of the upstream label switching router, The upstream label switching router feedback includes a first control message that stops the message of the forwarding equivalence class.
  7. 如权利要求6所述的标签请求消息的控制方法,其中,在向所述上游标签交换路由器反馈的第一通知消息之后,当下游标签交换路由器满足上游标签交换路由器的标签请求消息时,向所述上游标签交换路由器发送第二通知消息,所述第二通知消息包括标签请求消息的第二控制消息,判断之前是否反馈包括停止对所有转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所有转发等价类的消息的第二控制信息;如果没反馈过,判断之前是否反馈过包括停止对所述转发等价类的消息的第一控制消息,如果反馈过,则发送包括恢复对所述转发等价类的消息的第二控制信息。The method for controlling a tag request message according to claim 6, wherein, after the first notification message fed back to the upstream label switching router, when the downstream label switching router satisfies the label request message of the upstream label switching router, The upstream label switching router sends a second notification message, where the second notification message includes a second control message of the label request message, and determines whether the feedback includes stopping the first control message for all the messages of the forwarding equivalence class, if the feedback is Transmitting, by the second control information, including recovering the message for all forwarding equivalence classes; if not, determining whether the first control message including stopping the message of the forwarding equivalence class is fed back, if the feedback is And transmitting second control information including restoring the message to the forwarding equivalence class.
  8. 如权利要求5-7任一项所述的标签请求消息的控制方法,其中,对所述第一通知消息进行扩展,将所述第一控制消息扩展到所述第一通知消息的扩展状态值中,和/或对所述第二通知消息进行扩展,将所述第二控制消息扩展到所述第二通知消息的扩展状态值中。 The method for controlling a tag request message according to any one of claims 5 to 7, wherein the first notification message is extended to extend the first control message to an extended state value of the first notification message And/or expanding the second notification message to extend the second control message to an extended status value of the second notification message.
  9. 一种标签请求消息的控制方法,包括:A method for controlling a label request message includes:
    在下游按需的标签发布方式下,上游标签交换路由器发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;In the downstream on-demand label issuing mode, the upstream label switching router sends a label request message to the downstream label switching router, and the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for the downstream label switching. The router allocates a label to the forwarding equivalence class;
    所述下游标签交换路由器接收所述上游标签交换路由器发送的标签请求消息;Receiving, by the downstream label switching router, a label request message sent by the upstream label switching router;
    当不满足所述上游标签交换路由器的标签请求消息时,所述下游标签交换路由器向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;When the label request message of the upstream label switching router is not satisfied, the downstream label switching router feeds back a first notification message to the upstream label switching router, where the first notification message includes a first control message of the label request message. The first notification message is used to control sending of the label request message;
    所述上游标签交换路由器接收所述下游标签交换路由器反馈的第一通知消息,解析所述第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。The upstream label switching router receives the first notification message fed back by the downstream label switching router, parses the first notification message, and controls transmission of the label request message after the first control message obtained by the parsing.
  10. 一种上游标签交换路由器,包括标签请求发送模块和通知消息接收模块:An upstream label switching router includes a label request sending module and a notification message receiving module:
    所述标签请求发送模块设置为:在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;The label request sending module is configured to send a label request message to the downstream label switching router in a downstream on-demand label issuing manner, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for The downstream label switching router allocates a label to the forwarding equivalence class;
    所述通知消息接收模块设置为:当下游标签交换路由器不满足上游标签交换路由器的标签请求消息时,接收所述下游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;以及,解析所述第一通知消息,根据解析得到的第一控制消息通知所述标签请求发送模块控制之后的标签请求消息的发送。The notification message receiving module is configured to: when the downstream label switching router does not satisfy the label request message of the upstream label switching router, receive the first notification message fed back by the downstream label switching router, where the first notification message includes a label request message The first control message, the first notification message is used to control the sending of the label request message; and the first notification message is parsed, and the label after the label request sending module is notified according to the first control message obtained by the parsing The request message is sent.
  11. 如权利要求10所述的上游标签交换路由器,其中,所述第一控制消息包括停止对所述转发等价类的消息,和/或停止对所有转发等价类的消息;所述通知消息接收模块是设置为:如是所述通知消息接收模块解析得到 的是停止所述转发等价类的消息,则通知所述标签请求发送模块停止对所述转发等价类发送标签请求消息;如是解析得到的是停止所有转发等价类的消息,则通知所述标签请求发送模块停止对所有转发等价类发送标签请求消息。The upstream label switching router of claim 10, wherein said first control message comprises stopping a message for said forwarding equivalence class, and/or stopping a message for all forwarding equivalence classes; said notification message receiving The module is set to: if the notification message receiving module parses Stopping the message of the forwarding equivalence class, notifying the tag request sending module to stop sending a tag request message to the forwarding equivalence class; if the parsing is to stop all forwarding equivalence classes, the notification station The tag request sending module stops sending a tag request message to all forwarding equivalence classes.
  12. 一种下游标签交换路由器,包括标签请求接收模块和通知消息发送模块:A downstream label switching router includes a label request receiving module and a notification message sending module:
    所述标签请求接收模块设置为:在下游按需的标签发布方式下,接收上游标签交换路由器发送的标签请求消息,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于为所述转发等价类分配标签;The tag request receiving module is configured to: receive, in a downstream on-demand label issuing mode, a label request message sent by an upstream label switching router, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used by the label request message. Allocating a label for the forwarding equivalence class;
    当不满足上游标签交换路由器的标签请求消息时,所述通知消息发送模块设置为:向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送。When the label request message of the upstream label switching router is not satisfied, the notification message sending module is configured to: a first notification message fed back to the upstream label switching router, where the first notification message includes a first control of the label request message The message, the first notification message is used to control the sending of the label request message.
  13. 如权利要求12所述的下游标签交换路由器,其中,所述不满足上游标签交换路由器的标签请求消息包括无法为所述上游标签交换路由器所有的转发等价类分配标签,和/或无法为所述上游标签交换路由器的所述转发等价类分配标签;所述通知消息发送模块还设置为:当无法为所述上游标签交换路由器所有的转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所有转发等价类的消息的第一控制消息;当无法为所述上游标签交换路由器的所述转发等价类分配标签时,向所述上游标签交换路由器反馈包括停止对所述转发等价类的消息的第一控制消息。The downstream label switching router of claim 12, wherein the label request message that does not satisfy the upstream label switching router includes failing to allocate labels for all forwarding equivalence classes of the upstream label switching router, and/or cannot The forwarding equivalence class allocation label of the upstream label switching router; the notification message sending module is further configured to: when the label cannot be allocated for all forwarding equivalence classes of the upstream label switching router, exchange the label with the upstream label The router feedback includes a first control message that stops all messages forwarding the equivalence class; when the label cannot be assigned to the forwarding equivalence class of the upstream label switching router, the feedback to the upstream label switching router includes stopping the A first control message for forwarding a message of an equivalence class.
  14. 一种标签请求消息的控制系统,包括上游标签交换路由器和下游标签交换路由器:A control system for tag request messages, including an upstream label switching router and a downstream label switching router:
    所述上游标签交换路由器设置为:在下游按需的标签发布方式下,发送标签请求消息给下游标签交换路由器,所述标签请求消息包括一个转发等价类的标识,所述标签请求消息用于所述下游标签交换路由器为所述转发等价类分配标签;The upstream label switching router is configured to send a label request message to the downstream label switching router in a downstream on-demand label issuing manner, where the label request message includes an identifier of a forwarding equivalence class, and the label request message is used for The downstream label switching router allocates a label to the forwarding equivalence class;
    所述下游标签交换路由器设置为:接收所述上游标签交换路由器发送的 标签请求消息;The downstream label switching router is configured to: receive the sending by the upstream label switching router Tag request message;
    当不满足所述上游标签交换路由器的标签请求消息时,所述下游标签交换路由器还设置为:向所述上游标签交换路由器反馈的第一通知消息,所述第一通知消息包括标签请求消息的第一控制消息,所述第一通知消息用于控制标签请求消息的发送;When the label request message of the upstream label switching router is not satisfied, the downstream label switching router is further configured to: a first notification message fed back to the upstream label switching router, where the first notification message includes a label request message a first control message, where the first notification message is used to control transmission of a label request message;
    所述上游标签交换路由器还设置为:接收所述下游标签交换路由器反馈的第一通知消息,解析所述第一通知消息,根据解析得到的第一控制消息控制之后的标签请求消息的发送。The upstream label switching router is further configured to: receive a first notification message fed back by the downstream label switching router, parse the first notification message, and control transmission of the label request message after the first control message obtained by the parsing.
  15. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-9任一项的方法。 A computer readable storage medium storing computer executable instructions for performing the method of any of claims 1-9.
PCT/CN2015/087541 2014-12-11 2015-08-19 Label request message control method and system and upstream and downstream label switching router WO2016090950A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410758978.4A CN105743787B (en) 2014-12-11 2014-12-11 Control method and system for label request information and up-down cursor label exchange router
CN201410758978.4 2014-12-11

Publications (1)

Publication Number Publication Date
WO2016090950A1 true WO2016090950A1 (en) 2016-06-16

Family

ID=56106608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087541 WO2016090950A1 (en) 2014-12-11 2015-08-19 Label request message control method and system and upstream and downstream label switching router

Country Status (2)

Country Link
CN (1) CN105743787B (en)
WO (1) WO2016090950A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515897A (en) * 2009-03-31 2009-08-26 华为技术有限公司 Message sending and receiving method and device based on label distribution protocol
CN101610214A (en) * 2009-07-17 2009-12-23 杭州华三通信技术有限公司 In multi-protocol label switching network, realize the method and the router of reliable transmission
CN103686939A (en) * 2012-09-25 2014-03-26 华为终端有限公司 Method for triggering terminal and related equipment
WO2014059570A1 (en) * 2012-10-15 2014-04-24 华为技术有限公司 Method, device and system for establishing label switched path

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101515897A (en) * 2009-03-31 2009-08-26 华为技术有限公司 Message sending and receiving method and device based on label distribution protocol
CN101610214A (en) * 2009-07-17 2009-12-23 杭州华三通信技术有限公司 In multi-protocol label switching network, realize the method and the router of reliable transmission
CN103686939A (en) * 2012-09-25 2014-03-26 华为终端有限公司 Method for triggering terminal and related equipment
WO2014059570A1 (en) * 2012-10-15 2014-04-24 华为技术有限公司 Method, device and system for establishing label switched path

Also Published As

Publication number Publication date
CN105743787A (en) 2016-07-06
CN105743787B (en) 2020-09-25

Similar Documents

Publication Publication Date Title
US11606289B2 (en) Packet processing method and router
EP1800435B1 (en) Reporting out-of-resources (OOR) conditions in a data network
US20160006614A1 (en) Source Routing Using Path Computation Elements
US8773978B2 (en) System and method for protecting ingress and egress of a point-to-multipoint label switched path
US8565248B2 (en) Pure control-plane approach for on-path connection admission control operations in multiprotocol label switching virtual private networks
US9178811B2 (en) Method, apparatus and system for generating label forwarding table on ring topology
US7792111B2 (en) Point-to-multipoint for multicast and unicast forwarding
US20120057505A1 (en) Method, apparatus, and system for setting up bidirectional point-to-multipoint label switched path
WO2016198013A1 (en) Packet transmission method and apparatus
JP5275452B2 (en) System and method for multi-topology support
CN111614556A (en) BIER-based bidirectional forwarding detection session creation method and related equipment
WO2009117948A1 (en) Method and device for notifying a network topology change
EP2961117B1 (en) Method, device and system for establishing label switched path
WO2011103759A1 (en) Method for establishing associated bidirectional label switching path and system thereof
WO2017177756A1 (en) Method, apparatus and system for transmitting information
WO2011015102A1 (en) Method and network device for associated channel capability negotiation
WO2018177273A1 (en) Method and apparatus for processing based on bier information
CN111865795B (en) Control method and device
JP4455521B2 (en) Multicast MPLS network construction method, multicast MPLS network system, router and program
WO2016090950A1 (en) Label request message control method and system and upstream and downstream label switching router
EP4142248A1 (en) In-band control plane
WO2014082430A1 (en) Packet control method and device
CN117749687A (en) Bit index routing table establishing method, network equipment and storage medium
Liu et al. Internet Engineering Task Force H. Chen Internet-Draft Huawei Technologies Intended status: Standards Track N. So Expires: August 14, 2014 Tata Communications

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

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

Country of ref document: EP

Kind code of ref document: A1