A method and device for automatically protecting a tunnel of an IPRAN government and enterprise A device

By adding lock identifier N to the connection information of A and U devices in the IPRAN network, the conflict problem caused by configuring the same tunnel out/entry tag at the same time is solved, and a higher success rate of work order is achieved. Equipment configuration management effect.

CN115941643BActive Publication Date: 2025-02-11CHINA UNITECHS
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211318715.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2025-02-11
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

In an IPRAN network, when multiple work tickets configure the same tunnel out/incoming tags for A devices at the same time, conflict problems may occur. Although the existing pre-allocation mechanism reduces the probability of conflict, it cannot be completely eliminated.

Method used

By adding a lock identifier N to the connection information of A and U devices, the value of N is determined to determine whether there is a available tag, so as to avoid multiple work tickets configuring the same tunnel outgoing/incoming tag at the same time.

Benefits of technology

It effectively avoids tunnel label conflicts, improves the success rate of work order issuance, and improves the standardized configuration management effect of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941643B_ABST
    Figure CN115941643B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic protection method and device for an IPRAN government and enterprise A device tunnel, wherein the method comprises: S01, a work order processes an A device tag; S02, an A device configures an in-out tag. The method and device add a lock mark N to the connection information of the A device and the U device, and determine whether there is an available tag by judging the value of N. Through the lock mark, the problem caused by multiple work orders configuring the same tunnel in-out / in tags for the same A device at the same time is avoided; the problem of tunnel tag conflict failure caused by multiple work orders being issued to the same AU device at the same time is solved, the success rate of work order issuance is improved, and the standardized configuration management effect of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network management, and in particular to an automatic protection method and device for an IPRAN government and enterprise A equipment tunnel. Background Art

[0002] In the IPRAN network, the access layer equipment of the integrated service access network refers to the integrated service access network (IP RAN) equipment used for service access and at the edge of the network, referred to as Class A equipment; Class A access equipment is the integrated service access network (IPRAN) equipment for traffic aggregation, referred to as Class B equipment; U equipment refers to the client access equipment, which is an access-type IPRAN equipment defined by China Telecom for carrying government and enterprise dedicated line services based on the IPRAN backhaul network. Generally, multiple U devices can be attached to one A device.

[0003] When the IPRAN network management issues government and enterprise services, there are multiple work orders that configure the same tunnel for the A device at the same time (with the same U connected), but with different in / out labels (for one work order, we generally configure the same in / out label value, such as 100, and the in / out label value configured for another work order may be 200). At this time, there may be a conflict problem. For the device itself, regardless of the in / out label value, it is a series of increasing numbers. The labels that can be allocated by the device are incremental. In addition, some devices, such as some Huawei A devices, do not have a separation strategy for dynamic and static labels. Mixing dynamic and static labels is more likely to cause conflicts. Although the network management uses a pre-allocation mechanism and the increment number is greater than 1 (such as 10), the pre-allocation mechanism is to reduce the probability of label allocation conflicts, but conflicts still exist. When the network management allocates 2 or more work orders at the same time, the same label value may be allocated.

[0004] When the device does not separate dynamic and static labels (such as Huawei devices), the network manager assigns a label value of v1 to work order 1, and the pre-assigned label value of work order 2 is v1+10. When work order 2 actually configures the label value v1+10 on the device, it is found that the device may have already configured the value v1+10 for other services (because dynamic and static labels are not separated, the device uses labels in ascending order). The pre-assigned increment number is greater than 1 (for example, 10), which only reduces the probability of conflict between dynamic and static labels, but does not completely eliminate it. Summary of the invention

[0005] In order to solve the above-mentioned problems existing in manual network fault location, the present invention provides an IPRAN government and enterprise A device tunnel automatic protection method and device, and adds a lock mark N to the connection information of the A device and the U device. The lock mark can avoid the problems caused by multiple work orders configuring the same A with the same tunnel's exit and entry labels at the same time, and can also improve the efficiency of issuing work orders.

[0006] To achieve the above object, the present invention adopts the following technical solutions:

[0007] In one embodiment of the present invention, a method for automatically protecting a tunnel of an IPRAN government and enterprise A device is proposed, the method comprising:

[0008] S01, work order processing A equipment label;

[0009] S02. Device A configures entry and exit tags.

[0010] Further, the S01 includes:

[0011] S011, start to obtain auinfo table information, the auinfo table contains necessary information: AUID, A device IP, A device port, U device IP, U device port and lock table identifier, the obtained lock identifier value is recorded as N;

[0012] S012, determine whether N is greater than 0, otherwise go to the next step;

[0013] S013, determine whether N is equal to 0, if so, modify the lock flag value in the auinfo table to -1;

[0014] S014, execute the A device configuration input and output label sub-process, and obtain the return value result, that is, the number of labels;

[0015] S015, determine whether result is greater than 0, otherwise go to the next step;

[0016] S016. Change the lock identification value in the auinfo table to N, and return the entry and exit tag value to the work order.

[0017] Furthermore, the S012 also includes: N>0, then N=N-1, and the aulabel table includes AUID, in / out label value and status, obtain a record M in the aulabel table with a status of free, modify the M status to used, obtain the in / out label value to value, and jump to S016.

[0018] Furthermore, the S013 also includes: if N≠0, wait for 5 seconds and jump to S012.

[0019] Furthermore, the S015 also includes: if result>0, jump to S012.

[0020] Further, the S02 includes:

[0021] S021, initialize the return value result = 0, log in to device A, and execute the display mpls label staticavailable command to view the available label range. The available label set is recorded as H.

[0022] S022, determine whether H is empty, if H is not empty, go to S023;

[0023] S023. Extract a data element from H, record it as V, execute the configuration of input and output labels, if there is no error, result = result + 1, and insert the V value into the aulabel table, the status is free;

[0024] S024, if result=10, jump to S025;

[0025] S025. Exit the device and return the result value.

[0026] Furthermore, the S022 also includes: if H is empty, jump to S025.

[0027] Furthermore, the S023 also includes: if an error is reported when executing the configuration of the input and output tags, jumping to S025.

[0028] Furthermore, the S024 also includes: if result≠10, then jump to S023.

[0029] In one embodiment of the present invention, an IPRAN government and enterprise A equipment tunnel automatic protection device is also proposed, and the device includes:

[0030] Work order processing A equipment label module;

[0031] Device A is equipped with an in / out label module.

[0032] Furthermore, the work order processing A equipment label module includes:

[0033] N value acquisition module, start to obtain auinfo table information, the auinfo table contains necessary information: AUID, A device IP, A device port, U device IP, U device port and lock table identifier, the obtained lock identifier value is recorded as N;

[0034] N is greater than 0 module, judge whether N is greater than 0, otherwise go to the next step;

[0035] N=0 module, determine whether N is equal to 0, if so, modify the lock flag value in the auinfo table to -1;

[0036] The result value acquisition module executes the A device configuration input and output tag sub-process to obtain the return value result, that is, the number of tags;

[0037] The result is greater than 0 module, determines whether the result is greater than 0, otherwise the next step;

[0038] Return to the work order module, modify the lock identification value in the auinfo table to N, and return the input and output tag value to the work order.

[0039] Furthermore, the N greater than 0 module also includes: N>0, then N=N-1, and the aulabel table contains AUID, input and output label values ​​and status, obtains a record M with a status of free in the aulabel table, modifies the M status to used, obtains the input and output label value to value, and jumps back to the work order module.

[0040] Furthermore, the N=0 module also includes: if N≠0, wait for 5 seconds and jump to the N greater than 0 module.

[0041] Furthermore, the result greater than 0 module also includes, if result>0, jump to N greater than 0 module.

[0042] Furthermore, the A device configures the in / out label module including:

[0043] The H value acquisition module initializes the return value result = 0, logs in to device A, and executes the display mpls labelstatic available command to view the available label range. The available label set is recorded as H.

[0044] H value judgment module, judge whether H is empty or not, if H is not empty, enter the execution configuration module;

[0045] Execute the configuration module, extract a data element from H, record it as V, execute the configuration of input and output labels, if there is no error, result = result + 1, and insert the V value into the aulabel table, the status is free;

