Data message transmission method and device, node equipment and readable storage medium

By combining data packets with the same destination address in the node device, the problem of low data transmission efficiency caused by port blocking is solved, and more efficient data transmission is achieved.

CN119211384APending Publication Date: 2024-12-27SHENZHEN INOVANCE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411317972.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the field of industrial wired communication, node device port blockage leads to low data transmission efficiency. The existing technology mainly uses storage and forwarding, resulting in data packets being divided into two independent transmissions, introducing inter-frame gaps, message headers, verification segment overhead, and increasing the overhead of increasing the Transmission time.

Method used

When sending the first data packet, if the second data packet is received and the destination node address is the same, and the data length does not exceed the preset threshold, the first data packet and the second data packet are transmitted in combination to form the first data packet and the second data packet. Three data packets, skip the verification segments and message headers, and reduce the gap between frames.

Benefits of technology

Combined transmission reduces the additional time consumption caused by the message header, verification segment and inter-frame gap of the data packet, saves data transmission time and improves data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211384A_ABST
    Figure CN119211384A_ABST
Patent Text Reader

Abstract

The invention discloses a data message transmission method and device, node equipment and a readable storage medium, and relates to the technical field of communication, and the data message transmission method comprises the steps that when a first data message is sent, if the node equipment receives at least one second data message of a port which is sending the first data message, the second data message is sent to the port which is sending the first data message; if yes, whether the second destination node address of the second data message is consistent with the first destination node address of the first data message is judged; and if the first data message and the second data message are consistent, under the condition that the sum of the data length of the second data message and the accumulated data message sending length of the port for sending the first data message is not greater than a preset data length threshold value, performing combined transmission on the first data message and the second data message to form a third data message. According to the invention, the technical problem of low efficiency of a data transmission scheme aiming at node equipment port blocking at present is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data message transmission method, device, node equipment and computer-readable storage medium. Background Art

[0002] In the field of industrial wired communications, when communicating data between node devices, there may be a problem of port blocking. Port blocking means that while a port of a node device is sending a certain data, another data message also needs to be sent through the port. At present, when facing the problem of port blocking, the technical means usually adopted are to store the data messages that need to be sent later, wait for the previous data message to be transmitted, and then transmit the subsequent data frames. However, since each data message includes structures such as a message header, a data segment, and a check segment, when sending multiple data messages, the inter-frame gap of the data frame and the communication resource overhead such as the message header and the check segment are involved, resulting in a long data transmission time, affecting the data transmission efficiency. Summary of the invention

[0003] The main purpose of the present application is to provide a data message transmission method, apparatus, node device and computer-readable storage medium, aiming to solve the technical problem of low efficiency of the current data transmission scheme for node device port blocking.

[0004] To achieve the above object, the present application provides a data message transmission method, the data message transmission method comprising:

[0005] When sending a first data message, if the node device receives at least one second data message to the port that is sending the first data message, determine whether the second destination node address of the second data message is consistent with the first destination node address of the first data message;

[0006] If they are consistent, then when the data length of the second data packet and the cumulative length of the data packets sent by the port sending the first data packet is not greater than the preset data length threshold, the first data packet and the second data packet are combined for transmission to form a third data packet.

[0007] In one embodiment, the step of combining the first data packet and the second data packet for transmission includes:

[0008] After the data segment of the first data message is sent, sending the data segment of the second data message;

[0009] After the data segments of the second data message are sent, a corresponding check segment is calculated based on the sent continuous data segments, and the check segment is attached to the sent data message and sent;

[0010] The third data message at least includes the message header and data segment of the first data message, the data segment of the second data message and the check segment.

[0011] In one embodiment, when the second destination node address is consistent with the first destination node address and the first data message is a message sent independently by the current sending port, the method further includes:

[0012] Obtaining the data message lengths corresponding to the first data message and the second data message respectively;

[0013] Calculate the sum of the lengths of the data packets to obtain the total length of the data packets;

[0014] If the total length of the data message is greater than the preset data length threshold, the second data message is sent after the first data message is fully sent.

[0015] In one embodiment, the second data message includes a plurality of sub-data messages, and after determining that the second destination node address is consistent with the first destination node address, the data message transmission method further includes:

[0016] Taking each sub-data message in the second data message as a unit, sequentially determining the sum of the data length of each sub-data message and the cumulative length of the data message sent by the port;

[0017] If the sum of the data length of the sub-data message and the accumulated length of the data messages sent by the port does not exceed the preset data length threshold, the sub-data message is combined with the first data message and sent.

[0018] In one embodiment, after determining that the second destination node address is consistent with the first destination node address, the data message transmission method further includes:

[0019] If the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the port exceeds the preset data length threshold, the sub-data message is sent in the form of a new data message;

[0020] The accumulated length of the data packets sent by the port is cleared.

[0021] In one embodiment, after the step of determining whether the second destination node address of the second data message is consistent with the first destination node address of the first data message, the method further includes:

[0022] If the second destination node address is inconsistent with the first destination node address, wait until the first data message is fully sent before sending the second data message.

[0023] In one embodiment, the second data message includes at least a third data message and a fourth data message, and the receiving time point of the third data message is earlier than the receiving time point of the fourth data message; the data message transmission method further includes:

[0024] Before the data segment of the third data message is sent, if a fourth data message to be sent is received, the fourth data message is combined with the third data message for transmission if the sum of the data length of the fourth data message and the cumulative length of the data messages sent by the port is not greater than the preset data length threshold and the fourth destination node of the fourth data message is consistent with the second destination node.

