Method, device and equipment for detecting same-path hidden trouble in transmission network and medium
By obtaining the correlation between optical cables and support segments in the transmission network and using counter containers to count the frequency, the potential risks of co-routing between optical cables and different cables are detected. This solves the problem that existing technologies cannot identify potential risks of co-routing between optical cables and support segments in the entire transmission network, and enables rapid and accurate identification of potential co-routing risks and optimization of resource allocation.
Patent Information
- Application Number
- CN202411996288.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2044-12-31
AI Technical Summary
Existing technologies cannot effectively identify and optimize co-routing risks in optical cables and support sections of the full transmission network, leading to large-scale service outages during faults. Furthermore, existing methods are inefficient, time-consuming, and unable to identify the most impactful co-routing risks in advance.
By acquiring the correlation between the entire network of optical cables, subnet systems and transmission segments, using counter containers to count the frequency of optical cables and support segments, detecting potential risks of co-route and cross-route issues that meet preset conditions, constructing a two-dimensional list for correlation analysis, and quickly identifying the most impactful/significant co-route risks.
It enables rapid detection of co-routing vulnerabilities in single or small-batch transmission subnet systems, and is applicable to the detection of co-routing vulnerabilities in single full or large-batch transmission subnet systems, improving identification efficiency and accuracy, and optimizing resource allocation to co-routing vulnerabilities that pose the greatest threat to business security.
Smart Images

