Method, device, equipment and medium for detecting message transmission link problems

Through the automated message transmission link problem detection method, the target layer is used to process and obtain information, which solves the problem of inefficiency when the interaction between the client and the server fails, and realizes the rapid location and solution of message transmission link problems.

CN116192713BActive Publication Date: 2024-10-01BANK OF CHINA FINANCIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310146167.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-10-01
Estimated Expiration
2043-02-21

AI Technical Summary

Technical Problem

In the existing technology, when the interaction between the client and the server fails, manual analysis of the message is required to determine the cause of the interaction failure, which is inefficient.

Method used

Provide a message transmission link problem detection method, process the received message through the target layer, and obtain the response information. If the response information is failure, it is determined that the message transmission link problem is detected, and the target link is obtained from the message. Route information, determine the level of the problem, and implement automated detection of message transmission link problems.

Benefits of technology

It can automatically detect message transmission link problems without manual participation, improving efficiency. It can track problems for each layer of the seven-layer or four-layer network model, quickly locate and solve the problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192713B_ABST
    Figure CN116192713B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for detecting message transmission link problems, which can be applied to the financial field or other fields. The received message is processed through the target layer to obtain response information; if the response information includes a failure to process the message, it is determined that a message transmission link problem is detected. The preset target link information is obtained from the message; the message transmission link problem is determined to include the target link information and the target layer; if the response information includes successful message processing and the target layer is not the last layer, the message obtained by processing the message at the target layer is sent to the next layer in the seven-layer network model or the four-layer network model, and the next layer also performs the above steps as the target layer, thereby achieving the purpose of tracking problems at each layer in the seven-layer network model or the four-layer network model, and the message includes the target link information, and the message transmission link problem can be determined to be the target link information and the target layer. The entire process does not require human participation, and there is no need for manual analysis of the message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and more specifically, to a method, device, equipment and medium for detecting message transmission link problems. Background Art

[0002] During the operation of the client, the interaction between the client and the server may fail.

[0003] Currently, when the interaction between the client and the server fails, it is necessary to manually analyze the messages interacting between the client and the server to determine the cause of the interaction failure. Summary of the invention

[0004] In view of this, the present application provides a method, apparatus, device and medium for detecting message transmission link problems.

[0005] To achieve the above objectives, this application provides the following technical solutions:

[0006] According to a first aspect of an embodiment of the present disclosure, a method for detecting a message transmission link problem is provided, which is applied to a seven-layer network model or a four-layer network model. The method for detecting a message transmission link problem includes:

[0007] Processing the received message through the target layer to obtain response information, wherein the response information includes whether the message is processed successfully or failed, and the target layer is any one of the application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer included in the seven-layer network model, or the target layer is any one of the application layer, transport layer, network interconnection layer and host-to-network layer included in the four-layer network model;

[0008] If the response information includes a message processing failure, determining that a message transmission link problem is detected;

[0009] Acquire preset target link information from the message, where the target link information represents first interface information and second interface information, where the first interface information is interface information of an interface of a sending end that sends the message, and the second interface information is interface information of an interface of a receiving end that receives the message;

[0010] Determining a message transmission link problem includes the target link information and the target layer;

[0011] If the response information includes successful message processing and the target layer is not the last layer, the message obtained by the target layer processing the message is sent to the next layer in the seven-layer network model or the four-layer network model; wherein the last layer is the last layer in the seven-layer network model or the four-layer network model in the transmission direction of the message.

[0012] According to a second aspect of an embodiment of the present disclosure, a message transmission link problem detection device is provided, which is applied to a seven-layer network model or a four-layer network model, and the message transmission link problem detection device includes:

[0013] A processing module, used for processing the received message through the target layer to obtain response information, wherein the response information includes successful message processing or message processing failure, wherein the target layer is any layer of the application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer included in the seven-layer network model, or the target layer is any layer of the application layer, transport layer, network interconnection layer and host-to-network layer included in the four-layer network model;

[0014] A first determination module, configured to determine that a message transmission link problem is detected if the response information includes a message processing failure;

