Transmission control method and apparatus, computer device, computer readable storage medium, and computer program product
By obtaining historical network status information and adjusting sending parameters, the problem of high packet loss rate due to interruptions in the existing technology is solved, and efficient utilization of network resources and improvement of transmission efficiency are achieved.
Patent Information
- Application Number
- PCT/CN2024/078317
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-25
- Filing Date
- 2024-02-23
- Publication Date
- 2024-10-31
AI Technical Summary
Existing congestion control algorithms are mainly oriented towards continuous flow transmission and lack the adaptation to intermittent flows, resulting in an increase in the packet loss rate of intermittent flows and affecting the utilization of network resources.
By obtaining historical network status information, the adjustment weights are determined, and when the network transmission process changes from the intermittent stage to the pending transmission stage, the reference transmission parameters are adjusted to obtain the target transmission parameters, adapt to actual network resources, reduce packet loss rate and improve transmission efficiency. .
It effectively reduces the packet loss rate of intermittent streams, improves the utilization of network resources, improves transmission efficiency, adapts to changes in network resources, and reduces packet loss and delays during data transmission.
Smart Images

Figure CN2024078317_31102024_PF_FP_ABST
Abstract
Description
A transmission control method, device, computer equipment, computer readable storage medium and computer program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202310451656.4 and application date April 25, 2023, and claims the priority of the above Chinese patent application. The entire content of the above Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to network transmission technology, and in particular to a transmission control method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0004] Traffic transmission efficiency is an important criterion for measuring the performance of server providers. Efficient traffic transmission can achieve more traffic transmission to user terminals per unit time, thereby avoiding, to a certain extent, interface freezes, screen distortion, and mosaics caused by lack of data on user terminals.
[0005] In related technologies, congestion control algorithms are generally used to identify network status and make adjustments to the sending strategy. These algorithms judge the current network status based on different "signals" such as packet loss or delay and then make timely adjustments. However, the disadvantage is that these congestion control methods were originally designed mainly for "continuous flow" network transmission and lack further adaptation to "intermittent flow". In fact, "intermittent flow" is currently prevalent in various types of Internet services, including currently popular audio and video live broadcasts, real-time communications, autonomous driving, and online education. This will increase the packet loss rate of "intermittent flow" and affect the utilization of network resources.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a transmission control method, apparatus, computer device, computer-readable storage medium, and computer program product, which can reduce packet loss rate and improve utilization of network resources.
[0008] The technical solution of the embodiment of the present application is implemented as follows:
[0009] An embodiment of the present application provides a transmission control method, applied to a computer device, the method comprising:
[0010] Obtain historical network status information of each historical transmission stage completed during the network transmission process;
[0011] Determine the current adjustment weight for the sending parameters based on each historical network status information;
[0012] When the network transmission process enters the waiting-for-transmission stage from the intermittent stage, obtaining the reference transmission parameters of the waiting-for-transmission stage, and adjusting the reference transmission parameters using the current adjustment weight to obtain target transmission parameters;
[0013] The target sending parameters are used to perform data transmission during the waiting-for-transmission stage.
[0014] An embodiment of the present application provides a transmission control device, the device comprising:
[0015] A first acquisition module is configured to acquire historical network status information of each historical transmission stage completed during the network transmission process;
[0016] A first determining module is configured to determine the current adjustment weight for the sending parameter based on each historical network status information;
[0017] an adjustment module configured to, when the network transmission process enters a waiting-for-transmission stage from an intermittent stage, obtain a reference transmission parameter of the waiting-for-transmission stage, and adjust the reference transmission parameter using the current adjustment weight to obtain a target transmission parameter;
[0018] The transmission module is configured to use the target sending parameters to transmit data in the waiting-for-transmission stage.
[0019] An embodiment of the present application provides a computer device, including:
[0020] a memory for storing computer-executable instructions;
[0021] The processor is used to implement the transmission control method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0022] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the transmission control method provided in the embodiment of the present application when executed by a processor.
[0023] An embodiment of the present application provides a computer program product, including a computer program or computer-executable instructions. When the computer program or computer-executable instructions are executed by a processor, the transmission control method provided in the embodiment of the present application is implemented.
[0024] The embodiments of the present application have the following beneficial effects:
[0025] In an embodiment of the present application, network status information for each historical transmission phase completed during a network transmission process is first obtained, where a historical transmission phase refers to a phase where data transmission has already completed. Next, a current adjustment weight for a transmission parameter is determined using each historical network status information. When the network transmission process enters a pending transmission phase from an intermittent phase, reference transmission parameters for the pending transmission phase are obtained. The reference transmission parameters are then adjusted using the current adjustment weights to obtain target transmission parameters. The intermittent phase refers to an idle phase where no data transmission is taking place, the pending transmission phase refers to a phase where data transmission is about to begin, and the reference transmission parameters are transmission parameters obtained using a related congestion control algorithm during the network transmission process. Finally, data is transmitted using the target transmission parameters during the pending transmission phase. Although network resources originally used for data transmission may be "preempted" after the intermittent phase during network transmission, resulting in a reduction in available network resources for data transmission, available network resources gradually recover as data is transmitted. Therefore, in an embodiment of the present application, by adjusting the reference transmission parameters using the current adjustment weights determined using each historical network status information, target transmission parameters adapted to actual network resources are obtained, thereby reducing packet loss while also improving transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] FIG1 is a transmission diagram of “intermittent flow” in the related art;
[0027] FIG2 is a schematic diagram of a network architecture of a transmission control system 100 provided in an embodiment of the present application;
[0028] FIG3 is a schematic diagram of the structure of a server 400 provided in an embodiment of the present application;
[0029] FIG4 is a schematic diagram of an implementation flow of a transmission control method provided in an embodiment of the present application;
[0030] FIG5 is a schematic diagram of an implementation flow of determining the current adjustment weight provided in an embodiment of the present application;
[0031] FIG6 is a schematic diagram of another implementation flow of determining the current adjustment weight provided in an embodiment of the present application;
[0032] FIG7 is a schematic diagram of another implementation flow of determining the current adjustment weight provided in an embodiment of the present application;
[0033] FIG8 is a schematic diagram of an implementation flow of obtaining target transmission parameters according to an embodiment of the present application;
[0034] FIG9 is a schematic diagram of an implementation flow of determining the current sub-phase according to an embodiment of the present application;
[0035] FIG10 is a schematic diagram of another implementation flow of the transmission control method provided in an embodiment of the present application;
[0036] FIG11 is a schematic diagram of an implementation framework of a transmitting end provided in an embodiment of the present application;
[0037] FIG12 is a schematic diagram showing an abnormal position provided by an embodiment of the present application;
[0038] FIG13 is a schematic diagram of another implementation flow of the transmission control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0040] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0041] In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0042] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be fully or partially implemented by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0043] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0044] Before further explaining the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0045] Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network or local area network to enable data computing, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of technical network systems, such as video websites, image websites, and more portals, require a large amount of computing and storage resources. With the rapid development and application of the Internet industry, every item may have its own identification mark in the future, and all of them will need to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All types of industry data require a strong system backend support, which can only be achieved through cloud computing.
[0046] In order to better understand the transmission control method provided in the embodiment of the present application, the transmission control method in the related art and its existing shortcomings are first explained.
[0047] Traffic transmission efficiency is an important criterion for measuring the performance of cloud server providers. Efficient traffic transmission can achieve more traffic transmission to user terminals per unit time, thereby avoiding, to a certain extent, interface freezes, screen distortion, and mosaics caused by lack of data on the user terminal. An important factor affecting traffic transmission efficiency is the various types of network packet loss caused by complex and dynamic network environments. When the packet loss rate of a connection increases, the user terminal cannot receive "enough" data per unit time, which will lead to a degradation of the user-side Quality of Experience (QoE). Therefore, how to reduce the packet loss rate in the traffic transmission process and improve transmission efficiency has become a common concern in academia and industry.
[0048] The key to reducing packet loss and improving transmission efficiency lies in accurately identifying the real-time network status and making corresponding adjustments based on the different statuses. Specifically, when the network becomes congested, the packet loss rate increases and the transmission efficiency of the traffic decreases. To adapt to this network state, the data sender needs to reduce the sending rate or sending window in the hope of not sending "more" data, causing the network to become more congested, thereby further optimizing the packet loss rate and transmission efficiency. When the network becomes less congested, the packet loss rate decreases and the network transmission efficiency increases. To adapt to this network state, the data sender needs to "appropriately increase" the sending rate or sending window in the hope of fully utilizing the current network resources, thereby further improving the transmission efficiency of the traffic.
[0049] Figure 1 is a transmission diagram of "intermittent flow". Referring to Figure 1, the network transmission process includes a continuous stage and an intermittent stage, wherein the continuous stage is the stage of transmitting data, which can also be recorded as the transmission stage. Figure 1 includes the continuous stages t0 to t1 and t2 to t3, and Figure 1 also includes the intermittent stage t1 to t2. Based on this, from t0 to t1, the data sender is in a state of continuously sending traffic, and from t1 to t2, the data sender cannot continue to send traffic due to the lack of the latest data, resulting in a brief stagnation of traffic sending, until t2, the sender obtains the latest and sufficient data again and starts to execute the traffic sending operation.
[0050] With the rapid development of audio and video services, audio and video traffic has gradually occupied the most important part of Internet traffic. Taking audio and video live broadcast as an example, before the data is transmitted from the cloud server to the user terminal (i.e., the audience), the audio and video traffic needs to undergo an encoding operation, and this encoding operation is mainly performed in the cloud server. Among them, the audio and video encoder can encode the audio and video live broadcast data into audio and video frames with a certain frame rate. When the encoding of a certain audio and video frame is completed, the frame is immediately sent to the user terminal; but in fact, the above encoder has a certain frame rate when encoding audio and video frames, and the frame rate reflects the time interval between adjacent frames. The intermittent phenomenon of the above traffic transmission process is also common in scenarios such as real-time communication, autonomous driving, and online education.
[0051] Related congestion control algorithms are primarily designed for continuous flow transmission, lacking consideration for intermittent flows. When traffic experiences an intermittent phase, the data sender retains the sending policy and parameters from the previous continuous phase and continues to use them when entering the next continuous phase. For example, in Figure 1, the data sender exits the continuous phase at time t1, with a sending rate of v1. After the intermittent phase from t1 to t2, the data sender continues to use the previous sending rate v1 at time t2. However, due to the lack of traffic being sent during the period from t1 to t2, the network resources (such as bandwidth) occupied by inter-flow competition from t0 to t1 are preempted by other traffic. Therefore, after the lengthy "window" from t1 to t2, the available network resources are further eroded. It is unreasonable to continue using the sending policy and parameters from t1 at time t2, which can lead to increased packet loss and decreased transmission efficiency.
[0052] Based on the problems existing in the related art, the embodiments of the present application provide a transmission control method, apparatus, computer device, computer-readable storage medium, and computer program product, which can solve the problems of increased packet loss rate and decreased transmission efficiency. The following describes an exemplary application of the computer device provided by the embodiments of the present application. The computer device provided by the embodiments of the present application can be implemented as various types of terminals such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smart watches, smart TVs, and in-vehicle terminals, and can also be implemented as a server. The following describes an exemplary application of the computer device implemented as a server.
[0053] Refer to Figure 2, which is a schematic diagram of the network architecture of the transmission control system 100 provided in an embodiment of the present application. In order to support a transmission control application, terminal 200-1 and terminal 200-2 are connected to server 400 through network 300. Network 300 can be a wide area network or a local area network, or a combination of the two.
[0054] Taking live video streaming as an example, terminal 200-1 schedules a live video stream based on a reservation operation, and server 400 allocates configuration information such as a push stream address, a pull stream address, and a live broadcast room identifier to terminal 200-1. Terminal 200-1 then initiates live video streaming based on a startup instruction, begins collecting live data, and sends the live data to server 400 based on the pull stream address. Server 400 then obtains historical network status information for each completed transmission phase during the live video streaming process. Based on this historical network status information, server 400 determines the current adjustment weights for the transmission parameters used for live broadcast distribution. When the live video streaming process enters the pending transmission phase from the intermittent phase, it obtains the reference transmission parameters for the pending transmission phase and uses the current adjustment weights to adjust the reference transmission parameters to obtain the target transmission parameters. The target transmission parameters are then used to distribute live data during the pending transmission phase. Server 400 can also use the target transmission parameters to distribute live data to terminal 200-2, allowing terminal 200-2 to present the live content.
[0055] In an embodiment of the present application, taking the adjustment of the reference sending parameters by the server 400 as an example, the server 400 can obtain the target sending parameters adapted to the actual network resources by adjusting the reference sending parameters. Although during the network transmission process, after the intermittent stage, the network resources originally used for data transmission will be "preempted", resulting in a reduction in the network resources available for data transmission, in an embodiment of the present application, the reference sending parameters can be adjusted down based on the reduced network resources to obtain the target sending parameters. Therefore, when using the target sending parameters for data transmission, data transmission is performed with the sending parameters adapted to the "preempted" network resources, thereby reducing the packet loss rate; as the data is transmitted, the network resources will gradually recover. In an embodiment of the present application, the reference sending parameters can be adjusted up based on the recovered network resources to obtain the target sending parameters. Data transmission is performed with the sending parameters adapted to the recovered network resources, thereby improving transmission efficiency.
[0056] In some embodiments, server 400 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or 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, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and the cloud server may be connected directly or indirectly via wired or wireless communication, which is not limited in the embodiments of the present application.
[0057] Referring to Figure 3, Figure 3 is a schematic diagram of the structure of a server 400 provided in an embodiment of the present application. The server 400 shown in Figure 3 includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the server 400 are coupled together via a bus system 440. It can be understood that the bus system 440 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are labeled as bus system 440 in Figure 3.
[0058] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0059] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0060] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0061] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0062] In some embodiments, the memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0063] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, and driver layer, which are used to implement various basic services and process hardware-based tasks;
[0064] A network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420. Exemplary network interfaces 420 include Bluetooth, Wi-Fi, and Universal Serial Bus (USB);
[0065] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0066] The input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and to translate the detected inputs or interactions.
[0067] In some embodiments, the apparatus provided in the embodiments of the present application can be implemented in software. FIG3 shows a transmission control device 455 stored in memory 450. The transmission control device 455 can be software in the form of a program or plug-in, and includes the following software modules: a first acquisition module 4551, a first determination module 4552, an adjustment module 4553, and a transmission module 4554. These modules are logical and can be arbitrarily combined or further separated according to the functions implemented. The functions of each module will be described below.
[0068] In other embodiments, the apparatus provided in the embodiments of the present application may be implemented in hardware. As an example, the apparatus provided in the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the transmission control method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0069] The transmission control method provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the terminal server provided in the embodiment of the present application.
[0070] Cloud computing refers to the delivery and use of Internet technology (IT) infrastructure, enabling on-demand, scalable access to resources over the internet. Broadly speaking, cloud computing refers to the delivery and use of services, enabling on-demand, scalable access to services over the internet. These services can be IT-related, software-related, internet-related, or other services. Cloud computing is the product of the convergence of traditional computer and network technologies, including grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.
[0071] Cloud computing has rapidly grown, driven by the internet, real-time data streams, the diversification of connected devices, and the growing demand for search services, social networks, mobile commerce, and open collaboration. Unlike previous parallel and distributed computing approaches, the emergence of cloud computing will fundamentally revolutionize the entire internet and enterprise management model.
[0072] The following describes the transmission control method provided by the embodiment of the present application. As previously mentioned, the computer device implementing the transmission control method of the embodiment of the present application can be a terminal or a server, or a combination of the two. Therefore, the execution entity of each step will not be repeated below.
[0073] It should be noted that the examples of the transmission control method below are explained using audio and video live broadcast as an example. Based on their understanding of the following, those skilled in the art can apply the transmission control method provided in the embodiments of the present application to transmission control in other fields such as real-time communication, autonomous driving, and online education.
[0074] Refer to Figure 4, which is a schematic diagram of an implementation flow of the transmission control method provided in an embodiment of the present application. The method is applied to a computer device. The transmission control method provided in an embodiment of the present application will be described below in combination with the steps shown in Figure 4. The execution subject of Figure 4 is the server.
[0075] In step S101, historical network status information of each historical transmission stage completed during the network transmission process is obtained.
[0076] In an embodiment of the present application, network transmission can be live audio, live video, etc. For example, network transmission can be real-time traffic reports from a radio station, and network transmission can also be live video shopping.
[0077] In some embodiments, each historical transmission stage refers to a stage in which data transmission has been completed. Each historical transmission stage can be considered to be obtained by monitoring one monitoring cycle or multiple monitoring cycles, wherein the monitoring cycle can be considered to be an acquisition cycle for obtaining historical network status information.
[0078] In some embodiments, the historical network status information can reflect the status of data transmission within a historical period. The historical network status information may include the data throughput within the historical period, the data transmission delay within the historical period, and the packet loss rate within the historical period.
[0079] Through the above step S101, historical network status information can be obtained, so as to fully grasp the historical (or past period of time) transmission data situation, so as to timely and accurately predict the next network status.
[0080] In step S102, the current adjustment weight for the transmission parameters is determined based on various historical network status information.
[0081] In some embodiments, referring to FIG. 5 , step S102 shown in FIG. 4 can be implemented by following steps S1021 to S1023 , which are described in detail below.
[0082] In step S1021 , a preset utility function is obtained.
[0083] In the embodiment of the present application, the utility function is a function used to evaluate the pros and cons of the last adjustment strategy, and the purpose of information feedback can be achieved through the utility function.
[0084] In step S1022, each piece of historical network status information is evaluated using a utility function to obtain each historical utility value.
[0085] In some embodiments, historical network status information can be evaluated and processed in the following manner: for each piece of historical network status information, the historical packet loss rate, historical throughput, and historical round-trip delay are obtained from the historical network status information; then, based on the historical packet loss rate, the historical transmission rate is determined, wherein the historical packet loss rate can be subtracted from 1 to obtain the historical transmission rate, and then the product of the historical transmission rate and the throughput is determined as the historical transmission volume; finally, the ratio of the historical transmission volume to the historical round-trip delay is determined as the historical utility value corresponding to the historical network status information.
[0086] In some embodiments, the historical utility value may be determined by formula (1):
[0087] Among them, u is the historical utility value, throughput is the throughput, loss_rate is the packet loss rate, and RTT is the round-trip delay.
[0088] In step S1023 , the current adjustment weight is determined based on each historical utility value.
[0089] In some embodiments, referring to FIG. 6 , step S1023 shown in FIG. 5 may be implemented by following steps S231 to S233 , which are described in detail below.
[0090] In step S231 , the utility value change rate is determined using each historical utility value.
[0091] In embodiments of the present application, the utility value change rate can reflect changes in historical utility values and may refer to the degree of change in a historical utility value compared to the immediately preceding historical utility value. In some embodiments, a second difference between the current utility value and the previous utility value can be first determined, and then the ratio of the second difference to the previous utility value can be determined as the utility value change rate.
[0092] In step S232, based on each historical network status information, the historical adjustment direction and historical adjustment weight of the previous transmission phase are determined.
[0093] In some embodiments, the historical adjustment weight is the adjustment weight used in the previous transmission phase, and the historical adjustment direction is the adjustment direction of a historical adjustment weight compared to the previous historical adjustment weight. If the historical adjustment weight is greater than the previous historical adjustment weight, the adjustment direction of the historical adjustment weight can be recorded as 1; if the historical adjustment weight is equal to the previous historical adjustment weight, the adjustment direction of the historical adjustment weight can be recorded as 0; if the historical adjustment weight is less than the previous historical adjustment weight, the adjustment direction of the historical adjustment weight can be recorded as -1. The initial adjustment weight can be set to 1, and the initial adjustment direction can be set to -1. The initial adjustment direction being set to -1 indicates that the adjustment weight will be reduced next.
[0094] In the embodiment of the present application, taking the third historical transmission stage as an example, the historical utility value of the first historical transmission stage and the historical utility value of the second historical transmission stage can be determined respectively through the above step S1022, and then the utility value change rate of the second historical transmission stage can be determined based on the two historical utility values in the above step S231. Next, the relationship between the utility value change rate of the second historical transmission stage and the change rate threshold is determined. The change rate threshold may include a first threshold and a second threshold, and the first threshold is less than the second threshold. The first threshold and the second threshold may be reciprocal numbers of each other. For example, the first threshold may be -3%, -5%, or -15%, etc., and correspondingly, the second threshold may be 3%, 5%, or 15%, etc. If the utility value change rate of the second historical transmission stage is between the first threshold and the second threshold, indicating that the change in the utility value is within the normal fluctuation range, the historical adjustment weight of the second historical transmission stage can be determined as the historical adjustment weight of the third historical transmission stage. If the utility value change rate of the second historical transmission stage is less than the first threshold, indicating that the utility value has not changed in the expected direction, the historical adjustment weight of the second historical transmission stage is adjusted in the opposite direction to the previous adjustment to obtain the historical adjustment weight of the third historical transmission stage. If the utility value change rate of the second historical transmission stage is greater than the second threshold, indicating that the utility value is changing in the expected direction, where the expected direction is an increasing direction, the historical adjustment weight of the second historical transmission stage is adjusted in the same direction as the previous adjustment to obtain the historical adjustment weight of the third historical transmission stage.
[0095] In the embodiment of the present application, the historical adjustment weight of each historical transmission stage can be determined by a method similar to the above. If the historical adjustment weight is greater than the previous historical adjustment weight, the adjustment direction of the historical transmission stage can be recorded as 1; if the historical adjustment weight is equal to the previous historical adjustment weight, the adjustment direction of the historical transmission stage can be recorded as 0; if the historical adjustment weight is less than the previous historical adjustment weight, the adjustment direction of the historical transmission stage can be recorded as -1, and the historical adjustment direction of each historical transmission stage can be determined in this way.
[0096] In an embodiment of the present application, the previous transmission stage belongs to each historical transmission stage. Based on this, the latest historical adjustment weight is determined as the historical adjustment weight of the previous transmission stage, and the latest historical adjustment direction is determined as the historical adjustment direction of the previous outgoing stage.
[0097] In step S233 , the current adjustment weight is determined based on the utility value change rate, the change rate threshold, the historical adjustment direction, and the historical adjustment weight.
[0098] In an embodiment of the present application, the change rate threshold includes a first threshold and a second threshold, the first threshold is less than the second threshold, and the first threshold is a negative number, and the second threshold is a positive number. Based on this, referring to Figure 7, step S233 shown in Figure 6 can be implemented by following the steps S2331 to S2335, which are described in detail below.
[0099] In step S2331, it is determined whether the utility change rate is less than a first threshold.
[0100] When the utility change rate is less than the first threshold, the process proceeds to step S2332; when the utility change rate is greater than or equal to the first threshold, the process proceeds to step S2333.
[0101] In step S2332, the opposite direction of the historical adjustment direction is determined as the current adjustment direction, and the historical adjustment weight is adjusted based on the current adjustment direction and the preset adjustment step to obtain the current adjustment weight.
[0102] In the embodiment of the present application, combined with formula (1), it can be seen that the utility value is positively correlated with the network throughput and negatively correlated with the packet loss rate and round-trip delay. The larger the utility value, the larger the network throughput and the smaller the packet loss rate and round-trip delay; and the smaller the utility value, the smaller the network throughput and the larger the packet loss rate and round-trip delay. Based on this, for the utility value, the expected direction is the direction in which the utility value increases. When the rate of change of the utility value is less than the first threshold, it indicates that the utility value decreases, which is opposite to the expected direction, indicating that the historical adjustment direction of the previous transmission stage is inappropriate, then the opposite direction of the historical adjustment direction is determined as the current adjustment direction. For example, assuming that the historical adjustment direction is increasing, the current adjustment direction is decreasing. Then, the historical adjustment weight is adjusted to the preset adjustment step according to the current adjustment direction to obtain the current adjustment weight.
[0103] In some embodiments, the preset adjustment step size is a value set in advance. For example, the preset adjustment step size may be 0.1, 0.15, or 0.2.
[0104] For example, assuming that the utility value change rate is less than the first threshold, the historical adjustment direction is increasing, the historical adjustment weight is 0.9, and the preset adjustment step is 0.1, then the current adjustment direction is decreasing, and the historical adjustment weight of 0.9 is reduced by 0.1, resulting in an adjustment weight of 0.8.
[0105] In step S2333, it is determined whether the utility change rate is greater than a second threshold.
[0106] When the utility change rate is greater than the second threshold, the process proceeds to step S2334; when the utility change rate is less than or equal to the second threshold, the process proceeds to step S2335.
[0107] In step S2334, the historical adjustment weight is adjusted based on the historical adjustment direction and the preset adjustment step to obtain the current adjustment weight.
[0108] In this embodiment of the present application, a utility value change rate greater than a second threshold indicates an increase in the utility value, which is equivalent to an expected increase in the utility value. This indicates that the historical adjustment direction of the previous transmission phase is appropriate, and the direction of the historical adjustment direction is determined as the current adjustment direction. For example, assuming that the historical adjustment direction is increasing, the current adjustment direction is also increasing. Next, the historical adjustment weight is adjusted by a preset adjustment step size according to the current adjustment direction to obtain the current adjustment weight.
[0109] For example, assuming that the utility value change rate is greater than the second threshold, the historical adjustment direction is increasing, the historical adjustment weight is 0.9, and the preset adjustment step is 0.1, then the current adjustment direction is increasing, and the historical adjustment weight 0.9 is increased by 0.1, and the adjustment weight is 1.
[0110] In step S2335, the historical adjustment weight is determined as the current adjustment weight.
[0111] In some embodiments, the first threshold and the second threshold may be opposite numbers. For example, the first threshold may range from -20% to -3%, and correspondingly, the second threshold may range from 3% to 20%. For example, the first threshold may be -3%, -5%, or -15%, and correspondingly, the second threshold may be 3%, 5%, or 15%. In some embodiments, the first threshold and the second threshold may not be opposite numbers. For example, the first threshold may be -3% and the second threshold may be 5%, as long as the first threshold is a negative number and the second threshold is a positive number.
[0112] In an embodiment of the present application, the utility value change rate is between the first threshold and the second threshold, indicating that the change in the utility value is within a normal range. In this case, the historical adjustment weight of the previous transmission stage can be directly determined as the adjustment weight of the stage to be transmitted.
[0113] Through step S102, the historical adjustment direction and historical adjustment weight of the previous transmission phase can be determined based on various historical network status information. The current adjustment weight is then determined based on the utility value change rate, the change rate threshold, the historical adjustment direction, and the historical adjustment weight. The utility value change rate, as feedback information, can reflect whether the adjustment direction of the previous transmission phase was appropriate, thereby guiding the current adjustment direction of the next transmission phase. Thus, the current adjustment direction can be used to obtain the current adjustment weight that matches the actual network conditions.
[0114] Continuing to refer to FIG. 4 , the description continues with step S102 above.
[0115] In step S103, when the network transmission process enters the waiting-for-transmission stage from the intermittent stage, the reference transmission parameters of the waiting-for-transmission stage are obtained, and the reference transmission parameters are adjusted using the current adjustment weights to obtain target transmission parameters.
[0116] In some embodiments, referring to FIG8 , the step S103 shown in FIG4 of "obtaining the reference transmission parameters for the stage to be transmitted, and adjusting the reference transmission parameters using the current adjustment weights to obtain the target transmission parameters" can be implemented through the following steps S1031 to S1033, which are described in detail below.
[0117] In step S1031, the current sub-phase of the to-be-transmitted phase is determined.
[0118] In the embodiment of the present application, the current sub-stage is one of an early sub-stage, a mid-stage, and a late sub-stage. The early sub-stage, the mid-stage, and the late sub-stage are determined by the ratio of the amount of transmitted packets in the waiting-to-transmit stage to the predicted amount of packets in the waiting-to-transmit stage.
[0119] In some embodiments, referring to FIG. 9 , step S1031 shown in FIG. 8 may be implemented by following steps S311 to S318 , which are described in detail below.
[0120] In step S311, the historical message sending volume corresponding to each historical transmission stage completed in the network transmission process is obtained.
[0121] In the embodiment of the present application, the historical message sending volume corresponding to each historical transmission stage can be obtained by obtaining the flow state information of each historical transmission stage. The flow state information may include the message sending volume of the historical transmission stage and the duration of the historical interruption stage.
[0122] In step S312, the predicted message volume in the waiting-for-transmission stage is determined using the historical message sending volumes.
[0123] In some embodiments, an average value of each historical message sending amount may be determined first, and the average value may be determined as the predicted message amount in the waiting transmission stage.
[0124] In step S313, the amount of transmitted packets in the waiting-for-transmission phase is obtained, and the ratio of the transmitted packet amount to the predicted packet amount is determined.
[0125] In some embodiments, message counting may be started during the transmission process to obtain the amount of transmitted messages; the amount of transmitted messages may then be divided by the predicted amount of messages to obtain a ratio of the amount of transmitted messages to the predicted amount of messages.
[0126] For example, assuming that the predicted message volume is 100, that is, 100 messages are predicted to be transmitted and the transmitted message volume is 15, the ratio of the transmitted message volume to the predicted message volume is 15%.
[0127] In step S314 , it is determined whether the ratio is less than a preset first ratio.
[0128] In the embodiment of the present application, if the ratio is less than the preset first ratio, the process proceeds to step S315. If the ratio is greater than or equal to the preset first ratio, the process proceeds to step S316.
[0129] In some embodiments, the preset first ratio may be a pre-set value, and the range of the preset first ratio may be 20% to 50%. For example, the preset first ratio may be 25%. Assuming the ratio is 15%, if it is determined that the ratio is less than the preset first ratio, then the process proceeds to step S315. If the preset first ratio is 25% and the ratio is 30%, then it is determined that the ratio is greater than the preset first ratio, and then the process proceeds to step S316.
[0130] In step S315 , it is determined that the current sub-stage of the to-be-transmitted stage is an early sub-stage, and the process ends.
[0131] In an embodiment of the present application, when the ratio of the transmitted message volume to the predicted message volume is less than a preset first ratio, it is determined that the current sub-stage of the to-be-transmitted stage is an early sub-stage.
[0132] In step S316 , it is determined whether the ratio is less than a preset second ratio.
[0133] In the embodiment of the present application, if the first ratio is less than the second ratio, and the ratio is less than the preset second ratio, indicating that the ratio is greater than the preset first ratio and less than the preset second ratio, the process proceeds to step S317. If the ratio is greater than or equal to the preset second ratio, the process proceeds to step S318.
[0134] In some embodiments, the preset second proportion may be a pre-set value, and the range of the preset second proportion may be 50% to 80%. For example, the preset first proportion is 25%, the preset second proportion may be 75%, and assuming the ratio is 65%, based on this, it can be determined by a size comparison method that the ratio is greater than the preset first proportion and less than the preset second proportion, and then step S317 is entered. If the preset first proportion is 25%, the preset second proportion may be 75%, and the ratio is 80%, then it is determined that the ratio is greater than the preset second proportion, and then step S318 is entered.
[0135] In step S317, it is determined that the current sub-stage of the to-be-transmitted stage is a mid-stage sub-stage, and the process ends.
[0136] In an embodiment of the present application, when the ratio of the transmitted message volume to the predicted message volume is between a preset first ratio and a preset second ratio, it is determined that the current sub-stage of the to-be-transmitted stage is a mid-term sub-stage.
[0137] In step S318, it is determined that the current sub-stage of the to-be-transmitted stage is a late sub-stage.
[0138] In an embodiment of the present application, when the ratio of the transmitted message volume to the predicted message volume is greater than a preset second ratio, it is determined that the current sub-stage of the to-be-transmitted stage is a late sub-stage.
[0139] Through steps S311 to S318, considering that intermittent flows have different transmission characteristics in different sub-stages of the waiting-for-transmission stage, the waiting-for-transmission stage is divided into an early sub-stage, a middle sub-stage, and a late sub-stage based on the preset first ratio and the preset second ratio. Based on this, the current sub-stage of the waiting-for-transmission stage can be accurately determined in real time based on the ratio of the transmitted packet volume to the predicted packet volume, the preset first ratio, and the preset second ratio.
[0140] Continuing to refer to FIG. 8 , the description continues with step S1031 above.
[0141] In step S1032, the reference sending parameters of the current sub-phase are obtained.
[0142] In an embodiment of the present application, the reference transmission parameters for the current sub-phase are determined by a congestion control algorithm. The congestion control algorithm determines the current network state based on, for example, the packet loss rate and latency of network transmission, and obtains the reference transmission parameters by adjusting default transmission parameters. Exemplarily, the congestion control algorithm may be a transmission control protocol congestion control method or an explicit congestion notification method.
[0143] In step S1033, the reference transmission parameters of the current sub-phase are adjusted according to the current adjustment weights to obtain the target transmission parameters corresponding to the current sub-phase.
[0144] In some embodiments, the above step S1033 can be divided into the following three situations:
[0145] In the first case, the current sub-stage is the early sub-stage.
[0146] In this case, the reference transmission parameters of the previous sub-stage are weighted based on the current adjustment weight to obtain the target transmission parameters corresponding to the previous sub-stage.
[0147] In the embodiment of the present application, considering that the early sub-stage of the waiting-for-transmission stage is transitioned from the intermittent stage, and after the intermittent stage, the network resources of the network transmission are preempted by other traffic, resulting in fewer network resources in the early sub-stage, if the reference sending parameter is increased at this time, the performance indicators such as the packet loss rate and the round-trip delay will increase, making the utility value smaller; and if the reference sending parameter is reduced at this time, the performance indicators such as the packet loss rate and the round-trip delay will be reduced, making the utility value larger, that is, the utility value changes in the desired direction. Based on this, the embodiment of the present application will reduce the reference sending parameter of the early sub-stage based on the guidance of the utility value change rate. That is, an adjustment weight less than 1 will be determined, and the product of this adjustment weight and the reference sending parameter of the early sub-stage will be used as the target sending parameter corresponding to the early sub-stage.
[0148] In the second case, the current sub-stage is the mid-term sub-stage.
[0149] In this case, first determine the parameter change between the reference sending parameter of the early sub-stage and the target sending parameter corresponding to the early sub-stage; then determine the first target change based on the parameter change and the preset first constant; finally, determine the sum of the reference sending parameter corresponding to the mid-term sub-stage and the first target change as the target sending parameter corresponding to the mid-term sub-stage.
[0150] In this embodiment of the present application, after passing the early sub-phase, network transmission enters the mid-sub-phase. Previously occupied network resources are reclaimed, meaning that available network resources increase. However, if data is transmitted according to the reference transmission parameters corresponding to the mid-sub-phase, bandwidth utilization will be low. Therefore, in this embodiment of the present application, the reference transmission parameters corresponding to the mid-sub-phase are increased to obtain the target transmission parameters corresponding to the mid-sub-phase.
[0151] In an embodiment of the present application, the difference between the reference sending parameter of the early sub-stage and the target sending parameter corresponding to the early sub-stage can be determined as the parameter change amount of the early sub-stage, that is, the parameter reduction amount of the early sub-stage; then, the product of the parameter change amount and the preset first constant can be determined as the first target change amount, wherein the preset first constant is a real number greater than 1, and exemplarily, the preset first constant can be 1.5, 2 or 3, etc.; finally, the sum of the reference sending parameter of the mid-term sub-stage and the first target change amount is determined as the target sending parameter corresponding to the mid-term sub-stage.
[0152] In the third case, the current sub-stage is a later sub-stage.
[0153] In this case, a second target change is determined based on the preset second constant and the parameter change, and the difference between the reference transmission parameter for the later sub-stage and the second target change is determined as the target transmission parameter corresponding to the later sub-stage. The preset first constant is a positive real number greater than the preset second constant, and the difference between the preset first constant and the preset second constant is equal to 1. For example, if the preset first constant is 1.5, the preset second constant may be 0.5; if the preset first constant is 2, the preset second constant may be 1.
[0154] In some embodiments, since the preset first constant is greater than 1, in the mid-term sub-stage, not only the parameter change of the early sub-stage is compensated, but also the sending parameters of the late sub-stage are borrowed in advance. Based on this, the reference sending parameters will be adjusted down based on the second target change in the late sub-stage, wherein the second target change is the part borrowed in advance in the mid-term sub-stage, and the second target change is the product of the preset second constant and the parameter change.
[0155] In an embodiment of the present application, there is a high packet loss rate problem in the later sub-stage of actual network transmission. To solve this problem, the embodiment of the present application will reduce the sending parameters of the later sub-stage.
[0156] In an embodiment of the present application, the reference sending parameter of the later sub-stage is reduced by the parameter change amount to obtain the target sending parameter corresponding to the later sub-stage, wherein the parameter change amount is the difference between the reference sending parameter of the early sub-stage and the target sending parameter corresponding to the early sub-stage.
[0157] In some embodiments, the sum of the decreases in the parameters sent in the early and late sub-stages is equal to the increase in the parameters sent in the middle sub-stage, that is, the sum of the parameter change and the second target change is equal to the first target change.
[0158] Through the above-mentioned step S103, combined with the different transmission characteristics of the early sub-stage, the middle sub-stage and the late sub-stage, the reference sending parameters of each sub-stage are adjusted in a targeted manner to obtain the target sending parameters of each sub-stage. In this way, the target sending parameters of each sub-stage can match the transmission characteristics of the corresponding sub-stage. By reducing the sending parameters of the early sub-stage and the late sub-stage, the packet loss rate of the early sub-stage and the late sub-stage can be reduced; and by increasing the sending parameters of the middle sub-stage, the resource utilization of the middle sub-stage can be improved.
[0159] Continuing to refer to FIG. 4 , the description continues with step S103 above.
[0160] In step S104, data transmission is performed using the target sending parameters in the waiting-for-transmission stage.
[0161] In the embodiment of the present application, the target transmission parameter is one of the target transmission parameter corresponding to the early sub-stage, the target transmission parameter corresponding to the mid-stage, and the target transmission parameter corresponding to the late sub-stage. If the current sub-stage of the pending transmission stage is the early sub-stage, data transmission is performed using the target transmission parameter corresponding to the early sub-stage; if the current sub-stage of the pending transmission stage is the mid-stage, data transmission is performed using the target transmission parameter corresponding to the mid-stage; if the current sub-stage of the pending transmission stage is the late sub-stage, data transmission is performed using the target transmission parameter corresponding to the late sub-stage.
[0162] Through steps S101 to S104, network status information for each historical transmission phase completed during the network transmission process is first obtained, where a historical transmission phase refers to a phase where data transmission has already completed. Next, adjustment weights for transmission parameters are determined using each historical network status information. When the network transmission process transitions from an intermittent phase to a pending transmission phase, reference transmission parameters for the pending transmission phase are obtained. The reference transmission parameters are then adjusted using the adjustment weights to obtain target transmission parameters. The intermittent phase refers to an idle phase where no data transmission is taking place, and the pending transmission phase refers to a phase where data transmission is about to begin. The reference transmission parameters are transmission parameters obtained during the network transmission process using a related congestion control algorithm. By adjusting the reference transmission parameters in this manner, target transmission parameters adapted to actual network resources can be obtained. Finally, in the waiting-for-transmission stage, the target sending parameters are used for data transmission. Although in the process of network transmission, after the intermittent stage, the network resources originally used for data transmission will be "preempted" in the early sub-stage, resulting in a reduction in the network resources available for data transmission, the embodiment of the present application can reduce the reference sending parameters of the early sub-stage based on the reduced network resources to obtain the target sending parameters of the early sub-stage. Therefore, when the target sending parameters are used for data transmission in the early sub-stage, data transmission is performed with the sending parameters adapted to the network resources of the early sub-stage, thereby reducing the packet loss rate of the early sub-stage; in addition, the reference sending parameters of the mid-term sub-stage can be increased to obtain the target sending parameters of the mid-term sub-stage, thereby improving the transmission efficiency of the mid-term sub-stage; and the reference sending parameters of the late sub-stage can be reduced to obtain the target sending parameters of the late sub-stage to reduce the packet loss rate of the late sub-stage.
[0163] In some embodiments, the target sending parameters may include a target sending rate. After executing the above step S104, there will still be a problem of inaccurate prediction of the predicted message volume for the historical transmission stage. To solve this problem, refer to Figure 10. After step S104 shown in Figure 4, the following steps S105 to S109 can also be executed, which are explained in detail below.
[0164] In step S105, the actual total amount of packets and the predicted total amount of packets in M consecutive historical transmission phases before the phase to be transmitted are obtained.
[0165] In the embodiment of the present application, M is a positive integer. For example, M can be 1, 2, or 4.
[0166] In this embodiment of the present application, the actual total amount of packets refers to the sum of the amount of packets transmitted during the M historical transmission phases, and the predicted total amount of packets refers to the sum of the predicted amount of packets during the M historical transmission phases. The predicted amount of packets for each of the M historical transmission phases can be obtained by referring to step S312 above.
[0167] In step S106, when the actual total amount of packets is different from the predicted total amount of packets, the total difference in sending rates of M historical transmission stages is obtained.
[0168] In some embodiments, the size relationship between the actual total amount of messages and the predicted total amount of messages can be determined first. If the actual total amount of messages is different from the predicted total amount of messages, the total difference in the sending rate of the M historical transmission stages is obtained; if the actual total amount of messages is the same as the predicted total amount of messages, the process is ended.
[0169] In some embodiments, for any of the M historical transmission phases, if the pending transmission phase ends data transmission in the early sub-phase and enters the intermittent phase, the transmission rate difference for that historical transmission phase is positive, and the difference between the reference transmission parameter of the early sub-phase and the target transmission parameter corresponding to the early sub-phase is determined as the transmission rate difference for that historical transmission phase. That is, the parameter change in the early sub-phase is determined as the transmission rate difference for that historical transmission phase. If the pending transmission phase ends data transmission in the late sub-phase and enters the intermittent phase, the transmission rate difference for that historical transmission phase is negative, and the parameter change in the early sub-phase is determined as the absolute value of the transmission rate difference for that historical transmission phase. If the pending transmission phase ends data transmission in the middle sub-phase, and data transmission ends before the middle sub-phase has completed compensation for the transmission rate of the early sub-phase, this situation is similar to the above-mentioned situation of ending data transmission in the early sub-phase. If data transmission ends in the middle sub-phase, and data transmission ends before the middle sub-phase has completed compensation for the transmission rate of the early sub-phase, this situation is similar to the above-mentioned situation of ending data transmission in the late sub-phase.
[0170] In some embodiments, a similar method as described above may be used to determine the sending rate difference of each of the M historical transmission stages, and finally the sum of the sending rate differences is determined as the total sending rate difference.
[0171] In step S107, it is determined whether the total difference in sending rates is greater than a difference threshold.
[0172] In an embodiment of the present application, if the total difference in sending rate is greater than the difference threshold, it indicates that the overall transmission rate of the M historical transmission stages is too low, and the transmission rate needs to be increased in the mid-term sub-stage of the stage to be transmitted, then step S108 is entered; and if the total difference in sending rate is less than the difference threshold, it indicates that the overall transmission rate of the M historical transmission stages is too high, and the transmission rate needs to be reduced in the early sub-stage of the stage to be transmitted, then step S109 is entered.
[0173] In some embodiments, the difference threshold may be 0, 0.01, or 0.1, etc.
[0174] In step S108, the target sending rate of the mid-term sub-phase of the waiting-for-transmission phase is increased by the total sending rate difference, and the process ends.
[0175] In this embodiment of the present application, the sum of the target sending rate of the mid-term sub-phase of the waiting-for-transmission phase and the total sending rate difference can be determined as the final target sending rate of the mid-term sub-phase, thereby completing the compensation of the sending rates corresponding to the M historical transmission phases.
[0176] In step S109, the target sending rate of the early sub-phase of the waiting-for-transmission phase is reduced by the sending rate difference.
[0177] In this embodiment of the present application, the difference between the target sending rate of the previous sub-stage of the waiting transmission stage and the absolute value of the total sending rate difference can be determined as the final target sending rate of the previous sub-stage. In this way, the extra sending rates borrowed from the M historical transmission stages are absorbed or balanced.
[0178] Through steps S105 to S109, when the actual total number of packets differs from the predicted total number of packets, the total difference in sending rate can be obtained. The target sending rate for the pending transmission phase can be adjusted based on the total difference in sending rate. This can address the issue of inaccurate predicted packet volumes during the historical transmission phase by adjusting the sending rate a second time during the pending transmission phase, thereby improving network transmission stability.
[0179] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0180] The embodiment of the present application proposes a congestion control method for intermittent traffic transmission, which can improve the packet loss rate in scenarios such as live audio and video broadcasting, real-time communication, and industrial Internet, optimize traffic transmission efficiency, and enhance business experience. It belongs to the field of computer network transmission optimization.
[0181] In some embodiments, a congestion control method for intermittent traffic transmission includes: a monitoring module at the data sending end monitors and counts the traffic intermittency information of each connection, where the traffic intermittency information may include whether the current state is intermittent, the duration of traffic intermittency and non-interruption in the past period of time, and network quality information in the past period of time; an online learning module at the data sending end decides the sending parameter weights for the next period of time based on the latest monitoring information of the monitoring module; and an execution module at the data sending end adjusts the sending rate or sending window value under the non-intermittent traffic state in the next period of time based on the parameter weights decided by the online learning module and the current sending parameters.
[0182] Thus, for the continuity phase or transmission phase, the embodiment of the present application implements different traffic sending strategies for the early, middle, and late stages respectively, to optimize the network traffic transmission efficiency. Compared with related methods, the congestion control strategy involved in the embodiment of the present application can solve the problems of network packet loss and low transmission efficiency when traffic switches between intermittent and continuous states, which is conducive to improving the user experience of existing Internet services and enhancing the competitiveness of content delivery network (CDN) manufacturers.
[0183] Referring to FIG11 , the transmitter 110 may include a monitoring module 1101, an online learning module 1102, and an execution module 1103. The online learning module 1102 includes a utility function 11021. Based on FIG11 , the monitoring module 1101 of the transmitter 110 periodically monitors and obtains network status information (net_stus) and flow information (flow_stus) over a period of time. Utility function 11021 determines the utility value of the online learning module based on the net_stus. Based on the utility value and information such as net_stus and flow_stus obtained by the monitoring module, the online learning module 1102 determines the congestion parameter weights (cc_para) for the early, mid, and late stages of each "continuity" state and inputs the cc_para to the execution module 1103. The execution module 1103 determines the final transmission parameters based on the cc_para and the transmission parameters obtained from the existing congestion control algorithm and uses the final transmission parameters to send the subsequent traffic. Among them, the "continuity" state corresponds to the sending stage in other embodiments, the congestion parameter weight corresponds to the adjustment weight in other embodiments, and the sending parameter obtained by the existing congestion control algorithm corresponds to the reference sending parameter in other embodiments.
[0184] The idea of the embodiments of the present application is to address the different packet loss rates and traffic transmission efficiencies of intermittent streams at different stages of the transmission process. By designing a parameter weight adjustment method based on online learning, the early and late traffic transmission strategies are adjusted to be moderately "relaxed", while the mid-term transmission strategy is adjusted to be moderately "aggressive". This further optimizes the early and late packet loss rates of each stage in the audio and video live broadcast scenario, improves the full utilization of network resources for mid-term traffic transmission, and thus enhances the overall traffic transmission efficiency, which is conducive to improving the user-side experience quality (QoE) indicators such as freezes in audio and video live broadcast services. Among them, the parameter weights correspond to the adjustment weights in other embodiments.
[0185] The embodiments of the present application can be implemented in the following ways:
[0186] First, the monitoring module at the sending end periodically collects statistics on the network status information (net_stus) and flow status information (flow_stus) over the past period of time.
[0187] In some embodiments, the monitoring cycle of the monitoring module is n round-trip times (RTT), where n reflects the real-time nature of the statistical information, and n is greater than or equal to 1. The smaller the value of n, the smaller the adjustment cycle of the traffic sending parameters, that is, the more frequent the adjustment. n can be configured by the administrator and reflected in the configuration file. By default, n can be 2. In some embodiments, a monitoring cycle can include multiple transmission phases and multiple interval phases. For example, a monitoring cycle can include 4 transmission phases and 3 interval phases. When the monitoring of the monitoring cycle ends, the transmission phase included in the monitoring cycle is the historical transmission phase.
[0188] In some embodiments, the network status information net_stus includes information such as throughput (throughput), RTT, and packet loss rate (loss_rate) over the past n RTTs;
[0189] In some embodiments, the flow state information flow_stus includes the duration of each intermittent flow (off_duration) and the number of packets sent each time (on_pkt_amount) in the past n RTTs;
[0190] Second, the utility function of the sender determines the utility value of the previous monitoring cycle based on the network status information statistically collected by the monitoring module. The utility function is denoted as U and the utility value is denoted as u. The utility value is then input into the online learning module.
[0191] In the embodiment of the present application, the utility function of online learning can be expressed as the following formula (2):
[0192] Where u is the utility value of the monitoring period, net_stus is the network status information, throughput is the throughput, and loss_rate is the packet loss rate. The utility value can also be called the effective throughput per unit time in the previous monitoring period.
[0193] In some embodiments, the parameter weight of the online learning module in the first detection cycle is set to 1, so that the initial utility value when the method provided in the embodiment of the present application is not adopted can be calculated. The initial utility value can be recorded as u0.
[0194] Third, the online learning module at the sending end periodically receives the utility value from the utility function and the flow status information and network status information from the monitoring module, and adjusts the parameter weights applicable to the early and late stages of each "continuous" traffic transmission. The parameter weight is denoted as w, and the above parameter weight w is input into the execution module.
[0195] In the embodiment of the present application, the basis for dividing each "continuity" traffic transmission state into the early, middle and late stages is as follows: the first a% stage of the traffic message is the early stage of the "continuity" state, the range of a% to b% of the traffic message is the middle stage of the "continuity" state, and the range of b% to 100% of the traffic message is the late stage of the "continuity" state. For example, in a certain "continuity" state, the number of messages sent by the sender to a connection is 100, then the stage of sending the 1st message to the ath message is the early stage, the stage of sending the a+1th message to the bth message is the middle stage, and the stage of sending the b+1th message to the 100th message is the late stage; wherein, the parameters a and b can be set by the administrator and can be reflected in the configuration file. In some embodiments, the value of a can be 25, and the value of b can be 75.
[0196] In an embodiment of the present application, in order to further determine the number of messages sent in each subsequent "continuity" state, the online learning module can determine the number of messages sent in each subsequent "continuity" state based on the on_pkt_amount feedback from the monitoring module, where on_pkt_amount can be the average value of the number of messages sent in each "continuity" state, or it can be the minimum or maximum value (i.e., various variants, such as smoothed values), or a statistical quantile value (such as the 50th or 75th quantile value). The specific method of value determination can be configured by the administrator and reflected in the configuration file. In an embodiment of the present application, on_pkt_amount is the average value of the number of messages sent.
[0197] In an embodiment of the present application, the weight of the sending parameter can be determined in the following manner, and the parameter weight can be denoted as w.
[0198] In some embodiments, the value range of the parameter weight can be set to 0.5 to 2, the initial value of the parameter weight is set to 1, and the adjustment step of the parameter weight is denoted as α, which can be configured by the administrator. Generally, α is 0.1.
[0199] In some embodiments, the parameter weights used in the i-th monitoring period are represented by w i Indicates that the utility value of the monitoring period is u i Indicates. Available d i Indicates that the parameter weight is represented by w i-1 Adjustment value w iThe adjustment direction, when w i Greater than w i-1 When d i The value is 1; when w i Equal to w i-1 When d i The value is 0; when w i Less than w i-1 When d i The value is -1. In the initial state, d i The value is -1, which means that during the first adjustment, the parameter weight is adjusted from 1 to (1-α).
[0200] In the embodiment of the present application, the online learning module determines the change rate by the utility value of two adjacent monitoring periods, and the change rate is recorded as R i , R can be determined by the following formula (3) i .
[0201] Among them, u i Refers to the utility value of the i-th monitoring period, u i-1 Refers to the utility value of the i-1th monitoring period.
[0202] In the embodiment of the present application, the online learning module uses the change rate threshold, the change rate of the i-th monitoring period, the parameter weight of the i-th monitoring period, the adjustment step size, and the adjustment direction of the i-th period to determine the parameter weight of the next i+1-th period, satisfying the following formula (4):
[0203] Among them, w i+1 is the parameter weight of the i+1th period, w i is the parameter weight of the i-th period, R i is the rate of change of the i-th cycle, R_thres is the rate of change threshold, α is the adjustment step size, d i is the adjustment direction of the i-th cycle.
[0204] In some embodiments, to avoid the above determination of w i+1 Falling into the problem of "local optimum", if the w value does not change for n consecutive monitoring cycles, the online learning module will randomly select any value (denoted as w) in the range of 0.5≤w≤2 new ) Perform the above operation, if a better utility value is obtained, that is, the utility value increases, then perform the above determination w i+1 If the utility value becomes smaller, return to w new The previous value (denoted as w old ), wait for n monitoring cycles w does not change and then randomly select w new Make new attempts.
[0205] In the embodiment of the present application, the online learning module takes the parameter weight w of the latest decision i+1 Send it to the execution module, the execution module uses w i+1 Controls the traffic sending in the next monitoring cycle.
[0206] In some embodiments, the execution module of the sending end receives the parameter weight w sent from the online learning module. i+1 After that, use w i+1 Adjust the corresponding sending parameters, which can be recorded as para_send, to achieve the goal of appropriately "relaxing" packet sending in the early and late stages of the "continuity" state of traffic, and appropriately "aggressive" packet sending in the middle stage. The details are as follows:
[0207] First, the execution module obtains the corresponding sending parameters para_send_1, para_send_2 and para_send_3 when entering the early, middle and late stages of "continuity" respectively.
[0208] Next, the execution module obtains w i+1 Determine the final sending parameters for the early, middle and late stages, which are denoted as para_send_final_1, para_send_final_2 and para_send_final_3, respectively, as shown in formulas (5), (6) and (7): para_send_final_1 = para_send_1 × w i+1 Formula (5);
[0209] Among them, para_send_final_1 is the final sending parameter in the early stage, para_send_1 is the traffic early sending parameter determined by the relevant congestion control algorithm, and w i+1 is the parameter weight of the latest decision, which is used to control the traffic sending parameters of the next monitoring cycle. para_send_final_2 = para_send_2 + 2 × para_send_1 × (1-w i+1 ) formula (6);
[0210] Wherein, para_send_final_2 is the final mid-term sending parameter, and para_send_2 is the mid-term traffic sending parameter determined by the relevant congestion control algorithm. para_send_final_3=para_send_3-para_send_1×(1-w i+1 ) formula (7);
[0211] Among them, para_send_final_3 is the final sending parameter in the later stage, and para_send_3 is the traffic sending parameter determined by the relevant congestion control algorithm.
[0212] The core idea of the above adjustment strategy is to reduce the sending parameters during periods with high packet loss rates, and to increase the sending parameters during periods with low packet loss rates. The sum of the decreases in the early and late stages is consistent with the sum of the increases in the mid-term. Overall, there is no increase or decrease in sending.
[0213] In some embodiments, the adjustment of traffic sending parameters is mainly aimed at adjusting the sending rate. Therefore, the initial sending rate Pacing_final_1 under the "continuity" state of traffic can be obtained using formula (8): Pacing_final_1 = pacing_send_1 × w i+1 Formula (8);
[0214] Among them, Pacing_final_1 is the adjusted early traffic sending rate, and pacing_send_1 is the early traffic sending rate determined by the relevant congestion control algorithm. This is equivalent to the execution module sending the first a% of on_pkt_amount at the sending rate of pacing_final_1 in the early stage. At this time, compared with the relevant congestion control algorithm, the sending rate is reduced by pacing_send_1×(1-w i+1 ), the embodiment of the present application "supplements" the above-mentioned reduced sending rate to the next a% to b% (i.e., mid-term) traffic transmission.
[0215] In some embodiments, when the traffic enters the middle stage of the "continuity" state, the rate reduction in the early stage is applied to the middle stage, and an equal proportion of the sending rate is "borrowed" from the sending rate in the later stage. Therefore, the sending rate in the middle stage, Pacing_final_2, can be calculated using formula (9): Pacing_final_2 = pacing_send_2 + 2 × pacing_send_1 × (1-w i+1 ) formula (9);
[0216] Among them, Pacing_final_2 is the mid-term sending rate of the adjusted traffic, pacing_send_2 represents the sending rate determined by the relevant congestion control algorithm when entering the "continuity" mid-term state. At this time, 2×pacing_send_1×(1-w_i) indicates that part (i.e., pacing_send_1×(1-w_i)) of the sending rate is "supplemented" to the mid-term by the previously reduced sending rate, and the other part (i.e., para_send_1×(1-w_i)) is "borrowed" in advance from the later stage.
[0217] In some embodiments, when the traffic enters the late stage of the "continuous" state, the borrowed sending rate before the mid-term is "subtracted" or "eliminated" to obtain the final sending rate in the late stage. Therefore, the late sending rate Pacing_final_3 can be calculated using formula (10): Pacing_final_3 = pacing_send_3 - pacing_send_1 × (1 - w i+1 ) formula (10);
[0218] Among them, Pacing_final_3 is the adjusted traffic sending rate in the later stage, and pacing_send_3 represents the sending rate determined by the relevant congestion control algorithm when entering the later stage of "continuity".
[0219] In some embodiments, since the number of messages sent in each "continuous" state is uncertain, it is difficult to determine the specific value of on_pkt_amount each time based on the average value alone. Therefore, the following four abnormal situations may occur:
[0220] Abnormal situation 1: before a%*on_pkt_amount is sent, the "continuity" state ends. At this time, the reduced sending rate cannot be "compensated" by adjusting the mid-term sending rate. As shown in Figure 12, the "continuity" state ends at the position indicated by "Situation 1" in Figure 12.
[0221] Abnormal situation 2: In the first half of the mid-term, the previously reduced sending rate has not yet “had time” to be fully increased before the “continuity” state is exited, that is, the “continuity” state ends at the position indicated by “Situation 2” in Figure 12.
[0222] Abnormal situation 3: In the middle of the traffic "continuity" state, the execution module has "borrowed" the later sending rate, but the "continuity" state suddenly ends in the second half of the middle period, making it impossible to "make up" for the "borrowed" sending parameters by reducing the sending rate in the later period, that is, the "continuity" state ends at the position indicated by "Situation 3" in Figure 12.
[0223] Abnormal situation 4: before the end of the later period, the previously "borrowed" sending rate has not "had time" to be fully reduced before the "continuity" state is exited, that is, the "continuity" state ends at the position indicated by "Situation 4" in Figure 12. The "intermittent" in Figure 12 corresponds to the intermittent stage in other embodiments.
[0224] In order to solve the problem of traffic being sent too fast or too slow due to uncertainty, the sending end execution module in the embodiment of the present application maintains the difference in the current sending rate, which is recorded as pacing_delta. When the value is positive (that is, pacing_delta is greater than 0), it indicates that the sending rate was previously reduced by lowering the sending rate, and this part of the sending rate has not been fully used by the subsequent traffic transmission. When the value is negative (that is, pacing_delta is less than 0), it indicates that the sending rate was "borrowed" by increasing the sending rate, and this part of the sending rate has not been fully "digested" by the subsequent traffic transmission.
[0225] In the embodiment of the present application, when the accumulated pacing_delta of m consecutive monitoring cycles is greater than 0, or when the accumulated pacing_delta of m consecutive stages is greater than 0, the sending rate of pacing_delta is increased once in the middle of the next cycle, that is, a secondary adjustment is performed, as shown in formula (11): Pacing_final_2'=Pacing_final_2+pacing_delta Formula (11);
[0226] Wherein, Pacing_final_2' is the mid-term sending rate in the next cycle, and Pacing_final_2 is the sending rate obtained by formula (9).
[0227] In some embodiments, when the accumulated pacing_delta of m consecutive monitoring cycles is less than 0, or when the accumulated pacing_delta of m consecutive stages is less than 0, the sending rate of pacing_delta is reduced once in the early stage of the next cycle, that is, a secondary adjustment is performed, as shown in formula (12): Pacing_final_1'=Pacing_final_1-|pacing_delta| Formula (12);
[0228] Wherein, Pacing_final_1′ is the early sending rate in the next cycle, and Pacing_final_1 is the sending rate obtained by formula (8).
[0229] In some embodiments, as shown in FIG13 , an embodiment of the present application further provides a transmission control method, comprising the following steps:
[0230] In step S1301, a session starts.
[0231] In some embodiments, a session refers to communication or information transmission between two objects, and the start of a session may refer to the start of audio data transmission or the start of video data transmission.
[0232] In step S1302, it is determined whether it is in the continuity stage.
[0233] In this embodiment of the present application, a continuity phase refers to a phase during which data or information is being transmitted. If the computer device is in the continuity phase, the process proceeds to step S1303, which determines which phase of the continuity phase the computer device is in. If the computer device is not in the continuity phase, the process proceeds to step S1302, and as time passes, the process continues to determine whether the computer device is in the continuity phase.
[0234] In step S1303, it is determined whether it is in the early stage.
[0235] In some embodiments, it may be determined whether the ratio of the transmitted packet volume to the predicted packet volume is less than a%. If so, it is determined that the current phase is in the early stage of the continuity phase, and the process proceeds to step S1304. If the ratio of the transmitted packet volume to the predicted packet volume is greater than or equal to a%, it is determined that the current phase is not in the early stage of the continuity phase, and the process proceeds to step S1306.
[0236] In step S1304, the sending rate is reduced based on the parameter weight to obtain the final sending rate in the early stage.
[0237] In the embodiment of the present application, the sending rate can be reduced by referring to the above formula (5), thereby obtaining the final sending rate in the early stage.
[0238] In step S1305, the traffic is sent according to the previous final sending rate, and the process returns to step S1302.
[0239] In step S1306, it is determined whether it is in the middle stage.
[0240] In this embodiment of the present application, if the ratio of the transmitted packet volume to the predicted packet volume is greater than or equal to a%, then a determination is made as to whether the ratio of the transmitted packet volume to the predicted packet volume is less than b%. If the ratio of the transmitted packet volume to the predicted packet volume is less than b%, then it is determined that the current phase is in the middle of the continuity phase, and the process proceeds to step S1307. If the ratio of the transmitted packet volume to the predicted packet volume is greater than or equal to b%, then it is determined that the current phase is not in the middle of the continuity phase, and the process proceeds to step S1309.
[0241] In step S1307, the sending rate is increased based on the parameter weight and the early sending rate of the traffic determined by the relevant congestion control algorithm to obtain a mid-term final sending rate.
[0242] In the embodiment of the present application, the sending rate may be increased by referring to the above formula (9), thereby obtaining the mid-term final sending rate.
[0243] In step S1308, the traffic is sent according to the mid-term final sending rate, and the process returns to step S1302.
[0244] In step S1309, it is determined whether it is in the later stage.
[0245] In this embodiment of the present application, if the ratio of the transmitted packet volume to the predicted packet volume is greater than b%, it is determined whether the ratio of the transmitted packet volume to the predicted packet volume is less than 100%. If the ratio of the transmitted packet volume to the predicted packet volume is less than 100%, it is determined that the current phase is in the late stage of the continuity phase, and the process proceeds to step S1310. If the ratio of the transmitted packet volume to the predicted packet volume is greater than or equal to 100%, it is determined that the current phase is not in the late stage of the continuity phase, and the process returns to step S1302.
[0246] In step S1310, the sending rate is reduced based on the parameter weight and the early sending rate of the traffic determined by the relevant congestion control algorithm to obtain a final sending rate in the later stage.
[0247] In the embodiment of the present application, the above formula (10) can be referred to to reduce the sending rate, thereby obtaining the final sending rate in the later stage.
[0248] In step S1311, the traffic is sent according to the final sending rate in the later stage, and the process returns to step S1302.
[0249] The transmission control method provided by the embodiment of the present application solves the problem that the related congestion control algorithm does not take into account the "intermittent" characteristics of traffic, resulting in excessively high packet loss rates in the early and late stages of each "continuity" phase, and low network resource utilization in the mid-term. Therefore, a congestion control method for intermittent traffic transmission is proposed. The monitoring module monitors the "continuity" index of traffic transmission, and inputs the "continuity" index into the online learning module, thereby deciding on the congestion control adjustment rules under different traffic transmission intermittent states. Finally, the execution module adjusts the existing sending window or sending rate according to the rules decided by the online learning module, so that the early and late stages of "continuity" no longer tend to "aggressive packet sending", thereby reducing the packet loss rates in the early and late stages, and at the same time, the mid-term tends to "soft packet sending", thereby improving the utilization of network resources.
[0250] It is understandable that in the embodiments of the present application, data related to network status information and reference sending parameters are involved, and the collection, use and processing of such data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0251] The following further describes an exemplary structure of the transmission control device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, as shown in FIG3 , the software modules stored in the transmission control device 455 of the memory 450 may include:
[0252] The first acquisition module 4551 is configured to obtain historical network status information of each historical transmission stage completed during the network transmission process; the first determination module 4552 is configured to determine the current adjustment weight for the transmission parameter based on each historical network status information; the adjustment module 4553 is configured to obtain the reference transmission parameter of the to-be-transmitted stage when the network transmission process enters the to-be-transmitted stage from the intermittent stage, and use the current adjustment weight to adjust the reference transmission parameter to obtain the target transmission parameter; the transmission module 4554 is configured to use the target transmission parameter for data transmission in the to-be-transmitted stage.
[0253] In some embodiments, the adjustment module 4553 is further configured to: determine a current sub-stage of the to-be-transmitted stage, wherein the current sub-stage is one of an early sub-stage, a middle sub-stage, and a late sub-stage;
[0254] Acquire the reference sending parameters of the current sub-phase; adjust the reference sending parameters of the current sub-phase according to the current adjustment weight to obtain the target sending parameters corresponding to the current sub-phase.
[0255] In some embodiments, the adjustment module 4553 is further configured to: when the current sub-stage is the previous sub-stage, weighted processing is performed on the reference sending parameters of the previous sub-stage based on the current adjustment weight to obtain the target sending parameters corresponding to the previous sub-stage.
[0256] In some embodiments, the adjustment module 4553 is further configured to: when the current sub-stage is the mid-term sub-stage, determine the parameter change between the reference sending parameter of the previous sub-stage and the target sending parameter corresponding to the previous sub-stage; determine the first target change based on the parameter change and a preset first constant; and determine the sum of the reference sending parameter and the first target change as the target sending parameter corresponding to the mid-term sub-stage.
[0257] In some embodiments, the adjustment module 4553 is further configured to: when the current sub-stage is the later sub-stage, determine a second target change based on a preset second constant and a parameter change; and determine the difference between the reference sending parameter of the later sub-stage and the second target change as the target sending parameter corresponding to the later sub-stage.
[0258] In some embodiments, the adjustment module 4553 is further configured to: obtain the historical message sending volume corresponding to each historical transmission stage completed during the network transmission process; use each historical message sending volume to determine the predicted message volume of the to-be-transmitted stage; obtain the transmission message volume that has been transmitted in the to-be-transmitted stage, and determine the ratio of the transmission message volume to the predicted message volume; when the ratio is less than a preset first proportion, determine that the current sub-stage of the to-be-transmitted stage is an early sub-stage; when the ratio is greater than the first proportion and less than a preset second proportion, determine that the current sub-stage of the to-be-transmitted stage is a mid-term sub-stage, wherein the first proportion is less than the second proportion; when the ratio is greater than the second proportion, determine that the current sub-stage of the to-be-transmitted stage is a late sub-stage.
[0259] In some embodiments, the first determination module 4552 is further configured to: obtain a preset utility function; use the utility function to evaluate and process the various historical network status information to obtain various historical utility values; and determine the current adjustment weight based on the various historical utility values.
[0260] In some embodiments, the first determination module 4552 is further configured to: for each historical network status information, obtain the historical packet loss rate, historical throughput and historical round-trip delay from the historical network status information; determine the historical transmission rate based on the historical packet loss rate, and determine the product of the historical transmission rate and the throughput as the historical transmission volume; determine the ratio of the historical transmission volume to the historical round-trip delay as the historical utility value corresponding to the historical network status information.
[0261] In some embodiments, the first determination module 4552 is further configured to: determine the utility value change rate using the various historical utility values; determine the historical adjustment direction and historical adjustment weight of the previous transmission stage based on the various historical network status information; determine the current adjustment weight based on the utility value change rate, the change rate threshold, the historical adjustment direction and the historical adjustment weight.
[0262] In some embodiments, the change rate threshold includes a first threshold and a second threshold, the first threshold is less than the second threshold, and the first determination module 4552 is further configured to: when the utility value change rate is greater than or equal to the first threshold and less than or equal to the second threshold, determine the historical adjustment weight as the current adjustment weight; when the utility value change rate is less than the first threshold, determine the opposite direction of the historical adjustment direction as the current adjustment direction; based on the current adjustment direction and the preset adjustment step, update the historical adjustment weight to obtain the current adjustment weight; when the utility value change rate is greater than the second threshold, update the historical adjustment weight based on the historical adjustment direction and the preset adjustment step to obtain the current adjustment weight.
[0263] In some embodiments, the transmission control device 455 also includes: a second acquisition module, configured to obtain the actual total amount of messages and the predicted total amount of messages of M consecutive historical transmission stages before the stage to be transmitted, where M is a positive integer; a third acquisition module, configured to obtain the total difference in sending rates of the M historical transmission stages when the actual total amount of messages and the predicted total amount of messages are different; an increase module, configured to increase the target sending rate of the mid-term sub-stage of the stage to be transmitted by the total sending rate difference when the total sending rate difference is greater than the difference threshold; a decrease module, configured to reduce the target sending rate of the early sub-stage of the stage to be transmitted by the sending rate difference when the total sending rate difference is less than the difference threshold.
[0264] The present invention provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the transmission control method described above in the present invention.
[0265] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored therein. When the executable instructions are executed by a processor, the processor will execute the transmission control method provided by an embodiment of the present application, for example, the transmission control method shown in Figures 4, 10 and 13.
[0266] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or various devices including one or any combination of the above memories.
[0267] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0268] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0269] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0270] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A transmission control method, applied to a computer device, the method comprising: Obtain historical network status information of each historical transmission stage completed during the network transmission process; Determine the current adjustment weight for the sending parameter based on each historical network status information; When the network transmission process enters the waiting-for-transmission stage from the intermittent stage, obtaining the reference transmission parameters of the waiting-for-transmission stage, and adjusting the reference transmission parameters by using the current adjustment weight to obtain the target transmission parameters; The target sending parameters are used to perform data transmission in the waiting-for-transmission stage.
2. The method according to claim 1, wherein: The obtaining of the reference transmission parameter of the to-be-transmitted stage, and adjusting the reference transmission parameter by using the current adjustment weight to obtain the target transmission parameter, includes: Determine the current sub-stage of the to-be-transmitted stage, wherein the current sub-stage is one of an early sub-stage, a middle sub-stage, and a late sub-stage; Obtaining reference sending parameters of the current sub-phase; According to the current adjustment weight, the reference sending parameter of the current sub-phase is adjusted to obtain the target sending parameter corresponding to the current sub-phase.
3. The method according to claim 2, wherein: The step of adjusting the reference transmission parameter of the current sub-phase according to the current adjustment weight to obtain the target transmission parameter corresponding to the current sub-phase includes: When the current sub-stage is the previous sub-stage, the reference transmission parameters of the previous sub-stage are weighted based on the current adjustment weights to obtain target transmission parameters corresponding to the previous sub-stage.
4. The method according to claim 3, wherein: The step of adjusting the reference transmission parameter of the current sub-phase according to the current adjustment weight to obtain the target transmission parameter corresponding to the current sub-phase includes: When the current sub-stage is the mid-stage, determining a parameter change amount between a reference transmission parameter of the early stage and a target transmission parameter corresponding to the early stage; Determining a first target change amount based on the parameter change amount and a preset first constant, where the first constant is a real number greater than 1; The sum of the reference sending parameter of the mid-term sub-phase and the first target change amount is determined as the target sending parameter corresponding to the mid-term sub-phase.
5. The method according to claim 4, wherein: The step of adjusting the reference transmission parameter of the current sub-stage according to the adjustment weight to obtain the target transmission parameter corresponding to the current sub-stage includes: When the current sub-stage is the late sub-stage, determining a second target change amount based on a preset second constant and the parameter change amount, the preset second constant being smaller than the first preset constant; The difference between the reference transmission parameter of the later sub-stage and the second target change amount is determined as the target transmission parameter corresponding to the later sub-stage.
6. The method according to claim 2, wherein: The determining the current sub-phase of the to-be-transmitted phase includes: Obtain the historical message sending volume corresponding to each historical transmission stage completed during the network transmission process; Determine the predicted message volume in the waiting transmission stage by using each historical message sending volume; Acquire the amount of transmitted messages in the waiting-for-transmission stage, and determine the ratio of the transmitted message amount to the predicted message amount; When the ratio is less than a preset first ratio, determining that the current sub-stage of the to-be-transmitted stage is an early sub-stage; When the ratio is greater than the first proportion and less than a preset second proportion, determining that the current sub-stage of the waiting-for-transmission stage is a mid-stage, wherein the first proportion is less than the second proportion; When the ratio is greater than the second proportion, it is determined that the current sub-stage of the waiting transmission stage is a late sub-stage. stage.
7. The method according to any one of claims 1 to 6, wherein: The determining the current adjustment weight for the sending parameter based on each historical network status information includes: Get the preset utility function; Using the utility function to evaluate each piece of historical network status information, to obtain each historical utility value; The current adjustment weight is determined based on the various historical utility values.
8. The method according to claim 7, wherein: The using the utility function to evaluate and process each historical network status information to obtain each historical utility value includes: For each piece of historical network status information, obtain a historical packet loss rate, a historical throughput, and a historical round-trip delay from the historical network status information; Based on the historical packet loss rate, determine a historical transmission rate, and determine the product of the historical transmission rate and the throughput as the historical transmission amount; The ratio of the historical transmission volume to the historical round-trip delay is determined as the historical utility value corresponding to the historical network status information.
9. The method according to claim 7, wherein: The determining the current adjustment weight based on the respective historical utility values includes: Determining a utility value change rate using each of the historical utility values; Based on the various historical network status information, determine the historical adjustment direction and historical adjustment weight of the previous transmission stage; The current adjustment weight is determined based on the utility value change rate, the change rate threshold, the historical adjustment direction and the historical adjustment weight.
10. The method according to claim 9, wherein: The change rate threshold includes a first threshold and a second threshold, the first threshold is less than the second threshold, and the determining the current adjustment weight based on the utility value change rate, the change rate threshold, the historical adjustment direction and the historical adjustment weight includes: When the utility value change rate is greater than or equal to the first threshold and less than or equal to the second threshold, determining the historical adjustment weight as the adjustment weight; When the utility value change rate is less than the first threshold, determining the opposite direction of the historical adjustment direction as the current adjustment direction; based on the current adjustment direction and the preset adjustment step, updating the historical adjustment weight to obtain the current adjustment weight; When the utility value change rate is greater than the second threshold, the historical adjustment weight is updated based on the historical adjustment direction and the preset adjustment step to obtain the current adjustment weight.
11. The method according to any one of claims 2 to 6, wherein: The target transmission parameter includes a target transmission rate, and the method further includes: Obtaining the actual total amount of messages and the predicted total amount of messages in M consecutive historical transmission stages before the to-be-transmitted stage, where M is a positive integer; When the actual total amount of packets is different from the predicted total amount of packets, obtaining a total difference in the sending rates of the M historical transmission stages; When the total difference in the sending rates is greater than the difference threshold, increasing the target sending rate of the mid-term sub-stage of the waiting-for-transmission stage by the total difference in the sending rates; When the total difference in sending rates is less than the difference threshold, the target sending rate of the early sub-stage of the waiting-for-transmission stage is reduced by the sending rate difference.
12. A transmission control device, comprising: The first acquisition module is configured to acquire the historical network information of each historical transmission stage completed during the network transmission process. Network status information; A first determination module is configured to determine the current adjustment weight for the sending parameter based on each historical network status information; an adjustment module, configured to, when the network transmission process enters a waiting-for-transmission stage from an intermittent stage, obtain a reference transmission parameter of the waiting-for-transmission stage, and adjust the reference transmission parameter using the current adjustment weight to obtain a target transmission parameter; The transmission module is configured to perform data transmission using the target sending parameters during the waiting-for-transmission phase.
13. A computer device, comprising: Memory for storing computer programs or computer executable instructions; A processor, configured to implement the transmission control method according to any one of claims 1 to 11 when executing a computer program or computer executable instructions stored in the memory.
14. A computer-readable storage medium storing a computer program or a computer-executable instruction, wherein the computer program or the computer-executable instruction, when executed by a processor, implements the transmission control method according to any one of claims 1 to 11.
15. A computer program product, comprising a computer program or a computer executable instruction, wherein the computer program or the computer executable instruction, when executed by a processor, implements the transmission control method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Transmission rate determination method and device, equipment and storage medium
CN110401511A
Link congestion fault prediction and network autonomous management and control method based on machine learning
CN113114582A
Transmission control method, device and equipment and computer readable storage medium
CN116170379A
Mobile ad hoc network providing power control and associated methods
US20220264474A1
Cited By
Instruction issuing method and device, electronic equipment and storage medium
CN119520563A
Processing system for realizing missile parameter binding switching based on launching control equipment
CN119803184A
Video transmission delay prediction method, electronic equipment and computer readable storage medium
CN120034698A
Multi-mode video data compression and transmission method
CN120091137A
Data file transmission method and device
CN120856693A
