A message sending method, device, equipment and storage medium

By regularly sending target messages that do not carry application data, it detects abnormalities in the underlying communication link and resets the link, which solves the problem of data loss during message transmission and improves the reliability and stability of storage products.

CN114826888BActive Publication Date: 2024-09-24JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210451750.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-09-24
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

During the message transmission process, due to equipment failure or transmission link failure, the message is lost. The existing technology is difficult to deliver the message recipient in a timely and reliable manner. Especially in the field of distributed storage, the client fails to send data to the storage system node in a timely manner. may result in data loss.

Method used

By constructing a target message that does not carry application data, regularly sending and receiving response messages to detect whether the underlying communication link is abnormal. If abnormal, reset the link and resend the data to ensure reliable transmission of messages.

Benefits of technology

It effectively avoids data loss, improves the reliability and stability of storage products, enhances competitiveness, and ensures the reliability of communication between clients and storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114826888B
    Figure CN114826888B
Patent Text Reader

Abstract

The present application discloses a message sending method, device, equipment and storage medium, which relates to the field of communication technology and is applied to a client. The method includes: constructing a target message that does not carry application data; regularly sending the target message to the other end through the underlying communication link at a first preset time interval, and receiving a response message corresponding to the target message returned by the other end; judging whether the underlying communication link is abnormal based on the response message; if the underlying communication link is abnormal, resetting the underlying communication link, and sending the application data to be sent to the other end through the underlying communication link obtained after the reset. The technical solution of the present application can be used to detect whether the underlying communication link between the client and the other end is abnormal. When an abnormality is detected, the link is reset, and then the application data to be sent is sent to the other end, thereby avoiding the risk of data loss and improving the stability and reliability of the product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a message sending method, device, equipment and storage medium. Background Art

[0002] At present, with the continuous development of computer technology, various application systems are widely used in users' work and life. Among them, various devices in the same application system and various devices in different application systems usually interact through message notification. In the process of message transmission, due to problems such as device failure and transmission link failure, the message may be lost during the transmission process, so that it cannot be delivered to the message recipient in a timely and reliable manner, and then the message needs to be resent. For example, in the field of distributed storage, if the client fails to send the locally cached data to the storage system node through the TCP protocol (Transmission Control Protocol) in time, data loss will occur. If the TCP underlying communication link is abnormal, and the upper-layer application cannot perceive this abnormality, it will cause the client to access the storage system without response or read and write failure.

[0003] In summary, how to detect whether there is an abnormality in the underlying communication link when sending a message, and actively handle and trigger the sending of the message after detecting the link abnormality, so as to avoid the risk of data loss and improve the competitiveness of storage products is a problem that needs to be solved at present. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a message sending method, device, equipment and storage medium, which can detect whether an underlying communication link is abnormal when sending a message, and actively process and trigger the message sending process after detecting the link abnormality, thereby avoiding the risk of data loss and improving the competitiveness of storage products. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a message sending method, which is applied to a client, comprising:

[0006] Construct a target message that does not carry application data;

[0007] Periodically sending the target message to the peer end through the underlying communication link at a first preset time interval, and receiving a response message corresponding to the target message returned by the peer end;

[0008] Determining whether the underlying communication link is abnormal based on the response message;

[0009] If the underlying communication link is abnormal, the underlying communication link is reset, and the application data to be sent is sent to the opposite end through the underlying communication link obtained after the reset.

[0010] Optionally, before judging whether the underlying communication link is abnormal based on the response message, the method further includes:

[0011] The collected application data is saved in a global list, and a first application data sending operation is performed to send the application data saved in the global list to the peer end;

[0012] Correspondingly, the bottom layer communication link obtained after the reset sends the application data to be sent to the opposite end, including:

[0013] The target application data that failed to be sent during the execution of the first application data sending operation is determined from the global list, and a second application data sending operation is performed to resend the target application data to the peer end.

