CN113709041A - Distribution management system and method of MPLS labels - Google Patents

Distribution management system and method of MPLS labels Download PDF

Info

Publication number
CN113709041A
CN113709041A CN202110962043.8A CN202110962043A CN113709041A CN 113709041 A CN113709041 A CN 113709041A CN 202110962043 A CN202110962043 A CN 202110962043A CN 113709041 A CN113709041 A CN 113709041A
Authority
CN
China
Prior art keywords
label
signaling protocol
block
module
tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110962043.8A
Other languages
Chinese (zh)
Inventor
李振华
贾汮
陈世伟
詹晋川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Forward Industrial Co Ltd
Original Assignee
Shenzhen Forward Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Forward Industrial Co Ltd filed Critical Shenzhen Forward Industrial Co Ltd
Priority to CN202110962043.8A priority Critical patent/CN113709041A/en
Publication of CN113709041A publication Critical patent/CN113709041A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • H04L45/507Label distribution

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a distribution management system and a method of MPLS labels, belonging to the technical field of communication. In the invention, the label pool management module is only responsible for applying or releasing the label block and does not manage specific single label value, thereby greatly reducing the interaction between the label pool management module and the signaling module. The application or release of a single label value is in charge of the signaling protocol module, and the label pool management module is not required to apply or release, so that the efficiency of label application or release can be improved to a certain extent.

Description

