CN114039905B - Method and device for saving protection resources - Google Patents

Method and device for saving protection resources Download PDF

Info

Publication number
CN114039905B
CN114039905B CN202111441607.XA CN202111441607A CN114039905B CN 114039905 B CN114039905 B CN 114039905B CN 202111441607 A CN202111441607 A CN 202111441607A CN 114039905 B CN114039905 B CN 114039905B
Authority
CN
China
Prior art keywords
next hop
group table
table entry
hop information
label
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.)
Active
Application number
CN202111441607.XA
Other languages
Chinese (zh)
Other versions
CN114039905A (en
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202111441607.XA priority Critical patent/CN114039905B/en
Publication of CN114039905A publication Critical patent/CN114039905A/en
Application granted granted Critical
Publication of CN114039905B publication Critical patent/CN114039905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

The invention provides a method and a device for saving and protecting resources, wherein the method comprises the following steps: acquiring main next hop information, a main label, standby next hop information and a standby label of forwarding equivalence class FEC; establishing a first mapping relation between FEC and protection group table entries, wherein the protection group table entries comprise main next hop information and standby next hop information; and establishing a label group table entry by using the main label and the standby label, and establishing a second mapping relation between the protection group table entry and the label group table entry. According to the invention, the created protection group table entry only comprises the main next hop information and the standby next hop information corresponding to the FEC, and when a plurality of FECs correspond to the same protection group, the protection group table entry can be multiplexed, so that the protection entries needing to be created are reduced, the system protection resources are saved, and the time for carrying out protection switching is shortened.

Description

Method and device for saving protection resources
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for saving protection resources.
Background
In the MPLS network, a label switching router is a node of the MPLS network, a label distribution protocol runs on the label switching router, the label distribution protocol is specially designed to distribute labels, different FECs (Forwarding Equivalence classes) are divided according to elements of a data packet, and then different labels are distributed for the different FECs.
In a multipath protection scenario, because different FECs have different labels, even if the primary and standby next hops corresponding to multiple FECs are the same, corresponding protection entries need to be created for each FEC, which results in a large number of protection entries to be created, that is, a large number of protection entries need to be stored using more system resources, and further, when the number of protection entries is too large, the time required for performing protection switching is long.
Disclosure of Invention
The invention mainly aims to provide a method and a device for saving protection resources, and aims to solve the technical problem that the number of protection items required to be created in the prior art is large.
In a first aspect, the present invention provides a method for saving protection resources, where the method for saving protection resources includes:
acquiring main next hop information, a main label, standby next hop information and a standby label of forwarding equivalence class FEC;
establishing a first mapping relation between FEC and protection group table entries, wherein the protection group table entries comprise main next hop information and standby next hop information;
and establishing a tag group table entry by using the main tag and the standby tag, and establishing a second mapping relation between the protection group table entry and the tag group table entry.
Optionally, the step of establishing a first mapping relationship between the FEC and a protection set entry, where the protection set entry includes primary next hop information and standby next hop information, includes:
detecting whether sharable protection group table entries identical to the main next hop information and the standby next hop information exist in the established protection group table entries;
if the protection group table entry does not exist, the protection group table entry is established by the main next hop information and the standby next hop information, and a first mapping relation between the FEC and the protection group table entry is established.
Optionally, after the step of detecting whether a sharable protection set entry identical to the primary next hop information and the standby next hop information exists in the established protection set entry, the method further includes:
if yes, a first mapping relation between the FEC and the sharable protection group table entry is established.
Optionally, the method for saving protection resources includes:
when a link corresponding to the main next hop information in the protection group table entry fails, setting the main next hop information in the protection group table entry to be invalid;
and determining a target label group table entry based on the second mapping relation, and setting the invalidation of the main label in the target label group table entry.
Optionally, after the step of setting the master tag in the target tag group entry to be disabled, the method further includes:
acquiring standby next hop information and a standby label corresponding to the FEC based on the first mapping relation and the second mapping relation;
and forwarding the FEC to the standby next hop based on the standby next hop information and the standby label corresponding to the FEC.
In a second aspect, the present invention further provides an apparatus for saving protected resources, where the apparatus for saving protected resources includes:
the acquisition module is used for acquiring main next hop information, a main label, standby next hop information and a standby label of the forwarding equivalence class FEC;
a first establishing module, configured to establish a first mapping relationship between an FEC and a protection group entry, where the protection group entry includes primary next hop information and standby next hop information;
and the second establishing module is used for establishing a tag group table entry by using the main tag and the standby tag and establishing a second mapping relation between the protection group table entry and the tag group table entry.
Optionally, the first establishing module is configured to:
detecting whether sharable protection group table entries identical to the main next hop information and the standby next hop information exist in the established protection group table entries;
if the protection group table entry does not exist, establishing a protection group table entry by using the main next hop information and the standby next hop information, and establishing a first mapping relation between the FEC and the protection group table entry.
Optionally, the first establishing module is further configured to:
if so, establishing a first mapping relation between the FEC and the sharable protection group table entry.
Optionally, the apparatus for saving protection resources further includes a state changing module, configured to:
when a link corresponding to the main next hop information in the protection group table entry fails, setting the main next hop information in the protection group table entry to be invalid;
and determining a target label group table entry based on the second mapping relation, and setting the invalidation of the main label in the target label group table entry.
Optionally, the apparatus for saving protected resources further includes a forwarding module, configured to:
acquiring standby next hop information and a standby label corresponding to the FEC based on the first mapping relation and the second mapping relation;
and forwarding the FEC to the standby next hop based on the standby next hop information and the standby label corresponding to the FEC.
In the invention, main next hop information, a main label, standby next hop information and a standby label of forwarding equivalence class FEC are obtained; establishing a first mapping relation between FEC and a protection group table entry, wherein the protection group table entry comprises main next hop information and standby next hop information; and establishing a label group table entry by using the main label and the standby label, and establishing a second mapping relation between the protection group table entry and the label group table entry. According to the invention, the created protection group table entry only comprises the main next hop information and the standby next hop information corresponding to the FEC, and when a plurality of FECs correspond to the same protection group, the protection group table entry can be multiplexed, so that the protection entries needing to be created are reduced, the system protection resources are saved, and the time for carrying out protection switching is shortened.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a method for saving protection resources according to the present invention;
FIG. 2 is a network topology diagram of an embodiment of a method for saving protection resources according to the present invention;
FIG. 3 is a detailed flowchart of step S20 in FIG. 1;
fig. 4 is a schematic diagram illustrating a mapping relationship between FEC1 and FEC2 in an embodiment of a method for saving protection resources according to the present invention;
fig. 5 is a functional block diagram of an embodiment of the apparatus for saving protection resources according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides a method for saving protected resources.
In an embodiment, referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for saving protection resources according to the present invention. As shown in fig. 1, the method for saving protection resources includes:
step S10, acquiring main next hop information, a main label, standby next hop information and a standby label of forwarding equivalence class FEC;
in this embodiment, referring to fig. 2, fig. 2 is a network topology diagram of an embodiment of a method for saving protection resources according to the present invention. As shown in fig. 2, node 2 is the primary next hop for node 1, and node 3 is the standby next hop for node 1.
For FEC1, a corresponding label distribution control mode may be selected to allocate labels of FEC1 on node 2 and labels of FEC1 on node 3, where the label distribution control mode is, for example, an independent control mode, an ordered control mode, or a label advertisement mode, etc.
After the label distribution is completed, the label of the FEC1 on the node 2, the label of the FEC1 on the node 3, the IP address of the node 2, the IP address of the node 3, the egress interface information from the node 1 to the node 2, and the egress interface information from the node 1 to the node 3 may be obtained, where the IP address of the node 2, the IP address of the node 3, the egress interface information from the node 1 to the node 2, and the egress interface information from the node 1 to the node 3 are information determined during the route planning.
It is easy to understand that the IP address of the node 2 and the information of the outgoing interface from the node 1 to the node 2 are the main next hop information of the FEC1, and the label of the FEC1 on the node 2 is the main label; the IP address of the node 3 and the information of the outgoing interface from the node 1 to the node 3 are the information of the standby next hop of the FEC1, and the label of the FEC1 on the node 3 is the standby label.
Step S20, establishing a first mapping relation between FEC and protection group table entries, wherein the protection group table entries comprise main next hop information and standby next hop information;
in this embodiment, after the main next hop information, the main label, the standby next hop information, and the standby label of the FEC are obtained, a first mapping relationship between the FEC and a protection group entry formed by the main next hop information and the standby next hop information is established.
Further, in an embodiment, referring to fig. 3, fig. 3 is a schematic detailed flow chart of step S20 in fig. 1. As shown in fig. 3, step S20 includes:
step S201, detecting whether sharable protection group table entries identical to the main next hop information and the standby next hop information exist in the established protection group table entries;
in this embodiment, taking the IP address of the node 2 and the egress interface information from the node 1 to the node 2 as the main next hop information, and taking the IP address of the node 3 and the egress interface information from the node 1 to the node 3 as the standby next hop information as examples, the corresponding protection group entry is shown in table 1:
IP address of node 2 and egress interface information of node 1 to node 2 Main identification
IP address of node 3 and egress interface information of node 1 to node 3 Backup mark
TABLE 1
Wherein, it can use "1" as the main mark, used for marking the main next hop information; and using '0' as a standby identifier for identifying standby next hop information.
That is, it is looked up in the established protection group table entry whether there is the same protection group table entry as table 1, wherein the established protection group table entry which is the same as table 1 is called a sharable protection group table entry.
Step S202, if not, establishing a protection group entry by using the primary next hop information and the standby next hop information, and establishing a first mapping relationship between the FEC and the protection group entry.
In this embodiment, as shown in table 2, table 2 is an illustration of a protection table, where the protection table is used to establish a protection group entry:
IP address of node 5 and egress interface information of node 4 to node 5 Main identification
IP address of node 6 andegress interface information for node 4 to node 6 Backup mark
IP address of node 8 and egress interface information of node 7 to node 8 Main identification
IP address of node 9 and egress interface information of node 7 to node 9 Backup mark
TABLE 2
As shown in table 2, if the protection group table entry that is already established does not have the same protection group table entry as table 1, that is, the sharable protection group table entry does not exist, the protection group table entry needs to be established by using the primary next hop information and the standby next hop information, and the first mapping relationship between the FEC and the protection group table entry is established.
Taking the IP address of the node 2 and the egress interface information from the node 1 to the node 2 as main next hop information, and taking the IP address of the node 3 and the egress interface information from the node 1 to the node 3 as standby next hop information as examples, a corresponding protection group table entry is created in the protection table, and then the new protection table is shown in table 3:
Figure BDA0003383543820000051
Figure BDA0003383543820000061
TABLE 3
As shown in table 3, row 1 and row 2 in table 3 are used as one protection group entry, row 3 and row 4 are used as one protection group entry, and row 5 and row 6 are used as one protection group entry, and a corresponding ID may be set for each protection group entry, for example, if the ID of the protection group entry corresponding to row 5 and row 6 is ID3, a mapping relationship between FEC1 and ID3 is established, that is, a first mapping relationship between FEC1 and the protection group entry established by its corresponding main next hop information and the standby next hop information is established.
Further, in an embodiment, with reference to fig. 3, as shown in fig. 3, after step S201, the method further includes:
if yes, a first mapping relation between the FEC and the sharable protection group table entry is established.
In this embodiment, after acquiring the main next hop information, the main label, the standby next hop information, and the standby label of FEC1, the protection table is changed to the format of table 3 based on the processing in step S202. When the main next hop information, the main label, the standby next hop information, and the standby label of FEC2 are received, and the main next hop information of FEC2 is the same as the main next hop information of FEC1, and the standby next hop information of FEC2 is the same as the standby next hop information of FEC1, at this time, a sharable protection group entry (i.e., a protection group entry corresponding to rows 5 and 6) that is the same as the main next hop information and the standby next hop information corresponding to FEC2 exists in the established protection group entry, and the ID of the protection group entry corresponding to rows 5 and 6 is ID3, a mapping relationship between FEC2 and ID3 is established, that is, a first mapping relationship between FEC2 and the protection group entry established by the main next hop information and the standby next hop information corresponding to FEC2 is established.
In this embodiment, when the sharable protection group table entry identical to the primary next hop information and the standby next hop information of the FEC exists in the established protection group table entry, it is not necessary to re-establish the protection group table entry corresponding to the FEC, thereby implementing multiplexing of the established protection group table entry, and reducing the protection entries that need to be created.
And step S30, establishing a label group table entry by the main label and the standby label, and establishing a second mapping relation between the protection group table entry and the label group table entry.
In this embodiment, for example, if the main label of FEC1 is label 11 and the spare label of fecc 1 is label 12, then label group entry 1 corresponding to FEC1 is established, where label group entry 1 includes label 11 and label 12; similarly, if the main label of FEC2 is label 21, and the spare label of fecc 2 is label 22, then label group entry 2 corresponding to FEC2 is created, and label group entry 2 includes label 21 and label 22. As shown in table 4, table 4 is an illustration of a label table:
label 11 Main identification
Label 12 Backup mark
Label 21 Main identification
Label 22 Backup mark
TABLE 4
As shown in table 4, "1" may be used as a primary identifier for identifying a primary label; and using '0' as an alternate mark for marking the alternate label.
In table 4, the label group entry 1 in row 1 and row 2, i.e. FEC1, and the label group entry 2 in row 3 and row 4, i.e. FEC2, may set different IDs for different label group entries, for example, the ID of label group entry 1 is ID1', and the ID of label group entry 2 is ID2'.
Referring to the above embodiment, if the ID of the protection group entry corresponding to FEC1 is ID3, a mapping relationship between ID1' and ID3 is established, that is, a second mapping relationship between the protection group entry corresponding to FEC1 and the tag group entry corresponding to FEC1 is established; similarly, if the ID of the protection group entry corresponding to FEC2 is ID3, a mapping relationship between ID2' and ID3 is established, that is, a second mapping relationship between the protection group entry corresponding to FEC2 and the tag group entry corresponding to FEC2 is established.
In this embodiment, main next hop information, a main label, standby next hop information, and a standby label of a forwarding equivalence class FEC are obtained; establishing a first mapping relation between FEC and protection group table entries, wherein the protection group table entries comprise main next hop information and standby next hop information; and establishing a tag group table entry by using the main tag and the standby tag, and establishing a second mapping relation between the protection group table entry and the tag group table entry. According to the embodiment, the created protection group table entry only includes the main next hop information and the standby next hop information corresponding to the FEC, and when a plurality of FECs correspond to the same protection group, the protection group table entry can be multiplexed, so that the protection entries to be created are reduced, the system protection resources are saved, and the time required for protection switching is shortened.
Further, in an embodiment, the method for saving protection resources includes:
when a link corresponding to the main next hop information in the protection group table entry fails, setting the main next hop information in the protection group table entry to be invalid; and determining a target label group table entry based on the second mapping relation, and setting the invalidation of the main label in the target label group table entry.
In this embodiment, referring to fig. 4, fig. 4 is a schematic diagram illustrating a mapping relationship between FEC1 and FEC2 in an embodiment of the method for saving protection resources according to the present invention. When the link from the node 1 to the node 2 in fig. 2 is normal, and the node 1 forwards the FEC1 to the downstream, according to the first mapping relationship between the FEC1 and the protection group entry of the FEC1 and the second mapping relationship between the protection group entry of the FEC1 and the tag group entry of the FEC1, the FEC1 can be forwarded to the node 2 based on the tag 11, the IP address of the node 2, and the outgoing interface information from the node 1 to the node 2; similarly, when the node 1 forwards the FEC2 downstream, according to the first mapping relationship between the protection group entries of the FEC2 and the second mapping relationship between the protection group entries of the FEC2 and the tag group entries of the FEC2, the FEC2 may be forwarded to the node 2 based on the tag 21, the IP address of the node 2, and the egress interface information from the node 1 to the node 2.
However, when a link corresponding to the main next hop information in the protection group entry fails, that is, a link from node 1 to node 2 in fig. 2 fails, at this time, FEC1 and FEC2 need to be forwarded to node 3, that is, protection switching needs to be performed.
Firstly, setting the main next hop information in the protection group table entry to be invalid, so that the node 1 cannot use the main next hop information (i.e. the IP address of the node 2 and the outbound interface information from the node 1 to the node 2 in fig. 4) when forwarding the FEC1 and the FEC 2; then, a target tag group entry is determined based on the second mapping relationship, as shown in fig. 4, the tag group entry having the second mapping relationship with the protection group entry shared by FEC1 and FEC2 includes a tag group entry having an ID of ID1 'and a tag group entry having an ID of ID2', and then the target tag group entry includes a tag group entry having an ID of ID1 'and a tag group entry having an ID of ID2', and then the main tag in the tag group entry having an ID of ID1 'and the tag group entry having an ID of ID2' is invalidated, that is, the tag 11 and the tag 21 are set to be invalidated, so that the node 1 cannot use the tag 11 and the tag 21 when forwarding FEC1 and FEC 2.
Further, in an embodiment, after the step of setting the invalidation of the primary tag in the target tag group entry, the method further includes:
acquiring standby next hop information and a standby label corresponding to the FEC based on the first mapping relation and the second mapping relation; and forwarding the FEC to the standby next hop based on the standby next hop information and the standby label corresponding to the FEC.
In this embodiment, after setting the IP address of the node 2 and the egress interface information from the node 1 to the node 2, and the label 11 and the label 21 are invalid, when the node 1 forwards the FEC1 downstream, the IP address of the node 3 and the egress interface information from the node 1 to the node 3 (ignoring the IP address of the invalid node 2 and the egress interface information from the node 1 to the node 2) may be obtained according to the first mapping relationship between the FEC1 and the protection group entry of the FEC 1), and the label 12 (ignoring the invalid label 11) may be obtained according to the second mapping relationship between the protection group entry of the FEC1 and the label group entry of the FEC1, so that the FEC1 is forwarded to the node 3 based on the IP address of the node 3, the egress interface information from the node 1 to the node 3, and the label 12; similarly, when the node 1 forwards the FEC2 downstream, the IP address of the node 3 and the egress interface information from the node 1 to the node 3 may be obtained according to the first mapping relationship between the FEC2 and the protection group entry of the FEC2 (ignoring the IP address of the failed node 2 and the egress interface information from the node 1 to the node 2), and the label 22 may be obtained according to the second mapping relationship between the protection group entry of the FEC2 and the label group entry of the FEC2 (ignoring the failed label 21), so that the FEC2 is forwarded to the node 3 based on the IP address of the node 3, the egress interface information from the node 1 to the node 3, and the label 22.
In a second aspect, an embodiment of the present invention further provides a device for saving protection resources.
In an embodiment, referring to fig. 5, fig. 5 is a functional module diagram of an embodiment of the apparatus for saving protection resources according to the present invention. As shown in fig. 5, the apparatus for saving protection resources includes:
an obtaining module 10, configured to obtain main next hop information, a main label, standby next hop information, and a standby label of a forwarding equivalence class FEC;
a first establishing module 20, configured to establish a first mapping relationship between the FEC and a protection group entry, where the protection group entry includes primary next hop information and standby next hop information;
the second establishing module 30 is configured to establish a tag group entry by using the main tag and the standby tag, and establish a second mapping relationship between the protection group entry and the tag group entry.
Further, in an embodiment, the first establishing module 20 is configured to:
detecting whether sharable protection group table entries identical to the main next hop information and the standby next hop information exist in the established protection group table entries;
if the protection group table entry does not exist, establishing a protection group table entry by using the main next hop information and the standby next hop information, and establishing a first mapping relation between the FEC and the protection group table entry.
Further, in an embodiment, the first establishing module 20 is further configured to:
if so, establishing a first mapping relation between the FEC and the sharable protection group table entry.
Further, in an embodiment, the apparatus for saving protected resources further includes a state changing module, configured to:
when a link corresponding to the main next hop information in the protection group table entry fails, setting the main next hop information in the protection group table entry to be invalid;
and determining a target label group table entry based on the second mapping relation, and setting the invalidation of the main label in the target label group table entry.
Further, in an embodiment, the apparatus for saving protected resources further includes a forwarding module, configured to:
acquiring standby next hop information and a standby label corresponding to the FEC based on the first mapping relation and the second mapping relation;
and forwarding the FEC to the standby next hop based on the standby next hop information and the standby label corresponding to the FEC.
The function implementation of each module in the device for saving protected resources corresponds to each step in the embodiment of the method for saving protected resources, and the functions and implementation processes are not described in detail here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for saving protection resources, the method for saving protection resources comprising:
acquiring main next hop information, a main label, standby next hop information and a standby label of forwarding equivalence class FEC;
establishing a first mapping relation between FEC and a protection group table entry, wherein the protection group table entry comprises main next hop information and standby next hop information;
establishing a tag group table entry by using the main tag and the standby tag, and establishing a second mapping relation between the protection group table entry and the tag group table entry;
the step of establishing a first mapping relationship between the FEC and the protection set table entry, where the protection set table entry includes the primary next hop information and the standby next hop information, includes:
detecting whether sharable protection group table entries identical to the main next hop information and the standby next hop information exist in the established protection group table entries;
if the protection group table entry does not exist, establishing a protection group table entry by using the main next hop information and the standby next hop information, and establishing a first mapping relation between the FEC and the protection group table entry;
if so, establishing a first mapping relation between the FEC and the sharable protection group table entry.
2. The method of conserving protection resources of claim 1, wherein the method of conserving protection resources comprises:
when a link corresponding to the main next hop information in the protection group table entry fails, setting the main next hop information in the protection group table entry to be invalid;
and determining a target label group table entry based on the second mapping relation, and setting the invalidation of the main label in the target label group table entry.
3. A method for conserving protection resources as recited in claim 2, wherein after the step of setting a master tag in a target tag group entry to expire, further comprising:
acquiring standby next hop information and a standby label corresponding to the FEC based on the first mapping relation and the second mapping relation;
and forwarding the FEC to the standby next hop based on the standby next hop information and the standby label corresponding to the FEC.
4. An apparatus for saving protected resources, the apparatus comprising:
the acquisition module is used for acquiring main next hop information, a main label, standby next hop information and a standby label of the forwarding equivalence class FEC;
a first establishing module, configured to detect whether a sharable protection group table entry that is the same as the primary next hop information and the standby next hop information exists in an established protection group table entry; if the protection group table entry does not exist, establishing a protection group table entry by using the main next hop information and the standby next hop information, and establishing a first mapping relation between the FEC and the protection group table entry; if yes, establishing a first mapping relation between the FEC and the sharable protection group table entry;
and the second establishing module is used for establishing a label group table entry by using the main label and the standby label and establishing a second mapping relation between the protection group table entry and the label group table entry.
5. The apparatus for conserving protection resources of claim 4, wherein the apparatus for conserving protection resources further comprises a state change module configured to:
when a link corresponding to the main next hop information in the protection group table entry fails, setting the main next hop information in the protection group table entry to be invalid;
and determining a target label group table entry based on the second mapping relation, and setting the invalidation of the main label in the target label group table entry.
6. The apparatus for conserving protection resources of claim 5, wherein the apparatus for conserving protection resources further comprises a forwarding module configured to:
acquiring standby next hop information and a standby label corresponding to the FEC based on the first mapping relation and the second mapping relation;
and forwarding the FEC to the standby next hop based on the standby next hop information and the standby label corresponding to the FEC.
CN202111441607.XA 2021-11-30 2021-11-30 Method and device for saving protection resources Active CN114039905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111441607.XA CN114039905B (en) 2021-11-30 2021-11-30 Method and device for saving protection resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111441607.XA CN114039905B (en) 2021-11-30 2021-11-30 Method and device for saving protection resources

