Data link fault detection method and device, electronic equipment, medium and product

By automatically reading and parsing the link connection information of the target detection equipment in the ship digital platform, the problems of low efficiency and high cost of manual detection in the prior art are solved, and efficient and accurate data link failure detection is achieved.

CN120151243APending Publication Date: 2025-06-13SHANGHAI MERCHANT SHIP DESIGN & RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510288425.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, data link failure detection in the ship digital platform relies on manual detection, resulting in large workload, error-prone, low detection efficiency, and large differences in data link information forms of different models of equipment, increasing the professional requirements and inspection costs of operation and maintenance personnel.

Method used

By establishing a communication connection with the target detection equipment (such as firewalls and switches) in the ship's digital platform, reading the link connection information recorded by it, determining the target device attributes, determining the analysis method based on the preset correspondence relationship, and analyzing the link connection information to determine the faulty link.

Benefits of technology

Without manual participation, the detection of fault links is automated, which reduces detection costs and improves detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151243A_ABST
    Figure CN120151243A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data link fault detection method and device, electronic equipment, a medium and a product. The method comprises the steps of reading link connection information recorded in target detection equipment under the condition of establishing communication connection with the target detection equipment in a ship digital platform; wherein the target detection equipment comprises a firewall and / or a switch; the link connection information is used for reflecting a connection state between an equipment interface of the target detection equipment and ship equipment in at least one ship digital platform; determining a target device attribute of the target detection device, and determining a target analysis mode corresponding to the target device attribute based on a preset corresponding relationship between the device attribute and the analysis mode; and analyzing the link connection information according to the target analysis mode, and determining a fault link in target data links associated with the target detection equipment based on the analyzed link connection information and a preset corresponding relationship between the equipment interface and the data links.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of data processing, and in particular, to a method, device, electronic device, medium, and product for detecting data link failures. Background Art

[0002] With the rapid development of information technology and the increasing demand of the shipping industry for efficient, intelligent, and green operations, the ship digital platform has emerged as an important force in promoting the transformation and upgrading of the ship industry. The stability of the system network is the basis for the safe and stable operation of the ship digital platform, and the detection of data link connection and disconnection is a key link.

[0003] In the prior art, the connection status of digital links between various devices in the ship digital platform is usually detected by manual inspection by operation and maintenance personnel to discover fault information in the digital links. However, the manual inspection method has a large workload, is prone to errors, and has low detection efficiency; moreover, the forms of data link information provided by different models of devices vary, and the detection of the connection status by operation and maintenance personnel requires high professional requirements for operation and maintenance personnel, increasing the cost of link detection. Summary of the Invention

[0004] Embodiments of the present invention provide a method, device, electronic device, medium, and product for detecting data link failures to achieve the purpose of reducing the cost of link detection, improving detection efficiency and accuracy.

[0005] According to one aspect of the present invention, a method for detecting data link failures is provided, including:

[0006] When a communication connection is established with a target detection device in the ship digital platform, reading link connection information recorded in the target detection device; wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform;

[0007] Determining the target device attribute of the target detection device, and based on the correspondence relationship between the pre-set device attribute and the parsing method, determining the target parsing method corresponding to the target device attribute;

[0008] Parsing the link connection information according to the target parsing method, and based on the parsed link connection information and the pre-set correspondence relationship between the device interface and the data link, determining the faulty link in the target data link associated with the target detection device.

[0009] According to another aspect of the present invention, a device for detecting data link failures is provided, including:

[0010] An information reading module, configured to read link connection information recorded in the target detection device when establishing a communication connection with the target detection device in the ship digital platform; wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform;

[0011] A parsing method determination module, configured to determine the target device attribute of the target detection device, and determine a target parsing method corresponding to the target device attribute based on the correspondence between the pre-set device attribute and the parsing method;

[0012] A faulty link determination module, configured to parse the link connection information according to the target parsing method, and determine a faulty link in the target data link associated with the target detection device based on the parsed link connection information and the correspondence between the pre-set device interface and the data link.

[0013] According to another aspect of the present invention, there is provided an electronic device, which includes:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor can execute the data link fault detection method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, there is provided a computer-readable storage medium, which stores computer instructions for causing a processor to implement the data link fault detection method according to any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, there is provided a computer program product, including a computer program, which implements the data link fault detection method according to any embodiment of the present invention when executed by a processor.