[0046] Result value judgment module, judge result=10, then jump to the end module;

[0047] End the module, exit the device, and return the result value.

[0048] Furthermore, the H value judgment module also includes: a jump end module if H is empty.

[0049] Furthermore, the execution configuration module also includes: a jump end module if an error is reported in the execution configuration input and output tag configuration.

[0050] Furthermore, the result value judgment module also includes: if result≠10, then jump to execute the configuration module.

[0051] In one embodiment of the present invention, a computer device is also proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the aforementioned IPRAN government and enterprise A device tunnel automatic protection method is implemented.

[0052] In one embodiment of the present invention, a computer-readable storage medium is also proposed, which stores a computer program for executing the automatic protection method for the IPRAN government and enterprise A device tunnel. Beneficial Effects

[0053] The present invention adds a lock identifier N to the connection information of the A device and the U device, determines whether there is an available tag by judging the value of N, and avoids the problem caused by multiple work orders configuring the same tunnel exit / entry tags for the same A at the same time through the lock identifier.

[0054] The present invention solves the problem of tunnel label conflict failure caused by simultaneous issuance of multiple work orders to the same AU device, improves the success rate of work order issuance, and improves the effect of standardized configuration management of equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 It is a flow chart of the automatic protection method of the IPRAN government and enterprise A equipment tunnel of the present invention;

[0056] Figure 2 This is a schematic diagram of the work order processing A equipment label process;

[0057] Figure 3 This is a schematic diagram of the process of configuring the entry and exit labels of device A;

[0058] Figure 4 It is a schematic diagram of the structure of an automatic tunnel protection device for IPRAN government and enterprise A equipment according to an embodiment of the present invention;

[0059] Figure 5 This is a schematic diagram of the work order processing A equipment label module;

[0060] Figure 6 This is a schematic diagram of the in-and-out label module configured on device A;

[0061] Figure 7 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0063] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0064] According to an implementation mode of the present invention, a method and apparatus for automatic protection of an IPRAN government and enterprise A device tunnel is proposed. A lock mark N is added to the connection information of the A device and the U device. The lock mark can avoid problems caused by multiple work orders configuring the same A device with the same tunnel's inlet and outlet labels at the same time, and can also improve the efficiency of issuing work orders.

[0065] Database related tables

[0066] auinfo, A device to U device connection information table, including necessary information: AUID, A device IP, A device port, U device IP, U device port, lock table identifier, as shown in Table 1:

[0067]

[0068] aulabel, A device tunnel in / out label information table, including AUID, in / out label value, and status, as shown in Table 2:

[0069]

[0070] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.

[0071] Figure 1 1 is a flow chart of an automatic protection method for an IPRAN government and enterprise A equipment tunnel according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0072] S01, work order processing A equipment label;

[0073] S02. Device A configures entry and exit tags.

[0074] like Figure 2 As shown, the S01 includes:

[0075] S011, start to obtain auinfo table information, the auinfo table contains necessary information: AUID, A device IP, A device port, U device IP, U device port and lock table identifier, the obtained lock identifier value is recorded as N;

[0076] S012, determine whether N is greater than 0, otherwise go to the next step;

[0077] S013, determine whether N is equal to 0, if so, modify the lock flag value in the auinfo table to -1;

[0078] S014, execute the A device configuration input and output label sub-process, and obtain the return value result, that is, the number of labels;

[0079] S015, determine whether result is greater than 0, otherwise go to the next step;

[0080] S016. Change the lock identification value in the auinfo table to N, and return the entry and exit tag value to the work order.

[0081] The S012 also includes: N>0, then N=N-1, and the aulabel table includes AUID, in / out label value and status, obtain a record M in the aulabel table with a status of free, modify the M status to used, obtain the in / out label value to value, and jump to S016.

[0082] The S013 also includes: if N≠0, wait for 5 seconds and jump to S012.

[0083] The S015 also includes: if result>0, jump to S012.

[0084] like Figure 3 As shown, the S02 includes:

[0085] S021, initialize the return value result = 0, log in to device A, and execute the display mpls label staticavailable command to view the available label range. The available label set is recorded as H.

