Data message transmission method and device, electronic equipment and storage medium

By sending detection messages in the DDC cloud cluster network and determining the communication link status based on the results, the problem that network devices cannot detect and switch communication links in real time is solved, and the success rate of data transmission is improved.

CN119788632AInactive Publication Date: 2025-04-08NEW H3C TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411920701.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In a distributed decoupling frame (DDC) cloud cluster network, network devices cannot detect and switch communication links in real time, resulting in data packet forwarding failure.

Method used

By sending a probe message between the sending device and the receiving device, the status of the communication link is determined based on the detection result, and an appropriate target communication link is selected based on this state for data packet transmission.

Benefits of technology

Real-time monitoring and handover of the communication link is realized, the success rate of data transmission is improved, and data forwarding failure caused by communication link failure is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788632A_ABST
    Figure CN119788632A_ABST
Patent Text Reader

Abstract

The invention provides a data message transmission method and device, electronic equipment and a storage medium, and relates to the technical field of communication processing, and the method comprises the steps: responding to the arrival of a current detection period, and sending a detection message to receiving equipment; according to at least one acquired detection result of the receiving device, determining a communication state of a communication link with the receiving device, the communication state representing whether the communication link has a fault, the detection result being in one-to-one correspondence with the detection period, and the at least one detection result comprising a current detection result; the current detection result refers to a response result of the receiving equipment to the detection message sent by the current detection period; and determining a target communication link for transmitting the data message based on the communication state. According to the technical scheme, real-time monitoring of the communication link is achieved, other communication links can be switched to serve as the target communication link under the condition that the current communication link breaks down, and the success rate of data sending can be increased to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure belongs to the field of communication technology, and specifically relates to a data message transmission method, device, electronic device and storage medium. Background Art

[0002] Distributed Disaggregated Chassis (DDC) cloud cluster network is a network architecture that splits traditional large network switches into smaller and more flexible units, and realizes network interconnection through the split units. Distributed decoupled chassis includes multiple network cloud control units (Network Cloud Controller, NCC), multiple network cloud service units (Network Cloud Processor, NCP) and other network architectures. Multiple NCCs and multiple NPCs can transmit data packets to each other.

[0003] When any network device transmits a data message to the other end, the network device selects a communication link to transmit the data message to the other end according to the local routing table. During the communication process, if the current communication link fails, the routing information recorded in the local routing table of the network device has not changed, and the communication link cannot be changed, resulting in failure of data message forwarding. Summary of the invention

[0004] The present disclosure provides a data message transmission method, device, electronic device and storage medium.

[0005] The first aspect of the present disclosure provides a data message transmission method, which is applied to a sending device. The method includes:

[0006] In response to reaching the current detection period, sending a detection message to the receiving device;

[0007] Determine the communication state of the communication link between the receiving device and the receiving device according to at least one detection result corresponding to at least one detection cycle obtained by the receiving device; the communication state indicates whether the communication link is faulty; the detection results correspond to the detection cycles one by one, and at least one detection result includes a current detection result, which refers to a response result of the receiving device to the detection message sent in the current detection cycle;

[0008] A target communication link for transmitting the data message is determined based on the communication status.

[0009] In an embodiment of the present disclosure, determining the communication state of the communication link between the receiving device and the receiving device according to at least one detection result corresponding to the receiving device in at least one detection cycle obtained includes:

[0010] If the at least one detection cycle is one, determining a communication state of a current communication link according to the current detection result, the current communication link being a communication link with the receiving device;

[0011] If the at least one detection cycle is at least two, the communication state of the current communication link is determined according to the current detection result and at least one historical detection result.

[0012] In an embodiment of the present disclosure, if the at least one detection cycle is one, determining the communication state of the communication link with the receiving device according to the current detection result includes:

[0013] If the current detection result is a no-response state, the current communication link is a faulty link, and the no-response state means that no response information of the receiving device to the detection message is received within a preset time period; or,

[0014] If the current detection result is a responsive state, the current communication link is a non-faulty link, and the responsive state means that response information of the receiving device to the detection message is received within a preset time period.

[0015] In an embodiment of the present disclosure, if the at least one detection cycle is at least two, determining the communication state of the communication link between the receiving device and the receiving device according to the current detection result and at least one historical detection result includes:

[0016] If the detection results of n consecutive detection cycles are in a no-response state, the current communication link is a faulty link; or,

