A MPTCP connection path selection method based on decision tree model

The decision tree model is combined with the MAC layer and transport layer network parameters to predict the preferred path of the MPTCP connection, which solves the data transmission congestion problem caused by prediction lag in the existing technology and improves the transmission performance and prediction accuracy of the MPTCP connection.

CN115278811BActive Publication Date: 2024-09-24INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF 13 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

There is a large delay in the existing MPTCP path selector's prediction of network path quality based on transport layer network parameters, which leads to data transmission congestion and affects efficiency.

Method used

A decision tree model is used, combined with the MAC layer and transport layer network parameters, to generate a training set to predict the optimal path, sense changes in wireless link quality in a timely manner, and update the path selection strategy.

Benefits of technology

The prediction lag is reduced, the transmission performance of the MPTCP connection is improved, packet blocking is avoided, and the accuracy of the prediction results is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278811B
    Figure CN115278811B
Patent Text Reader

Abstract

An embodiment of the present invention provides a method for generating a decision tree model for determining a preferred path in an MPTCP connection, comprising: obtaining a training set consisting of multiple training samples, each training sample comprising a network parameter feature and a label, wherein the network parameter feature comprises a MAC layer network parameter and a transport layer network parameter corresponding to at least two network paths in an MPTCP connection established based on a multipath transmission control protocol, and the label indicates a preferred path in at least two network paths under the corresponding network parameter feature; generating a decision tree model based on the training set using a predetermined decision tree learning rule, so that the decision tree model makes a decision according to the input network parameter feature, so as to output a result of a preferred path in at least two network paths corresponding to the MPTCP connection; the present invention can reduce prediction lag and improve the accuracy of the result of the predicted preferred path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communications, specifically to the field of data transmission technology, and more specifically to an MPTCP connection path selection method based on a decision tree model. Background Art

[0002] The rapid development of wireless networks has greatly changed human production and life. The next generation of mobile networks is expected to see a large number of vertical use cases, such as large-scale Internet of Things (IoT), remote machinery, autonomous driving, and virtual reality (VR). However, due to environmental constraints, wireless networks are more variable and unstable than wired transmission. Especially in extreme cases, a mobile application that relies on a single path interface will suffer a significant performance degradation. Therefore, some researchers have designed multipath schemes (such as MultiPath Transmission Control Protocol, Multipath Transmission Control Protocol, referred to as MPTCP), trying to bridge this performance gap by integrating multiple wireless access technologies.

[0003] Considering the low-speed mobility situation, a good MPTCP path selector should actively detect the wireless environment and dynamically return the network path with the best quality to transmit the data packets incoming from the application layer. Since mobile devices may cross multiple network coverage areas in a short period of time, this will lead to frequent network quality switching. By selecting the appropriate network path, the MPTCP send buffer can significantly reduce the in-flight packet queue of the transmission of the poor quality sub-flow, thereby improving the overall performance of the MPTCP connection. Usually, the MPTCP path selector determines the priority of each network path only based on the network parameters in the transport layer (TCP layer); for example, the priority of the network path is determined by the congestion window value or the minimum round-trip time (MinRTT). However, predicting the network path quality based on the network parameters of the transport layer and switching the network path often has a large switching delay, which is easy to cause data transmission congestion due to the lag in network path quality prediction, affecting data transmission efficiency. Summary of the invention

[0004] Therefore, the purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide an MPTCP connection path selection method based on a decision tree model.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] According to a first aspect of the present invention, there is provided a method for generating a decision tree model for determining a preferred path in an MPTCP connection, comprising: obtaining a training set consisting of a plurality of training samples, each training sample comprising a network parameter feature and a label, wherein the network parameter feature comprises a MAC layer network parameter and a transport layer network parameter corresponding to at least two network paths in an MPTCP connection established based on a multipath transmission control protocol, and the label indicates a preferred path in at least two network paths under the corresponding network parameter feature; generating a decision tree model based on the training set using a predetermined decision tree learning rule, so that the decision tree model makes a decision according to the input network parameter feature, so as to output a result of a preferred path in at least two network paths corresponding to the MPTCP connection.