[0086] S022, determine whether H is empty, if H is not empty, go to S023;

[0087] S023. Extract a data element from H, record it as V, execute the configuration of input and output labels, if there is no error, result = result + 1, and insert the V value into the aulabel table, the status is free;

[0088] S024, if result=10, jump to S025;

[0089] S025. Exit the device and return the result value.

[0090] The S022 also includes: if H is empty, jump to S025.

[0091] The S023 also includes: if an error is reported when executing the configuration of the input and output tags, jump to S025.

[0092] The S024 further includes: if result≠10, then jump to S023.

[0093] When N=0, it means that the in / out labels have been used up, and you need to log in to the A device area to configure: the following pseudo command, when you want to configure the in / out labels from 1 to 10,

[0094] You need to execute the following command 10 times, with the inbound and outbound label values ​​1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 respectively. After configuration and storage in the database, the label is marked as free, indicating that it is available.

[0095] static-lsp ingress A_{input and output label value}_U destination {A device port IP} 32nexthop {U device port IP} out-label {input and output label value}

[0096] static-lsp egress U_{inbound and outbound label value}_A in-label {inbound and outbound label value}

[0097] The process of configuring multiple available labels for a work order is to log in to the device to view the available label values, obtain the available label data set, configure the out / in labels one by one, and record these label values ​​in the aulabel table, mark them as available, and exit the device when the configured quantity meets the conditions.

[0098] When a work order encounters N>0, a certain input / output label value in aulabel is directly used, marked as used, and the value of N is reduced by 1.

[0099] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0100] In order to explain the above-mentioned IPRAN government and enterprise A equipment tunnel automatic protection method more clearly, a specific embodiment is used for illustration below. However, it is worth noting that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation on the present invention.

[0101] Example of steps for configuring in / out tags on device A:

[0102] Check the available range of static tags on device A.

[0103]

[0104] S021, initialize the return value result = 0, log in to device A, and execute the display mpls label staticavailable command to view the available label range. The available label set is recorded as H.

[0105] S022, determine whether H is empty, if empty, jump to S015;

[0106] S023. Extract a data element from H, record it as V, and execute the configuration of input and output labels, specifically:

[0107] system-view

[0108] static-lsp ingress A_{V}_U destination {A device port IP} 32 nexthop {U device port IP} out-label {V}

[0109] static-lsp egress U_{V}_A in-label {V}

[0110] quit

[0111] If there is no error, result = result + 1, and the V value is inserted into the aulabel table, and the status is free; if there is an error, jump to step 5.

[0112] S024. If result=10, jump to step 5; otherwise, jump to step 3.

[0113] S025. Exit the device and return the result value.

[0114] Additional examples of pseudo instructions for S023,

[0115] Command example: If the V value is 100, the A device port IP is 1.1.1.1, and the U device port IP is 2.2.2.2, then the specific command is

[0116] system-view

[0117] static-lsp ingress A_100_U destination 1.1.1.1 32 nexthop 2.2.2.2out-label 100

[0118] static-lsp egress U_100_A in-label 100

[0119] quit

[0120] Based on the same inventive concept, the present invention also proposes an automatic protection device for an IPRAN government and enterprise A equipment tunnel. The implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated. The term "module" used below can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0121] Figure 4 1 is a schematic diagram of the structure of an automatic tunnel protection device for IPRAN government and enterprise A equipment according to an embodiment of the present invention. Figure 4 As shown, the device comprises:

[0122] Work order processing A equipment label module 110;

[0123] Device A is equipped with an in / out tag module 120 .

[0124] like Figure 5 As shown, the work order processing A equipment label module 110 includes:

[0125] N value acquisition module 111, starts to acquire auinfo table information, the auinfo table contains necessary information: AUID, A device IP, A device port, U device IP, U device port and lock table identifier, the acquired lock identifier value is recorded as N;

[0126] N is greater than 0 module 112, judging whether N is greater than 0, otherwise proceeding to the next step;

[0127] N=0 module 113, determine whether N is equal to 0, if so, modify the lock identification value in the auinfo table to -1;

[0128] The result value acquisition module 114 executes the A device configuration input and output tag sub-process to obtain the return value result, that is, the number of tags;