[0017] If the detection result in the i-th detection cycle is a no-response state and the detection result in the j-th detection cycle is a response state, then the current communication link is a non-faulty link, the difference between j and i is less than n, and j is greater than i.

[0018] In an embodiment of the present disclosure, determining a target communication link for transmitting a data message based on the communication state includes:

[0019] If the communication link is a faulty link and a candidate communication link set is included between the communication link and the receiving device, selecting the target communication link from the candidate communication link set;

[0020] If the communication link is a non-faulty link, the current communication link is used as the target communication link.

[0021] In the embodiment of the present disclosure, selecting the target communication link from the candidate communication link set includes:

[0022] Select any candidate communication link from the candidate communication link set for detection;

[0023] If the candidate communication link fails, taking the remaining candidate communication links in the candidate communication link set as a new candidate communication link set, and repeatedly selecting any candidate communication link in the candidate communication link set for detection;

[0024] If the candidate communication link is a non-faulty link, taking the candidate communication link as the target communication link;

[0025] If all the communication links in the candidate communication link set are faulty, the receiving device is marked as a faulty device.

[0026] In an embodiment of the present disclosure, the method further includes:

[0027] Acquiring performance parameters of the receiving device;

[0028] Based on the mapping relationship between the performance parameter and the detection parameter, determine the target detection parameter corresponding to the performance parameter, the target detection parameter including the duration of the detection cycle and the number of detection cycles;

[0029] The communication link is detected based on the target detection parameter.

[0030] An embodiment of a second aspect of the present disclosure provides a data message transmission device, the device comprising:

[0031] A sending module, configured to send a detection message to a receiving device in response to reaching a current detection period;

[0032] A state determination module, used to determine the communication state of the communication link between the receiving device and the receiving device according to at least one detection result corresponding to the receiving device in at least one detection cycle; the communication state indicates whether the communication link is faulty; the detection results correspond to the detection cycles one by one, at least one detection result includes a current detection result, and the current detection result refers to the response result of the receiving device to the detection message sent in the current detection cycle;

[0033] The link determination module is used to determine a target communication link for transmitting a data message based on the communication state.

[0034] An embodiment of the third aspect of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect or any optional implementation manner of the first aspect.

[0035] An embodiment of the fourth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the method described in the first aspect and any optional implementation manner of the first aspect.

[0036] The technical solution provided in the embodiments of the present disclosure has at least the following technical effects or advantages:

[0037] In response to reaching the current detection cycle, the disclosed embodiment sends a detection message to the receiving device; based on at least one detection result of the receiving device obtained, the communication state of the communication link between the receiving device and the receiving device is determined, wherein the communication state indicates whether the communication link is faulty, the detection result corresponds to the detection cycle one by one, and at least one detection result includes the current detection result, which refers to the response result of the receiving device to the detection message sent by the current detection cycle; based on the communication state, the target communication link for transmitting the data message is determined. Real-time monitoring of the communication link is achieved, and other communication links can be switched as the target communication link when the current communication link fails, which can improve the success rate of data transmission to a certain extent.

[0038] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will become apparent from the following description or be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present disclosure. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.

[0040] In the attached picture:

[0041] Figure 1 A schematic diagram of the structure of a system applicable to data message transmission provided by an embodiment of the present disclosure is shown;

[0042] Figure 2 A schematic diagram of a transmission link related to data message transmission provided by an embodiment of the present disclosure is shown;

[0043] Figure 3 A schematic diagram of a transmission link related to data message transmission provided by an embodiment of the present disclosure is shown;

[0044] Figure 4 A schematic diagram of a transmission link related to data message transmission provided by an embodiment of the present disclosure is shown;

[0045] Figure 5A schematic diagram of a transmission link related to data message transmission provided by an embodiment of the present disclosure is shown;

[0046] Figure 6 A schematic diagram of a transmission link related to data message transmission provided by an embodiment of the present disclosure is shown;

[0047] Figure 7 A schematic diagram of a method flow of a data message transmission method provided by an embodiment of the present disclosure is shown;

[0048] Figure 8 A schematic diagram showing a method for transmitting a data packet provided by an embodiment of the present disclosure

[0049] Fig. 9 A schematic diagram showing the structure of a data message transmission device provided by another embodiment of the present disclosure is shown;

[0050] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown;