[0025] In one embodiment, after the step of receiving the fourth data message to be sent, the method further includes:

[0026] If the sum of the length of the received fourth data message and the cumulative length of the data messages sent by the port is greater than the preset data length threshold or the fourth destination node address of the fourth data message is inconsistent with the second destination node address, then after the data segment of the third data message is sent, a corresponding check segment is calculated based on the first data message and the third data message, and the check segment is sent to the node device corresponding to the second destination node address;

[0027] Acquire a corresponding fourth destination node address from a message header of the fourth data message, and send the fourth data message to a node device corresponding to the fourth destination node address.

[0028] In one embodiment, the number of the second data message is 1, and the data message transmission method further includes:

[0029] If no new data packet is received before the data segment of the second data packet is sent, then after the data segment of the second data packet is sent, the corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data packet and sent.

[0030] In one embodiment, the second data message includes at least a third data message and a fourth data message, and the receiving time point of the third data message is the same as the receiving time point of the fourth data message;

[0031] The step of combining the first data message and the second data message for transmission comprises:

[0032] After the data segment of the first data message is sent, sending the data segment of the third data message or the fourth data message;

[0033] After the data segment of the third data message is sent, the data segment of the fourth data message is sent; or,

[0034] After the data segment of the fourth data message is sent completely, the data segment of the third data message is sent.

[0035] In one embodiment, the data message transmission method further includes:

[0036] After the data segments of the third data and the fourth data message are sent, a corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data message and sent;

[0037] The third data message at least includes the message header and data segment of the first data message, the data segments corresponding to the third data message and the fourth data message respectively, and the check segment.

[0038] In one embodiment, the data message transmission method further includes:

[0039] If the port is not in a message sending state when receiving a second data message to be sent, obtaining a second destination node address from a message header of the second data message;

[0040] Send the second data message to the node device corresponding to the second destination node address.

[0041] In addition, the present application also provides a data message transmission device, the data message transmission device comprising:

[0042] an address determination module, configured to determine, when sending a first data message, whether a second destination node address of the second data message is consistent with a first destination node address of the first data message if the node device receives at least one second data message to the port that is sending the first data message;

[0043] A combined transmission module is used to combine and transmit the first data packet and the second data packet, if they are consistent, to form a third data packet when the sum of the data length of the second data packet and the cumulative length of the data packets sent by the port sending the first data packet is not greater than a preset data length threshold.

[0044] The present application also provides a node device, which is a physical device, and includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the data message transmission method applied to the node device as above.

[0045] The present application also provides a readable storage medium, which is a computer-readable storage medium, and a program for implementing the data message transmission method is stored on the computer-readable storage medium. The program for implementing the data message transmission method is executed by a processor to implement the steps of the data message transmission method as described above.

[0046] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data message transmission method when executed by a processor.

[0047] The present application provides a data message transmission method. First, when sending a first data message, if the node device receives at least one second data message to the port that is sending the first data message, it is determined whether the second destination node address of the second data message is consistent with the first destination node address of the first data message; if they are consistent, the first data message and the second data message are combined and transmitted to form a third data message when the sum of the data length of the second data message and the cumulative length of the data messages sent by the port that sends the first data message is not greater than a preset data length threshold. The technical solution of the present application is that when a port is currently sending a data message, if the port encounters a new data message that needs to be sent, the two independent data messages are combined and transmitted in the form of a third data message when the destination node address and the data message length allow. Compared with the traditional technical solution that divides the data into two independent messages and sends them separately, the technical solution of the present application can reduce the extra time consumption caused by the message header, check segment and inter-frame gap of the data message, save data transmission time and improve data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

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

[0050] Figure 1 This is a flow chart of a first embodiment of a data message transmission method in an embodiment of the present application;

[0051] Figure 2 This is a schematic diagram of data message forwarding under port blocking in an embodiment of the present application;

[0052] Figure 3 This is a schematic diagram of an independent data message structure in an embodiment of the present application;

[0053] Figure 4 This is a schematic diagram of a combined data message structure in an embodiment of the present application;

[0054] Figure 5 This is a schematic diagram of processing a first data message and a second data message inside a node device in an embodiment of the present application;

[0055] Figure 6 A flowchart of a feasible data message transmission execution step in an embodiment of the present application;

[0056] Figure 7 This is a schematic diagram of the structure of a data message transmission device in an embodiment of the present application;

[0057] Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the terminal station in the embodiment of the present application.

[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0059] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of this application.

[0060] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0061] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0062] In existing industrial wired communication scenarios, when node devices are interacting with each other, there will be a problem of port blocking, that is, when a port of a node device is sending a data frame, another data also needs to be forwarded outward from the port. In order to deal with port blocking, the main solution currently used is the storage and forwarding solution: store the data frames that arrive later, wait for the previous data frames to be transmitted, and then transmit the subsequent data frames. However, the above solution will cause two data packets with the same destination address and the required length to be divided into two packets and sent independently, thereby introducing a certain inter-frame gap and the overhead of the packet header and the check segment, which will increase the transmission time and affect the data transmission efficiency.

[0063] In order to overcome the technical defects in the above-mentioned prior art, the present application embodiment provides a data message transmission method, referring to Figure 1 , Figure 1 The flowchart of the data message transmission method embodiment applied to the node device is shown in the first embodiment. The data message transmission method includes:

[0064] Step S10, when sending the first data message, if the node device receives at least one second data message to the port that is sending the first data message, it is determined whether the second destination node address of the second data message is consistent with the first destination node address of the first data message;