Distribution management system and method of MPLS labels
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a distribution management system and method of MPLS labels.
Background
MPLS (Multi-Protocol Label Switching) is a technology for guiding high-speed and efficient data transmission on an open communication network by using a Label, and is proposed by IETF (Internet Engineering Task Force).
MPLS is independent of second and third layer protocols, such as ATM (Asynchronous Transfer Mode) and IP (Internet Protocol). MPLS uses Label for data forwarding, which is assigned a fixed length Label when a packet enters the network and encapsulated with the Label, and during the entire forwarding process, the switching node only forwards the packet according to the Label, which provides a way to map IP addresses and the like to simple fixed length labels for different packet forwarding and packet switching technologies.
The MPLS label is a value with a fixed length, is carried by a header of a packet, does not include topology information, has only a local meaning, and is used to uniquely identify an FEC (Forwarding Equivalence Class) to which a packet belongs. The header structure of the MPLS packet is shown in fig. 1, and has a length of 4 bytes.
Label: 20 bits, tag value.
EXP: 3bit for extension, now commonly used as CoS (Class of Service).
S: 1bit, stack bottom mark, and the label at the bottom layer when the value of S is 1, the MPLS can support multiple layers of labels.
TTL: 8bit, is synonymous with TTL (Time to Live) in the IP packet header.
MPLS Label allocation is implemented through a related signaling Protocol module, which generally includes an LDP (Label Distribution Protocol), an RSVP (Resource Reservation Protocol), a BGP (Border Gateway Protocol), and the like. The signaling protocol module for label distribution is responsible for the distribution of labels, the establishment of a forwarding information table, and the establishment and the removal of label switching paths.
The Label field of the MPLS header is 20 bits, so that the value of the Label value ranges from 0 to 2201, i.e. from 0 to 1048575. The label value of millions of orders of magnitude is provided for a plurality of signaling protocol modules to be distributed and used under the condition of label space of each platform, if the signaling protocol modules apply for or release labels from a label pool one by one each time, the efficiency is very low, and the processing speed of the signaling protocol modules is influenced.
Disclosure of Invention
Aiming at the defects in the prior art, the distribution management system and the distribution management method for the MPLS labels provided by the invention can avoid that the signaling protocol modules apply for the labels from the label pool one by one each time, reduce the interaction between the signaling protocol modules and the label pool and improve the efficiency of label distribution.
In order to achieve the above purpose, the invention adopts the technical scheme that:
the scheme is that the distribution management system of the MPLS label comprises a label pool management module and a signaling protocol module which interacts with the label pool management module;
the label pool management module is used for managing the label blocks and returning the label blocks applied or released by the signaling protocol module through interaction with the signaling protocol module;
the signaling protocol module is used for interacting with the label pool management module based on LDP, RSVP and BGP protocols, and applying or releasing a single label value based on the applied label block to complete distribution management of the MPLS label.
The invention has the beneficial effects that: the invention provides a system for managing a label pool, in each platform label space, each signaling protocol applies a section of label segment from the label pool in advance for use, a subsequent signaling protocol only applies or releases a label value from the label segment of the signaling protocol, when the distributed label segments are completely used, the signaling protocol can apply a label segment again for use, the system can effectively avoid the signaling protocol from applying or releasing labels from the label pool one by one each time, the interaction between the signaling protocol and the label pool is reduced, and the efficiency of label application or release is improved. Meanwhile, the label pool management module is only responsible for applying or releasing the label block, and the specific single label value is not managed, so that the interaction between the label pool management module and the signaling module is greatly reduced, and the application or release of the single label value is responsible for the signaling protocol module, so that the application or release of the label is not required to be carried out by the label pool management module, and the efficiency of label application or release can be improved to a certain extent.
Further, the tag pool management module is responsible for managing tag blocks and returning the tag blocks applied or released by the signaling protocol module through interaction with the signaling protocol module, and specifically includes:
dividing the label value into label segments with the same label quantity, regarding each label segment as a label block, setting all the label segments to be in an available state, and marking all the label blocks to be applied and used by a signaling protocol module; when a signaling protocol module is started, a request for applying for a tag block is sent to a tag pool management module, an available idle tag block is inquired by the tag pool management module according to the request, the available idle tag block is set to be in a used state, and the idle tag block is sent to the signaling protocol module; and under the condition that the signaling protocol module needs to use a plurality of label blocks, distributing the label blocks in the process of establishing the MPLS LSP, and recycling the label blocks in the process of dismantling the MPLS LSP by the signaling protocol module.
The beneficial effects of the further scheme are as follows: the label pool management module only takes charge of application or release of the label block, and does not manage specific single label value, thereby greatly reducing interaction between the label pool management module and the signaling module.
Still further, the signaling protocol module comprises an LDP protocol unit, an RSVP protocol unit and a BGP protocol unit which are respectively interacted with the label pool management module;
the LDP protocol unit is used for interacting with the label pool management module based on an LDP protocol, applying or releasing a single label value from the applied label block based on the applied label block, and completing distribution management of the MPLS label;
the RSVP protocol unit is used for interacting with the label pool management module based on RSVP protocol, and applying or releasing a single label value from the applied label block based on the applied label block, so as to complete distribution management of the MPLS label;
and the BGP protocol unit is used for interacting with the label pool management module based on a BGP protocol, and applying or releasing a single label value from the applied label block based on the applied label block to complete distribution management of the MPLS label.
The beneficial effects of the further scheme are as follows: the application or release of a single label value is in charge of the signaling protocol module, and the label pool management module is not required to apply or release, so that the efficiency of label application or release can be improved to a certain extent.
Based on the system, the invention also provides a method for allocating and managing the MPLS labels, which comprises the following steps:
s1, dividing the label value into label segments with the same label quantity, regarding each label segment as a label block, setting all the label segments as available states, and marking all the label blocks to be applied and used by the signaling protocol module;
s2, when starting the signaling protocol module, sending a request for applying for a tag block to the tag pool management module, inquiring available idle tag blocks by the tag pool management module according to the request, setting the available idle tag blocks to be in a used state, and sending the idle tag blocks to the signaling protocol module;
s3, distributing corresponding label values for FEC of the signaling protocol module from the applied label block in the process of establishing MPLS LSP aiming at the signaling protocol module;
s4, in the process of removing MPLS LSP aiming at the signaling protocol module, the signaling protocol module releases one or more applied label values to complete the release management of MPLS label.
The invention has the beneficial effects that: the invention provides a method for managing a label pool, in each platform label space, each signaling protocol applies a section of label segment from the label pool in advance for use, a subsequent signaling protocol only applies or releases a label value from the label segment of the signaling protocol, when the distributed label segments are completely used, the signaling protocol can apply a label segment again for use, the method can effectively avoid the signaling protocol from applying or releasing labels from the label pool one by one each time, the interaction between the signaling protocol and the label pool is reduced, and the efficiency of label application or release is improved. Meanwhile, the label pool management module is only responsible for applying or releasing the label block, and the specific single label value is not managed, so that the interaction between the label pool management module and the signaling module is greatly reduced, and the application or release of the single label value is responsible for the signaling protocol module, so that the application or release of the label is not required to be carried out by the label pool management module, and the efficiency of label application or release can be improved to a certain extent.
Further, the step S2 includes the following steps:
s201, sending a request for applying a tag block to a tag pool management module through a signaling protocol module;
s202, receiving a request of a signaling protocol module for applying a tag block by a tag pool management module, and inquiring available idle tag blocks;
s203, setting the available idle tag to be in a used state by using a tag pool management module;
and S204, sending the applied label block to a protocol module through a label pool management module.
The beneficial effects of the further scheme are as follows: the label pool management module is only responsible for applying or releasing the label block and does not manage specific single label value, so that the interaction between the label pool management module and the signaling module is greatly reduced.
Still further, the step S3 includes the steps of:
s301, judging whether a label block applied by a signaling protocol module in advance has an idle label or not in the process of establishing the MPLS LSP aiming at the signaling protocol module, if so, entering a step S302, otherwise, entering a step S303;
s302, a signaling protocol module applies for an idle label from a pre-applied label block as a label value corresponding to a signaling protocol module FEC;
s303, applying a label block to the label pool management module by the signaling protocol module, and setting the applied label block to be in a used state by the label pool management module;
s304, applying for an idle label value from the newly applied label block through the signaling protocol module as a label value corresponding to the FEC in the signaling protocol module.
The beneficial effects of the further scheme are as follows: the application of a single label value is in charge of the signaling protocol module, and the signaling protocol only needs to interact with the label pool management module when the applied label block is exhausted to apply for a new label block. The application of a single label value does not need to interact with a label pool management module, and the efficiency of the application of the signaling protocol label can be improved to a certain extent.
Still further, the step S4 includes the steps of:
s401, in the process of removing the MPLS LSP by aiming at the signaling protocol module, releasing one or more label values applied by the signaling protocol module, and judging whether a label block corresponding to the label value is the only label block applied by the signaling protocol, if so, the signaling protocol module completes the release management of the MPLS label value; otherwise, go to step S402;
s402, judging whether all label values in a label block corresponding to the label value are completely released, if so, entering a step S403, otherwise, finishing the release management of the MPLS label value by a signaling protocol module;
s403, the signaling protocol module informs the label pool management module of setting the state of the label block to be an available state, and the available state is recovered by the label pool management module, so as to complete the release management of the MPLS label.
The beneficial effects of the further scheme are as follows: the release of a single label value is taken charge of by the signaling protocol module, and the signaling protocol only needs to interact with the label pool management module to release the label block when all label values in the used label block are completely released and the label block is not the only label block of the signaling protocol.
Drawings
Fig. 1 is a schematic diagram of a header structure of an MPLS packet in the background art.
Fig. 2 is a block diagram of a tag management system according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of tag block management according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a tag block of each signaling protocol application according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a BGP protocol unit application tag block according to an embodiment of the present invention.
FIG. 6 is a flow chart of a method of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate the understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and it will be apparent to those skilled in the art that various changes may be made without departing from the spirit and scope of the invention as defined and defined in the appended claims, and all matters produced by the invention using the inventive concept are protected.
Example 1
As shown in fig. 2, an MPLS label distribution management system includes a label pool management module and a signaling protocol module interacting with the label pool management module;
the label pool management module is used for managing the label blocks and returning the label blocks applied or released by the signaling protocol module through interaction with the signaling protocol module, and specifically comprises the following steps:
dividing the label value into label segments with the same label quantity, regarding each label segment as a label block, setting all the label segments to be in an available state, and marking all the label blocks to be applied and used by a signaling protocol module; when a signaling protocol module is started, a request for applying for a tag block is sent to a tag pool management module, an available idle tag block is inquired by the tag pool management module according to the request, the available idle tag block is set to be in a used state, and the idle tag block is sent to the signaling protocol module; under the condition that the signaling protocol module needs to use a plurality of label blocks, the label blocks are distributed in the process of establishing the MPLS LSP, and the label blocks are recycled in the process of dismantling the MPLS LSP by the signaling protocol module;
the signaling protocol module is used for interacting with the label pool management module based on LDP, RSVP and BGP protocols, and applying or releasing a single label value based on the applied label block to complete distribution management of the MPLS label.
The signaling protocol module comprises an LDP protocol unit, an RSVP protocol unit and a BGP protocol unit which are respectively interacted with the label pool management module;
the LDP protocol unit is used for interacting with the label pool management module based on an LDP protocol, applying or releasing a single label value from the applied label block based on the applied label block, and completing distribution management of the MPLS label;
the RSVP protocol unit is used for interacting with the label pool management module based on RSVP protocol, and applying or releasing a single label value from the applied label block based on the applied label block, so as to complete distribution management of the MPLS label;
and the BGP protocol unit is used for interacting with the label pool management module based on a BGP protocol, and applying or releasing a single label value from the applied label block based on the applied label block to complete distribution management of the MPLS label.
In this embodiment, the signaling protocol module is based on LDP, RSVP and BGP protocols, and the label pool management module interacts with these protocols to manage application or release of label blocks, as shown in fig. 2. Wherein: the label pool management module: and the system is responsible for managing the tag blocks, interacting with other protocol modules and returning the results of applying/releasing the tag blocks by the other protocol modules.
In this embodiment, the LDP protocol unit: the system is responsible for the main function of the LDP protocol, establishes LSP for the routing distribution label, interacts with the label pool management module, and applies/releases a single label from the applied label block.
In this embodiment, the RSVP protocol unit: and the system is responsible for the main function of the RSVP protocol, establishes LSP for the tunnel distribution label, interacts with the label pool management module, and applies/releases a single label from the applied label block.
In this embodiment, the BGP protocol unit: and the system is responsible for BGP protocol main functions, establishes LSP for route distribution labels and the like, interacts with the label pool management module, and applies/releases a single label from the applied label block.
In this embodiment, when the tag pool management module is initialized, the tag value is divided into tag segments with the same number of tags, and all tag blocks are set to an "available" state for application of a signaling protocol. And the number of the label blocks in the label pool management module is equal to the maximum value of the labels/the size of the label blocks + 1. The description will be given by taking each tag block size 80000 as an example, that is, the number of tag values in each tag block is 80000. As shown in FIG. 3, the tag value range for tag Block 0 is <16,79999>, the tag value range for tag Block 1 is <80000,159999>, the tag value range for tag Block 2 is <160000,239999>, and so on. In particular implementations, the tag block size may be set to other sizes according to application requirements. If the number of labels in the label block is less than 80000 due to the reason of label retention and the like, each label block is also divided according to the fixed number, and then the unusable label values in the label block are removed. For example, since tag values 0 through 15 are protocol-specified reservation tags, the tag value of tag block 0 begins at a minimum at 16.
In this embodiment, when the LDP protocol unit, the RSVP protocol unit, and the BGP protocol unit are started, the label pool management module may apply for a label block, and after receiving a request for applying the label block by the protocol, the label pool management module queries an available idle label block, and sets the idle label block to a used state, and sends a result of the applied label block to the protocol module. The idle label block is applied by which signaling protocol without complete one-to-one correspondence relationship, and can be applied sequentially or randomly.
In this embodiment, the label pool management module sets label block 0, label block 1, and label block 2 to "used" state, the LDP protocol unit applies to label block 0, the RSVP protocol unit applies to label block 1, and the BGP applies to label block 2, where the label value range that the LDP protocol unit can allocate is <16,79999>, the label value range that the RSVP protocol can allocate is <80000,159999>, and the label value range that the BGP protocol unit can allocate is <160000,239999>, as shown in fig. 4.
In this embodiment, when the LDP protocol unit, the RSVP protocol unit, and the BGP protocol unit establish and tear down the MPLS LSP, labels are allocated and released from their respective label blocks. For a signaling protocol, taking BGP protocol as an example, if the label in the label block 2 used by the signaling protocol is already used up, the BGP protocol unit may apply for a free label block from the label pool management module, and if the BGP protocol unit applies for a free label block 4, the label pool management module sets the label block 4 to the "used" state, and then the BGP protocol unit can allocate a label for FEC using a new label value range <320000,399999>, as shown in fig. 5. When the label in the label block 4 is also exhausted, the BGP protocol may continue to apply for a new free label block until the label block in the label pool management module is exhausted.
In this embodiment, if the BGP protocol releases all the label values in the label block 4 after the MPLS LSP is torn down, the BGP protocol notifies the label pool management module to set the label block 4 to an "available" state, the BGP protocol allocates a label for the FEC without using the label value range <320000,399999>, and the label block 4 is recovered to the label pool management module for the next reapplication of the signaling protocol module. The BGP protocol unit only needs to reserve the label block 2 by default for use, and other idle label blocks are returned to the label pool management module.
In this embodiment, when the LDP protocol unit, the RSVP protocol unit, and the BGP protocol unit are closed, the applied label block needs to be returned to the label pool management module, in this embodiment, the LDP return label block 0, the RSVP return label block 1, and the BGP return label block 2.
Through the design, in each platform label space, each signaling protocol applies for a label segment from the label pool in advance for use, and the subsequent signaling protocol only needs to apply for or release a label value from the label segment of the signaling protocol, and when the distributed label segments are completely used, the signaling protocol can apply for a label segment again for use, so that the signaling protocol can be effectively prevented from applying for or releasing labels from the label pool one by one each time, the interaction between the signaling protocol and the label pool is reduced, and the efficiency of label application or release is improved. Meanwhile, the label pool management module is only responsible for applying or releasing the label block, and the specific single label value is not managed, so that the interaction between the label pool management module and the signaling module is greatly reduced, and the application or release of the single label value is responsible for the signaling protocol module, so that the application or release of the label is not required to be carried out by the label pool management module, and the efficiency of label application or release can be improved to a certain extent.
Example 2
As shown in fig. 6, the present invention provides a method for allocating and managing MPLS labels, which includes the following steps:
s1, dividing the label value into label segments with the same label quantity, regarding each label segment as a label block, setting all the label segments as available states, and marking all the label blocks to be applied and used by the signaling protocol module;
in this embodiment, the tag pool management module divides all tag values into tag segments with the same number of tags, each tag segment may be regarded as a tag block, and the tag pool management module sets all tag blocks in an "available" state to identify that all tag blocks can be applied for use by a signaling protocol.
S2, when starting the signaling protocol module, sending a request for applying for a tag block to the tag pool management module, according to the request, the tag pool management module inquires available idle tag blocks, and sets the available idle tag blocks as used states, and sends the idle tag blocks to the signaling protocol module, the implementation method is as follows:
s201, sending a request for applying a tag block to a tag pool management module through a signaling protocol module;
s202, receiving a request of a signaling protocol module for applying a tag block by a tag pool management module, and inquiring available idle tag blocks;
s203, setting the available idle tag to be in a used state by using a tag pool management module;
and S204, sending the applied label block to a protocol module through a label pool management module.
In this embodiment, when the signaling protocol module is started, a tag block is applied to the tag pool management module in advance, and the tag pool management module sets the tag block to a "used" state, which identifies that the tag block has been used by a certain signaling protocol and other signaling protocols cannot be applied again.
S3, in the process of establishing MPLS LSP for the signaling protocol module, allocating a corresponding label value to FEC of the signaling protocol module from the applied label block, where the method is as follows:
s301, judging whether a label block applied by a signaling protocol module in advance has an idle label or not in the process of establishing the MPLS LSP aiming at the signaling protocol module, if so, entering a step S302, otherwise, entering a step S303;
s302, a signaling protocol module applies for an idle label from a pre-applied label block as a label value corresponding to a signaling protocol module FEC;
s303, applying a label block to the label pool management module by the signaling protocol module, and setting the applied label block to be in a used state by the label pool management module;
s304, applying for an idle label value from the newly applied label block through the signaling protocol module as a label value corresponding to the FEC in the signaling protocol module.
In this embodiment, in the process of establishing an MPLS LSP (Label Switching Path ), a signaling protocol module allocates a Label for FEC, and the signaling protocol module applies for an idle Label value from a previously applied Label block range, and does not need to interact with a Label pool management module, and the signaling protocol can complete the task inside itself. If the FEC number of the signaling protocol module is large, more labels need to be allocated, and the label value in the previously applied label block is exhausted, the signaling protocol module needs to apply a second label block to the label pool management module for use, and the label pool management module sets the second label block to be in a "used" state. And the signaling protocol module applies for an idle label value from the second label block and allocates a corresponding label for the FEC, and the signaling protocol module can continuously apply for the label block to use until the label block in the label pool management module is exhausted.
S4, in the process of removing MPLS LSP by aiming at the signaling protocol module, the signaling protocol module releases one or more applied label values to complete the release management of MPLS label, the realization method is as follows:
s401, in the process of removing the MPLS LSP by aiming at the signaling protocol module, releasing one or more label values applied by the signaling protocol module, and judging whether a label block corresponding to the label value is the only label block applied by the signaling protocol, if so, the signaling protocol module completes the release management of the MPLS label value; otherwise, go to step S402;
s402, judging whether all label values in a label block corresponding to the label value are completely released, if so, entering a step S403, otherwise, finishing the release management of the MPLS label value by a signaling protocol module;
s403, the signaling protocol module informs the label pool management module of setting the state of the label block to be an available state, and the available state is recovered by the label pool management module, so as to complete the release management of the MPLS label.
In this embodiment, in the process of removing the MPLS LSP, the signaling protocol module needs to release the previously applied label value, and the inside of the signaling protocol module only needs to release the label value from the label block applied by itself, and does not need to interact with the label pool management module. If the signaling protocol module applies for a plurality of label blocks before, and all label values in a certain label block are released, the signaling protocol module can notify the label pool management module, set the state of the label block to be an available state, the signaling protocol module will not use the label block any more, and the label block can apply for other signaling protocols. Each signaling protocol only needs to reserve one label block by default for use, and other idle label blocks are returned to the label pool management module.
Through the design, in each platform label space, each signaling protocol applies for a label segment from the label pool in advance for use, and the subsequent signaling protocol only needs to apply for or release a label value from the label segment of the signaling protocol, and when the distributed label segments are completely used, the signaling protocol can apply for a label segment again for use, so that the signaling protocol can be effectively prevented from applying for or releasing labels from the label pool one by one each time, the interaction between the signaling protocol and the label pool is reduced, and the efficiency of label application or release is improved. In the invention, the label pool management module is only responsible for applying or releasing the label block and does not manage specific single label value, thus greatly reducing the interaction between the label pool management module and the signaling module.