[0129] result is greater than 0 module 115, determine whether result is greater than 0, otherwise go to the next step;

[0130] Return to the work order module 116, modify the lock identification value in the auinfo table to N, and return the input and output tag value to the work order.

[0131] The N greater than 0 module 112 also includes: N>0, then N=N-1, and the aulabel table contains AUID, input and output label values ​​and status, obtains a record M with a status of free in the aulabel table, modifies the M status to used, obtains the input and output label value of value, and jumps back to the work order module 116.

[0132] The N=0 module 113 further includes: if N≠0, wait for 5 seconds and jump to the N greater than 0 module 112.

[0133] The result greater than 0 module 115 further includes: if result>0, jump to N greater than 0 module 112.

[0134] like Figure 6 As shown, the A device configuration entry and exit label module 120 includes:

[0135] The H value acquisition module 121 initializes the return value result=0, logs in to device A, and executes the display mpls labelstatic available command to view the available label range. The available label set is recorded as H.

[0136] H value judgment module 122, judges whether H is empty, if H is not empty, enters execution configuration module 123;

[0137] Execute configuration module 123, extract a data element from H, record it as V, execute configuration of input and output labels, if there is no error, result=result+1, and insert the V value into the aulabel table, the status is free;

[0138] The result value judgment module 124 judges that result=10, then jumps to the end module 125;

[0139] End module 125, exit the device and return the result value.

[0140] The H value judgment module 122 further includes: a jump-to-end module 125 if H is empty.

[0141] The execution configuration module 123 also includes: a jump end module 125 when an error is reported in the execution configuration input and output tag configuration.

[0142] The result value judgment module 124 further includes: if result≠10, the execution of the configuration module 123 is jumped.

[0143] It should be noted that although several modules of the IPRAN government and enterprise A equipment tunnel automatic protection device are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules for embodiment.

[0144] Based on the above invention concept, Figure 7As shown, the present invention also proposes a computer device 200, including a memory 210, a processor 220, and a computer program 230 stored in the memory 210 and executable on the processor 220. When the processor 220 executes the computer program 230, the aforementioned IPRAN government and enterprise A device tunnel automatic protection method is implemented.

[0145] Based on the aforementioned inventive concept, the present invention also proposes a computer-readable storage medium, which stores a computer program for executing the aforementioned IPRAN government and enterprise A device tunnel automatic protection method.

[0146] The present invention proposes an automatic protection method and device for IPRAN government and enterprise A equipment tunnels, which adds a lock mark N to the connection information of the A equipment and the U equipment, and determines whether there is an available label by judging the value of N; through the lock mark, the problem caused by multiple work orders configuring the same tunnel entry / exit labels for the same A equipment at the same time is avoided; the problem of tunnel label conflict failure caused by multiple work orders being issued to the same AU equipment at the same time is solved, the success rate of work order issuance is improved, and the standardized configuration management effect of the equipment is improved.

[0147] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements contained in the spirit and scope of the attached claims.

[0148] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.

Claims

1. An automatic protection method for IPRAN government and enterprise A equipment tunnel, characterized in that: The method includes: S01, Work order processing A equipment tag, including: S011, start to obtain the auinfo table information, and record the lock identification value as N. The auinfo table is the connection information table from device A to device U. The auinfo table contains: AUID, device A IP, device A port, device U IP, device U port and lock ID. S012, determine whether N is greater than 0, otherwise go to the next step; if N>0, then N=N-1, obtain a record M in the aulabel table with a state of free, change the state of M to used, obtain the in / out label value as value, and jump to S016, The aulabel table is the A device tunnel ingress and egress label information table, which contains AUID, ingress and egress label values ​​and status; S013, determine whether N is equal to 0, if so, modify the lock flag value in the auinfo table to -1; S014, execute the A device configuration input and output label sub-process, and obtain the return value result, that is, the number of labels; S015, determine whether result is greater than 0, otherwise go to the next step; S016. Change the lock flag value in the auinfo table to N, and return the in / out tag value to the work order; S02. Device A configures entry and exit tags.

