Method and device for checking independence of security control service channel based on two-dimensional matrix
Patent Information
- Application Number
- CN202310774321.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-06-28
AI Technical Summary
[0004]有鉴于此,本发明提供了一种基于二维矩阵的安控业务通道独立性校验方法及装置,用以解决现有技术中人工校验方法严重依赖于运维人员的经验和能力,需资深运维人员在深刻理解安控业务通道方式安排策略和通信网络现状的基础上开展
[0046]本发明公开了一种基于二维矩阵的安控业务通道独立性校验方法及装置,包括:获取当前主用安控系统和备用安控系统,基于主用安控系统中的安控业务通道和光缆路由构建初始主用安控矩阵;基于初始主用安控矩阵,构建备用安控矩阵,同时对初始主用矩阵进行更新,得到主用安控矩阵;将主用安控矩阵和备用安控矩阵进行叉乘运算,得到校验矩阵;遍历校验矩阵中的各个元素,基于各个元素判断当前安控业务通道中是否存在光缆路由不独立的情况。上述过程,实现了对安控业务通道的独立性进行校验,不在需要依靠运维人员的经验和能力,在保证系统稳定运行,提升安控业务通道方式安排准确率的同时,大大减轻了运维工作量。
Smart Images

Figure CN116743249B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for verifying the independence of security control business channels based on a two-dimensional matrix. Background Technology
[0002] Based on the principle of arranging the power grid security control business channels, the existing manual verification method for sampling security control business channels is used to verify the independence of optical cables and equipment in the security control business channels.
[0003] Manual verification methods heavily rely on the experience and skills of operations and maintenance (O&M) personnel, requiring senior O&M staff to conduct the verification based on a deep understanding of the security control service channel arrangement strategy and the current status of the communication network. The annual independence verification of security control service channels consumes significant human and material resources. Especially during communication system maintenance or failures, and in response to extreme weather conditions and major events, the cost and difficulty of verifying the independence of security control service channels increase exponentially. Summary of the Invention
[0004] In view of this, the present invention provides a method and apparatus for verifying the independence of security control service channels based on a two-dimensional matrix. This addresses the problem that existing manual verification methods heavily rely on the experience and capabilities of maintenance personnel, requiring experienced personnel to have a deep understanding of the security control service channel arrangement strategy and the current state of the communication network. The annual security control service channel independence verification work consumes significant human and material resources. Especially during communication system maintenance or failures, and in situations such as extreme weather and major events, the cost and difficulty of verifying the independence of security control service channels increase exponentially. The specific solution is as follows:
[0005] A method for verifying the independence of security control service channels based on a two-dimensional matrix includes:
[0006] Obtain the current primary security control system and the backup security control system, wherein the primary security control system and the backup security control system contain the same number of master stations, security control service channels, relay stations and optical cable routes;
[0007] An initial primary security control matrix is constructed based on the security control service channels and optical cable routes in the primary security control system.
[0008] Based on the initial primary security control matrix, a backup security control matrix is constructed, and the initial primary matrix is updated to obtain the primary security control matrix. The backup security control matrix and the primary security control matrix have the same identifier for the same optical cable segment of the optical cable route, and the elements corresponding to different optical cable segments have fixed values.
[0009] Perform a cross product operation on the primary security control matrix and the backup security control matrix to obtain the verification matrix;
[0010] Traverse each element in the verification matrix and determine, based on each element, whether there is a case where the optical cable routing is not independent in the current security control service channel.
[0011] Optionally, the above method involves constructing an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system, including:
[0012] The first number of the first security control service channels in the primary security control system and the second number of each first optical cable segment in the first optical cable route are obtained respectively.
[0013] Construct an initial primary security control matrix with the same dimensions as the first quantity and the second quantity, wherein each element in the initial primary security control matrix has the same fixed value, and each element represents each of the first optical cable segments.
[0014] Optionally, the above method involves constructing a backup security control matrix based on the initial primary security control matrix, while simultaneously updating the initial primary matrix to obtain the primary security control matrix, including:
[0015] Traverse each second optical cable segment of the second optical cable route in the backup security control system, and compare each second optical cable segment with each first optical cable segment to determine whether there are identical optical cable segments.
[0016] In each of the second optical fiber segments, the optical fiber segments that are the same as those in each of the first optical fiber segments are replaced with the corresponding identical identifiers in the initial primary security control matrix and the backup security control matrix, respectively. The initial primary security control matrix is then updated to the primary security control matrix. The identifiers are used to distinguish different optical fiber segments. The elements corresponding to the remaining second optical fiber segments in the backup security control matrix are defined as the same fixed values. The primary security control matrix and the backup security control matrix have the same dimensions.
[0017] Optionally, the above method involves comparing each second optical cable segment with each of the first optical cable segments to determine whether there are any identical optical cable segments, including:
[0018] Obtain the first optical cable identifier for each of the first optical cable segments;
[0019] Obtain the second optical cable identifier for each second optical cable segment, wherein the first optical cable identifier and the second optical cable identifier are used to distinguish different optical cable segments;
[0020] Each second optical cable identifier is compared with each first optical cable identifier, and optical cable segments with the same identifier are identified as the same optical cable segments.
[0021] Optionally, the above method involves traversing each element of the verification matrix and determining, based on each element, whether there is a case of non-independent optical cable routing in the current security control service channel, including:
[0022] Iterate through each element in the verification matrix and determine whether there are multiple target elements with the same identifier in each element;
[0023] If so, it is determined that the target element is located in a situation where the optical cable route is not independent in the current security control service channel;
[0024] Conversely, it is determined that there is no situation where the optical cable route is not independent in the current security control service channel where the target element is located.
[0025] A security control service channel independence verification device based on a two-dimensional matrix includes:
[0026] The acquisition module is used to acquire the current primary security control system and the backup security control system, wherein the primary security control system and the backup security control system contain the same number of master stations, security control service channels, relay stations and optical cable routes;
[0027] The first construction module is used to construct an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system.
[0028] The second construction module is used to construct a backup security control matrix based on the initial primary security control matrix, and update the initial primary matrix to obtain the primary security control matrix. The backup security control matrix and the primary security control matrix have the same identifier for the elements corresponding to the same optical cable segment of the optical cable route, and the elements corresponding to different optical cable segments have fixed values.
[0029] The calculation module is used to perform a cross product operation on the primary security control matrix and the backup security control matrix to obtain a verification matrix;
[0030] The judgment module is used to traverse each element in the verification matrix and determine whether there is a case of non-independent optical cable routing in the current security control service channel based on each element.
[0031] Optionally, in the aforementioned apparatus, the first building module includes:
[0032] The acquisition unit is used to acquire the first number of the first security control service channels in the primary security control system and the second number of each first optical cable segment in the first optical cable route, respectively.
[0033] A construction unit is used to construct an initial primary security control matrix with the same dimensions as the first quantity and the second quantity, wherein each element in the initial primary security control matrix has the same fixed value, and each element represents each of the first optical fiber segments.
[0034] Optionally, in the aforementioned apparatus, the second building module includes:
[0035] The first judgment unit is used to traverse each second optical cable segment of the second optical cable route in the backup security control system, compare each second optical cable segment with each first optical cable segment, and determine whether there are identical optical cable segments.
[0036] The replacement and update unit is used to replace the optical cable segments in each of the second optical cable segments that are the same as those in each of the first optical cable segments with the corresponding identical identifiers in the initial primary security control matrix and the backup security control matrix, and to update the initial primary security control matrix to the primary security control matrix. The identifier is used to distinguish different optical cable segments. The elements corresponding to the remaining second optical cable segments in the backup security control matrix are defined as the same fixed values. The primary security control matrix and the backup security control matrix have the same dimension.
[0037] Optionally, in the aforementioned apparatus, the determining unit includes:
[0038] The first acquisition subunit is used to acquire the first optical cable identifier of each first optical cable segment;
[0039] The second acquisition subunit is used to acquire the second optical cable identifier of each second optical cable segment, wherein the first optical cable identifier and the second optical cable identifier are used to distinguish different optical cable segments;
[0040] The determination subunit is used to compare each second optical cable identifier with each first optical cable identifier, and determine the corresponding optical cable segments with the same optical cable identifier as the same optical cable segment.
[0041] Optionally, in the aforementioned apparatus, the determining module includes:
[0042] The second judgment unit is used to traverse each element in the verification matrix and determine whether there are target elements containing multiple identical identifiers in each element.
[0043] The first determination unit is used to determine, if yes, that the target element is located in the current security control service channel where the optical cable route is not independent.
[0044] The second determination unit is used to, conversely, determine that there is no situation where the optical cable route is not independent in the current security control service channel where the target element is located.
[0045] Compared with the prior art, the present invention has the following advantages:
[0046] This invention discloses a method and apparatus for verifying the independence of security control service channels based on a two-dimensional matrix. The method includes: acquiring the current primary security control system and backup security control system; constructing an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system; constructing a backup security control matrix based on the initial primary security control matrix, while simultaneously updating the initial primary matrix to obtain the primary security control matrix; performing a cross product operation on the primary and backup security control matrices to obtain a verification matrix; and traversing each element in the verification matrix to determine whether there are any cases of non-independent optical cable routes in the current security control service channels. This process enables the verification of the independence of security control service channels without relying on the experience and capabilities of maintenance personnel. While ensuring stable system operation and improving the accuracy of security control service channel arrangement, it significantly reduces the workload of maintenance personnel. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a flowchart of a security control service channel independence verification method based on a two-dimensional matrix, as disclosed in an embodiment of the present invention.
[0049] Figure 2 This is a schematic diagram of a primary security control system and a backup security control system disclosed in an embodiment of the present invention;
[0050] Figure 3 This is a structural block diagram of a security control service channel independence verification device based on a two-dimensional matrix, as disclosed in an embodiment of the present invention. Detailed Implementation
[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0052] This invention discloses a method and device for verifying the independence of security control service channels based on a two-dimensional matrix. It is applied to the verification of the independence of security control service channels. Existing technologies employ manual verification, which heavily relies on the experience and capabilities of maintenance personnel. Experienced maintenance personnel must have a deep understanding of the security control service channel arrangement strategy and the current state of the communication network to conduct the verification. The annual security control service channel independence verification work consumes significant human and material resources. Especially during communication system maintenance or failures, and in response to extreme weather and major events, the cost and difficulty of verifying the independence of security control service channels increase exponentially. To address the difficulties of manual verification of security control service channel independence, this invention proposes an automatic verification method for the independence of security control service channels, based on the requirements of the security control service channel arrangement strategy. This method can verify the independence of optical cables and equipment in security control service channels, ensuring the stable operation of the security control system, improving the accuracy of channel arrangement, significantly reducing the workload of maintenance personnel, and increasing their work efficiency. The execution flow of the method is as follows: Figure 1 As shown, the steps include:
[0053] S101. Obtain the current primary security control system and the backup security control system, wherein the primary security control system and the backup security control system contain the same number of master stations, security control service channels, relay stations and optical cable routes;
[0054] In this embodiment of the invention, to ensure the normal operation of the security control service channel, two security control systems are typically used: a primary security control system and a backup security control system. Both systems are equipped with dual security control devices, requiring that the optical cable routes of the transmission channels carried by the two security control devices be completely independent. Preferably, in the event of an anomaly in the primary security control system, the backup security control system is activated. Both the primary and backup security control systems contain the same number of master stations, security control service channels, relay stations, and optical cable routes.
[0055] Preferably, the primary or backup security control system generally consists of one main station, multiple substations, and execution stations. In this embodiment, a simple single-main-station, three-substation star topology security control system is used as an example. Security main station A requires communication channels to transmit information such as handover commands to security substations B, C, and D, necessitating the opening of three security control service channels for each of the two systems AB, AC, and AD. For ease of explanation, it is assumed that AB, AC, and AD all use optical cable segments with two optical repeater stations and three optical cable routes.
[0056] S102. Construct an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system;
[0057] In this embodiment of the invention, the first number of the first security control service channels in the primary security control system and the second number of each first optical cable segment in the first optical cable route are obtained respectively. In this embodiment, both the first number and the second number are 3. The optical cable route of the service channels in the primary security control system is defined as an N*M initial primary security control matrix, in which N=3 and M=3. Therefore, the primary security control system can be abstracted as a 3*3 initial primary security control matrix. Assuming that the initial primary security control matrix is H1, all elements of H1 are initialized to the same fixed value, preferably 1 in this embodiment. Each element in H1 represents each first optical cable segment in the primary security control system, and each row represents a security control service channel. H1 is shown below.
[0058]
[0059] S103. Based on the initial primary security control matrix, construct a backup security control matrix and update the initial primary matrix to obtain the primary security control matrix. The backup security control matrix and the primary security control matrix have the same identifier for the same optical cable segment of the optical cable route, and the elements corresponding to different optical cable segments have fixed values.
[0060] In this embodiment of the invention, each second optical cable segment of the second optical cable route in the backup security control system is traversed, and each second optical cable segment is compared with each first optical cable segment to determine whether there are identical optical cable segments. The specific determination process is as follows: obtaining the first optical cable identifier of each first optical cable segment; obtaining the second optical cable identifier of each second optical cable segment, wherein the first optical cable identifier and the second optical cable identifier are used to distinguish different optical cable segments. In this embodiment of the invention, the specific existence form of the first optical cable identifier and the second optical cable identifier is not limited. Each second optical cable identifier is compared with each first optical cable identifier, and corresponding optical cable segments with the same optical cable identifier are determined to be identical optical cable segments.
[0061] For the same optical cable segments in the primary security control matrix and the backup security control matrix, they are replaced with corresponding identical identifiers in the initial primary security control matrix and the backup security control matrix, respectively. In this embodiment of the invention, the specific form of the identifier is not limited. Preferably, the identifier can be i, j, k, etc. The specific processing procedure is as follows:
[0062] If a second optical cable segment is found to have the same position as a first optical cable segment in the primary security control matrix, then the corresponding element of the optical cable segment in the backup security control matrix is defined as i, and the corresponding bit element in the primary security control matrix is modified to i.
[0063] Otherwise, the element corresponding to the optical cable segment is defined as 1 in the backup security control matrix, and the primary control matrix remains unchanged.
[0064] By analogy, the same optical cable segments i, j, k... in the two sets of security control matrices are obtained. Thus, the primary security control matrix H1 and the backup security control matrix H2 are obtained respectively.
[0065] S104. Perform a cross product operation on the primary security control matrix and the backup security control matrix to obtain a verification matrix;
[0066] In this embodiment of the invention, a cross product operation is performed between the transpose of the primary security control matrix and the backup security control matrix, that is, all channels in the primary and backup security control systems are compared one by one to obtain the verification matrix Hc.
[0067] S105. Traverse each element in the verification matrix and determine, based on each element, whether there is a situation where the optical cable routing is not independent in the current security control service channel.
[0068] In this embodiment of the invention, based on the data of elements i, j, k... of the verification matrix and their positions, the specific location information of the non-independent optical cable segments of the security control service channels of the primary and backup security control systems can be obtained, thereby realizing automatic verification of the independence of the optical cables in the security control system channels. If the calculation result of a certain element contains abnormal data, that is, the bit contains multiple i, multiple j, or multiple k... (e.g., i2, 2j, 3k, etc.), it indicates that the security control service channel where the element is located has a non-independent optical cable route; otherwise, the optical cable route of the security control service channel where the element is located is independent.
[0069] This invention discloses a method for verifying the independence of security control service channels based on a two-dimensional matrix, comprising: acquiring the current primary security control system and backup security control system; constructing an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system; constructing a backup security control matrix based on the initial primary security control matrix, while simultaneously updating the initial primary matrix to obtain the primary security control matrix; performing a cross product operation on the primary and backup security control matrices to obtain a verification matrix; traversing each element in the verification matrix and determining, based on each element, whether there is a case where the optical cable routes in the current security control service channel are not independent. The above process enables the verification of the independence of security control service channels without relying on the experience and capabilities of maintenance personnel. While ensuring stable system operation and improving the accuracy of security control service channel arrangement, it significantly reduces the workload of maintenance personnel.
[0070] In this embodiment of the invention, an example is given based on the above method. Assume the schematic diagrams of the primary security control system and the backup security control system are as follows: Figure 2As shown, for both the primary security control system and the backup security control system, there is a need for communication channels between the primary security control station A and the security control substations B, C, and D to transmit information such as switchover commands. Therefore, three security control service channels need to be opened for each of AB, AC, and AD. For ease of explanation, it is assumed that AB, AC, and AD all use optical cable segments with two optical repeater stations and three optical cable routes.
[0071] Assume that the optical cable segment A1 between AB in the primary security control system is the same as the optical cable segment C5 between AC in the backup security control system, the optical cable segment B1 between AB in the primary security control system is the same as the optical cable segment C6 between AD in the backup security control system, and the optical cable segment B3 between AD in the primary security control system is the same as the optical cable segment A4 between AB in the backup security control system.
[0072] Define the shared optical cable segment between C5 and A1 as i, the shared optical cable segment between C6 and B1 as j, and the shared optical cable segment between A4 and B3 as k. Based on the traversal results, the backup security control matrix is as follows:
[0073]
[0074] The revised primary security control matrix is as follows:
[0075]
[0076] The primary security control matrix and the transpose of the backup security control matrix are cross-multiplied, that is, all channels in the primary and backup security control systems are compared one by one to obtain the verification matrix Hc.
[0077]
[0078] Furthermore, by analyzing the elements in the verification matrix, and based on the data of the i, j, k... elements and their positions, the specific location information of the non-independent optical fiber sections of the security control service channels of the primary and backup security control systems can be obtained, thus enabling automatic verification of the independence of the optical fiber routes of the security control system channels. If the calculation result of a certain element contains abnormal data, that is, the bit contains multiple i, multiple j, or multiple k... (e.g., i2, 2j, 3k, etc.), it indicates that the security control service channel containing that element has a non-independent optical fiber route.
[0079] For h in the parity check matrix Hc 12 The presence of two 'i's indicates that the optical cable routes of a certain section of channel AB in the primary security control system and channel AC in the backup security control system are not independent; the non-independent optical cable segment is 'i'. 13 The existence of multiple j indicates that the optical cable routes of a certain section of channel AB in the primary security control system and channel AD in the backup security control system are not independent; the non-independent optical cable segment is j; h 31The presence of multiple k indicates that the optical cable routes of a certain section of channel AD in the primary security control system and channel AB in the backup security control system are not independent, and the non-independent optical cable segment is k.
[0080] In this embodiment of the invention, based on a thorough understanding of the characteristics of security control services, and focusing on the essential requirement of channel independence for security control services, a channel independence verification specifically for security control services is conducted for the first time. The concept of two-dimensional matrix operations is introduced to model the security control service channels, enabling simultaneous verification of multiple channels in dual security control systems. This independence verification algorithm is applied to an existing intelligent auxiliary management system, verifying not only the independence of optical cables and equipment in the security control service channels, but also whether the stations along the channel route are shared. The correctness of the algorithm is verified by comparing the results with those of manual verification methods.
[0081] Based on the above-described method for verifying the independence of security control service channels using a two-dimensional matrix, this embodiment of the invention also provides a device for verifying the independence of security control service channels using a two-dimensional matrix. The structural block diagram of the device is shown below. Figure 3 As shown, it includes:
[0082] The module includes a 201 acquisition module, a 202 first construction module, a 203 second construction module, a 204 calculation module, and a 205 judgment module.
[0083] in,
[0084] The acquisition module 201 is used to acquire the current primary security control system and the backup security control system, wherein the primary security control system and the backup security control system contain the same number of master stations, security control service channels, relay stations and optical cable routes;
[0085] The first construction module 202 is used to construct an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system;
[0086] The second construction module 203 is used to construct a backup security control matrix based on the initial primary security control matrix, and update the initial primary matrix to obtain a primary security control matrix. The backup security control matrix and the primary security control matrix have the same identifier for the elements corresponding to the same optical cable segment of the optical cable route, and the elements corresponding to different optical cable segments have fixed values.
[0087] The calculation module 204 is used to perform a cross product operation on the primary security control matrix and the backup security control matrix to obtain a verification matrix.
[0088] The judgment module 205 is used to traverse each element in the verification matrix and determine whether there is a situation where the optical cable route is not independent in the current security control service channel based on each element.
[0089] This invention discloses a security control service channel independence verification device based on a two-dimensional matrix, comprising: acquiring the current primary security control system and backup security control system; constructing an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system; constructing a backup security control matrix based on the initial primary security control matrix, while simultaneously updating the initial primary matrix to obtain the primary security control matrix; performing a cross product operation on the primary and backup security control matrices to obtain a verification matrix; traversing each element in the verification matrix and determining, based on each element, whether there is a situation where the optical cable route in the current security control service channel is not independent. The above process enables the verification of the independence of security control service channels without relying on the experience and capabilities of maintenance personnel. While ensuring stable system operation and improving the accuracy of security control service channel arrangement, it significantly reduces the workload of maintenance personnel.
[0090] In this embodiment of the invention, the first construction module 202 includes:
[0091] Acquire unit 206 and construct unit 207.
[0092] in,
[0093] The acquisition unit 206 is used to acquire the first number of the first security control service channel in the primary security control system and the second number of each first optical cable segment in the first optical cable route, respectively.
[0094] The construction unit 207 is used to construct an initial primary security control matrix with the same dimensions as the first quantity and the second quantity, wherein each element in the initial primary security control matrix has the same fixed value, and each element represents each of the first optical cable segments.
[0095] In this embodiment of the invention, the second construction module 203 includes:
[0096] The first judgment unit 208 and the replacement and update unit 209.
[0097] in,
[0098] The first judgment unit 208 is used to traverse each second optical cable segment of the second optical cable route in the backup security control system, compare each second optical cable segment with each first optical cable segment, and determine whether there are identical optical cable segments.
[0099] The replacement and update unit 209 is used to replace the optical cable segments in each of the second optical cable segments that are the same as those in each of the first optical cable segments with the corresponding identical identifiers in the initial primary security control matrix and the backup security control matrix, and update the initial primary security control matrix to the primary security control matrix. The identifier is used to distinguish different optical cable segments. The elements corresponding to the remaining second optical cable segments in the backup security control matrix are defined as the same fixed values. The primary security control matrix and the backup security control matrix have the same dimension.
[0100] In this embodiment of the invention, the determining unit 208 includes:
[0101] The system comprises a first acquisition subunit 210, a second acquisition subunit 211, and a determination subunit 212.
[0102] in,
[0103] The first acquisition subunit 210 is used to acquire the first optical cable identifier of each first optical cable segment;
[0104] The second acquisition subunit 211 is used to acquire the second optical cable identifier of each second optical cable segment, wherein the first optical cable identifier and the second optical cable identifier are used to distinguish different optical cable segments;
[0105] The determination subunit 212 is used to compare each second optical cable identifier with each first optical cable identifier, and determine the corresponding optical cable segments with the same optical cable identifier as the same optical cable segment.
[0106] In this embodiment of the invention, the judgment module 205 includes:
[0107] The second judgment unit 213, the first judgment unit 214, and the second judgment unit 215.
[0108] in,
[0109] The second judgment unit 213 is used to traverse each element in the verification matrix and determine whether there are target elements containing multiple identical identifiers in each element;
[0110] The first determination unit 214 is used to determine, if yes, that the target element is located in the current security control service channel where the optical cable route is not independent;
[0111] The second determination unit 215 is used to, conversely, determine that there is no situation where the optical cable route is not independent in the current security control service channel where the target element is located.
[0112] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are fundamentally similar to method embodiments, the descriptions are relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0113] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0114] The present invention provides a detailed description of a method and apparatus for verifying the independence of security control business channels based on a two-dimensional matrix. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for verifying the independence of security control service channels based on a two-dimensional matrix, characterized in that, include: Obtain the current primary security control system and the backup security control system, wherein the primary security control system and the backup security control system contain the same number of master stations, security control service channels, relay stations and optical cable routes; The first number of the first security control service channels in the primary security control system and the second number of each first optical cable segment in the first optical cable route are obtained respectively. Construct an initial primary security control matrix with the same number of rows as the first quantity and the same number of columns as the second quantity, wherein each element in the initial primary security control matrix has the same fixed value, each element represents each of the first optical cable segments, and the fixed value is 1; Based on the initial primary security control matrix, a backup security control matrix is constructed; Obtain the first optical cable identifier of each first optical cable segment, and obtain the second optical cable identifier of each second optical cable segment of the second optical cable route in the backup security control system, wherein the first optical cable identifier and the second optical cable identifier are used to distinguish different optical cable segments; Each second optical cable identifier is compared with each first optical cable identifier, and optical cable segments with the same optical cable identifier are determined to be the same optical cable segments. In each of the second optical fiber segments, the optical fiber segments that are the same as those in each of the first optical fiber segments are replaced with the corresponding identical identifiers in the initial primary security control matrix and the backup security control matrix, respectively. The initial primary security control matrix is then updated to the primary security control matrix. The identifier is used to distinguish different optical fiber segments. The elements corresponding to the remaining second optical fiber segments in the backup security control matrix are defined with the same fixed value of 1. The primary security control matrix and the backup security control matrix have the same dimension. The cross product operation is performed on the transposes of the primary security control matrix and the backup security control matrix to obtain the verification matrix; Traverse each element in the verification matrix and determine, based on each element, whether there is a case of non-independent optical cable routing in the current security control service channel.
2. The method according to claim 1, characterized in that, Iterate through each element of the verification matrix and determine, based on each element, whether there is a case of non-independent optical cable routing in the current security control service channel, including: Iterate through each element in the verification matrix and determine whether there are multiple target elements with the same identifier in each element; If so, it is determined that the target element is located in a situation where the optical cable route is not independent in the current security control service channel; Conversely, it is determined that there is no situation where the optical cable route is not independent in the current security control service channel where the target element is located.
3. A security control service channel independence verification device based on a two-dimensional matrix, characterized in that, include: The acquisition module is used to acquire the current primary security control system and the backup security control system, wherein the primary security control system and the backup security control system contain the same number of master stations, security control service channels, relay stations and optical cable routes; The first construction module is used to construct an initial primary security control matrix based on the security control service channels and optical cable routes in the primary security control system. The second construction module is used to construct a backup security control matrix based on the initial primary security control matrix, and simultaneously update the initial primary security control matrix to obtain the primary security control matrix. The backup security control matrix and the primary security control matrix have the same identifier for the elements corresponding to the same optical cable segment of the optical cable route, and the elements corresponding to different optical cable segments have fixed values, and the fixed values are 1. The calculation module is used to perform a cross product operation on the transposes of the primary security control matrix and the backup security control matrix to obtain a verification matrix; The judgment module is used to traverse each element in the verification matrix and determine, based on each element, whether there is a case where the optical cable routing is not independent in the current security control service channel. The first construction module includes: The acquisition unit is used to acquire the first number of the first security control service channels in the primary security control system and the second number of each first optical cable segment in the first optical cable route, respectively. A construction unit is used to construct an initial primary security control matrix with the same number of rows as the first quantity and the same number of columns as the second quantity, wherein each element in the initial primary security control matrix has the same fixed value, each element represents each of the first optical cable segments, and the fixed value is 1; The second building module includes: The first judgment unit is used to traverse each second optical cable segment of the second optical cable route in the backup security control system, compare each second optical cable segment with each first optical cable segment, and determine whether there are identical optical cable segments. The replacement and update unit is used to replace the optical cable segments in each of the second optical cable segments that are the same as those in each of the first optical cable segments with the corresponding identical identifiers in the initial primary security control matrix and the backup security control matrix, and update the initial primary security control matrix to the primary security control matrix. The identifier is used to distinguish different optical cable segments. The elements corresponding to the remaining second optical cable segments in the backup security control matrix are defined as the same fixed values. The primary security control matrix and the backup security control matrix have the same dimension. The first determination unit includes: The first acquisition subunit is used to acquire the first optical cable identifier of each first optical cable segment; The second acquisition subunit is used to acquire the second optical cable identifier of each second optical cable segment, wherein the first optical cable identifier and the second optical cable identifier are used to distinguish different optical cable segments; The determination subunit is used to compare each second optical cable identifier with each first optical cable identifier, and determine the corresponding optical cable segments with the same optical cable identifier as the same optical cable segment.
4. The apparatus according to claim 3, characterized in that, The judgment module includes: The second judgment unit is used to traverse each element in the verification matrix and determine whether there are target elements containing multiple identical identifiers in each element. The first determination unit is used to determine, if yes, that the target element is located in the current security control service channel where the optical cable route is not independent. The second determination unit is used to, conversely, determine that there is no situation where the optical cable route is not independent in the current security control service channel where the target element is located.
Citation Information
Patent Citations
Phased-array antenna calibration method, device, equipment, medium and system
CN115603834A
Power communication network relay protection multi-route verification and planning method
CN116319513A