Disclosure of Invention
The invention provides a communication fault analysis method and device based on a system calling link and a block chain communication platform, which are used for communicating network communication records among all communication systems, so that the fault problem of system communication can be checked through the calling link in a single communication system, the fault check of each communication system is not required to be carried out manually, the manual operation amount is reduced, and the communication fault analysis efficiency is improved.
The present invention provides the following scheme:
a communication fault analysis method based on a system call link comprises the following steps: taking a plurality of communication systems as block chain nodes to generate a block chain communication platform; each block chain link point in the block chain communication platform shares the network communication record of the node to a block chain of the block chain communication platform; acquiring a network communication record of each block chain node corresponding to system target communication through the block chain; calling system communication information from the network communication record of each block link node corresponding to the system target communication, and generating a target calling link of the system target communication according to each system communication information; analyzing the target calling link, and determining fault information of system target communication according to an analysis result.
In one embodiment, each blockchain link point in the blockchain communication platform shares the network communication record of the node to a blockchain of the blockchain communication platform, including: each block chain node in the block chain communication platform carries out data communication through a communication component provided by the block chain communication platform; and the communication assembly stores the logs of the network link through which the data flow in the data communication process of each block link point in the block chain communication platform, packs the stored logs and shares the packed logs to the block chain of the block chain communication platform.
In one embodiment, the communication module stores a log of network links, through which data flows during data communication, of each blockchain link point in the blockchain communication platform, and the log includes: the communication component monitors whether data communication is carried out between each block chain node in the block chain communication platform; when data communication is carried out, node information of each block chain node flowing through data and communication information of the data communication are obtained; and generating a network link log according to the node information and the communication information, and storing the network link log.
In one embodiment, after the generating the target call link of the system target communication according to each piece of system communication information, the method further includes: and packaging the target call link and then putting the target call link into a block chain of the block chain communication platform.
In one embodiment, after the step of packaging the target call link and then placing the packaged target call link into a blockchain of the blockchain communication platform, the method further includes: and controlling each block link point in the block chain communication platform to have equal operation authority to all network communication records and the target call link in the block chain.
In one embodiment, after the controlling that each of the blockchain link points in the blockchain communication platform has equal operation authority to all of the network communication records in the blockchain and the target call link, the method further includes: analyzing the communication condition of each communicated block link node in the target calling link by any block link point in the block link communication platform, and judging whether the communication of each communicated block link node is wrong or not according to the communication condition; and if the communication of any communication block chain link point has errors, packaging error information and then putting the error information into the block chain, and performing error reminding on each block chain node corresponding to the target call link according to the error information.
In one embodiment, after performing error reminding on each blockchain node corresponding to the target call link according to the error information, the method further includes: and any block link point corresponding to the target calling link corrects the communication condition of the block link point with the communication error according to the error information, modifies the target calling link according to the corrected information, packs the modified target calling link and then puts the modified target calling link into the block chain.
A block chain communication platform comprises a plurality of communication systems which are communicated with each other, wherein each communication system is used as a block chain node of the block chain communication platform; the block chain communication platform also comprises a communication component shared by the block chain link points; and the communication systems carry out data communication through the communication components, pack network communication records in a data communication process into blocks through the communication components, and share the blocks into a block chain of the block chain communication platform.
In one embodiment, the communication component is further configured to monitor whether data communication is performed between each blockchain node in the blockchain communication platform; when data communication is carried out, node information of each block chain node flowing through data and communication information of the data communication are obtained; and generating a network link log according to the node information and the communication information, and storing the network link log.
A communication fault analysis device based on a system call link comprises: the first generation module is used for generating a block chain communication platform by taking a plurality of communication systems as block chain nodes; the sharing module is used for sharing the network communication record of the node to the block chain of the block chain communication platform by each block chain node in the block chain communication platform; the acquisition module is used for acquiring the network communication record of each block chain node corresponding to the system target communication through the block chain; the second generation module is used for calling system communication information from the network communication record of each block link node corresponding to the system target communication and generating a target calling link of the system target communication according to each system communication information; and the analysis module is used for analyzing the target calling link and determining the fault information of the system target communication according to the analysis result.
The communication fault analysis method based on the system call link provided by the above embodiment uses a plurality of communication systems as a block link node to form a block link communication platform. Each communication system shares the network communication record of the system to the block chain of the platform, so that each communication system in the platform can obtain the network communication record of other communication systems. When the network communication of the system has a fault problem, in a single communication system, the network communication record of each communication system in the system target communication with the fault problem can be obtained through a block chain in a platform, so that the system communication information of each system is called from the network communication record of each communication system, and a target calling link is generated. Furthermore, the fault problem in system target communication can be determined by analyzing the target calling link, and each system participating in system target communication does not need to be manually logged in one by one so as to check the network communication record of each system to analyze the communication fault problem, thereby reducing the manual operation amount and improving the efficiency of communication fault analysis.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
It will be understood by those skilled in the art that, unless otherwise specified, the singular forms "a", "an", "the" and "the" may include the plural forms as well, and the "first" and "second" used herein are only used to distinguish one technical feature from another and are not intended to limit the order, number, etc. of the technical features. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention provides a communication fault analysis method based on a system call link. The communication fault analysis method based on the system call link is applied to the block chain communication platform to generate the system call link, so that the network communication record of each communication system is obtained by analyzing the system call link, the fault problem of system target communication is finally determined, manual logging in each system one by one is not needed to check the network communication record of each system, the manual operation amount is reduced, and the efficiency of communication fault analysis is improved. The following explains the block chain communication platform of the present invention:
as shown in fig. 1, the block chain communication platform includes a plurality ofcommunication systems 100 communicating with each other, and eachcommunication system 100 is used as a block chain node of the block chain communication platform to perform data communication between systems through ablock chain 200. The block chain communication platform is a system platform which is built by using a block chain technology and is communicated with each other, and each block chain node participates in the platform through mining and trading in the block chain technology to become a block chain node in the platform. The blockchain node is a computer in a blockchain network, such as a mobile phone, a mining machine, a desktop computer, a server and the like. That is, thecommunication system 100 of the present invention may be a communication system including a server, a desktop, and the like.
The blockchain communication platform also comprises a communication component shared by the blockchain nodes. The plurality ofcommunication systems 100 perform data communication via the communication components, and package network communication records of the data communication process into blocks via the communication components, and share the blocks into theblock chain 200 of the block chain communication platform. Thus, eachcommunication system 100 in the platform, acting as a blockchain node, can obtain network communication records of the blocks from theblockchain 200.
Further, the communication component is also configured to monitor whether data communication is performed between each blockchain node (the communication system 100) in the blockchain communication platform. When data communication is carried out, node information of each block link node flowing through data and communication information of the data communication are obtained, a network link log is generated according to the node information and the communication information, and the network link log is stored.
Therefore, the present invention creates a blockchain communication platform with blockchain technology as the bottom layer, and eachcommunication system 100 for communication participates in the platform in the form of a blockchain node. Each block link point has equal authority to the block information of theblock chain 200 and has all the communication record copies of the platform. When each block link point communicates, data transmission is carried out through the communication assembly provided by the platform. The communication component stores the logs of the network link through which the data flow in the communication calling process, and then packs the logs into blocks to be placed in theblock chain 200, so that the trace of the network communication on the platform is reserved, and the problem can be checked and optimized subsequently.
Based on the block chain communication platform, the invention also provides a communication fault analysis method based on the system call link. In an embodiment, as shown in fig. 2, the method for analyzing a communication fault based on a system call link includes the following steps:
and S100, taking a plurality of communication systems as a block chain node to generate a block chain communication platform.
In this embodiment, each communication system participating in network communication is used as a blockchain node of a blockchain communication platform. In the blockchain communication platform, each communication system can perform data communication through a blockchain technology and can also perform data communication through a non-blockchain technology. Specifically, the communication system as a block chain node packs the communicated data into blocks and puts the blocks into a block chain, so as to communicate with other communication systems of the block chain communication platform through a block chain technology. At this time, the communication system serves as a blockchain node, and performs data communication with other communication systems in the platform using a blockchain technique. The communication system may also communicate data in non-blockchain technology with other communication systems in the platform via conventional communication protocols, such as HTTP protocol, TCP protocol, etc. Data communication in a blockchain technology or data communication in a non-blockchain technology depends on the communication method selected by thecommunication system 100.
S200, each block chain link point in the block chain communication platform shares the network communication record of the node to a block chain of the block chain communication platform.
In this embodiment, when each block link point performs data communication by using the block chain technique, network communication records of the node are packed into blocks and shared in theblock chain 200. Any blockchain node of the blockchain communication platform can obtain network communication records of other blockchain nodes from theblockchain 200. That is, each communication system can obtain the network communication record of other communication systems through theblockchain 200. Wherein, the network communication record contains the network communication log of the block link point (communication system). The network communication log comprises sending information sent outwards, receiving information sent from the outside and information in the sending and receiving processes.
In one embodiment, as shown in fig. 3, step S200 includes:
and S210, each block chain node in the block chain communication platform carries out data communication through a communication component provided by the block chain communication platform.
And S220, the communication assembly stores the logs of the network link through which the data flow in the data communication process of each block link point in the block chain communication platform, packs the stored logs and shares the logs to the block chain of the block chain communication platform.
In this embodiment, eachcommunication system 100 performs data transmission via a communication component provided by the platform. The communication component stores the log of the network link through which the data flow in the calling process, and then packs the log into blocks to be placed in theblock chain 200.
Specifically, step S220 includes: the communication component monitors whether data communication is carried out between each block chain node in the block chain communication platform; when data communication is carried out, node information of each block chain node flowing through data and communication information of the data communication are obtained; and generating a network link log according to the node information and the communication information, and storing the network link log.
S300, acquiring the network communication record of each block chain node corresponding to the system target communication through the block chain.
A communication request initiated by one communication system in a block chain communication platform may involve the cooperative operation of one or several dozen communication systems in the platform. In this embodiment, any communication system screens the system target communication in the system and scans the communication systems participating in the communication connection of the system target communication. The arbitrary communication system is used as a block link point in the block chain communication platform, and network communication records of other communication systems participating in communication connection of system target communication can be obtained through the block chain of the platform. The method for screening system target communication in the system by any communication system can be as follows: when the system receives the operation that a user (such as a system operation and maintenance person) selects the system communication, the system object communication is screened out from the system according to the user operation. In addition, the manner of scanning out each communication system participating in the communication connection of the system target communication may be: after the system determines the system target communication, each communication system participating in the communication connection of the system target communication is scanned from the historical communication record information of the system.
S400, system communication information is called from the network communication record of each block link node corresponding to the system target communication, and a target calling link of the system target communication is generated according to each system communication information.
In this embodiment, theblockchain 200 includes network communication records of all blockchain nodes of the platform, and network communication records of different blockchain nodes are linked together, so that a complete call link for system network communication can be obtained. Therefore, when the operation and maintenance personnel determines the system target communication in any communication system in the platform, the network communication record of each communication system participating in communication connection in the communication process of the system target communication can be obtained, the system communication information is called from each communication system, and the target calling link of the system target communication can be obtained.
In one embodiment, the network communication record includes system communication information corresponding to the blockchain node (communication system). The network communication log in the system communication information comprises sending information sent outside and receiving information sent outside by the block link point, and information in the sending and receiving processes during network communication. And further, generating the target call link according to the sending information sent to the outside and the receiving information sent from the outside in each system communication information and the information in the sending and receiving processes in network communication.
And S500, analyzing the target calling link, and determining fault information of system target communication according to an analysis result.
In this embodiment, after any communication system in the platform obtains a target call link for system target communication, the target call link is analyzed. The target calling link comprises network communication records of all communication systems participating in communication connection of system target communication and communication data information among all communication systems, the network communication records of all communication systems and the communication data information among all communication systems are analyzed to obtain an analysis result, and finally fault information of the system target communication is determined according to the analysis result.
A specific implementation scenario is given below in conjunction with the above steps S100 to S500:
the communication systems for multiple communications include a communication system A, a communication system B, a communication system C, a communication system D and a communication system E. And respectively taking the communication system A, the communication system B, the communication system C, the communication system D and the communication system E as block chain nodes, and obtaining a block chain communication platform comprising the communication system A, the communication system B, the communication system C, the communication system D and the communication system E through a block chain technology. The communication system A, the communication system B, the communication system C, the communication system D and the communication system E respectively share the network communication records of the system to a block chain of a block chain communication platform. When any communication system in the platform needs to determine whether a system communication is in fault, the reason of the fault and the node in fault, a detection object, namely the system target communication is determined, and each communication system participating in the communication connection of the system target communication is determined in a scanning mode. Assuming that any communication system in the platform is a communication system a, each communication system participating in the communication connection of the target communication of the system includes a communication system a, a communication system B and a communication system D. At this time, the communication system a is used as a block link point of the platform, and network communication records of the communication system B and the communication system D can be obtained through the block link of the platform, so that a target call link of system target communication is generated according to the network communication records of the communication system B and the communication system D and the network communication record of the system. And finally, determining fault information of system target communication according to an analysis result by analyzing the target calling link. For example, it can be determined that the communication system D is in a failure at the node, and the failure is caused by the fact that the communication system D cannot transmit and receive data while participating in the system object communication. Therefore, communication fault analysis in the communication system B and the communication system D does not need to be carried out manually, the manual operation amount is reduced, and the working efficiency of the communication fault analysis is improved.
The communication fault analysis method based on the system call link provided by the above embodiment uses a plurality of communication systems as a block link node to form a block link communication platform. Each communication system shares the network communication record of the system to the block chain of the platform, so that each communication system in the platform can obtain the network communication record of other communication systems. When the network communication of the system has a fault problem, in a single communication system, the network communication record of each communication system in the system target communication with the fault problem can be obtained through a block chain in a platform, so that the system communication information of each system is called from the network communication record of each communication system, and a target calling link is generated. Furthermore, the fault problem in system target communication can be determined by analyzing the target calling link, and each system participating in system target communication does not need to be manually logged in one by one so as to check the network communication record of each system to analyze the communication fault problem, thereby reducing the manual operation amount and improving the efficiency of communication fault analysis.
In an embodiment, as shown in fig. 4, after step S400, the method further includes:
s600, packaging the target call link and then putting the packaged target call link into a block chain of the block chain communication platform.
In this embodiment, after anycommunication system 100 in the blockchain communication platform generates a target call link according to the network communication record of each blockchain node corresponding to the target call link, the target call link is packaged into a block and placed in theblockchain 200. Anycommunication system 100 in the platform can directly obtain the target call link from theblock chain 200 as a block chain node, so that whether the call link of the corresponding network communication has a problem can be directly inquired according to the target call link, the target call link does not need to be regenerated again according to the network communication record of the corresponding block chain node, and the inquiry workload is reduced.
Further, as shown in fig. 5, after step S600, the method further includes:
s700, each block chain link point in the block chain communication platform is controlled to have equal operation authority to all network communication records and the target calling link in the block chain.
After each communication system 100 (i.e., the blockchain node) shares the network communication record of the system to the platform blockchain, it is controlled that each blockchain node has equal operation authority over the network communication record and the target call link shared by all the communication systems in the blockchain. The method includes the authority to add network communication records to theblockchain 200, the authority to acquire existing network communication records in theblockchain 200, and the operation authority to acquire a target call link in theblockchain 200. Each block link point has equal operation authority for all network communication records in theblock chain 200, so that eachcommunication system 100 can have access authority for network communication records generated by mutual communication ofother communication systems 100 in the platform, and eachcommunication system 100 can obtain a target call link generated by communication in the platform, thereby ensuring the public transparency of the information of the whole block chain communication platform.
In an embodiment, after step S700, the method further includes:
and S810, analyzing the communication condition of each communicated block chain node in the target calling link by any block chain node in the block chain communication platform, and judging whether the communication of each communicated block chain node is wrong or not according to the communication condition.
And S820, if the communication of any one communicated block chain link point has an error, packaging error information and then putting the error information into the block chain, and performing error reminding on each block chain node corresponding to the target calling link according to the error information.
In this embodiment, any one of the block link points may obtain the target call link, and may also obtain, from theblock chain 200, the network communication record uploaded by each block link point corresponding to the target call link. And any one of the block link nodes can analyze the communication condition of each communicated block link node in the target calling link, and judge whether the communication of each communicated block link node is wrong or not according to the communication condition. If yes, the error information is packaged and put into theblock chain 200, and broadcast is carried out on the platform to inform each block chain node corresponding to the target call link. Therefore, the block chain link point corresponding to the target calling link can directly obtain error information, communication analysis on the target calling link is not needed, and repeated work is avoided.
Further, after step S820, the method further includes:
and S900, correcting the communication condition of any block link point corresponding to the target calling link according to the error information, modifying the target calling link according to the corrected information, packaging the modified target calling link, and putting the packaged modified target calling link into the block chain.
And any block chain node in the block chain communication platform, including a block chain node corresponding to the target calling link and block chain link points corresponding to other non-target calling links, can correct the communication condition of the block chain link points with communication errors according to the error information, modify the target calling link according to the corrected information, pack the modified target calling link and put the packed modified target calling link into the block chain. Therefore, the limitation of operation for correcting the communication system with errors in communication conditions can be broken, operation and maintenance personnel can finish the correction of the communication errors without operating on the fixed communication system, and the operation flexibility is improved.
The invention also provides a communication fault analysis device based on the system call link. In an embodiment, as shown in fig. 6, the generating device of the system call link includes afirst generating module 10, asharing module 20, an obtainingmodule 30, asecond generating module 40, and an analyzingmodule 50.
Thefirst generating module 10 is configured to use a plurality of communication systems as a blockchain node to generate a blockchain communication platform. In this embodiment, each communication system participating in network communication is used as a blockchain node of a blockchain communication platform. In the blockchain communication platform, each communication system can perform data communication through a blockchain technology and can also perform data communication through a non-blockchain technology. Specifically, the communication system as a block chain node packs the communicated data into blocks and puts the blocks into a block chain, so as to communicate with other communication systems of the block chain communication platform through a block chain technology. At this time, the communication system serves as a blockchain node, and performs data communication with other communication systems in the platform using a blockchain technique. The communication system may also communicate data in non-blockchain technology with other communication systems in the platform via conventional communication protocols, such as HTTP protocol, TCP protocol, etc. Data communication in a blockchain technology or data communication in a non-blockchain technology depends on the communication method selected by thecommunication system 100.
Thesharing module 20 is used for each blockchain link point in the blockchain communication platform to share the network communication record of the node to the blockchain of the blockchain communication platform. In this embodiment, when each block link point performs data communication by using the block chain technology, the network communication records of the node are packed into blocks and shared in theblock chain 200. Any blockchain node of the blockchain communication platform can obtain network communication records of other blockchain nodes from theblockchain 200. That is, each communication system can obtain the network communication record of other communication systems through theblockchain 200. Wherein, the network communication record contains the network communication log of the block link point (communication system). The network communication log comprises sending information sent outwards, receiving information sent from the outside and information in the sending and receiving processes.
The obtainingmodule 30 is configured to obtain, through the blockchain, a network communication record of each blockchain node corresponding to system target communication. A communication request initiated by one communication system in a block chain communication platform may involve the cooperative operation of one or several dozen communication systems in the platform. In this embodiment, any communication system screens the system target communication in the system and scans the communication systems participating in the communication connection of the system target communication. The arbitrary communication system is used as a block link point in the block chain communication platform, and network communication records of other communication systems participating in communication connection of system target communication can be obtained through the block chain of the platform. The method for screening system target communication in the system by any communication system can be as follows: when the system receives a system communication operation selected by a user (such as a system operation and maintenance person), the system object communication is screened out from the system according to the user operation. In addition, the manner of scanning out each communication system participating in the communication connection of the system target communication may be: after the system determines the system target communication, each communication system participating in the communication connection of the system target communication is scanned from the historical communication record information of the system.
Thesecond generating module 40 is configured to retrieve system communication information from the network communication record of each block link node corresponding to the system target communication, and generate a target call link of the system target communication according to each system communication information. In this embodiment, theblockchain 200 includes network communication records of all blockchain nodes of the platform, and network communication records of different blockchain nodes are linked together, so that a complete call link for system network communication can be obtained. Therefore, when the operation and maintenance personnel determines the system target communication in any communication system in the platform, the network communication record of each communication system participating in communication connection in the communication process of the system target communication can be obtained, the system communication information is called from each communication system, and the target calling link of the system target communication can be obtained.
Theanalysis module 50 is configured to analyze the target call link, and determine fault information of the system target communication according to an analysis result. In this embodiment, after any communication system in the platform obtains a target call link for system target communication, the target call link is analyzed. The target calling link comprises network communication records of all communication systems participating in communication connection of system target communication and communication data information among all communication systems, the network communication records of all communication systems and the communication data information among all communication systems are analyzed to obtain an analysis result, and finally fault information of the system target communication is determined according to the analysis result.
In other embodiments, each module in the communication fault analysis apparatus based on the system call link provided by the present invention is further used for executing operations executed corresponding to each step in the communication fault analysis method based on the system call link provided by the present invention, and a detailed description thereof is omitted here
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and embellishments can be made without departing from the principle of the present invention, and these should also be construed as the scope of the present invention.
It should be understood that each functional unit in the embodiments of the present invention may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.