[0007] In some embodiments of the present invention, the MAC layer network parameters include signal strength and signal-to-noise ratio of each path of at least two network paths corresponding to the MPTCP connection.

[0008] In some embodiments of the present invention, the at least two network paths include a mobile network path and a WiFi path, wherein the MAC layer network parameters also include: a reference signal reception power and a reference signal reception quality of the mobile network path, and a transmission data rate and a reception data rate of the WiFi path.

[0009] In some embodiments of the present invention, the transport layer network parameters include: round-trip delay, congestion window value, packet delivery rate and packet loss rate or a combination thereof for each of at least two network paths corresponding to the MPTCP connection.

[0010] In some embodiments of the present invention, the method includes: when two devices establishing an MPTCP connection communicate, collecting the network path used to send data and the corresponding network parameter characteristics to form initial collection data; when the deviation of each corresponding parameter in the network parameter characteristics of two initial collection data is less than or equal to a preset threshold and different network paths are used, determining a preferred path according to the data transmission quality of the network paths corresponding to the two initial collection data; adding labels to the two initial collection data according to the determined preferred path to form samples, and storing the samples in a data set, wherein the training set is a subset of the data set.

[0011] In some embodiments of the present invention, data transmission quality includes effective throughput rate of an application sending data and / or application latency.

[0012] According to a second aspect of the present invention, there is provided an MPTCP connection path selection method based on a decision tree model, for selecting a path for sending data in an MPTCP connection between a first device and a second device, the method comprising: obtaining network parameter characteristics corresponding to establishing an MPTCP connection between the first device and the second device based on a multipath transmission control protocol as characteristics to be predicted, wherein the MPTCP connection comprises at least two network paths; inputting the characteristics to be predicted into a decision tree model obtained by the decision tree model generation method for determining a preferred path in an MPTCP connection according to the first aspect and deployed in the first device, and outputting a result of the preferred path; determining a priority of each path in the at least two network paths according to the result of the preferred path, and determining a sending path according to the priority of each path when the first device sends data to the second device.

[0013] In some embodiments of the present invention, the decision tree model generation method for determining the preferred path in the MPTCP connection further includes: when establishing an MPTCP connection between the first device and the second device for communication, collecting the network path and corresponding network parameter characteristics used by the first device to send data to form operation collection data; when the deviation of each corresponding parameter in the network parameter characteristics of the two operation collection data is less than or equal to a preset threshold and different network paths are used, determining the preferred path according to the data transmission quality of the network paths corresponding to the two operation collection data; adding labels to the two operation collection data according to the determined preferred path to form newly added samples and storing them in the data set to obtain an updated data set; obtaining a training set from the updated data set to regenerate the decision tree model, and using the regenerated decision tree model to update the decision tree model deployed on the first device.

[0014] According to a third aspect of the present invention, there is provided an electronic device comprising: one or more processors; and a memory, wherein the memory is used to store executable instructions; the one or more processors are configured to implement the steps of the method described in the first aspect and / or the second aspect by executing the executable instructions.

[0015] Compared with the prior art, the advantages of the present invention are:

[0016] The present invention improves the prior art by introducing MAC layer network parameters, combining cross-layer network parameters (MAC layer network parameters and transport layer network parameters), and training a decision tree model to make better optimal path decisions. Among them, the cross-layer parameters of network transmission (i.e., MAC layer and transport layer parameters) are used to timely perceive the quality changes of the wireless link, and update the path selection strategy to avoid data packets from being blocked during network transmission, thereby improving the transmission performance of MPTCP; in addition, there may be mutual dependence between the parameters in the network parameter characteristics, and there may also be linear or nonlinear relationships between the parameters and labels in the network parameter characteristics, and the decision tree model does not need to assume the independence between the features, so the present invention selects a decision tree model to predict the optimal path to avoid the influence of linear and nonlinear coupling relationships between different parameters on the prediction accuracy, and improve the accuracy of the predicted optimal path results. Through these two improvements, the prediction lag can be reduced and the prediction accuracy can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The embodiments of the present invention are further described below with reference to the accompanying drawings, in which:

[0018] Figure 1 A schematic diagram for explaining the hysteresis of predicting the quality of a network path based on the minimum round-trip delay of a transport layer and switching the network path according to an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of an application scenario according to an embodiment of the present invention;

[0020] Figure 3 A schematic diagram of a flow chart of a method for selecting an MPTCP connection path based on a decision tree model according to an embodiment of the present invention;

[0021] Figure 4 A module diagram of a method for selecting an MPTCP connection path based on a decision tree model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0023] As mentioned in the background technology section, predicting the quality of the network path and switching the network path based on the network parameters of the transport layer often results in a large switching delay, which can easily cause data transmission congestion due to the lag in network path quality prediction, affecting data transmission efficiency. Therefore, the present invention obtains the network parameters of the MAC layer that is closer to the physical layer, constructs a training set, wherein each training sample includes network parameter features and labels, wherein the network parameter features include MAC layer network parameters corresponding to at least two network paths in an MPTCP connection established based on a multipath transmission control protocol, and the label indicates the preferred path of at least two network paths under the corresponding network parameter features, and by training a decision tree model, the MAC layer network parameters are used to predict the result of the preferred path and thereby select the network path (referred to as path in some places) in the MPTCP connection; thereby reducing the probability of data transmission congestion caused by prediction lag and improving data transmission efficiency.

[0024] In order to better understand the present invention, the significance of MAC parameters in MPTCP connection path selection is explained through the accompanying drawings. Figure 1 As shown, it intuitively shows the hysteresis of predicting the network path quality based on the minimum round-trip time (MinRTT) of the transport layer and switching the network path, so as to explain why the present invention selects the MAC layer network parameters. Schematically, the MPTCP connection contains a mobile network path (taking the LTE path as an example) and a WiFi path. Figure 1 a shows the variation curve of the received signal strength (RSSI) in the MAC layer network parameters corresponding to the LTE path and the WiFi path in each measurement time slot. Figure 1 b shows the variation curve of the signal-to-noise ratio (SINR) in the MAC layer network parameters corresponding to the LTE path and the WiFi path in each measurement time slot. Figure 1 a and Figure 1 In b, the bold vertical line is the switching point determined according to the minimum round-trip time (MinRTT) of the transport layer, and the circle is the ideal switching point. It can be seen that the MinRTT switching point always misses the ideal switching point observed according to the physical layer network parameters. This is due to the delayed confirmation mechanism of the transport layer (TCP layer). The RTT-based path selector must wait for at least one RTT before switching for the damaged TCP subflow. In addition, from Figure 1 c and Figure 1 d can see the consequences of delayed switching, as Figure 1 a. Figure 1 b. Changes in MAC layer attributes, Figure 1 c. Figure 1The number of data packets accumulated in transmission by the path with poor quality in d is far more than that of the path with good quality, which leads to data transmission congestion. Therefore, the present invention improves the prior art by introducing MAC layer network parameters, combining cross-layer network parameters (MAC layer network parameters and transport layer network parameters), and training a decision tree model to make better optimal path decisions. Among them, the cross-layer parameters of network transmission (i.e., parameters of the MAC layer and the transport layer) are used to timely perceive the quality changes of the wireless link, and the path selection strategy is updated to avoid blocking of data packets in network transmission, thereby improving the transmission performance of MPTCP; in addition, there may be mutual dependence between the parameters in the network parameter characteristics, and there may also be linear or nonlinear relationships between the parameters and the labels in the network parameter characteristics, and the decision tree model does not need to assume the independence between the features, so the present invention selects a decision tree model to predict the optimal path to avoid the influence of the linear and nonlinear coupling relationship between different parameters on the prediction accuracy, and improve the accuracy of the predicted optimal path results. Through these two improvements, the prediction lag can be reduced and the prediction accuracy can be improved.