[0019] In the technical solution of the embodiment of the present invention, when a communication connection is established with a target detection device in a ship digital platform, the link connection information recorded in the target detection device is read; wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform; determine the target device attribute of the target detection device, and based on the correspondence between the pre-set device attribute and the parsing method, determine the target parsing method corresponding to the target device attribute; thus, without manual participation, the link connection information is parsed according to the determined target parsing method, and based on the parsed link connection information and the correspondence between the pre-set device interface and the data link, the faulty link in the target data link associated with the target detection device is determined. The technical solution of this embodiment does not require the operation and maintenance personnel to manually detect the connection status. Through the link connection information in the target detection device, the faulty link can be accurately determined. Using the target detection device originally existing in the ship digital platform to determine the faulty link reduces the cost of link detection and improves the detection efficiency and accuracy.

[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0022] Figure 1 is a flowchart of a data link fault detection method provided according to an embodiment of the present invention;

[0023] Figure 2 is a flowchart of another data link fault detection method provided according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a network topology structure provided according to an embodiment of the present invention;

[0025] Figure 4 Another schematic diagram of a network topology structure provided according to an embodiment of the present invention;

[0026] Figure 5 Another schematic diagram of a network topology structure provided according to an embodiment of the present invention;

[0027] Figure 6 It is a schematic structural diagram of a data link fault detection device provided according to an embodiment of the present invention;

[0028] Figure 7 It is a schematic structural diagram of an electronic device for implementing the data link fault detection method according to an embodiment of the present invention. Specific embodiments

[0029] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including", "etc." and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0031] It should be noted that in the technical solutions of the present disclosure, in terms of the collection, collection, update, analysis, processing, use, transmission, storage, etc. of user personal information, they all comply with the provisions of relevant laws and regulations, are used for legal purposes, and do not violate public order and good customs. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.

[0032] Figure 1 It is a flowchart of a data link fault detection method provided according to an embodiment of the present invention. This embodiment is applicable to the situation of detecting the connection status of the data link in the ship digital platform. This method can be executed by a data link fault detection device, and the data link fault detection device can be implemented in the form of hardware and / or software.

[0033] As Figure 1 shown, the method of this embodiment may specifically include:

[0034] S110. When establishing a communication connection with a target detection device in a ship digital platform, read the link connection information recorded in the target detection device.

[0035] Among them, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform. The ship digital platform may include at least one of a target detection device, a workstation, a steering gear, a radar, a global positioning device, a communication device, and a sensor for detecting ship parameters. The target detection device includes a firewall and / or a switch. Since the main function of the firewall is to detect and control network communications entering and leaving the network, and to track and record current active connections, the connection status of the digital link connected to the firewall can be understood through the firewall. The switch is a key device in the local area network, used to forward data packets between multiple devices, and the connection status of the data link can be determined by detecting network traffic, such as the sending and interface conditions of data packets.

[0036] In this embodiment, there are multiple target detection devices. Before determining the connection status of the data link in the ship digital platform, it can be determined whether a connection is established with each target detection device in the ship digital platform. When a communication connection is established with each target detection device, the link connection information recorded in each target detection device can be read, and a fault detection of the data link can be performed based on the link connection information recorded in each target detection device. When there is a target detection device that is not connected, a communication connection with the target detection device can be established first, and then the link connection information recorded in each target detection device with an established communication connection can be read.

[0037] In addition, when establishing a communication connection with a target detection device in a ship digital platform, reading the link connection information recorded in the target detection device includes: for each target detection device, determine the importance information corresponding to the target detection device in the current working time period, and based on the importance information, determine the read trigger condition corresponding to the target detection device, and when the read trigger condition is met, read the link connection information in the target detection device.

[0038] In practical applications, for different working time periods in the ship digital platform, the working requirements for the ship are different, and the corresponding attention to the data link is also different. For example, during the time period when the ship is docked, the attention to the data link corresponding to the global positioning device is relatively low, that is, there is no need to pay attention to whether there is a fault in the data link associated with the global positioning device.