[0015] A first acquisition module, used to acquire preset target link information from the message, wherein the target link information represents first interface information and second interface information, wherein the first interface information is interface information of an interface of a sending end that sends the message, and the second interface information is interface information of an interface of a receiving end that receives the message;

[0016] A second determination module, used to determine that the message transmission link problem includes the target link information and the target layer;

[0017] The first sending module is used to send the message obtained by the target layer processing the message to the next layer in the seven-layer network model or the four-layer network model if the response information includes successful message processing and the target layer is not the last layer; wherein the last layer is the last layer in the seven-layer network model or the four-layer network model in the transmission direction of the message.

[0018] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0019] processor;

[0020] a memory for storing instructions executable by the processor;

[0021] Among them, the processor is configured to execute the instructions to implement the message transmission link problem detection method as described in the first aspect.

[0022] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the message transmission link problem detection method as described in the first aspect.

[0023] Through the above technical solution, it can be known that the message transmission link problem detection method provided by the present application is applied to a seven-layer network model or a four-layer network model. The process of processing the message by the target layer in the seven-layer network model or the four-layer network model is as follows: the received message is processed by the target layer to obtain a response message, and the response information includes successful message processing or failed message processing; if the response information includes failed message processing, it is determined that a message transmission link problem is detected. Obtain the preset target link information from the message; determine that the message transmission link problem includes the target link information and the target layer; if the response information includes successful message processing and the target layer is not the last layer, send the message obtained by the target layer processing the message to the next layer in the seven-layer network model or the four-layer network model, and the next layer also performs the above steps as the target layer, thereby achieving the purpose of tracking the problems of each layer in the seven-layer network model or the four-layer network model, and because the message includes the target link information, it can be determined that the message transmission link problem is the target link information and the target layer, and the whole process does not require human participation, and does not require manual analysis of interactive messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0025] Figure 1 A structural diagram of the hardware architecture involved in the embodiments of the present application;

[0026] Figure 2 is a flow chart of a method for detecting a message transmission link problem according to an exemplary embodiment;

[0027] Figure 3 is a block diagram of a message transmission link problem detection device according to an exemplary embodiment;

[0028] Figure 4 It is a block diagram showing a device used in an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0030] The embodiments of the present application provide a method, device, electronic device and medium for detecting problems in a message transmission link. Before introducing the technical solutions mentioned in the embodiments of the present application, the hardware architecture involved in the present application is first described.

[0031] like Figure 1 As shown, it is a structural diagram of the hardware architecture involved in the embodiment of the present application, and the hardware architecture includes: a terminal device 11 and a server 12.

[0032] Exemplarily, the terminal device 11 can be any electronic product that can interact with a user through one or more methods such as a keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device, such as a mobile phone, tablet computer, PDA, personal computer, wearable device, smart TV, etc.

[0033] Exemplarily, the server 12 may be a single server, or a server cluster consisting of multiple servers, or a cloud computing service center.

[0034] Exemplarily, the terminal device 11 may run a client, and exemplary, the client may be an application client or a web client.

[0035] The client running on the terminal device 11 can send messages to the server 12, or receive messages sent by the server; the server 12 can receive messages sent by the terminal device 11, or send messages to the terminal device.

[0036] The terminal device 11 can execute the message transmission link problem detection method provided by the embodiment of the present application in the process of receiving the message sent by the server 12, or in the process of sending the message to the server 12; the server 12 can execute the message transmission link problem detection method provided by the embodiment of the present application in the process of receiving the message sent by the terminal device 11, or in the process of sending the message to the terminal device 11.

[0037] In the embodiment of the present application, the terminal device 11 can be used as a sender of a message or a receiver of a message; the server 12 can be used as a sender of a message or a receiver of a message.

[0038] Those skilled in the art should understand that the above-mentioned terminal devices or servers are only examples, and other existing or future terminal devices or servers that are applicable to the present disclosure should also be included in the protection scope of the present disclosure and are included here by reference.