[0025] The present invention is explained below from three aspects: sample construction, model training and application scenarios.

[0026] 1. Sample Construction

[0027] In order to reduce prediction lag and improve prediction accuracy, the present invention predicts the preferred path by training a decision tree model with samples constructed by MAC layer network parameters closer to the physical layer. At the same time, although there is a lag in predicting the priority of the path using only the network parameters of the transport layer compared to predicting the priority of the path based on the network parameters of the MAC layer, the transport layer also contains rich information, which is also beneficial to the determination of the path priority to a certain extent. The present invention combines cross-layer network parameters (MAC layer and transport layer parameters) in the network parameter features to reduce prediction lag and improve the prediction accuracy of the model. According to one embodiment of the present invention, a data set is first constructed, the data set includes multiple samples, each sample includes network parameter features and labels, wherein the network parameter features include MAC layer network parameters and transport layer network parameters corresponding to at least two network paths in an MPTCP connection established based on a multipath transmission control protocol, and the label indicates the preferred path in at least two network paths under the corresponding network parameter features. The technical solution of this embodiment can at least achieve the following beneficial technical effects: The advantage of this embodiment is that it can use the cross-layer parameters of network transmission (i.e., the parameters of the MAC layer and the transport layer) to timely perceive the quality changes of the wireless link, and update the path selection strategy to avoid blocking of data packets during network transmission, thereby improving the transmission performance of MPTCP. According to one embodiment of the present invention, assuming that there are two paths in the MPTCP connection, the value of the label corresponding to path 0 is set to 0, and the value of the label corresponding to path 1 is set to 1. If it is better to use path 1 to transmit data under the network parameter characteristics of a training sample, the value of the label in the training sample is 1. Similarly, if there are more paths in the MPTCP connection in an actual application scenario, more options for label values ​​can be added.

[0028] For various network paths, there are some common parameters of the MAC layer, and these common parameters can be obtained to construct samples. According to one embodiment of the present invention, the MAC layer network parameters include the signal strength and signal-to-noise ratio of each path in at least two network paths corresponding to the MPTCP connection. The technical solution of this embodiment can at least achieve the following beneficial technical effects: it is simple and efficient to construct network parameter features according to the signal strength and signal-to-noise ratio corresponding to the MAC layer, and the trained decision tree model can obtain the priority of the path more accurately and quickly according to the signal strength and signal-to-noise ratio.

[0029] Different network paths may contain some unique MAC layer parameters. Furthermore, in addition to the common parameters of the MAC layer, it is also possible to consider adding these unique MAC layer parameters to the constructed network parameter features to avoid the low accuracy caused by the small amount of information referenced by the decision tree model. According to one embodiment of the present invention, at least two network paths are wireless network paths, including a mobile network path and a WiFi path, wherein the MAC layer network parameters also include: the reference signal receiving power and reference signal receiving quality of the mobile network path, and the sending data rate and receiving data rate of the WiFi path. The explanation of the MAC layer network parameters corresponding to this embodiment is shown in Table 1:

[0030] Table 1

[0031]

[0032]

[0033] According to one embodiment of the present invention, the transport layer network parameters include: the round trip delay (RTT) of each of the at least two network paths corresponding to the MPTCP connection, the congestion window value (CWnd value for short), the packet delivery rate (PDR for short, also known as the packet delivery rate) and the packet loss rate (PLR for short, also known as the packet loss rate) or a combination thereof. PDR is the ratio of the number of packets received by the data receiver to the number of packets sent by the application layer of the data sender within a certain period. PLR refers to the ratio of the number of packets lost during transmission to the number of packets sent.