[0065] It should be noted that the data message transmission method in the embodiment of the present application is applied to a node device, and wired communication is established between the node device and other node devices. The received data message that needs to be forwarded can be forwarded to the corresponding node device, and the data message that needs to be sent out can also be sent out by itself. That is, the first data message can be a data message sent by other node devices that needs to be forwarded, or it can be a data message generated by itself or received by the user input that needs to be sent out.

[0066] Specifically, when the node device sends a first data message to another node device through the current sending port, if it simultaneously receives one or more second data messages sent by other node devices that need to be forwarded or generates a second data message that needs to be sent through the current sending port, it can be considered that port blocking occurs at this time. In this case, step S10 mainly discloses a method of first determining whether the destination node addresses of the two data messages are consistent in the scenario of port blocking. The destination node address represents the destination node device to which the data message is to be sent, and the consistency of the destination node is the basis for the combined transmission of the first data message and the second data message.

[0067] Step S20, if they are consistent, then when the sum of the data length of the second data message and the cumulative length of the data messages sent by the port that sends the first data message is not greater than the preset data length threshold, the first data message and the second data message are combined and transmitted to form a third data message.

[0068] In the case where the first destination node address and the second destination node address are consistent, the conditional judgment of data message transmission can be further performed. It is understandable that in a wired communication network, limited by a communication protocol or system, data messages are usually limited by a data message length, so in step S20, it is also necessary to further judge the size relationship between the sum of the data message length (including the data length of the first data message) and the data message length of the second data message sent by the transmission port and a preset data length threshold, wherein the preset data length threshold is the maximum allowed data message length in this communication system. When the sum of the data message length of the data message sent by the transmission port and the data message length of the second data message is less than the preset data length threshold, it is explained that the data segments of the first data message and the second data message are respectively combined for transmission, and the data message length will not be exceeded, so combined transmission can be performed.

[0069] The step of combining the first data message and the second data message for transmission includes:

[0070] Step S21, after the data segment of the first data message is sent, the data segment of the second data message is sent;

[0071] Step S22, after the data segments of the second data message are sent, a corresponding check segment is calculated based on the sent continuous data segments, and the check segment is attached to the sent data message and sent;

[0072] The third data message at least includes the message header and data segment of the first data message, the data segment and check segment of the second data message.

[0073] Furthermore, in the process of combined transmission, the data segment of the second data message is sent after the data segment of the first data message is transmitted. Among them, before the first data message is sent, the message header and the part of the data segment that has been sent have been sent first. In the process of sending the data segment, the second data message to be sent is received. After determining that the second data message can be combined with the first data message for transmission and after the data segment of the first data message is sent, the data segment of the second data message is directly sent, which is equivalent to forming a third data message, and the first data message and the second data message are sent in the form of the third data message. In this way, the embodiment of the present application skips the sending process of the check segment of the first data message and the message header of the second data message, and also skips the inter-frame gap, saving communication resource overhead and improving data transmission efficiency. It should be noted that the destination node address is recorded in the message header, the data message length information is recorded in the data segment, and the check segment is used to check the full text of the data message to improve the reliability of message transmission. When the destination nodes of the first data message and the second data message are consistent, the second data message shares the message header of the first data message. In addition, after the data segment of the second data message is sent, a new check segment is regenerated as the check segment of the combined data message.

[0074] For example, Figure 2 As shown, the execution subject of the embodiment of the present application may be a node device 2, which is located in an industrial communication network system. The system includes at least three industrial control node devices (1, 2, 3), and the node device includes data sending and data receiving functions. Figure 2 In the example, node device 2 is transmitting data message 200 with the destination node address of node device 1 to node device 1. Data message 300 with the destination node address of node device 1 sent by node device 3 has arrived at node device 2 and needs to be sent to the port in the direction of node device 1. At this time, the sending port in node device 2 is blocked. At this time, the method of step S10 to step S20 can be used to combine and transmit data messages that meet the data combination transmission conditions to improve transmission efficiency.

[0075] In addition, after sending the combined first data message and the second data message to the destination node device corresponding to the destination node address, the destination node device can identify the node address information recorded in the parsed data segment, thereby determining the source node devices corresponding to each data segment.

[0076] In another embodiment, the first data message can be either an independent data message or a combined data message after adopting the data message transmission method of the embodiment of the present application, that is, the first data message can also include sub-data segments of multiple sub-data messages. In this case, when calculating the data length, it is necessary to take the sub-data message as a unit, and sum each sub-data message in the second data message and the cumulative sending length of the sending port to determine whether the sub-data message can be combined for transmission.

[0077] An embodiment of the present application provides a data message transmission method. First, when sending a first data message, if the node device receives at least one second data message to the port that is sending the first data message, it is determined whether the second destination node address of the second data message is consistent with the first destination node address of the first data message; if they are consistent, the first data message and the second data message are combined and transmitted to form a third data message when the sum of the data length of the second data message and the cumulative length of the data messages sent by the port that sends the first data message is not greater than the preset data length threshold. The technical solution of the embodiment of the present application is that when a port is currently sending a data message, if the port encounters a new data message that needs to be sent, then if the destination node address and the data message length allow, the two independent data messages are combined and transmitted in the form of a third data message. Compared with the traditional technical solution that is divided into two independent messages and sent separately, the technical solution of the present application can reduce the extra time consumption caused by the message header, check segment and inter-frame gap of the data message, save data transmission time, and improve data transmission efficiency.

[0078] Further, in a feasible embodiment, when the second destination node address is consistent with the first destination node address and the first data message is a message sent separately by the port, the data message transmission method further includes:

[0079] Step A10, obtaining the data message lengths corresponding to the first data message and the second data message respectively;

[0080] Step A20, calculating the sum of the lengths of the data messages to obtain the total length of the data messages;

[0081] Wherein, when the first data message and the second data message are both independent data messages, they at least include structures such as a message header, a data segment, and a check segment. Figure 3As shown, the first data message 200 includes at least a message header 201, a data segment 202, and a check segment 203, wherein the message header 201 includes at least the destination node address information, and the data segment 202 includes at least the data message length and the node address information, wherein the node address information is used for the node device to parse after being sent to the node device corresponding to the destination node address, so as to identify the source node device corresponding to the data segment.

[0082] Step A30: If the total length of the data message is greater than the preset data length threshold, wait until the first data message is fully sent before sending the second data message.

[0083] It should be noted that the first data message is a message sent by the current sending port alone, which means that the first data message is not sent in combination with other previous data messages, and is a data message that is resent after the previous data message sends the FCS (Frame Check Sequence). In this case, if it is determined that the total data message length of the first data message and the second data message is greater than the preset data length threshold, it means that if the first data message and the second data message are combined, the data message length will exceed the maximum data length allowed by the communication protocol or communication system, so the data message is sent alone. After the data segment and the check segment of the first data message are sent, the second data message is sent. Specifically, the message header of the second data message is first sent to the node device corresponding to the second destination node address, and then the data segment of the second data message is sent, and finally the check segment of the second data message is sent.

[0084] In another embodiment, the total message length is calculated according to the data message length of the first data message and the data message length of the second data message, and compared with the preset data length threshold. If the total data message length is not greater than the preset data length threshold, step S20 is executed to complete the combined transmission of the data messages. Figure 4 In this case, it is equivalent to node device 2 combining the first data message 200 and the second data 300 into a new data message 100 for sending. For message 100, the message header comes from message 200. Because message 200 and message 300 have the same destination node address, they can share a message header, and data segment 102 is composed of data segment 202 of message 200 and data segment 302 of message 300. The final check segment 103 is calculated and generated by the newly composed data segment 102 (including data segment 202 and data segment 302) and is used to verify the data of message 100.

[0085] Furthermore, when the node device 2 faces port blocking, the specific steps of processing the message 200 and the message 300 are as follows: Figure 5As shown, first, during the transmission of message 200, the message header has been transmitted to the destination node device. When the data segment Tx is being transmitted, the message 300 sent by the node device 3 is received. At this time, the destination node addresses in messages 200 and 300 and the corresponding data segment length information are identified, and then the data combination transmission judgment is performed to determine whether the data message transmission conditions are met (including the consistency of the destination node addresses and the sum of the data lengths not exceeding the preset data length threshold). Finally, the data combination is performed under the conditions of data message transmission. Specifically, the check segment of message 200 and the message header and check segment of message 300 are abandoned, and the data segment Tx of message 200 and the data segment Rx of message 300 are connected and continuously sent during the message transmission process. It should be noted that the check segment of the combined message of message 200 and message 300 is recalculated by the combined data segment.

[0086] In another embodiment, the second data message includes multiple sub-data messages, and after determining that the second destination node address is consistent with the first destination node address, judging in sequence whether each sub-data message meets the combined transmission condition in units of sub-data messages, the data message transmission method further includes:

[0087] Step A40, taking each sub-data message in the second data message as a unit, sequentially determining the sum of the data length of each sub-data message and the cumulative length of the data message sent by the port;

[0088] Step A50, if the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the port does not exceed the preset data length threshold, the sub-data message is combined with the first data message and sent;

[0089] Specifically, the length of the first sub-data message in the second data message can be first obtained, and then a determination can be made as to whether the sum of the first sub-data message and the cumulative sending length of the sending port is greater than a preset data length threshold; if the sum of the first sub-data message and the cumulative sending length of the sending port is not greater than the preset data length threshold, indicating that the first sub-data message meets the conditions for combined transmission, the sub-data message is then combined with the first data message and sent.

[0090] Step A60, if the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the port exceeds the preset data length threshold, the sub-data message is sent in the form of a new data message;

[0091] Step A70, clearing the cumulative length of the data packets sent by the port.

[0092] If the sum of the first sub-data message and the cumulative sending length of the sending port is greater than the preset data length threshold, it means that the first sub-data message does not meet the conditions for combined transmission, then starting from the sub-data message, a new data message is sent, and the cumulative sending length of the port is cleared; according to the above steps, the remaining sub-data messages in the second data message are determined one by one until all sub-data messages are judged.

[0093] An embodiment of the present application discloses a method for transmitting data packets when the second data packet is composed of multiple sub-data packets. Specifically, the second data packet includes a packet header, a data segment, and a check segment respectively corresponding to the multiple sub-data packets. Taking the sub-data packet as a unit, the data packet length of each sub-data packet and the cumulative sent data packet length of the current sending port can be accumulated in sequence. In this way, it can be determined how many sub-data packets in the second data packet can be combined with the first data packet to be sent, thereby reducing the resource overhead of the packet header, the check segment, and the inter-frame gap as much as possible, thereby improving data transmission efficiency.

[0094] Among them, in the process of successively accumulating the data message length of each sub-data message on the basis of the data message length of the first data message, the total message length is constantly increasing, and each increase is compared with the preset data length threshold, and finally the accumulated sub-data messages that are greater than the preset data length threshold are determined to obtain the data message to be combined that can be transmitted with the first data message.