[0014] Optionally, after executing the second application data sending operation, the method further includes:

[0015] When a response message corresponding to the target application data returned by the opposite end is received, the corresponding target application data is deleted from the global list.

[0016] Optionally, judging whether the underlying communication link is abnormal based on the response message includes:

[0017] If a response message corresponding to the target message returned by the opposite end is not received within a second preset time interval, it is determined that the underlying communication link is abnormal.

[0018] Optionally, resetting the underlying communication link includes:

[0019] The signal indicating the abnormality of the bottom layer communication link is fed back to the upper layer, and the bottom layer communication link is reset according to the signal indicating the abnormality of the bottom layer communication link.

[0020] Optionally, resetting the underlying communication link includes:

[0021] The bottom layer communication link is closed, and then the closed bottom layer communication link is reopened to obtain a new bottom layer communication link.

[0022] Optionally, the message sending method further includes:

[0023] The target message and / or the application data to be sent are sent to the storage system via the TCP / IP protocol to establish the underlying communication link.

[0024] In a second aspect, the present application discloses a message sending device, which is applied to a client, comprising:

[0025] A target message construction module, used to construct a target message that does not carry application data;

[0026] A message periodic sending module, used to periodically send the target message to the opposite end through the underlying communication link according to a first preset time interval, and receive a response message corresponding to the target message returned by the opposite end;

[0027] An abnormality judgment module, used for judging whether the underlying communication link is abnormal based on the response message;

[0028] The data sending module is used to reset the underlying communication link when the underlying communication link is abnormal, and send the application data to be sent to the opposite end through the underlying communication link obtained after the reset.

[0029] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the message sending method as described above.

[0030] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the message sending method as described above.

[0031] In the present application, the target message without application data is first constructed by the client; then the target message is regularly sent to the peer through the underlying communication link at a first preset time interval, and a response message corresponding to the target message returned by the peer is received; based on the response message, it is determined whether the underlying communication link is abnormal; if the underlying communication link is abnormal, the underlying communication link is reset, and the application data to be sent is sent to the peer through the underlying communication link obtained after the reset. It can be seen that the client periodically sends the constructed target message without application data to the peer at a first preset time interval, and determines whether the underlying communication link is abnormal through the response message returned by the peer. When the underlying communication link is detected to be abnormal, the underlying communication link is actively reset, the link is re-established for receipt communication, and the message sending process is triggered to avoid data loss. The method detects the underlying communication link and triggers the message sending process at an "appropriate time", thereby avoiding the situation that the client does not respond or fails to read when establishing communication with the peer in the case of poor network environment, abnormal underlying data link, etc., thereby causing data loss, improving the reliability and stability of storage products and the competitiveness of products, and also improving the quality of storage products. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0033] Figure 1 A flow chart of a message sending method disclosed in this application;

[0034] Figure 2 A flow chart of a specific message sending method disclosed in this application;

[0035] Figure 3 This is a schematic diagram of the structure of a message sending device disclosed in this application;

[0036] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

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

[0038] Currently, in the field of distributed storage, if the client fails to send the locally cached data to the storage system node through the TCP protocol in time, data loss will occur. If the TCP underlying communication link is abnormal and the upper-layer application is unaware of the abnormality, the client will not respond or read or write to the storage system.

[0039] To this end, the present application provides a message sending solution that can detect whether there is an abnormality in the underlying communication link when the message is sent, and actively process and trigger the message sending process after detecting the link abnormality, thereby avoiding the risk of data loss and improving the competitiveness of storage products.

[0040] The embodiment of the present invention discloses a message sending method, see Figure 1 As shown, applied to the client, the method includes:

[0041] Step S11: Construct a target message that does not carry application data.

[0042] It should be noted that in the embodiment of the present application, the client communicates with the storage system via the TCP / IP protocol (Transmission Control Protocol / Internet Protocol). In order to detect whether the underlying communication link is abnormal, a target message that does not carry application data can be constructed. The target message is used to detect whether the underlying communication link is abnormal, that is, the response message given by the other end after receiving the target message can indirectly detect whether the underlying link between the client and the storage service node is abnormal, and process it after detecting the abnormality of the underlying communication link.