[0039] Figure 2 is a flow chart of a method for detecting a message transmission link problem according to an exemplary embodiment. Figure 2As shown, the message transmission link problem detection method is used in the above-mentioned terminal device or server, including the following steps S21 to S25.

[0040] Exemplarily, the terminal device communicates with the server's seven-layer network model through the seven-layer network model OSI (Open System Interconnection). The seven-layer network model includes: application layer, presentation layer, session layer, transport layer, network layer, data link layer, and physical layer. In this case, the target layer mentioned in the embodiment of the present application is any of the above 7 layers.

[0041] Exemplarily, the terminal device communicates with the server's four-layer network model through a four-layer network model. The four-layer network model includes: application layer, transport layer, network interconnection layer, host to network layer. In this case, the target layer provided by the embodiment of the present application is any of the above four layers.

[0042] Each target layer executes the following steps S21 to S25 after receiving the message.

[0043] Step S21: Processing the received message through the target layer to obtain response information, wherein the response information includes successful message processing or message processing failure.

[0044] If the above message is received, the process of processing the message by the target layer is the process of parsing the message. The target layer parses the message by removing the request header of the message, for example, obtaining the request header, request body, request time and other information of the message, and generating response information, which includes the response header, response body and response time. The response body includes the success of parsing the message or the failure of parsing the message. The response time refers to the time it takes for the target layer to parse the message. Exemplarily, the request body is also a message. If the target layer is not the last layer, the request body is sent to the next layer.

[0045] If the above message is to be sent, the process of the target layer processing the message is the process of encapsulating the message. The process of encapsulating the message is actually to add the request header corresponding to the target layer to the message. The encapsulated data is also a message. If the target layer is not the last layer, the encapsulated message is sent to the next layer. After encapsulating the message, a response message will be generated. The response information includes the response header, response body and response time. The response body includes the success of encapsulating the message or the failure of encapsulating the message. The response time refers to the time it takes for the target layer to encapsulate the message.

[0046] Step S22: If the response information includes a failure to process the message, it is determined that a message transmission link problem is detected.

[0047] Step S23: Obtain preset target link information from the message, the target link information represents first interface information and second interface information, the first interface information is the interface information of the interface of the sending end that sends the message, and the second interface information is the interface information of the interface of the receiving end that receives the message.

[0048] Exemplarily, the first interface information and the second interface information are collectively referred to as interface information; the interface information includes but is not limited to: interface name, IP (Internet Protocol Address), application protocol, and port number.

[0049] The embodiment of the present application adds target link information in the message.

[0050] Exemplarily, the failure to process the message is a failure to parse the message or a failure to encapsulate the message.

[0051] Exemplarily, successful message processing means successful message parsing or successful message encapsulation.

[0052] Step S24: Determine the message transmission link problem including the target link information and the target layer.

[0053] The embodiment of the present application can report the target link information and the target layer as a message transmission link problem to the software development personnel. The software development personnel can quickly locate the problem through the target link information and the target layer, thereby quickly solving the above problem.

[0054] Step S25: If the response information includes successful message processing and the target layer is not the last layer, the message obtained by the target layer processing the message is sent to the next layer in the seven-layer network model or the four-layer network model.

[0055] The last layer is the last layer in the seven-layer network model or the four-layer network model in the transmission direction of the message.

[0056] If the above message is received, for the seven-layer network model, the transmission direction of the message is: application layer, presentation layer, session layer, transport layer, network layer, data link layer, physical layer, and the last layer is the physical layer; the following example illustrates the above "next layer". If the target layer is the application layer, the next layer is the presentation layer; if the target layer is the transport layer, the next layer is the network layer.

[0057] If the above message is received, for the four-layer network model, the transmission direction of the message is: application layer, transport layer, network interconnection layer, host to network layer, and the last layer is host to network layer. The following example illustrates the above "next layer". If the target layer is the application layer, the next layer is the transport layer. If the target layer is the transport layer, the next layer is the network interconnection layer.