Claims (7)

1. An MPLS label distribution management system is characterized by comprising a label pool management module and a signaling protocol module interacting with the label pool management module;
the label pool management module is used for managing the label blocks and returning the label blocks applied or released by the signaling protocol module through interaction with the signaling protocol module;
the signaling protocol module is used for interacting with the label pool management module based on LDP, RSVP and BGP protocols, and applying or releasing a single label value based on the applied label block to complete distribution management of the MPLS label.
2. The MPLS label distribution management system of claim 1, wherein the label pool management module is configured to be responsible for managing label blocks and return a label block applied or released by the signaling protocol module through interaction with the signaling protocol module, and specifically includes:
dividing the label value into label segments with the same label quantity, regarding each label segment as a label block, setting all the label segments to be in an available state, and marking all the label blocks to be applied and used by a signaling protocol module; when a signaling protocol module is started, a request for applying for a tag block is sent to a tag pool management module, an available idle tag block is inquired by the tag pool management module according to the request, the available idle tag block is set to be in a used state, and the idle tag block is sent to the signaling protocol module; and under the condition that the signaling protocol module needs to use a plurality of label blocks, distributing the label blocks in the process of establishing the MPLS LSP, and recycling the label blocks in the process of dismantling the MPLS LSP by the signaling protocol module.
3. The MPLS label distribution management system of claim 1, wherein the signaling protocol module includes an LDP protocol unit, an RSVP protocol unit, and a BGP protocol unit that interact with the label pool management module, respectively;
the LDP protocol unit is used for interacting with the label pool management module based on an LDP protocol, applying or releasing a single label value from the applied label block based on the applied label block, and completing distribution management of the MPLS label;
the RSVP protocol unit is used for interacting with the label pool management module based on RSVP protocol, and applying or releasing a single label value from the applied label block based on the applied label block, so as to complete distribution management of the MPLS label;
and the BGP protocol unit is used for interacting with the label pool management module based on a BGP protocol, and applying or releasing a single label value from the applied label block based on the applied label block to complete distribution management of the MPLS label.
4. A method for managing distribution of MPLS labels is characterized by comprising the following steps:
s1, dividing the label value into label segments with the same label quantity, regarding each label segment as a label block, setting all the label segments as available states, and marking all the label blocks to be applied and used by the signaling protocol module;
s2, when starting the signaling protocol module, sending a request for applying for a tag block to the tag pool management module, inquiring available idle tag blocks by the tag pool management module according to the request, setting the available idle tag blocks to be in a used state, and sending the idle tag blocks to the signaling protocol module;
s3, distributing corresponding label values for FEC of the signaling protocol module from the applied label block in the process of establishing MPLS LSP aiming at the signaling protocol module;
s4, in the process of removing MPLS LSP aiming at the signaling protocol module, the signaling protocol module releases one or more applied label values to complete the release management of MPLS label.
5. The MPLS label distribution management method according to claim 4, wherein the step S2 includes the steps of:
s201, sending a request for applying a tag block to a tag pool management module through a signaling protocol module;
s202, receiving a request of a signaling protocol module for applying a tag block by a tag pool management module, and inquiring available idle tag blocks;
s203, setting the available idle tag to be in a used state by using a tag pool management module;
and S204, sending the applied label block to a protocol module through a label pool management module.
6. The MPLS label distribution management method according to claim 4, wherein the step S3 includes the steps of:
s301, judging whether a label block applied by a signaling protocol module in advance has an idle label or not in the process of establishing the MPLS LSP aiming at the signaling protocol module, if so, entering a step S302, otherwise, entering a step S303;
s302, a signaling protocol module applies for an idle label from a pre-applied label block as a label value corresponding to a signaling protocol module FEC;
s303, applying a label block to the label pool management module by the signaling protocol module, and setting the applied label block to be in a used state by the label pool management module;
s304, applying for an idle label value from the newly applied label block through the signaling protocol module as a label value corresponding to the FEC in the signaling protocol module.
7. The MPLS label distribution management method according to claim 4, wherein the step S4 includes the steps of:
s401, in the process of removing the MPLS LSP by aiming at the signaling protocol module, releasing one or more label values applied by the signaling protocol module, and judging whether a label block corresponding to the label value is the only label block applied by the signaling protocol, if so, the signaling protocol module completes the release management of the MPLS label value; otherwise, go to step S402;
s402, judging whether all label values in a label block corresponding to the label value are completely released, if so, entering a step S403, otherwise, finishing the release management of the MPLS label value by a signaling protocol module;
s403, the signaling protocol module informs the label pool management module of setting the state of the label block to be an available state, and the available state is recovered by the label pool management module, so as to complete the release management of the MPLS label.
CN202110962043.8A 2021-08-20 2021-08-20 Distribution management system and method of MPLS labels Pending CN113709041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962043.8A CN113709041A (en) 2021-08-20 2021-08-20 Distribution management system and method of MPLS labels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962043.8A CN113709041A (en) 2021-08-20 2021-08-20 Distribution management system and method of MPLS labels