Figure CN119766326B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of mobile communication technology, and in particular to a method and device for detecting same-route hidden danger in a transmission network, and a medium. BACKGROUND
[0002] In related technologies, a transmission network is a basic base for carrying wireless, broadband, dedicated line and other services, which is composed of a PTN (Packet Transport Network), a SPN (Slicing Packet Network), an OTN (Optical Transport Network), an SDH (Synchronous Digital Hierarchy), and many other subnetwork systems. The internal subnetwork system is usually connected to multiple transmission devices of the corresponding type by pipeline resources such as optical cables. According to the importance of the services carried by the subnetwork system and different networking forms, different disaster recovery protection schemes can be deployed. When the main route fails, the services carried on the subnetwork system can be automatically switched to the backup route to ensure the safe operation of the services.
[0003] With the continuous development of network technology, networking has become more and more large and complex. The existing system cannot avoid the contradiction between multiple different logical paths on the network management topology and the same physical route of the optical cable laying, and once a physical same-route failure occurs, double-breakage on the main and backup paths of a single or multiple or different level subnetwork systems, protection failure and other situations will occur, thereby causing a large area of service withdrawal. Therefore, there is an urgent need for a method for detecting same-route hidden danger in a transmission network. SUMMARY
[0004] The present disclosure provides a method and device for detecting same-route hidden danger in a transmission network, and a medium. The technical solution of the present disclosure is as follows:
[0005] In a first aspect, the present disclosure provides a method for detecting same-route hidden danger in a transmission network, comprising:
[0006] obtaining the association relationship between the whole network optical cable, the subnetwork system and the transmission segment;
[0007] based on the association relationship between the whole network optical cable, the subnetwork system and the transmission segment, detecting an optical cable with same-cable same-route hidden danger meeting a first preset condition; wherein the same-cable same-route hidden danger refers to a route hidden danger that a failure of the same optical cable will cause the interruption of two directions of the system;
[0008] based on the association relationship between the whole network optical cable, the subnetwork system and the transmission segment, and the association relationship between the optical cable and the support segment, determining the association relationship between the whole network support segment, the optical cable, the subnetwork system and the transmission segment;
[0009] detect a support section with a same-cable same-route hidden danger in accordance with a second preset condition based on the association relationship among the whole-network support sections, the optical cables, the subnetwork systems and the transmission sections; wherein the same-cable same-route hidden danger refers to a route hidden danger that a fault in a same support section will cause a system interruption in two directions.
[0010] In a possible implementation, the acquiring of the association relationship among the whole-network optical cables, the subnetwork systems and the transmission sections comprises:
[0011] reading all transmission section identifiers of the whole network using a first list, reading subnetwork system identifiers to which each of the transmission section identifiers belongs in the whole network using a second list, and reading optical cable identifiers passed through by each of the transmission section identifiers in the whole network using a third list; wherein the first list, the second list and the third list are one-dimensional lists;
[0012] associating and constructing a fourth list based on the first list, the second list and the third list; the fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship among the whole-network optical cables, the subnetwork systems and the transmission sections.
[0013] In a possible implementation, the detecting of the optical cable with a same-cable same-route hidden danger in accordance with a first preset condition based on the association relationship among the whole-network optical cables, the subnetwork systems and the transmission sections comprises:
[0014] counting the frequency of each of the optical cable identifiers by applying a counter container to the optical cable identifiers;
[0015] traversing the fourth list based on the frequency of each of the optical cable identifiers, and counting the corresponding frequency, the belonging subnetwork identifier and the belonging transmission section identifier of each of the optical cable identifiers;
[0016] counting the number n1 of transmission sections belonging to a single subnetwork system of each of the optical cable identifiers and the number n2 of subnetwork system influences of each of the optical cable identifiers based on the corresponding frequency, the belonging subnetwork identifier and the belonging transmission section identifier of each of the optical cable identifiers;
[0017] for the i-th optical cable identifier, if the number n1 of transmission sections belonging to a same subnetwork system of the i-th optical cable identifier is greater than a first preset threshold, the number n2 of subnetwork system influences of the i-th optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1, M), and M is the total number of optical cables;
[0018] In a case that the frequency of the ith optical cable identifier is greater than or equal to a second preset threshold, and the number n2 of subnetwork system influences of the ith optical cable identifier is greater than or equal to the second threshold, it is determined that the optical cable corresponding to the ith optical cable identifier has a same-cable same-route hidden danger that can cause multiple subnetwork systems to be interrupted in two directions at the same time.
[0019] In a case that the frequency of the ith optical cable identifier is greater than or equal to a second preset threshold, and the number n2 of subnetwork system influences of the ith optical cable identifier is less than the second preset threshold, it is determined that the optical cable corresponding to the ith optical cable identifier has a same-cable same-route hidden danger that can cause a single subnetwork system to be interrupted in two directions.
[0020] In a possible implementation, the determining the association relationship among the optical cables, the subnetwork systems, the transmission segments and the support segments based on the association relationship among the optical cables, the subnetwork systems and the transmission segments, and the association relationship between the optical cables and the support segments comprises:
[0021] determining the association relationship between the optical cables and the support segments according to the corresponding relationship between the optical cables and the optical cable segments, and the corresponding relationship between the optical cable segments and the support segments; wherein the association relationship between the optical cables and the support segments is represented by a fifth list, and the fifth list is a two-dimensional list;
[0022] traversing the fifth list based on the fourth list to determine the association relationship among the optical cables, the subnetwork systems, the transmission segments and the support segments; wherein the association relationship among the optical cables, the subnetwork systems, the transmission segments and the support segments is represented by a sixth list, and the sixth list is a two-dimensional list.
[0023] In a possible implementation, the detecting a support segment having an alien-cable same-route hidden danger that meets a second preset condition based on the association relationship among the support segments, the optical cables, the subnetwork systems and the transmission segments comprises:
[0024] counting the frequency of each support segment by using a counter container;
[0025] associating the frequency of each support segment with the optical cable identifier, the subnetwork system identifier and the transmission segment identifier associated with each support segment to obtain a seventh list;
[0026] based on the seventh list, counting the number N1 of transmission segments in the same subnetwork system corresponding to each support segment, and the number N2 of subnetwork system influences of each support segment;
[0027] for the jth support segment, in a case that the number N1 of transmission segments in the same subnetwork system corresponding to the jth support segment is greater than or equal to a third preset threshold, the number N2 of subnetwork system influences of the jth support segment is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support segments.
[0028] In a case where the frequency of the jth support section is greater than or equal to a fourth preset threshold, and the number N2 of subnetwork system influences of the jth support section is greater than or equal to the fourth preset threshold, it is determined that the jth support section is a heterogeneous cable same route hidden danger that will cause multiple subnetwork systems to be interrupted in two directions at the same time.
[0029] In a case where the frequency of the jth support section is greater than or equal to a fourth preset threshold, and the number N2 of subnetwork system influences of the jth support section is less than the fourth preset threshold, it is determined that the jth support section is a heterogeneous cable same route hidden danger that will cause a single subnetwork system to be interrupted in two directions at the same time.
[0030] In a possible implementation, the method further includes at least one of the following:
[0031] For all homogeneous cable same route hidden dangers, the frequencies and the number of subnetwork system influences corresponding to the optical cables are sorted and displayed;
[0032] For all heterogeneous cable same route hidden dangers, the frequencies and the number of subnetwork system influences corresponding to the support sections are sorted and displayed.
[0033] In a second aspect, the present disclosure provides a device for detecting a same route hidden danger in a transmission network, comprising:
[0034] An acquisition module configured to acquire an association relationship among optical cables, subnetwork systems, and transmission sections in a whole network;
[0035] A first detection module configured to detect, based on the association relationship among the optical cables, the subnetwork systems, and the transmission sections in the whole network, an optical cable that exists a same cable same route hidden danger and meets a first preset condition; wherein the same cable same route hidden danger refers to a route hidden danger that a failure of a same optical cable will cause a system to be interrupted in two directions;
[0036] A determination module configured to determine, based on the association relationship among the optical cables, the subnetwork systems, and the transmission sections in the whole network, and an association relationship between the optical cables and support sections, the association relationship among the support sections, the optical cables, the subnetwork systems, and the transmission sections in the whole network;
[0037] A second detection module configured to detect, based on the association relationship among the support sections, the optical cables, the subnetwork systems, and the transmission sections in the whole network, a support section that exists a heterogeneous cable same route hidden danger and meets a second preset condition; wherein the heterogeneous cable same route hidden danger refers to a route hidden danger that a failure of a same support section will cause a system to be interrupted in two directions.
[0038] In a third aspect, the present disclosure provides an electronic device, comprising:
[0039] A processor;
[0040] A memory for storing instructions executable by the processor;
[0041] The processor is configured to execute the instructions to implement the method of the first aspect.
[0042] In a fourth aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of the first aspect.
[0043] In a fifth aspect, the present disclosure provides a computer program product comprising computer programs / instructions, wherein the computer programs / instructions, when executed by a processor, implement the method of the first aspect.
[0044] The technical solutions disclosed by the present disclosure at least have the following beneficial effects:
[0045] In the embodiments of the present disclosure, the association relationship between the full-network optical cable, the sub-network system and the transmission section is obtained, and based on the association relationship between the full-network optical cable, the sub-network system and the transmission section, an optical cable with a same-cable same-route hidden danger meeting a first preset condition is detected; wherein the same-cable same-route hidden danger refers to a route hidden danger that a fault of the same optical cable will cause interruption in two directions of the system; based on the association relationship between the full-network optical cable, the sub-network system and the transmission section, and the association relationship between the optical cable and the support section, the association relationship between the full-network support section, the optical cable, the sub-network system and the transmission section is determined; based on the association relationship between the full-network support section, the optical cable, the sub-network system and the transmission section, a support section with a different-cable same-route hidden danger meeting a second preset condition is detected. In this way, on the one hand, it can be applied to single or small-batch transmission sub-network system same-route hidden danger detection, and on the other hand, it is suitable for single full-quantity or large-batch transmission sub-network system same-route hidden danger detection.
[0046] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0047] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure without imposing undue limitation on the disclosure.
[0048] Figure 1 A flowchart of a transmission network same-route hidden danger detection method provided by the embodiments of the present disclosure;
[0049] Figure 2 A detailed step diagram of a transmission network same-route hidden danger detection method provided by the embodiments of the present disclosure;
[0050] Figure 3is a structural schematic diagram of a device for detecting a same-route hidden danger in a transmission network provided by an embodiment of the present disclosure.
[0051] Figure 4 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] In order for those skilled 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 described clearly and completely below in conjunction with the accompanying drawings.
[0053] It should be noted that the terms "first", "second", and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present disclosure. Rather, 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 for analysis, stored data, displayed data, etc.) and signals involved in the present 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, processing, etc. of data in the technical solutions of the present disclosure all comply 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 some software, components, models, etc. in the industry, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present disclosure, but it does not mean that the applicant has or will necessarily use the scheme.
[0057] In the related art, a transmission network is a basic base for carrying wireless, broadband, dedicated line and other services, composed of many subnetwork systems such as PTN / SPN / OTN / SDH, and a plurality of corresponding type transmission devices are connected by pipeline resources such as optical cables inside these subnetwork systems. According to the importance of the services carried and different networking forms, different disaster recovery protection schemes are deployed. When the main route fails, the services carried on the system can be automatically switched to the standby route to ensure the safe operation of the services. However, at present, the networking of devices and optical cables is becoming larger and more complex, and the system cannot avoid the contradiction between the multiple different logical paths on the network management topology and the actual use of the optical cable laying physical route. The failure of the physical same route can cause double breakage and protection failure on the main and standby paths of a single or multiple or different level subnetwork system, thereby causing a large area of service withdrawal.
[0058] In view of the above problems, major communication operators and related manufacturers provide different same route analysis methods between two transmission optical cables / optical paths and inside a single transmission subnetwork system. The existing analysis method for transmission optical cable same route using frequency as an identification feature analyzes the level and stays in the optical path group constructed by the optical path routing and topology link of the subnetwork system, does not master the use distribution of the full amount of optical cables and their underlying supporting sections (optical cable routing) on all transmission subnetwork systems, and does not make global consideration and analysis on the same cable same route and different cable same route of the full amount of transmission subnetwork systems. That is, the related art at least has the following technical problems:
[0059] (1) It is not possible to know in advance all the transmission subnetwork systems carried by the optical cable and the same route, and only the passive knowledge after the failure occurs. How to identify all the transmission subnetwork systems corresponding to the optical cable and the same route in advance is a problem to be solved urgently.
[0060] (2) The optimized resources cannot be timely put into the same route hidden danger that threatens the safety of the service the most, and there is no priority for hidden danger remediation. Only one can be found and solved, and the previous method of achieving batch transmission system same route analysis by stacking multiple single system same route analysis is low in efficiency and time-consuming. How to quickly mine the biggest / larger same route hidden danger in the whole network based on full amount analysis is also a problem to be solved urgently.
[0061] Based on this, the embodiments of the present disclosure provide a comprehensive detection method and device for same route hidden dangers in a transmission network, equipment and medium, which not only has the same same route hidden danger troubleshooting capability of the existing method for single / small batch transmission subnetwork systems, but also is suitable for troubleshooting of same route hidden dangers of single / full amount / large batch transmission subnetwork systems.
[0062] The technical solutions provided by the embodiments of the present disclosure are described in detail below with reference to the drawings.
[0063] In the embodiments of the present disclosure, the following fields are used, and the explanations of the fields are as follows:
[0064] Subnet system name (identifier): The system name of each transmission subnet on the transmission network management of different subnets, different types (PTN / SPN / OTN / SDH, etc.), and different device manufacturers is unique in the whole network (for example, XX-XX-branch 1 / branch 2 / core / aggregation / access-PTN / SPN / OTN / SDH ring / system / subnet-sequence number).
[0065] Transmission segment name (identifier): The logical connection between different devices in a single transmission subnet system on the network management can be described by using the source and destination transmission device names and the networking port names (for example, A device name-port name-Z device name-port name), and this set of descriptions is the transmission segment name.
[0066] Cable name (identifier) passed: The cable list actually used by the transmission segment is described in the specific optical path scheme. If the transmission segment actually uses only one direct cable, the field only contains one cable name. If the actual optical path of the transmission segment passes through one or more hops such as optical exchanges, other machine rooms, and is connected by multiple different cables, the field contains a set of cable names.
[0067] Through the optical path scheduling link in the daily network access addition or switching adjustment process, it can be determined which transmission subnet system a single transmission segment belongs to and which logical link it is used for, and the total cable name passed can be accurately mastered (the above information can be obtained from the pipeline resource system). Therefore, a two-dimensional list can be designed to store the basic data, and the collection.counter(container) method can be used to count the frequency of the total cable, take each cable as an index, traverse the basic data, obtain the accurate association of the cable-system-transmission segment, and finally obtain the specific name of each cable, the number of uses, and the distribution of the cable in which specific subnet system and transmission segment. For example, Table 1 shows the specific example:
[0068] Table 1
[0069]
[0070] Figure 1 A flowchart of a method for detecting a same-route hidden danger in a transmission network is provided in the embodiments of the present disclosure. The method can be applied to a server, for example, a single server or a server cluster. As shown in Figure 1 The method for detecting a same-route hidden danger in a transmission network can include the following steps:
[0071] S101, obtaining the association relationship between the total network cable, subnet system, and transmission segment.
[0072] In the embodiments of the present disclosure, when detecting the same route hidden danger in the transmission network, the association relationship between the optical cables, the subnetwork systems and the transmission segments in the whole network can be acquired, that is, the use distribution of the full amount of optical cables in the full amount of systems is acquired. For example, the names of all transmission segments in the whole network and the names of the subnetwork systems to which the transmission segments belong, and the lists of the optical cables passing through the transmission segments can be read in sequence respectively. Based on the names of all transmission segments in the whole network and the names of the subnetwork systems to which the transmission segments belong, and the lists of the optical cables passing through the transmission segments, the association relationship between the optical cables, the subnetwork systems and the transmission segments in the whole network is determined. The association relationship can be used to indicate the specific name of each optical cable, the number of uses of the optical cable, and the distribution of the optical cable in which specific subnetwork systems and transmission segments.
[0073] In a possible implementation, acquiring the association relationship between the optical cables, the subnetwork systems and the transmission segments in the whole network comprises:
[0074] The first list is used to read all transmission segment identifiers in the whole network, the second list is used to read the subnetwork system identifiers to which each transmission segment identifier in the whole network belongs, and the third list is used to read the optical cable identifiers passing through each transmission segment identifier in the whole network. 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. The fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship between the optical cables, the subnetwork systems and the transmission segments.
[0076] In the embodiments of the present disclosure, when acquiring the association relationship between the optical cables, the subnetwork systems and the transmission segments in the whole network, the first list, the second list and the third list can be used to read all transmission segment identifiers in the whole network, the subnetwork system identifiers to which each transmission segment identifier in the whole network belongs, and the optical cable identifiers passing through each transmission segment identifier in the whole network respectively. The identifiers can be names. Then, the three lists of the first list, the second list and the third list can be constructed into a two-dimensional list of element association sets, that is, a fourth list. The fourth list includes the association relationship between the optical cables, the subnetwork systems and the transmission segments in the whole network.
[0077] As a specific example, the System_Name, the Transmission_Segment_Name and the Cables_Name three one-dimensional lists can be used to read the names of all transmission segments in the whole network and the names of the subnetwork systems to which the transmission segments belong, and the lists of the optical cables passing through the transmission segments (Cables Name) in sequence respectively, and a two-dimensional list Together of element association sets of the three lists is constructed, that is, a fourth list:
[0078] Together[i] = [System_Name[i], Transmission_Segment_Name[i], Cables_Name[i]] (i: 0 ~ total network transmission segment number - 1)
[0079] S102, based on the association relationship among the optical cables in the whole network, the subnetwork systems and the transmission segments, detecting the optical cables that exist the same-cable same-route hidden danger and meet the first preset condition.
[0080] The same-cable same-route hidden danger refers to a hidden danger that a fault of the same optical cable will cause the interruption of the system in two directions.
[0081] In the embodiments of the present disclosure, after obtaining the association relationship among the optical cables in the whole network, the subnetwork systems and the transmission segments, the detection of the same-cable same-route hidden danger can be performed. For example, the distribution analysis result of the whole amount of optical cables in the whole amount of systems can be used to detect the optical cables that exist the same-cable same-route hidden danger and meet the first preset condition. The first preset condition can indicate that a fault of a certain optical cable will cause the interruption of the system in two directions. It can be understood that the same-cable same-route hidden danger detection can be performed on multiple optical cables at the same time.
[0082] In a possible implementation, based on the association relationship among the optical cables in the whole network, the subnetwork systems and the transmission segments, the detection of the optical cables that exist the same-cable same-route hidden danger and meet the first preset condition comprises:
[0083] The frequency of each optical cable identifier is counted by applying the counter container to the optical cable identifier;
[0084] Based on the frequency of each optical cable identifier, the corresponding frequency, the belonging subnetwork identifier and the belonging transmission segment identifier of each optical cable identifier are counted in the fourth list;
[0085] Based on the corresponding frequency, the belonging subnetwork identifier and the belonging transmission segment identifier of each optical cable identifier, the number n1 of the transmission segments belonging to the single subnetwork system of each optical cable identifier and the number n2 of the subnetwork system influence of each optical cable identifier are counted;
[0086] For the i-th optical cable identifier, if the number n1 of the transmission segments belonging to the same subnetwork system of the i-th optical cable identifier is greater than the first preset threshold value, the number n2 of the subnetwork system influence 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] If the frequency of the i-th optical cable identifier is greater than or equal to the second preset threshold value, and the number n2 of the subnetwork system influence of the i-th optical cable identifier is greater than or equal to the second threshold value, it is determined that the optical cable corresponding to the i-th optical cable identifier exists the same-cable same-route hidden danger that will cause the interruption of multiple subnetwork systems in two directions;
[0088] In a case that the frequency of the i-th optical cable identifier is greater than or equal to the second preset threshold, and the number n2 of the subnet system affected by the i-th optical cable identifier is less than the second preset threshold, it is determined that the optical cable corresponding to the i-th optical cable identifier exists a same-cable same-route risk of causing a single subnet system to be interrupted in two directions.
[0089] In an embodiment of the present disclosure, when detecting the optical cable with the same-cable same-route risk meeting the first preset condition based on the association relationship among the optical cables, the subnet systems and the transmission segments, the frequency of each optical cable can be counted by applying a counter collection.counter to the optical cable identifier list. Then, the frequency of each optical cable identifier, the subnet identifier and the transmission segment identifier corresponding to the optical cable identifier can be counted based on the frequency of each optical cable identifier, so as to obtain the distribution of the optical cables in the whole network system. Thereafter, the number n1 of the transmission segments in the same subnet system corresponding to the same optical cable can be counted by using an integer variable n1, and the number n2 of the subnet systems affected by the same optical cable can be counted by using an 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 identifier, if the number n1 of the transmission segments in the single subnet system to which the i-th optical cable identifier belongs is greater than the first preset threshold, the number n2 of the subnet systems affected by the optical cable corresponding to the i-th optical cable identifier is equal to the original n2 value plus 1. The first preset threshold can be set to 2, for example.
[0090] It is further determined whether the frequency of the i-th optical cable identifier is greater than or equal to the second preset threshold, and whether the number n2 of the subnet systems affected by the i-th optical cable identifier 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 i-th optical cable identifier is greater than or equal to the second preset threshold, and the number n2 of the subnet systems affected by the i-th optical cable identifier is greater than or equal to the second threshold, it is considered that the optical cable corresponding to the i-th optical cable identifier exists a same-cable same-route risk of causing multiple subnet systems to be interrupted in two directions. If the frequency of the i-th optical cable identifier is greater than or equal to the second preset threshold, and the number n2 of the subnet systems affected by the i-th optical cable identifier is less than the second preset threshold, it is considered that the optical cable corresponding to the i-th optical cable identifier exists a same-cable same-route risk of causing a single subnet system to be interrupted in two directions. In this way, the same-route risk detection of the optical cable corresponding to each optical cable identifier can be completed. In this way, the collection.counter container method is used, and the counter is suitable for a scenario in which the number of occurrences of an element needs to be counted quickly. The counting process only needs to be iterated once, which is fast and simple. Therefore, based on the association relationship among the network support segments, the optical cables, the transmission segments and the systems, the use of the collection.counter container method can effectively improve the efficiency.
[0091] S103, determine the association relationship among the support sections, optical cables, subnetwork systems and transmission sections in the whole network based on the association relationship among the optical cables, subnetwork systems and transmission sections in the whole network and the association relationship between the optical cables and the support sections.
[0092] In the embodiments of the present disclosure, the association relationship between the optical cables and the support sections can also be obtained, for example, pandas or a database can be used to process data to improve the data analysis efficiency. The association relationship between the optical cables and the support sections can be obtained according to the correspondence relationship between the optical cables and the cable sections and the correspondence relationship between the cable sections and the support sections. Then, the association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network is obtained based on the association relationship among the optical cables, the subnetwork systems and the transmission sections in the whole network and the association relationship between the optical cables and the support sections.
[0093] In a possible implementation, the association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network is determined based on the association relationship among the optical cables, the subnetwork systems and the transmission sections in the whole network and the association relationship between the optical cables and the support sections, and includes:
[0094] The association relationship between the optical cables and the support sections is determined according to the correspondence relationship between the optical cables and the cable sections and the correspondence relationship between the cable sections and the support sections. The association relationship between the optical cables and the support sections is represented by a fifth list, and the fifth list is a two-dimensional list.
[0095] The association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network is determined based on the traversal of the fifth list based on the fourth list. The association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network is represented by a sixth list, and the sixth list is a two-dimensional list.
[0096] In the embodiments of the present disclosure, when the association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network is determined based on the association relationship among the optical cables, the subnetwork systems and the transmission sections in the whole network and the association relationship between the optical cables and the support sections, the two-dimensional list Cable_Support with each element as [optical cable name, support section name] can be obtained according to the correspondence relationship between the optical cables and the cable sections and the correspondence relationship between the cable sections and the support sections, that is, the fifth list. Then, the fifth list can be traversed one by one with the optical cable identifier in the fourth list, that is, the two-dimensional list representing the association relationship among the optical cables, the subnetwork systems and the transmission sections as an index. Based on the subnetwork system and transmission section information originally mapped by each optical cable, the support section information of the optical cable is obtained, and the mapping is reversed to obtain the optical cable, the subnetwork system and the like information supported by each support section, that is, [support section name, optical cable name, system name, transmission section name], which is added to a two-dimensional list as an element, that is, the sixth list, which is used to represent the association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network.
[0097] S104, based on the association relationship among the whole network support section, the optical cable, the subnetwork system and the transmission section, detecting the optical cable with the same-cable different-route hidden danger meeting the second preset condition.
[0098] The same-cable different-route hidden danger refers to a route hidden danger that a fault of a same support section will cause interruption in two directions of the system.
[0099] In the embodiments of the present disclosure, after obtaining the association relationship among the whole network support section, the optical cable, the subnetwork system and the transmission section, the detection of the same-cable different-route hidden danger can be performed. For example, according to the use distribution of the support section on the whole network system, the optical cable with the same-cable different-route hidden danger meeting the second preset condition can be detected. The second preset condition can indicate that a fault of a certain support section will cause interruption in two directions of the system. It can be understood that the same-cable different-route hidden danger detection can be performed on multiple support sections at the same time.
[0100] In a possible implementation, based on the association relationship among the whole network support section, the optical cable, the subnetwork system and the transmission section, the support section with the same-cable different-route hidden danger meeting the second preset condition is detected, including:
[0101] The frequency of each support section is counted by using the counter container;
[0102] The frequency of each support section is associated with the optical cable identifier, the subnetwork system identifier and the transmission section identifier associated with each support section to obtain a seventh list;
[0103] Based on the seventh list, the number N1 of transmission sections in the same subnetwork system corresponding to each support section is counted, and the number N2 of subnetwork system influences of each support section is counted.
[0104] For the jth support section, if the number N1 of transmission sections in the same subnetwork system corresponding to the jth support section is greater than or equal to a third preset threshold, the number N2 of subnetwork system influences of the jth support section is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support sections.
[0105] If the frequency of the jth support section is greater than or equal to a fourth preset threshold, and the number N2 of subnetwork system influences of the jth support section is greater than or equal to the fourth preset threshold, it is determined that the jth support section is a same-cable different-route hidden danger that will cause interruption in two directions of multiple subnetwork systems at the same time.
[0106] If the frequency of the jth support section is greater than or equal to the fourth preset threshold, and the number N2 of subnetwork system influences of the jth support section is less than the fourth preset threshold, it is determined that the jth support section is a same-cable different-route hidden danger that will cause interruption in two directions of a single subnetwork system at the same time.
[0107] In the embodiments of the present disclosure, based on the association relationship among the full-network support section, the optical cable, the sub-network system and the transmission section, when the optical cable with the abnormal cable same route hidden danger meeting the second preset condition is detected, the frequency of each support section can be counted by the counter collection. counter. The frequency of each support section is associated with the optical cable identifier, the sub-network system identifier and the transmission section identifier associated with each support section to obtain a seventh list, which is also a two-dimensional list. Then, the seventh list can be traversed based on the frequency of each support section to count the frequency, the sub-network identifier and the transmission section identifier corresponding to each support section to obtain the distribution of the support section on the full-network system. Subsequently, the number of transmission sections in the same sub-network system corresponding to the same support section can be counted by the integer variable N1, and the number of sub-network system influences of the same support section can be counted by the integer variable N2, and the initial values of N1 and N2 are both 0. For a certain support section, for example, the jth support section, if the number of transmission sections in the sub-network system corresponding to the jth support section N1 is greater than or equal to a third preset threshold, the number of sub-network system influences N2 of the support section is updated to the original N2 value plus 1. The third preset threshold can be set to 2, for example.
[0108] It is further determined whether the frequency of the jth support section is greater than or equal to a fourth preset threshold, and whether the number of sub-network system influences N2 of the jth support section is greater than or equal to the fourth preset threshold, and the fourth preset threshold can be set to 2, for example. If the frequency of the jth support section is greater than or equal to the fourth preset threshold, and the number of sub-network system influences N2 of the jth support section is greater than or equal to the fourth preset threshold, it can be considered that the jth support section has an abnormal cable same route hidden danger that can cause multiple sub-network systems to be interrupted in two directions. If the frequency of the jth support section is greater than or equal to the fourth preset threshold, and the number of sub-network system influences N2 of the jth support section is less than the fourth preset threshold, it can be considered that the jth support section has an abnormal cable same route hidden danger that can cause a single sub-network system to be interrupted in two directions. In this way, the abnormal route hidden danger detection of each support section can be completed.
[0109] In the embodiments of the present disclosure, the association relationship among the optical cables, the subnetwork systems and the transmission sections in the whole network is acquired; based on the association relationship among the optical cables, the subnetwork systems and the transmission sections in the whole network, an optical cable that meets a first preset condition and has a same-cable same-route hidden danger is detected; wherein the same-cable same-route hidden danger refers to a route hidden danger that a fault of the same optical cable will cause a system interruption in two directions; based on the association relationship among the optical cables, the subnetwork systems and the transmission sections in the whole network and the association relationship between the optical cables and the support sections, the association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network is determined; based on the association relationship among the support sections, the optical cables, the subnetwork systems and the transmission sections in the whole network, a support section that meets a second preset condition and has a different-cable same-route hidden danger is detected. In this way, on the one hand, the same-route hidden danger detection can be applied to a single or small-batch transmission subnetwork system, and on the other hand, the same-route hidden danger detection can be applied to a single or large-batch transmission subnetwork system.
[0110] In some possible implementation manners, after detecting the optical cable that meets the first preset condition and has the same-cable same-route hidden danger, the following processing can be further performed:
[0111] For all the same-cable same-route hidden dangers, the same-cable same-route hidden dangers are displayed after being sorted according to the frequency corresponding to the optical cable and the number of affected subnetwork systems.
[0112] After detecting the support section that meets the second preset condition and has the different-cable same-route hidden danger, the following processing can be further performed:
[0113] For all the different-cable same-route hidden dangers, the different-cable same-route hidden dangers are displayed after being sorted according to the frequency corresponding to the support section and the number of affected subnetwork systems.
[0114] In the embodiments of the present disclosure, after detecting the optical cable that meets the first preset condition and has the same-cable same-route hidden danger, the detection result can be displayed after being sorted according to the frequency of the optical cable and the number of affected subnetwork systems from high to low, and different priorities are distinguished according to the importance of the same-cable same-route hidden danger. Similarly, after detecting the support section that meets the second preset condition and has the different-cable same-route hidden danger, the detection result can be displayed after being sorted according to the frequency of the support section and the number of affected subnetwork systems from high to low, and different priorities are distinguished according to the importance of the different-cable same-route hidden danger. In this way, the same-cable same-route and the different-cable same-route of the single or large-batch or single transmission subnetwork system can be distinguished according to the frequency of the optical cable in different transmission subnetwork systems and the frequency of the support section in different transmission subnetwork systems and the order from high to low of the influence range.
[0115] To make the detection method of the same-route hidden danger in the transmission network provided by the embodiments of the present disclosure clearer, the following embodiments are combined for description. Specifically, the detection method of the same-route hidden danger in the transmission network provided by the embodiments of the present disclosure includes the following three key technologies:
[0116] Key Technology 1: Quickly obtain the distribution of all optical cables used in the entire system.
[0117] Before introducing the detailed analysis methods, the fields to be used will be explained as follows:
[0118] Subnet System Name: To identify different subnets, each transmission subnet has a unique system name on the transmission network management system of different types (PTN / SPN / OTN / SDH, etc.) and different equipment manufacturers (Huawei, ZTE, Fiberhome, Bell, etc.) (e.g., XX-XX-First Trunk / Second 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 system can be described using the source and destination transmission device names and network port names (A-end device name - port name - Z-end device name - port name). This set of descriptions is the transmission segment name.
[0120] The name of the optical cable traversed: The specific optical path scheme describes the list of optical cables actually used in the transmission segment. If the transmission segment actually uses only one direct optical cable, then this field contains only one optical cable name. If the actual optical path corresponding to the transmission segment passes through one or more jump points such as optical cross-connectors, other equipment rooms, etc., and is connected end-to-end by multiple different optical cables, then this field contains a set of optical cable names.
[0121] Through the optical path scheduling process in routine network additions, cutovers, and adjustments, it is possible to not only clearly identify which transmission subnet system a single transmission segment belongs to and which logical link it is used for, but also accurately determine the names of all optical cables it traverses (this information can be obtained from the pipeline resource system). Therefore, a two-dimensional list can be designed to store the basic data, and the frequency of all optical cables can be statistically analyzed using the `collection.counter` container method. Using each optical cable as an index, the basic data is traversed to obtain the accurate association between optical cable, system, and transmission segment. This ultimately yields the specific name of each optical cable, its usage frequency, and the specific subnet systems and transmission segments in which it is distributed, as shown in Table 1.
[0122] Key Technology 2: Method for identifying potential hazards associated with co-cable and co-route connections.
[0123] Based on the distribution analysis results of all optical cables used in the entire system:
[0124] (1) If the same optical cable is used twice or more in the same subnet system, it can be determined that there is a hidden danger of the same cable and same route in a single subnet system that would cause the system to be interrupted in both directions.
[0125] (2)For the same cable in the network in multiple sub-network systems exist frequency greater than or equal to two times, can be determined as the same cable same route hidden danger will lead to batch system in two directions interruption.
[0126] (3)Statistical sorting of all the same cable same route hidden danger will lead to system in two directions interruption of sub-network system number and its in the corresponding sub-network system inside the number (must greater than or equal to 2), complete the whole network same cable same route hidden danger mining.
[0127] As an example, the distribution of the whole amount of optical cable in the whole amount of system can be shown in Table 2.
[0128] Table 2
[0129]
[0130] Key technology three: different cable same route hidden danger mining method
[0131] The idea of different cable same route hidden danger mining is to compare whether there is the same support section between different optical cables. A brief description is as follows: a complete optical cable is composed of one or more cable sections (cable section is the cable between one optical distribution frame ODF and the next optical distribution frame ODF, including optical distribution frame ODF, optical exchange, optical distribution, joint box, etc.), and the bottom layer of the cable section is one or more support sections (support section is a measure to support / protect the optical cable, including pipeline section, pole section, direct buried section, wall hanging section, lead-in section, etc.). Therefore, when two different optical cables use the same pipeline in a certain section, if the two cables are used in the main and standby two directions of the same transmission sub-network system, the system has different cable same route in the pipeline section. Once the pipeline is damaged due to excavation, there is a possibility that two optical cables are interrupted at the same time and the transmission sub-network system is interrupted in two directions.
[0132] When a new optical cable is entered into the pipeline resource system, the binding of the optical cable and the cable section, the cable section and the support section will be completed. Combined with the association relationship of optical cable-system-transmission section obtained in "key technology one", the whole process mapping of support section-optical cable-transmission section-system can be realized, as shown in Table 3. Then, the statistical sorting function of the collection.counter container method is used for the whole amount of support section frequency of system networking to identify different cable same route hidden danger:
[0133] (1)For the same support section in the same sub-network system with a frequency greater than or equal to two times, it can be determined that there is a different cable same route hidden danger in a single sub-network system that will lead to the interruption of the system in two directions.
[0134] (2)For the same support section in multiple sub-network systems in the network with a frequency greater than or equal to two times, it can be determined that there is a different cable same route hidden danger that will lead to the interruption of batch systems in two directions at the same time.
[0135] Statistical sorting of all heterogeneous cable same route risks can cause the number of subnets in both directions of the system interruption and its occurrence in the corresponding subnet system (must be greater than or equal to 2), complete the whole network heterogeneous cable same route risk mining.
[0136] Table 3
[0137]
[0138] According to the above three key technologies, the method provided by the disclosure implements the following steps:
[0139] Step S1: using System_Name, Transmission_Segment_Name, Cables_Name three one-dimensional lists, that is, the first list, the second list, and the third list, respectively reading all transmission segment names and their belonging subnet system names, and the list of optical cables (Cables_Name) passed through in sequence, and constructing a two-dimensional list Together with the association set of the three list single elements as elements:
[0140] Together[i]=[System_Name[i],Transmission_Segment_Name[i],Cables_Name[i]](i:0~whole network transmission segment number-1)
[0141] Step S2: disassemble the optical cable list string in each Cables_Name, obtain multiple single optical cable names, and store them in the list Cable_List in the form of elements, and do not remove the same optical cable name elements; apply the collection.counter container to Cable_List to count the frequency of different optical cables, and sort the optical cable frequency from high to low to obtain a dictionary structure Frequency_Cable, the Key value of the dictionary is the optical cable name, and the Value value is the optical cable frequency, and then call the most_common function to return the list Frequency_Cable_List composed of all (Key, Value) groups.
[0142] Step S3: To store the distribution of all optical cables used for networking on the whole quantum network system, define a two-dimensional list Cable_Distribution, that is, the fourth list; first traverse the two-dimensional list Together with 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, judge whether the optical cable name corresponding to Frequency_Cable_List[j][1] exists in Together[i][2]. When the match is successful, Frequency_Cable_List[j][1] optical cable name, Frequency_Cable[j][0] optical cable frequency, the corresponding subnet system name Together[i][0] and the transmission segment name Together[i][1] are constructed into a list, and the list is written into Cable_Distribution. After the traversal is completed, Cable_Distribution stores all optical cables used for system networking, and different subnet systems and transmission segments using the optical cables, and the distribution of the optical cables on the whole network system is obtained.
[0143] Step S4: Take the result Cable_Distribution of step S3 as the basis data set, use integer variable n1 to count the number of transmission segments in the same subnet system corresponding to the same optical cable, and use integer variable n2 to count the number of subnet systems affected by the same optical cable, the initial values of n1 and n2 are both 0, traverse Cable_Distribution, for a single optical cable in a subnet system, when n1 completes the statistical count and n1≥2, the number of subnet systems affected by the optical cable n2=n2+1. When the optical cable frequency≥2 and the number of subnet systems affected n2≥2 are true at the same time, the same cable and same route hidden danger that will cause batch system interruption in both directions is dug out; when the optical cable frequency≥2 and the number of subnet systems affected 0<n2<2 are true at the same time, the same cable and same route hidden danger that will only cause single system interruption in both directions is dug out; the screening result is still displayed in order from high to low according to the optical cable usage frequency and the number of affected subnet systems, and different priorities are distinguished for the importance of the same cable and same route hidden danger.
[0144] Step S5: Considering that the data volume of the whole network support section can reach millions, it is necessary to use pandas or database to process the data to ensure analysis efficiency. According to the correspondence between the optical cable and the optical cable section, the optical cable section and the support section, a two-dimensional list Cable_Support with each element as [optical cable name, support section name] is obtained. Cable_Distribution in step S3 stores the distribution of the whole optical cable in the whole network system. Traverse Cable_Support[n][0] (n: 0~total number of support sections-1) one by one with Cable_Distribution[m][0] (m: 0~total number of optical cables used in system networking-1) optical cable name as index. On the basis of obtaining the original system and transmission section information of each optical cable, the support section information of the optical cable is obtained, and the reverse mapping is performed to obtain the optical cable, system, etc. information supported by each support section, that is, [support section name, optical cable name, system name, transmission section name] (the same support section name can correspond to multiple optical cable names), which is used as an element to be added to the Support_Cable_System_List two-dimensional list, that is, the sixth list.
[0145] Step S6: The frequency of different support sections is sorted using the collection.counter container. After being converted to a list using most_common, the corresponding optical cable, subnetwork system, and transmission section information are associated to obtain the use distribution of the support section in the whole quantum network system: the two-dimensional subtable Support_Distribution.
[0146] Step S7: Based on the result Support_Distribution of step S6 as the basic data set, the integer variable N1 is used to count the number of transmission sections in the same subnetwork system corresponding to the same support section, and the integer variable N2 is used to count the number of subnetwork systems affected by the same support section. The initial values of N1 and N2 are both 0. Traverse Support_Distribution. For a single subnetwork system of a single support section, when N1 completes the statistical count and N1≥2, the number of subnetwork systems affected by the support section N2=N2+1. When the support section frequency≥2 and the number of subnetwork systems affected N2≥2 are both true, the hidden danger of different cables and the same route that can cause batch system interruption in both directions is found out. When the support section frequency≥2 and the number of subnetwork systems affected by the support section 0
[0147] Step S8: Save the data results and complete the hidden danger mining of the same cable and the same route and the different cable and the same route in the whole network.
[0148] It can be seen that the method provided by the present disclosure can mine the same route hidden danger of the transmission system based on full networking and pipeline data; the frequency statistics and sorting of different transmission optical cables in different transmission subnetwork systems and the frequency statistics and sorting of different optical cable support sections in different transmission subnetwork systems can be performed based on the collection.counter container method; the distribution of the optical cables and support sections used for networking in the full network in the full transmission subnetwork system is analyzed; and the full-range mapping association of the support section-optical cable-transmission section-system is realized. Based on this, on the one hand, the embodiment of the present disclosure can realize a full-amount same route analysis method. For example, the key field data can be stored by using a two-dimensional list or other data structure and matched and associated forward and backward according to relevant features, so as to realize the full-range mapping of the support section-optical cable-transmission section-system in the full network; the frequency of the optical cable in different transmission subnetwork systems and the frequency of the support section in different transmission subnetwork systems are counted by using the collection.counter container method, and the influence is ranked from high to low, so as to realize the full mining of the single full-amount / batch / single transmission subnetwork system same cable same route and different cable same route with differentiated priority. On the other hand, the efficient mining of the full hidden danger can be realized. For example, the collection.counter container method can be used. The counter is suitable for scenarios that need to quickly count the number of elements. The counting process only needs to be traversed once, which is fast and simple. Based on the obtained multiple-use association relationship of the support section-optical cable-transmission section-system in the full network, the collection.counter container method is used, which is more efficient.
[0149] The specific implementation and technical effects of each step of the embodiment are similar to those of the above-mentioned method embodiment, and will not be described here.
[0150] Based on the same inventive concept, the present disclosure also provides a device for detecting same route hidden danger in a transmission network. As shown in the device for detecting same route hidden danger in a transmission network 300, the device for detecting same route hidden danger in a transmission network 300 comprises: Figure 3
[0151] The acquisition module 310 is configured to acquire the association relationship between the optical cable, the subnetwork system and the transmission section in the full network.
[0152] The first detection module 320 is configured to detect the optical cable with same cable same route hidden danger that meets the first preset condition based on the association relationship between the optical cable, the subnetwork system and the transmission section in the full network. The same cable same route hidden danger refers to the route hidden danger that the failure of the same optical cable will cause the interruption of the system in two directions.
[0153] The determining module 330 is configured to determine the association relationship among the whole network support section, the optical cable, the sub-network system, and the transmission section based on the association relationship among the whole network optical cable, the sub-network system, and the transmission section, and the association relationship between the optical cable and the support section.
[0154] The second detecting module 340 is configured to detect a support section with a same-cable different-route hidden danger meeting a second preset condition based on the association relationship among the whole network support section, the optical cable, the sub-network system, and the transmission section; wherein the same-cable different-route hidden danger refers to a route hidden danger that a fault in the same support section will cause interruption in two directions of the system.
[0155] In a possible implementation, the obtaining module 310 is configured to:
[0156] The first list is used to read all transmission section identifiers in the whole network, the second list is used to read sub-network system identifiers to which each of the transmission section identifiers in the whole network belongs, and the third list is used to read optical cable identifiers passed through by each of the transmission section identifiers in the whole network; wherein the first list, the second list, and the third list are one-dimensional lists.
[0157] The fourth list is obtained by association based on the first list, the second list, and the third list; the fourth list is a two-dimensional list, and the fourth list is used to indicate the association relationship among the whole network optical cable, the sub-network system, and the transmission section.
[0158] In a possible implementation, the first detecting module 320 is configured to:
[0159] The frequency of each optical cable identifier is counted by applying a counter container to the optical cable identifier.
[0160] Each optical cable identifier, corresponding frequency, belonging sub-network identifier, and belonging transmission section identifier are counted based on the frequency of each optical cable identifier by traversing the fourth list.
[0161] The number n1 of transmission sections to which each optical cable identifier belongs in a single sub-network system to which the optical cable identifier belongs, and the number n2 of sub-network system influences of each optical cable identifier are counted based on the corresponding frequency, the belonging sub-network identifier, and the belonging transmission section identifier of each optical cable identifier.
[0162] For the i-th optical cable identifier, if the number n1 of transmission sections to which the i-th optical cable identifier belongs in the same sub-network system to which the i-th optical cable identifier belongs is greater than a first preset threshold, the number n2 of sub-network system influences of the i-th optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1, M), and M is the total number of optical cables.
[0163] In a case that the frequency of the ith optical cable identifier is greater than or equal to a second preset threshold, and the number n2 of subnetwork system influences of the ith optical cable identifier is greater than or equal to the second threshold, it is determined that the optical cable corresponding to the ith optical cable identifier has a same-cable same-route risk of causing multiple subnetwork systems to be interrupted in two directions at the same time.
[0164] In a case that the frequency of the ith optical cable identifier is greater than or equal to a second preset threshold, and the number n2 of subnetwork system influences of the ith optical cable identifier is less than the second preset threshold, it is determined that the optical cable corresponding to the ith optical cable identifier has a same-cable same-route risk of causing a single subnetwork system to be interrupted in two directions.
[0165] In a possible implementation, the determining module 330 is configured to:
[0166] According to the correspondence between the optical cable and the optical cable segment, and the correspondence between the optical cable segment and the support segment, an association relationship between the optical cable and the support segment is determined; wherein the association relationship between the optical cable and the support 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 an association relationship between the whole-network support segment, the optical cable, the subnetwork system and the transmission segment; wherein the association relationship between the whole-network support segment, the optical cable, the subnetwork system and the transmission segment is represented by a sixth list, and the sixth list is a two-dimensional list.
[0168] In a possible implementation, the second detecting module 340 is configured to:
[0169] The frequency of each support segment is counted by using a counter container.
[0170] The frequency of each support segment is associated with the optical cable identifier, the subnetwork system identifier and the transmission segment identifier associated with each support segment to obtain a seventh list.
[0171] Based on the seventh list, the number N1 of transmission segments in the same subnetwork system corresponding to each support segment, and the number N2 of subnetwork system influences of each support segment are counted.
[0172] For the jth support segment, in a case that the number N1 of transmission segments in the same subnetwork system corresponding to the jth support segment is greater than or equal to a third preset threshold, the number N2 of subnetwork system influences of the jth support segment is updated to the original N2 value plus 1; j∈[1, k], and k is the total number of support segments.
[0173] In a case where the frequency of the jth support section is greater than or equal to a fourth preset threshold, and the number N2 of subnetwork system influences of the jth support section is greater than or equal to the fourth preset threshold, it is determined that the jth support section is a heterogeneous cable same route hidden danger that will cause multiple subnetwork systems to be interrupted in two directions at the same time.
[0174] In a case where the frequency of the jth support section is greater than or equal to a fourth preset threshold, and the number N2 of subnetwork system influences of the jth support section is less than the fourth preset threshold, it is determined that the jth support section is a heterogeneous cable same route hidden danger that will cause a single subnetwork system to be interrupted in two directions at the same time.
[0175] In a possible implementation, the method further includes an ordering module configured to perform at least one of the following:
[0176] For all homogeneous cable same route hidden dangers, the frequency corresponding to the optical cable and the number of subnetwork system influences are sorted and then displayed.
[0177] For all heterogeneous cable same route hidden dangers, the frequency corresponding to the support section and the number of subnetwork system influences are sorted and then displayed.
[0178] The specific implementation modes and technical effects of the apparatus provided by the embodiments of the present disclosure are similar to those of the above-mentioned method embodiments, and will not be described here again.
[0179] According to the embodiments of the present disclosure, the present disclosure further 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 embodiments of the present disclosure is shown. The electronic device 400 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.
[0181] As Figure 4As shown, the electronic device 400 includes a computing unit 401 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 402 or a computer program loaded into a random access memory (RAM) 403 from a storage unit 408. 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 through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0182] A plurality of 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, and the like; an output unit 407, such as various types of displays, a speaker, and the like; a storage unit 408, such as a magnetic disk, an optical disk, and the like; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, and the like. 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 can be various general-purpose and / or special-purpose processing components having 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 specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, and the like. The computing unit 401 performs various methods and processes described above, such as the method of detecting same-route hazards in a transmission network. For example, in some embodiments, the method of detecting same-route hazards in a transmission network can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can 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 of detecting same-route hazards in a transmission network described above can be performed. Alternatively, in other embodiments, the computing unit 401 can be configured to perform the method of detecting same-route hazards in a transmission network by any other appropriate means, such as by means of firmware.
[0184] The various embodiments of the systems and techniques described above can be implemented in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a load programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0185] Program code of a computer program product for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, implements the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, or entirely on a remote machine or server.
[0186] In the context of the present disclosure, a computer-readable storage medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection based on one or more wires, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0187] To provide for interaction with a user, the systems and techniques described here 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 a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, 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, speech, or tactile input.
[0188] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end 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] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can 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 large management difficulty and weak business scalability in traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server can also be a server of a distributed system, or a server combined with a blockchain.
[0190] It should be understood that various forms of flow shown above can be used, with steps reordered, added, or removed. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, without limitation herein, as long as the desired results of the technical solutions of the present disclosure can be achieved.
[0191] The above detailed description does not limit the scope of the disclosure. Various modifications, combinations, sub-combinations and alternatives can be made to the detailed description. Any modification, equivalent replacement and improvement etc. made within the spirit and principle of the disclosure shall be included in the scope of the disclosure.
Claims
1. A method for detecting a same-route risk in a transport network, characterized in that, The method comprises the following steps: acquiring the association relationship among the whole network optical cable, the subnetwork system and the transmission section; based on the association relationship among the whole network optical cable, the subnetwork system and the transmission section, detecting the optical cable with the same cable and routing hidden danger meeting the first preset condition; wherein, the same cable and routing 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, and further comprising: for the ith optical cable identifier, in the case that the transmission section number n1 of the ith optical cable identifier in the same subnetwork system to which the ith optical cable identifier belongs is greater than the first preset threshold value, the subnetwork system influence number n2 of the ith optical cable identifier is equal to the original n2 value plus 1; wherein, i∈(1, M), M is the total number of optical cables; in the case that the frequency of the ith optical cable identifier is greater than or equal to the second preset threshold value, and the subnetwork system influence number n2 of the ith optical cable identifier is greater than or equal to the second preset threshold value, it is determined that the optical cable corresponding to the ith optical cable identifier has the same cable and routing hidden danger which will cause the interruption of multiple subnetwork systems in two directions; in the case that the frequency of the ith optical cable identifier is greater than or equal to the second preset threshold value, and the subnetwork system influence number n2 of the ith optical cable identifier is less than the second preset threshold value, it is determined that the optical cable corresponding to the ith optical cable identifier has the same cable and routing hidden danger which will cause the interruption of a single subnetwork system in two directions; based on the association relationship among the whole network optical cable, the subnetwork system and the transmission section, and the association relationship between the optical cable and the support section, the association relationship among the whole network support section, the optical cable, the subnetwork system and the transmission section is determined; based on the association relationship among the whole network support section, the optical cable, the subnetwork system and the transmission section, the support section with the different cable and routing hidden danger meeting the second preset condition is detected; wherein, the different cable and routing hidden danger refers to the routing hidden danger that the failure of the same support section will cause the interruption of the system in two directions, and further comprising: for the jth support section, in the case that the transmission section number N1 of the same subnetwork system corresponding to the jth support section is greater than or equal to the third preset threshold value, the subnetwork system influence number N2 of the jth support section is updated to the original N2 value plus 1; j∈[1, k], k is the total number of support sections; in the case that the frequency of the jth support section is greater than or equal to the fourth preset threshold value, and the subnetwork system influence number N2 of the jth support section is greater than or equal to the fourth preset threshold value, it is determined that the jth support section is the different cable and routing hidden danger which will cause the interruption of multiple subnetwork systems in two directions; in the case that the frequency of the jth support section is greater than or equal to the fourth preset threshold value, and the subnetwork system influence number N2 of the jth support section is less than the fourth preset threshold value, it is determined that the jth support section is the different cable and routing hidden danger which will cause the interruption of a single subnetwork system in two directions.
2. The method for detecting co-routing vulnerabilities in a transmission network according to claim 1, characterized in that, The acquisition of the association relationship among the whole network optical cable, the subnetwork system and the transmission section comprises the following steps: The first list is used to read all transmission segment identifiers in the whole network, the second list is used to read the subnet system identifiers to which each of the transmission segment identifiers in the whole network belongs, and the third list is used to read the optical cable identifiers passed by each of the transmission segment identifiers in the whole 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, the subnet systems and the transmission segments in the whole network.
3. The method of claim 2, wherein the step of detecting the potential misrouting comprises the step of: Based on the association relationship between the optical cables, the subnet systems and the transmission segments in the whole network, the optical cables with the same-cable same-route hidden troubles meeting a first preset condition are detected, including: By applying a counter container to the optical cable identifier, the frequency of each optical cable identifier is counted; Based on the frequency of each optical cable identifier, the fourth list is traversed to count the corresponding frequency, the corresponding subnet identifier and the corresponding transmission segment identifier of each optical cable identifier; Based on the corresponding frequency, the corresponding subnet identifier and the corresponding transmission segment identifier of each optical cable identifier, the number n1 of transmission segments belonging to a single subnet system to which each optical cable identifier belongs is counted, and the number n2 of subnet system influences of each optical cable identifier is counted.
4. The method of claim 2, wherein the step of detecting the potential misrouting comprises the step of: Based on the association relationship between the optical cables, the subnet systems and the transmission segments in the whole network, and the association relationship between the optical cables and the support segments, the association relationship between the optical cables, the subnet systems, the transmission segments and the support segments in the whole network is determined, including: According to the corresponding relationship between the optical cables and the optical cable segments, and the corresponding relationship between the optical cable segments and the support segments, the association relationship between the optical cables and the support segments is determined; wherein the association relationship between the optical cables and the support segments 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 optical cables, the subnet systems, the transmission segments and the support segments in the whole network; wherein the association relationship between the optical cables, the subnet systems, the transmission segments and the support segments in the whole network is represented by a sixth list, and the sixth list is a two-dimensional list.
5. The method of claim 4, wherein the step of detecting the potential misrouting comprises the step of: Based on the association relationship between the optical cables, the subnet systems and the transmission segments in the whole network, the support segments with the different-cable same-route hidden troubles meeting a second preset condition are detected, including: By counting the frequency of each support segment by using a counter container; The frequency of each support segment is associated with the optical cable identifier, the subnet system identifier and the transmission segment identifier associated with each support segment to obtain a seventh list; Based on the seventh list, the number N1 of transmission segments in the same subnet system corresponding to each support segment is counted, and the number N2 of subnet system influences of each support segment is counted.
6. The method of detecting a misroute in a transport network of any of claims 3 or 5, wherein, Further comprising at least one of the following: For all same-cable same-route hidden troubles, the same-cable same-route hidden troubles are displayed after being sorted according to the frequency of the optical cables and the number of subnet system influences; For all different-cable same-route hidden troubles, the different-cable same-route hidden troubles are displayed after being sorted according to the frequency of the support segments and the number of subnet system influences.
7. A detection device for potential routing vulnerabilities in a transmission network, characterized in that, including: An acquisition module is configured to acquire the association relationship between the optical cables, the subnet systems and the transmission segments in the whole network. The first detection module is configured to detect an optical cable with a same-cable same-route risk according to the association relationship among the whole network optical cable, the subnetwork system, and the transmission segment, wherein the same-cable same-route risk refers to a risk that a failure of the same optical cable will cause a system interruption in two directions, and further comprising: for an ith optical cable identifier, if a number n1 of transmission segments of the ith optical cable identifier in a same subnetwork system to which the ith optical cable identifier belongs is greater than a first preset threshold, a subnetwork system influence number n2 of the ith optical cable identifier is equal to the original n2 value plus 1; wherein i∈(1, M), and M is a total number of optical cables. If the frequency of the ith optical cable identifier is greater than or equal to a second preset threshold, and the subnetwork system influence number n2 of the ith optical cable identifier is greater than or equal to the second preset threshold, it is determined that the optical cable corresponding to the ith optical cable identifier has a same-cable same-route risk that will cause multiple subnetwork systems to be interrupted in two directions at the same time. If the frequency of the ith optical cable identifier is greater than or equal to the second preset threshold, and the subnetwork system influence number n2 of the ith optical cable identifier is less than the second preset threshold, it is determined that the optical cable corresponding to the ith optical cable identifier has a same-cable same-route risk that will cause a single subnetwork system to be interrupted in two directions at the same time. The determination module is configured to determine the association relationship among the whole network support segment, the optical cable, the subnetwork system, and the transmission segment according to the association relationship among the whole network optical cable, the subnetwork system, and the transmission segment, and the association relationship between the optical cable and the support segment. The second detection module is configured to detect a support segment with a different-cable same-route risk according to the association relationship among the whole network support segment, the optical cable, the subnetwork system, and the transmission segment, wherein the different-cable same-route risk refers to a risk that a failure of the same support segment will cause a system interruption in two directions, and further comprising: for a jth support segment, if a number N1 of transmission segments of the jth support segment in a same subnetwork system corresponding to the jth support segment is greater than or equal to a third preset threshold, a subnetwork system influence number N2 of the jth support segment is updated to be the original N2 value plus 1; j∈[1, k], and k is a total number of support segments. If the frequency of the jth support segment is greater than or equal to a fourth preset threshold, and the subnetwork system influence number N2 of the jth support segment is greater than or equal to the fourth preset threshold, it is determined that the jth support segment has a different-cable same-route risk that will cause multiple subnetwork systems to be interrupted in two directions at the same time. If the frequency of the jth support segment is greater than or equal to the fourth preset threshold, and the subnetwork system influence number N2 of the jth support segment is less than the fourth preset threshold, it is determined that the jth support segment has a different-cable same-route risk that will cause a single subnetwork system to be interrupted in two directions at the same time.
8. An electronic device, comprising: The apparatus comprises: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method for detecting a same-route risk in a transmission network according to any one of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by a processor to implement the method for detecting the same-route hidden trouble in the transmission network according to any one of claims 1-6.
10. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by a processor to implement the method for detecting the same-route hidden trouble in the transmission network according to any one of claims 1-6.
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