[0058] If the above message is the message to be sent, for the seven-layer network model, the transmission direction of the message is: physical layer, data link layer, network layer, transport layer, session layer, presentation layer, application layer, and the last layer is the application layer; the following example illustrates the above "next layer". If the target layer is the physical layer, the next layer is the data link layer; if the target layer is the network layer, the next layer is the transport layer.

[0059] If the above message is the message to be sent, for the four-layer network model, the transmission direction of the message is: host to network layer, network interconnection layer, transport layer, application layer, and the last layer is the application layer. The following example illustrates the above "next layer". If the target layer is the transport layer, the next layer is the application layer. If the target layer is from the host to the network layer, the next layer is the network interconnection layer.

[0060] Since interface anomalies may not only occur at the application layer, but may also occur at other network layers such as the network layer and the transport layer, each target layer of the present application will execute steps S21 to S25 when processing messages, thereby realizing problem tracking for each layer in the seven-layer network model or the four-layer network model.

[0061] The message transmission link problem detection method provided in the embodiment of the present application is applied to a seven-layer network model or a four-layer network model. The process of processing messages by the target layer in the seven-layer network model or the four-layer network model is as follows: the received message is processed by the target layer to obtain response information, and the response information includes successful message processing or failed message processing; if the response information includes failed message processing, it is determined that a message transmission link problem is detected. Obtain preset target link information from the message; determine that the message transmission link problem includes the target link information and the target layer; if the response information includes successful message processing and the target layer is not the last layer, send the message obtained by the target layer processing the message to the next layer in the seven-layer network model or the four-layer network model, and the next layer also performs the above steps as the target layer, thereby achieving the purpose of tracking problems at each layer in the seven-layer network model or the four-layer network model, and because the message includes the target link information, it can be determined that the message transmission link problem is the target link information and the target layer, and the whole process does not require human participation, and does not require manual analysis of interactive messages.

[0062] In an optional implementation, it is necessary to construct a correspondence between the message and the target link information. Based on the correspondence, the target link information can be set in the message. The process of constructing the correspondence between the message and the target link information is described below. The embodiment of the present application provides but is not limited to the following two methods.

[0063] The first method for constructing a correspondence relationship between a message and target link information includes the following steps A11 to A14. The method can be applied to the server 12.

[0064] Step A11: Receive request information sent through the client interface of the client.

[0065] Exemplarily, a plurality of different request information may correspond to one client interface, or one request information may correspond to one client interface.

[0066] Step A12: Feedback information regarding the request information to the client through the server interface of the server.

[0067] Exemplarily, different pieces of feedback information may correspond to one server interface, or one piece of request information may correspond to one server interface.

[0068] Step A13: Based on the interface information of the client interface and the interface information of the server interface, the target link information is obtained.

[0069] In an optional implementation, the target link information includes: interface information of the client interface and interface information of the server interface.

[0070] In an optional implementation, the target link information = (interface name of the client interface, Internet Protocol address (IP address) of the client interface, port number of the client interface, interface name of the server interface, IP address of the server interface, port number of the server interface) => {return link hash value}, to obtain the target link information.

[0071] The above is the target link information obtained by using the hash algorithm. The principle of the hash algorithm can be summarized in one sentence: mapping a binary string of any length to a binary string of fixed length. This mapping rule is called a hash algorithm. The binary string obtained after the original data is mapped is called a hash value.

[0072] Hash algorithms generally have to meet the following requirements: The original data cannot be reversed from the hash value. Therefore, it is also called a one-way hash algorithm. It is sensitive to data changes. Even if the original data is changed by only one binary bit, the corresponding hash value will be very different. The probability of hash collision should be small. The probability of different original data corresponding to the same hash value is very small. The execution efficiency of the hash algorithm should be high, and the hash value can be calculated quickly for longer texts.

[0073] Step A14: constructing a correspondence between the request information, the feedback information and the target link information, wherein the message is the request information or the feedback information.

[0074] The second method for constructing a correspondence relationship between a message and target link information includes the following steps A21 to A24. This method can be applied to the terminal device 11.