[0039] In this embodiment, according to different working time periods and the working requirements of the ship, the attention degree information of each corresponding data link in the ship digital platform can be set; for each data link, based on the attention degree information of the data link, the importance degree information of the target detection device associated with the data link is determined. Exemplarily, the higher the attention degree reflected by the attention degree information, the higher the importance degree reflected by the importance degree information of the associated target detection device. According to the corresponding relationship between the working time period and the attention degree information of the data link, and the association relationship between the data link and the target detection device, the corresponding relationship between the working time period and the importance degree information of the target detection device can be established.

[0040] In a specific implementation, based on the corresponding relationship between the working time period and the importance degree information of the target detection device, the importance degree information of the target detection device corresponding to the current working time period can be determined. Exemplarily, the importance degree information can include three levels: high level, medium level, and low level. For different importance degree levels, different reading trigger conditions are set. Exemplarily, the reading trigger condition corresponding to the importance degree information of the high level is that the current moment is the reading moment corresponding to the first preset reading period. The reading trigger condition corresponding to the importance degree information of the medium level is that the current moment is the reading moment corresponding to the second preset reading period. Among them, the first preset reading period is shorter than the second preset reading period. For example, the first preset reading period is 1 second. The reading trigger condition corresponding to the importance degree information of the low level is that a query instruction sent by the operation and maintenance terminal is received, that is, for the target detection device with the importance degree information of the low level, the information reading operation is only performed when a query instruction sent by the operation and maintenance terminal is received.

[0041] In this embodiment, for different target detection devices, the link connection information in the target detection device can be read according to the reading trigger condition corresponding to the importance degree information of the target detection device, so that the data links with a higher attention degree can be timely controlled; while for the data links with a lower importance degree, on-demand control can be performed, which ensures the safety and reliability of the work of the ship digital platform while reducing the workload of data link detection.

[0042] S120. Determine the target device attribute of the target detection device, and based on the corresponding relationship between the pre-set device attribute and the parsing method, determine the target parsing method corresponding to the target device attribute.

[0043] Among them, the target device attribute includes the factory information of the target detection device. For example, the target device attribute can be model, factory time, name, device working parameters, etc.

[0044] In practical applications, different target detection devices work in different ways, and the representation methods used to record link connection information are also different. For example, for different target detection devices, different identifiers can be used to reflect the connection status. For instance, in the case of a fault connection status, the identifier recorded by device 1 is "0", while the identifier recorded by device 2 is "down", and the identifier recorded by device 2 can be "OFF". In order to accurately parse the link connection information recorded by different target detection devices, corresponding target parsing methods can be determined for different target detection devices.

[0045] Specifically, the corresponding relationship between detection devices with different device attributes and parsing methods can be pre-recorded. For example, the parsing method corresponding to device attribute 1 is: the identifier "0" can be parsed as "connection status fault"; the parsing method corresponding to device attribute 2 is: the representation "up" can be parsed as "connection status normal". Through the pre-set corresponding relationship between device attributes and parsing methods, the parsing method corresponding to the target device attribute of the target detection device is used as the target parsing method.

[0046] S130. Parse the link connection information according to the target parsing method, and based on the parsed link connection information and the pre-set corresponding relationship between the device interface and the data link, determine the faulty link in the target data link associated with the target detection device.

[0047] Among them, the target data link is the data link associated with the target detection device, and can also be understood as the data link including the device interface of the target detection device.

[0048] In this embodiment, for the link connection information read by different target detection devices, the link connection information recorded by the target detection device can be parsed based on the target parsing method corresponding to the target detection device, so as to obtain the parsed link connection information. It should be noted that since the target detection device provides at least one device interface, different data links are formed by connecting to the ship equipment in the ship digital platform through different device interfaces. The corresponding relationship between the device interface and the data link can be pre-determined based on the connection relationship between the device interface and the ship equipment.

[0049] In specific implementation, based on the parsed link connection information, the connection status between the device interface of the target detection device and at least one ship equipment can be determined, and then the device interface with a fault connection status can be determined. Based on the pre-determined corresponding relationship between the device interface and the data link, the target data link corresponding to the device interface with a fault connection status is used as the faulty link.