[0051] Fig.11 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0052] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0053] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the present disclosure should have the common meanings understood by those skilled in the art to which the present disclosure belongs.

[0054] The following introduces the implementation scenarios and related technologies involved in the embodiments of the present disclosure.

[0055] Distributed Disaggregated Chassis (DDC) cloud cluster network is a network architecture that splits traditional large network switches into smaller, more flexible units, and implements network interconnection through the split units. It allows the network to grow on demand, and users can add more units as needed to expand network capacity, number of ports, bandwidth, and improve the business capabilities, computing capabilities, storage capabilities, and processing capabilities of the entire system without replacing the entire switch. The distributed decoupled chassis includes network architectures such as multiple network cloud control units (Network Cloud Controller, NCC), multiple network cloud service units (Network Cloud Processor, NCP), and multiple NCCs and multiple NPCs can transmit data packets to each other.

[0056] Among them, the Network Cloud Controller (NCC) is similar to the main control board function of a modular switch, which is used to centrally manage NCP and NCF, issue configurations, collect log information, process protocol messages, and generate data table entries for the management control plane and data plane. In a DDC cloud cluster network, at least two NCCs are deployed, one is the active NCC, which is in working state; the other is the standby NCC, which only exists as a backup for the active NCC. When the active NCC fails, it can smoothly take over the business of the active NCC.

[0057] The Network Cloud Processor (NCP) is similar to the service board of a modular switch and is responsible for message forwarding. The service port on the NCP is used to connect to the service network and is the external input and output interface of the entire DDC cloud cluster. In the super virtual switch formed by the DDC cloud cluster, the NCP corresponds to the service board of the virtual switch.

[0058] like Figure 1 As shown in the figure, in the DDC cloud cluster network, data is exchanged between NCC and NCP through each management gateway switch (MGT). When any network device in the DDC cloud cluster network communicates, data forwarding needs to be carried out through MGT. Figure 2 As shown, both NCC and NCP are dually uplinked to MGTs. MGTs are connected in a ring.

[0059] NCC, NCP and MGT establish IGP neighbors with each other, and use IGP (Interior Gateway) protocol to interconnect and form a forwarding table. Figure 3As shown in FIG, the protocol message sent by NCC is preferably forwarded to NCP through MGT. In the routing table of IGP, the best path from NCC to NCP is the link of NCC-MGT1-NCP. However, when the routing table from MGT1 to NCP is lost on NCC, as shown in FIG. Figure 4 As shown, it is necessary to switch to the link of NCC-MGT2-MGT3-NCP or NCC-MGT2-MGT1-NCP; Figure 5 As shown, when NCP loses the route to NCC through MGT1, it needs to switch to the link of NCP-MGT3-MGT2-NCC.

[0060] In the related art, when transmitting data packets, the communication link is selected according to the route in the network device. As long as the route of the corresponding network device exists, even if the current communication link selected by the network device is faulty, other communication links will not be replaced. In other words, the selection of the communication link is determined only by the route. Therefore, the following may occur: Figure 6 In the situation shown, the routes on link 1: NCC-MGT1-NCP are correctly delivered, but packets cannot be forwarded. Other available links cannot be switched, which will cause the cluster to escape or even crash. Link 1 is the link that cannot forward packets, and link 2 is another available link.

[0061] In view of this, the embodiments of the present disclosure provide a data message transmission method, device, electronic device and storage medium. The technical solution of the present disclosure is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0062] like Figure 7 As shown, the embodiment of the present disclosure provides a data message transmission method, which can be applied to the NCC or NCP in the above-mentioned DDC cloud cluster network, wherein if the method is applied to the NCC, the NCC is a sending device and the NCP is a receiving device; if the method is applied to the NCP, the NCP is a sending device and the NCC is a receiving device. The method includes:

[0063] In step S11, in response to reaching the current detection period, a detection message is sent to the receiving device.

[0064] Exemplarily, before sending a detection message to a receiving device, a detection session between the sending device and the receiving device should be established first. Specifically, the sending device and the receiving device may enable bidirectional forwarding detection to implement the sending of the detection message.

[0065] It should be noted that before sending a detection message to a receiving device, it is necessary to set the period for sending the detection message and the number of detection cycles. Specifically, the performance parameters of the receiving device can be obtained; based on the mapping relationship between the performance parameters and the detection parameters, the target detection parameters corresponding to the performance parameters are determined, and the target detection parameters include the duration of the detection cycle and the number of detection cycles; based on the target detection parameters, the communication link is detected.

