A data processing method and a first electronic device
By adopting point-to-point communication in the cluster and using model predictions to dynamically adjust communication configuration items, the problem of fixed parameters being unable to adapt to network changes is solved, thus improving data distribution efficiency and quality.
Patent Information
- Application Number
- CN202611373658.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-05
- Publication Date
- 2026-11-20
AI Technical Summary
In a cluster, communication configuration modes with fixed parameters cannot adapt to changes in the network environment in a timely manner, resulting in reduced data distribution efficiency.
A point-to-point communication method based on the target transmission protocol is adopted. By obtaining the time series of communication parameters, the future network state is predicted by the model, and communication configuration items such as jitter buffering, forward error correction, timeout retransmission, and multiplexing stream number are dynamically adjusted to optimize the communication parameters.
It improves data distribution efficiency, avoids communication lag caused by changes in the network environment, and enhances the quality and stability of data transmission.
Smart Images

Figure CN123145259A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and more specifically, to a data processing method and a first electronic device. Background Technology
[0002] Electronic devices in a cluster can distribute data between devices through various communication methods to reduce server bandwidth overhead. These communication methods often use fixed parameter configuration modes to set configuration items and adjust responses based on network events. When the network environment in which the cluster operates is unstable, the fixed parameter communication configuration mode often cannot adapt to changes in the network environment in a timely manner, resulting in reduced data distribution efficiency between devices in the cluster. Summary of the Invention
[0003] In view of this, the present disclosure provides a data processing method and a first electronic device.
[0004] The first aspect of this disclosure provides a data processing method applied to a first electronic device in an electronic device cluster, wherein the first electronic device interacts with a second electronic device in the cluster using a point-to-point communication method based on a target transmission protocol. The method includes:
[0005] The first time sequence of the first communication parameters of the first electronic device within the first time window; the first communication parameters include communication indicator items for point-to-point communication and protocol indicator items for the target transmission protocol;
[0006] The first time series is input into the model to generate a second time series of the first communication parameters within a second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network state of the first electronic device within the second time window.
[0007] Based on the second time series, control parameters are determined to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration items include point-to-point communication configuration items or target transmission protocol configuration items.
[0008] According to embodiments of this disclosure, control parameters are determined based on a second time series to configure at least one configuration item, including at least one of the following:
[0009] Based on the predicted communication network state represented by the second time series, data jitter information and jitter adjustment coefficient are determined; wherein, data jitter information represents the difference between the receiving time interval and the sending time interval of two adjacent data packets; based on data jitter information, jitter adjustment coefficient and preset data buffer duration, target buffer duration is determined; the target buffer duration is configured as the jitter buffer parameter corresponding to the target transmission protocol;
[0010] Based on the predicted communication network state represented by the second time series, the packet loss rate of the communication network is determined; based on the packet loss rate and the data type of data exchanged with the second electronic device, the forward error correction parameters are determined; the forward error correction parameters are configured as forward error correction configuration items corresponding to the target transmission protocol.
[0011] Based on the predicted communication network state represented by the second time series, the network delay of the communication network is determined; based on the network delay, the timeout retransmission time parameter is determined, and the timeout retransmission time parameter is configured to the timeout retransmission parameter corresponding to the target transmission protocol.
[0012] Based on the predicted communication network state represented by the second time series, the data transmission rate of the communication network is determined. Based on the data transmission rate, the multiplexing stream number parameter is determined, and the multiplexing stream number parameter is configured to the multiplexing parameter corresponding to the target transmission protocol.
[0013] The transmission protocol control parameters include at least one of the following: target buffer duration, forward error correction parameters, timeout retransmission time parameters, and multiplexed stream number parameters.
[0014] According to embodiments of this disclosure, control parameters are determined based on a second time series to configure at least one configuration item, including:
[0015] Based on the predicted communication network state represented by the second time series, the target neighbor connection score threshold is determined.
[0016] Configure the target neighbor connection score threshold to the neighbor connection score threshold corresponding to point-to-point communication, so as to determine the electronic devices that can serve as the neighbors of the first electronic device based on the configured threshold.
[0017] According to embodiments of this disclosure, control parameters are determined based on a second time series to configure at least one configuration item, including:
[0018] Based on the predicted communication network status represented by the second time series, the heat information corresponding to the target data block and the packet loss rate of the communication network are determined.
[0019] In response to the heat information meeting the first condition and the packet loss rate being less than the preset packet loss rate threshold, the first block is determined;
[0020] If the heat information does not meet the first condition or the packet loss rate is greater than or equal to the preset packet loss rate threshold, a second block is determined; the first block is greater than the second block.
[0021] Configure the first or second block as the data block parameters corresponding to point-to-point communication.
[0022] According to embodiments of this disclosure, control parameters are determined based on a second time series to configure at least one configuration item, including:
[0023] Based on the predicted communication network state represented by the second time series, the packet loss rate of the communication network is determined.
[0024] Acquire the data completion progress corresponding to the electronic device that established a point-to-point communication connection with the first electronic device;
[0025] Based on packet loss rate and data completion progress, determine the bandwidth allocation weight for each electronic device;
[0026] Based on bandwidth allocation weights, upload bandwidth is allocated to multiple electronic devices so that electronic devices with data completion progress and packet loss rate below the threshold receive upload bandwidth above the threshold.
[0027] Determine the upload rate limit based on the bandwidth allocation results;
[0028] Configure the upload rate limit to the upload rate limit parameter corresponding to peer-to-peer communication.
[0029] According to embodiments of this disclosure, the method further includes:
[0030] Based on at least some communication metrics and at least some protocol metrics, it is determined that the second electronic device that interacts with the first electronic device satisfies at least two of the following anomaly criteria:
[0031] The receiving capability of the second electronic device meets the first abnormal condition;
[0032] The transmission capability of the second electronic device meets the second abnormal condition;
[0033] The request processing capability of the second electronic device meets the third abnormal condition;
[0034] The network transmission capability of the second electronic device meets the fourth abnormal condition;
[0035] In response to the satisfaction of at least two anomaly determination conditions, the second electronic device is determined to be an abnormal node;
[0036] Adjust the data transmission mode between the first electronic device and the second electronic device according to the anomaly level corresponding to the abnormal node.
[0037] According to embodiments of this disclosure, adjusting the data transmission mode between the first electronic device and the second electronic device based on the anomaly level corresponding to the abnormal node includes:
[0038] In response to the first anomaly level, the connection weight corresponding to the second electronic device is reduced, thereby reducing the number of concurrent connections between the first and second electronic devices;
[0039] In response to the second abnormality level, stop sending data to the second electronic device, and allow receiving data sent by the second electronic device;
[0040] In response to the third anomaly level, data interaction between the first electronic device and the second electronic device is stopped.
[0041] According to embodiments of this disclosure, the method further includes at least one of the following:
[0042] Before configuring at least one configuration item, the control parameters are verified. If the control parameters exceed the preset value range of the corresponding configuration item, the control parameters are adjusted to the boundary value.
[0043] After configuring at least one configuration item, monitor the transmission throughput or disconnection status corresponding to the data interaction. In response to the transmission throughput being lower than the preset ratio for multiple consecutive sampling periods or the occurrence of consecutive disconnection events, reconfigure the corresponding configuration item using preset control parameters.
[0044] According to embodiments of this disclosure, the method further includes:
[0045] Determine the inference confidence of the model and send the inference confidence to the server;
[0046] In response to the model rollback command sent by the server, the current model is switched to the historical model version. The model rollback command is determined by the server based on the inference confidence sent by the electronic devices in the cluster. The server issues the model rollback command when the inference confidence of the electronic devices corresponding to a preset proportion is lower than the confidence threshold.
[0047] A second aspect of this disclosure provides a first electronic device that interacts with a second electronic device in a cluster using a point-to-point communication method based on a target transmission protocol, including:
[0048] At least one processor;
[0049] Memory, used to store intelligent programs;
[0050] The processor is used to load intelligent programs, which have the ability to invoke models;
[0051] The intelligent program is loaded and performs at least the following steps:
[0052] Obtain the first time series of the first communication parameters of the first electronic device within the first time window; the first communication parameters include communication index items for point-to-point communication and protocol index items for the target communication protocol;
[0053] The first time series is input into the model to generate a second time series of the first communication parameters within a second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network state of the first electronic device within the second time window.
[0054] Based on the second time series, control parameters are determined to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration items include point-to-point communication configuration items or target transmission protocol configuration items.
[0055] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0056] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0057] Figure 1 The illustration shows one of the flowcharts of a data processing method according to an embodiment of the present disclosure;
[0058] Figure 2 The second schematic diagram illustrates a data processing method according to an embodiment of the present disclosure;
[0059] Figure 3 The third schematic diagram illustrates a data processing method according to an embodiment of the present disclosure;
[0060] Figure 4 The diagram illustrates the interaction flow between electronic devices and the server in a cluster according to an embodiment of the present disclosure.
[0061] Figure 5 The illustration shows one of the schematic diagrams of a data processing method according to an embodiment of the present disclosure;
[0062] Figure 6 The illustration shows a second schematic diagram of a data processing method according to an embodiment of the present disclosure;
[0063] Figure 7 A block diagram of an electronic device according to an embodiment of the present disclosure is shown schematically. Detailed Implementation
[0064] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0065] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0066] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0067] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).
[0068] The following describes some of the technical terms used in the embodiments of this disclosure.
[0069] User Datagram Protocol (UDP) is a connectionless transport layer communication protocol that can send and receive data packets without establishing a handshake connection. It has low transmission latency, but it does not provide packet loss retransmission guarantee. In this solution, it is used as the underlying transmission carrier and combined with FEC, jitter buffer and other mechanisms to make up for the reliability defects.
[0070] Quick UDP Internet Connections (QUIC) is a next-generation transport protocol based on UDP, supporting multiplexing, connection migration, and 0-RTT handshake. In this solution, it is used to implement lightweight, high-speed transmission control.
[0071] Forward Error Correction (FEC) is a data redundancy coding technique where the sending end adds redundant coding blocks, and the receiving end directly recovers lost data packets based on the redundant data without waiting for retransmission. This scheme adopts hierarchical FEC, which dynamically adjusts the redundancy ratio according to the network packet loss rate.
[0072] Peer-to-peer (P2P) is a peer-to-peer network communication mode in which terminal nodes within a cluster directly transmit business data to each other, without relying entirely on a central server for forwarding, thus achieving distributed data distribution.
[0073] Proximal Policy Optimization (PPO) is a reinforcement learning algorithm that relies on a joint reward function to make policy decisions. This scheme is used to predict future network states based on temporal features and output UDP / P2P transmission control parameters.
[0074] This disclosure provides a data processing method applied to a first electronic device in an electronic device cluster. The first electronic device interacts with a second electronic device in the cluster using a point-to-point communication method based on a target transmission protocol. The method includes: obtaining a first time series of first communication parameters of the first electronic device within a first time window; the first communication parameters include communication index items of the point-to-point communication and protocol index items of the target transmission protocol; inputting the first time series into a model to generate a second time series of the first communication parameters within a second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network state of the first electronic device within the second time window; and determining control parameters based on the second time series to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration items include point-to-point communication configuration items or target transmission protocol configuration items.
[0075] Figure 1 The illustration shows one of the flowcharts of a data processing method according to an embodiment of the present disclosure.
[0076] In this embodiment of the disclosure, the data processing method is applied to a first electronic device in an electronic device cluster. The first electronic device interacts with a second electronic device in the cluster using a point-to-point communication method based on a target transmission protocol.
[0077] In the embodiments of this disclosure, an electronic device cluster can be a collection of devices consisting of multiple electronic devices. Each electronic device in the cluster can establish communication connections with the others and can perform batch data distribution and data interaction services within the cluster. For example, an electronic device cluster can be a collection of devices consisting of multiple terminal computers that deploy system images in batches in a data center environment.
[0078] In the embodiments of this disclosure, the first electronic device is the execution subject device that executes the data processing method in the electronic device cluster, and belongs to any electronic device in the cluster that participates in point-to-point communication; the second electronic device is another electronic device in the electronic device cluster that establishes a point-to-point communication connection with the first electronic device and performs data interaction, and the number can be one or more.
[0079] In the embodiments of this disclosure, the point-to-point communication method is a P2P communication method, which enables electronic devices within the cluster to directly transmit and share data blocks without completely relying on the central server; wherein, the target transmission protocol is the underlying communication transmission protocol supporting point-to-point communication.
[0080] like Figure 1 As shown, the data processing method includes operations S110 to S130.
[0081] Operation S110: Obtain the first time sequence of the first communication parameters of the first electronic device within the first time window; the first communication parameters include communication index items for point-to-point communication and protocol index items for the target transmission protocol.
[0082] In the embodiments of this disclosure, the first time window is a time interval used to collect historical communication parameters, and a time series is constructed from the communication parameters collected from this time window.
[0083] In the embodiments of this disclosure, the first communication parameter is a set of parameters reflecting the communication operation status of the electronic device, including two categories: one is communication indicator items in the dimension of point-to-point communication, and the other is protocol indicator items in the dimension of the underlying target transmission protocol.
[0084] In the embodiments of this disclosure, the communication metrics for peer-to-peer communication are collected from the P2P application layer and are indicators that characterize the operational status of peer-to-peer services, such as block hit rate, number of active neighbors, number of pending requests, download speed, upload speed, etc.
[0085] In the embodiments of this disclosure, the protocol metrics of the target transmission protocol are collected at the underlying communication transmission protocol stack level and are metrics that characterize the underlying network transmission status, such as packet loss rate, round-trip time, jitter, receive window, and send queue depth.
[0086] In the embodiments of this disclosure, the first time sequence is a time-series feature sequence formed by arranging the first communication parameters collected within the first time window in chronological order, carrying historical network status information.
[0087] Operation S120 inputs the first time series into the model to generate a second time series of the first communication parameters within the second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network state of the first electronic device within the second time window.
[0088] In the embodiments of this disclosure, the model may be an inference model deployed locally on the first electronic device for predicting the future network communication state of the cluster based on the first communication parameters, or a time series inference model constructed from lightweight neural networks, reinforcement learning models, etc.
[0089] In the embodiments of this disclosure, the second time window is a future time interval that is later than the first time window, and is the future time period that the model needs to predict.
[0090] In the embodiments of this disclosure, the second time series is the communication parameter prediction time series output by the model corresponding to the second time window, which is used to characterize the predicted future network communication state of the cluster.
[0091] In the embodiments of this disclosure, the predicted communication network status is obtained by the model based on historical communication time sequence reasoning, which is the network operation status of the cluster in the future time period, including network status such as packet loss, latency, jitter, and throughput.
[0092] Operation S130: Based on the second time series, determine control parameters to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration item includes a point-to-point communication configuration item or a target transmission protocol configuration item.
[0093] In the embodiments of this disclosure, the control parameters are parameters calculated based on the predicted communication network state and used to modify and adjust the communication configuration. They are divided into two categories: point-to-point communication control parameters and transmission protocol control parameters. Among them, the point-to-point communication control parameters are parameters used to configure P2P communication logic, such as neighbor connection scoring thresholds, data block parameters, and upload rate limit parameters.
[0094] In the embodiments of this disclosure, transmission protocol control parameters are parameters used to configure the underlying target transmission protocol's operating logic, such as jitter buffer parameters, forward error correction parameters, timeout retransmission parameters, multiplexing parameters, etc.
[0095] In the embodiments of this disclosure, the configuration item is a configuration attribute in the communication module of the electronic device that is rewritten based on the control parameters. It is divided into configuration items corresponding to point-to-point communication and configuration items corresponding to the target transmission protocol. After writing the control parameters, the configuration item attribute is changed, thereby changing the specific communication mode for data transmission between electronic devices in the cluster.
[0096] Specifically, the first electronic device acquires the first time series corresponding to its first communication parameters within a first time window. These first communication parameters include two different levels of indicators: one is communication indicators at the point-to-point communication level, used to characterize the operational status of point-to-point services; the other is protocol indicators at the target communication transmission protocol level, used to characterize the network operational status of the underlying transmission protocol. After the first time window, time-series data is obtained, formed by arranging the multi-dimensional communication parameters collected within that time window in chronological order, thus completely recording the communication status of the first electronic device within the first time window.
[0097] Secondly, the obtained first time series is input into the model, and the output is the second time series corresponding to the first communication parameters under the second time window. The model is deployed on the side of the first electronic device and can infer the network state of future periods based on the input historical time series data; the second time window is later than the first time window in the time dimension and represents the future period to be predicted; the output second time series is the predicted time series data, which is used to represent the predicted communication network state of the first electronic device in the future period.
[0098] Finally, based on the predicted communication network state represented by the second time series, control parameters are determined, and at least one configuration item is configured using these parameters. The control parameters are divided into point-to-point communication control parameters and transmission protocol control parameters, corresponding to two different types of configuration items: point-to-point communication control parameters are used to configure the configuration items corresponding to point-to-point communication, and transmission protocol control parameters are used to configure the configuration items corresponding to the target transmission protocol. After determining the control parameters based on the second time series, one type of configuration item can be adjusted, either the point-to-point communication configuration item or the target transmission protocol configuration item, or both can be adjusted simultaneously.
[0099] By employing the above method, a time series is constructed by simultaneously collecting communication parameters at two levels: point-to-point communication and target transmission protocol. The model is then used to predict the future state of the communication network in a timely manner. Based on the prediction results, the corresponding communication configuration items at the corresponding level are adjusted in a coordinated manner, avoiding the passive adjustment of parameters based solely on network events that have already occurred. At the same time, the configuration items of the communication network are determined based on the prediction results of the time series, avoiding data transmission efficiency and quality problems caused by the lag effect of adjusting the communication network configuration.
[0100] Figure 2 The second schematic diagram illustrates a data processing method according to an embodiment of the present disclosure.
[0101] According to an embodiment of this disclosure, in operation S130, control parameters are determined based on a second time series to configure at least one configuration item, including at least one of operations S210 to S240.
[0102] In embodiments of this disclosure, the target transmission protocol may be the UDP communication protocol, and the transmission protocol control parameters include at least one of the following: target buffer duration, forward error correction parameters, timeout retransmission time parameters, and multiplexed stream number parameters.
[0103] Operation S210: Based on the predicted communication network state characterized by the second time series, determine data jitter information and jitter adjustment coefficient; wherein, the data jitter information represents the difference between the receiving time interval and the sending time interval of two adjacent data packets; based on the data jitter information, the jitter adjustment coefficient, and the preset data buffer duration, determine the target buffer duration; configure the target buffer duration as the jitter buffer parameter corresponding to the target transmission protocol.
[0104] In the embodiments of this disclosure, the packet loss rate is the proportion of lost data packets to the total number of transmitted data packets during network transmission, characterizing the reliability of link transmission.
[0105] Specifically, the predicted network jitter information within a second time window, carried in the second time series, is used to characterize and predict the communication network status. First, the predicted UDP jitter index is extracted from the second time series. The UDP jitter index is obtained by the difference between the time interval between receiving and sending adjacent data packets. The jitter adjustment coefficient α is output by model inference. The jitter adjustment coefficient takes values within a preset range and adapts to different network jitter scenarios identified by the second time series. The preset data buffer duration is a pre-set baseline jitter buffer duration.
[0106] Furthermore, the target buffer duration is calculated by multiplying the dynamic jitter buffer duration by the preset data buffer duration and then by adding α × data jitter information; the target buffer duration does not exceed the preset maximum buffer threshold. The calculated target buffer duration is then written into the jitter buffer parameter configuration item of the lightweight UDP protocol.
[0107] In some scenarios, when a high level of network jitter is predicted, a larger target buffer duration is used to absorb fluctuations in packet arrival time; when a low level of network jitter is predicted, a smaller target buffer duration is used to reduce data reception latency. This reduces false positives for packet loss in out-of-order packet arrival scenarios, while avoiding the introduction of additional transmission latency due to an excessively large buffer setting.
[0108] In operation S220, based on the predicted communication network state characterized by the second time series, the packet loss rate of the communication network is determined; based on the packet loss rate and the data type of data exchanged with the second electronic device, forward error correction parameters are determined; and the forward error correction parameters are configured as forward error correction configuration items corresponding to the target transmission protocol.
[0109] In the embodiments of this disclosure, data type refers to the category of interactive data, which can distinguish different data categories such as key data blocks and ordinary business data blocks.
[0110] In the embodiments of this disclosure, the forward error correction parameter, or FEC parameter, represents the redundancy ratio of the forward error correction coding, which is used to recover some packet loss at the receiving end without retransmission.
[0111] Specifically, based on the predicted communication network state represented by the second time series, the packet loss rate of the communication network in the second time window is determined. Simultaneously, the data types of the currently interacting data blocks are distinguished, categorized into critical data blocks and ordinary service data blocks; critical data blocks include, for example, mirror indexes and header control information, while ordinary service data blocks are mirror body data. Combining the predicted packet loss rate and the data types currently being transmitted, forward error correction parameters (FEC redundancy rate) are determined. Specifically, if the predicted packet loss rate is in a low range, a relatively high FEC parameter is configured for critical data blocks, and a lower FEC parameter is configured for ordinary service data blocks; if the predicted packet loss rate increases, the overall FEC parameter is increased, but not exceeding a pre-set redundancy limit; if the predicted packet loss rate decreases, the FEC parameter is decreased to save bandwidth. Finally, the determined forward error correction parameters are written into the forward error correction configuration items of the UDP communication protocol.
[0112] By adopting the above method, error correction redundancy is configured differently for data of different importance, which improves error correction capability and reduces retransmission pressure during periods of high predicted packet loss risk; and reduces redundancy overhead when the communication link quality is good, thus avoiding communication bandwidth being occupied by invalid error correction data.
[0113] Operation S230: Based on the predicted communication network state characterized by the second time series, determine the network delay of the communication network; based on the network delay, determine the timeout retransmission time parameter, and configure the timeout retransmission time parameter as the timeout retransmission parameter corresponding to the target transmission protocol.
[0114] In the embodiments of this disclosure, the timeout retransmission time parameter is used to specify the maximum waiting time for a response after a data packet is sent. If the time exceeds this limit, the data packet is determined to be abnormal, and a retransmission mechanism is triggered.
[0115] Specifically, the network latency, or UDP round-trip time, in the predicted communication network state is obtained from the second time series. Network latency is the time required for a data packet to be received from its occurrence. Based on the predicted network latency, a timeout retransmission time parameter is mapped, and this parameter is constrained within a preset value range. The higher the network latency, the longer the timeout retransmission time parameter is set; the lower the predicted network latency, the smaller the timeout retransmission time parameter is configured.
[0116] Specifically, when the network latency of the communication link in the cluster is predicted to be large, a longer timeout retransmission time parameter is used to avoid misjudging packet data loss and triggering unnecessary retransmissions due to slow network transmission. When the network latency of the communication link is small, the timeout retransmission time parameter is shortened, which can identify lost data packets more quickly, initiate retransmission in a timely manner, and reduce transmission downtime.
[0117] In operation S240, based on the predicted communication network state characterized by the second time series, the data transmission rate of the communication network is determined, and based on the data transmission rate, the multiplexing stream number parameter is determined, and the multiplexing stream number parameter is configured as the multiplexing parameter corresponding to the target transmission protocol.
[0118] Specifically, the data transmission rate is obtained from the predicted communication network state represented by the second time series. This data transmission rate includes both predicted upload and download rates, reflecting the overall future throughput capacity of the communication link. When the predicted data transmission rate of the communication link is high and link resources are abundant, the multiplexing stream count parameter is increased, allowing a single UDP port to carry more transmission streams and transmit multiple sets of data in parallel. When the predicted data transmission rate of the link is low and the link load is high, the multiplexing stream count parameter is decreased to reduce the number of concurrent transmission streams within a single port, preventing multiple streams from competing for resources and causing congestion. The multiplexing stream count parameter is limited to a preset upper and lower limit. Finally, the multiplexing stream count parameter is configured to the multiplexing parameters corresponding to the target transmission protocol.
[0119] By adopting the above method, the number of concurrent streams per port of electronic devices can be dynamically adjusted based on the predicted data transmission rate of the communication link. When the communication link is sufficient, the transmission capacity can be fully utilized; when the link is strained, the scale of concurrent streams can be suppressed to avoid the overall transmission efficiency deterioration caused by multi-stream competition.
[0120] According to an embodiment of this disclosure, in operation S130, control parameters are determined based on the second time series to configure at least one configuration item, and operation S250 is also included.
[0121] Operation S250: Based on the predicted communication network state represented by the second time series, determine the target neighbor connection score threshold; configure the target neighbor connection score threshold as the neighbor connection score threshold corresponding to the point-to-point communication, so as to determine the electronic device that can be the neighbor of the first electronic device according to the configured threshold.
[0122] In the embodiments of this disclosure, the target neighbor connection score threshold is a score threshold used to filter P2P communication nodes; only when the node health score of other electronic devices is greater than or equal to the threshold, is it allowed to establish a point-to-point communication connection with the first electronic device.
[0123] Specifically, based on the predicted communication network state represented by the second time series, a target neighbor connection score threshold is obtained. This target neighbor connection score threshold is configured as the neighbor connection score threshold for point-to-point communication, used to determine whether other electronic devices in the cluster can serve as neighbors of the first electronic device. The neighbor selection score threshold is dynamically adjusted based on the future network state predicted by the model, rather than using a fixed target neighbor connection score threshold. When a poor future network environment is predicted, the target neighbor connection score threshold can be increased, allowing only healthier electronic devices to establish P2P connections with the first electronic device, thus avoiding transmission risks from poor-quality peer nodes. When good network conditions are predicted, the target neighbor connection score threshold can be appropriately decreased, expanding the selection range of accessible electronic devices and fully utilizing cluster node resources.
[0124] By adopting the above method, the P2P communication connection selection strategy can be dynamically adapted to the predicted network state, reducing transmission interruptions and rate drops caused by low-quality neighbors, and improving the overall stability of point-to-point data interaction.
[0125] Figure 3 The third schematic diagram illustrates a data processing method according to an embodiment of the present disclosure.
[0126] like Figure 3 As shown, according to an embodiment of the present disclosure, in operation S130, control parameters are determined based on the second time series to configure at least one configuration item, including operations S310-S340.
[0127] Operation S310 determines the heat information corresponding to the target data block and the packet loss rate corresponding to the communication network based on the predicted communication network state represented by the second time series.
[0128] In the embodiments of this disclosure, the target data block is a data unit that has been split and used for transmission in point-to-point communication. For example, system images and large files are divided into several data blocks and distributed between nodes.
[0129] In the embodiments of this disclosure, the heat information characterizes the frequency with which a target data block is requested and retrieved by nodes within the cluster; the higher the number of requests, the higher the heat of the corresponding data block.
[0130] Operation S320: In response to the heat information meeting the first condition and the packet loss rate being less than the preset packet loss rate threshold, the first block is determined.
[0131] Operation S330: In response to the heat information not meeting the first condition or the packet loss rate being greater than or equal to the preset packet loss rate threshold, determine the second block; the first block is greater than the second block.
[0132] In the embodiments of this disclosure, the first condition is a judgment condition set for the heat information, used to distinguish between high heat data blocks and low heat data blocks. For example, data blocks with a heat value higher than a preset heat threshold are high heat data blocks.
[0133] In the embodiments of this disclosure, the first block is a larger data transmission block, suitable for high-traffic scenarios with good network quality, reducing the number of interactive requests. The second block is a smaller data transmission block, suitable for low-traffic or low-packet-loss weak network scenarios, reducing retransmission losses caused by packet loss.
[0134] Operate S340 to configure the first or second block as the data block parameters corresponding to point-to-point communication.
[0135] In the embodiments of this disclosure, the data block parameter is a configuration item corresponding to point-to-point communication, which stores the block size and controls the capacity of a single data unit during P2P transmission.
[0136] Specifically, the predicted packet loss rate of the communication network is obtained by parsing the second time series; simultaneously, the popularity information of the target data block to be transmitted is statistically obtained, which represents the frequency with which the data block is requested for access by other electronic devices in the cluster. When the popularity of the target data block meets the first condition (belonging to a high-popularity data block), and the predicted packet loss rate is less than the preset packet loss rate threshold, it is determined to belong to a high-popularity and good network quality scenario, and a larger first block is selected as the transmission block; a larger block can reduce the number of request message interactions between P2P nodes and reduce scheduling overhead. When the target data block does not meet the first condition (belonging to a low-popularity data block), or the predicted packet loss rate is greater than or equal to the preset packet loss rate threshold, it is determined to belong to a weak network quality or low-popularity scenario, and a smaller second block is selected, wherein the capacity of the second block is smaller than that of the first block; using a smaller data block can limit the data size of a single transmission, and once packet loss occurs, only a small data unit needs to be retransmitted, reducing the retransmission overhead caused by packet loss.
[0137] Furthermore, the size of the selected first or second block is configured as a data block parameter configuration item. Subsequently, when the first electronic device and the second electronic device engage in P2P data interaction, the mirrored data is segmented and transmitted according to the configured block size.
[0138] For example, if the model predicts that the packet loss level of the future communication link will be low, and the current data block is a high-frequency data block that many electronic devices in the cluster need to obtain, then a large block will be configured; if it predicts that the communication link will have a high packet loss rate, regardless of the frequency of the data block, it will switch to a small block to avoid a large number of retransmissions caused by packet loss of large blocks; for low-frequency data blocks with very low access frequency, even if the network quality of the communication link is good, small blocks will still be used for transmission.
[0139] According to an embodiment of this disclosure, in operation S130, control parameters are determined based on a second time series to configure at least one configuration item, including operations S410-S460.
[0140] Operation S410 determines the packet loss rate of the communication network based on the predicted communication network state characterized by the second time series.
[0141] Operate S420 to obtain the data completion progress corresponding to the electronic device that has established a point-to-point communication connection with the first electronic device.
[0142] Operation S430 determines the bandwidth allocation weight for each electronic device based on packet loss rate and data completion progress.
[0143] Operation S440 assigns bandwidth weights to multiple electronic devices, ensuring that electronic devices with data completion progress and packet loss rates below a threshold receive upload bandwidth above that threshold.
[0144] Operate S450 to determine the upload rate limit based on the bandwidth allocation results.
[0145] Operate S460 to configure the upload rate limit to the upload rate limit parameters corresponding to point-to-point communication.
[0146] Specifically, based on the predicted communication network state represented by the second time series, the packet loss rate of the communication network is determined; the data completion progress of each electronic device that has established a point-to-point communication connection with the first electronic device is obtained; the bandwidth allocation weight corresponding to each electronic device is calculated by combining the predicted packet loss rate and the data completion progress of each electronic device; upload bandwidth is allocated to multiple electronic devices according to the bandwidth allocation weight, so that electronic devices with data completion progress and packet loss rate both below the threshold can obtain higher upload bandwidth; and the upload rate limit is determined according to the bandwidth allocation result, and the upload rate limit is configured as the upload rate limit parameter corresponding to point-to-point communication.
[0147] For example, the first electronic device extracts the predicted packet loss rate of the communication network from the second time series. Simultaneously, it collects data transmission completion information from each second electronic device that has established a P2P connection during data transmission interactions, thus obtaining the data completion progress.
[0148] Furthermore, the bandwidth allocation weight for each connected second electronic device is determined according to a calculation method where bandwidth allocation weight is inversely proportional to node completion progress and UDP packet loss rate. A lower data completion progress indicates a larger amount of data to be transmitted by the electronic device; a lower predicted packet loss rate indicates a better communication network quality for the electronic device. These two factors jointly determine the bandwidth allocation weight. Based on the calculated bandwidth allocation weight, electronic devices with low data completion progress and predicted packet loss rates below a threshold are allocated more upload bandwidth than the threshold; nodes with already high progress or poor predicted network quality are allocated relatively less upload bandwidth.
[0149] Finally, based on the bandwidth allocation results described above, the upload rate limit for electronic devices is determined and configured in the P2P communication upload rate limit configuration item. When electronic devices subsequently upload data to perform P2P communication, the configured bandwidth limit will not be exceeded.
[0150] According to embodiments of this disclosure, the data processing method further includes operations S510 to S530.
[0151] In operation S510, based on at least some communication indicator items and at least some protocol indicator items, it is determined that the second electronic device that interacts with the first electronic device satisfies at least two of the following anomaly determination conditions:
[0152] The receiving capability of the second electronic device meets the first abnormal condition;
[0153] The transmission capability of the second electronic device meets the second abnormal condition;
[0154] The request processing capability of the second electronic device meets the third abnormal condition;
[0155] The network transmission capability of the second electronic device meets the fourth abnormal condition.
[0156] In the embodiments of this disclosure, the anomaly determination condition is a set of determination conditions used to determine whether the second electronic device is an abnormal node; the set of determination conditions includes multiple sub-conditions, and if at least two conditions are met, the node is determined to be abnormal.
[0157] In the embodiments of this disclosure, the receiving capability meets the first abnormal condition, which indicates that the data receiving related indicators of the second electronic device are abnormal, such as the receiving window being exhausted or the sending queue being piled up, which indicate insufficient receiving processing capability.
[0158] In the embodiments of this disclosure, the transmission capability meets the second abnormal condition, which indicates that the data packet transmission queue of the second electronic device continues to accumulate, indicating that the transmission processing capability is overloaded.
[0159] In the embodiments of this disclosure, the request processing capability meets the third abnormal condition, which indicates that the number of P2P requests to be processed by the second electronic device is too high, accompanied by network packet loss, and the node's request processing capability is insufficient.
[0160] In the embodiments of this disclosure, the network transmission capability meets the fourth abnormal condition, which indicates that the second electronic device continuously experiences high latency and high packet loss, and the transmission capability of the network link itself deteriorates.
[0161] Operation S520, in response to the satisfaction of at least two anomaly determination conditions, determines the second electronic device as an abnormal node.
[0162] Operate S530 to adjust the data transmission mode between the first electronic device and the second electronic device according to the anomaly level corresponding to the abnormal node.
[0163] In the embodiments of this disclosure, the anomaly level is a classification of the severity of the fault of the abnormal node, including a first anomaly level, a second anomaly level, and a third anomaly level. The higher the level, the stricter the control and handling.
[0164] In the embodiments of this disclosure, the data transmission mode refers to the communication mode of data interaction between the first electronic device and the second electronic device, such as the connection weight between device nodes, concurrent connections, whether uploading is allowed, whether downloading is allowed, and whether disconnection is allowed.
[0165] Specifically, the first abnormal condition indicates that the UDP receive window of the second electronic device is 0 and the UDP send queue depth is greater than the first queue depth threshold, and this state continues for more than the first preset duration. The second abnormal condition indicates that the UDP send queue depth of the second electronic device exceeds the second queue depth threshold, and this state continues for more than the second preset duration. At this time, the data transmission queue of the second device is backlogged, and the data transmission capacity is overloaded. The third abnormal condition indicates that the number of pending requests of the second electronic device exceeds the pending request threshold, and the UDP packet loss rate is higher than the packet loss rate threshold. This state continues for more than the third preset duration, indicating that the P2P communication requests of the second electronic device are backlogged and the processing capacity is insufficient. The fourth abnormal condition indicates that the second electronic device is continuously in a network state with high round-trip latency and high packet loss rate, and this network state continues for more than the fourth preset duration. At this time, the transmission capacity of the communication link of the second electronic device is poor.
[0166] Furthermore, the number of times each second electronic device satisfies the above-mentioned abnormal conditions is counted. If a second electronic device satisfies any two or more of the above abnormal determination conditions, then the second electronic device is determined to be an abnormal node.
[0167] After identifying the abnormal node, the abnormal node is further classified into corresponding abnormality levels based on the severity of the abnormality. The abnormality level represents the severity of the node failure, and different abnormality levels correspond to different data transmission modes. According to the abnormality level, the data transmission mode between the first electronic device and the second electronic device is adjusted, including adjusting connection weights, the number of concurrent connections, upload / download permissions, and disconnecting connections.
[0168] For example, the first abnormal condition may be: the UDP receive window of the second electronic device is 0, and the UDP send queue depth is >100, and the duration of this state is ≥2 seconds; the second abnormal condition may be: the UDP send queue depth of the second electronic device is >200, and the duration of this state is ≥3 seconds; the third abnormal condition may be: the number of P2P pending requests of the second electronic device is >200, and the UDP packet loss rate is >12%, and the duration of this state is ≥3 seconds; the fourth abnormal condition may be: the RTT of the second electronic device is >800ms and the UDP packet loss rate is >10%.
[0169] For example, if a second electronic device simultaneously experiences a persistently excessive sending queue depth, an excessively high number of pending requests, and packet loss, satisfying both the second and third abnormal conditions, it is determined to be an abnormal node. The severity of the abnormality is further assessed, a corresponding abnormality level is assigned, and the corresponding transmission mode adjustment is executed. If a second electronic device only experiences a single indicator that briefly exceeds the limit, satisfying only one abnormal condition, it will not be determined to be an abnormal node, and no transmission mode adjustment will be performed, thus avoiding false isolation caused by momentary network jitter.
[0170] By employing the above method, multiple anomaly detection conditions are used to jointly determine faults, avoiding misjudgments caused by instantaneous indicator fluctuations. The tiered adjustment of the transmission mode not only limits the negative impact of abnormal nodes but also avoids abruptly cutting off node communication. Once the various indicators of the second electronic device return to normal, the corresponding transmission mode restrictions can be lifted, restoring normal P2P interaction. This avoids relying on a single dimension to discover faulty nodes during cluster device communication, as abnormal nodes can easily cause request backlogs and affect the efficiency of communication network distribution.
[0171] According to an embodiment of this disclosure, in operation S530, the data transmission mode between the first electronic device and the second electronic device is adjusted according to the abnormality level corresponding to the abnormal node, including operations S5310 to S5330.
[0172] Operation S5310, in response to the first abnormality level, reduces the connection weight corresponding to the second electronic device, thereby reducing the number of concurrent connections between the first electronic device and the second electronic device.
[0173] Operation S5320, in response to the second abnormality level, stops sending data to the second electronic device and allows receiving data sent by the second electronic device.
[0174] Operation S5330, in response to the third anomaly level, stops data interaction between the first electronic device and the second electronic device.
[0175] In the embodiments of this disclosure, the first anomaly level is a mild anomaly level, where the node is abnormal but not completely failed, and no connection is cut off, only rate limiting and weight reduction processing is performed.
[0176] In the embodiments of this disclosure, the connection weight is a weight value when selecting neighbor nodes in P2P scheduling. The lower the weight, the lower the probability of being selected as a data interaction object.
[0177] In the embodiments of this disclosure, the number of concurrent connections refers to the number of data transmission connections established simultaneously between the first electronic device and the second electronic device.
[0178] In the embodiments of this disclosure, the second anomaly level is a moderate anomaly level, which stops sending and uploading data to the node, but still receives data sent by the node and retains the download capability.
[0179] In the embodiments of this disclosure, the third anomaly level is a severe anomaly level, which completely cuts off all data interaction between the first electronic device and the second electronic device.
[0180] Specifically, when the second electronic device is determined to be an abnormal node of the first abnormal level, the connection weight corresponding to the second electronic device is reduced, the number of concurrent connections between the first and second electronic devices is reduced, and the connection is not completely disconnected; when the second electronic device is determined to be an abnormal node of the second abnormal level, data transmission to the second electronic device is stopped, but data reception from the second electronic device is still allowed, that is, the download output capability of the node is preserved; when the second electronic device is determined to be an abnormal node of the third abnormal level, all data interaction between the first and second electronic devices is stopped.
[0181] For example, for the first anomaly level, if the second electronic device simultaneously meets both the second and fourth anomaly conditions, it is determined to be at the first anomaly level. The first electronic device performs the following actions: It reduces the P2P communication connection weight corresponding to the second electronic device, decreasing the number of concurrent connections between them, but still maintaining the data interaction path between them. The second electronic device can still participate in P2P transmission, but its probability of being selected in subsequent neighbor scheduling is reduced, and the number of concurrent connections is compressed, reducing the interference of the abnormal node on its own transmission; if the various indicators of the second electronic device return to the normal range for several consecutive sampling periods, the connection weight and the number of concurrent connections are automatically restored.
[0182] For example, for the second anomaly level, if the second electronic device simultaneously meets the first, second, and third anomaly conditions, it is determined to be at the second anomaly level. The first electronic device performs the following actions: it stops sending data to the second electronic device and ceases uploading mirrored block data to it; however, it still receives data pushed by the second electronic device to the first electronic device, maintaining the communication link. That is, it no longer provides data to the abnormal node to avoid request backlog caused by continuously sending data to nodes with insufficient processing capacity; at the same time, if the abnormal node itself still has available data, it can still output data to the first electronic device to reuse cluster node resources as much as possible. If the node's indicators return to normal for several consecutive sampling periods, bidirectional data transmission and reception are resumed.
[0183] For example, for the third level of anomaly, if the second electronic device meets all four anomaly criteria, resulting in prolonged queue congestion, high latency, and high packet loss, it is classified as the third level of anomaly. The first electronic device ceases all data interaction with the second electronic device and disconnects the P2P connection; simultaneously, the first electronic device can also report this anomaly node information to the central server.
[0184] By adopting the above method, the identified abnormal nodes are divided into first, second and third abnormality levels. Differentiated transmission mode adjustments are then implemented according to the level, such as reducing connection weight to reduce concurrent connections, receiving data but not sending data, and completely cutting off bidirectional data interaction. This allows for gradient handling based on the severity of node abnormality, avoiding cluster link oscillation caused by direct disconnection. While avoiding the negative impact of abnormal nodes on local transmission, it also preserves the available connection resources of the P2P cluster to the greatest extent.
[0185] According to embodiments of this disclosure, the data processing method further includes at least one of operations S140 and S150.
[0186] In operation S140, before configuring at least one configuration item, the control parameters are verified. In response to the control parameters exceeding the preset value range of the corresponding configuration item, the control parameters are adjusted to the boundary value.
[0187] In the embodiments of this disclosure, control parameter verification is used to check whether the parameters fall within a predefined range of legal values before the control parameters output by the model are written into the configuration item.
[0188] In the embodiments of this disclosure, the preset value range is the upper and lower boundaries of the legal values of each configuration item, which are preset to prevent transmission failures caused by unreasonable parameter input.
[0189] In the embodiments of this disclosure, the boundary value is the upper or lower limit of a preset value range; when the parameter exceeds the range, the parameter is clamped to the nearest boundary value.
[0190] Specifically, before writing the control parameters into the configuration items, the legality of the control parameters output by the model is verified. If the control parameter exceeds the preset value range of the corresponding configuration item, the control parameter is adjusted to the boundary value corresponding to the range to prevent the illegal parameters output by the model inference from directly affecting the transmission module and to prevent communication network anomalies caused by abnormal parameters.
[0191] In some scenarios, if a series of interruption events are detected and data transmission stops, all control parameters of the model output will be abandoned, and the system will switch to preset control parameters. At the same time, the system will mark that there is an anomaly in the current model inference and trigger the local model to recalibrate.
[0192] Operation S150: After configuring at least one configuration item, monitor the transmission throughput or disconnection status corresponding to the data interaction. In response to the transmission throughput being lower than a preset ratio for multiple consecutive sampling periods or the occurrence of consecutive disconnection events, reconfigure the corresponding configuration item using preset control parameters.
[0193] In the embodiments of this disclosure, the transmission throughput refers to the amount of data transmitted by the electronic device per unit time, which characterizes the actual transmission efficiency.
[0194] In the embodiments of this disclosure, the sampling period is the time interval for periodically collecting communication parameters and monitoring transmission status.
[0195] In the embodiments of this disclosure, the preset ratio is a throughput judgment threshold, for example, the actual throughput is less than 50% of the target throughput, which is used to identify transmission performance degradation.
[0196] In the embodiments of this disclosure, a data transmission interruption event refers to an abnormal event in which data transmission in the cluster stops and throughput is almost zero.
[0197] Specifically, after the configuration items are configured, the transmission throughput and disconnection status during the data interaction process are continuously monitored. When the transmission throughput is lower than the preset ratio for multiple consecutive sampling periods, or when disconnection events occur continuously, the control parameters output by the model are abandoned, and the configuration items are reconfigured using the preset control parameters to achieve local performance fallback.
[0198] For example, if the model's current inference output jitter buffer parameter calculation result is 260ms, and the preset value range for the jitter buffer is 60ms to 200ms, this output parameter exceeds the upper limit. Before writing this parameter into the jitter buffer configuration item, a validation is performed to identify the parameter exceeding the limit, and the parameter is directly adjusted to the upper limit boundary value of 200ms before being written into the configuration. As another example, if the model outputs a maximum number of simultaneous upload connections for P2P communication of 25, and the preset range for this configuration item is 1 to 20, then the parameter is clamped to the boundary of 20. If the model's output parameter falls within the preset value range, then this parameter is directly used for configuration. By adopting the above method, it is ensured that all parameters written to the module are within a reasonable range, avoiding communication network anomalies caused by the model outputting parameters outside the range.
[0199] In some scenarios, after the parameters are configured, the actual transmission throughput and disconnection events are continuously monitored. The sampling period is 50ms, and three consecutive sampling periods totaling 150ms serve as the monitoring and judgment window. The preset ratio is 50% of the target throughput.
[0200] For example, after the model outputs a set of control parameters to complete the configuration, monitoring for three consecutive 50ms sampling periods (total duration 150ms) shows that the actual transmission throughput only reaches 40% of the target throughput, which is lower than the preset ratio of 50%. At this point, all control parameters output by the model are discarded, and pre-saved preset control parameters are directly loaded, such as UDP sending window 8192B, jitter buffer 80ms, maximum P2P upload connection number 8, etc., and all configuration items are reconfigured.
[0201] By adopting the above method, boundary verification is performed on the parameters before configuring the control parameters, and out-of-bounds control parameters are corrected to boundary values. After the parameters are configured, the throughput and disconnection status are continuously monitored. When the communication network deteriorates, the parameters are reverted to the preset control parameters. This forms a local dual protection from the two levels of parameter input and actual operation effect, which can avoid the problems of illegal parameters output by the model and legal parameter values but poor actual network adaptation effect, and prevent the model prediction deviation from directly causing data transmission failure.
[0202] According to embodiments of this disclosure, the data processing method further includes operation S160.
[0203] Operation S160 determines the inference confidence of the model and sends the inference confidence to the server; in response to the model rollback command sent by the server, the current model is switched to the historical model version; the model rollback command is determined by the server based on the inference confidence sent by the electronic devices in the cluster. The server issues the model rollback command when the inference confidence of the electronic devices corresponding to a preset proportion is lower than the confidence threshold.
[0204] In the embodiments of this disclosure, the inference confidence level characterizes the credibility of the local model's current network state prediction result. The lower the confidence level, the less reliable the model's inference result.
[0205] In the embodiments disclosed herein, the server is a cluster-side backend server, such as a federated learning server, which receives inference confidence reports from each terminal, performs global model anomaly detection, and issues model control instructions.
[0206] In the embodiments of this disclosure, the model rollback instruction is a command issued by the server to the electronic device.
[0207] In the embodiments of this disclosure, the historical model version is a previously verified and saved stable model version, which is used as a fallback in case the current model is abnormal.
[0208] In the embodiments of this disclosure, the preset ratio is the threshold for judging whether the global model is abnormal. For example, if more than 15% of the electronic devices in the cluster report low confidence, then the global model is judged to be abnormal.
[0209] Figure 4 The diagram illustrates the interaction flow between electronic devices and the server in a cluster according to an embodiment of the present disclosure.
[0210] Specifically, such as Figure 4 As shown, the first electronic device determines the inference confidence of the local model and reports the inference confidence to the server; it receives a model rollback command from the server and, upon receiving the command, switches the currently used model to a historical model version. The model rollback command is generated by the server based on the inference confidence reported by each electronic device in the cluster. When the inference confidence reported by a preset proportion of electronic devices in the cluster falls below a confidence threshold, the server determines that the cluster's model is abnormal, issues a model rollback command, and reverts the model version to a historical version.
[0211] In the embodiments disclosed herein, the server is a backend service device deployed on the service side of the electronic device cluster. It may consist of one or more physical / virtual servers and can be used for functions such as file source distribution, P2P node scheduling and management, federated learning global training, global model anomaly detection, model version control and distribution, etc. It interacts and cooperates with each first electronic device (terminal device) in the cluster to complete the cluster batch data distribution, model iteration and global risk control.
[0212] Figure 5 The illustration shows one of the schematic diagrams of a data processing method according to an embodiment of the present disclosure.
[0213] like Figure 5 As shown, it consists of two parts: a UDP server and a terminal cluster. The UDP server deploys raw data and CDN distribution, a P2PTracker server, a federated learning collaboration module server, and clustering federated learning units; it implements initial data distribution, P2P node scheduling, abnormal node information reception, breakpoint resumption, federated model aggregation training, global model anomaly detection, and model version control and distribution. The server mainly transmits signaling and model data; business data is transmitted between terminals via P2P, and high-volume business packets are not forwarded.
[0214] The terminal cluster consists of multiple terminal computers, i.e., electronic devices, with P2P transmission links established between the terminals. Each terminal internally sets up a UDP+P2P hybrid transmission network, integrating UDP+P2P joint monitoring, time-series AI prediction and inference, security circuit breaker protection, lightweight QUIC transmission control, P2P adaptive scheduling, multimodal slow node isolation, and a federated learning collaborative module client.
[0215] Each terminal computer periodically collects the first communication parameters, including UDP protocol layer indicators and P2P layer indicators, to construct the first time series, which is then input into the time series AI prediction and inference unit; the time series AI prediction and inference unit outputs various control parameters for UDP and P2P.
[0216] like Figure 5 As shown, the safety fuse protection unit implements a local two-layer fuse mechanism: it verifies the validity of the output control parameters, and clamps them to the boundary if the parameters exceed the limits; after the parameters are configured, it monitors the throughput and interruption, and falls back to the preset control parameters when a problem occurs in the communication network.
[0217] Among them, lightweight QUIC transmission control and P2P adaptive scheduling perform adaptive control of UDP-P2P hybrid transmission based on control parameters. The multimodal slow node isolation unit identifies abnormal nodes based on the first communication parameters, classifies them into three levels of abnormality, performs corresponding gradient transmission control, and reports abnormal node information to the P2PTracker server.
[0218] like Figure 5 As shown, the federated learning collaboration module client reports model gradients and inference confidence, but not raw communication metrics. When the inference confidence of a preset proportion of terminals in the cluster falls below a threshold, the UDP server determines that the global model is abnormal, issues a model rollback command, and the terminal receives the command to switch to a historically stable model, completing the third-layer global circuit breaker. The terminal and the UDP server complete signaling interaction, and the terminals complete P2P business data exchange, realizing a complete closed-loop hybrid transmission adaptive control.
[0219] The internal inference timing of the time series inference model in the embodiments of this disclosure will be described below.
[0220] Figure 6 The diagram illustrates a second schematic representation of a data processing method according to an embodiment of the present disclosure.
[0221] Step 1: Collect the first communication parameter according to the 50ms collection period. The first communication parameter includes multi-dimensional communication indicators such as UDP protocol layer indicators and P2P layer indicators.
[0222] Step 2: Using a sliding window of 3 to 5 periods, the collected multidimensional communication indicators are constructed into a first time series, and the sequence features are weighted through an attention mechanism to highlight the feature dimensions that have a high impact on network transmission.
[0223] Step 3: Use a lightweight LSTM or Transformer model with INT8 quantization to perform deep temporal feature extraction on the weighted time series and adapt it for local lightweight inference on the terminal.
[0224] Step 4: Based on the extracted temporal features, perform decision-making operations through PPO reinforcement learning, predict the network state in the next 500ms using the joint reward function, and output candidate control parameters for the UDP layer and P2P layer.
[0225] Step 5: Three-layer security circuit breaker verification. The first layer performs parameter validity verification and clamps candidate control parameters that exceed the adjustment range to the boundary value. The second layer performs performance rollback detection. If the transmission performance deteriorates after configuring parameters, it will roll back to the default parameters. The third layer conducts model health detection and evaluates the confidence of model inference to support the global model anomaly judgment.
[0226] Step 6: After the verification in Step 5, output the UDP / QUIC layer configuration parameters and the P2P layer configuration parameters respectively, and send them to the electronic device to complete the transmission policy update.
[0227] Step 7: Collect the actual transmission operation status after the parameters are updated, and send the latest communication indicators back to Step 1 to form a closed-loop feedback, and enter the next round of 50ms cycle inference process to continuously and dynamically adjust the transmission control parameters.
[0228] The specific content of the first communication parameter obtained in the embodiments of this disclosure is given below as an example.
[0229] In the embodiments of this disclosure, the first communication parameter includes protocol metrics corresponding to the target transmission protocol. The protocol metrics include UDP packet loss rate, UDP round-trip time, UDP jitter, UDP receive window, UDP send queue depth, ECN explicit congestion flag, network interface card queue length, connection migration flag, and FEC actual recovery rate. The symbols, value ranges, and collection methods of each metric are as follows.
[0230] UDP packet loss rate, with a value range of 0-1; the collection method is to count the ratio of the number of lost data packets to the total number of packets sent within a unit period, and polling is performed with a period of 50ms.
[0231] UDP round-trip time, ranging from 0 to 5000 ms; the collection method is to record the time difference between sending a data packet and receiving a response, and take the average value within a single collection period to obtain the value of this indicator.
[0232] UDP jitter, with a value range of 0-1000ms; the acquisition method is to calculate the standard deviation of the difference between multiple consecutive round-trip delays and perform real-time statistics within the acquisition period.
[0233] The UDP receive window ranges from 1024B to 8388608B (8MB). The acquisition method is to read the available capacity of the UDP protocol stack receive buffer and directly read the status output by the kernel to the application layer. This value corresponds to the SO_RCVBUF parameter value configured by the application.
[0234] The UDP send queue depth ranges from 0 to 300 packets. The collection method is to count the queue length of the current data packets to be sent and read the queue count in real time to obtain the metric.
[0235] ECN explicit congestion flag, with a value of binary state [0,1], where 0 represents no congestion and 1 represents congestion; the collection method is to parse the congestion flag bit in the packet header to complete the binary state collection.
[0236] The network card queue length has a value range of 0-256; the acquisition method is to read the number of data packets to be processed in the network card hardware transceiver queue.
[0237] The connection migration flag has a binary state [0,1], where 0 represents no migration and 1 represents IP / port migration. The collection method is to monitor terminal IP and port change events. If a migration event is detected, the flag is set to 1. The flag is cleared in each collection cycle.
[0238] The actual recovery rate of FEC ranges from 0 to 1. The data is collected by calculating the ratio of the number of lost packets recovered by FEC error correction to the total number of lost packets within the data collection period.
[0239] All the above protocol indicators are collected according to the preset collection cycle and organized in chronological order to form the first time series, which serves as the input data for the time series prediction model.
[0240] In the embodiments of this disclosure, the first communication parameter further includes communication indicators at the point-to-point communication layer. These communication indicators include P2P block hit rate, number of active neighbors, number of pending requests, current download speed, and current upload speed. The symbols, value ranges, and collection methods of each indicator are as follows.
[0241] The P2P block hit rate ranges from 0 to 1. The collection method is to count the ratio of the number of local data block request hits to the total number of requests, and the collection is performed at a period of 50ms.
[0242] The number of active neighbors ranges from 0 to 20; the data is collected by counting the number of nodes that have established valid P2P connections.
[0243] The number of pending requests ranges from 0 to 300; the data collection method is to count the number of data requests awaiting response locally.
[0244] The current download speed ranges from 0 to 1000 Mbps; the data is obtained by multiplying the number of blocks received per unit time by the size of a single block.
[0245] The current upload speed ranges from 0 to 1000 Mbps; the data is collected by multiplying the number of blocks sent per unit time by the size of a single block.
[0246] In the embodiments of this disclosure, the aforementioned P2P layer communication indicators and the aforementioned UDP protocol layer protocol indicators together constitute a complete first communication parameter. The parameters are collected according to a preset collection period, arranged in chronological order, and together form a first time series, which serves as the input data source for the time series prediction model.
[0247] The following provides an example of the specific contents of the configuration items for point-to-point communication and the configuration items for the target transmission protocol in an embodiment of this disclosure.
[0248] In the embodiments of this disclosure, the UDP protocol configuration items output by model inference include UDP sending window size, hierarchical FEC redundancy rate, UDP timeout retransmission time, dynamic jitter buffer duration, and number of multiplexed streams. The meaning, adjustment range, and default value of each configuration item are as follows.
[0249] UDP send window size represents the size of the UDP protocol data send buffer; the adjustment range is 1024B-65535B (64KB); the default value is 8192B.
[0250] The tiered FEC redundancy rate represents the proportion of redundancy in forward error correction coding. The adjustment range is set according to the packet loss rate: when the packet loss rate is ≤3%, critical blocks are 10% and ordinary blocks are 5%; when 3% < packet loss rate < 5%, critical blocks are 20% and ordinary blocks are 10%; when the packet loss rate is >5%, the upper limit for critical blocks is 30% and the upper limit for ordinary blocks is 15%, with a minimum redundancy rate of no less than 3%. The default value is 0.2 for critical blocks and 0.1 for ordinary blocks.
[0251] UDP timeout retransmission time represents the timeout period when a data packet does not receive a response; the adjustment range is 100-2000ms; the default value is 500ms.
[0252] Dynamic jitter buffer duration indicates the buffer duration used to offset network latency jitter; the adjustment range is 60-200ms; the default value is 80ms.
[0253] Multiplexing stream count represents the number of transport streams carried by a single UDP port; the adjustment range is 1-4; the default value is 2.
[0254] In the embodiments of this disclosure, the P2P layer configuration items output by the model include P2P logical block size, maximum number of simultaneous upload connections, maximum number of simultaneous download connections, upload rate limit, and neighbor connection score threshold. The symbols, meanings, adjustment ranges, and default values of each configuration item are as follows.
[0255] The P2P logical block size represents the capacity of a single block of P2P data transmission units; the adjustment range is 64KB-4MB; the default value is 512KB.
[0256] Maximum simultaneous upload connections: This represents the maximum number of nodes that the terminal computer can connect to concurrently upload data to external systems; the adjustment range is 1-20; the default value is 8.
[0257] Maximum simultaneous download connections: This represents the maximum number of nodes that can be connected to the terminal computer to download data concurrently; the adjustment range is 1-20; the default value is 8.
[0258] Upload rate limit indicates the maximum upload bandwidth of the terminal computer; the adjustment range is 0-1000Mbps; the default value is 700Mbps.
[0259] The neighbor connection score threshold represents the minimum node health score required to establish a P2P neighbor connection; the adjustment range is 0-1; the default value is 0.6.
[0260] Embodiments of this disclosure also provide a first electronic device, which interacts with a second electronic device in the cluster using a point-to-point communication method based on a target transmission protocol, including:
[0261] At least one processor;
[0262] Memory, used to store intelligent programs;
[0263] The processor is used to load intelligent programs, which have the ability to invoke models;
[0264] The intelligent program is loaded and performs at least the following steps:
[0265] Obtain the first time series of the first communication parameters of the first electronic device within the first time window; the first communication parameters include communication index items for point-to-point communication and protocol index items for the target communication protocol;
[0266] The first time series is input into the model to generate a second time series of the first communication parameters within a second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network state of the first electronic device within the second time window.
[0267] Based on the second time series, control parameters are determined to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration items include point-to-point communication configuration items or target transmission protocol configuration items.
[0268] It should be noted that the electronic device in the embodiments of this disclosure corresponds to the data processing method in the embodiments of this disclosure, and their specific implementation details are the same. For embodiments not mentioned, please refer to the embodiments on the data processing method side, which will not be repeated here.
[0269] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing the data processing method described above, according to an embodiment of the present disclosure; wherein the electronic device may be a first electronic device or a second electronic device. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0270] like Figure 7As shown, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include onboard memory configured for caching purposes. The processor 701 may include a single processing unit or multiple processing units configured to perform different actions of the method flow according to an embodiment of the present disclosure.
[0271] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.
[0272] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the input / output (I / O) interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0273] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code configured to perform the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by processor 701, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0274] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.
[0275] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium. Examples include, but are not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0276] For example, according to embodiments of this disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0277] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code configured to perform the methods provided in embodiments of this disclosure. When the computer program product is run on an electronic device, the program code is configured to cause the electronic device to implement the data processing methods provided in embodiments of this disclosure.
[0278] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.
[0279] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 709, and / or installed from a removable medium 711. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.
[0280] According to embodiments of this disclosure, program code configured to execute the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0281] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions configured to perform a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features described in the various embodiments of the present disclosure can be combined and / or combined in various ways, even if such combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0282] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A data processing method applied to a first electronic device in an electronic device cluster, wherein the first electronic device interacts with a second electronic device in the cluster using a point-to-point communication method based on a target transmission protocol, the method comprising: Obtain the first time sequence of the first communication parameters of the first electronic device within the first time window; The first communication parameter includes the communication indicator item of the point-to-point communication and the protocol indicator item of the target transmission protocol; The first time series is input into the model to generate a second time series of the first communication parameters within a second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network status of the first electronic device within the second time window. Based on the second time series, control parameters are determined to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration items include point-to-point communication configuration items or target transmission protocol configuration items.
2. The method according to claim 1, wherein control parameters are determined based on the second time series to configure at least one configuration item, comprising at least one of the following: Based on the predicted communication network state represented by the second time series, data jitter information and jitter adjustment coefficients are determined; wherein, The data jitter information represents the difference between the receiving time interval and the sending time interval of two adjacent data packets; The target buffer duration is determined based on the data jitter information, the jitter adjustment coefficient, and the preset data buffer duration. Configure the target buffer duration to the jitter buffer parameter corresponding to the target transmission protocol; Based on the predicted communication network state represented by the second time series, the packet loss rate of the communication network is determined. Based on the packet loss rate and the data type of data exchanged with the second electronic device, the forward error correction parameters are determined; Configure the forward error correction parameters as the forward error correction configuration items corresponding to the target transmission protocol; Based on the predicted communication network state represented by the second time series, the network latency of the communication network is determined; Based on the network latency, a timeout retransmission time parameter is determined, and the timeout retransmission time parameter is configured as the timeout retransmission parameter corresponding to the target transmission protocol. Based on the predicted communication network state characterized by the second time series, the data transmission rate of the communication network is determined. Based on the data transmission rate, the multiplexing stream number parameter is determined, and the multiplexing stream number parameter is configured as the multiplexing parameter corresponding to the target transmission protocol. The transmission protocol control parameters include at least one of the following: target buffer duration, forward error correction parameters, timeout retransmission time parameters, and multiplexed stream number parameters.
3. The method according to claim 1, wherein control parameters are determined based on the second time series to configure at least one configuration item, comprising: Based on the predicted communication network state represented by the second time series, the target neighbor connection score threshold is determined; The target neighbor connection score threshold is configured as the neighbor connection score threshold corresponding to the point-to-point communication, so as to determine the electronic devices that can serve as neighbors of the first electronic device based on the configured threshold.
4. The method according to claim 1, wherein control parameters are determined based on the second time series to configure at least one configuration item, comprising: Based on the predicted communication network status represented by the second time series, the heat information corresponding to the target data block and the packet loss rate corresponding to the communication network are determined. In response to the heat information satisfying the first condition and the packet loss rate being less than a preset packet loss rate threshold, a first block is determined; In response to the heat information not meeting the first condition or the packet loss rate being greater than or equal to the preset packet loss rate threshold, a second block is determined; the first block is greater than the second block; Configure the first block or the second block as the data block parameters corresponding to the point-to-point communication.
5. The method according to claim 1, wherein control parameters are determined based on the second time series to configure at least one configuration item, comprising: Based on the predicted communication network state represented by the second time series, the packet loss rate of the communication network is determined. Acquire the data completion progress corresponding to the electronic device that has established a point-to-point communication connection with the first electronic device; Based on the packet loss rate and the data completion progress, determine the bandwidth allocation weight for each electronic device; Based on the bandwidth allocation weight, upload bandwidth is allocated to multiple electronic devices so that electronic devices with data completion progress and packet loss rate below the threshold receive upload bandwidth above the threshold. Determine the upload rate limit based on the bandwidth allocation results; Configure the upload rate limit as the upload rate limit parameter corresponding to the peer-to-peer communication.
6. The method according to claim 1, further comprising: Based on at least some communication metrics and at least some protocol metrics, it is determined that the second electronic device that interacts with the first electronic device satisfies at least two of the following anomaly criteria: The receiving capability of the second electronic device meets the first abnormal condition; The transmission capability of the second electronic device meets the second abnormal condition; The request processing capability of the second electronic device meets the third abnormal condition; The network transmission capability of the second electronic device meets the fourth abnormal condition; In response to the satisfaction of at least two anomaly determination conditions, the second electronic device is determined to be an abnormal node; Based on the anomaly level corresponding to the abnormal node, the data transmission mode between the first electronic device and the second electronic device is adjusted.
7. The method according to claim 6, wherein adjusting the data transmission mode between the first electronic device and the second electronic device according to the anomaly level corresponding to the abnormal node includes: In response to the first anomaly level, the connection weight corresponding to the second electronic device is reduced, thereby reducing the number of concurrent connections between the first electronic device and the second electronic device; In response to the second abnormality level, stop sending data to the second electronic device, and allow receiving data sent by the second electronic device; In response to the third anomaly level, data interaction between the first electronic device and the second electronic device is stopped.
8. The method according to claim 1, further comprising at least one of the following: Before configuring at least one configuration item, the control parameter is verified, and if the control parameter exceeds the preset value range of the corresponding configuration item, the control parameter is adjusted to the boundary value. After configuring at least one configuration item, monitor the transmission throughput or disconnection status corresponding to the data interaction. In response to the transmission throughput being lower than the preset ratio for multiple consecutive sampling periods or the occurrence of consecutive disconnection events, reconfigure the corresponding configuration item using preset control parameters.
9. The method according to claim 1, further comprising: Determine the inference confidence of the model and send the inference confidence to the server; In response to a model rollback command sent by the server, the current model is switched to a historical model version. The model rollback command is determined by the server based on the inference confidence sent by the electronic devices in the cluster. The server issues the model rollback command when the inference confidence of a preset proportion of electronic devices is lower than the confidence threshold.
10. A first electronic device, wherein the first electronic device interacts with a second electronic device in a cluster using a point-to-point communication method based on a target transmission protocol, comprising: At least one processor; Memory, used to store intelligent programs; The processor is used to load the intelligent program, which has the ability to invoke the model; The intelligent program is loaded and performs at least the following steps: Obtain a first time series of the first communication parameters of the first electronic device within a first time window; the first communication parameters include communication index items of the point-to-point communication and protocol index items of the target communication protocol; The first time series is input into the model to generate a second time series of the first communication parameters within a second time window; the second time window is later than the first time window, and the second time series is used to characterize the predicted communication network status of the first electronic device within the second time window. Based on the second time series, control parameters are determined to configure at least one configuration item; the control parameters include point-to-point communication control parameters or transmission protocol control parameters, and the corresponding configuration items include point-to-point communication configuration items or target transmission protocol configuration items.