[0050] In the technical solution of the embodiment of the present invention, when a communication connection is established with a target detection device in a ship digital platform, the link connection information recorded in the target detection device is read; wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform; determine the target device attribute of the target detection device, and based on the corresponding relationship between the pre-set device attribute and the parsing method, determine the target parsing method corresponding to the target device attribute; thus, without manual participation, parse the link connection information according to the determined target parsing method, and based on the parsed link connection information and the corresponding relationship between the pre-set device interface and the data link, determine the faulty link in the target data link associated with the target detection device. The technical solution of this embodiment does not require the operation and maintenance personnel to manually detect the connection status. Through the link connection information in the target detection device, the faulty link can be accurately determined. Using the target detection device originally existing in the ship digital platform to determine the faulty link reduces the cost of link detection and improves the detection efficiency and accuracy.

[0051] Figure 2 It is a flowchart of another data link fault detection method provided according to an embodiment of the present invention. On the basis of the above embodiment, the method for determining the faulty link may be: determining the current topology structure adopted by the ship digital platform at the current moment; in the corresponding relationship between the pre-set device interface and the data link, determining the current corresponding relationship corresponding to the current topology structure; based on the parsed link connection information and the current corresponding relationship, determining the faulty link in the target data link associated with the target detection device. Among them, the explanations of the same or corresponding terms as those in the above embodiments will not be repeated here. As Figure 2 shown, the method includes:

[0052] S210. When a communication connection is established with a target detection device in a ship digital platform, read the link connection information recorded in the target detection device.

[0053] Wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform.

[0054] In this embodiment, when a communication connection is established with a target detection device in a ship digital platform, reading the link connection information recorded in the target detection device includes: determining the target reading method of the target detection device based on the pre-recorded reading parameters corresponding to the target detection device; when a communication connection is established with the target detection device in the ship digital platform, read the link connection information recorded in the target detection device according to the target reading method.

[0055] Among them, the target reading method includes at least one of establishing a session method, reading according to a protocol, and collecting interface data of the management page; the management page is the device management page of the target detection device.

[0056] In practical applications, for different types of target detection devices, different data reading methods can be set by reading parameters. Exemplarily, if the reading parameter is 0, it means the reading method is the session establishment method; if the reading parameter is 1, it can mean the reading method is reading information according to a protocol. For example, the protocol can be the Modbus TCP protocol. If the reading parameter is 2, it means the reading method is collecting interface data of the management page of the target detection device.

[0057] In specific implementation, the reading parameter of the target detection device can be determined in advance, and the reading method corresponding to the reading parameter can be used as the target reading method. When it is determined that a communication connection is established with the target detection device of the ship digital platform, the information recorded in the target detection device can be read according to the target reading method to obtain the link connection information.

[0058] This embodiment adopts multiple methods for reading the target detection device. The target reading method can be determined according to actual requirements by presetting the reading parameter, so as to read the link connection information in a suitable way.

[0059] S220. Determine the target device attribute of the target detection device, and determine the target parsing method corresponding to the target device attribute based on the correspondence between the pre-set device attribute and the parsing method.

[0060] S230. Parse the link connection information according to the target parsing method.

[0061] S240. Determine the current topology structure adopted by the ship digital platform at the current moment, and determine the current correspondence corresponding to the current topology structure in the pre-set correspondence between the device interface and the data link.

[0062] Among them, the ship digital platform includes at least one network topology structure, and different network topology structures include at least one same target detection device.

[0063] In order to be able to more clearly illustrate the network topology structure corresponding to the ship digital platform, it can be divided into three types of network topology structures according to the different complexities of the network topology structure. Figure 3 It is a schematic diagram of a network topology structure provided according to an embodiment of the present invention. As Figure 3As shown, the network topology includes a satellite communication system, a 4G (Fourth Generation Mobile Communication Technology) module, and a 5G (Fifth Generation Mobile Communication Technology) module connected by wireless connection. It also includes two firewalls, two data servers, two switches, and two workstations. Both switches are communicatively connected to switches in other networks to form a data link. This network topology is a network with redundant firewalls and switches. Among them, a link composed of a group of firewalls, switches, data servers, and workstations can be used as the main data link; another link composed of a group of firewalls, switches, data servers, and workstations can be used as the backup data link.