[0066] The performance parameters of the receiving device can be queried in advance through the interface of the receiving device. Specifically, the performance parameters can be PU utilization, memory usage, network bandwidth, delay, jitter, etc. Define a mapping rule or algorithm to convert performance parameters into detection parameters. For example, if the device CPU utilization rate is high, you may need to shorten the detection cycle to reduce the impact on device performance. Calculate the target detection parameters based on the mapping relationship and the currently acquired performance parameters. Use the calculated detection parameters to configure the detection task. Start the detection task and detect the communication link according to the set cycle and cycle number, for example, the cycle number is 3 and the cycle is 3 milliseconds.

[0067] After establishing a detection connection with the receiving device, based on the structure of the DDC cloud network, the detection connection is linked with the IGP protocol corresponding to the sending device, and the communication link to be detected is selected according to the corresponding route in the IGP protocol. The communication link to be detected here can be the best communication link in the route, and the best here can be the shortest communication link. The embodiment of the present disclosure does not limit the selection of the communication link, and technical personnel in this field can determine it according to actual conditions.

[0068] After determining the communication link to be detected, a detection message is sent to the receiving device. Based on the structure of the DDC cloud network, the detection message needs to pass through each communication node in sequence. For example, the communication link is NCC-MGT1-NCP.

[0069] In addition, if Figure 8 As shown, when the sending device and the receiving device establish a detection connection, they do not need to go through the MGT. The MGT only needs to forward the detection message according to the MGT local route when sending the detection message.

[0070] In step S12, the communication state of the communication link with the receiving device is determined according to at least one detection result corresponding to the receiving device in at least one detection cycle.

[0071] Among them, the communication status represents whether the communication link is faulty; the detection results correspond one-to-one to the detection cycles, and at least one detection result includes a current detection result, which refers to the response result of the receiving device to the detection message sent in the current detection cycle.

[0072] Exemplarily, in each detection cycle, detection results are collected from receiving devices or intermediate network devices (such as routers and switches). The detection results may include indicators such as packet loss rate, delay, jitter, and reachability. The collected detection results are parsed to extract key communication performance indicators. Based on the parsed performance indicators, the current state of the communication link is evaluated. It can be compared with a preset threshold, or some complex algorithms can be applied to judge the communication quality.

[0073] The detection result may also be that the response of the receiving device based on the detection message is not received. In the case where the response of the receiving device based on the detection message is not received, it may be caused by a failure of any communication node in the current communication link. For example, in the above-mentioned NCC-MGT-NCP communication link, when the NCC is not faulty, it may be that the MGT did not receive the detection message or failed to forward it to the NCP, or it may be that the NCP cannot receive the detection message forwarded by the MGT and the NCP cannot send a response.

[0074] In an optional embodiment, if the at least one detection cycle is one, the communication state of the current communication link is determined according to the current detection result, and the current communication link is a communication link with the receiving device;

[0075] Exemplarily, within a detection cycle, a detection task is performed and the detection results are collected. The detection results may include key performance indicators such as packet loss rate, delay, and jitter. The collected current detection results are parsed to extract key communication performance indicators. According to the parsed performance indicators, they are compared with the preset thresholds to evaluate the communication status of the current communication link. Possible communication states include "normal", "warning" (performance is slightly degraded, but still within an acceptable range), "serious" (performance is significantly degraded, which may affect business) and failure (unresponsive, communication link is not connected).

[0076] It should be noted that if the at least one detection cycle is one, determining the communication state of the communication link with the receiving device according to the current detection result includes:

[0077] If the current detection result is an unresponsive state, the current communication link is a faulty link, and the unresponsive state means that no response information from the receiving device to the detection message is received within a preset time period; or, if the current detection result is a responsive state, the current communication link is a non-faulty link, and the responsive state means that the response information from the receiving device to the detection message is received within a preset time period.

[0078] If the at least one detection cycle is at least two, the communication state of the current communication link is determined according to the current detection result and at least one historical detection result.