[0043] Step S12: regularly sending the target message to the opposite end through the underlying communication link at a first preset time interval, and receiving a response message corresponding to the target message returned by the opposite end.

[0044] In an embodiment of the present application, the client initiates the scheduled sending of a target message that does not carry application data, and the other end performs response processing after receiving the message. In this way, it is possible to determine whether the underlying communication link is abnormal through the response message returned by the other end.

[0045] Step S13: Determine whether the underlying communication link is abnormal based on the response message.

[0046] In an embodiment of the present application, since the client periodically sends the target message at a first preset time interval, when the underlying communication link is normal, a response message corresponding to the target message returned by the other end will be received, so based on the response message, it can be determined whether the underlying communication link is abnormal.

[0047] In the embodiment of the present application, in the process of detecting whether the underlying link between the client and the storage service end is abnormal by regularly sending and receiving target messages, the client will also communicate normal application data with the storage system, so before judging whether the underlying communication link is abnormal based on the response message, it also includes: saving the collected application data to a global list, and performing a first application data sending operation to send the application data saved in the global list to the peer end. It should be pointed out that in the process of sending the application data saved in the global list to the peer end, the response message sent by the peer end will also be received. When the client receives the response message returned by the peer end, the application data of the received response message will be deleted from the global list.

[0048] Correspondingly, the underlying communication link obtained after the reset sends the application data to be sent to the peer end, including: determining the target application data that failed to be sent during the execution of the first application data sending operation from the global list, and executing the second application data sending operation to resend the target application data to the peer end. It can be understood that in the case of a bad network environment, abnormal underlying communication link, etc., the client accesses the storage system and there will be no response or reading failure. At this time, the data generated is the target application data. After processing the abnormal underlying communication link, the target application data that has not been sent successfully is resent. In this way, the consistency of the data can be guaranteed.

[0049] It should be noted that, after receiving a response message corresponding to the target application data returned by the opposite end, the corresponding target application data is deleted from the global list.

[0050] Step S14: If the underlying communication link is abnormal, the underlying communication link is reset, and the application data to be sent is sent to the opposite end through the underlying communication link obtained after the reset.

[0051] In an embodiment of the present application, if an abnormality is detected in the underlying communication link, the underlying communication link will be reset. Specifically, the resetting of the underlying communication link includes: closing the underlying communication link and then reopening the closed underlying communication link to obtain a new underlying communication link, which is equivalent to recreating a link for data communication.

[0052] It is understandable that when communicating with the storage system via the TCP / IP protocol, the underlying communication link can send the target message and / or the application data to be sent to the storage system, thereby establishing communication.

[0053] In the present application, the target message without application data is first constructed by the client; then the target message is regularly sent to the peer through the underlying communication link at a first preset time interval, and a response message corresponding to the target message returned by the peer is received; based on the response message, it is determined whether the underlying communication link is abnormal; if the underlying communication link is abnormal, the underlying communication link is reset, and the application data to be sent is sent to the peer through the underlying communication link obtained after the reset. It can be seen that the client periodically sends the constructed target message without application data to the peer at a first preset time interval, and determines whether the underlying communication link is abnormal through the response message returned by the peer. When the underlying communication link is detected to be abnormal, the underlying communication link is actively reset, the link is re-established for receipt communication, and the message sending process is triggered to avoid data loss. The method detects the underlying communication link and triggers the message sending process at an "appropriate time", thereby avoiding the situation that the client does not respond or fails to read when establishing communication with the peer in the case of poor network environment, abnormal underlying data link, etc., thereby causing data loss, improving the reliability and stability of storage products and the competitiveness of products, and also improving the quality of storage products.