[0095] When the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the current sending port exceeds the preset data length threshold, the sub-data message cannot be sent in combination with the first data message, but a new message header needs to be generated to send the sub-data message in the form of a new data message. At the same time, if the cumulative length of the data messages sent by the current sending port is to be obtained, the calculation starts with the data length of the sub-data message.

[0096] In another embodiment, after each data message length of a sub-data message is accumulated, a comparison is performed between the total length of the data message and a preset data length threshold. As long as the total length of the combined message is not greater than the maximum data message length allowed by the communication system, the sub-data message is combined with the first data message, and so on, until the accumulated total length of the data message is greater than the preset data length threshold, and then the combination of data messages is stopped, or until all sub-data messages in the second data message are completely combined.

[0097] In a feasible embodiment, after the step of determining whether the second destination node address of the second data message is consistent with the first destination node address of the first data message, the data message transmission method further includes:

[0098] Step B10: If the second destination node address is inconsistent with the first destination node address, wait until the first data message is fully sent before sending the second data message.

[0099] When the second destination node address of the second data message is inconsistent with the first destination node address of the first data message, the node device port to which the second data message is to be sent is also inconsistent, and the combined transmission condition is not met. Therefore, in this case, the second data message is sent by sending the data message independently.

[0100] Among them, the full text of the first data message is sent means that the message header, data segment and check segment of the first data message are all sent. After that, when sending the second data message, it is first sent to the node device corresponding to the second destination node address according to its message header, then its data segment is sent, and finally the check segment of the second data message is sent to complete the entire transmission process of the second data message.

[0101] In a feasible embodiment, the second data message includes at least a third data message and a fourth data message, and the receiving time point of the third data message is the same as the receiving time point of the fourth data message; the step of combining the first data message and the second data message for transmission includes:

[0102] Step C10, after the data segment of the first data message is sent, sending the data segment of the third data message or the fourth data message;

[0103] Step C20, after the data segment of the third data message is sent, send the data segment of the fourth data message; or,

[0104] Step C30: after the data segment of the fourth data message is sent, the data segment of the third data message is sent.

[0105] The embodiment of the present application provides a combined transmission mode when there is more than one second data message and multiple second data messages (third data message and fourth data message) arrive at the node device at the same time. The third data message and the fourth data message are both the same as the destination node address of the first data message. In this case, after sending the data segment of the first data message, either the data segment of the third data message or the data segment of the fourth data message can be sent first, both of which can reduce the inter-frame overhead.

[0106] It should be noted that the sum of the data length of the third data message and the fourth data message and the length of the accumulatively sent data messages is also not greater than the preset data length threshold.

[0107] Exemplarily, if the data segment of the third data message is sent first, the order of executing the steps is step C10 to step C20; if the data segment of the fourth data message is sent first, the order of executing the steps is step C10 to step C30.

[0108] Furthermore, the data message transmission method further includes:

[0109] Step C40, after the data segments of the third data message and the fourth data message are sent, a corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data message and sent;

[0110] The third data message at least includes the message header and data segment of the first data message, the data segments corresponding to the third data message and the fourth data message respectively, and the check segment.

[0111] Among them, step C40 is executed after step C20 or step C30 is completed, the purpose is to make the formed third data message more complete, and generate a corresponding check segment as the message tail. At this time, the third data message of the combined transmission trip is equivalent to combining the first data message, the third data message and the fourth data message for transmission, saving the inter-frame overhead between the first data message and the third data message and between the third data message and the fourth data message.

[0112] In another embodiment, the data message transmission method further includes:

[0113] Step D10, if the port is not in a message sending state when receiving the second data message to be sent, obtaining the second destination node address from the message header of the second data message;

[0114] Step D20: Send the second data message to the node device corresponding to the second destination node address.

[0115] Step D10 and step D20 provide a method for transmitting data packets in a non-port blocking state. When a second data packet is received, the sending port corresponding to the second data packet in this node device is not in a message sending state, that is, an idle state. In this case, no port blocking occurs, so the second destination node address in the message header of the second data packet is directly obtained, and the message header, data segment and check segment of the second data packet are sent to the node device corresponding to the second destination node address in sequence.

[0116] For example, referring to the contents of the aforementioned embodiments of the invention, referring to Figure 6A feasible data message transmission method provided by an embodiment of the present application may include the following steps: first, a node device receives a data message through a receiving port, and then determines whether the sending port is sending data; if not, directly forwards and records the destination node address information and data message length information of the data message; if so, then determines whether the node address information (with the data being sent) is the same; if not, waits for the previous data message to be transmitted to be completed before forwarding and recording the destination node address information and data message length information of the data message; if they are the same, then determines whether the combined message length is too long; if too long, waits for the previous data message to be transmitted to be completed before forwarding and recording the destination node address information and data message length information of the data message; if not too long, the data message is transmitted, which reduces the time consumption of the data message header, check segment and inter-frame gap, and improves the efficiency of data transmission and other beneficial effects.

[0117] Further, in another embodiment, the second data message includes at least a third data message and a fourth data message, and the receiving time point of the third data message is earlier than the receiving time point of the fourth data message; the data message transmission method also includes:

[0118] Step E10, before the data segment of the third data message is sent, if a fourth data message to be sent is received, if the sum of the data length of the fourth data message and the cumulative length of the data messages sent by the port is not greater than a preset data length threshold and the fourth destination node of the fourth data message is consistent with the second destination node, the fourth data message is combined with the third data message and sent;