[0079] Exemplarily, multiple detection tasks are performed within multiple detection cycles, and the detection results of each detection are collected. The current detection results are stored together with the previous detection results to form a set of historical detection results. The collected current detection structure and historical detection results are parsed to extract key communication performance indicators. Based on the historical detection results, the trend (such as rising, falling, stable) and statistical information (such as average value, standard deviation) of the performance indicators are calculated. Combined with the trend and statistical information of the current detection results and historical detection results, the communication status of the current communication link is evaluated. Pay special attention to the continuous changes in performance indicators. If an indicator continues to deteriorate, it may be necessary to evaluate the communication status to a more serious level.

[0080] In addition, if the at least one detection cycle is at least two, the communication status of the communication link with the receiving device is determined according to the current detection result and at least one historical detection result, including: if the detection results of n consecutive detection cycles are unresponsive, then the current communication link is a faulty link; or, if the detection result in the i-th detection cycle is unresponsive and the detection result in the j-th detection cycle is responsive, then the current communication link is a non-faulty link, and the difference between j and i is less than n, and j is greater than i.

[0081] The communication status of the current communication link is determined based on the detection results corresponding to multiple detection cycles, which improves the accuracy of the communication status and avoids the response delay caused by factors such as network delay and jitter, resulting in the detection result being an unresponsive state, thereby causing the current communication link to be judged incorrectly.

[0082] In step S13, a target communication link for transmitting the data message is determined based on the communication status.

[0083] Exemplarily, the communication status may be a communication status including "normal", "warning" (performance slightly degraded, but still within an acceptable range), "serious" (performance significantly degraded, which may affect business) and failure (unresponsive, communication link is not connected).

[0084] After determining the communication status of the current communication link, if the communication status of the current communication link cannot meet normal communication needs, then other communication links can be selected as target communication links, where the target communication link needs to meet normal communication needs. If the communication status of the current communication link can meet normal communication needs, then the communication link is used as the target communication link. For example, when the communication status is "warning", the communication link can still meet the communication needs, then it can continue to be used, and the relevant staff can be prompted to perform maintenance for the warning information.

[0085] In an optional embodiment, the above step S13 can also be implemented in the following way:

[0086] If the communication link is a faulty link and a candidate communication link set is included between the communication link and the receiving device, the target communication link is selected from the candidate communication link set; if the communication link is a non-faulty link, the current communication link is used as the target communication link.

[0087] Exemplarily, if the communication link is a faulty link, the communication link is unavailable. To ensure that the data is sent to the receiving device, it is possible to search for other communication links in the corresponding route in the IGP protocol of the sending device. If there are other communication links that can reach the receiving device, the communication link is used as a candidate communication link. The best communication link can also be selected as the target communication link in the candidate communication links in the same manner as in step S11.

[0088] Among them, the target communication link is selected from the candidate communication link set. In order to ensure the quality of the selected target communication link, any candidate communication link in the candidate communication link set can be selected for detection; if the candidate communication link fails, the remaining candidate communication links in the candidate communication link set are used as a new candidate communication link set, and the selection of any candidate communication link in the candidate communication link set for detection is repeated; if the candidate communication link is a non-faulty link, the candidate communication link is used as the target communication link; if all the communication links in the candidate communication link set are faulty, the receiving device is marked as a faulty device.

[0089] Exemplarily, the detection of candidate communication links is the same as the detection method in the above embodiment, which will not be described in detail here.

[0090] It should be noted that after the fault of the faulty communication link is resolved, the information corresponding to the restored communication link can be updated to the route corresponding to the sending device, so that the communication link from the sending device to the receiving device can be updated subsequently and switched when the current communication link fails.

[0091] In summary, in response to reaching the current detection cycle, the embodiment of the present disclosure sends a detection message to the receiving device; based on at least one detection result of the receiving device obtained, the communication state of the communication link between the receiving device and the receiving device is determined, wherein the communication state indicates whether the communication link is faulty, the detection result corresponds to the detection cycle one by one, and at least one detection result includes the current detection result, which refers to the response result of the receiving device to the detection message sent in the current detection cycle; based on the communication state, the target communication link for transmitting data messages is determined. Real-time monitoring of the communication link is achieved, and in the event of a failure in the current communication link, other communication links can be switched as the target communication link, which can improve the success rate of data transmission to a certain extent.

[0092] correspond Fig. 9 The embodiment of the present disclosure also provides a data message transmission device, which includes:

[0093] The sending module 901 is used to send a detection message to a receiving device in response to reaching a current detection period;