[0054] The present application embodiment discloses a specific message sending method, see Figure 2 As shown, the method includes:

[0055] Step S21: Construct a target message that does not carry application data.

[0056] It should be noted that in the embodiment of the present application, the client communicates with the storage system through the TCP / IP protocol. In order to detect whether the underlying communication link is abnormal, a target message that does not carry application data can be constructed. The target message is used to detect whether the underlying communication link is abnormal, that is, the response message given by the other end after receiving the target message can indirectly detect whether the underlying link between the client and the storage service node is abnormal, and process it after detecting the link abnormality.

[0057] Step S22: regularly sending the target message to the opposite end through the underlying communication link at a first preset time interval, and receiving a response message corresponding to the target message returned by the opposite end.

[0058] In an embodiment of the present application, the client initiates the scheduled sending of a target message that does not carry application data, and the other end performs response processing after receiving the message.

[0059] Step S23: If a response message corresponding to the target message returned by the opposite end is not received within a second preset time interval, it is determined that the underlying communication link is abnormal.

[0060] In the embodiment of the present application, after regularly sending a message to the other end according to the first preset time interval, a response message returned by the other end will be received. In this way, whether the underlying communication link is abnormal can be indirectly detected, because when the response message of the other end is not received for more than a certain period of time, it can be determined that the underlying communication link is abnormal. That is, if the response message corresponding to the target message returned by the other end is not received within the second preset time interval, it is determined that the underlying communication link is abnormal.

[0061] Step S24: Feedback the signal indicating the abnormality of the underlying communication link to the upper layer, reset the underlying communication link according to the signal indicating the abnormality of the underlying communication link, and send the application data to be sent to the opposite end through the underlying communication link obtained after the reset.

[0062] In an embodiment of the present application, after determining that the underlying communication link is abnormal, the underlying communication link is reset, that is, the underlying communication link is closed, and then the closed underlying communication link is reopened to obtain a new underlying communication link, and at the same time, the signal of the perceived abnormality of the underlying communication link is fed back to the upper layer, prompting the upper layer to resend the message that was not successfully sent to ensure data consistency, thereby improving the reliability of the storage system. It can be understood that the upper layer can be a client-oriented application layer, that is, the client will resend the message that has not been sent in the global list according to the response message, and delete the message from the global list after receiving the response to the data message.

[0063] In this application, it is applied to the client, first constructing a target message that does not carry application data; then regularly sending the target message to the other end through the underlying communication link according to the first preset time interval, and receiving the response message corresponding to the target message returned by the other end; if the response message corresponding to the target message returned by the other end is not received within the second preset time interval, the underlying communication link is determined to be abnormal; the signal of the abnormality of the underlying communication link is fed back to the upper layer, and the underlying communication link is reset according to the signal of the abnormality of the underlying communication link, and the application data to be sent is sent to the other end through the underlying communication link obtained after the reset. It can be seen that the client regularly sends the constructed target message that does not carry application data to the other end according to the first preset time interval, and judges whether the underlying communication link is abnormal through the response message returned by the other end. If the response message corresponding to the target message returned by the other end is not received within the second preset time, that is, the current underlying communication link is abnormal, and the underlying communication link is actively reset at this time, that is, closed and reopened. In this way, it is equivalent to re-creating a link for receipt communication and triggering the message sending process to avoid data loss. This method detects the underlying communication link and triggers the sending of messages at the "appropriate time", avoiding the situation where the client fails to respond or fails to read when establishing communication with the other end in a bad network environment or when the underlying data link is abnormal, which may lead to data loss. This improves the reliability and stability of storage products, as well as the competitiveness of the products, and also improves the quality of storage products.

[0064] Correspondingly, the embodiment of the present application also discloses a message sending device, see Figure 3 As shown, the device comprises:

[0065] A target message construction module 11, used to construct a target message that does not carry application data;

[0066] The message periodic sending module 12 is used to periodically send the target message to the opposite end through the underlying communication link according to a first preset time interval, and receive a response message corresponding to the target message returned by the opposite end;