[0119] During the data segment transmission of the second data message, a method similar to step S10 and step S20 may be used to process the fourth data message that subsequently causes port blocking, thereby achieving combined transmission of multiple continuous data messages.

[0120] Similarly, when the fourth destination node address of the fourth data message is consistent with the second destination node address and the sum of the fourth data message length and the cumulative sent data message length of the current sending port is not greater than the preset data length threshold, the data segment of the fourth data message can be combined with the data segments of the aforementioned first data message and the third data message, and after the data segment of the third data message is sent, the data segment of the fourth data message can continue to be sent. This saves the resource overhead of the check segment after the third data message, the message header of the fourth data message, and the inter-frame gap, thereby further improving the data transmission efficiency.

[0121] In a feasible embodiment, after the step of receiving the fourth data message to be sent, the method further includes:

[0122] Step E20: if the sum of the length of the received fourth data message and the cumulative length of the data messages sent by the port is greater than the preset data length threshold or the fourth destination node address of the fourth data message is inconsistent with the second destination node address, then after the data segment of the third data message is sent, a corresponding check segment is calculated based on the first data message and the third data message, and the check segment is sent to the node device corresponding to the second destination node address;

[0123] When the sum of the fourth data message length and the cumulative length of the port's sent data messages is greater than the preset data length threshold or the fourth destination node address of the fourth data message is inconsistent with the second destination node address, it indicates that the fourth data message length does not meet the combined transmission condition.

[0124] Step E30: Acquire the corresponding fourth destination node address from the message header of the fourth data message, and send the fourth data message to the node device corresponding to the fourth destination node address.

[0125] When receiving the fourth data message, if it is determined that the sum of the length of the fourth data message and the cumulative length of the data messages sent by the current sending port is greater than the preset data length threshold, or the fourth destination node address of the fourth data message is inconsistent with the second destination node address, it can be determined that the combined transmission condition is not met, so the fourth data message needs to be sent in the form of a separate message, that is, the fourth data message is sent to the node device corresponding to the fourth destination node address. In addition, at this time, the data segment of the third data message is currently being sent. After waiting for the data segment of the third data message to be sent, the check segment of the combined data message is recalculated based on the data segments corresponding to the first data message and the third data message, and finally the check segment is sent to the node device corresponding to the first destination node address (or the second destination node address), completing the entire sending process of the combined data message.

[0126] It should be noted that the check segment is used to ensure that no error occurs during the transmission of the data message. Specifically, the calculation method of the check segment depends on the specific communication protocol. In the embodiment of the present application, one of the check methods such as checksum, XOR checksum, cyclic redundancy check (CRC), longitudinal redundancy check (LRC) can be used, which is not limited here.

[0127] In addition, after the check segment of the third data message is sent, the full text of the combined data message of the first data message and the third data message has been sent, and then the fourth data message is started to be sent. The sending method of the fourth data message is the same as the method of sending the second data message alone in the aforementioned embodiment (such as step B10), and can refer to the aforementioned implementation method, which will not be repeated here.

[0128] It should be noted that if a new data message is received during the process of sending the fourth data message, the destination node address and the data message length can be judged to determine whether the data message can be transmitted, so that the data message can be transmitted if it can be transmitted, saving communication resource overhead and improving data transmission efficiency.

[0129] In another embodiment, the number of the second data packets is 1, which is equivalent to only one second data packet. In this case, the data packet transmission method further includes:

[0130] Step F10, if no new data message is received before the data segment of the second data message is sent, then after the data segment of the second data message is sent, the corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data message and sent.

[0131] An embodiment of the present application provides a method for combining and transmitting a first data packet and a second data packet when there is only one second data packet. Specifically, after the second data packet is sent, the corresponding check segment is calculated directly based on the continuous data segments sent by the port. For example, the check segment is calculated based on the data segments of the first data packet and the second data packet, respectively, and finally the check segment is sent after the data segments of the second data packet are sent.

[0132] In this case, the formed third data message includes the message header and data segment of the first data message, the data segment of the second data message, and the check segment.

[0133] In addition, the present application also provides a data message transmission device, referring to Figure 7 , wherein the data message transmission device comprises:

[0134] The address determination module 10 is used to determine whether the second destination node address of the second data message is consistent with the first destination node address of the first data message if the node device receives at least one second data message to the port that is sending the first data message when sending the first data message;

[0135] The combined transmission module 20 is used to combine and transmit the first data packet and the second data packet, if they are consistent, to form a third data packet when the sum of the data length of the second data packet and the cumulative length of the data packets sent by the port sending the first data packet is not greater than a preset data length threshold.

[0136] In one embodiment, the combined transmission module 20 is further configured to:

[0137] After the data segment of the first data message is sent, sending the data segment of the second data message;

[0138] After the data segments of the second data message are sent, a corresponding check segment is calculated based on the sent continuous data segments, and the check segment is attached to the sent data message and sent;

[0139] The third data message at least includes the message header and data segment of the first data message, the data segment of the second data message and the check segment.

[0140] In one embodiment, the data message transmission device further includes a data length determination module, and when the second destination node address is consistent with the first destination node address and the first data message is a message sent separately by the port, the data length determination module is used to:

[0141] Obtaining the data message lengths corresponding to the first data message and the second data message respectively;

[0142] Calculate the sum of the lengths of each data message to obtain the total length of the data message;

[0143] If the total length of the data message is greater than the preset data length threshold, the second data message is sent after the first data message is fully sent.

[0144] In one embodiment, the second data message includes a plurality of sub-data messages, and after determining that the second destination node address is consistent with the first destination node address, the combined transmission module 20 is further configured to:

[0145] Taking each sub-data message in the second data message as a unit, sequentially determining the sum of the data length of each sub-data message and the cumulative length of the data message sent by the port;

[0146] If the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the port does not exceed the preset data length threshold, the sub-data message is combined with the first data message and sent;

[0147] In one embodiment, after determining that the second destination node address is consistent with the first destination node address, the combined transmission module 20 is further configured to:

[0148] If the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the port exceeds the preset data length threshold, the sub-data message is sent in the form of a new data message;

[0149] The accumulated length of the data packets sent by the port is cleared.

[0150] In one embodiment, the data message transmission device further includes a message sending module, and the message sending module is used to:

[0151] If the second destination node address is inconsistent with the first destination node address, the second data message is sent after the first data message is fully sent.

[0152] In one embodiment, the second data message includes at least a third data message and a fourth data message, and the receiving time point of the third data message is earlier than the receiving time point of the fourth data message; the combined transmission module 20 is further used for:

[0153] Before the data segment of the third data message is sent, if a fourth data message to be sent is received, the fourth data message is combined with the third data message for transmission if the sum of the data length of the fourth data message and the cumulative length of the data messages sent by the port is not greater than the preset data length threshold and the fourth destination node of the fourth data message is consistent with the second destination node.

[0154] In one embodiment, the combined transmission module 20 is further configured to:

[0155] If the sum of the length of the received fourth data message and the cumulative length of the data messages sent by the port is greater than the preset data length threshold or the fourth destination node address of the fourth data message is inconsistent with the second destination node address, then after the data segment of the third data message is sent, a corresponding check segment is calculated based on the first data message and the third data message, and the check segment is sent to the node device corresponding to the second destination node address;

[0156] Acquire a corresponding fourth destination node address from a message header of the fourth data message, and send the fourth data message to a node device corresponding to the fourth destination node address.

[0157] In one embodiment, the combined transmission module 20 is further configured to:

[0158] If no new data packet is received before the data segment of the second data packet is sent, then after the data segment of the second data packet is sent, the corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data packet and sent.

[0159] In one embodiment, the second data message includes at least a third data message and a fourth data message, and the receiving time point of the third data message is the same as the receiving time point of the fourth data message; the combined transmission module 20 is further used for:

[0160] After the data segment of the first data message is sent, sending the data segment of the third data message or the fourth data message;

[0161] After the data segment of the third data message is sent, the data segment of the fourth data message is sent; or,

[0162] After the data segment of the fourth data message is sent completely, the data segment of the third data message is sent.

[0163] In one embodiment, the combined transmission module 20 is further configured to:

[0164] After the data segments of the third data and the fourth data message are sent, a corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data message and sent;

[0165] The third data message at least includes the message header and data segment of the first data message, the data segments corresponding to the third data message and the fourth data message respectively, and the check segment.

[0166] In one embodiment, the message sending module is further used for:

[0167] If the port is not in a message sending state when receiving a second data message to be sent, obtaining a second destination node address from a message header of the second data message;

[0168] The second data message is sent to the node device corresponding to the second destination node address.

[0169] The data message transmission device provided by the present application adopts the data message transmission method in the above embodiment, which can solve the technical problem of low efficiency of the current data transmission scheme for node device port blocking. Compared with the prior art, the beneficial effects of the data message transmission device provided by the embodiment of the present application are the same as the beneficial effects of the data message transmission method provided by the above embodiment, and the other technical features in the data message transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0170] An embodiment of the present application also provides a node device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data message transmission method in the above-mentioned embodiment one.

[0171] Reference below Figure 8 , which shows a schematic diagram of the structure of a node device suitable for implementing the embodiment of the present disclosure. The node device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The node device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0172] like Figure 8 As shown, the node device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the node device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the node device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a node device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0173] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0174] The node device provided by the present application adopts the data message transmission method in the above embodiment, which can solve the technical problem of low efficiency of the current data transmission scheme for node device port blocking. Compared with the prior art, the beneficial effects of the node device provided by the embodiment of the present application are the same as the beneficial effects of the data message transmission method provided by the above embodiment, and the other technical features in the node device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0175] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0176] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0177] An embodiment of the present application also provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the data message transmission method in the above-mentioned embodiment 1.

[0178] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0179] The computer-readable storage medium may be included in a node device or a terminal station; or may exist independently without being assembled into a node device or a terminal station.

[0180] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the node device, the node device executes: when sending a first data message, if the node device receives at least one second data message to the port that is sending the first data message, it determines whether the second destination node address of the second data message is consistent with the first destination node address of the first data message; if they are consistent, when the data length of the second data message and the sum of the cumulative sent data message lengths of the port that sends the first data message are not greater than a preset data length threshold, the first data message and the second data message are combined and transmitted to form a third data message.

[0181] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0182] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0183] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0184] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions for executing the above-mentioned data message transmission method, and can solve the technical problem of low efficiency of the current data transmission scheme for node device port blocking. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the data message transmission method provided in the above-mentioned embodiment 1, and will not be repeated here.

[0185] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the data message transmission method as described above when executed by a processor.

[0186] The computer program product provided by the present application can solve the technical problem of low efficiency of the current data transmission scheme for node device port blocking. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the data message transmission method provided by the above embodiment 1, which will not be repeated here.