[0064] Figure 4 Another schematic diagram of a network topology provided by an embodiment of the present invention, as Figure 4 shown, the network topology includes switches, firewalls, a satellite communication system, a 4G (Fourth Generation Mobile Communication Technology) module, a 5G (Fifth Generation Mobile Communication Technology) module, two data servers, two workstations, and other intelligent device management systems. Among them, there is a redundant communication link between the switches and the firewalls. Taking this network topology as an example represents the network of all ship digital platforms without redundant firewalls and switches.

[0065] Figure 5 Another schematic diagram of a network topology provided by an embodiment of the present invention, as Figure 5 shown, the network topology includes firewalls, a satellite communication system, a 4G (Fourth Generation Mobile Communication Technology) module, a 5G (Fifth Generation Mobile Communication Technology) module, two workstations, and other intelligent device management systems. Taking this network topology as an example represents the network of a ship digital platform with only firewalls.

[0066] It should be noted that among the three network topologies proposed above, the same firewall or switch can be shared. For example, Figure 4 and Figure 5 can use the same firewall, that is, this firewall can be used as both the target detection device in the corresponding network topology of Figure 4 and the target detection device in the corresponding network topology of Figure 5 .

[0067] In order to accurately detect the data link that needs to be fault-detected when the same target detection device is shared among different network topologies, it is necessary to determine the current topology to which the target detection device belongs. Specifically, the network topology adopted by the ship digital platform at the current moment can be used as the current topology.

[0068] Since the ship digital platform has multiple different network topologies, in order to accurately detect data links, the corresponding relationships between the various device interfaces of the target detection devices included in each network topology and the data links in the network topology can be preset. After determining the current topology, the corresponding relationships between the various device interfaces of the target detection devices included in the current topology and the data links in the current network topology are used as the current corresponding relationships.

[0069] Exemplarily, the current corresponding relationships can be displayed in tabular form. As shown in Table 1:

[0070] Table 1

[0071] Alarm signal identifier Device interface code Link Chinese name 111 Interface 001 Switch - Workstation 1 112 Interface 002 Switch - Workstation 2 113 Interface 003 Switch - Firewall 1 114 Interface 004 Switch - Firewall 2 115 Interface 005 Switch - Server 1 116 Interface 006 Switch - Server 2 117 Interface 007 Switch - Other devices

[0072] In Table 1, each device interface code corresponds to a target data link. For each target data link, an alarm signal code is corresponding. When an alarm prompt is made for a fault in the target data link, the data link with the fault can be determined by displaying the alarm signal code.

[0073] S250. Based on the parsed link connection information and the current corresponding relationships, determine the faulty link in the target data link associated with the target detection device.

[0074] Specifically, based on the parsed link connection information, the device interface code of the faulty device interface can be determined. According to the current corresponding relationships shown in Table 1, determine the Chinese name of the link corresponding to the device interface code of the faulty device interface, and use the target data link corresponding to the Chinese name of the link as the faulty link.

[0075] In this embodiment, in the case where the ship digital platform has multiple network topologies, based on the network topology adopted at the current moment, the current corresponding relationships are determined, and thus the faulty link is determined based on the current corresponding relationships, which is beneficial to improving the accuracy of the determined faulty link.

[0076] In this embodiment, after determining the faulty link in the target data link associated with the target detection device, it further includes: determining the target alarm level corresponding to the faulty link according to the corresponding relationships between each data link and the alarm levels preset in advance; determining the fault handling method corresponding to the faulty link according to the target alarm level, so as to perform fault handling on the faulty link according to the fault handling method.

[0077] Specifically, different data links have different importance levels for the ship digital platform. The alarm level corresponding to each data link can be set according to the different importance levels, so as to flexibly perform link fault prompts according to the alarm levels, thereby meeting the actual needs of users.

[0078] Optionally, based on the pre-set correspondence between each data link and the alarm level, determine the alarm level corresponding to the faulty link as the target alarm level, so as to perform fault handling on the faulty link according to the fault handling method corresponding to the target alarm level. Exemplarily, the target alarm level includes at least one of an emergency level, a general level, and a safety level. For the emergency level, the fault prompt method can be set to immediate prompt. For example, generate alarm information corresponding to the faulty link and send the alarm information to the operation and maintenance terminal. For the general level, the fault prompt method can be set to add the alarm information corresponding to the faulty link to the message queue and display the alarm information according to the processing order of the message queue. For the safety level, the fault handling method can be not to handle.