Publications (1)

Publication Number Publication Date
CN113709041A true CN113709041A (en) 2021-11-26

Family

ID=78653695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962043.8A Pending CN113709041A (en) 2021-08-20 2021-08-20 Distribution management system and method of MPLS labels

Country Status (1)

Country Link
CN (1) CN113709041A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7082128B1 (en) * 2002-01-10 2006-07-25 Redback Networks Inc. Method and apparatus for non-stop forwarding with labels
US7139272B1 (en) * 2002-01-10 2006-11-21 Redback Networks Inc. Method and apparatus for a label forwarding information base
CN101047634A (en) * 2006-06-05 2007-10-03 华为技术有限公司 Allocating method for upper tag
CN101064674A (en) * 2006-04-29 2007-10-31 华为技术有限公司 Method for distributing multicasting MPLS label
CN101360056A (en) * 2008-09-12 2009-02-04 中兴通讯股份有限公司 System and method solving backup routing engine upper label competition
CN101594341A (en) * 2008-05-29 2009-12-02 华为技术有限公司 Multiprotocol label switching management method and device
CN101984618A (en) * 2010-07-29 2011-03-09 北京星网锐捷网络技术有限公司 Method, system and device for applying tag block based on border gateway protocol
US8014395B1 (en) * 2002-01-10 2011-09-06 Ericsson Ab Method and apparatus for processing labels

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7082128B1 (en) * 2002-01-10 2006-07-25 Redback Networks Inc. Method and apparatus for non-stop forwarding with labels
US7139272B1 (en) * 2002-01-10 2006-11-21 Redback Networks Inc. Method and apparatus for a label forwarding information base
US8014395B1 (en) * 2002-01-10 2011-09-06 Ericsson Ab Method and apparatus for processing labels
CN101064674A (en) * 2006-04-29 2007-10-31 华为技术有限公司 Method for distributing multicasting MPLS label
CN101047634A (en) * 2006-06-05 2007-10-03 华为技术有限公司 Allocating method for upper tag
CN101594341A (en) * 2008-05-29 2009-12-02 华为技术有限公司 Multiprotocol label switching management method and device
CN101360056A (en) * 2008-09-12 2009-02-04 中兴通讯股份有限公司 System and method solving backup routing engine upper label competition
CN101984618A (en) * 2010-07-29 2011-03-09 北京星网锐捷网络技术有限公司 Method, system and device for applying tag block based on border gateway protocol