[0075] Step A21: Send request information to the server interface of the server.

[0076] Step A22: receiving feedback information for the request information through the client interface of the client.

[0077] Step A23: Based on the interface information of the client interface and the interface information of the server interface, the target link information is obtained.

[0078] In an optional implementation, the target link information includes: interface information of the client interface and interface information of the server interface.

[0079] In an optional implementation, the target link information = (interface name of the client interface, Internet Protocol address (IP address) of the client interface, port number of the client interface, interface name of the server interface, IP address of the server interface, port number of the server interface) => {return link hash value}, to obtain the target link information.

[0080] Step A24: constructing a correspondence between the request information, the feedback information and the target link information, wherein the message is the request information or the feedback information.

[0081] The following example illustrates the correspondence between the interface information of the client interface, the interface information of the server interface, and the target link information, as shown in Table 1.

[0082] Table 1

[0083]

[0084] The interface information shown in Table 1 includes: IP address and port number. Based on the function (Internet Protocol address IP address of the client interface, port number of the client interface, IP address of the server interface, port number of the server interface)=>{return link hash value}, the link hash value obtained is shown in Table 1.

[0085] In an optional implementation, the implementation of step S23 includes the following steps B11 to B12.

[0086] Step B11: searching for the interface information of the client interface and the interface information of the server interface corresponding to the target link information from the corresponding relationship among the preset link information, the interface information of the client interface and the interface information of the server interface.

[0087] Step B12: Determine that the message transmission link problem includes the interface information of the client interface corresponding to the target link information, the interface information of the server interface corresponding to the target link information, and the target layer.

[0088] In an optional implementation, before sending it to the software developer, the interface information of the client interface corresponding to the target link information and the interface information of the server interface corresponding to the target link information are first obtained; in an optional implementation, the target link information can be sent to the developer, and then the developer executes steps B11 to B12.

[0089] It can be understood that one or more message transmission link problems can be obtained, and multiple message transmission link problems can be sorted according to the request time in the message; or, the message transmission link problems containing the same target link information can be divided into the same set, so that they can be displayed to software developers in an orderly manner, making it easier for software developers to find the problem.

[0090] The method is described in detail in the embodiments disclosed in the above-mentioned application. The method of the application can be implemented by various forms of devices. Therefore, the application also discloses a device, and a specific embodiment is given below for detailed description.

[0091] Figure 3 1 is a block diagram of a message transmission link problem detection device according to an exemplary embodiment, wherein the message transmission link problem detection device is applied to a seven-layer network model or a four-layer network model. Figure 3 The device includes: a processing module 31, a first determining module 32, a first acquiring module 33, a second determining module 34 and a first sending module 35.

[0092] The processing module 31 is used to process the received message through the target layer to obtain response information, wherein the response information includes successful message processing or failed message processing. The target layer is any layer of the application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer included in the seven-layer network model, or the target layer is any layer of the application layer, transport layer, network interconnection layer and host to network layer included in the four-layer network model.

[0093] The first determination module 32 is configured to determine that a message transmission link problem is detected if the response information includes a message processing failure.

[0094] The first acquisition module 33 is used to obtain preset target link information from the message, and the target link information represents first interface information and second interface information. The first interface information is the interface information of the interface of the sending end that sends the message, and the second interface information is the interface information of the interface of the receiving end that receives the message.

[0095] The second determination module 34 is used to determine that the message transmission link problem includes the target link information and the target layer.

[0096] The first sending module 35 is used to send the message obtained by the target layer processing the message to the next layer in the seven-layer network model or the four-layer network model if the response information includes successful message processing and the target layer is not the last layer; wherein the last layer is the last layer in the seven-layer network model or the four-layer network model in the transmission direction of the message.

[0097] In an optional implementation, the method further includes:

[0098] A receiving module, used for receiving request information sent through a client interface of a client;

[0099] A second sending module, configured to feed back feedback information regarding the request information to the client through a server interface of the server;

[0100] A second acquisition module, configured to obtain the target link information based on the interface information of the client interface and the interface information of the server interface;