[0079] In this embodiment, fault handling is performed through the fault prompt method corresponding to the target alarm level, which can more flexibly perform fault handling in combination with the actual fault situation.

[0080] Further, according to the target alarm level, determine the fault handling method corresponding to the faulty link, so as to perform fault handling on the faulty link according to the fault handling method, including: when the target alarm level is the preset alarm level, generate alarm information based on the pre-set alarm signal identifier, alarm type, and link information corresponding to the faulty link; send the alarm information to the operation and maintenance terminal, and control the operation and maintenance terminal to display the alarm information according to the pre-set information display method corresponding to the faulty link.

[0081] Optionally, the preset alarm level can be the emergency level. When the faulty link is at the emergency level, in order to enable the operation and maintenance personnel to discover the fault in time, the alarm signal identifier and alarm type of the faulty link can be determined based on the pre-set correspondence between the data link and the alarm signal identifier, alarm type, and link information, so as to generate alarm information based on the alarm signal identifier and alarm type of the faulty link. Among them, the link information can be the Chinese name of the link. The alarm type can include system alarm and off-system alarm. Further, the corresponding information display method can also be pre-set for the data link. Exemplarily, the information display method can include pop-up display or display in the log.

[0082] Specifically, the alarm signal identifier, alarm type, Chinese name of the link, alarm level, and information display method of the data link can be stored in tabular form. As shown in Table 2.

[0083] Table 2

[0084] Alarm signal identifier Link Chinese name Alarm level Alarm type Information display method 111 Switch - Workstation 1 Urgent System alarm Pop - up window 112 Switch - Workstation 2 General System alarm Log 113 Switch - Firewall 1 Urgent System alarm Pop - up window

[0085] Further, after generating the alarm information, the alarm information can be sent to the operation and maintenance terminal, and the operation and maintenance terminal can be controlled to display the alarm information according to the information display mode corresponding to the pre-set faulty link. Exemplarily, when the faulty link is "switch - workstation 1", the alarm information can be generated. Since the information display mode corresponding to this faulty link is a pop-up window, the alarm information can be displayed in the form of a pop-up window on the display interface of the operation and maintenance terminal. For example, the red text "System failure occurred in the data link numbered 111" is displayed on the display interface.

[0086] In addition, for a faulty link with a general alarm level, the fault prompt method is to add the alarm information corresponding to the faulty link to the message queue, and display the alarm information according to the processing order of the message queue. Specifically, a message queue can be created in advance and the alarm information can be detected regularly. If alarm information is detected, the alarm information can be added to the message queue. When the message queue is empty, waiting can be performed; when there is alarm information in the message queue, the alarm information can be sent to the operation and maintenance terminal sequentially through Websocket (a full-duplex communication protocol based on TCP) according to the message order in the message queue.

[0087] This embodiment can flexibly configure the information display mode, alarm level, alarm type, etc. of multiple data links, thus providing a detection method for data links adapted to different network topologies, with high adaptability and generality; and, through regular task detection, alarm prompts can be made in a timely manner to ensure that users can understand the fault situation in the first time, which is convenient for operation and maintenance personnel to conduct fault troubleshooting and repair, and reduces the impact of network interruption on services.

[0088] Figure 6 It is a schematic structural diagram of a data link fault detection device provided according to an embodiment of the present invention. This device is used to execute the data link fault detection method provided in any of the above embodiments. This device and the data link fault detection methods in the above embodiments belong to the same inventive concept. Details not described in detail in the embodiment of the data link fault detection device can refer to the embodiments of the above data link fault detection methods. As Figure 6 shown, this device includes:

[0089] An information reading module 10, configured to read the link connection information recorded in the target detection device when establishing a communication connection with the target detection device in the ship digital platform; wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform;

[0090] The parsing method determination module 11 is configured to determine the target device attribute of the target detection device, and determine the target parsing method corresponding to the target device attribute based on the correspondence between the pre-set device attribute and the parsing method;