[0094] A state determination module 902 is used to determine the communication state of the communication link between the receiving device and the receiving device according to at least one detection result corresponding to the receiving device in at least one detection cycle; the communication state indicates whether the communication link is faulty; the detection result corresponds to the detection cycle one by one, and at least one detection result includes a current detection result, which refers to the response result of the receiving device to the detection message sent in the current detection cycle;

[0095] The link determination module 903 is used to determine a target communication link for transmitting a data message based on the communication state.

[0096] In the embodiment of the present disclosure, the module 902 for determining the state according to the at least one detection result corresponding to the receiving device in at least one detection cycle is further used to:

[0097] If the at least one detection cycle is one, determining the communication state of the current communication link according to the current detection result, the current communication link being the communication link with the receiving device;

[0098] If the at least one detection cycle is at least two, the communication state of the current communication link is determined according to the current detection result and at least one historical detection result.

[0099] In the embodiment of the present disclosure, if the at least one detection cycle is one, the state determination module 902 is further configured to:

[0100] If the current detection result is a no-response state, the current communication link is a faulty link, and the no-response state means that no response information of the receiving device to the detection message is received within a preset time period; or,

[0101] If the current detection result is a responsive state, the current communication link is a non-faulty link, and the responsive state means that response information of the receiving device to the detection message is received within a preset time period.

[0102] In the embodiment of the present disclosure, if the at least one detection cycle is at least two, the state determination module 902 is further used to:

[0103] If the detection results of n consecutive detection cycles are in a no-response state, the current communication link is a faulty link; or,

[0104] If the detection result in the i-th detection cycle is a no-response state and the detection result in the j-th detection cycle is a response state, then the current communication link is a non-faulty link, the difference between j and i is less than n, and j is greater than i.

[0105] In the embodiment of the present disclosure, the link determination module 903 is further configured to:

[0106] If the communication link is a faulty link and a candidate communication link set is included between the communication link and the receiving device, selecting the target communication link from the candidate communication link set;

[0107] If the communication link is a non-faulty link, the current communication link is used as the target communication link.

[0108] In the embodiment of the present disclosure, the link determination module 903 is further configured to:

[0109] Select any candidate communication link from the candidate communication link set for detection;

[0110] If the candidate communication link fails, taking the remaining candidate communication links in the candidate communication link set as a new candidate communication link set, and repeatedly selecting any candidate communication link in the candidate communication link set for detection;

[0111] If the candidate communication link is a non-faulty link, taking the candidate communication link as the target communication link;

[0112] If all the communication links in the candidate communication link set are faulty, the receiving device is marked as a faulty device.

[0113] In the embodiment of the present disclosure, the device is also used for:

[0114] Acquiring performance parameters of the receiving device;

[0115] Based on the mapping relationship between the performance parameter and the detection parameter, determine the target detection parameter corresponding to the performance parameter, the target detection parameter including the duration of the detection cycle and the number of detection cycles;

[0116] The communication link is detected based on the target detection parameter.

[0117] The data message transmission device provided in the above-mentioned embodiment of the present disclosure and the data message transmission method provided in the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0118] The present disclosure also provides an electronic device to perform the above data message transmission method. Fig.10 , which shows a schematic diagram of an electronic device provided by some embodiments of the present disclosure. Fig.10 As shown, the electronic device 10 includes: a processor 1000, a memory 1001, a bus 1002 and a communication interface 1003, and the processor 1000, the communication interface 1003 and the memory 1001 are connected via the bus 1002; the memory 1001 stores a computer program that can be run on the processor 1000, and when the processor 1000 runs the computer program, it executes the data message transmission method provided in any of the aforementioned embodiments of the present disclosure.

[0119] The memory 1001 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the virtual devices of the system is realized through at least one communication interface 1003 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0120] The bus 1002 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 1001 is used to store a program, and the processor 1000 executes the program after receiving an execution instruction. The data message transmission method disclosed in any implementation of the aforementioned embodiment of the present disclosure may be applied to the processor 1000, or implemented by the processor 1000.

[0121] The processor 1000 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1000. The above processor 1000 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1001, and the processor 1000 reads the content in the memory 1001 and completes the steps of the above method in combination with its hardware.

[0122] The electronic device provided by the embodiment of the present disclosure and the data message transmission method provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by them.

[0123] The present disclosure also provides a computer-readable storage medium corresponding to the data message transmission method provided in the above embodiment. Fig.11 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a microprocessor, it executes the data message transmission method provided by any of the aforementioned embodiments.

