Method, device and equipment for detecting hidden dangers of same route in transmission network and medium
By obtaining and analyzing the relationship between optical cables, subnet systems and transmission segments in the transmission network, optical cables and support segments with hidden dangers of the same routing are detected, which solves the problem that existing systems cannot effectively detect and prevent hidden dangers of the same routing, and realizes comprehensive hidden danger detection of the transmission network.
Patent Information
- Application Number
- CN202411996288.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-31
AI Technical Summary
Existing systems cannot effectively detect and prevent potential risks of same routing in transmission networks, resulting in service interruption and protection failure.
By obtaining the relationship between the entire network optical cable, subnet system and transmission section, we can detect the support sections of the same cable and same route potential hazards that meet the preset conditions.
It realizes comprehensive detection of the same-routed hidden dangers in the transmission network, can promptly detect hidden dangers in a single-shot or small-batch transmission subnet system, and is suitable for the detection of a single-shot full-shot or large-batch transmission subnet system.
Smart Images

Figure CN119766326A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mobile communication technology, and in particular to a method, device, equipment and medium for detecting common routing risks in a transmission network. Background Art
[0002] In related technologies, the transmission network is the basic foundation for carrying wireless, broadband, dedicated line and other services, and is composed of many subnet systems such as PTN (Packet Transport Network), SPN (Slicing Packet Network), OTN (Optical Transport Network), SDH (Synchronous Digital Hierarchy), etc. The subnet system usually uses pipeline resources such as optical cables to connect multiple transmission devices of corresponding types. Different disaster recovery protection solutions can be deployed according to the importance of the services carried by the subnet system and different networking forms. When the main route fails, the services carried on the subnet system can automatically switch to the backup route to ensure the safety of business operation.
[0003] With the continuous development of network technology, networking has become increasingly large and complex. The existing system cannot avoid the contradiction between the multiple different logical paths in the network management topology and the same physical route of the optical cable laying actually used. Once a fault occurs in the physical same route, it will cause double breaks and protection failures on the primary and backup paths of a single or multiple or different-level subnet systems, resulting in large-scale service outages. Therefore, a detection method for the hidden dangers of the same route in the transmission network is urgently needed. Summary of the invention
[0004] The present disclosure provides a method, device, equipment and medium for detecting common routing risks in a transmission network. The technical solution of the present disclosure is as follows:
[0005] In a first aspect, the present disclosure provides a method for detecting common routing risks in a transmission network, comprising:
[0006] Obtain the relationship between the optical cables, subnet systems and transmission segments of the entire network;
[0007] Based on the association between the optical cables of the entire network, the subnet system and the transmission segment, the optical cables that meet the first preset condition and have the same cable and same route hidden danger are detected; wherein the same cable and same route hidden danger refers to the routing hidden danger that the failure of the same optical cable will cause the interruption of the system in two directions;
[0008] Based on the association relationship between the optical cable, subnet system and transmission segment of the entire network, and the association relationship between the optical cable and the support segment, determine the association relationship between the support segment, optical cable, subnet system and transmission segment of the entire network;
[0009] Based on the association between the support segment, optical cable, subnet system and transmission segment of the entire network, the support segment that meets the second preset condition and has the risk of different cables with the same route is detected; wherein the risk of different cables with the same route refers to the risk of routing that the failure of the same support segment will cause the system to be interrupted in two directions.
[0010] In a possible implementation manner, obtaining the association relationship among the optical cables, subnet systems, and transmission segments of the entire network includes:
[0011] Use the first list to read all transmission segment identifiers of the entire network, use the second list to read the subnet system identifier to which each transmission segment identifier in the entire network belongs, and use the third list to read the optical cable identifier passed by each transmission segment identifier in the entire network; wherein the first list, the second list, and the third list are one-dimensional lists;
[0012] Based on the first list, the second list and the third list, a fourth list is constructed by association; the fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship between the optical cables, subnet systems and transmission segments of the entire network.
[0013] In a possible implementation manner, the detecting of the optical cables that meet the first preset condition and have the hidden danger of the same cable and the same route based on the association relationship among the optical cables, subnet systems and transmission segments of the entire network includes:
[0014] By applying a counter container to the optical cable identifiers, counting the frequency of each of the optical cable identifiers;
[0015] Traversing the fourth list based on the frequency of each optical cable identifier, and counting the frequency, the subnet identifier, and the transmission segment identifier corresponding to each optical cable identifier;
[0016] Based on the frequency, the subnet identifier and the transmission segment identifier corresponding to each of the optical cable identifiers, count the number of transmission segments n1 to which each of the optical cable identifiers belongs in the single subnet system to which it belongs, and the number of subnet systems affected n2 by each of the optical cable identifiers;
[0017] For the i-th optical cable identifier, when the number n1 of transmission segments in the same subnet system to which the i-th optical cable identifier belongs is greater than the first preset threshold, the subnet system impact number n2 of the i-th optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1,M), M is the total number of optical cables;
[0018] When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is greater than or equal to the second threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause multiple subnet systems to be interrupted in two directions at the same time;
[0019] When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is less than the second preset threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause interruption in two directions of a single subnet system.
[0020] In a possible implementation manner, determining the association relationship between the whole network support segment, the optical cable, the subnet system and the transmission segment based on the association relationship between the whole network optical cable, the subnet system and the transmission segment, and the association relationship between the optical cable and the support segment, includes:
[0021] Determine the association relationship between the optical cable and the supporting segment according to the correspondence between the optical cable and the optical cable segment, and between the optical cable segment and the supporting segment; wherein the association relationship between the optical cable and the supporting segment is represented by a fifth list, and the fifth list is a two-dimensional list;
[0022] Based on the fourth list, the fifth list is traversed to determine the association relationship between the whole network support segment, optical cable, subnet system and transmission segment; wherein the association relationship between the whole network support segment, optical cable, subnet system and transmission segment is represented by the sixth list, and the sixth list is a two-dimensional list.
[0023] In a possible implementation manner, based on the association relationship among the support segment, the optical cable, the subnet system and the transmission segment, detecting the support segment that meets the second preset condition and has the risk of different cables and the same route includes:
[0024] By using a counter container to count the frequency of each of the support segments;
[0025] Associating the frequency of each of the supporting segments with the optical cable identifier, the subnet system identifier, and the transmission segment identifier associated with each of the supporting segments to obtain a seventh list;
[0026] Based on the seventh list, count the number N1 of transmission segments in the same subnet system corresponding to each of the supporting segments, and the number N2 of subnet systems affected by each of the supporting segments;
[0027] For the j-th support segment, when the number of transmission segments N1 in the same subnet system corresponding to the j-th support segment is greater than or equal to the third preset threshold, the subnet system impact number N2 of the j-th support segment is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support segments;
[0028] When the frequency of the j-th support segment is greater than or equal to a fourth preset threshold, and the number N2 of subnet systems affected by the j-th support segment is greater than or equal to the fourth preset threshold, it is determined that the j-th support segment is a hidden danger of different cables and the same route that will cause multiple subnet systems to be interrupted in two directions at the same time;
[0029] When the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the subnet system impact quantity N2 of the j-th support segment is less than the fourth preset threshold, it is determined that the j-th support segment is a hidden danger of different cables and the same route that will cause a single subnet system to be interrupted in two directions at the same time.
[0030] In a possible implementation, at least one of the following is also included:
[0031] For all hidden dangers with the same cable and route, they are sorted and displayed according to the frequency corresponding to the optical cable and the number of subnet systems affected;
[0032] All hidden dangers of different cables and the same route are sorted and displayed according to the corresponding frequency of the supporting section and the number of subnet systems affected.
[0033] In a second aspect, the present disclosure provides a device for detecting common routing risks in a transmission network, including:
[0034] An acquisition module is used to obtain the association between the optical cables, subnet systems and transmission segments of the entire network;
[0035] The first detection module is used to detect the optical cables that meet the first preset condition and have the same cable and same route hidden dangers based on the association relationship between the optical cables of the whole network, the subnet system and the transmission segment; wherein the same cable and same route hidden dangers refer to the routing hidden dangers that the failure of the same optical cable will cause the interruption of two directions of the system;
[0036] A determination module, used to determine the association relationship between the support segment, optical cable, subnet system and transmission segment of the entire network based on the association relationship between the optical cable, subnet system and transmission segment of the entire network, and the association relationship between the optical cable and the support segment;
[0037] The second detection module is used to detect the support segment that meets the second preset condition and has the hidden danger of different cables with the same route based on the association relationship between the support segment, optical cable, subnet system and transmission segment of the whole network; wherein the hidden danger of different cables with the same route refers to the routing hidden danger that the failure of the same support segment will cause the interruption of the system in two directions.
[0038] In a third aspect, the present disclosure provides an electronic device, including:
[0039] processor;
[0040] a memory for storing instructions executable by the processor;
[0041] The processor is configured to execute the instructions to implement the method described in the first aspect.
[0042] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method described in the first aspect when executed by a processor.
[0043] In a fifth aspect, the present disclosure provides a computer program product, comprising a computer program / instructions, characterized in that when the computer program / instructions are executed by a processor, the method described in the first aspect is implemented.
[0044] The technical solution disclosed in this disclosure brings at least the following beneficial effects:
[0045] In the embodiments of the present disclosure, by obtaining the association relationship among the optical cables, subnet systems and transmission segments of the entire network, and based on the association relationship among the optical cables, subnet systems and transmission segments of the entire network, optical cables with the same cable and same route hidden dangers that meet the first preset condition are detected; wherein, the same cable and same route hidden dangers refer to the route hidden dangers that the failure of the same optical cable will cause the interruption of two directions of the system; based on the association relationship among the optical cables, subnet systems and transmission segments of the entire network, and the association relationship between the optical cables and the support segments, the association relationship among the support segments, optical cables, subnet systems and transmission segments of the entire network is determined; based on the association relationship among the support segments, optical cables, subnet systems and transmission segments of the entire network, the support segments with the same route hidden dangers that meet the second preset condition are detected. In this way, on the one hand, it can be applied to the detection of same route hidden dangers in a single or small batch transmission subnet system, and on the other hand, it can be applied to the detection of same route hidden dangers in a single full or large batch transmission subnet system.
[0046] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0048] Figure 1 A flow chart of a method for detecting common routing risks in a transmission network provided by an embodiment of the present disclosure;
[0049] Figure 2 It is a detailed step diagram of a method for detecting common routing risks in a transmission network provided by an embodiment of the present disclosure;
[0050] Figure 3It is a structural schematic diagram of a device for detecting common routing hazards in a transmission network provided by an embodiment of the present disclosure;
[0051] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0054] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0055] The acquisition, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations.
[0056] It should be noted that in the embodiments of the present disclosure, there may be existing solutions in the industry such as certain software, components, models, etc., which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present disclosure, but it does not mean that the applicant has or will necessarily use the solution.
[0057] In the relevant technologies, the transmission network is the basic foundation for carrying wireless, broadband, dedicated line and other services. It is composed of many subnet systems such as PTN / SPN / OTN / SDH. These subnet systems are connected to multiple transmission devices of corresponding types by pipeline resources such as optical cables. Different disaster recovery protection schemes are deployed according to the importance of the services they carry and different networking forms. When the main route fails, the services carried on the system can automatically switch to the backup route to ensure the safety of business operations. However, at this stage, the networking of equipment and optical cables is becoming more and more large and complex. The system cannot avoid the contradiction between the multiple different logical paths in the network management topology and the same physical route of the optical cable laying actually used. A failure at the same physical route can cause double breaks and protection failures on the main and backup paths of a single or multiple or different levels of subnet systems, resulting in large-scale service withdrawal.
[0058] In response to the above problems, major communication operators and related manufacturers have provided different co-routing analysis methods for the two transmission optical cables / optical paths and within a single transmission subnet system. The existing analysis method for the co-routing of transmission optical cables uses frequency as an identification feature. The analysis level remains at the optical path group constructed by the optical path routing and topological links within the subnet system. The usage distribution of all optical cables and their underlying supporting sections (optical cable routing) in all transmission subnet systems is not grasped, and no global consideration and analysis is made for the same-cable and same-routing and different-cable and same-routing of the entire transmission subnet system. That is, the relevant technology has at least the following technical problems:
[0059] (1) It is impossible to know in advance all the transmission subnet systems carried by the optical cable and the same route. They can only be learned passively after the failure occurs. How to identify all the transmission subnet systems corresponding to the optical cable and the same route in advance is an urgent problem to be solved.
[0060] (2) Optimization resources cannot be invested in time to address the same-route risks that pose the greatest threat to business security. There is no reference priority for the remediation of risks, and they can only be solved one by one. In addition, the previous method of implementing batch transmission system same-route analysis by superimposing multiple single-system same-route analyses is inefficient and time-consuming. How to quickly discover the same-route risks with the greatest / largest impact on the entire network based on full-volume analysis is also an urgent problem to be solved.
[0061] Based on this, the embodiments of the present disclosure provide a comprehensive detection method, device, equipment and medium for co-routing hidden dangers in a transmission network, which not only has the same co-routing hidden danger detection capability of a single / small batch transmission subnet system as the existing method, but is also suitable for co-routing hidden danger detection of a single full / large batch transmission subnet system.
[0062] The technical solutions provided by various embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0063] In each embodiment of the present disclosure, the following fields are explained as follows:
[0064] Subnet system name (identifier): To identify different subnets, the transmission network management system of different types (PTN / SPN / OTN / SDH, etc.) and different equipment manufacturers has a unique system name for each transmission subnet in the entire network (such as: XX-XX-primary trunk / secondary trunk / core / aggregation / access-PTN / SPN / OTN / SDH ring / system / subnet-serial number).
[0065] Transmission segment name (identifier): The logical connection between different devices within a single transmission subnet system on the network management can be described using the source and destination transmission device names and networking port names (such as: A-end device name-port name-Z-end device name-port name). This group of descriptions is the transmission segment name.
[0066] Name (identification) of the optical cable passed through: The specific optical path plan describes the list of optical cables actually used in the transmission segment. If the transmission segment actually only uses one direct optical cable, this field only contains one optical cable name; if the actual optical path corresponding to the transmission segment passes through one or more jump points such as optical exchanges and other computer rooms, and is connected by multiple different optical cables end to end, then this field contains a group of optical cable names.
[0067] Through the optical path scheduling link in the daily network addition or cutover adjustment process, it is not only clear which transmission subnet system a single transmission segment belongs to and which logical link it is used for, but also the names of all the optical cables it passes through can be accurately grasped (the above information can be obtained from the pipeline resource system). Therefore, a two-dimensional list can be designed to store basic data, and the frequency of all optical cables can be counted based on the collection.counter container method. With each optical cable as an index, the basic data can be traversed to obtain the accurate association between optical cable-system-transmission segment, that is, the specific name of each optical cable, the number of times it is used, and which specific subnet systems and transmission segments it is distributed in can be obtained. Specific examples are shown in Table 1:
[0068] Table 1
[0069]
[0070] Figure 1 The present invention provides a flow chart of a method for detecting common routing risks in a transmission network, which can be applied to a server, such as a single server or a server cluster. Figure 1 As shown, the method for detecting the same-route hidden danger in the transmission network may include the following steps:
[0071] S101, obtaining the association relationship among the optical cables, subnet systems and transmission segments of the entire network.
[0072] In the embodiments of the present disclosure, when detecting the hidden dangers of the same route in the transmission network, the association relationship between the optical cables, subnet systems and transmission segments of the entire network can be obtained first, that is, the usage distribution of all optical cables in the entire system can be obtained. Exemplarily, the names of all transmission segments in the entire network and the names of the subnet systems to which they belong, as well as the list of optical cables passed through can be read in sequence respectively. Based on the names of all transmission segments in the entire network and the names of the subnet systems to which they belong, as well as the list of optical cables passed through, the association relationship between the optical cables, subnet systems and transmission segments of the entire network is determined. This association relationship can be used to indicate the specific name of each optical cable, the number of times it is used, and which specific subnet systems and transmission segments it is distributed in.
[0073] In a possible implementation manner, obtaining the association relationship among the optical cables, subnet systems, and transmission segments of the entire network includes:
[0074] The first list is used to read all transmission segment identifiers of the entire network, the second list is used to read the subnet system identifier to which each transmission segment identifier in the entire network belongs, and the third list is used to read the optical cable identifier passed by each transmission segment identifier in the entire network; wherein the first list, the second list, and the third list are one-dimensional lists;
[0075] Based on the first list, the second list and the third list, a fourth list is constructed by association; the fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship between the optical cable, the subnet system and the transmission segment.
[0076] In the embodiment of the present disclosure, when obtaining the association relationship between the optical cables, subnet systems and transmission segments of the entire network, the one-dimensional list first list can be used to read all the transmission segment identifiers of the entire network, the subnet system identifier to which each transmission segment identifier in the entire network belongs can be used to read the identifier of the optical cable passed by each transmission segment identifier in the entire network using the second list, and the optical cable identifier passed by each transmission segment identifier in the entire network can be used to read the third list. Among them, the identifier can be a name. Then, a two-dimensional list can be constructed in which the individual elements of the first list, the second list, and the third list are associated as a set of elements, that is, the fourth list, and the fourth list includes the association relationship between the optical cables, subnet systems and transmission segments of the entire network.
[0077] As a specific example, the three one-dimensional lists System_Name, Transmission_Segment_Name, and Cables_Name can be used to read the names of all transmission segments in the entire network and their subnet system names, and the list of optical cables (Cables Name) passed in order, and construct a two-dimensional list Together with the associated sets of the individual elements of these three lists as elements, that is, the fourth list:
[0078] Together[i]=[System_Name[i],Transmission_Segment_Name[i],Cables_Name[i]] (i: 0~Number of transmission segments in the whole network - 1)
[0079] S102, based on the association between the optical cables of the entire network, the subnet system and the transmission segment, detecting the optical cables that meet the first preset condition and have the hidden danger of the same cable and the same route.
[0080] Among them, the same-cable-same-route hidden danger refers to the routing hidden danger that the failure of the same optical cable will cause the interruption of the system in two directions.
[0081] In an embodiment of the present disclosure, after obtaining the association between the optical cables of the entire network, the subnet system and the transmission segment, the detection of hidden dangers of the same cable and the same route can be performed. Exemplarily, the optical cables that meet the first preset condition and have hidden dangers of the same cable and the same route can be detected based on the distribution analysis results of the use of all optical cables in the entire system. Among them, the first preset condition can indicate that the failure of a certain optical cable will cause the system to be interrupted in two directions. It can be understood that the hidden danger detection of the same cable and the same route can be performed on multiple optical cables at the same time.
[0082] In a possible implementation, based on the association between the optical cables of the entire network, the subnet system and the transmission segment, detecting the optical cables that meet the first preset condition and have the hidden danger of the same cable and the same route includes:
[0083] By applying a counter container to the cable identifiers, the frequency of each cable identifier is counted;
[0084] Traversing the fourth list based on the frequency of each optical cable identifier, and counting the frequency, the subnet identifier, and the transmission segment identifier corresponding to each optical cable identifier;
[0085] Based on the frequency, subnet identifier, and transmission segment identifier corresponding to each optical cable identifier, the number of transmission segments n1 to which each optical cable identifier belongs in a single subnet system to which it belongs, and the number of subnet systems affected by each optical cable identifier n2 are counted;
[0086] For the i-th optical cable identifier, when the number of transmission segments n1 in the same subnet system to which the i-th optical cable identifier belongs is greater than the first preset threshold, the subnet system impact number n2 of the i-th optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1,M), M is the total number of optical cables;
[0087] When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is greater than or equal to the second threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause multiple subnet systems to be interrupted in two directions at the same time;
[0088] When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is less than the second preset threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has the hidden danger of the same cable and the same route that will cause the interruption of two directions of a single subnet system.
[0089] In the embodiment of the present disclosure, based on the association between the optical cables, subnet systems and transmission segments of the entire network, when detecting the optical cables that meet the first preset condition and have the same cable and same route hidden dangers, the counter collection.counter can be first applied to the optical cable identification list to count the frequency of each optical cable. Then, based on the frequency of each optical cable identification, the fourth list can be traversed to count the frequency, subnet identification and transmission segment identification corresponding to each optical cable identification, and the distribution of the optical cables of the entire network on the entire network system can be obtained. After that, the number of transmission segments in the same subnet system corresponding to the same optical cable can be counted by the integer variable n1, and the number of subnet system impacts of the same optical cable can be counted by the integer variable n2, and the initial values of n1 and n2 are both 0. For a certain optical cable, for example, the i-th optical cable identification, if the number of transmission segments n1 to which the i-th optical cable identification belongs in the single subnet system to which it belongs is greater than the first preset threshold, then the number of subnet system impacts n2 of the optical cable corresponding to the optical cable identification is equal to the original n2 value plus 1. Among them, the first preset threshold can be set to 2, for example.
[0090] Then determine whether the frequency of the ith optical cable identification is greater than or equal to the second preset threshold, and determine whether the subnet system impact quantity n2 of the ith optical cable identification is greater than or equal to the second threshold. The second preset threshold can be set to 2, for example. If the frequency of the ith optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the ith optical cable identification is greater than or equal to the second threshold, it can be considered that the optical cable corresponding to the ith optical cable identification has a same-cable and same-route hidden danger that will cause multiple subnet systems to be interrupted in two directions at the same time. If the frequency of the ith optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the ith optical cable identification is less than the second preset threshold, it can be considered that the optical cable corresponding to the ith optical cable identification has a same-cable and same-route hidden danger that will cause a single subnet system to be interrupted in two directions. In this way, the same-route hidden danger detection of the optical cable corresponding to each optical cable identification can be completed. In this way, using the collection.counter container method, counter is suitable for scenarios where the number of element occurrences needs to be quickly counted. The counting process only requires a single traversal, which is quick and easy. In this way, based on the association relationship of the entire network support segment-optical cable-transmission segment-system, the use of the collection.counter container method can effectively improve efficiency.
[0091] S103, based on the association relationship between the optical cables, subnet systems and transmission segments of the entire network, and the association relationship between the optical cables and the support segments, determine the association relationship between the support segments, optical cables, subnet systems and transmission segments of the entire network.
[0092] In the embodiments of the present disclosure, the association relationship between the optical cable and the support segment can also be obtained. For example, pandas or a database can be used to process data to improve data analysis efficiency. The association relationship between the optical cable and the optical cable segment, and the optical cable segment and the support segment can be obtained. Then, based on the association relationship between the optical cable, the subnet system and the transmission segment, and the association relationship between the optical cable and the support segment, the association relationship between the whole network support segment, the optical cable, the subnet system and the transmission segment is obtained.
[0093] In a possible implementation, based on the association relationship between the optical cable, subnet system and transmission segment of the entire network, and the association relationship between the optical cable and the support segment, determining the association relationship between the support segment, the optical cable, the subnet system and the transmission segment of the entire network includes:
[0094] Determine the association relationship between the optical cable and the supporting segment according to the correspondence between the optical cable and the optical cable segment, and between the optical cable segment and the supporting segment; wherein the association relationship between the optical cable and the supporting segment is represented by a fifth list, which is a two-dimensional list;
[0095] Based on the fourth list, the fifth list is traversed to determine the association relationship between the whole network support segment, optical cable, subnet system and transmission segment; wherein the association relationship between the whole network support segment, optical cable, subnet system and transmission segment is represented by the sixth list, which is a two-dimensional list.
[0096] In the embodiment of the present disclosure, based on the association relationship between the optical cable, subnet system and transmission segment of the whole network, and the association relationship between the optical cable and the support segment, when determining the association relationship between the support segment, optical cable, subnet system and transmission segment of the whole network, the two-dimensional list Cable_Support, i.e., the fifth list, in which each element is [optical cable name, support segment name], can be obtained according to the correspondence between the optical cable and the optical cable segment, and the optical cable segment and the support segment. Then, the optical cable identifier in the fourth list, i.e., the two-dimensional list representing the association relationship between the optical cable, subnet system and transmission segment, can be used as an index to traverse the fifth list one by one, and on the basis of obtaining the subnet system and transmission segment information originally mapped for each optical cable, all the support segment information of the optical cable can be obtained, and reverse mapping can be performed, and the optical cable, subnet system and other information supported by each support segment can be obtained with the support segment as an index, i.e., [support segment name, optical cable name, system name, transmission segment name], and this can be added as an element to a two-dimensional list, i.e., the sixth list, which is used to represent the association relationship between the support segment, optical cable, subnet system and transmission segment of the whole network.
[0097] S104, based on the association between the support segment, optical cable, subnet system and transmission segment of the entire network, detect the optical cables that meet the second preset condition and have the hidden danger of different cables with the same route.
[0098] Among them, the hidden danger of different cables with the same route refers to the hidden danger of routing that the failure of the same supporting section will cause the system to be interrupted in two directions.
[0099] In the embodiments of the present disclosure, after obtaining the association between the support segments, optical cables, subnet systems and transmission segments of the entire network, the detection of hidden dangers of different cables with the same route can be performed. Exemplarily, optical cables with hidden dangers of the same cable and the same route that meet the second preset condition can be detected based on the usage distribution of the support segments in the entire subnet system. Among them, the second preset condition can indicate that the failure of a certain support segment will cause the system to be interrupted in two directions. It can be understood that the hidden dangers of different cables with the same route can be detected for multiple support segments at the same time.
[0100] In a possible implementation, based on the association between the support segment, the optical cable, the subnet system and the transmission segment of the entire network, detecting the support segment that meets the second preset condition and has the hidden danger of different cables and the same route includes:
[0101] By counting the frequency of each support segment in a counter container;
[0102] Associating the frequency of each support segment with the optical cable identifier, subnet system identifier, and transmission segment identifier associated with each support segment to obtain a seventh list;
[0103] Based on the seventh table, count the number of transmission segments N1 in the same subnet system corresponding to each support segment, and the number of subnet systems affected by each support segment N2;
[0104] For the j-th support segment, when the number of transmission segments N1 in the same subnet system corresponding to the j-th support segment is greater than or equal to the third preset threshold, the subnet system impact number N2 of the j-th support segment is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support segments;
[0105] When the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the number N2 of subnet systems affected by the j-th support segment is greater than or equal to the fourth preset threshold, the j-th support segment is determined to be a hidden danger of different cables and the same route that will cause multiple subnet systems to be interrupted in two directions at the same time;
[0106] When the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the subnet system impact quantity N2 of the j-th support segment is less than the fourth preset threshold, the j-th support segment is determined to be a hidden danger of different cables and the same route that will cause a single subnet system to be interrupted in two directions at the same time.
[0107] In an embodiment of the present disclosure, based on the association relationship between the support segment, optical cable, subnet system and transmission segment of the whole network, when detecting the optical cable with the hidden danger of different cables and the same route that meets the second preset condition, the frequency of each support segment can be counted by the counter collection.counter. The frequency of each support segment is associated with the optical cable identifier, subnet system identifier and transmission segment identifier associated with each support segment to obtain the seventh list, which is also a two-dimensional list. Then, the seventh list can be traversed based on the frequency of each support segment, and the frequency, subnet identifier and transmission segment identifier corresponding to each support segment can be counted to obtain the distribution of the support segment in the whole network system. Afterwards, the number of transmission segments in the same subnet system corresponding to the same support segment can be counted by the integer variable N1, and the number of subnet system impacts of the same support segment can be counted by the integer variable N2, and the initial values of N1 and N2 are both 0. For a certain support segment, for example, the jth support segment, if the number of transmission segments N1 in the subnet system corresponding to the jth support segment is greater than or equal to the third preset threshold, the number of subnet system impacts N2 of the support segment is updated to the original N2 value plus 1. The third preset threshold may be set to 2, for example.
[0108] Then determine whether the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and determine whether the subnet system impact quantity N2 of the j-th support segment is greater than or equal to the fourth preset threshold. The fourth preset threshold can be set to 2, for example. If the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the subnet system impact quantity N2 of the j-th support segment is greater than or equal to the fourth preset threshold, it can be considered that the j-th support segment has a hidden danger of different cables and the same route that will cause multiple subnet systems to be interrupted in two directions at the same time. If the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the subnet system impact quantity N2 of the j-th support segment is less than the fourth preset threshold, it can be considered that the j-th support segment has a hidden danger of different cables and the same route that will cause a single subnet system to be interrupted in two directions. In this way, the detection of different routing hidden dangers for each support segment can be completed.
[0109] In the embodiments of the present disclosure, the association relationship among optical cables, subnet systems and transmission segments is obtained through the whole network; based on the association relationship among the optical cables, subnet systems and transmission segments of the whole network, optical cables with the same cable and same route hidden dangers that meet the first preset condition are detected; wherein, the same cable and same route hidden dangers refer to the route hidden dangers that the failure of the same optical cable will cause the interruption of two directions of the system; based on the association relationship among the optical cables, subnet systems and transmission segments of the whole network, and the association relationship between the optical cables and the support segments, the association relationship among the support segments, optical cables, subnet systems and transmission segments of the whole network is determined; based on the association relationship among the support segments, optical cables, subnet systems and transmission segments of the whole network, the support segments with the same route hidden dangers of different cables that meet the second preset condition are detected. In this way, on the one hand, it can be applied to the detection of same route hidden dangers of a single or small batch transmission subnet system, and on the other hand, it can be applied to the detection of same route hidden dangers of a single full or large batch transmission subnet system.
[0110] In some possible implementations, after detecting an optical cable that meets the first preset condition and has the hidden danger of the same cable and the same route, the following processing may be performed:
[0111] All hidden dangers with the same cable and route are sorted and displayed according to the frequency of the corresponding optical cables and the number of subnet systems affected.
[0112] After detecting a support section that meets the second preset condition and has the risk of different cables with the same route, the following processing may be performed:
[0113] All hidden dangers of different cables and the same route are sorted and displayed according to the corresponding frequency of the supporting section and the number of subnet systems affected.
[0114] In an embodiment of the present disclosure, after detecting an optical cable that meets the first preset condition and has hidden dangers of the same cable and the same route, the detection results can be displayed in order from high to low according to the frequency of use of the optical cable and the number of subnet systems affected, and different priorities can be distinguished according to the importance of the hidden dangers of the same cable and the same route. Similarly, after detecting a support segment that meets the second preset condition and has hidden dangers of different cables and the same route, the detection results can be displayed in order from high to low according to the frequency of use of the support segment and the number of subnet systems affected, and different priorities can be distinguished according to the importance of the hidden dangers of different cables and the same route. In this way, according to the frequency of optical cables in different transmission subnet systems and support segments in different transmission subnet systems, and the order of influence from high to low, comprehensive mining of the priority distinction of the same cable and the same route and different cables and the same route in a single full amount, batch, or single transmission subnet system can be achieved.
[0115] To make the detection method of the same-route hidden danger in the transmission network provided by the embodiment of the present disclosure clearer, the following is described in conjunction with the following embodiments. Specifically, the detection method of the same-route hidden danger in the transmission network provided by the embodiment of the present disclosure includes the following three key technologies:
[0116] Key technology 1: Quickly obtain the usage distribution of all optical cables in the entire system.
[0117] Before introducing the detailed analysis method, we first explain several fields to be used, as follows:
[0118] Subnet system name: To identify different subnets, the transmission network management of different types (PTN / SPN / OTN / SDH, etc.) and different equipment manufacturers (Huawei, ZTE, FiberHome, Bell, etc.) has a unique system name for each transmission subnet in the entire network (such as: XX-XX-primary trunk / secondary trunk / core / aggregation / access-PTN / SPN / OTN / SDH ring / system / subnet-serial number).
[0119] Transmission segment name: The logical connection between different devices within a single transmission subnet system on the network management can be described using the source and destination transmission device names and networking port names (A-end device name-port name-Z-end device name-port name). This group of descriptions is the transmission segment name.
[0120] Name of the optical cable passed through: The specific optical path plan describes the list of optical cables actually used in the transmission segment. If the transmission segment actually only uses one direct optical cable, this field only contains the name of one optical cable. If the actual optical path corresponding to the transmission segment passes through one or more jump points such as optical exchanges and other computer rooms, and is connected by multiple different optical cables end to end, this field contains a group of optical cable names.
[0121] Through the optical path scheduling link in the daily network addition or cutover adjustment process, it is not only clear which transmission subnet system a single transmission segment belongs to and which logical link it is used for, but also the names of all the optical cables it passes through can be accurately grasped (the above information can be obtained from the pipeline resource system). Therefore, a two-dimensional list can be designed to store basic data, and the frequency of all optical cables can be counted based on the collection.counter container method. With each optical cable as an index, the basic data can be traversed to obtain the accurate association between optical cable-system-transmission segment, that is, the specific name of each optical cable, the number of times it is used, and which specific subnet systems and transmission segments it is distributed in, as shown in Table 1.
[0122] Key technology 2: Method for discovering hidden dangers along the same cable and route.
[0123] According to the analysis results of the use distribution of all optical cables in the whole system:
[0124] (1) If the frequency of the same optical cable in the same subnet system is greater than or equal to two times, it can be determined that there is a hidden danger of the same cable and the same route in the single subnet system that will cause the system to be interrupted in both directions.
[0125] (2) If the frequency of the same optical cable in multiple subnet systems in the entire network is greater than or equal to two times, it can be determined that there is a hidden danger of the same cable and the same route that will cause the batch system to be interrupted in both directions at the same time.
[0126] (3) Count and sort all the hidden dangers of the same cable and the same route that will cause the system to be interrupted in both directions, and the number of times they appear in the corresponding subnet system (must be greater than or equal to 2), and complete the mining of hidden dangers of the same cable and the same route in the entire network.
[0127] As an example, the usage distribution of all optical cables in the entire system can be shown in Table 2.
[0128] Table 2
[0129]
[0130] Key technology 3: Method for discovering hidden dangers of different cables with the same route
[0131] The idea of exploring the hidden dangers of different cables with the same route is to compare whether there are the same support sections between different optical cables. Here is a brief explanation: a complete optical cable is composed of one or more optical cable sections (optical cable sections are cables from one optical intersection point to the next optical intersection point, and optical intersection points include optical distribution frames ODF, optical intersections, optical divisions, junction boxes, etc.), and the bottom layer of the optical cable section is one or more support sections (support sections are measures used to carry / protect optical cables, including pipeline sections, pole sections, direct buried sections, wall-mounted sections, lead-up sections, etc.). Therefore, when two different optical cables use the same pipeline in a certain section, if these two cables are used in the main and backup directions of the same transmission subnet system respectively, the system has different cables with the same route in this pipeline section. Once the pipeline is damaged due to the excavation of the section, there is a possibility that the two optical cables will be interrupted at the same time and the transmission subnet system will be interrupted in both directions.
[0132] When a new optical cable is entered into the pipeline resource system, the binding between the optical cable and the optical cable segment, and the optical cable segment and the support segment will be completed. Combined with the relationship between the optical cable, system, and transmission segment that has been mastered in "Key Technology 1", the full mapping of the support segment, optical cable, transmission segment, and system can be realized. An example is shown in Table 3. The statistical sorting function of the collection.counter container method is then used for the frequency of the full support segment of the system network to identify the hidden dangers of different cables with the same route:
[0133] (1) If the frequency of the same support segment in the same subnet system is greater than or equal to twice, it can be determined that there is a hidden danger of different cables and the same route in the single subnet system that will cause the system to be interrupted in both directions.
[0134] (2) If the frequency of the same support segment in multiple subnet systems in the entire network is greater than or equal to two times, it can be determined that there is a risk of different cables and the same route that will cause the batch system to be interrupted in both directions at the same time.
[0135] Count and sort all the hidden dangers of different cables and the same route that will cause the subnet systems to be interrupted in both directions of the system, and the number of times they appear inside the corresponding subnet systems (must be greater than or equal to 2), and complete the mining of hidden dangers of different cables and the same route in the whole network.
[0136] Table 3
[0137]
[0138] According to the above three key technologies, the implementation steps of the method provided by the present disclosure are as follows:
[0139] Step S1: Use the three one-dimensional lists of System_Name, Transmission_Segment_Name, and Cables_Name, i.e., the first list, the second list, and the third list, to sequentially read the names of all transmission segments in the entire network and their subnet system names, and the list of optical cables (Cables_Name) passed through, and construct a two-dimensional list Together with the associated sets of the individual elements of these three lists as elements:
[0140] Together[i]=[System_Name[i],Transmission_Segment_Name[i],Cables_Name[i]] (i: 0~Number of transmission segments in the whole network - 1)
[0141] Step S2: Disassemble the cable list string in each Cables_Name to obtain multiple single cable names, store them in the list Cable_List in the form of elements, and do not remove duplicates for elements with the same cable name; apply the collection.counter container to Cable_List, count the frequencies of different cables, and sort the cable frequencies from high to low to obtain a dictionary structure Frequency_Cable, in which the Key value is the cable name and the Value value is the cable frequency, and then call the most_common function to return the list Frequency_Cable_List consisting of all (Key, Value).
[0142] Step S3: To store the usage distribution of all optical cables used for networking in the entire subnet system, define a two-dimensional list Cable_Distribution, which is the fourth list; first use the single optical cable name in Frequency_Cable_List[j][1] (j: 0 ~ total number of optical cables used for networking - 1) as the index to traverse the two-dimensional list Together one by one, and determine whether the optical cable name corresponding to Frequency_Cable_List[j][1] exists in Together[i][2]. When the match is successful, construct a list with the optical cable name of Frequency_Cable_List[j][1], the optical cable frequency of Frequency_Cable[j][0], the corresponding subnet system name Together[i][0] and the transmission segment name Together[i][1], and then write the list into Cable_Distribution. After the traversal is completed, Cable_Distribution stores all optical cables used for system networking, as well as different subnet systems and transmission segments using optical cables, and obtains the distribution of optical cables in the entire network system.
[0143] Step S4: Using the result Cable_Distribution of step S3 as the basic data set, use the integer variable n1 to count the number of transmission segments in the same subnet system corresponding to the same optical cable, and use the integer variable n2 to count the subnet system impact number of the same optical cable. The initial values of n1 and n2 are both 0. Traverse Cable_Distribution. For a subnet system of a single optical cable, when n1 completes the statistical counting and n1≥2, the subnet system impact number n2 of the optical cable is n2+1. When the optical cable frequency ≥2 and the subnet system impact number n2≥2 are both established, the same cable and same route hidden dangers that will cause the batch system to be interrupted in both directions at the same time are excavated; when the optical cable frequency ≥2 and the subnet system impact number 0<n2<2 are both established, the same cable and same route hidden dangers that will only cause the single system to be interrupted in both directions are excavated; the screening results are still displayed in descending order according to the frequency of use of the optical cable and the number of subnet systems affected, and different priorities are distinguished according to the importance of the same cable and same route hidden dangers.
[0144] Step S5: Considering that the data volume of the entire network support segment can reach millions, in order to ensure analysis efficiency, it is necessary to use pandas or database to process the data. According to the correspondence between optical cables and cable segments, and between optical cable segments and supporting segments, a two-dimensional list Cable_Support is obtained, each element of which is [optical cable name, supporting segment name]. In step S3, Cable_Distribution has stored the usage distribution of all optical cables in the full quantum network system. Cable_Support[n][0] (n: 0 to the total number of supporting segments - 1) is traversed one by one with the cable name of Cable_Distribution[m][0] (m: 0 to the total number of optical cables used for system networking - 1). On the basis of obtaining the system and transmission segment information originally mapped for each optical cable, all supporting segment information of the optical cable is obtained, and reverse mapping is performed. With the supporting segment as the index, the optical cable, system and other information supported by each supporting segment is obtained, that is, [support segment name, optical cable name, system name, transmission segment name] (the same support segment name can correspond to multiple optical cable names), and these are appended one by one as elements to the two-dimensional list Support_Cable_System_List, which is also the sixth list.
[0145] Step S6: Use the collection.counter container to count and sort the frequencies of different support segments, convert them into a list using most_common, associate the corresponding optical cables, subnet systems, and transmission segment information, and obtain the usage distribution of the support segments in the entire subnet system: the two-dimensional subtable Support_Distribution.
[0146] Step S7: Using the result Support_Distribution of step S6 as the basic data set, use the integer variable N1 to count the number of transmission segments in the same subnet system corresponding to the same support segment, and use the integer variable N2 to count the number of subnet systems affected by the same support segment. The initial values of N1 and N2 are both 0. Traverse Support_Distribution. For a subnet system of a single support segment, when N1 completes the statistical counting and N1≥2, the number of subnet systems affected by the support segment N2=N2+1. When the support segment frequency ≥2 and the number of subnet systems affected N2≥2 are both established, the hidden dangers of different cables and same routes that will cause the interruption of batch systems in both directions are excavated; when the support segment frequency ≥2 and the number of subnet systems affected by the support segment 0<N2<2 are both established, the hidden dangers of different cables and same routes that will only cause the interruption of a single system in both directions are excavated; the screening results are still displayed in descending order according to the frequency of use of the support segment and the number of subnet systems affected, and different priorities are distinguished according to the importance of the hidden dangers of different cables and same routes.
[0147] Step S8: Save the data results and complete the potential danger mining of the same cable and the same route and different cables and the same route in the whole network.
[0148] It can be seen that the method provided by the present disclosure can comprehensively mine the hidden dangers of the same route of the transmission system based on the full networking and pipeline data; can count and sort the frequency of different transmission optical cables in different transmission subnet systems based on the collection.counter container method, and count and sort the frequency of different optical cable support segments in different transmission subnet systems; analyze the use and distribution of the optical cables and support segments used for networking in the full transmission subnet system; and realize the full mapping association of support segment-optical cable-transmission segment-system. Based on this, on the one hand, the embodiment of the present disclosure can realize the same route analysis method based on the full amount, exemplarily, the key field data can be stored through a data structure such as a two-dimensional list and forward and backward matching association can be performed according to relevant features to realize the full mapping of the support segment-optical cable-transmission segment-system of the whole network; use the collection.counter container method to count the frequency of optical cables in different transmission subnet systems and support segments in different transmission subnet systems, and sort the impact surface from high to low, so as to realize the comprehensive mining of the priority of the same cable same route and different cable same route in a single full / batch / single transmission subnet system. On the other hand, efficient mining of comprehensive hidden dangers can be achieved. For example, the collection.counter container method can be used. Counter is suitable for scenarios where the number of element occurrences needs to be quickly counted. The counting process only requires a single traversal, which is quick and easy. Based on the association relationship of the multi-purpose full-network support segment-optical cable-transmission segment-system obtained by the present invention, it is more efficient to use the collection.counter container method on this basis.
[0149] The specific implementation and technical effects of each step of this embodiment are similar to those of the above method embodiments, and will not be repeated here.
[0150] Based on the same inventive concept, the embodiment of the present disclosure also provides a device for detecting hidden dangers of the same route in a transmission network. Figure 3 As shown, the detection device 300 for the same-route hidden danger in the transmission network includes:
[0151] An acquisition module 310 is used to acquire the association relationship between the optical cable, the subnet system and the transmission segment in the whole network;
[0152] The first detection module 320 is used to detect the optical cables that meet the first preset condition and have the same cable and same route hidden dangers based on the association relationship between the optical cables of the whole network, the subnet system and the transmission segment; wherein the same cable and same route hidden dangers refer to the routing hidden dangers that the failure of the same optical cable will cause the interruption of the system in two directions;
[0153] A determination module 330 is used to determine the association relationship between the support segment, optical cable, subnet system and transmission segment of the entire network based on the association relationship between the optical cable, subnet system and transmission segment of the entire network, and the association relationship between the optical cable and the support segment;
[0154] The second detection module 340 is used to detect the support segment that meets the second preset condition and has the risk of different cables with the same route based on the association relationship between the support segment, optical cable, subnet system and transmission segment of the whole network; wherein the risk of different cables with the same route refers to the risk of routing that the failure of the same support segment will cause the interruption of the system in two directions.
[0155] In a possible implementation, the acquisition module 310 is used to:
[0156] Use the first list to read all transmission segment identifiers of the entire network, use the second list to read the subnet system identifier to which each transmission segment identifier in the entire network belongs, and use the third list to read the optical cable identifier passed by each transmission segment identifier in the entire network; wherein the first list, the second list, and the third list are one-dimensional lists;
[0157] Based on the first list, the second list and the third list, a fourth list is constructed by association; the fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship between the optical cables, subnet systems and transmission segments of the entire network.
[0158] In a possible implementation manner, the first detection module 320 is used to:
[0159] By applying a counter container to the optical cable identifiers, counting the frequency of each of the optical cable identifiers;
[0160] Traversing the fourth list based on the frequency of each optical cable identifier, and counting the frequency, the subnet identifier, and the transmission segment identifier corresponding to each optical cable identifier;
[0161] Based on the frequency, the subnet identifier and the transmission segment identifier corresponding to each of the optical cable identifiers, count the number of transmission segments n1 to which each of the optical cable identifiers belongs in the single subnet system to which it belongs, and the number of subnet systems affected n2 by each of the optical cable identifiers;
[0162] For the i-th optical cable identifier, when the number n1 of transmission segments in the same subnet system to which the i-th optical cable identifier belongs is greater than the first preset threshold, the subnet system impact number n2 of the i-th optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1,M), M is the total number of optical cables;
[0163] When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is greater than or equal to the second threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause multiple subnet systems to be interrupted in two directions at the same time;
[0164] When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is less than the second preset threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause interruption in two directions of a single subnet system.
[0165] In a possible implementation manner, the determining module 330 is configured to:
[0166] Determine the association relationship between the optical cable and the supporting segment according to the correspondence between the optical cable and the optical cable segment, and between the optical cable segment and the supporting segment; wherein the association relationship between the optical cable and the supporting segment is represented by a fifth list, and the fifth list is a two-dimensional list;
[0167] Based on the fourth list, the fifth list is traversed to determine the association relationship between the whole network support segment, optical cable, subnet system and transmission segment; wherein the association relationship between the whole network support segment, optical cable, subnet system and transmission segment is represented by the sixth list, and the sixth list is a two-dimensional list.
[0168] In a possible implementation manner, the second detection module 340 is used to:
[0169] By using a counter container to count the frequency of each of the support segments;
[0170] Associating the frequency of each of the supporting segments with the optical cable identifier, the subnet system identifier, and the transmission segment identifier associated with each of the supporting segments to obtain a seventh list;
[0171] Based on the seventh list, count the number N1 of transmission segments in the same subnet system corresponding to each of the supporting segments, and the number N2 of subnet systems affected by each of the supporting segments;
[0172] For the j-th support segment, when the number of transmission segments N1 in the same subnet system corresponding to the j-th support segment is greater than or equal to the third preset threshold, the subnet system impact number N2 of the j-th support segment is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support segments;
[0173] When the frequency of the j-th support segment is greater than or equal to a fourth preset threshold, and the number N2 of subnet systems affected by the j-th support segment is greater than or equal to the fourth preset threshold, it is determined that the j-th support segment is a hidden danger of different cables and the same route that will cause multiple subnet systems to be interrupted in two directions at the same time;
[0174] When the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the subnet system impact quantity N2 of the j-th support segment is less than the fourth preset threshold, it is determined that the j-th support segment is a hidden danger of different cables and the same route that will cause a single subnet system to be interrupted in two directions at the same time.
[0175] In a possible implementation, the system further includes a sorting module, which is used to perform at least one of the following:
[0176] For all hidden dangers with the same cable and route, they are sorted and displayed according to the frequency corresponding to the optical cable and the number of subnet systems affected;
[0177] All hidden dangers of different cables and the same route are sorted and displayed according to the corresponding frequency of the supporting section and the number of subnet systems affected.
[0178] The specific implementation method and technical effect of the device provided in the embodiment of the present disclosure are similar to those of the above-mentioned method embodiment, and will not be repeated here.
[0179] According to an embodiment of the present disclosure, the present disclosure also discloses an electronic device, a computer-readable storage medium, and a computer program product.
[0180] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 400 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0181] like Figure 4As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0182] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0183] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as a method for detecting co-routing hidden dangers in a transmission network. For example, in some embodiments, the method for detecting co-routing hidden dangers in a transmission network may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method for detecting co-routing hidden dangers in the transmission network described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the method for detecting the same-route hidden danger in the transmission network in any other appropriate manner (for example, by means of firmware).
[0184] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0185] The program code of the computer program product for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0186] In the context of the present disclosure, a computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0187] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0188] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0189] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0190] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0191] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for detecting common routing risks in a transmission network, characterized in that: include: Obtain the relationship between the optical cables, subnet systems and transmission segments of the entire network; Based on the association between the optical cables of the entire network, the subnet system and the transmission segment, the optical cables that meet the first preset condition and have the same cable and same route hidden danger are detected; wherein the same cable and same route hidden danger refers to the routing hidden danger that the failure of the same optical cable will cause the interruption of the system in two directions; Based on the association relationship between the optical cable, subnet system and transmission segment of the entire network, and the association relationship between the optical cable and the support segment, determine the association relationship between the support segment, optical cable, subnet system and transmission segment of the entire network; Based on the association between the support segment, optical cable, subnet system and transmission segment of the entire network, the support segment that meets the second preset condition and has the risk of different cables with the same route is detected; wherein the risk of different cables with the same route refers to the risk of routing that the failure of the same support segment will cause the system to be interrupted in two directions.
2. The method for detecting common routing risks in a transmission network according to claim 1, characterized in that: The obtaining of the association relationship among the optical cables, subnet systems and transmission segments of the entire network includes: Use the first list to read all transmission segment identifiers of the entire network, use the second list to read the subnet system identifier to which each transmission segment identifier in the entire network belongs, and use the third list to read the optical cable identifier passed by each transmission segment identifier in the entire network; wherein the first list, the second list, and the third list are one-dimensional lists; Based on the first list, the second list and the third list, a fourth list is constructed by association; the fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship between the optical cables, subnet systems and transmission segments of the entire network.
3. The method for detecting common routing risks in a transmission network according to claim 2, characterized in that: The detecting of the optical cables that meet the first preset condition and have the hidden danger of the same cable and the same route based on the association relationship between the optical cables of the whole network, the subnet system and the transmission segment comprises: By applying a counter container to the optical cable identifiers, counting the frequency of each of the optical cable identifiers; Traversing the fourth list based on the frequency of each optical cable identifier, and counting the frequency, the subnet identifier, and the transmission segment identifier corresponding to each optical cable identifier; Based on the frequency, the subnet identifier and the transmission segment identifier corresponding to each of the optical cable identifiers, count the number of transmission segments n1 to which each of the optical cable identifiers belongs in the single subnet system to which it belongs, and the number of subnet systems affected n2 by each of the optical cable identifiers; For the i-th optical cable identifier, when the number n1 of transmission segments in the same subnet system to which the i-th optical cable identifier belongs is greater than the first preset threshold, the subnet system impact number n2 of the i-th optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1,M), M is the total number of optical cables; When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is greater than or equal to the second threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause multiple subnet systems to be interrupted in two directions at the same time; When the frequency of the i-th optical cable identification is greater than or equal to the second preset threshold, and the subnet system impact quantity n2 of the i-th optical cable identification is less than the second preset threshold, it is determined that the optical cable corresponding to the i-th optical cable identification has a same-cable and same-route hidden danger that will cause interruption in two directions of a single subnet system.
4. The method for detecting common routing risks in a transmission network according to claim 2, characterized in that: The determining of the association relationship between the whole network support segment, the optical cable, the subnet system and the transmission segment based on the association relationship between the whole network optical cable, the subnet system and the transmission segment, and the association relationship between the optical cable and the support segment, includes: Determine the association relationship between the optical cable and the supporting segment according to the correspondence between the optical cable and the optical cable segment, and between the optical cable segment and the supporting segment; wherein the association relationship between the optical cable and the supporting segment is represented by a fifth list, and the fifth list is a two-dimensional list; Based on the fourth list, the fifth list is traversed to determine the association relationship between the whole network support segment, optical cable, subnet system and transmission segment; wherein the association relationship between the whole network support segment, optical cable, subnet system and transmission segment is represented by the sixth list, and the sixth list is a two-dimensional list.
5. The method for detecting common routing risks in a transmission network according to claim 4, characterized in that: The detecting of the supporting segment that meets the second preset condition and has the hidden danger of different cables and the same route based on the association relationship among the supporting segment, the optical cable, the subnet system and the transmission segment of the whole network includes: By using a counter container to count the frequency of each of the support segments; Associating the frequency of each of the supporting segments with the optical cable identifier, the subnet system identifier, and the transmission segment identifier associated with each of the supporting segments to obtain a seventh list; Based on the seventh list, count the number N1 of transmission segments in the same subnet system corresponding to each of the supporting segments, and the number N2 of subnet systems affected by each of the supporting segments; For the j-th support segment, when the number of transmission segments N1 in the same subnet system corresponding to the j-th support segment is greater than or equal to the third preset threshold, the subnet system impact number N2 of the j-th support segment is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support segments; When the frequency of the j-th support segment is greater than or equal to a fourth preset threshold, and the number N2 of subnet systems affected by the j-th support segment is greater than or equal to the fourth preset threshold, it is determined that the j-th support segment is a hidden danger of different cables and the same route that will cause multiple subnet systems to be interrupted in two directions at the same time; When the frequency of the j-th support segment is greater than or equal to the fourth preset threshold, and the subnet system impact quantity N2 of the j-th support segment is less than the fourth preset threshold, it is determined that the j-th support segment is a hidden danger of different cables and the same route that will cause a single subnet system to be interrupted in two directions at the same time.
6. The method for detecting common routing risks in a transmission network according to any one of claims 3 or 5, characterized in that: Also includes at least one of the following: For all hidden dangers with the same cable and route, they are sorted and displayed according to the frequency corresponding to the optical cable and the number of subnet systems affected; All hidden dangers of different cables and the same route are sorted and displayed according to the corresponding frequency of the supporting section and the number of subnet systems affected.
7. A device for detecting common routing risks in a transmission network, characterized in that: include: An acquisition module is used to obtain the association between the optical cables, subnet systems and transmission segments of the entire network; The first detection module is used to detect the optical cables that meet the first preset condition and have the same cable and same route hidden dangers based on the association relationship between the optical cables of the whole network, the subnet system and the transmission segment; wherein the same cable and same route hidden dangers refer to the routing hidden dangers that the failure of the same optical cable will cause the interruption of two directions of the system; A determination module, used to determine the association relationship between the support segment, optical cable, subnet system and transmission segment of the entire network based on the association relationship between the optical cable, subnet system and transmission segment of the entire network, and the association relationship between the optical cable and the support segment; The second detection module is used to detect the support segment that meets the second preset condition and has the hidden danger of different cables with the same route based on the association relationship between the support segment, optical cable, subnet system and transmission segment of the whole network; wherein the hidden danger of different cables with the same route refers to the routing hidden danger that the failure of the same support segment will cause the interruption of the system in two directions.
8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for detecting common routing risks in a transmission network according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for detecting common routing risks in a transmission network according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the method for detecting common routing risks in a transmission network according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method for collecting vibration spectrum big data information around power cable by using same routing optical cable
CN111707347A
Method and device for identifying optical cables in same route
CN116086769A
Optical cable fault positioning method, system and device and storage medium
CN116566484A
Method and system for restoring coincident line and facility failures
EP1050122A1