[0034] As for the method of obtaining the data set, it is possible to simulate the communication and measure the data to construct the sample in a simulation mode, or to simulate the communication and measure the data to construct the sample in an actual scenario, and the present invention does not impose any restrictions on this. According to one embodiment of the present invention, when two devices establishing an MPTCP connection communicate, the network path used to send data and the corresponding network parameter characteristics are collected to form initial collection data; when the deviation of each corresponding parameter in the network parameter characteristics of the two initial collection data is less than or equal to the preset threshold and different network paths are used, the preferred path is determined according to the data transmission quality of the network path corresponding to the two initial collection data; according to the determined preferred path, the two initial collection data are labeled to form samples, and the samples are stored in the data set, wherein the training set is a subset of the data set. According to one embodiment of the present invention, the data transmission quality is determined according to the effective throughput (application goodput, abbreviated ag) and application delay (application delay, abbreviated ad) of the application sending the data. The preferred path is determined by comparing the values ​​of the effective throughput and the application delay; wherein, in the two network paths, the network path with a larger effective throughput is better; when the effective throughput is the same, the network path with a smaller application delay is better. Because the values ​​of ag and ad need to be recorded when the application transmits data, the present invention uses the values ​​of ag and ad to simply and efficiently determine the quality of data transmission and avoid recording additional overhead. It should be understood that other methods can also be used to determine a better network path, and the present invention does not impose any restrictions on this, such as: first compare the application delay and then compare the effective throughput; for example: score the quality of the network path according to the effective throughput and application delay in the two network paths, and determine the preferred path according to the scored path quality score. To illustrate an illustrative method of constructing a sample, the inventor selected the latter method to measure and construct the sample. However, since wireless communication has many influencing factors, it is difficult to keep the network parameters measured when data is transmitted on different paths consistent. Therefore, the label of the sample can be determined based on the initial collection data of two different network paths but with similar network parameter characteristics. The following is an explanation in conjunction with Table 2:

[0035] Table 2

[0036]

[0037] In the schematic sample given in Table 2, the mobile network path is an LTE path, and the other path is a WiFi path. When constructing the sample, the parameters measured when the first device and the second device communicate can be used to construct the sample. In order to compare the data transmission quality of different paths, similar network parameter characteristics can be collected (the deviation of each corresponding parameter in the network parameter characteristics of the two initial collection data is less than or equal to the preset threshold, each parameter can be independently set to a preset threshold, or all parameters are uniformly set to a preset threshold, and the preset threshold can be determined according to the needs of the implementer. It should be understood that the smaller the value of the preset threshold is set, the more accurate the label of the sample, but the difficulty of obtaining the sample will increase; therefore, it needs to be set according to the actual needs of the implementer, and the present invention does not impose any restrictions on this)) but the two initial collection data with different network paths used to send data are used to construct associated samples (it should be understood that the paired associated samples are only used to compare the advantages and disadvantages of the paths to determine the label values ​​of the pair of samples. During training, each sample is separate and not paired input). For example, the 3rd and 4th rows of Table 2 represent a pair of associated samples, where the ag value of the 4th row is larger, indicating that the WiFi path is preferred, and the labels corresponding to the samples in the 3rd and 4th rows are both set to 1 (indicating that the preferred path is the WiFi path); the 5th and 6th rows represent a pair of associated samples, where the ag value of the 6th row is larger, indicating that the LTE path is preferred, and the labels corresponding to the samples in the 5th and 6th rows are both set to 0 (indicating that the preferred path is the LTE path).

[0038] 2. Model Training