Similar Documents

Publication Publication Date Title
CN106803814B (en) Method, device and system for establishing flexible Ethernet path
WO2010135957A1 (en) Virtual private network message forwarding method and routing label assignment and deletion method thereof
CN1848804A (en) Data message transmitting method and node equipment based on MPLS TE tunnel
US7936668B2 (en) Methods and apparatus for distributing label information
JPH11127154A (en) Connectionless communication system
CN101106519A (en) Distribution method for boundary routers of autonomous system and boundary router
US9049149B2 (en) Minimal data loss load balancing on link aggregation groups
CN101047636A (en) Method and system for end-to-end pseudo-line simulation virtual leased line access virtual special network
CN101547155A (en) Master and standby tunnel load sharing method and flow forwarding equipment
CN101877677A (en) Tunnel switching method and system for multi-protocol label switching services
CN103416029A (en) Signaling extension for a label switched path over a composite link
CN101188554B (en) A method for dynamically establishing label switching path tunnel and allocating resource
CN1968178A (en) LSP establishing method
KR100590876B1 (en) method for label management of distributed Muti Protocol label switching router and the router thereof
CN101026583A (en) Communication control system, communication control method, routing controller and router suitably used for the same
CN1874302A (en) Method of phantom lines in multiple hops for building simulation of phantom line from end to end
CN101729422A (en) Method and device for realizing QoS (Quality of Service) by utilizing BGP (Border Gateway Protocol)
WO2013037280A1 (en) Label allocation method and superstratum device
JP5083168B2 (en) Method and apparatus for setting pseudo wire
CN113709041A (en) Distribution management system and method of MPLS labels
CN104205747A (en) Pseudowire groups in packet switched network
CN101453403B (en) Label management method and apparatus in PBB-TE
CN103238299A (en) Method, apparatus and system for establishment of label switching paths
CN1761228A (en) Method for implementing transmission and protection for service in MPLS ring net
CN101453411B (en) Method, system and equipment for label switch path establishment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211126

RJ01 Rejection of invention patent application after publication