CN-121984926-A - Node communication method, device, equipment, storage medium and program product
Abstract
The invention provides a node communication method, a device, equipment, a storage medium and a program product, and relates to the technical field of data processing, wherein the method comprises the steps of receiving monitoring data of each node in a plurality of nodes, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the node, the plurality of nodes mutually transmit data, and the plurality of nodes comprise a second node; calculating a target quantized bit width of a corresponding node based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of each node and the initial quantized bit width of each node; and sending a corresponding target quantized bit width to each node, wherein the second node is used for sending communication data based on the received target quantized bit width. The invention can reduce the time delay of data processing.
Inventors
- WANG QIN
Assignees
- 中移动金融科技有限公司
- 中国移动通信集团有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260205
Claims (14)
- 1. A node communication method applied to a first node, comprising: Receiving monitoring data of each node in a plurality of nodes, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the node, the plurality of nodes mutually transmit data, and the plurality of nodes comprise a second node; Calculating a target quantized bit width of a corresponding node based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of each node and the initial quantized bit width of each node; And sending a corresponding target quantized bit width to each node, wherein the second node is used for sending communication data based on the received target quantized bit width.
- 2. The method of claim 1, wherein the monitoring data comprises historical packet loss rates, and wherein the calculating the target quantized bit widths for the respective nodes based on at least one of traffic load, channel signal-to-noise ratio, data priority, and historical packet loss rates for each node, and the initial quantized bit widths for each node, respectively, comprises: And under the condition that the historical packet loss rate of one node in the plurality of nodes is larger than a set packet loss threshold, calculating the target quantized bit width of the corresponding node based on at least one of the traffic load, the channel signal-to-noise ratio, the data priority and the historical packet loss rate of each node and the initial quantized bit width of each node.
- 3. The method of claim 1or2, wherein the plurality of nodes includes a second node, and the calculating the target quantized bit width of the corresponding node based on at least one of traffic load, channel signal-to-noise ratio, data priority, and historical packet loss rate of the each node, and the initial quantized bit width of the each node, respectively, includes: Calculating the communication urgency of the second node based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node; and calculating a target quantized bit width of the second node based on the communication urgency of the second node and the initial quantized bit width.
- 4. A node communication method applied to a second node, comprising: transmitting monitoring data of the second node to a first node, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node; Receiving a target quantized bit width sent by the first node, wherein the target quantized bit width is calculated based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node, and the initial quantized bit width of the second node; Encoding first communication data based on the target quantized bit width to obtain first encoded data, wherein the first communication data is data which is required to be sent to a third node by the first node, the third node is one node of a plurality of nodes, the plurality of nodes mutually transmit data, and the plurality of nodes comprise the second node; And sending the first coded data to the third node.
- 5. The method of claim 4, wherein the encoding the first communication data based on the target quantized bit width comprises: Obtaining the maximum value and the minimum value of a data sampling value, wherein the data sampling value is obtained by sampling the numerical values of a plurality of communication data; Compressing the first communication data based on the target quantized bit width, the maximum value and the minimum value to obtain first intermediate data; And adding the target quantized bit width to the data frame head of the first intermediate data to obtain the first encoded data.
- 6. The method of claim 4 or 5, wherein the method further comprises: Receiving second coded data sent by the third node; Extracting a first quantized bit width included in the second encoded data and a maximum value and a minimum value of a data sampling value of the third node; And reconstructing the second encoded data based on the first quantized bit width and the maximum value and the minimum value of the data sampling value of the third node to obtain second communication data.
- 7. The method of claim 6, wherein reconstructing the second encoded data based on the first quantized bit width, a maximum value and a minimum value of data sample values of the third node, to obtain second communication data, comprises: under the condition that the first quantized bit width is smaller than a set bit width threshold, reconstructing the second encoded data based on the first quantized bit width and the maximum value and the minimum value of the data sampling value of the third node to obtain first reconstructed data; Acquiring second reconstruction data and third reconstruction data, wherein the second reconstruction data is reconstruction data corresponding to third communication data, the third reconstruction data is reconstruction data corresponding to fourth communication data, the third communication data is communication data at a previous moment of the second communication data, and the fourth communication data is communication data at a later moment of the second communication data; The second communication data is calculated based on the first reconstruction data, the second reconstruction data, and the third reconstruction data.
- 8. A node communication device, for use in a first node, comprising: the receiving module is used for receiving monitoring data of each node in a plurality of nodes, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the node, the plurality of nodes mutually transmit data, and the plurality of nodes comprise a second node; The calculation module is used for calculating the target quantized bit width of the corresponding node respectively based on at least one of the traffic load, the channel signal-to-noise ratio, the data priority and the historical packet loss rate of each node and the initial quantized bit width of each node; And the sending module is used for sending the corresponding target quantized bit width to each node, and the second node is used for sending communication data based on the received target quantized bit width.
- 9. A node communication device, for use in a second node, comprising: The first sending module is used for sending monitoring data of the second node to the first node, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node; The first receiving module is used for receiving a target quantized bit width sent by the first node, wherein the target quantized bit width is obtained by calculating based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node and the initial quantized bit width of the second node; the encoding module is used for encoding first communication data based on the target quantized bit width to obtain first encoded data, the first communication data is data which is needed to be sent to a third node by the first node, the third node is one node of a plurality of nodes, the plurality of nodes mutually transmit data, and the plurality of nodes comprise the second node; And the second sending module is used for sending the first coded data to the third node.
- 10. An electronic device for use in a first node, comprising a transceiver and a processor, The transceiver is configured to receive monitoring data of each of a plurality of nodes, where the monitoring data includes at least one of traffic load, channel signal-to-noise ratio, data priority, and historical packet loss rate of the node, the plurality of nodes perform data transmission with each other, and the plurality of nodes include the second node; the processor is used for respectively calculating the target quantized bit width of the corresponding node based on at least one of the traffic load, the channel signal-to-noise ratio, the data priority and the historical packet loss rate of each node and the initial quantized bit width of each node; The transceiver is further configured to send a corresponding target quantized bit width to each node, and the second node is configured to send communication data based on the received target quantized bit width.
- 11. An electronic device for use in a second node, comprising a transceiver and a processor, The transceiver is configured to send monitoring data of a second node to a first node, where the monitoring data includes at least one of traffic load, channel signal-to-noise ratio, data priority, and historical packet loss rate of the second node; the processor is configured to receive a target quantized bit width sent by the first node, where the target quantized bit width is obtained by calculating based on at least one of a traffic load, a channel signal-to-noise ratio, a data priority, and a historical packet loss rate of the second node, and an initial quantized bit width of the second node; the processor is further configured to encode first communication data based on the target quantized bit width to obtain first encoded data, where the first communication data is data that the first node needs to send to a third node, the third node is one node of multiple nodes, the multiple nodes perform data transmission with each other, and the multiple nodes include the second node; the transceiver is further configured to transmit the first encoded data to the third node.
- 12. An electronic device comprising a processor, a memory and a program stored on the memory and executable on the processor, the program when executed by the processor implementing the steps of the node communication method according to any one of claims 1 to 7.
- 13. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the node communication method according to any of claims 1 to 7.
- 14. A computer program product comprising computer instructions which, when executed by a processor, implement the steps of the node communication method of any of claims 1 to 7.
Description
Node communication method, device, equipment, storage medium and program product Technical Field The present invention relates to the field of data processing technologies, and in particular, to a node communication method, apparatus, device, storage medium, and program product. Background The data distribution service (Data Distribution Service, DDS) enables data interaction between different nodes in the distributed system. In the related art, static transmission parameters (such as quantized bit width, data frame length, etc.) are configured for different nodes in advance, and the different nodes realize data transmission through the static transmission parameters. However, in different scenarios, the operation states of different nodes may change, for example, the load increases or the communication quality decreases, and at this time, the static transmission parameters may occupy the same channel resource for each data, and when the channel resources are insufficient, the situation of queuing data may occur, which results in a larger data transmission delay. It can be seen that the related art has a problem of a large data transmission delay. Disclosure of Invention The embodiment of the invention provides a node communication method, a device, equipment, a storage medium and a program product, which are used for solving the problem of larger data transmission delay in the related technology. To solve the above problems, the present invention is achieved as follows: In a first aspect, an embodiment of the present invention provides a node communication method, which is applied to a first node, including: Receiving monitoring data of each node in a plurality of nodes, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the node, the plurality of nodes mutually transmit data, and the plurality of nodes comprise a second node; Calculating a target quantized bit width of a corresponding node based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of each node and the initial quantized bit width of each node; And sending a corresponding target quantized bit width to each node, wherein the second node is used for sending communication data based on the received target quantized bit width. In a second aspect, an embodiment of the present invention provides a node communication method, applied to a second node, including: transmitting monitoring data of the second node to a first node, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node; Receiving a target quantized bit width sent by the first node, wherein the target quantized bit width is calculated based on at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node, and the initial quantized bit width of the second node; Encoding first communication data based on the target quantized bit width to obtain first encoded data, wherein the first communication data is data which is required to be sent to a third node by the first node, the third node is one node of a plurality of nodes, the plurality of nodes mutually transmit data, and the plurality of nodes comprise the second node; And sending the first coded data to the third node. In a third aspect, an embodiment of the present invention provides a node communication apparatus, including: the receiving module is used for receiving monitoring data of each node in a plurality of nodes, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the node, the plurality of nodes mutually transmit data, and the plurality of nodes comprise a second node; The calculation module is used for calculating the target quantized bit width of the corresponding node respectively based on at least one of the traffic load, the channel signal-to-noise ratio, the data priority and the historical packet loss rate of each node and the initial quantized bit width of each node; And the sending module is used for sending the corresponding target quantized bit width to each node, and the second node is used for sending communication data based on the received target quantized bit width. In a fourth aspect, an embodiment of the present invention provides a node communication apparatus, including: The first sending module is used for sending monitoring data of the second node to the first node, wherein the monitoring data comprises at least one of traffic load, channel signal-to-noise ratio, data priority and historical packet loss rate of the second node; The first receiving module is used for receiving a target quantized bit width sent by the first node, wherein the target quantized bit width is obtained by calculating