[0039] Using the data set constructed by any of the above embodiments, the model can be trained to predict the result of the preferred path. It should be understood that in this field, when training a model, in order to evaluate the accuracy of the model, all samples in the data set are often not used for training, but are divided into multiple subsets according to a predetermined ratio, such as dividing the data set into a training set and a test set, wherein the samples in the training set (corresponding to the training samples) are used for training, and the test set is used to evaluate the accuracy of the model after training. According to one embodiment of the present invention, a method for generating a decision tree model is provided, comprising: obtaining a training set consisting of multiple training samples; generating a decision tree model based on the training set using a predetermined decision tree learning rule, so that the decision tree model can make a decision based on the input network parameter characteristics, and output the result of the preferred path in at least two network paths corresponding to the MPTCP connection. According to one embodiment of the present invention, the predetermined decision tree learning rule adopts any one of the learning rules of ID3, C4.5, and CART. According to one embodiment of the present invention, 10-fold cross validation is used to evaluate the accuracy of the decision tree model, that is, the entire classification data set is randomly divided into two parts: 90% of the data is used as a training set for training the decision tree model, and the remaining 10% of the data is used as a test set for evaluating the decision tree model. The technical solution of this embodiment can at least achieve the following beneficial technical effects: considering the complex relationship between the network parameter characteristics and the performance metrics of each network path (TCP subflow) in the MPTCP connection, a machine learning algorithm (Machine Learning, referred to as ML algorithm, such as a neural network model, a decision tree model, etc.) is selected as a tool to solve the above problem. However, selecting a suitable ML algorithm is crucial to the accuracy of predicting path selection, and there may be mutual dependence between the parameters in the network parameter characteristics in the data set, and there may also be a linear or nonlinear relationship between the parameters and the label in the network parameter characteristics, and the decision tree model does not need to assume the independence between the features, so the present invention selects a decision tree model to predict the preferred path to avoid the influence of the linear and nonlinear coupling relationship between different parameters on the prediction accuracy, and improve the accuracy of the predicted preferred path result.

[0040] 3. Application Scenarios

[0041] The decision tree model obtained according to the above embodiment is shown in Figure 2 , assuming that the mobile device establishes an MPTCP connection containing a WiFi path and an LTE path, the network parameter characteristics (for example, the relevant parameters of the network protocol stack are obtained through the operating system interface of the mobile device, including the MAC layer network parameters and / or transport layer network parameters contained in the above network parameter characteristics; for example Figure 2The basic parameters of the physical interface are monitored through the application program interface API provided by the Android system as the network parameters of the MAC layer and / or the transport layer of the WiFi and LTE paths) using the decision tree model to predict the result of the preferred path, so as to determine the path for sending data from the MPTCP connection, so as to reduce the probability of data congestion. According to one embodiment of the present invention, see Figure 3 , provides an MPTCP connection path selection method based on a decision tree model, which is used to select a path for sending data in an MPTCP connection between a first device and a second device, including: S1, obtaining network parameter characteristics corresponding to establishing an MPTCP connection between the first device and the second device based on a multipath transmission control protocol (refer to the implementation method of obtaining the network parameter characteristics in the previous embodiment, which will not be repeated here) as a feature to be predicted, wherein the MPTCP connection includes at least two network paths; S2, inputting the feature to be predicted into a decision tree model obtained by the generation method of the decision tree model according to the above embodiment deployed in the first device, and outputting the result of the preferred path; S3, determining the priority of each path in the at least two network paths according to the result of the preferred path, and determining the sending path according to the priority of each path when the first device sends data to the second device. For example, assuming there are two network paths: an LTE path (the value of the corresponding label is 0) and a WiFi path (the value of the corresponding label is 1), and the result of the output preferred path is 1 (WiFi path priority), then the priority of the WiFi path is set to 0 (assuming that the smaller the value, the higher the priority), and the priority of the LTE path is set to 1 (for example, the path selector in the MPTCP0.95 version is modified to determine the priority of the path based on the result of the preferred path of the decision tree model of the present invention), then when the first device sends data to the second device, the path with a higher priority is preferred to send data, that is, the WiFi path is preferred to send data. If more than two network paths are used, if the decision tree model still outputs a label corresponding to a preferred path, the priority of paths other than the preferred path can be determined randomly. Alternatively, the generated decision tree model (for example, using a random forest) contains multiple decision trees, and the priority of each path is determined by the results of the preferred path predicted by all decision trees. For example, suppose the decision tree model includes 10 decision trees, with a total of LTE path (corresponding label value is 0), WiFi path (corresponding label value is 1) and Bluetooth path (corresponding label value is 2), among which 5 decision trees predict the preferred path as 0, 3 decision trees predict the preferred path as 1, and 2 decision trees predict the preferred path as 2; then according to the results of the preferred path, the priority of the LTE path is set to 0, the priority of the WiFi path is set to 1, and the priority of the Bluetooth path is set to 2 (assuming that the smaller the value, the higher the priority).