2. The automatic protection method for IPRAN government and enterprise A equipment tunnel according to claim 1 is characterized in that: The S013 also includes: if N≠0, wait for 5 seconds and jump to S012.

3. The automatic protection method for IPRAN government and enterprise A equipment tunnel according to claim 1 is characterized in that: The S015 also includes: if result>0, jump to S012.

4. The automatic protection method for IPRAN government and enterprise A equipment tunnel according to claim 1 is characterized in that: The S02 includes: S021, initialize the return value result = 0, log in to device A, execute the display mpls label staticavailable command to view the available label range, and the available label set is recorded as H; S022, determine whether H is empty, if H is not empty, go to S023; S023. Extract a data element from H, record it as V, execute the configuration of input and output labels, if there is no error, result = result + 1, and insert the V value into the aulabel table, the status is free; S024, if result=10, jump to S025; S025. Exit the device and return the result value.

5. The automatic protection method for IPRAN government and enterprise A equipment tunnel according to claim 4 is characterized in that: The S022 also includes: if H is empty, jump to S025.

6. The automatic protection method for IPRAN government and enterprise A equipment tunnel according to claim 4 is characterized in that: The S023 also includes: if an error is reported when executing the configuration of the input and output tags, jump to S025.

7. The automatic protection method for IPRAN government and enterprise A equipment tunnel according to claim 4 is characterized in that: The S024 also includes: if result≠10, jump to S023.

8. An automatic protection device for IPRAN government and enterprise A equipment tunnel, characterized in that: The device includes: Work order processing A equipment label module, including: N value acquisition module, start to obtain auinfo table information, obtain the lock identification value recorded as N, The auinfo table is the connection information table from device A to device U. The auinfo table contains: AUID, device A IP, device A port, device U IP, device U port and lock ID. N is greater than 0 module, determine whether N is greater than 0, otherwise go to the next step; if N>0, then N=N-1, obtain a record M with a free status in the aulabel table, change the M status to used, obtain the in / out label value to value, jump to S016, The aulabel table is the A device tunnel ingress and egress label information table, which contains AUID, ingress and egress label values ​​and status; N=0 module, determine whether N is equal to 0, if so, modify the lock flag value in the auinfo table to -1; The result value acquisition module executes the A device configuration input and output tag sub-process to obtain the return value result, that is, the number of tags; The result is greater than 0 module, determines whether the result is greater than 0, otherwise the next step; Return to the work order module, modify the lock flag value in the auinfo table to N, and return the in / out tag value to the work order; Device A is equipped with an in / out label module.

9. The IPRAN government and enterprise A equipment tunnel automatic protection device according to claim 8, characterized in that: The N=0 module also includes: if N≠0, wait for 5 seconds and jump to the N greater than 0 module.

10. The IPRAN government and enterprise A equipment tunnel automatic protection device according to claim 8, characterized in that: The result greater than 0 module also includes: if result>0, jump to N greater than 0 module.

11. The IPRAN government and enterprise A equipment tunnel automatic protection device according to claim 8, characterized in that: The A device configuration in and out label module includes: The H value acquisition module initializes the return value result = 0, logs in to device A, and executes the display mpls label staticavailable command to view the available label range. The available label set is recorded as H. H value judgment module, judge whether H is empty or not, if H is not empty, enter the execution configuration module; Execute the configuration module, extract a data element from H, record it as V, execute the configuration of input and output labels, if there is no error, result = result + 1, and insert the V value into the aulabel table, the status is free; Result value judgment module, judge result=10, then jump to the end module; End the module, exit the device, and return the result value.

12. The IPRAN government and enterprise A equipment tunnel automatic protection device according to claim 11, characterized in that: The H value judgment module also includes: a jump end module if H is empty.

13. The IPRAN government and enterprise A equipment tunnel automatic protection device according to claim 11, characterized in that: The execution configuration module also includes: a jump end module if an error is reported in the execution configuration input and output tag configuration.

14. The IPRAN government and enterprise A equipment tunnel automatic protection device according to claim 11, characterized in that: The result value judgment module also includes: if result≠10, then jump to execute the configuration module.

15. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for optimizing issuing efficiency of IPRAN private line service configuration

    CN113904927A