Service Co-Routing Detection Method, Device, Equipment and Storage Medium
By acquiring service data and extracting routing information, the same routing situation of the service data transmission circuit is automatically detected, and the problem of low synchronous routing detection efficiency in the existing technology is solved, and efficient and accurate synchronous routing detection is achieved.
Patent Information
- Application Number
- CN202110676153.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-17
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2041-06-17
AI Technical Summary
In the prior art, the service and routing detection efficiency is low, and it is impossible to discover the hidden danger points of the equipment points and routing sections of the main and backup service paths on the service transmission side through automatic analysis, resulting in low detection efficiency of the same route and reducing work efficiency and service activation capabilities.
By obtaining the service data at the time of service activation, determining the routing information of the service data transmission circuit, extracting tunnel information and pseudo-line information based on the routing information, and performing automated synchronous routing detection.
Through automated detection methods, the efficiency and accuracy of the same-routine detection are greatly improved, and the potential for hidden dangers in the service transmission path can be actively discovered, which improves the ability to open the service.
Smart Images

Figure CN115499861B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technologies, and in particular, to a service same-route detection method, apparatus, device, and storage medium. Background Art
[0002] Service same-route seriously threatens the security of mobile communication networks. Once a fault occurs in the same-route section, it will cause the simultaneous interruption of the service working protection paths, and then lead to service flash interruption or interruption. The existing physical / logical same-route analysis methods based on service provisioning are completed manually. Service configuration personnel use the network topology of the network management system to complete logical same-route analysis and avoidance; outside line personnel verify whether there is physical same-route in the service path. The existing technical solutions require different department personnel to operate separately for physical and logical same-route analysis during service provisioning, and cannot be carried out simultaneously. If adjustment is required, additional workload such as cutover and rework will be generated. And potential problems in the device points and route segments of the primary and secondary service paths on the service transmission side cannot be actively discovered through the automatic analysis process, resulting in low same-route detection efficiency, and reducing work efficiency and service provisioning capabilities.
[0003] The above content is only used to assist in understanding the technical solution of the present invention, and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main object of the present invention is to provide a service same-route detection method, apparatus, device, and storage medium, aiming to solve the technical problem of low same-route detection efficiency in the prior art.
[0005] To achieve the above object, the present invention provides a service same-route detection method, and the service same-route detection method includes the following steps:
[0006] Obtain service data when the service is provisioned;
[0007] Determine the routing information corresponding to the service data transmission circuit according to the service data;
[0008] Determine tunnel information and pseudowire information according to the routing information;
[0009] Perform same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information.
[0010] Optionally, the determining the routing information corresponding to the service data transmission circuit according to the service data includes:
[0011] Determine the source-end network element and the destination-end network element corresponding to the service data transmission circuit according to the service data;
[0012] Obtain the source NE information and source port information corresponding to the source NE, and the destination NE information and destination port information corresponding to the destination NE based on the NE topology structure;
[0013] Determine the routing information corresponding to the service data transmission circuit according to the source NE information, the source port information, the destination NE information, and the destination port information.
[0014] Optionally, the same-routing detection of the service data transmission circuit according to the tunnel information and the pseudowire information includes:
[0015] Extract the number of pseudowires associated with the service from the pseudowire information;
[0016] Judge whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires;
[0017] When there is only a primary route for the service data transmission circuit, obtain the tunnel routing table associated with the tunnel information;
[0018] Query the protection tunnel of the primary route from the tunnel routing table;
[0019] Perform logical same-routing detection on the service data transmission circuit according to the protection tunnel.
[0020] Optionally, the judging whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires includes:
[0021] When the number of pseudowires meets the first preset number, determine that there is only a primary route for the service data transmission circuit;
[0022] When the number of pseudowires meets the second preset number, determine that there are both a primary route and a backup route for the service data transmission circuit, where the second preset number is greater than the first preset number.
[0023] Optionally, after judging whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires, it further includes:
[0024] When there are both a primary route and a backup route for the service data transmission circuit, perform route segment screening on the primary route and the backup route;
[0025] Compare each route segment in the filtered primary route with all route segments of the filtered backup route in turn;
[0026] Perform logical same-routing detection on the primary route and the backup route according to the route segment comparison result.
[0027] Optionally, the same - route detection of the service data transmission circuit according to the tunnel information and the pseudowire information includes:
[0028] Obtain the external line resource information corresponding to the service data transmission circuit associated with the tunnel information and the pseudowire information;
[0029] Select multiple identical topological segments on the primary route and the standby route corresponding to the service data transmission circuit;
[0030] Screen out the target topological segment from the multiple topological segments;
[0031] Determine the optical cable segment corresponding to the target topological segment according to the external line resource information;
[0032] Perform physical same - route detection on the primary route and the standby route according to the optical cable segment.
[0033] Optionally, after the same - route detection of the service data transmission circuit according to the tunnel information and the pseudowire information, it further includes:
[0034] Obtain the route segments that are in the same route between the primary route and the standby route corresponding to the service data transmission circuit;
[0035] Perform network - forming judgment on the route segments;
[0036] Store the ring - network - forming identifier or chain - network - forming identifier corresponding to the route segments into the same - route hidden - danger library according to the network - forming judgment result.
[0037] In addition, to achieve the above - mentioned purpose, the present invention also proposes a service same - route detection device, and the service same - route detection device includes:
[0038] An acquisition module, configured to acquire service data during service activation;
[0039] An operation module, configured to determine the route information corresponding to the service data transmission circuit according to the service data;
[0040] An extraction module, configured to determine tunnel information and pseudowire information according to the route information;
[0041] A detection module, configured to perform same - route detection on the service data transmission circuit according to the tunnel information and the pseudowire information.
[0042] In addition, to achieve the above object, the present invention also provides a service co-routing detection device, which includes: a memory, a processor, and a service co-routing detection program stored on the memory and executable on the processor. The service co-routing detection program is configured to implement the service co-routing detection method as described above.
[0043] In addition, to achieve the above object, the present invention also provides a storage medium with a service co-routing detection program stored thereon. When the service co-routing detection program is executed by a processor, it implements the service co-routing detection method as described above.
[0044] The present invention obtains service data at the time of service activation; determines the routing information corresponding to the service data transmission circuit according to the service data; determines tunnel information and pseudowire information according to the routing information; and performs co-routing detection on the service data transmission circuit according to the tunnel information and the pseudowire information. By using the tunnel information and pseudowire information extracted from the routing information to perform co-routing detection on the service data transmission circuit and adopting an automated detection method for co-routing detection, the co-routing detection efficiency and accuracy are greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a schematic structural diagram of a service co-routing detection device in the hardware operating environment related to the solution of the embodiment of the present invention;
[0046] Figure 2 is a schematic flowchart of the first embodiment of the service co-routing detection method of the present invention;
[0047] Figure 3 is a schematic flowchart of the second embodiment of the service co-routing detection method of the present invention;
[0048] Figure 4 is a schematic diagram of the physical connection of an optical cable section in the service co-routing detection method of the present invention;
[0049] Figure 5 is a schematic block diagram of the first embodiment of the service co-routing detection device of the present invention.
[0050] The realization, functional features, and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0052] Referring to Figure 1 , Figure 1 is a schematic structural diagram of a service co-routing detection device in the hardware operating environment related to the solution of the embodiment of the present invention.
[0053] As Figure 1 shown, the service same-route detection device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard. Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (WI-FI) interface). The memory 1005 may be a high-speed Random Access Memory (RAM) or a stable Non-Volatile Memory (NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0054] Those skilled in the art can understand that Figure 1 the structure shown in
[0055] As Figure 1 shown, in the memory 1005 as a storage medium, there may be included an operating system, a network communication module, a user interface module, and a service same-route detection program.
[0056] In Figure 1 the service same-route detection device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the service same-route detection device of the present invention may be provided in the service same-route detection device. The service same-route detection device calls the service same-route detection program stored in the memory 1005 through the processor 1001 and executes the service same-route detection method provided by the embodiments of the present invention.
[0057] The embodiments of the present invention provide a service same-route detection method. Referring to Figure 2 , Figure 2 it is a schematic flowchart of the first embodiment of a service same-route detection method of the present invention.
[0058] In this embodiment, the service same-route detection method includes the following steps:
[0059] Step S10: Obtain service data at the time of service activation.
[0060] It should be noted that the execution entity of this embodiment can be a service same-route detection device. The service same-route detection device can be an electronic device such as a personal computer, a server, or a vehicle-mounted terminal, and can also be other controllers and devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment and the following embodiments, the service same-route detection method of the present invention will be described by taking the service same-route detection device as an example.
[0061] In this embodiment, the service data is transmitted through the working link. A plurality of network elements are sequentially connected on the working link, such as A - B - C - D - … - Z. The in-route of a network element includes the input port, output port, and a series of optical fibers and ports inside the network element that connect the input port to the output port. The between-network-element route includes the link connecting adjacent network elements and the ports connected by the link. For example, if the in-network is A - B - C - D - … - Z, then A is the network element at the source port, and Z is the network element at the destination port. The source port is the port used by the local program to send service data, and the destination port is the port where the third-party host receives the service data. At the time of service activation, the service data starts from the source port and is transmitted through each network element on the working link to the destination network element.
[0062] In specific implementation, in this embodiment, the service data at the time of service activation can be obtained according to the read instruction input by the user. Further, a preset time can be set in this embodiment. When the preset time is reached, the service data at the time of service activation is automatically obtained. In this embodiment, the service data can also be obtained in other ways and can be set accordingly according to the actual situation. This embodiment does not limit this.
[0063] Step S20: Determine the routing information corresponding to the service data transmission circuit according to the service data.
[0064] It should be emphasized that in this embodiment, the service data transmission circuit is the working link for transmitting service data. The network element topology connection relationship includes network resources, logical layering of network resources, and the composition and cross-connection configuration of racks / sub-racks. According to this information, the connection relationship between each network element in the transmission circuit can be determined. According to this connection relationship, the network elements passed by the service data transmission circuit can be determined. The routing information can be calculated according to the network element information. In this embodiment, the routing information can be calculated by the shortest path algorithm, and other algorithms can also be used to calculate the routing information. It can be adjusted accordingly according to the actual needs. This embodiment does not limit this. The obtained routing information includes information such as the identifiers of each network element, network element information, and the relative positions of each network element in the entire service data transmission circuit architecture.
[0065] Furthermore, it should be noted that the routing information directly determines the same - routing detection result of the service data transmission circuit. In this embodiment, in order to obtain more accurate routing information, it can be implemented in the following manner. Specifically, step S20 in this embodiment includes: determining the source - end network element and the destination - end network element corresponding to the service data transmission circuit according to the service data; obtaining the source - end network element information and source - port information corresponding to the source - end network element, and the destination - end network element information and destination - port information corresponding to the destination - end network element based on the network - element topology structure; and determining the routing information corresponding to the service data transmission circuit according to the source - end network element information, the source - port information, the destination - end network element information, and the destination - port information.
[0066] In a specific implementation, according to the input and output of the service data, the network element corresponding to the source end (local - end data - sending end) of the service data transmission circuit, that is, the source - end network element, and the network element corresponding to the destination end (third - party data - receiving end) of the service data transmission circuit, that is, the destination - end network element, can be determined. Then, based on the network resources, network - resource logical layering, rack / sub - rack composition, cross - connection configuration, and other information included in the network - element topology structure of the service data transmission circuit, the source - end network element information and source - port information of the source - end network element, and the destination - end network element information and destination - port information of the destination - end network element are determined. Among them, the source - end network element information and the destination - end network element information include information such as the network - element type of the source - end network element and the destination - end network element, and the source - port information and the destination - port information include information such as the port number, port type, and port protocol.
[0067] Step S30: Determine the tunnel information and the pseudowire information according to the routing information.
[0068] In a specific implementation, after obtaining the routing information, the corresponding tunnel information and pseudowire information can be extracted from the routing information. The tunneling technology is a way to transfer data between networks by using the infrastructure of the interconnected network, and the corresponding data - transfer channel is a tunnel. The tunnel information extracted in this embodiment includes tunnel - path information, tunnel - routing - table information, etc. Further, the pseudowire information in this embodiment is the information of the pseudowire associated with the service data, and the pseudowire information includes the number of pseudowires, etc.
[0069] Step S40: Perform the same - routing detection on the service data transmission circuit according to the tunnel information and the pseudowire information.
[0070] It should be noted that in this embodiment, it is possible to detect whether there is a same-route situation in the service data transmission circuit according to the associated routing table and the like included in the tunnel information, the number of pseudowires included in the pseudowire information, etc. The same-route detection includes logical same-route detection and physical same-route detection. Specifically, the logical same-route detection of the service data transmission circuit can be performed by detecting whether there are the same route segments, and the physical same-route detection of the service data transmission circuit can be performed by detecting whether there are the same optical cable segments.
[0071] Further, after the step S40, it further includes: obtaining the route segments that are in the same route between the primary route and the standby route corresponding to the service data transmission circuit; performing network formation judgment on the route segments; and storing the ring network formation identifier or the chain network formation identifier corresponding to the route segments into the same-route hidden danger library according to the network formation judgment result.
[0072] It should be noted that in the actual service data transmission circuit, it is composed of a chain-type ring network and a ring-type ring network. For example, for the service data transmission circuit A - B - C - D - E, where A, B, and C are on the same link, and C, D, and E form a ring network. And the routes A, B, and C on the same link, that is, the chain network formation, must be in the same-route state. Therefore, the same-route detection for the chain network formation is meaningless. In this embodiment, the same-route detection is for the ring network formation, that is, to detect whether there is a same-route situation in the ring network formed by the route segments C, D, and E.
[0073] In a specific implementation, after the same-route detection of the service data transmission circuit in this embodiment, based on the same-route detection result, it is possible to determine the route segments that are in the same route between the primary route and the standby route. According to the composition structure of the route segments, it can be determined whether the route segments belong to the chain network formation or the ring network formation. Since it is of little significance to detect whether there is a same route in the chain network formation, corresponding chain network formation identifiers and ring network formation identifiers are set for the chain network formation and the ring network formation to make a distinction, so that the later work management personnel can quickly identify the same-route route segments in the service data transmission circuit according to the above identifiers.
[0074] It is easy to understand that due to the existence of the same route, when a routing segment fails, it will cause both the working path and the protection path to be disconnected, and the service will experience situations such as crashing. However, the impact of the same route is that when a fault occurs in the routing segment, the existence of the same route will not affect the normal transmission of service data. In practical applications, when the service is relatively important, if the transmission of service data is carried out after excluding the same-route fault, it will obviously affect the progress of service development, which is unreasonable. Therefore, in this embodiment, after setting corresponding identifiers for the chain-type network or ring-type network with the same route, they are stored in the same-route hidden danger library, and the routing segments in the same route are not directly disconnected. Further, in this embodiment, after obtaining the service data, the corresponding service level can be determined according to the service data, and the importance of the service can be judged according to the service level. If the service level does not reach the preset level, the transmission of service data is stopped. After the same route in the service data transmission circuit is excluded, the transmission of service data is started again. If the service level reaches the preset level, the transmission of service data continues, and the same route in the service data transmission circuit is excluded after the transmission of service data stops. Among them, the division of the service level and the setting of the preset level can be adjusted accordingly according to the actual situation, and this embodiment does not limit this.
[0075] In this embodiment, the service data at the time of service activation is obtained; the routing information corresponding to the service data transmission circuit is determined according to the service data; the tunnel information and the pseudowire information are determined according to the routing information; the same-route detection of the service data transmission circuit is performed according to the tunnel information and the pseudowire information. The same-route detection of the service data transmission circuit is performed through the tunnel information and the pseudowire information extracted from the routing information, and the same-route detection is performed through an automated detection method, which greatly improves the efficiency and accuracy of the same-route detection.
[0076] Reference Figure 3 , Figure 3 is a schematic flowchart of the second embodiment of a service same-route detection method of the present invention.
[0077] Based on the above first embodiment, in this embodiment, the step S40 specifically includes:
[0078] Step S401: Extract the number of pseudowires associated with the service from the pseudowire information.
[0079] In specific implementation, after extracting the pseudowire information from the routing information, the associated pseudowires are determined according to information such as the service type in the service data, and the number of pseudowires of the associated pseudowires is obtained at the same time.
[0080] Step S402: Judge whether there are a primary route and a backup route in the service data transmission circuit according to the number of pseudowires.
[0081] It should be noted that not all service data transmission circuits have both a primary route and a backup route at the same time. In this embodiment, it is possible to determine whether a service data transmission circuit has a primary route and a backup route according to the number of pseudowires. Specifically, it can be determined according to the relationship between the number of pseudowires and the primary / backup routes. For example, the number of pseudowires corresponding to the simultaneous existence of a primary route and a backup route is N 1 , the number of pseudowires corresponding to only the primary route is N 2 , and then the number of pseudowires extracted from the pseudowire information is compared with N 1 and N 2 to determine whether the service data transmission circuit has a primary route and a backup route.
[0082] Furthermore, in order to more accurately determine whether a service data transmission circuit has a primary route and a backup route, in this embodiment, step S402 specifically includes: when the number of pseudowires meets a first preset number, it is determined that the service data transmission circuit has only a primary route; when the number of pseudowires meets a second preset number, it is determined that the service data transmission circuit has both a primary route and a backup route, where the second preset number is greater than the first preset number.
[0083] It should be noted that in this embodiment, the first preset number is the number of pseudowires corresponding to the situation where the service data transmission circuit has only a primary route, and the second preset number is the number of pseudowires corresponding to the situation where the service data transmission circuit has only a primary route. The first preset number is less than the second preset number. The first preset number can be set to 1. When the number of pseudowires is 1, it is determined that the service data transmission circuit has only a primary route. The second preset number can be set to 2. When the number of pseudowires is 2, it is determined that the service data transmission circuit has a primary route and a backup route. Further, the second preset number can also be set to 3. When the number of pseudowires is 3, it is determined that the service data transmission circuit has a primary route and two backup routes. Of course, in this embodiment, the first preset number and the second preset number can also be set accordingly according to the actual situation, and this embodiment does not limit this.
[0084] Step S403: When the service data transmission circuit has only a primary route, obtain the tunnel routing table associated with the tunnel information.
[0085] Step S404: Query the protection tunnel of the primary route from the tunnel routing table.
[0086] It should be noted that if only the primary route exists in the service data transmission circuit, the corresponding tunnel routing table can be obtained according to the corresponding identifier included in the tunnel information. The tunnel routing table in this embodiment includes a static routing table, a dynamic routing table, etc., and the routing table contains topology information. After obtaining the tunnel routing table, the protection tunnel of the primary route is searched from the tunnel routing table according to the path information of the primary route.
[0087] Step S405: Perform a logical same-route detection on the service data transmission circuit according to the protection tunnel.
[0088] In a specific implementation, after determining the protection tunnel, a logical same-route detection is performed on the service data transmission circuit according to the protection tunnel. For example, there are multiple devices set on the path corresponding to the protection tunnel. It is detected whether there is a situation where an optical cable passes through the ports of the same device or different ports of the same board. If so, it can be determined that there is a logical same-route in the service data transmission circuit.
[0089] Further, when both the primary route and the standby route exist in the service data transmission circuit, since the logical same-route detection is for a ring network, in this embodiment, the routing segments of the primary route and the standby route can be screened according to the networking identifier, and the routing segments in the chain network are removed, and then the logical same-route detection is performed. Specifically, in the detection process, for example, a routing segment A in the primary route is first selected, and then the routing segment A is compared with each routing segment of the standby route respectively to find the routing segment in the standby route that is the same as the routing segment A, and save and record it. Then, the next routing segment B of the primary route is taken and compared with all the routing segments of the standby route, and so on in a loop until all the routing segments of the primary route are completed. During the comparison process, if there are the same routing segments in the primary route and the standby route, it means that there is a same-route between the primary route and the standby route. If not, it means that there is no same-route between the primary route and the standby route.
[0090] Further, in this embodiment, in addition to being able to perform a logical same-route detection on the service data transmission circuit, it can also perform a physical same-route detection on the service data transmission circuit. The step S40 in this embodiment further includes: obtaining the external line resource information corresponding to the service data transmission circuit associated with the tunnel information and the pseudowire information; selecting multiple same topology segments on the primary route and the standby route corresponding to the service data transmission circuit; screening out the target topology segments from the multiple topology segments; determining the optical cable segments corresponding to the target topology segments according to the external line resource information; and performing a physical same-route detection on the primary route and the standby route according to the optical cable segments.
[0091] It should be noted that physical co-routing detection is to detect whether the primary route and the standby route in the environment are on the same physical medium, such as a multi-core optical cable or a multi-core cable, etc. The actual physical connection path of the service data transmission circuit is as Figure 4 shown. Figure 4 In Figure 4 , the physical connection of the actual optical cable segments corresponding to the service data circuit is A-B-C-D-E-F-G. A-B represents one of the optical cable segments on the path. According to the actual physical connection relationship, co-routing detection can be performed on the service data transmission circuit. For example, if both the primary route and the standby route pass through the A-B optical cable segment, it can be determined that there is a physical co-routing in the service data transmission circuit. Specifically, in this embodiment, according to the tunnel information and the pseudowire information, the external line resource information corresponding to the service data transmission circuit can be obtained from the resource center. The external line resource information includes optical cable information or path information between network elements, etc. Based on the physical structure of the optical cable laying, the actual physical connection segments of the cables, that is, the same topological segments on the primary route and the standby route, can be obtained. Similarly, after obtaining multiple topological segments, the topological segments in the chain-type network are removed, and then physical co-routing detection is performed. The target topological segments are the topological segments in the ring-type network. Finally, according to the external line resource information and combined with the identifiers of each topological segment, the optical cable segments corresponding to each topological segment can be determined. If there are topological segments in the topological segments of the primary route and the standby route that are in the same optical cable segment, it can be determined that there is a physical co-routing between the primary route and the standby route. If not, it can be determined that there is no physical co-routing between the primary route and the standby route.
[0092] In this embodiment, by extracting the number of pseudowires associated with the service from the pseudowire information, it is determined whether there are a primary route and a standby route in the service data transmission circuit. When there is only a primary route in the service data transmission circuit, logical co-routing detection is performed through the tunnel route table associated with the tunnel information. When there are both a primary route and a standby route in the service data transmission circuit, logical co-routing detection is performed through route paragraph comparison. Physical co-routing detection can also be performed according to the external line resource information associated with the tunnel information and the pseudowire information, improving the detection efficiency and accuracy of logical co-routing and physical co-routing.
[0093] In addition, an embodiment of the present invention also proposes a storage medium, on which a service co-routing detection program is stored. When the service co-routing detection program is executed by a processor, the steps of the service co-routing detection method as described above are implemented.
[0094] Referring to Figure 5 , Figure 5 is the structural block diagram of the first embodiment of the service co-routing detection device of the present invention.
[0095] As shown in Figure 5As shown in the figure, the service same-route detection device proposed in the embodiment of the present invention includes:
[0096] An acquisition module 10, configured to acquire service data when a service is opened.
[0097] An operation module 20, configured to determine route information corresponding to a service data transmission circuit according to the service data.
[0098] An extraction module 30, configured to determine tunnel information and pseudowire information according to the route information.
[0099] A detection module 40, configured to perform same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information.
[0100] In this embodiment, by acquiring service data when a service is opened; determining route information corresponding to a service data transmission circuit according to the service data; determining tunnel information and pseudowire information according to the route information; performing same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information, and performing same-route detection on the service data transmission circuit through the tunnel information and pseudowire information extracted from the route information, and performing same-route detection in an automated detection manner, the same-route detection efficiency and accuracy are greatly improved.
[0101] In one embodiment, the operation module 20 is further configured to determine a source network element and a destination network element corresponding to a service data transmission circuit according to the service data; acquire source network element information and source port information corresponding to the source network element, and destination network element information and destination port information corresponding to the destination network element based on a network element topology structure; and determine route information corresponding to the service data transmission circuit according to the source network element information, the source port information, the destination network element information, and the destination port information.
[0102] In one embodiment, the detection module 40 is further configured to extract the number of pseudowires associated with a service from the pseudowire information; determine whether there is a primary route and a backup route for the service data transmission circuit according to the number of pseudowires; when there is only a primary route for the service data transmission circuit, acquire a tunnel route table associated with the tunnel information; query a protection tunnel for the primary route from the tunnel route table; and perform logical same-route detection on the service data transmission circuit according to the protection tunnel.
[0103] In one embodiment, the detection module 40 is further configured to determine that there is only a primary route for the service data transmission circuit when the number of pseudowires meets a first preset number; and determine that there are both a primary route and a backup route for the service data transmission circuit when the number of pseudowires meets a second preset number, where the second preset number is greater than the first preset number.
[0104] In one embodiment, the detection module 40 is further configured to, when there are both a primary route and a standby route in the service data transmission circuit, perform route segment screening on the primary route and the standby route; sequentially compare each route segment in the screened primary route with all route segments of the screened standby route; and perform logical same-route detection on the primary route and the standby route according to the route segment comparison result.
[0105] In one embodiment, the detection module 40 is further configured to obtain outside line resource information corresponding to the service data transmission circuit associated with the tunnel information and the pseudowire information; select a plurality of identical topology segments on the primary route and the standby route corresponding to the service data transmission circuit; screen out target topology segments from the plurality of topology segments; determine an optical cable segment corresponding to the target topology segment according to the outside line resource information; and perform physical same-route detection on the primary route and the standby route according to the optical cable segment.
[0106] In one embodiment, the service same-route detection device further includes a storage module;
[0107] The storage module is configured to obtain route segments that are in the same route between the primary route and the standby route corresponding to the service data transmission circuit; perform network formation judgment on the route segments; and store the ring network formation identifier or the chain network formation identifier corresponding to the route segments into the same-route hidden danger library according to the network formation judgment result.
[0108] It should be understood that the above is only an example for illustration and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can set according to needs, and the present invention does not make any limitation thereto.
[0109] It should be noted that the above-described working process is only illustrative and does not constitute a limitation to the protection scope of the present invention. In actual applications, those skilled in the art can select some or all of them according to actual needs to achieve the purpose of the solution of this embodiment, and no limitation is made here.
[0110] In addition, for technical details not described in detail in this embodiment, reference can be made to the service same-route detection method provided in any embodiment of the present invention, which will not be elaborated here.
[0111] In addition, it should be noted that in this text, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or system comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or system comprising such element.
[0112] The serial numbers of the above embodiments of the present invention are only for description and do not represent the superiority or inferiority of the embodiments.
[0113] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as a read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0114] The above are only the preferred embodiments of the present invention and do not limit the patent scope of the present invention accordingly. Any equivalent structural or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A service same-route detection method, characterized in that, the service same-route detection method includes: Obtain service data when the service is activated; Determine the routing information corresponding to the service data transmission circuit according to the service data; Determine tunnel information and pseudowire information according to the routing information; Perform same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information; The performing same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information includes: Extract the number of pseudowires associated with the service from the pseudowire information; Judge whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires; When there is only a primary route for the service data transmission circuit, obtain the tunnel route table associated with the tunnel information; Query the protection tunnel of the primary route from the tunnel route table; Perform logical same-route detection on the service data transmission circuit according to the protection tunnel; The performing same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information further includes: Obtain the outside line resource information corresponding to the service data transmission circuit associated with the tunnel information and the pseudowire information; Select multiple identical topology segments on the primary route and the backup route corresponding to the service data transmission circuit; Screen out the target topology segments from the multiple topology segments; Determine the optical cable segment corresponding to the target topology segment according to the outside line resource information; Perform physical same-route detection on the primary route and the backup route according to the optical cable segment.
2. The service same-route detection method according to claim 1, characterized in that, the determining the routing information corresponding to the service data transmission circuit according to the service data includes: Determine the source network element and the destination network element corresponding to the service data transmission circuit according to the service data; Obtain the source network element information and the source port information corresponding to the source network element, and the destination network element information and the destination port information corresponding to the destination network element based on the network element topology structure; Determine the routing information corresponding to the service data transmission circuit according to the source network element information, the source port information, the destination network element information, and the destination port information.
3. The service same-route detection method according to claim 1, characterized in that, the judging whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires includes: When the number of pseudowires meets the first preset number, determine that there is only a primary route for the service data transmission circuit; When the number of pseudowires meets the second preset number, determine that there are both a primary route and a backup route for the service data transmission circuit, where the second preset number is greater than the first preset number.
4. The service same-route detection method according to claim 1, characterized in that, after the judging whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires, it further includes: When there are both a primary route and a backup route for the service data transmission circuit, perform route segment screening on the primary route and the backup route; Compare each routing segment in the filtered primary route with all routing segments of the filtered backup route in sequence; Perform logical same-route detection on the primary route and the backup route according to the routing segment comparison result.
5. The service same-route detection method according to any one of claims 1 to 4, characterized in that, after performing same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information, it further includes: Obtain the routing segments that are in the same route between the primary route and the backup route corresponding to the service data transmission circuit; Perform network formation judgment on the routing segments; Store the ring network formation identifier or chain network formation identifier corresponding to the routing segments into the same-route hidden danger library according to the network formation judgment result.
6. A service same-route detection device, characterized in that, the service same-route detection device includes: An acquisition module, configured to acquire service data when a service is opened; An operation module, configured to determine the routing information corresponding to the service data transmission circuit according to the service data; An extraction module, configured to determine tunnel information and pseudowire information according to the routing information; A detection module, configured to perform same-route detection on the service data transmission circuit according to the tunnel information and the pseudowire information; The detection module is further configured to extract the number of pseudowires associated with the service from the pseudowire information; judge whether there are a primary route and a backup route for the service data transmission circuit according to the number of pseudowires; when there is only a primary route for the service data transmission circuit, obtain the tunnel routing table associated with the tunnel information; query the protection tunnel of the primary route from the tunnel routing table; perform logical same-route detection on the service data transmission circuit according to the protection tunnel; The detection module is further configured to obtain the external line resource information corresponding to the service data transmission circuit associated with the tunnel information and the pseudowire information; select multiple identical topology segments on the primary route and the backup route corresponding to the service data transmission circuit; filter out target topology segments from the multiple topology segments; determine the optical cable segment corresponding to the target topology segment according to the external line resource information; perform physical same-route detection on the primary route and the backup route according to the optical cable segment.
7. A service same-route detection device, characterized in that, the service same-route detection device includes: a memory, a processor, and a service same-route detection program stored on the memory and executable on the processor, and the service same-route detection program is configured to implement the service same-route detection method according to any one of claims 1 to 5.
8. A storage medium, characterized in that, a service same-route detection program is stored on the storage medium, and when the service same-route detection program is executed by a processor, it implements the service same-route detection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Same-route judgment method and system for PTN services
CN110912818A