Publications (2)

Publication Number Publication Date
CN114039905A CN114039905A (en) 2022-02-11
CN114039905B true CN114039905B (en) 2023-03-31

Family

ID=80139295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111441607.XA Active CN114039905B (en) 2021-11-30 2021-11-30 Method and device for saving protection resources

Country Status (1)

Country Link
CN (1) CN114039905B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624615A (en) * 2012-03-02 2012-08-01 杭州华三通信技术有限公司 Forwarding method and forwarding device for multicast data messages based on multiple protocol label switching (MPLS)
CN111600797A (en) * 2019-02-21 2020-08-28 华为技术有限公司 Data transmission method, node and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518135C (en) * 2004-08-17 2009-07-22 华为技术有限公司 Method for renewing route in multi protocol label exchanging network
CN102315967B (en) * 2011-09-19 2017-04-12 中兴通讯股份有限公司 Intermediate node protection method for multicast label switched path and device
CN105379197B (en) * 2013-07-05 2019-01-11 华为技术有限公司 It establishes the method in tunnel, distribute method, equipment and the network system of label
CN107888493B (en) * 2017-11-30 2020-04-21 迈普通信技术股份有限公司 Method and device for establishing label switching path

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624615A (en) * 2012-03-02 2012-08-01 杭州华三通信技术有限公司 Forwarding method and forwarding device for multicast data messages based on multiple protocol label switching (MPLS)
CN111600797A (en) * 2019-02-21 2020-08-28 华为技术有限公司 Data transmission method, node and system