[0091] The fault link determination module 12 is configured to parse the link connection information according to the target parsing method, and determine the fault link in the target data link associated with the target detection device based on the parsed link connection information and the correspondence between the pre-set device interface and the data link.

[0092] Based on any optional technical solution in the embodiment of the present invention, optionally, the target detection device includes multiple ones; the information reading module 10 includes:

[0093] The first information reading sub-module is configured to, for each target detection device, determine the importance information corresponding to the target detection device during the current working period, determine the reading trigger condition corresponding to the target detection device based on the importance information, and read the link connection information in the target detection device when the reading trigger condition is met.

[0094] Based on any optional technical solution in the embodiment of the present invention, optionally, it further includes:

[0095] The alarm level determination module is configured to, after determining the fault link in the target data link associated with the target detection device, determine the target alarm level corresponding to the fault link according to the correspondence between each pre-set data link and the alarm level;

[0096] The fault handling module is configured to determine the fault handling method corresponding to the fault link according to the target alarm level, so as to perform fault handling on the fault link according to the fault handling method.

[0097] Based on any optional technical solution in the embodiment of the present invention, optionally, the fault handling module includes:

[0098] The alarm information generation sub-module is configured to, when the target alarm level is the preset alarm level, generate alarm information based on the pre-set alarm signal identifier, alarm type, and link information corresponding to the fault link;

[0099] The information sending sub-module is configured to send the alarm information to the operation and maintenance terminal, and control the operation and maintenance terminal to display the alarm information according to the pre-set information display method corresponding to the fault link.

[0100] Based on any optional technical solution in the embodiment of the present invention, optionally, the information reading module 10 includes:

[0101] A reading method determination sub-module, configured to determine a target reading method of the target detection device based on the pre-recorded reading parameters corresponding to the target detection device;

[0102] A second information reading sub-module, configured to read the link connection information recorded in the target detection device in accordance with the target reading method when establishing a communication connection with the target detection device in the ship digital platform;

[0103] Wherein, the target reading method includes at least one of a session establishment method, a protocol-based reading method, and a method of collecting management page interface data; the management page is the device management page of the target detection device.

[0104] Based on any optional technical solution in the embodiments of the present invention, optionally, the ship digital platform includes at least one network topology structure, and different network topology structures include at least one same target detection device;

[0105] A fault link determination module 12, including:

[0106] A structure determination sub-module, configured to determine the current topology structure adopted by the ship digital platform at the current moment;

[0107] A current correspondence determination sub-module, configured to determine the current correspondence corresponding to the current topology structure in the pre-set correspondence between the device interface and the data link;

[0108] A fault link determination sub-module, configured to determine the fault link in the target data link associated with the target detection device based on the parsed link connection information and the current correspondence.

[0109] In the technical solution of the embodiment of the present invention, when a communication connection is established with a target detection device in a ship digital platform, the link connection information recorded in the target detection device is read; wherein, the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform; determine the target device attribute of the target detection device, and based on the correspondence relationship between the pre-set device attribute and the parsing method, determine the target parsing method corresponding to the target device attribute; thus, without manual participation, parse the link connection information according to the determined target parsing method, and based on the parsed link connection information and the correspondence relationship between the pre-set device interface and the data link, determine the faulty link in the target data link associated with the target detection device. The technical solution of this embodiment does not require the operation and maintenance personnel to manually detect the connection status. Through the link connection information in the target detection device, the faulty link can be accurately determined. Using the target detection device originally existing in the ship digital platform to determine the faulty link reduces the cost of link detection and improves the detection efficiency and accuracy.

[0110] It should be noted that in the embodiments of the above data link fault detection device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.

[0111] Figure 7 It is a schematic structural diagram of an electronic device for implementing the data link fault detection method of the embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0112] Such as Figure 7As shown, the electronic device 20 includes at least one processor 21 and a memory communicatively connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc. The memory stores a computer program executable by the at least one processor. The processor 21 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 into the random access memory (RAM) 23. In the RAM 23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, the ROM 22, and the RAM 23 are connected to each other via a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.

[0113] Multiple components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disc, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0114] The processor 21 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 21 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 21 executes the various methods and processes described above, such as the data link failure detection method.