[0042] Since the relationship between the network parameter characteristics of the communication between two devices and the corresponding preferred path may be affected by many factors, it is possible to continuously collect samples to update the data set to ensure the prediction accuracy of the model. According to one embodiment of the present invention, the MPTCP connection path selection method based on the decision tree model also includes: when establishing an MPTCP connection for communication between a first device (for example, a mobile device such as a mobile phone, a tablet computer, a smart watch, etc.) and a second device (for example, a mobile device or a non-mobile device such as a server), collecting the network path and corresponding network parameter characteristics used by the first device to send data to form operation collection data; when the deviation of each corresponding parameter in the network parameter characteristics of the two operation collection data is less than or equal to a preset threshold and different network paths are used, determining the preferred path according to the data transmission quality of the network paths corresponding to the two operation collection data; adding labels to the two operation collection data according to the determined preferred path to form newly added samples and storing them in the data set to obtain an updated data set; obtaining a training set from the updated data set to regenerate the decision tree model, and using the regenerated decision tree model to update the decision tree model deployed on the first device. See. Figure 4 In order to obtain the priority on the mobile network path and the WiFi path (two TCP sub-flows), two decision tree models are maintained. A trained offline decision tree is used to output the result of the preferred path based on the measured network parameter characteristics. At the same time, new training samples are continuously collected on the first device, and an online decision tree model is constructed using the new training samples. The online decision tree model is periodically copied to replace the original offline decision tree model to adapt to the ever-changing wireless environment. Taking the example of application 1 on a first device sending data to application 2 on a second device, after the decision tree model is deployed, the relevant work scenarios can be divided into a data sending part and a decision tree model update part, in which,

[0043] The data transmission part includes:

[0044] Step K1: The application of the first device transmits the data to be transmitted to the transport layer, and the data is in the transmission buffer waiting to be sent;

[0045] Step K2: The generated offline decision tree model predicts the result of the preferred path according to the current network parameter characteristics. The path selector of the first device determines the preferred set of paths according to the result of the preferred path, and preferentially pushes data to the path with higher priority for transmission;

[0046] The decision tree update part includes:

[0047] Step M1: Obtaining MAC layer and transport layer related network parameters through the system network interface;

[0048] Step M2: Collecting the running acquisition data to form a new sample and obtain an updated data set;

[0049] Step M3: Periodically obtain the training set from the updated dataset to regenerate the online decision tree model.

[0050] Step M4: Periodically update the offline decision tree model using the online decision tree model.

[0051] It should be noted that although the above describes the various steps in a specific order, it does not mean that the various steps must be executed in the above specific order. In fact, some of these steps can be executed concurrently or even in a different order as long as the required functions can be achieved.

[0052] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0053] Computer readable storage medium can be a tangible device that holds and stores instructions used by an instruction execution device. Computer readable storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.