Also Published As

Publication number Publication date
CN114039905A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN107666438B (en) Message forwarding method and device
CN107733670B (en) Forwarding strategy configuration method and device
CN101582834B (en) Updating method and system of forwarding table during service transmission of Ethernet
CN109729012B (en) Unicast message transmission method and device
CN106878288B (en) message forwarding method and device
CN106161253B (en) Message processing method and device
CN107864091B (en) Link failure processing method and device
US10855576B2 (en) Information transmission method and device
CN101820397A (en) Network convergence method and device in virtual private local area network
CN102594657B (en) A kind of route iteration method and route exchange device
CN108600069B (en) Link switching method and device
US10652145B2 (en) Managing data frames in switched networks
CN101207545B (en) Method and system for detection of repeat media access control address on elastic grouping ring
CN107070790B (en) Route learning method and routing equipment
CN102739526A (en) Realization method of efficient distributed routing list realizing method
CN112152920B (en) Method and device for realizing table entry backup
CN103297338A (en) Virtual private network (VPN) router advertisement method and device
CN114039905B (en) Method and device for saving protection resources
CN100591044C (en) Method and device for establishing forward filtering table
CN101141380A (en) Method and system of transmitting packet
CN103414642A (en) Maintaining method and device of information forwarding
CN109104353B (en) Data transmission method and device
CN112769669B (en) Message forwarding method and network equipment
CN108123875B (en) Bidirectional forwarding detection method and device
CN106059810B (en) Message notification method and system

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
GR01 Patent grant
GR01 Patent grant