[0101] A construction module is used to construct a correspondence between the request information, the feedback information and the target link information, and the message is the request information or the feedback information.

[0102] In an optional implementation, the second acquisition module is specifically configured to:

[0103] The target link information is obtained through the function: target link information = (interface name of the client interface, Internet Protocol address IP address of the client interface, port number of the client interface, interface name of the server interface, IP address of the server interface, port number of the server interface) => {return link hash value}.

[0104] In an optional implementation, the second determining module includes:

[0105] A searching unit, configured to search for the interface information of the client interface and the interface information of the server interface corresponding to the target link information from the corresponding relationship among the preset link information, the interface information of the client interface and the interface information of the server interface;

[0106] A determination unit is used to determine that the message transmission link problem includes the interface information of the client interface corresponding to the target link information, the interface information of the server interface corresponding to the target link information, and the target layer.

[0107] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0108] Figure 4 1 is a block diagram of a device for an electronic device according to an exemplary embodiment. The electronic device may be a terminal device 11 or a server 12.

[0109] The electronic device includes, but is not limited to, a processor 41 , a memory 42 , a network interface 43 , an I / O controller 44 , and a communication bus 45 .

[0110] It should be noted that those skilled in the art can understand that Figure 4 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Figure 4 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0111] Combine the following Figure 4 A detailed introduction to the various components of electronic equipment:

[0112] The processor 41 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 42, and calling data stored in the memory 42, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 41 may include one or more processing units; illustratively, the processor 41 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 41.

[0113] The processor 41 may be a central processing unit (CPU), or an application specific integrated circuit ASIC (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;

[0114] The memory 42 may include a memory, such as a high-speed random access memory (RAM) 421 and a read-only memory (ROM) 422, and may also include a large-capacity storage device 423, such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0115] The memory 42 is used to store executable instructions of the processor 41. The processor 41 has the function of implementing the message transmission link problem detection method.

[0116] A wired or wireless network interface 43 is configured to connect the electronic device to a network.

[0117] The processor 41, the memory 42, the network interface 43 and the I / O controller 44 may be interconnected via a communication bus 45, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.

[0118] In an exemplary embodiment, the electronic device may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned message transmission link problem detection method.

[0119] In an exemplary embodiment, the present disclosure provides a storage medium including instructions, such as a memory 42 including instructions, and the instructions can be executed by a processor 41 of an electronic device to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0120] In an exemplary embodiment, a computer-readable storage medium is also provided, which can be directly loaded into the internal memory of a computer, such as the above-mentioned memory 42, and contains software code. After the computer program is loaded and executed, it can implement the above-mentioned message transmission link problem detection method.

[0121] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer, such as the memory contained in the electronic device, and contains software code. After being loaded and executed by the computer, the computer program can implement the above-mentioned message transmission link problem detection method.

[0122] The message transmission link problem detection method, device, equipment and medium provided by the present invention can be used in the financial field or other fields, for example, can be used in the message transmission application scenario in the financial field. Other fields are any fields other than the financial field, for example, the power field. The above is only an example and does not limit the application field of the message transmission link problem detection method, device, equipment and medium provided by the present invention.

[0123] It should be noted that the features described in the various embodiments in this specification can be replaced or combined with each other. For the device or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0124] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0125] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0126] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting message transmission link problems, characterized in that: Applied to a seven-layer network model or a four-layer network model, the message transmission link problem detection method includes: Processing the received message through the target layer to obtain response information, wherein the response information includes successful message processing or message processing failure, wherein the target layer is any one of the application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer included in the seven-layer network model, or the target layer is any one of the application layer, transport layer, network interconnection layer and host-to-network layer included in the four-layer network model; If the response information includes a message processing failure, determining that a message transmission link problem is detected; Acquire preset target link information from the message, where the target link information represents first interface information and second interface information, where the first interface information is interface information of an interface of a sending end that sends the message, and the second interface information is interface information of an interface of a receiving end that receives the message; Determining a message transmission link problem includes the target link information and the target layer; If the response information includes successful message processing and the target layer is not the last layer, the message obtained by the target layer processing the message is sent to the next layer in the seven-layer network model or the four-layer network model; wherein the last layer is the last layer in the seven-layer network model or the four-layer network model in the transmission direction of the message.

