Network transmission method, device, equipment, medium and product
By obtaining and utilizing the transmission policy information in the idle state of the network, and directly determining the transmission policy in the non-idle state, the problem of inefficient network transmission in the prior art is solved and more efficient data transmission is achieved.
Patent Information
- Application Number
- CN202310802951.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
AI Technical Summary
Existing network transmission methods waste a lot of time during slow startup and congestion avoidance, resulting in inefficiency.
By obtaining the transmission policy information in the idle state of the network, including the correspondence between the transmission policy and the data transmission rate and the terminal attribute information, if a non-idle state is detected, the target data transmission rate will be determined based on the current attribute information and the transmission policy information, and the target data transmission rate will be adjusted. Send strategies for network transmission to avoid wasting time in the learning process.
It improves network transmission efficiency, ensures that the sending strategy complies with current attribute information, meets actual network transmission needs, and reduces learning time during transmission.
Smart Images

Figure CN119232665A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network transmission technology, and in particular to a network transmission method, a network transmission device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] When performing network transmission, flow control is very important. It can effectively avoid data loss and ensure high efficiency of network transmission. In order to balance the transmission rate and data loss rate, flow control methods need to be adopted.
[0003] At present, in the process of network transmission, the commonly used method is to adopt the method of learning slow start and congestion avoidance to make the transmission rate as close as possible to the maximum rate without packet loss and achieve the optimal transmission strategy; however, this learning process such as slow start and congestion avoidance in the process of network transmission will waste a lot of transmission time. Summary of the invention
[0004] The embodiments of the present application provide a network transmission method, a network transmission device, an electronic device, a computer-readable storage medium and a computer program product, which can avoid the time consumed by the learning process during the network transmission process, thereby improving the network transmission efficiency.
[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0006] According to one aspect of an embodiment of the present application, a network transmission method is provided, including: obtaining transmission strategy information in a network idle state, the transmission strategy information including a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information; if it is detected that the current network in which the terminal is located is in a non-idle state, obtaining the current attribute information of the terminal; determining a target data transmission rate corresponding to the current attribute information based on the current attribute information and at least one terminal attribute information in the transmission strategy information; determining the sending strategy of the terminal in the non-idle state based on the target data transmission rate and the correspondence, and performing network transmission based on the sending strategy of the terminal in the non-idle state.
[0007] According to one aspect of an embodiment of the present application, a network transmission method is provided, including: obtaining a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information, wherein the correspondence and the at least one terminal attribute information are determined in a network idle state; generating transmission strategy information in a network idle state according to the correspondence and the at least one terminal attribute information; and sending the transmission strategy information to each terminal.
[0008] According to one aspect of an embodiment of the present application, a network transmission device is provided, including: an acquisition module, used to acquire transmission strategy information in a network idle state, the transmission strategy information including a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information; the acquisition module, further used to acquire the current attribute information of the terminal if it is detected that the current network in which the terminal is located is in a non-idle state; a determination module, used to determine a target data transmission rate corresponding to the current attribute information based on the current attribute information and at least one terminal attribute information in the transmission strategy information; a transmission module, used to determine the sending strategy of the terminal in the non-idle state based on the target data transmission rate and the correspondence, and perform network transmission according to the sending strategy of the terminal in the non-idle state.
[0009] In one embodiment of the present application, the determination module is further used to match the current attribute information with each terminal attribute information in the transmission strategy information; if the target terminal attribute information whose similarity with the current attribute information exceeds a similarity threshold is matched, the optimal data transmission rate in the network idle state corresponding to the target terminal attribute information is obtained; and the target data transmission rate corresponding to the current attribute information is determined according to the optimal data transmission rate.
[0010] In one embodiment of the present application, the determination module is further used to obtain the data transmission rate set in the network idle state corresponding to each target terminal attribute information if multiple target terminal attribute information is matched, so as to obtain multiple data transmission rate sets; if the same data transmission rate exists in the multiple data transmission rate sets, the optimal data transmission rate is determined according to the same data transmission rate.
[0011] In one embodiment of the present application, the determination module is further used to obtain the priority of each target terminal attribute information according to the network transmission requirements of the terminal if there is no identical data transmission rate in the multiple data transmission rate sets; and determine the optimal data transmission rate according to the data transmission rate set corresponding to the target terminal attribute information with the highest priority.
[0012] In one embodiment of the present application, the determination module is also used to configure a default transmission strategy based on the historical network transmission data of the terminal if the target terminal attribute information whose similarity with the current attribute information exceeds the similarity threshold is not matched; and use the default transmission strategy as the sending strategy of the terminal in the non-idle state.
[0013] In one embodiment of the present application, the transmission module is further used to obtain network quality information during network transmission and standard network quality information corresponding to the sending strategy of the terminal in the non-idle state; if the difference between the network quality information corresponding to the sending strategy and the standard network quality information is greater than a preset threshold, the sending strategy of the terminal in the non-idle state is adjusted according to the difference; and network transmission is performed based on the adjusted sending strategy.
[0014] In one embodiment of the present application, the device also includes a learning module for obtaining the data transmission rate corresponding to the adjusted sending strategy; learning the mapping relationship between the current attribute information, the sending strategy of the terminal in the non-idle state, and the data transmission rate corresponding to the adjusted sending strategy; when the terminal performs network transmission in the non-idle state next time, determining the sending strategy for the next network transmission based on the mapping relationship.
[0015] In one embodiment of the present application, the acquisition module is further used to send a data packet to a central server according to at least one configured sending strategy if it is detected that the current network is in an idle state, and obtain the data transmission rate corresponding to the at least one sending strategy; send the correspondence between the at least one sending strategy and the data transmission rate, and the terminal attribute information to the central server; and receive the transmission strategy information sent by the central server.
[0016] In one embodiment of the present application, the device also includes a detection module for detecting network parameters. If it is detected that the network parameters are less than the corresponding preset network parameter threshold, it is determined that the current network is in an idle state; wherein the network parameters include at least one of network traffic, network delay, network usage, number of network connections, network bandwidth utilization, and network activity time.
[0017] In one embodiment of the present application, the device also includes an adjustment module for adjusting network transmission parameters and obtaining at least one sending strategy based on the adjusted network transmission parameters; wherein the network transmission parameters include at least one of a sending buffer size, a congestion window size, a delayed confirmation time, and a congestion control algorithm.
[0018] In one embodiment of the present application, the transmission module is further used to establish a connection with a server, and send the sending strategy of the terminal in the non-idle state to the server, so that the server adjusts its own network transmission parameters according to the sending strategy of the terminal in the non-idle state; and performs network transmission with the server according to the sending strategy of the terminal in the non-idle state.
[0019] According to one aspect of an embodiment of the present application, an embodiment of the present application provides an electronic device, comprising one or more processors; a storage device for storing one or more computer programs, when the one or more computer programs are executed by the one or more processors, the electronic device implements the network transmission method as described above.
[0020] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of an electronic device, the electronic device executes the network transmission method as described above.
[0021] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a computer program product, including a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device performs the network transmission method as described above.
[0022] In the technical solution provided in the embodiments of the present application, transmission strategy information in the network idle state is obtained, and the transmission strategy information includes the correspondence between the sending strategy and the data transmission rate, and at least one terminal attribute information; if it is detected that the current network in which the terminal is located is in a non-idle state, the current attribute information of the terminal is obtained, and then the target data transmission rate corresponding to the current attribute information is determined according to the current attribute information and at least one terminal attribute information in the transmission strategy information; finally, the sending strategy of the terminal in the non-idle state is determined through the target data transmission rate and the correspondence, and network transmission is performed according to the sending strategy of the terminal in the non-idle state; that is, with the technical solution provided by the present application, the terminal can directly determine the sending strategy in the non-idle state based on the transmission strategy information in the network idle state when in the non-idle state, thereby avoiding the time consumed by the learning process during network transmission, thereby improving the network transmission efficiency, and the determined sending strategy conforms to the current attribute information, and then when network transmission is performed, it can meet the actual network transmission requirements.
[0023] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0025] Figure 1 It is a schematic diagram of an implementation environment involved in this application;
[0026] Figure 2 is a flow chart of a network transmission method shown in an exemplary embodiment of the present application;
[0027] Figure 3 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0028] Figure 4 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0029] Figure 5 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0030] Figure 6 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0031] Figure 7 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0032] Figure 8 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0033] Fig. 9 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0034] Fig.10 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0035] Fig.11 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0036] Fig.12 is a flow chart of a network transmission method shown in an exemplary embodiment of the present application;
[0037] Fig.13 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0038] Fig.14 is a flow chart of another network transmission method shown in an exemplary embodiment of the present application;
[0039] Fig.15 is a flowchart of a handshake protocol notification shown in another exemplary embodiment of the present application;
[0040] Fig.16 is a schematic diagram of a TCP message format shown in an exemplary embodiment of the present application;
[0041] Fig.17 is a structural block diagram of a network transmission device shown in an exemplary embodiment of the present application;
[0042] Fig.18 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0045] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all contents and operations, nor must they be executed in the order described. For example, some operations may be decomposed, while some operations may be combined or partially combined, so the actual execution order may change according to actual conditions.
[0046] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.
[0047] The following is a detailed description of the technical solution of the embodiment of the present application in combination with the implementation environment:
[0048] See also Figure 1 , Figure 11 is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes one or more terminals 10 and a central server 20. The terminal 10 and the central server 20 establish a communication connection through a network in advance, so that the terminal 10 and the central server 20 can communicate with each other through the network. The network can be a wired network or a wireless network, which is not limited here.
[0049] The central server 20 is used to receive the correspondence between the sending strategy and the data transmission rate sent by at least one terminal, and at least one terminal attribute information. The correspondence and the terminal attribute information are determined by the terminal when the network is in an idle state. Then the central server generates the policy information corresponding to the terminal when the network is in an idle state based on the correspondence and the at least one terminal attribute information, and sends the policy information to all terminals.
[0050] Terminal 10 is used to obtain transmission strategy information in a network idle state, where the transmission strategy information includes a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information; if it is detected that the current network in which the terminal is located is in a non-idle state, the current attribute information of the terminal is obtained; based on the current attribute information and at least one terminal attribute information in the transmission strategy information, a target data transmission rate corresponding to the current attribute information is determined; based on the target data transmission rate and the correspondence, the sending strategy of the terminal in a non-idle state is determined, and network transmission is performed according to the sending strategy of the terminal in the non-idle state.
[0051] In some embodiments, Figure 1 The implementation environment shown also includes a server (not shown in the figure), wherein an application is running on the terminal, and the server is the server corresponding to the application, and then the terminal can perform network transmission with the server based on the sending strategy.
[0052] Among them, the aforementioned terminal 10 can be any electronic device that can run application programs, such as a smart phone, a tablet, a laptop computer, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, etc. The central server 20 and the service end can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms. There is no restriction on this here.
[0053] It should be noted that in the specific implementation of the present application, the transmission policy information and / or attribute information is related to the object. When the embodiment of the present application is applied to a specific product or technology, it is necessary to obtain the object's permission or consent, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0054] The following is a detailed description of various implementation details of the technical solution of the embodiment of the present application:
[0055] like Figure 2 As shown, Figure 2 is a flowchart of a network transmission method shown in an embodiment of the present application, which can be applied to Figure 1 In the implementation environment shown, the method may be executed by a terminal, and the network transmission method may include S210 to S240, which are described in detail as follows:
[0056] S210. Acquire transmission strategy information in a network idle state, where the transmission strategy information includes a correspondence between a transmission strategy and a data transmission rate, and at least one terminal attribute information.
[0057] In an embodiment of the present application, the network idle state refers to a state corresponding to low network usage, such as a state when there is no data transmission or communication activity in the network, or a state when there is a small amount of data transmission in the network. The transmission policy information is policy information for network transmission when the terminal is in a network idle state.
[0058] The transmission strategy information includes the correspondence between the transmission strategy and the data transmission rate, and at least one terminal attribute information; wherein the transmission strategy in the correspondence includes one or more network transmission parameters, such as the network transmission parameters including the transmission buffer size, the congestion window size, the delayed confirmation time, etc., through which the terminal can perform network transmission based on the strategy. The data transmission rate in the correspondence refers to the rate at which data is transmitted during network transmission, and the data transmission rate is related to the transmission strategy.
[0059] It should be noted that in the correspondence, one sending strategy corresponds to one data transmission rate; different sending strategies can correspond to the same data transmission rate, which is not limited here. In one example, the sending strategy and the data transmission rate in the correspondence are determined by at least one terminal, for example, terminal A determines the correspondence between sending strategy 1 and data transmission rate 1, terminal B determines the correspondence between sending strategy 2 and data transmission rate 2, and terminal C determines the correspondence between sending strategy 3 and data transmission rate 1, and then the correspondence in the transmission strategy information is generated through the correspondence determined by terminals A, B, and C.
[0060] In the embodiment of the present application, terminal attribute information refers to some characteristics and attribute information of the terminal, which can be used to locate different terminals. For example, terminal attribute information includes terminal location information, terminal signal information, network bandwidth, etc. Among them, a terminal may include one or more terminal attribute information. If the transmission strategy information includes multiple terminal attribute information, it may belong to one terminal or different terminals, which is not limited here.
[0061] In one example, the terminal obtains the transmission policy information from a third-party server, or the terminal receives correspondence and terminal attribute information of other terminals and generates the information based on its own correspondence and terminal attribute information, which is not limited here.
[0062] S220: If it is detected that the current network where the terminal is located is in a non-idle state, obtain current attribute information of the terminal.
[0063] In an embodiment of the present application, the terminal can detect whether the current network it is in is in a non-idle state, wherein the terminal can determine whether it is in a non-idle state by detecting data transmission conditions. If it is detected that the current network where the terminal is located is in a non-idle state, current attribute information is obtained, and the current attribute information refers to the attribute information of the terminal at this time when it is in a non-idle state.
[0064] S230. Determine a target data transmission rate corresponding to the current attribute information according to at least one terminal attribute information in the current attribute information and the transmission strategy information.
[0065] In an embodiment of the present application, based on the comparison of the current attribute information in the non-idle state and at least one terminal attribute information in the idle state in the transmission policy information, the corresponding situation of the terminal in the non-idle state in the idle state can be determined, such as comparing the current attribute information with at least one terminal attribute in the transmission policy information to determine the corresponding terminal attribute information, and then based on the data transmission rate corresponding to the terminal attribute information, determine the target data transmission rate corresponding to the current attribute information.
[0066] S240: Determine a sending strategy of the terminal in a non-idle state according to the target data transmission rate and the corresponding relationship, and perform network transmission according to the sending strategy of the terminal in the non-idle state.
[0067] In an embodiment of the present application, after determining the target data transmission rate, the target transmission rate can be compared with the corresponding relationship in the transmission strategy information, that is, the target data transmission rate can be compared with the data transmission rate in the corresponding relationship one by one to determine the corresponding data transmission rate, and then the sending strategy in the corresponding relationship is searched, and the found sending strategy is used as the sending strategy of the terminal in a non-idle state.
[0068] If the terminal needs to transmit data in a non-idle state, network transmission is performed based on the determined transmission strategy to send the data to be transmitted to other devices.
[0069] In an embodiment of the present application, when the terminal is in a non-idle state, it can directly determine the sending strategy in the non-idle state based on the transmission strategy information in the network idle state, thereby avoiding the time consumed by the learning process during network transmission, thereby improving network transmission efficiency, and the determined sending strategy conforms to the current attribute information, and can meet the actual network transmission needs when performing network transmission.
[0070] In one embodiment of the present application, another network transmission method is provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Figure 3 As shown, the network transmission method is Figure 2 Based on the basis shown in Figure 2 S230 in the embodiment is expanded into steps S310 to S330; wherein S310 to S330 are described in detail as follows:
[0071] S310: Match the current attribute information with the attribute information of each terminal in the transmission strategy information.
[0072] In an embodiment of the present application, the current attribute information is matched with each terminal attribute information in the transmission policy information in sequence, wherein the current attribute information and the terminal attribute information include multiple types of attribute information. In this case, when matching, the attribute information of the same type is matched, for example, the terminal location information is matched with the location information in the transmission policy information.
[0073] S320: If target terminal attribute information whose similarity with the current attribute information exceeds a similarity threshold is matched, the optimal data transmission rate in the network idle state corresponding to the target terminal attribute information is obtained.
[0074] In an embodiment of the present application, when matching current attribute information with each terminal attribute information in the transmission strategy information, it is necessary to first calculate the information similarity between the current attribute information and each terminal attribute information, wherein the information similarity can be calculated based on the cosine distance between the vector corresponding to the current attribute information and the vector corresponding to the terminal attribute information. In one example, the terminal attribute information whose similarity exceeds a preset similarity threshold is used as the target terminal attribute information; in another example, the terminal attribute information with the highest similarity is selected from the terminal attribute information whose similarity exceeds the preset similarity threshold as the target terminal attribute information.
[0075] Among them, according to the different types of attribute information, the corresponding similarity thresholds may also be different, for example, the similarity threshold of location information and the similarity threshold of signal strength may be different; the similarity threshold can be flexibly adjusted according to actual conditions.
[0076] In an embodiment of the present application, if the target terminal attribute information is matched, the optimal data transmission rate in the network idle state corresponding to the target terminal attribute information is obtained; wherein, in one example, the optimal data transmission rate of the terminal corresponding to the target terminal attribute information in the network idle state is obtained, wherein the correspondence between the terminal's sending strategy and the data transmission rate, and the terminal attribute information of the terminal are stored in an associated manner, then the optimal data transmission rate of the terminal corresponding to the target terminal attribute information can be directly found from the correspondence.
[0077] In one example, there is a mapping relationship between the terminal attribute information and the data transmission rate in the network idle state, and then the optimal transmission rate corresponding to the target terminal attribute information is found from the mapping relationship.
[0078] In one example, if there is only one target terminal attribute information, the corresponding maximum data transmission rate in the network idle state is used as the optimal data transmission rate.
[0079] In one example, if there is only one target terminal attribute information, the corresponding maximum packet loss rate in the corresponding network idle state can be obtained, and the data transmission rate closest to the maximum packet loss rate can be found from the corresponding relationship as the optimal data transmission rate.
[0080] S330. Determine a target data transmission rate corresponding to the current attribute information according to the optimal data transmission rate.
[0081] In one example, the optimal data transmission rate may be directly used as the target transmission rate corresponding to the current attribute information.
[0082] In another example, the optimal data transmission rate may also be processed to determine the target data transmission. It is understandable that when the network where the terminal is located is in an idle state and a non-idle state, the network transmission rate is different to a certain extent, and the optimal data transmission rate of the terminal in the idle state of the network may not be suitable for the non-idle state, so the optimal data transmission rate may be adjusted to make the target transmission rate lower than the optimal data transmission rate. For example, on the basis of the optimal data transmission rate, the data transmission rate of one unit is reduced, and the data transmission rate of the one unit can be flexibly adjusted according to actual conditions.
[0083] It should be noted that Figure 3 For more detailed information about S210~S220 and S240, please refer to Figure 2S210 to S220 and S240 shown are not described in detail here.
[0084] In an embodiment of the present application, the current attribute information is matched with the terminal attribute information, and then the target terminal attributes whose similarity exceeds the similarity threshold are determined, and then the optimal transmission rate corresponding to the target terminal attributes is obtained to ensure the accuracy and rationality of the optimal transmission rate. The target data transmission rate corresponding to the current attribute information is determined according to the optimal data transmission rate, so that the target transmission rate can meet the non-idle state of the network.
[0085] The present application embodiment provides another network transmission method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Figure 4 As shown, the network transmission method is Figure 3 Based on the basis shown in Figure 3 The S320 shown in the figure is expanded to S410 to S420. S410 to S420 are described in detail as follows:
[0086] S410: If multiple target terminal attribute information is matched, a data transmission rate set in a network idle state corresponding to each target terminal attribute information is obtained to obtain multiple data transmission rate sets.
[0087] In the embodiment of the present application, if multiple target terminal attribute information is matched, wherein the multiple target terminal attribute information belongs to different terminals, then the data transmission rate set corresponding to each terminal corresponding to each target terminal attribute information in the network idle state is obtained. It can be understood that a terminal corresponding to a target terminal attribute information can correspond to multiple data transmission rates in the network idle state, and the multiple data transmission rates are taken as a data transmission rate set, thereby obtaining multiple data transmission rates of multiple target terminal attribute information.
[0088] For example, if the target terminal location information whose similarity with the current location information exceeds the preset similarity threshold, and the target terminal signal strength whose similarity with the current signal strength exceeds the preset similarity threshold, then the first data transmission rate set corresponding to the first terminal corresponding to the target terminal location information and the second data transmission rate set corresponding to the second terminal corresponding to the target terminal signal strength are obtained.
[0089] S420: If it is determined that the same data transmission rate exists in the multiple data transmission rate sets, determine the optimal data transmission rate according to the same data transmission rate.
[0090] In an embodiment of the present application, it is determined whether there is an intersection among multiple data transmission rate sets, that is, whether there is the same data transmission rate. If it is determined that the same data transmission rate exists, it means that the data transmission rate satisfies multiple attribute information, and then the optimal data transmission rate is determined based on the same data transmission rate. For example, the first data transmission rate set includes a1 and a2; the second data transmission rate set includes a2 and a3, then the same data transmission rate is a2.
[0091] In one example, if there is only one identical data transmission rate, the identical data transmission rate is used as the optimal data transmission rate.
[0092] In one example, if there are multiple identical data transmission rates, the one with the largest rate is selected from the multiple identical data transmission rates as the optimal data transmission rate.
[0093] In another example, if there are multiple identical data transmission rates, the historical maximum packet loss rate of the network transmission process in the non-idle state of the current terminal is obtained, and the data transmission rate closest to the historical maximum packet loss rate among the multiple identical data transmission rates is used as the optimal data transmission rate.
[0094] It should be noted that Figure 4 For detailed description of S210~S220, S310, S330, and S240 shown in Figure 3 S210 to S220, S310, S330, and S240 shown are not described in detail here.
[0095] In an embodiment of the present application, after matching multiple target terminal attribute information, a set of data transmission rates in a network idle state corresponding to each target terminal attribute information is obtained to obtain multiple data transmission rate sets, and then the optimal data transmission rate is determined based on the data transmission rate of the intersection of the multiple data transmission rates, so that the optimal data transmission rate is more accurate and reliable.
[0096] The present application also provides another network transmission method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Figure 5 As shown, in Figure 4 Based on the above, steps S510 to S520 are added. S510 to S520 are described in detail as follows:
[0097] S510: If it is determined that there is no identical data transmission rate in the multiple data transmission rate sets, the priority of attribute information of each target terminal is obtained according to the network transmission requirement of the terminal.
[0098] In an embodiment of the present application, there may not be the same data transmission rate among multiple data transmission rates. For example, the first data transmission rate set includes a1 and a2; the second data transmission rate set includes a3 and a4, and there is no intersection of data transmission rates. In this case, the priority of each target terminal attribute information is obtained. The priority is used to indicate the importance of the target terminal attribute information. The higher the priority, the higher the importance of the target terminal attribute information.
[0099] Among them, the priority of each target terminal attribute information is determined according to the network transmission requirement of the terminal. The network transmission requirement of the terminal can be determined by the object to which the terminal belongs. For example, the object to which the terminal belongs sets the importance of signal type in the network transmission requirement of the terminal to be greater than the importance of signal strength, and the importance of signal strength is greater than the importance of location information. In this case, the priority of determining the target terminal signal strength is greater than the priority of the target terminal location information.
[0100] In one example, the network transmission requirements of the terminal can also be determined based on the type of data that the terminal needs to transmit. For example, if the type of data that the terminal needs to transmit is game operation data or video data, the importance of signal strength is greater than the importance of signal type; if the type of data that the terminal needs to transmit involves security or confidentiality, the location information is the most important, and the priority of the corresponding target terminal attribute information can be determined.
[0101] S520: Determine the optimal data transmission rate according to the data transmission rate set corresponding to the target terminal attribute information with the highest priority.
[0102] In an embodiment of the present application, the target terminal attribute information with the highest priority is determined from multiple target terminal attribute information. Based on the data transmission rate set corresponding to the target terminal attribute information with the highest priority, the largest data transmission rate in the data transmission rate set can be used as the optimal data transmission rate; or the data transmission rate in the data transmission rate set that is closest to the terminal's historical maximum packet loss rate can be used as the optimal data transmission rate.
[0103] It should be noted that Figure 5 For more detailed information about S210~S220, S310, S410~S420, S330, and S240 shown in Figure 4 S210~S220, S310, S410~S420, S330, and S240 shown in the figure are not repeated here.
[0104] In an embodiment of the present application, if there is no intersection of data transmission rates in multiple data transmission rate sets, the priority of the target terminal attribute information is obtained through the network transmission requirements of the terminal, and the optimal transmission rate is determined through the priority, so that the optimal transmission rate can meet the network transmission requirements as much as possible, thereby ensuring the reliability and rationality of the optimal transmission rate.
[0105] In one embodiment of the present application, another network transmission method is also provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Figure 6 As shown, the network transmission method is Figure 3 Based on the above, steps S610 to S620 are added. S610 to S620 are described in detail as follows:
[0106] S610: If target terminal attribute information whose similarity with the current attribute information exceeds the similarity threshold is not matched, a default transmission strategy is configured according to historical network transmission data of the terminal.
[0107] In an embodiment of the present application, when matching the current attribute information with the attribute information of each terminal, if the target terminal attribute information whose similarity with the current attribute information exceeds the similarity threshold is not matched, a default transmission strategy is required, in which the default transmission rate is configured according to the historical network transmission data of the terminal.
[0108] For example, the network transmission rate required by the terminal can be obtained, such as determined according to the applications and services used by the terminal, and the minimum network transmission rate requirement; then historical network transmission data is obtained, including network traffic, and the historical transmission rate corresponding to the network traffic; the default transmission rate of the terminal is determined according to the historical network transmission data, such as by checking the peak and valley values of the historical network traffic, and calculating the average historical network transmission rate, and then the default transmission rate is configured based on the network transmission rate required by the terminal and the calculated average historical network transmission rate. If the network transmission rate required by the terminal is less than the average historical network transmission rate, the average historical network transmission rate is used as the default transmission rate; if the network transmission rate required by the terminal is greater than the average historical network transmission rate, the historical network transmission rate corresponding to the valley value of the historical network traffic and the average rate of the average historical network transmission rate can be used as the default transmission rate; finally, the default transmission policy is configured based on the default transmission rate.
[0109] S620: Use the default transmission strategy as the sending strategy of the terminal in a non-idle state.
[0110] In an embodiment of the present application, the default transmission strategy is used as the sending strategy of the terminal in a non-idle state; in some examples, it is possible to test whether the data transmission rate corresponding to the default transmission strategy can ensure that the network transmission requirements of the terminal are met based on the sending strategy; if the data transmission rate corresponding to the default transmission strategy does not meet the requirements, the historical network transmission data can be analyzed again and adjusted. For example, the historical time of the historical network transmission analyzed again is wider, making the historical network data more comprehensive, and then adjusting the default transmission policy.
[0111] It should be noted that Figure 6 For more detailed information about S210~S220, S310~S330, and S240 shown in Figure 3 S210~S220, S310~S330, and S240 shown are not repeated here.
[0112] In an embodiment of the present application, when target terminal attribute information whose similarity with current attribute information exceeds a similarity threshold is not matched, a default transmission strategy is configured based on the terminal's historical network transmission data, and then transmission is performed, so that the default transmission strategy can be as consistent as possible with the actual transmission situation of the terminal, thereby ensuring the reliability of network transmission.
[0113] It is worth noting that in one embodiment of the present application, another network transmission method is also provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Figure 7 As shown, the network transmission method is Figure 2 Based on the above, S240 is expanded into steps S710 to S740. S710 to S740 are described in detail as follows:
[0114] S710: Determine a sending strategy of the terminal in a non-idle state according to the target data transmission rate and the corresponding relationship.
[0115] S720: Acquire network quality information of the terminal during network transmission according to the sending strategy in the non-idle state and standard network quality information corresponding to the sending strategy of the terminal in the non-idle state.
[0116] In an embodiment of the present application, during the process of network transmission according to the sending strategy of the terminal in a non-idle state, the sending strategy can be adjusted. In the process of network transmission, network quality information of the network transmission process is obtained, and the network quality information includes but is not limited to packet loss rate, network delay, transmission rate, etc.
[0117] In one example, after a preset time period of network transmission is performed according to a sending strategy, network quality information within the period of time may be obtained.
[0118] The standard network quality information corresponding to the sending strategy of the terminal in a non-idle state refers to the network quality information corresponding to the sending strategy in an ideal state, such as the standard data transmission rate, that is, the target data transmission rate corresponding to the current attribute information.
[0119] S730: If the difference between the network quality information corresponding to the sending strategy and the standard network quality information is greater than a preset threshold, adjust the sending strategy of the terminal in a non-idle state according to the difference.
[0120] In the embodiment of the present application, due to the interference of various factors in the actual network transmission process, the network compares the standard network quality information with the network quality information in the network transmission process, and can obtain the changes in the network quality information in the actual network transmission process.
[0121] If there is a difference between the standard network quality information and the network quality information during network transmission, and the difference is greater than a preset threshold, it means that the sending strategy of the terminal in the non-idle state is not suitable for the current actual transmission, and the sending strategy needs to be adjusted.
[0122] In one example, the preset threshold corresponding to the difference between the network quality information can be flexibly adjusted according to actual conditions. For example, the higher the terminal transmission requirement is, the larger the preset threshold is.
[0123] Among them, the sending strategy is adjusted according to the difference between the network quality information. For example, if the packet loss rate during network transmission is greater than the standard packet loss rate, the sending buffer in the sending strategy can be reduced to reduce the data transmission rate in the sending strategy; if the packet loss rate during network transmission is much lower than the standard packet loss rate, the sending buffer in the sending strategy is increased to increase the data transmission rate.
[0124] The sending strategy is adjusted according to the difference between the network quality information, and an alternative sending strategy can be selected from the transmission strategy information for switching, wherein the alternative sending strategy is a sending strategy that is closer to the network quality information during the network transmission process, such as obtaining the actual data transmission rate during the network transmission process, and selecting a sending strategy that is closer to the actual transmission rate from the transmission strategy information.
[0125] S740: Perform network transmission based on the adjusted sending strategy.
[0126] In other embodiments of the present application, if the difference between the network quality information corresponding to the sending strategy and the standard network quality information is less than or equal to a preset threshold, there is no need to adjust the sending strategy of the terminal in a non-idle state, and the subsequent data can continue to be transmitted with the sending strategy.
[0127] It should be noted that Figure 7 For more detailed information about S210~S230 shown in Figure 2 S210 to S230 shown are not described in detail here.
[0128] In an embodiment of the present application, based on the difference between the standard quality information and the actual network quality information during the network transmission process, it is determined whether to adjust the sending strategy in the non-idle state, so that the sending strategy is more in line with the actual network transmission situation, thereby ensuring the reliability of network transmission.
[0129] In one embodiment of the present application, another network transmission method is also provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal or a server, or by a terminal and a server together. In the embodiment of the present application, the method is described by taking the server as an example. Figure 8 As shown, the network transmission method is Figure 7 Based on the above, steps S810 to S830 are added after S740. S810 to S830 are described in detail as follows:
[0130] S810. Obtain a data transmission rate corresponding to the adjusted sending strategy.
[0131] In an embodiment of the present application, after network transmission is performed based on the adjusted sending strategy, the data transmission rate corresponding to the adjusted sending strategy can be calculated by the data transmission amount and the data transmission time.
[0132] S820: Learn the mapping relationship between the current attribute information, the sending strategy of the terminal in a non-idle state, and the data transmission rate corresponding to the adjusted sending strategy.
[0133] In an embodiment of the present application, big data learning can be performed based on current attribute information, the sending strategy of the terminal in a non-idle state, and the data transmission rate corresponding to the adjusted sending strategy. For example, the relationship between the three variables can be analyzed, and a mapping model can be established to learn the mapping relationship between the three through the mapping model, wherein the mapping model includes a neural network, a support vector machine, etc. The current attribute information, the sending strategy of the terminal in a non-idle state, and the data transmission rate corresponding to the adjusted sending strategy are input into the mapping model to train and learn the mapping model to achieve accurate prediction of the mapping relationship between the three.
[0134] S830: When the terminal performs network transmission in a non-idle state next time, a sending strategy for the next network transmission is determined based on the mapping relationship.
[0135] In an embodiment of the present application, when the terminal performs network transmission in a non-idle state next time, a mapping model is established to predict the transmission strategy of the next network transmission. In one example, after the transmission strategy is predicted by the mapping model, the transmission strategy is adaptively adjusted, for example, the transmission strategy can be adaptively adjusted based on the allocation of network resources.
[0136] It should be noted that Figure 8 For more detailed information about S210~S230 and S710~S740, see Figure 7 S210~S230 and S710~S740 shown are not repeated here.
[0137] In an embodiment of the present application, the mapping relationship between current attribute information, the sending strategy of the terminal in a non-idle state, and the data transmission rate corresponding to the adjusted sending strategy is learned, and then the current situation, ideal situation, and actual transmission situation are considered through the learned mapping relationship to predict the sending strategy for the next network transmission, thereby improving the accuracy of determining the sending strategy.
[0138] In one embodiment of the present application, another network transmission method is also provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Fig. 9 As shown, the network transmission method is Figure 2 Based on the above, S210 is expanded to S910 to S930. S910 to S930 are described in detail as follows:
[0139] S910: If it is detected that the current network is in an idle state, a data packet is sent to a central server according to at least one configured sending strategy, and a data transmission rate corresponding to at least one sending strategy is obtained.
[0140] In an embodiment of the present application, the terminal is pre-configured with at least one sending strategy. If the sending strategy includes multiple and different sending strategies, if it is detected that the current network is in an idle state, the terminal can send a data packet to the central server based on at least one configured sending strategy, that is, the terminal actively attempts to send a data packet to the central server based on different sending strategies in the network idle state. The data packet can be any data packet, such as a meaningless data packet, or a data packet for a heartbeat connection, etc.; wherein the central server can be a third-party server. The terminal can obtain the data transmission rate corresponding to the sending strategy based on the data volume and sending time of the data packet.
[0141] S920: Send the correspondence between at least one sending strategy and the data transmission rate, and the terminal attribute information to the central server.
[0142] In an embodiment of the present application, when a terminal sends a data packet to a central server based on at least one sending strategy, it obtains its current terminal attribute, and then after obtaining the data transmission rate, it associates the sending strategy with the data transmission rate to obtain a corresponding relationship, and then sends the corresponding relationship and the terminal attribute information at this time to the central server. In one example, the corresponding relationship and the terminal attribute information can be associated, and the terminal identifier of the terminal can be marked and sent to the central server so that the central server can store and distinguish it from other terminals.
[0143] S930: Receive transmission strategy information sent by the central server.
[0144] In an embodiment of the present application, the central server can receive the corresponding relationship sent by one or more terminals and the terminal attribute information of each terminal to generate transmission policy information, and send the transmission policy information to each terminal, so that the terminal can receive the transmission policy information.
[0145] In other embodiments of the present application, after receiving the correspondence sent by one or more terminals, the central server can dynamically adjust the sending strategy in the correspondence according to changes in the network environment, and then adjust the data transmission rate corresponding to the sending strategy to improve the network transmission rate and stability. Finally, the transmission strategy information is generated based on the network environment, the correspondence between the adjusted sending strategy and the adjusted data transmission rate, and the terminal attribute information.
[0146] It is understandable that even if the network is in a network state, the network environment for data transmission may be unstable. For example, the connection quality between the terminal and the network base station or router is lower than the preset connection quality. The central server can detect the signal strength of the terminal's location, such as by receiving the signal strength report sent by the terminal or using location services (such as GPS) for detection. If the signal strength at the terminal's location is unstable, sometimes good and sometimes bad, it means that the network environment is an unstable network environment. The mean signal strength is determined based on the optimal signal strength and the worst signal strength at the terminal's location, and based on the mean signal strength and the sending strategy sent by the terminal, the sending buffer size, congestion window size, delayed confirmation time or different congestion control algorithms are adjusted; if the signal strength corresponding to the sending strategy sent by the terminal is greater than the mean signal strength, the buffer size is reduced, the congestion window size is increased, etc.
[0147] In other embodiments of the present application, after the central server receives the correspondence sent by one or more terminals, when the terminal attribute information is the same, there are different sending strategies in the correspondence, but the data transmission rate is the same, the central server can select the sending strategy in the correspondence and then generate transmission strategy information.
[0148] For example, terminal A sends the correspondence between sending strategy 1 and data transmission rate 1, and terminal A corresponds to position x, terminal B sends the correspondence between sending strategy 2 and data transmission rate 1, and terminal B also corresponds to position x. These may be sending strategies sent by terminal A and terminal B in idle states with different degrees of network idleness. At this time, the central server can choose from sending strategy 1 and sending strategy 2. If the central server can obtain the historical average data transmission rate of position x, and the historical average data transmission rate is different from data transmission rate 1, then a sending strategy that is closer to the historical average data transmission rate is selected from sending strategy 1 and sending strategy 2.
[0149] For another example, when the central server selects from sending strategy 1 and sending strategy 2, it can directly select the sending strategy that is more suitable for the non-idle state.
[0150] Similarly, when the terminal attribute information is the same, and there is the same sending strategy in the corresponding relationship, but different data transmission rates, the central server can select the data transmission rate in the corresponding relationship. For example, you can directly select a data transmission rate that is more suitable for a non-idle state, such as selecting a smaller data transmission rate; you can also select a data transmission rate that is closer to the historical average data transmission rate.
[0151] In other embodiments of the present application, in addition to receiving the first correspondence sent by one or more terminals in the network idle state and the corresponding terminal attribute information, the central server can also receive the second correspondence sent by one or more terminals in the network non-idle state and the corresponding terminal attribute information, and generate transmission strategy information in combination with the first correspondence and the second correspondence in the case of the same terminal attribute information. For example, the first correspondence includes the correspondence between the sending strategy 3 and the data transmission rate 3, and the second correspondence includes the correspondence between the sending strategy 4 and the data transmission rate 4. Then, the average of the data transmission rate 3 and the data transmission rate 4 can be taken as the candidate data transmission rate, and then some parameters of the sending strategy 3 are adjusted based on the candidate data transmission rate, and some parameters of the sending strategy 4 are adjusted. The candidate sending strategy is generated in combination with the adjusted parameters, and then the candidate data transmission rate and the candidate sending strategy are corresponded to generate the transmission strategy information, so that the transmission rate information considers the idle state and the non-idle state to meet the actual data transmission situation.
[0152] It should be noted that Fig. 9 For more detailed information about S220~S240 shown in Figure 2 S220 to S240 shown are not described in detail here.
[0153] In an embodiment of the present application, the terminal actively tries different transmission rates when the network is idle and sends them to the central server, which summarizes the information and sends it to the terminal so that the terminal can obtain relevant information of other terminals and realize the sharing of transmission strategy information.
[0154] In one embodiment of the present application, another network transmission method is also provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Fig.10 As shown, the network transmission method is Fig. 9 Based on the above, S1010 is added before S910. S1010 is described in detail as follows:
[0155] S1010: Detect network parameters. If the detected network parameters are less than corresponding preset network parameter thresholds, determine that the current network is in an idle state.
[0156] It is worth noting that the network parameters in the embodiments of the present application include at least one of network traffic, network delay, network usage, number of network connections, network bandwidth utilization, and network activity time, and these network parameters reflect the operating status and quality of the network.
[0157] In actual applications, different network parameters can be selected for testing according to different network requirements and application scenarios. For example, if the network requirements are high or the application scenario involves data security, all network parameters can be selected for testing; if the network requirements are low or the application scenario is generally not related to security, 2 to 3 network parameters can be selected for testing.
[0158] Among them, network traffic refers to the amount of data transmitted in the network, usually expressed in bytes or bits. Network latency refers to the time required for data to travel from the sender to the receiver in the network, usually expressed in milliseconds or microseconds. Network usage refers to the load of each node in the network, including CPU usage, memory usage, etc. The number of network connections refers to the number of current connections in the network, including TCP connections, UDP connections, etc. Network bandwidth utilization refers to the proportion of bandwidth actually used in the network to the total bandwidth, usually expressed as a percentage. Network activity time refers to the running time of each node in the network, including startup time and running time, etc.
[0159] In practical applications, different preset network parameter thresholds can be set for different network parameters. When the detected network parameter is less than the corresponding preset network parameter threshold, it can be determined that the current network is in an idle state. In the idle state, the network traffic, network delay, and network bandwidth utilization are low, the network usage and the number of network connections are also low, and the network activity time is also reduced accordingly. Therefore, by comparing one or more network parameters with the corresponding preset network parameter threshold, it can be determined whether the current network is in an idle state, and corresponding network management and scheduling can be performed as needed.
[0160] It should be noted that Fig.10 For more detailed information about S910~S930, S220~S240, see Fig. 9 S910 to S930 and S220 to S240 shown are not described in detail here.
[0161] In the embodiment of the present application, the network parameters are detected, and when it is detected that the network parameters are less than the corresponding preset network parameter threshold, it is determined that the current network is in an idle state, thereby ensuring the accuracy of the detection.
[0162] The present application embodiment provides another network transmission method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a terminal, such as Fig.11 As shown, the network transmission method is Fig. 9 Based on the above, S1110 is added before S910. S1110 is described in detail as follows:
[0163] S1110: If it is detected that the current network is in an idle state, adjust the network transmission parameters, and obtain at least one sending strategy according to the adjusted network transmission parameters.
[0164] In an embodiment of the present application, the terminal can adjust the network transmission parameters by itself, and the network transmission parameters include at least one of the sending buffer size, congestion window size, delayed confirmation time, and congestion control algorithm.
[0165] Among them, the sending buffer size refers to the need for the terminal to store data in the local buffer before sending data so that it can be sent quickly during network transmission. Adjusting the sending buffer size can increase the data transmission speed and reduce the risk of data loss. The congestion window size refers to the data transmission rate that the terminal can adjust when the network is congested; when the network is more congested, the terminal needs to reduce the data transmission rate to avoid aggravating network congestion. Adjusting the congestion window size can effectively reduce the risk of network congestion. Delay confirmation time refers to the period of time that the terminal needs to wait to send confirmation information after receiving the data; adjusting the delay confirmation time can improve data transmission efficiency and reduce network burden. A congestion control algorithm is an algorithm used to control the data transmission rate. It can automatically adjust the data transmission rate according to the network conditions. Adjusting the congestion control algorithm can improve data transmission efficiency and reduce the risk of network congestion. Congestion control algorithms include TCP congestion control method, ECN (Explicit Congestion Notification) method, XCP (Cross-Layer Congestion Control) and VCP (Virtual Channel Congestion Control) method, link method, etc.
[0166] In one example, the terminal can adjust at least one parameter of the sending buffer size, congestion window size, delayed confirmation time, and congestion control algorithm according to the current network conditions and transmission requirements; for example, if the network delay is high, the congestion window size can be reduced to avoid affecting the overall transmission speed; if the network delay is low, the congestion window size can be appropriately increased to better utilize the available bandwidth.
[0167] According to the adjusted network transmission parameters, the terminal can obtain at least one sending strategy to achieve more efficient and stable data transmission.
[0168] It should be noted that Fig.11 For more detailed information about S910~S930, S220~S240, see Fig. 9 S910 to S930 and S220 to S240 shown are not described in detail here.
[0169] In an embodiment of the present application, if it is detected that the current network is in an idle state, the network transmission parameters are adjusted, and at least one sending strategy is obtained based on the adjusted network transmission parameters, so that the terminal can reasonably try different sending strategies in the network idle state.
[0170] The present application embodiment provides another network transmission method, which can be applied to Figure 1In the implementation environment shown, the method can be executed by a terminal, such as Fig.12 As shown, the network transmission method is Figures 2 to 11 Based on the Figure 2 Based on the example shown in the figure, S240 is expanded to S1210 to S1220. S1210 to S1220 are described in detail as follows:
[0171] S1210: Establish a connection with the server, and send the sending strategy of the terminal in the non-idle state to the server, so that the server adjusts its own network transmission parameters according to the sending strategy of the terminal in the non-idle state.
[0172] In the embodiment of the present application, the terminal communicates with the server through a network, and there are multiple ways to establish a connection between the terminal and the server, such as a connection based on the TCP protocol, a connection based on the HTTP protocol, etc. Once the connection is successfully established, the terminal can send its own sending strategy in a non-idle state to the server by sending a data packet, and the server can adjust the network transmission parameters on the server side to further speed up the network transmission.
[0173] In one example, a terminal and a server establish a connection through a handshake protocol. The terminal sends the terminal's sending strategy in a non-idle state to the server through a handshake data packet, and then the server adjusts its own network transmission according to the network transmission parameters in the sending strategy to make the terminal's own network transmission, for example, if the terminal sets a bandwidth limit, the server can automatically adjust its own transmission rate according to the current network status and bandwidth conditions to avoid network congestion and bandwidth waste. If the terminal sets a delay requirement, the server can adjust its response speed accordingly to respond to the terminal's request as quickly as possible. If the terminal sets a data packet size, the server can automatically adjust its own data packet size according to the current network status and transmission quality to improve network transmission efficiency and stability.
[0174] In one example, the server can record the final data transmission rate after each network transmission parameter adjustment, perform big data learning, and learn the mapping relationship between network transmission parameters and data transmission rate, thereby obtaining better network transmission parameters.
[0175] In one example, when the server is also communicating with other devices, when the server adjusts its own network transmission parameters, it only adjusts the network transmission parameters corresponding to the network communication with the terminal.
[0176] S1220. Perform network transmission with the server according to the sending strategy of the terminal in a non-idle state.
[0177] In an embodiment of the present application, after sending the sending strategy to the server, the terminal can perform network transmission with the server according to the sending strategy to transmit the corresponding data to the server.
[0178] It should be noted that Fig.12 For detailed description of S210~S240 shown in Figure 2 S210 to S240 shown in FIG. 1 are not described in detail here.
[0179] In an embodiment of the present application, by establishing a connection with the server and sending a sending strategy to the server, the terminal can work together with the server to jointly optimize network transmission efficiency and stability, and further improve network transmission speed and quality.
[0180] Figures 2 to 12 The embodiment shown is explained from the perspective of the terminal. Fig.13 The implementation details of the technical solution of the embodiment of the present application are elaborated in detail from the perspective of the central server:
[0181] The present application also provides another network transmission method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by a central server, such as Fig.13 As shown, the network transmission method includes S1310 to S1330, which are described in detail as follows:
[0182] S1310. Obtain a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information, wherein the correspondence and the at least one terminal attribute information are determined in a network idle state.
[0183] The central server may receive the correspondence between the transmission strategy and the data transmission sent by one or more terminals, and receive the terminal attribute information of the one or more terminals, wherein the one or more terminals determine the correspondence and the terminal attribute information when the network is in an idle state.
[0184] S1320. Generate transmission strategy information in a network idle state according to the corresponding relationship and at least one terminal attribute information.
[0185] S1330. Send the transmission strategy information to each terminal.
[0186] In an embodiment of the present application, the central server can summarize the corresponding relationship and terminal attribute information, and then generate transmission strategy information in the network idle state.
[0187] In an embodiment of the present application, the terminal actively tries different transmission rates and sends them to the central server when the network is idle. The central server summarizes the information and generates transmission strategy information and sends it to the terminal, so that the terminal can obtain relevant information of other terminals, realize the sharing of transmission strategy information, and avoid the time consumed by the learning process during network transmission.
[0188] For ease of understanding, the present application also provides a network transmission method, which is applied to Figure 1 In the implementation environment shown, the network transmission is described with a specific example, wherein the central server is used to store and manage all data sent by the terminal, the terminal includes multiple terminals, and an application is running on the terminal. The terminal can communicate with the application server (the aforementioned server) corresponding to the application to transmit the data corresponding to the application to the application server through the network. Fig.14 As shown, the network transmission method is jointly executed by any terminal, central server and application server, and includes:
[0189] S1401. The terminal determines that the current network is in an idle state.
[0190] In the embodiment of the present application, the terminal can determine whether the current network is in an idle state through the following six aspects:
[0191] Detect network traffic: It is understandable that when the network is in an idle state, the network traffic is usually low. Therefore, it is possible to detect whether the current network traffic is less than the preset network traffic threshold. If the current network traffic is less than the preset network traffic threshold, it means that the network where the terminal is located is in an idle state.
[0192] Detect network delay: When the network is in an idle state, the network delay is usually low, so it is possible to detect whether the current network delay is less than the preset network delay threshold. If the current network delay is less than the preset network delay threshold, it means that the network where the terminal is located is in an idle state.
[0193] Observe network usage: When the network is in an idle state, network usage is usually low, so you can observe whether the network usage meets the preset network conditions. If it does, it means that the network where the terminal is located is in an idle state.
[0194] Check the number of network connections: When the network is idle, the number of network connections is usually small. You can determine whether the network is idle by checking the number of network connections.
[0195] Check network bandwidth utilization: When the network is idle, the network bandwidth utilization is usually low. You can determine whether the network is idle by checking the network bandwidth utilization.
[0196] Analyze network activity time: When the network is idle, the network activity time is usually short. You can determine whether the network is idle by analyzing the network activity time.
[0197] In the embodiment of the present application, when all of the above six aspects are met, or when at least three of the solutions are met, it is determined that the network in which the terminal is located is in an idle state.
[0198] S1402: The terminal sends a data packet to the central server by setting at least one sending strategy.
[0199] In the embodiment of the present application, a terminal may send a data packet to the central server through at least one sending strategy; or multiple terminals may send data packets to the central server respectively through their own set sending strategies.
[0200] The data transmission parameters can be adjusted in the following directions to obtain the set sending strategy:
[0201] 1. Adjust the send buffer size: The send buffer size affects the send window size. The transmission rate can be affected by adjusting the send buffer size.
[0202] 2. Adjust the congestion window size: The congestion window size will also affect the sending window size. The transmission rate can be affected by adjusting the congestion window size.
[0203] 3. Adjust the delayed confirmation time: The delayed confirmation time will also affect the sending window size. The transmission rate can be affected by adjusting the delayed confirmation time.
[0204] 4. Try different congestion control algorithms: Different congestion control algorithms may have different performance effects in different network environments, thus affecting the transmission rate.
[0205] S1403: Acquire data transmission rates and terminal attribute information corresponding to different sending strategies, and transmit the data transmission rates and terminal attribute information corresponding to different sending strategies to a central server.
[0206] In an embodiment of the present application, the data volume of a data packet is certain. After the data packet is sent, the data transmission rate corresponding to different sending strategies can be calculated based on the data volume and sending time of the data packet. The terminal can also obtain terminal attribute information, including the location information at this time, the signal strength at this time, and the signal type at this time.
[0207] The terminal sends the data transmission rate and terminal attribute information corresponding to different sending strategies to the central server, which stores them in association.
[0208] S1404. The central server aggregates the information and generates transmission strategy information.
[0209] The central server can also receive data transmission rates and terminal attribute information corresponding to different transmission strategies sent by other terminals, and then summarize the information sent by each terminal to generate transmission strategy information corresponding to the terminal in the idle state.
[0210] S1405. The central server sends transmission strategy information to each terminal.
[0211] S1406: When the network currently in which the terminal is located is in a non-idle state, the terminal performs matching according to its current attribute information and the terminal attributes in the transmission strategy information, and determines the target transmission strategy from the relationship between the transmission strategy and the data transmission rate according to the matching result.
[0212] If the terminal establishes a network connection normally, the network the terminal is currently in is not idle. The terminal matches its current attribute information with the terminal attribute information in the transmission strategy information, and matches the current location information, signal strength and signal type with the location information, signal strength and signal type in the transmission strategy information.
[0213] When the closest data is matched, the sending strategy corresponding to the best transmission speed at that time is selected as the sending strategy of the terminal in a non-idle state to improve the network transmission rate.
[0214] For example, assuming that the current location information is matched to be closest to the location information in the transmission strategy information, since the location information, sending strategy and data transmission rate in the transmission strategy information are stored in association, the optimal data transmission rate corresponding to the closest location information can be obtained. In one example, the optimal data transmission rate is the maximum data transmission rate. In another example, the maximum packet loss rate of the terminal corresponding to the closest location information can be obtained, and the data transmission rate corresponding to the closest maximum packet loss rate is taken as the optimal data transmission rate, and then the sending strategy corresponding to the optimal data transmission rate is found.
[0215] Assuming that the current location information and the location information in the transmission strategy information are closest, and the current signal type is closest to the signal type in the transmission strategy information, the first data transmission rate set corresponding to the closest location information and the second data transmission rate set corresponding to the closest signal type can be obtained. The data transmission rate that intersects the first data transmission rate set and the second data transmission rate set is taken as the optimal data transmission rate, and then the sending strategy corresponding to the optimal data transmission rate is searched.
[0216] In an embodiment of the present application, when the data closest to the current attribute information is not matched, a default transmission strategy is used. The default transmission strategy can be customized by the object to which the terminal belongs, or can be intelligently set by the terminal based on historical sending strategies.
[0217] S1407: The terminal sends the target sending policy of the terminal in a non-idle state to the application server.
[0218] In an embodiment of the present application, the sending strategy of the terminal in a non-idle state may also be notified to the application server through the handshake protocol, and the application server may use this information to select its own appropriate sending strategy to further speed up network transmission.
[0219] like Fig.15 As shown, the notification process through the handshake protocol includes:
[0220] 1. The TCP server process first creates a transmission control block TCB, ready to accept connection requests from the terminal process at any time. At this time, the server enters the LISTEN state from the CLOSED state.
[0221] 2. The TCP terminal process also creates a transmission control block TCB first, and then sends a connection request message to the server. This is the same bit SYN=1 in the message header, and selects an initial sequence number seq=x. At this time, the TCP terminal process enters the SYN-SENT (synchronous sent state) state. TCP stipulates that the SYN segment (the segment with SYN=1) cannot carry data, but it needs to consume a sequence number.
[0222] 3. After receiving the request message, if the TCP server agrees to connect, it will send a confirmation message. The confirmation message should contain ACK=1, SYN=1, and the confirmation number is ack=x+1. At the same time, it also initializes a sequence number seq=y for itself. At this time, the TCP server process enters the SYN-RCVD (synchronous reception) state. This message cannot carry data, but it also consumes a sequence number.
[0223] 4. After receiving the confirmation, the TCP terminal process also needs to give confirmation to the server. The confirmation message's ACK=1, ack=y+1, and its own sequence number seq=x+1. At this time, the TCP connection is established and the terminal enters the ESTABLISHED (connection established) state. TCP stipulates that the ACK segment can carry data, but if it does not carry data, the sequence number is not consumed.
[0224] 5. When the server receives the confirmation from the terminal, it also enters the ESTABLISHED state, and then the two parties can start communicating.
[0225] The TCP message format is as follows Fig.16As shown, during this TCP handshake, the terminal fills the required sending strategy into the Options field of the TCP message in the first handshake data packet (the second step of the above handshake process) (the maximum fillable length of the Options field is 40 bytes).
[0226] S1408: The application server obtains the target sending strategy of the terminal in a non-idle state, and adjusts its own network transmission parameters.
[0227] The server extracts the above information from the Options field of the TCP handshake message, selects the transmission strategy according to the APP, and selects the matching buffer size, delayed confirmation time, congestion window size and congestion control algorithm. Through the adjusted network transmission parameters, the optimal voltage regulation module transmission parameters can be approached as much as possible, avoiding the multiple transmission rounds spent in the process of finding the optimal sending window, and improving the transmission rate.
[0228] S1409: The terminal and the application server perform network transmission.
[0229] It should be noted that in the embodiment of the present application, the terminal and the server can record the final network transmission rate after each transmission parameter adjustment, perform big data learning, and obtain more optimal network transmission parameters.
[0230] The network transmission method provided in the embodiment of the present application utilizes the terminal to actively try different sending strategies when the network is idle to avoid the time consumed by the learning process during network transmission, thereby improving the network transmission rate. The terminal actively tries different transmission strategies when the network is idle, records the data transmission rate under each transmission strategy, and reports this information to a central server for summary processing. The central server will summarize the transmission strategy information and send it to each terminal for sharing.
[0231] When the terminal performs network transmission next time, it can obtain the best transmission strategy to send data based on the transmission strategy information, so as to avoid learning processes such as slow start and congestion avoidance during network transmission, and directly use the optimal transmission strategy, thereby improving the network transmission rate.
[0232] Here, the device embodiment of the present application is introduced, which can be used to execute the network transmission method in the above embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the above embodiment of the network transmission method of the present application.
[0233] The present application embodiment provides a network transmission device, which can be deployed in a terminal, such as Fig.17 As shown, the device comprises:
[0234] The acquisition module 1710 is used to acquire transmission strategy information in a network idle state, wherein the transmission strategy information includes a correspondence between a transmission strategy and a data transmission rate, and at least one terminal attribute information;
[0235] The acquisition module 1710 is further configured to acquire current attribute information of the terminal if it is detected that the current network in which the terminal is located is in a non-idle state;
[0236] A determination module 1720, configured to determine a target data transmission rate corresponding to the current attribute information according to the current attribute information and at least one terminal attribute information in the transmission strategy information;
[0237] The transmission module 1730 is used to determine the sending strategy of the terminal in the non-idle state according to the target data transmission rate and the corresponding relationship, and perform network transmission according to the sending strategy of the terminal in the non-idle state.
[0238] In one embodiment of the present application, based on the aforementioned scheme, the determination module is further used to match the current attribute information with each terminal attribute information in the transmission strategy information; if the target terminal attribute information whose similarity with the current attribute information exceeds a similarity threshold is matched, the optimal data transmission rate in the network idle state corresponding to the target terminal attribute information is obtained; and the target data transmission rate corresponding to the current attribute information is determined according to the optimal data transmission rate.
[0239] In one embodiment of the present application, based on the aforementioned scheme, the determination module is further used to obtain the data transmission rate set in the network idle state corresponding to each target terminal attribute information if multiple target terminal attribute information is matched, so as to obtain multiple data transmission rate sets; if the same data transmission rate exists in the multiple data transmission rate sets, the optimal data transmission rate is determined according to the same data transmission rate.
[0240] In one embodiment of the present application, based on the aforementioned scheme, the determination module is further used to obtain the priority of each target terminal attribute information according to the network transmission requirements of the terminal if there is no identical data transmission rate in the multiple data transmission rate sets; and determine the optimal data transmission rate according to the data transmission rate set corresponding to the target terminal attribute information with the highest priority.
[0241] In one embodiment of the present application, based on the aforementioned scheme, the determination module is also used to configure a default transmission strategy based on the historical network transmission data of the terminal if the target terminal attribute information whose similarity with the current attribute information exceeds the similarity threshold is not matched; and use the default transmission strategy as the sending strategy of the terminal in the non-idle state.
[0242] In one embodiment of the present application, based on the aforementioned scheme, the transmission module is further used to obtain network quality information during network transmission and standard network quality information corresponding to the sending strategy of the terminal in the non-idle state; if the difference between the network quality information corresponding to the sending strategy and the standard network quality information is greater than a preset threshold, the sending strategy of the terminal in the non-idle state is adjusted according to the difference; and network transmission is performed based on the adjusted sending strategy.
[0243] In one embodiment of the present application, based on the aforementioned scheme, the device also includes a learning module for obtaining the data transmission rate corresponding to the adjusted sending strategy; learning the mapping relationship between the current attribute information, the sending strategy of the terminal in the non-idle state, and the data transmission rate corresponding to the adjusted sending strategy; when the terminal performs network transmission in the non-idle state next time, determining the sending strategy for the next network transmission based on the mapping relationship.
[0244] In one embodiment of the present application, based on the aforementioned scheme, the acquisition module is further used to send a data packet to a central server according to at least one configured sending strategy if it is detected that the current network is in an idle state, and obtain the data transmission rate corresponding to the at least one sending strategy; send the correspondence between the at least one sending strategy and the data transmission rate, as well as the terminal attribute information to the central server; and receive the transmission strategy information sent by the central server.
[0245] In one embodiment of the present application, based on the aforementioned scheme, the device also includes a detection module for detecting network parameters. If it is detected that the network parameter is less than the corresponding preset network parameter threshold, it is determined that the current network is in an idle state; wherein the network parameters include network traffic, network delay, network usage, number of network connections, network bandwidth utilization, and at least one of network activity time.
[0246] In one embodiment of the present application, based on the aforementioned scheme, the device also includes an adjustment module for adjusting the network transmission parameters and obtaining the at least one sending strategy based on the adjusted network transmission parameters; wherein the network transmission parameters include at least one of the sending buffer size, congestion window size, delayed confirmation time, and congestion control algorithm.
[0247] In one embodiment of the present application, based on the aforementioned scheme, the transmission module is further used to establish a connection with the server, and send the sending strategy of the terminal in the non-idle state to the server, so that the server adjusts its own network transmission parameters according to the sending strategy of the terminal in the non-idle state; and performs network transmission with the server according to the sending strategy of the terminal in the non-idle state.
[0248] The embodiment of the present application provides a network transmission device, which can be deployed in a central server, including:
[0249] An acquisition module, which acquires a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information, wherein the correspondence and the at least one terminal attribute information are determined in a network idle state;
[0250] A generating module, generating transmission strategy information in a network idle state according to the corresponding relationship and the at least one terminal attribute information;
[0251] The sending module sends the transmission strategy information to each terminal.
[0252] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.
[0253] Through the device provided in the embodiment of the present application, the terminal actively tries different transmission rates in the network idle state and sends them to the central server, which summarizes the information and sends it to the terminal, so that the terminal can obtain relevant information of other terminals and realize the sharing of transmission strategy information; when the terminal is in the non-idle state, the transmission strategy in the non-idle state can be directly determined based on the transmission strategy information in the network idle state, thereby avoiding the time consumed by the learning process during the network transmission process, thereby improving the network transmission efficiency, and the determined transmission strategy conforms to the current attribute information, and can meet the actual network transmission needs when performing network transmission.
[0254] An embodiment of the present application also provides an electronic device, comprising one or more processors and a storage device, wherein the storage device is used to store one or more computer programs, and when the one or more computer programs are executed by one or more processors, the electronic device implements the network transmission method as described above.
[0255] Fig.18 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0256] It should be noted that Fig.18 The computer system 1800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0257] like Fig.18 As shown, the computer system 1800 includes a processor (Central Processing Unit, CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (Read-Only Memory, ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (Random Access Memory, RAM) 1803, such as executing the method in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (Input / Output, I / O) interface 1805 is also connected to bus 1804.
[0258] In some embodiments, the following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed, so that a computer program read therefrom is installed into the storage section 1808 as needed.
[0259] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a processor (CPU) 1801, various functions defined in the system of the present application are executed.
[0260] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0261] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and a computer program.
[0262] The units or modules involved in the embodiments described in this application may be implemented by software or hardware, and the units or modules described may also be set in a processor. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.
[0263] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the network transmission method as described above is implemented. The computer-readable storage medium can be included in the electronic device described in the above embodiment, or it can exist independently without being assembled into the electronic device.
[0264] Another aspect of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device executes the network transmission method as described above in the above embodiments.
[0265] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0266] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0267] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person of ordinary skill in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A network transmission method, characterized in that: include: Acquire transmission strategy information in a network idle state, the transmission strategy information including a correspondence between a transmission strategy and a data transmission rate, and at least one terminal attribute information; If it is detected that the current network where the terminal is located is in a non-idle state, obtaining current attribute information of the terminal; Determine a target data transmission rate corresponding to the current attribute information according to the current attribute information and at least one terminal attribute information in the transmission strategy information; The sending strategy of the terminal in the non-idle state is determined according to the target data transmission rate and the corresponding relationship, and network transmission is performed according to the sending strategy of the terminal in the non-idle state.
2. The method according to claim 1, characterized in that The determining, according to the current attribute information and at least one terminal attribute information in the transmission strategy information, a target data transmission rate corresponding to the current attribute information includes: Matching the current attribute information with the attribute information of each terminal in the transmission strategy information; If target terminal attribute information whose similarity with the current attribute information exceeds a similarity threshold is matched, obtaining an optimal data transmission rate in a network idle state corresponding to the target terminal attribute information; A target data transmission rate corresponding to the current attribute information is determined according to the optimal data transmission rate.
3. The method according to claim 2, characterized in that The obtaining of the optimal data transmission rate in the network idle state corresponding to the target terminal attribute information includes: If multiple target terminal attribute information is matched, then the data transmission rate set in the network idle state corresponding to each target terminal attribute information is obtained to obtain multiple data transmission rate sets; If the same data transmission rate exists in the plurality of data transmission rate sets, the optimal data transmission rate is determined according to the same data transmission rate.
4. The method according to claim 3, characterized in that The method further comprises: If there is no identical data transmission rate in the plurality of data transmission rate sets, obtaining a priority of attribute information of each target terminal according to a network transmission requirement of the terminal; The optimal data transmission rate is determined according to the data transmission rate set corresponding to the target terminal attribute information with the highest priority.
5. The method according to claim 2, characterized in that: The method further comprises: If target terminal attribute information whose similarity with the current attribute information exceeds the similarity threshold is not matched, configuring a default transmission strategy according to the historical network transmission data of the terminal; The default transmission strategy is used as the sending strategy of the terminal in the non-idle state.
6. The method according to claim 1, characterized in that Performing network transmission according to the sending strategy of the terminal in the non-idle state includes: Acquire network quality information during network transmission and standard network quality information corresponding to the sending strategy of the terminal in the non-idle state; If the difference between the network quality information corresponding to the sending strategy and the standard network quality information is greater than a preset threshold, adjusting the sending strategy of the terminal in the non-idle state according to the difference; The network transmission is performed based on the adjusted sending strategy.
7. The method according to claim 6, characterized in that After performing network transmission based on the adjusted sending strategy, the method further includes: Obtaining the data transmission rate corresponding to the adjusted sending strategy; Learning a mapping relationship between the current attribute information, the sending strategy of the terminal in the non-idle state, and the data transmission rate corresponding to the adjusted sending strategy; When the terminal performs network transmission in the non-idle state next time, a sending strategy for the next network transmission is determined based on the mapping relationship.
8. The method according to claim 1, characterized in that The obtaining of transmission strategy information in a network idle state includes: If it is detected that the current network is in an idle state, a data packet is sent to the central server according to at least one configured sending strategy, and a data transmission rate corresponding to the at least one sending strategy is obtained; Sending the correspondence between the at least one sending strategy and the data transmission rate, and the terminal attribute information to the central server; Receive the transmission strategy information sent by the central server.
9. The method according to claim 8, characterized in that Before sending the data packet to the central server according to the configured at least one sending strategy, the method further includes: Detecting the network parameters, and if it is detected that the network parameters are less than the corresponding preset network parameter thresholds, determining that the current network is in an idle state; The network parameters include at least one of network traffic, network delay, network usage, number of network connections, network bandwidth utilization, and network activity time.
10. The method according to claim 8, characterized in that Before sending the data packet to the central server according to the configured at least one sending strategy, the method further includes: Adjusting the network transmission parameters, and obtaining the at least one sending strategy according to the adjusted network transmission parameters; The network transmission parameters include at least one of a sending buffer size, a congestion window size, a delayed confirmation time, and a congestion control algorithm.
11. The method according to any one of claims 1 to 10, characterized in that: The performing network transmission according to the sending strategy of the terminal in a non-idle state includes: Establishing a connection with a server, and sending the sending strategy of the terminal in the non-idle state to the server, so that the server adjusts its own network transmission parameters according to the sending strategy of the terminal in the non-idle state; Perform network transmission with the server according to the sending strategy of the terminal in the non-idle state.
12. A network transmission method, characterized in that: include: Acquire a correspondence between a sending strategy and a data transmission rate, and at least one terminal attribute information, wherein the correspondence and the at least one terminal attribute information are determined in a network idle state; Generate transmission strategy information in a network idle state according to the corresponding relationship and the at least one terminal attribute information; The transmission strategy information is sent to each terminal.
13. A network transmission device, characterized in that: include: An acquisition module, used to acquire transmission strategy information in a network idle state, wherein the transmission strategy information includes a correspondence between a transmission strategy and a data transmission rate, and at least one terminal attribute information; The acquisition module is further used to acquire current attribute information of the terminal if it is detected that the current network in which the terminal is located is in a non-idle state; a determination module, configured to determine a target data transmission rate corresponding to the current attribute information according to the current attribute information and at least one terminal attribute information in the transmission strategy information; The transmission module is used to determine the sending strategy of the terminal in the non-idle state according to the target data transmission rate and the corresponding relationship, and perform network transmission according to the sending strategy of the terminal in the non-idle state.
14. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to execute the method described in any one of claims 1 to 11, or execute the method described in claim 12.
15. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of an electronic device, the electronic device executes the method described in any one of claims 1 to 11, or executes the method described in claim 12.
16. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. The processor of the electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the method according to any one of claims 1 to 11, or executes the method according to claim 12.
Citation Information
Cited By
Streaming media data transmission method and system, and electronic device and storage medium
WO2026157736A1