[0067] An abnormality judgment module 13, used to judge whether the underlying communication link is abnormal based on the response message;

[0068] The data sending module 14 is used to reset the underlying communication link when the underlying communication link is abnormal, and send the application data to be sent to the opposite end through the underlying communication link obtained after the reset.

[0069] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0070] It can be seen that, through the above scheme of this embodiment, applied to the client, first construct a target message that does not carry application data; then send the target message to the other end through the underlying communication link regularly according to the first preset time interval, and receive the response message corresponding to the target message returned by the other end; judge whether the underlying communication link is abnormal based on the response message; if the underlying communication link is abnormal, reset the underlying communication link, and send the application data to be sent to the other end through the underlying communication link obtained after the reset. It can be seen that the client periodically sends the constructed target message that does not carry application data to the other end according to the first preset time interval, and judges whether the underlying communication link is abnormal through the response message returned by the other end. When the underlying communication link is detected to be abnormal, the underlying communication link is actively reset, the link is re-established for receipt communication, and the message sending process is triggered to avoid data loss. This method detects the underlying communication link and triggers the sending of messages at the "appropriate time", avoiding the situation where the client fails to respond or fails to read when establishing communication with the other end in a bad network environment or when the underlying data link is abnormal, which may lead to data loss. This improves the reliability and stability of storage products, as well as the competitiveness of the products, and also improves the quality of storage products.

[0071] The abnormality judgment module 13 includes:

[0072] A data storage unit, configured to save the collected application data to a global list before determining whether the underlying communication link is abnormal based on the response message;

[0073] A first application data sending unit, configured to perform a first application data sending operation to send the application data stored in the global list to the peer end;

[0074] Accordingly, the data sending module 14 includes:

[0075] a target application data determining unit, configured to determine, from the global list, target application data that fails to be sent during the execution of the first application data sending operation;

[0076] The second application data sending unit is used to perform a second application data sending operation to resend the target application data to the opposite end.

[0077] The data sending module 14 further includes:

[0078] The target application data deleting unit is used to delete the corresponding target application data from the global list after executing the second application data sending operation and receiving a response message corresponding to the target application data returned by the opposite end.

[0079] The abnormality judgment module 13′ comprises:

[0080] The abnormality judgment submodule is used to judge that the underlying communication link is abnormal if a response message corresponding to the target message returned by the opposite end is not received within a second preset time interval.

[0081] The data sending module 14 includes:

[0082] The signal feedback unit is used to feed back the signal indicating the abnormality of the bottom layer communication link to the upper layer, and reset the bottom layer communication link according to the signal indicating the abnormality of the bottom layer communication link.

[0083] The data sending module 14 includes:

[0084] The bottom layer communication link resetting module is used to close the bottom layer communication link and then reopen the closed bottom layer communication link to obtain a new bottom layer communication link.

[0085] The message sending device further includes:

[0086] The bottom layer communication link module is used to send the target message and / or the application data to be sent to the storage system through the TCP / IP protocol to establish the bottom layer communication link.

[0087] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0088] Figure 4 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the message sending method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be a computer.

[0089] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0090] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The data 223 may include various data. The storage method may be temporary storage or permanent storage.

[0091] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the message sending method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include computer programs that can be used to complete other specific tasks.

[0092] Furthermore, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (Random Access Memory, RAM), a memory, a read-only memory (Read-Only Memory, ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, when the computer program is executed by the processor, the aforementioned message sending method is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiment, which will not be repeated here.

[0093] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0094] The message transmission or algorithm steps 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.

[0095] Finally, it should 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.