[0054] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A decision tree model generation method for determining a preferred path in an MPTCP connection, characterized in that: include: Acquire a training set consisting of a plurality of training samples, each training sample comprising a network parameter feature and a label, wherein the network parameter feature comprises a MAC layer network parameter and a transport layer network parameter corresponding to at least two network paths in an MPTCP connection established based on a multipath transmission control protocol, and the label indicates a preferred path among the at least two network paths under the corresponding network parameter feature; Generate a decision tree model based on the training set using a predetermined decision tree learning rule, so that the decision tree model makes a decision according to the input network parameter characteristics to output a result of a preferred path among at least two network paths corresponding to the MPTCP connection; The method further comprises: When two devices that establish an MPTCP connection communicate, the network path used to send data and the corresponding network parameter characteristics are collected to form initial collection data; When the deviation of each corresponding parameter in the network parameter characteristics of two initial collected data is less than or equal to the preset threshold and different network paths are used, the preferred path is determined according to the data transmission quality of the network paths corresponding to the two initial collected data, wherein the network path with better data transmission quality among the two network paths corresponding to the initial collected data is the preferred path; Labels are added to the two initially collected data according to the determined preferred path to form samples, and the samples are stored in a data set, wherein the training set is a subset of the data set.

2. The method according to claim 1, characterized in that: The MAC layer network parameters include the signal strength and signal-to-noise ratio of each path in at least two network paths corresponding to the MPTCP connection.

3. The method according to claim 2, characterized in that The at least two network paths include a mobile network path and a WiFi path, wherein the MAC layer network parameters further include: The reference signal received power and the reference signal received quality of the mobile network path, and The transmit data rate and receive data rate of the WiFi path.

4. The method according to claim 3, characterized in that The transport layer network parameters include: round-trip delay, congestion window value, data packet delivery rate and data packet loss rate or a combination thereof for each of at least two network paths corresponding to the MPTCP connection.

5. The method according to any one of claims 1 to 4, characterized in that: Data transmission quality includes the effective throughput of the application sending the data and / or application latency.

6. A method for selecting an MPTCP connection path based on a decision tree model, for selecting a path for sending data in an MPTCP connection between a first device and a second device, characterized in that: The method comprises: Acquire a network parameter feature corresponding to establishing an MPTCP connection between the first device and the second device based on a multipath transmission control protocol as a feature to be predicted, wherein the MPTCP connection includes at least two network paths; Inputting the feature to be predicted into a decision tree model obtained by the decision tree model generation method for determining a preferred path in an MPTCP connection according to any one of claims 1 to 5 deployed in the first device, and outputting a result of the preferred path; Determine the priority of each path in at least two network paths according to the result of the preferred path, and determine the sending path according to the priority of each path when the first device sends data to the second device; The method further comprises: When establishing an MPTCP connection between the first device and the second device for communication, a network path and corresponding network parameter characteristics adopted by the first device to send data are collected to form operation collection data; When the deviation of each corresponding parameter in the network parameter characteristics of two running collected data is less than or equal to the preset threshold and different network paths are used, the preferred path is determined according to the data transmission quality of the network paths corresponding to the two running collected data, wherein the network path with better data transmission quality among the two network paths corresponding to the initial collected data is the preferred path; According to the determined optimal path, labels are added to the two running collected data to form new samples and stored in the data set to obtain an updated data set; A training set is obtained from the updated data set to regenerate the decision tree model, and the regenerated decision tree model is used to update the decision tree model deployed on the first device.

7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of the method according to any one of claims 1 to 6.

8. An electronic device, characterized in that: include: one or more processors; as well as A memory, wherein the memory is used to store executable instructions; The one or more processors are configured to implement the steps of the method of any one of claims 1 to 6 by executing the executable instructions.

Citation Information

Patent Citations

  • Wireless Mesh backbone network flow control method and apparatus

    CN108809839A

  • Device, system, and method of wireless multiple-link vehicular communication

    CN110546958A

  • MPTCP cross-layer optimization method and MPTCP cross-layer optimization system based on multi-cellular wireless access gateway

    CN111131017A

  • Multipath traffic scheduling method and system based on deep reinforcement learning under Overlay network

    CN112600759A

  • Link prediction method and device

    CN113033709A