[0115] In some embodiments, the data link failure detection method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 28. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the data link failure detection method described above can be executed. Alternatively, in other embodiments, the processor 21 can be configured to execute the data link failure detection method by any other appropriate means (e.g., by means of firmware).

[0116] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0117] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0118] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0120] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0121] The computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0122] This embodiment also provides a computer program product, including a computer program which, when executed by a processor, implements the data link fault detection method provided in any embodiment of the present application.

[0123] In the process of implementing a computer program product, computer program code for performing the operations of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or, alternatively, can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).

[0124] It should be understood that various forms of the processes shown above can be used, steps can be reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.

[0125] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A data link failure detection method, characterized in that: include: In the case of establishing a communication connection with a target detection device in a ship digital platform, reading link connection information recorded in the target detection device; wherein the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform; Determine a target device attribute of the target detection device, and determine a target resolution method corresponding to the target device attribute based on a preset correspondence between the device attribute and the resolution method; The link connection information is parsed according to the target parsing method, and based on the parsed link connection information and the preset correspondence between the device interface and the data link, a faulty link in the target data link associated with the target detection device is determined.

2. The method according to claim 1, characterized in that The target detection device includes a plurality of devices; when establishing a communication connection with the target detection device in the ship digital platform, reading the link connection information recorded in the target detection device includes: For each of the target detection devices, determine the importance information corresponding to the target detection device in the current working time period, and based on the importance information, determine the read trigger condition corresponding to the target detection device. When the read trigger condition is met, read the link connection information in the target detection device.

3. The method according to claim 1, characterized in that After determining the faulty link in the target data link associated with the target detection device, the method further includes: Determine the target alarm level corresponding to the faulty link according to the preset correspondence between each data link and the alarm level; According to the target alarm level, a fault handling method corresponding to the faulty link is determined, so as to perform fault handling on the faulty link according to the fault handling method.

4. The method according to claim 3, characterized in that The determining, according to the target alarm level, a fault handling method corresponding to the faulty link, so as to perform fault handling on the faulty link according to the fault handling method, includes: When the target alarm level is a preset alarm level, generating alarm information based on the preset alarm signal identifier, alarm type and link information corresponding to the faulty link; The alarm information is sent to the operation and maintenance terminal, and the operation and maintenance terminal is controlled to display the alarm information according to the preset information display mode corresponding to the faulty link.

5. The method according to claim 1, characterized in that In the case of establishing a communication connection with a target detection device in the ship digital platform, reading link connection information recorded in the target detection device includes: Determining a target reading mode of the target detection device based on pre-recorded reading parameters corresponding to the target detection device; When a communication connection is established with a target detection device in a ship digital platform, reading link connection information recorded in the target detection device according to the target reading method; Among them, the target reading method includes at least one of a session establishment method, a protocol reading method, and a management page interface data collection method; the management page is a device management page of the target detection device.

6. The method according to claim 1, characterized in that The ship digital platform includes at least one network topology structure, and different network topologies contain at least one identical target detection device; The determining of a faulty link in a target data link associated with the target detection device based on the parsed link connection information and the preset correspondence between the device interface and the data link comprises: Determining a current topology structure adopted by the ship digital platform at a current moment; Determining a current correspondence relationship corresponding to the current topology structure from among the preset correspondence relationships between the device interfaces and the data links; Based on the parsed link connection information and the current corresponding relationship, a faulty link in the target data link associated with the target detection device is determined.

7. A data link fault detection device, characterized in that: include: An information reading module, used to read the link connection information recorded in the target detection device in the ship digital platform when establishing a communication connection with the target detection device; wherein the target detection device includes a firewall and / or a switch; the link connection information is used to reflect the connection status between the device interface of the target detection device and at least one ship device in the ship digital platform; A resolution mode determination module, used to determine the target device attribute of the target detection device, and determine the target resolution mode corresponding to the target device attribute based on the preset correspondence between the device attribute and the resolution mode; A faulty link determination module is used to parse the link connection information according to the target parsing method, and determine the faulty link in the target data link associated with the target detection device based on the parsed link connection information and the pre-set correspondence between the device interface and the data link.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data link failure detection method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data link failure detection method according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the data link failure detection method according to any one of claims 1 to 6.