[0124] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0125] The computer-readable storage medium provided by the above-mentioned embodiments of the present disclosure and the data message transmission method provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0126] Although the optional embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.

[0127] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present disclosure. It should be understood that the above description is only the specific implementation method of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present disclosure should be included in the protection scope of the present invention.

Claims

1. A data message transmission method, characterized in that: Applied to a sending device, the method comprises: In response to reaching the current detection period, sending a detection message to the receiving device; Determine the communication state of the communication link between the receiving device and the receiving device according to at least one detection result corresponding to at least one detection cycle obtained by the receiving device; the communication state indicates whether the communication link is faulty; the detection results correspond to the detection cycles one by one, and at least one detection result includes a current detection result, which refers to a response result of the receiving device to the detection message sent in the current detection cycle; A target communication link for transmitting the data message is determined based on the communication status.

2. The method according to claim 1, characterized in that: The determining, according to at least one detection result corresponding to the receiving device in at least one detection cycle, a communication state of a communication link between the receiving device and the receiving device, comprises: If the at least one detection cycle is one, determining the communication state of the current communication link according to the current detection result, the current communication link being the communication link with the receiving device; If the at least one detection cycle is at least two, the communication state of the current communication link is determined according to the current detection result and at least one historical detection result.

3. The method according to claim 2, characterized in that If the at least one detection cycle is one, determining the communication state of the communication link with the receiving device according to the current detection result includes: If the current detection result is a no-response state, the current communication link is a faulty link, and the no-response state means that no response information of the receiving device to the detection message is received within a preset time period; or, If the current detection result is a responsive state, the current communication link is a non-faulty link, and the responsive state means that response information of the receiving device to the detection message is received within a preset time period.

4. The method according to claim 2, characterized in that: If the at least one detection cycle is at least two, determining the communication state of the communication link between the receiving device and the receiving device according to the current detection result and at least one historical detection result includes: If the detection results of n consecutive detection cycles are in a no-response state, the current communication link is a faulty link; or, If the detection result in the i-th detection cycle is a no-response state and the detection result in the j-th detection cycle is a response state, then the current communication link is a non-faulty link, the difference between j and i is less than n, and j is greater than i.

5. The method according to claim 1, characterized in that The determining, based on the communication state, a target communication link for transmitting a data message comprises: If the communication link is a faulty link and a candidate communication link set is included between the communication link and the receiving device, selecting the target communication link from the candidate communication link set; If the communication link is a non-faulty link, the current communication link is used as the target communication link.

6. The method according to claim 5, characterized in that The selecting the target communication link in the candidate communication link set comprises: Select any candidate communication link from the candidate communication link set for detection; If the candidate communication link fails, taking the remaining candidate communication links in the candidate communication link set as a new candidate communication link set, and repeatedly selecting any candidate communication link in the candidate communication link set for detection; If the candidate communication link is a non-faulty link, taking the candidate communication link as the target communication link; If all the communication links in the candidate communication link set are faulty, the receiving device is marked as a faulty device.

7. The method according to claim 1, characterized in that The method further comprises: Acquiring performance parameters of the receiving device; Based on the mapping relationship between the performance parameter and the detection parameter, determine the target detection parameter corresponding to the performance parameter, the target detection parameter including the duration of the detection cycle and the number of detection cycles; The communication link is detected based on the target detection parameter.

8. A data message transmission device, characterized in that: Applied to a sending device, the device comprises: A sending module, configured to send a detection message to a receiving device in response to reaching a current detection period; A state determination module, used to determine the communication state of the communication link between the receiving device and the receiving device according to at least one detection result corresponding to the receiving device in at least one detection cycle; the communication state indicates whether the communication link is faulty; the detection results correspond to the detection cycles one by one, at least one detection result includes a current detection result, and the current detection result refers to the response result of the receiving device to the detection message sent in the current detection cycle; The link determination module is used to determine a target communication link for transmitting a data message based on the communication state.

9. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Detection method and device for communication link

    CN107332726A

  • Network path switching method in data center, data center network system and equipment

    CN114697196A

  • Network link monitoring method and device, electronic equipment and storage medium

    CN115632968A

  • Communication fault detection method and device, equipment, storage medium and program product

    CN115955427A

  • Link state detection method, device and equipment and computer readable medium

    CN116633827A