[0096] The message sending method, device, equipment and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A message sending method, characterized in that: Applied to the client, including: Construct a target message that does not carry application data; Periodically sending the target message to the peer end through the underlying communication link at a first preset time interval, and receiving a response message corresponding to the target message returned by the peer end; Determining whether the underlying communication link is abnormal based on the response message; wherein, in the process of determining whether the underlying communication link is abnormal based on the response message, the client also performs normal application data communication with the storage system; If the underlying communication link is abnormal, resetting the underlying communication link, and sending the application data to be sent to the opposite end through the underlying communication link obtained after the reset; The determining whether the underlying communication link is abnormal based on the response message includes: If a response message corresponding to the target message returned by the opposite end is not received within a second preset time interval, determining that the underlying communication link is abnormal; Before determining whether the underlying communication link is abnormal based on the response message, the method further includes: The collected application data is saved in a global list, and a first application data sending operation is performed to send the application data saved in the global list to the peer end; after receiving a response message returned by the peer end, the application data of the received response message is deleted from the global list; Correspondingly, the bottom layer communication link obtained after the reset sends the application data to be sent to the opposite end, including: Determine, from the global list, target application data that fails to be sent during the execution of the first application data sending operation, and perform a second application data sending operation to resend the target application data to the peer end; After executing the second application data sending operation, the method further includes: When receiving a response message corresponding to the target application data returned by the opposite end, deleting the corresponding target application data from the global list; The resetting of the underlying communication link comprises: Feedback the signal of the abnormality of the underlying communication link to the upper layer, and reset the underlying communication link according to the signal of the abnormality of the underlying communication link; the upper layer retransmits the message that has not been sent successfully, and the upper layer includes a client-oriented application layer; The resetting of the underlying communication link comprises: The bottom layer communication link is closed, and then the closed bottom layer communication link is reopened to obtain a new bottom layer communication link.

2. The message sending method according to claim 1, characterized in that: Also includes: The target message and / or the application data to be sent are sent to the storage system via the TCP / IP protocol to establish the underlying communication link.

3. A message sending device, characterized in that: Applied to the client, including: A target message construction module, used to construct a target message that does not carry application data; A message periodic sending module, used to periodically send the target message to the opposite end through the underlying communication link according to a first preset time interval, and receive a response message corresponding to the target message returned by the opposite end; an abnormality judgment module, used for judging whether the underlying communication link is abnormal based on the response message; wherein, in the process of judging whether the underlying communication link is abnormal based on the response message, the client will also perform normal application data communication with the storage system; A data sending module, used for resetting the underlying communication link when the underlying communication link is abnormal, and sending the application data to be sent to the opposite end through the underlying communication link obtained after the reset; The determining whether the underlying communication link is abnormal based on the response message includes: an abnormality judgment submodule, configured to judge that the underlying communication link is abnormal if a response message corresponding to the target message returned by the opposite end is not received within a second preset time interval; The abnormality judgment module comprises: A data storage unit, configured to save the collected application data to a global list before determining whether the underlying communication link is abnormal based on the response message; A first application data sending unit, configured to perform a first application data sending operation to send the application data stored in the global list to the peer end; Correspondingly, the data sending module includes: a target application data determining unit, configured to determine, from the global list, target application data that fails to be sent during the execution of the first application data sending operation; A second application data sending unit, configured to perform a second application data sending operation to resend the target application data to the opposite end; a target application data deleting unit, configured to delete the corresponding target application data from the global list after receiving a response message corresponding to the target application data returned by the opposite end after executing the second application data sending operation; A signal feedback unit, used to feed back the signal of the abnormality of the underlying communication link to the upper layer, and reset the underlying communication link according to the signal of the abnormality of the underlying communication link; the upper layer retransmits the message that has not been sent successfully, and the upper layer includes a client-oriented application layer; The bottom layer communication link resetting module is used to close the bottom layer communication link and then reopen the closed bottom layer communication link to obtain a new bottom layer communication link.

4. An electronic device, characterized in that: The electronic device comprises a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the message sending method as claimed in claim 1 or 2.

5. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein the computer program, when executed by a processor, implements the message sending method as claimed in claim 1 or 2.