2. The method for detecting message transmission link problems according to claim 1, characterized in that: The method for acquiring the correspondence between the message and the target link information includes: receiving request information sent through the client interface of the client; Feedback feedback information regarding the request information to the client through a server interface of the server; Based on the interface information of the client interface and the interface information of the server interface, obtaining the target link information; A correspondence between the request information, the feedback information and the target link information is established, and the message is the request information or the feedback information.

3. The message transmission link problem detection method according to claim 2 is characterized in that: The step of obtaining the target link information based on the interface information of the client interface and the interface information of the server interface includes: The target link information is obtained through the function: target link information = (interface name of the client interface, Internet Protocol address IP address of the client interface, port number of the client interface, interface name of the server interface, IP address of the server interface, port number of the server interface) => {return link hash value}.

4. The method for detecting message transmission link problems according to claim 3, characterized in that: The step of determining the message transmission link problem including the target link information and the target layer comprises: Searching for the interface information of the client interface and the interface information of the server interface corresponding to the target link information from the preset link information, the interface information of the client interface and the interface information of the server interface; Determining the message transmission link problem includes the interface information of the client interface corresponding to the target link information, the interface information of the server interface corresponding to the target link information, and the target layer.

5. A message transmission link problem detection device, characterized in that: Applied to a seven-layer network model or a four-layer network model, the message transmission link problem detection device comprises: A processing module, used for processing the received message through the target layer to obtain response information, wherein the response information includes successful message processing or message processing failure, wherein the target layer is any layer of the application layer, presentation layer, session layer, transport layer, network layer, data link layer and physical layer included in the seven-layer network model, or the target layer is any layer of the application layer, transport layer, network interconnection layer and host-to-network layer included in the four-layer network model; A first determination module, configured to determine that a message transmission link problem is detected if the response information includes a message processing failure; A first acquisition module, used to acquire preset target link information from the message, wherein the target link information represents first interface information and second interface information, wherein the first interface information is interface information of an interface of a sending end that sends the message, and the second interface information is interface information of an interface of a receiving end that receives the message; A second determination module, used to determine that the message transmission link problem includes the target link information and the target layer; The first sending module is used to send the message obtained by the target layer processing the message to the next layer in the seven-layer network model or the four-layer network model if the response information includes successful message processing and the target layer is not the last layer; wherein the last layer is the last layer in the seven-layer network model or the four-layer network model in the transmission direction of the message.

6. The message transmission link problem detection device according to claim 5, characterized in that: Also includes: A receiving module, used for receiving request information sent through a client interface of a client; A second sending module, configured to feed back feedback information regarding the request information to the client through a server interface of the server; A second acquisition module, configured to obtain the target link information based on the interface information of the client interface and the interface information of the server interface; A construction module is used to construct a correspondence between the request information, the feedback information and the target link information, and the message is the request information or the feedback information.

7. The message transmission link problem detection device according to claim 6, characterized in that: The second acquisition module is specifically used for: The target link information is obtained through the function: target link information = (interface name of the client interface, Internet Protocol address IP address of the client interface, port number of the client interface, interface name of the server interface, IP address of the server interface, port number of the server interface) => {return link hash value}.

8. The message transmission link problem detection device according to claim 7, characterized in that: The second determining module comprises: A searching unit, configured to search for the interface information of the client interface and the interface information of the server interface corresponding to the target link information from the corresponding relationship among the preset link information, the interface information of the client interface and the interface information of the server interface; A determination unit is used to determine that the message transmission link problem includes the interface information of the client interface corresponding to the target link information, the interface information of the server interface corresponding to the target link information, and the target layer.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the message transmission link problem detection method as described in any one of claims 1 to 4.

10. A computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the message transmission link problem detection method as claimed in any one of claims 1 to 4.