[0187] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A data message transmission method, characterized in that: Applied to a node device, the data message transmission method includes: When sending a first data message, if the node device receives at least one second data message to the port that is sending the first data message, determine whether the second destination node address of the second data message is consistent with the first destination node address of the first data message; If they are consistent, then when the data length of the second data packet and the cumulative length of the data packets sent by the port sending the first data packet is not greater than the preset data length threshold, the first data packet and the second data packet are combined for transmission to form a third data packet.

2. The data message transmission method according to claim 1, characterized in that: The step of combining the first data message and the second data message for transmission comprises: After the data segment of the first data message is sent, sending the data segment of the second data message; After the data segments of the second data message are sent, calculate the corresponding check segments based on the sent continuous data segments, and attach the check segments to the sent data message and send them; The third data message at least includes the message header and data segment of the first data message, the data segment of the second data message and the check segment.

3. The data message transmission method according to claim 1, characterized in that: In a case where the second destination node address is consistent with the first destination node address and the first data message is a message sent independently by the port, the method further includes: Obtaining the data message lengths corresponding to the first data message and the second data message respectively; Calculate the sum of the lengths of the data packets to obtain the total length of the data packets; If the total length of the data message is greater than the preset data length threshold, the second data message is sent after the first data message is fully sent.

4. The data message transmission method according to claim 1, characterized in that: The second data message includes a plurality of sub-data messages, and after determining that the second destination node address is consistent with the first destination node address, the data message transmission method further includes: Taking each sub-data message in the second data message as a unit, sequentially determining the sum of the data length of each sub-data message and the cumulative length of the data message sent by the port; If the sum of the data length of the sub-data message and the accumulated length of the data messages sent by the port does not exceed the preset data length threshold, the sub-data message is combined with the first data message and sent.

5. The data message transmission method according to claim 4, characterized in that: After determining that the second destination node address is consistent with the first destination node address, the data message transmission method further includes: If the sum of the data length of the sub-data message and the cumulative length of the data messages sent by the port exceeds the preset data length threshold, the sub-data message is sent in the form of a new data message; The accumulated length of the data packets sent by the port is cleared.

6. The data message transmission method according to claim 1, characterized in that: After the step of determining whether the second destination node address of the second data message is consistent with the first destination node address of the first data message, the method further includes: If the second destination node address is inconsistent with the first destination node address, wait until the first data message is fully sent before sending the second data message.

7. The data message transmission method according to claim 1, characterized in that: The second data message includes at least a third data message and a fourth data message, and a receiving time point of the third data message is earlier than a receiving time point of the fourth data message; The data message transmission method also includes: Before the data segment of the third data message is sent, if a fourth data message to be sent is received, the fourth data message is combined with the third data message for transmission if the sum of the data length of the fourth data message and the cumulative length of the data messages sent by the port is not greater than the preset data length threshold and the fourth destination node of the fourth data message is consistent with the second destination node.

8. The data message transmission method according to claim 7, characterized in that: After the step of receiving the fourth data message to be sent, the method further includes: If the sum of the length of the received fourth data message and the cumulative length of the data messages sent by the port is greater than the preset data length threshold or the fourth destination node address of the fourth data message is inconsistent with the second destination node address, then after the data segment of the third data message is sent, a corresponding check segment is calculated based on the first data message and the third data message, and the check segment is sent to the node device corresponding to the second destination node address; Acquire a corresponding fourth destination node address from a message header of the fourth data message, and send the fourth data message to a node device corresponding to the fourth destination node address.

9. The data message transmission method according to claim 1, characterized in that: The number of the second data message is 1, and the data message transmission method further includes: If no new data packet is received before the data segment of the second data packet is sent, then after the data segment of the second data packet is sent, the corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data packet and sent.

10. The data message transmission method according to claim 1, characterized in that: The second data message includes at least a third data message and a fourth data message, and a receiving time point of the third data message is the same as a receiving time point of the fourth data message; The step of combining the first data message and the second data message for transmission comprises: After the data segment of the first data message is sent, sending the data segment of the third data message or the fourth data message; After the data segment of the third data message is sent, the data segment of the fourth data message is sent; or, After the data segment of the fourth data message is sent completely, the data segment of the third data message is sent.

11. The data message transmission method according to claim 10, characterized in that: The data message transmission method also includes: After the data segments of the third data and the fourth data message are sent, a corresponding check segment is calculated based on the continuous data segments sent by the port, and the check segment is attached to the sent data message and sent; The third data message at least includes the message header and data segment of the first data message, the data segments corresponding to the third data message and the fourth data message respectively, and the check segment.

12. The data message transmission method according to claim 1, characterized in that: The data message transmission method also includes: If the port is not in a message sending state when receiving a second data message to be sent, obtaining a second destination node address from a message header of the second data message; Send the second data message to the node device corresponding to the second destination node address.

13. A data message transmission device, characterized in that: The data message transmission device comprises: an address determination module, configured to determine, when sending a first data message, whether a second destination node address of the second data message is consistent with a first destination node address of the first data message if the node device receives at least one second data message to the port that is sending the first data message; A combined transmission module is used to combine and transmit the first data packet and the second data packet, if they are consistent, to form a third data packet when the sum of the data length of the second data packet and the cumulative length of the data packets sent by the port sending the first data packet is not greater than a preset data length threshold.

14. A node device, characterized in that: The node device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the data message transmission method according to any one of claims 1 to 12.

15. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing the data message transmission method, and the program for implementing the data message transmission method is executed by a processor to implement the steps of the data message transmission method as described in any one of claims 1 to 12.

Citation Information

Cited By

  • Data message transmission method and apparatus, node device and readable storage medium

    WO2026061198A1