Method and device for determining receiving code rate, electronic equipment and computer readable medium

By calculating the sum of the time it takes for the receiving end to receive data packets and the time period, and combining the amount of data, the receiving code rate is accurately calculated, which solves the problem of high receiving code rate caused by accumulation of network delays, and improves the accuracy of bandwidth estimation in communication and user experience.

CN118694690APending Publication Date: 2024-09-24DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310288266.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

During the communication process, the received code rate is estimated to be too high due to accumulation of network delays, which in turn affects the accuracy of data such as bandwidth, leading to deterioration of the network environment and degradation of user experience.

Method used

By determining the sum of the first time consuming for the receiving end to receive multiple data packets and the time period associated with the last data packet, that is, the second time consuming, combined with the total amount of data carried by the data packet, the receiving code rate is accurately calculated, taking into account the network Delay accumulation, correct the problem of high receiving bit rate.

Benefits of technology

It achieves accurate determination of the received bit rate, corrects errors in bandwidth estimation, avoids deterioration of the network environment and audio and video freezes, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694690A
    Figure CN118694690A
Patent Text Reader

Abstract

The embodiment of the invention provides a method and device for determining a receiving code rate, electronic equipment and a computer readable medium, and the method comprises the steps: determining first consumed time for a receiving end to receive a plurality of data packets, the first time consumption is a time difference between the time when the receiving end receives the last data packet in the plurality of data packets and the time when the receiving end receives the first data packet; determining a time period associated with the last data packet; determining the sum of the first time consumption and the time period associated with the last data packet as second time consumption; and determining a receiving code rate according to the total data volume carried by the plurality of data packets and the second consumed time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and computer-readable medium for determining a receiving code rate. Background Art

[0002] In the field of communications, the receiving code rate of a data packet is an important parameter and the basis for calculating a variety of important data. For example, it can be used to estimate the bottleneck bandwidth of a link. Therefore, the determination of the receiving code rate is of great significance. In related technologies, the receiving code rate is estimated based on the amount of data sent in multiple data transmissions, the time of data transmission and data reception.

[0003] There may be bandwidth bottlenecks in the network forwarding link, and there may be network delay accumulation. At this time, the router will forward data packets according to the forwarding bandwidth capacity and the scheduled time slice during scheduling. However, because only data packets are forwarded in the intermediate link during real-time communication, it will cause excessive occupation of the forwarding time slice when sending a certain data packet. At this time, the received code rate estimated according to the above-mentioned related technologies is too high, which leads to low estimation accuracy of important data such as bandwidth. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and computer-readable medium for determining a received code rate, which can accurately determine the received code rate.

[0005] To solve the above technical problems, the embodiments of the present application are implemented through the following aspects.

[0006] In a first aspect, an embodiment of the present application provides a method for determining a receiving code rate, comprising: determining a first time consumption for a receiving end to receive multiple data packets, the first time consumption being the time difference between the time when the receiving end receives a last data packet among the multiple data packets and the time when the first data packet is received; determining a time period associated with the last data packet; determining the sum of the first time consumption and the time period associated with the last data packet as a second time consumption; and determining the receiving code rate based on the total amount of data carried by the multiple data packets and the second time consumption.

[0007] In second aspect, an embodiment of the present application provides a device for determining a receiving code rate, comprising: a first determination module, used to determine a first time consumption for a receiving end to receive multiple data packets, the first time consumption being the time difference between the time when the receiving end receives the last data packet of the multiple data packets and the time when the first data packet is received; a second determination module, used to determine a time period associated with the last data packet; a compensation module, used to determine the sum of the first time consumption and the time period associated with the last data packet as a second time consumption; and a third determination module, used to determine the receiving code rate based on the total amount of data carried by the multiple data packets and the second time consumption.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the method for determining the received bit rate described in the first aspect above.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store computer-executable instructions. When the computer-executable instructions are executed by a processor, the method for determining the received bit rate described in the first aspect is implemented.

[0010] In an embodiment of the present application, by determining a first time consumption for a receiving end to receive multiple data packets, the first time consumption is the time difference between the time when the receiving end receives the last data packet among the multiple data packets and the time when the first data packet is received; determining a time period associated with the last data packet; determining the sum of the first time consumption and the time period associated with the last data packet as a second time consumption; and determining a receiving bit rate based on the total amount of data carried by the multiple data packets and the second time consumption, the receiving bit rate can be accurately determined by taking into account network delay accumulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0012] Figure 1a A schematic diagram showing a flow chart of a method for determining a receiving code rate provided in an embodiment of the present application;

[0013] Figure 1b A schematic diagram for sending a data packet;

[0014] Figure 1c Another schematic diagram for sending a data packet;

[0015] Figure 2 Another flowchart of a method for determining a receiving code rate provided in an embodiment of the present application is shown;

[0016] Figure 3 Another flowchart of a method for determining a receiving code rate provided in an embodiment of the present application is shown;

[0017] Figure 4 A schematic diagram showing the structure of a device for determining a receiving code rate provided in an embodiment of the present application is shown;

[0018] Figure 5 A schematic diagram of the hardware structure of an electronic device for executing a method for determining a receiving code rate provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0020] Figure 1a A flow chart of a method for determining a received bit rate provided by an embodiment of the present application is shown, and the method can be performed by an electronic device, such as a terminal device or a server device. In other words, the method can be performed by software or hardware installed in the terminal device or the server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. As shown in the figure, the method may include the following steps.

[0021] Step S101: determining a first time consumed by a receiving end to receive a plurality of data packets.

[0022] The first time consumption is the time difference between the time when the receiving end receives the last data packet among the multiple data packets and the time when the receiving end receives the first data packet. Figure 1b For a schematic diagram of sending a data packet, see Figure 1bAs shown, taking three data packets with data volumes of D1, D2, and D3 as an example, for ease of description, the three data packets are referred to as D1, D2, and D3 below. The sender sends data packets D1, D2, and D3 at T_s1, T_s2, and T_s3, respectively, where T_s1<T_s2<T_s3. The router forwards data packets D1, D2, and D3 at T_rs1, T_rs2, and T_rs3, respectively, and the receiving time when the receiving end receives the three data packets is T_r1, T_r2, and T_r3, respectively. The receiving time when the receiving end receives multiple data packets refers to the time when the receiving end receives the data packet. The last data packet among the multiple data packets is D3, the first data packet is D1, and the first time consumption is T_r3-T_r1.

[0023] The related solution can determine the receiving code rate according to the amount of data carried by the multiple data packets and the receiving time of the multiple data packets. Specifically, the receiving code rate can be calculated according to formula (1).

[0024] Received code rate = (D1 + D2 + D3) / (T_r3 - T_r1) (1)

[0025] However, in the actual data packet transmission process, there will be network delays, such as Figure 1b As shown in the figure, the waiting time (wait time) indicates the network delay. At this time, the received bit rate calculated according to formula (1) is too high, which leads to inaccurate estimation of other parameters, such as the estimated bottleneck bandwidth is higher than the actual bottleneck bandwidth. This may continue to deteriorate the network environment, thereby causing increased audio and video delays and audio and video freezes in real-time communications, resulting in a poor user experience.

[0026] Step S102: Determine a time period associated with the last data packet.

[0027] The time period associated with the last data packet D3 may be, for example Figure 1b The transmission delay predict_delay of the last data packet D3 in .

[0028] Step S103: Determine the sum of the first time consumption and the time period associated with the last data packet as the second time consumption.

[0029] For example, the first time consumption was originally T_r3-T_r1, and the second time consumption may be, for example, T_r3-T_r1+predict_delay.

[0030] Step S104: determining a receiving code rate according to a total amount of data carried by the multiple data packets and the second time consumption.

[0031] The receiving code rate represents the number of bytes received per unit time. Specifically, according to the data volume D1, D2, D3 of the data packet and the compensated receiving time T_r3-T_r1+predict_delay, the receiving code rate can be calculated by formula (2).

[0032] Received code rate = (D1 + D2 + D3) / (T_r3 - T_r1 + predict_delay) (2)

[0033] The data volumes D1, D2, and D3 are relatively certain, and the compensated receiving time takes into account the delay of network transmission, so that the received bit rate obtained is more accurate.

[0034] A method for determining a receiving code rate provided by an embodiment of the present invention comprises determining a first time consumption for a receiving end to receive multiple data packets, wherein the first time consumption is the time difference between the time when the receiving end receives the last data packet among the multiple data packets and the time when the first data packet is received; determining a time period associated with the last data packet; determining the sum of the first time consumption and the time period associated with the last data packet as a second time consumption; and determining the receiving code rate based on the total amount of data carried by the multiple data packets and the second time consumption. This method can solve the problem of a high receiving code rate estimated by related technologies, and accurately determine the receiving code rate by taking into account network delay accumulation.

[0035] Figure 2 Another flow chart of a method for determining a receiving code rate provided in an embodiment of the present application is shown. As shown in the figure, the method may include the following steps.

[0036] Step S201: Determine a first time consumed by a receiving end to receive a plurality of data packets.

[0037] This step uses Figure 1a The description of the corresponding steps of the embodiment will not be repeated here.

[0038] Step S2021: Determine the first time difference.

[0039] Specifically, a first time difference between the receiving end receiving the second data packet and the receiving end receiving the last data packet is determined. The time when the receiving end receives the second data packet D4 is T_r4, and the second data packet D4 is the next data packet transmitted after the multiple data packets D1, D2, and D3. The time when the receiving end receives the last data packet D3 is T_r3. The first time difference between the two is T_r4-T_r3.

[0040] Step S2022: Determine the second time difference.

[0041] Specifically, the second time difference between the second data packet and the last data packet is determined. The time when the second data packet D4 is sent by the sender is T_rs4, and the time when the last data packet D3 is sent by the sender is T_rs3, and the second time difference between the two is T_rs4-T_rs3.

[0042] Step S2023: Determine the time period associated with the last data packet according to the first time difference and the second time difference.

[0043] The first time difference between the receiving end receiving the last data packet and receiving the second data packet is T_r4-T_r3, the second time difference between the sending end sending the last data packet and sending the second data packet is T_rs4-T_rs3, and the time period associated with the last data packet can be the difference between the second time difference and the first time difference, that is, (T_r4-T_r3)-(T_rs4-T_rs3).

[0044] Step S203: Determine the sum of the first time consumption and the time period associated with the last data packet as the second time consumption.

[0045] Step S204: determining a receiving code rate according to a total amount of data carried by the multiple data packets and the second time consumption.

[0046] Steps S203-S204 adopt Figure 1a The description of the corresponding steps of the embodiment will not be repeated here.

[0047] Take the link bottleneck bandwidth of 500kbps and the number of bytes of D3 of 1000bytes as an example. Because the amount of data forwarded at time T_rs3 exceeds 937.5bytes, it takes at least 937.5*8 / 500*1000 / 1000=15ms to forward the next data packet. As shown in the figure, even if D4 arrives at the router at time T_r4, the router needs to wait at least 15ms to recover the amount of data that exceeds the budget for forwarding the D3 data packet at time T_rs3. The D4 data packet is actually sent at time T_rs4 and arrives at the receiving end at time T_r4. The receiving time interval (T_r4-T_r3) between D3 and D4 is greater than its sending time interval (Ts_4-Ts_3), that is, the relative network delay (T_r4-T_r3)-(Ts_4-Ts_3) between the two data packets D3 and D4 is determined in step S202, which is the transmission delay introduced by D3 forwarding the amount of data that exceeds the budget. Assuming that the amount of data forwarded at time D3 does not exceed the forwarding budget, the receiving time interval (T_r4-T_r3) between D3 and D4 is equal to its sending time interval (Ts_4-Ts_3), that is, the relative network delay between the two data packets D3 and D4 is 0, that is, (T_r4-T_r3)-(Ts_4-Ts_3) = 0. In step S203, the relative network delay introduced between D3 and D4 needs to be compensated to the time slice of D3 data packet forwarding. In step S204, the receiving code rate is determined according to the amount of data carried by the multiple data packets and the compensated receiving time.

[0048] An embodiment of the present invention provides a method for determining a receiving code rate, by determining a first time difference between when the receiving end receives a second data packet and when the receiving end receives the last data packet, wherein the second data packet is the next data packet transmitted after the multiple data packets; determining a second time difference between when the transmitting end sends the second data packet and when the transmitting end sends the last data packet; and determining a time period associated with the last data packet based on the first time difference and the second time difference, thereby accurately determining the time period of the data packet associated with the last data packet.

[0049] Figure 3 Another flow chart of a method for determining a receiving code rate provided in an embodiment of the present application is shown. As shown in the figure, the method may include the following steps.

[0050] Step S301: Determine a first time consumed by a receiving end to receive a plurality of data packets.

[0051] This step uses Figure 1a The description of the corresponding steps of the embodiment will not be repeated here.

[0052] Step S3021: Determine the third time difference.

[0053] Specifically, determine the third time difference between the first data packet transmitted in the second time window and the last data packet transmitted in the first time window received by the receiving end. The first time window is a time period of predetermined duration or a time period supporting data transmission of a predetermined amount of data. The time period of predetermined duration may be, for example, 10 milliseconds (ms), 20 ms, etc. The time period supporting data transmission of a predetermined amount of data, for example, supports data transmission of 1024 megabytes (MB) of data in this time period. The second time window is the next time window after the first time window, for example, the second time window may also support data transmission of 1024 megabytes (MB) of data. The amount of data supported by the second time window and the first time window may be the same.

[0054] Figure 1c For another schematic diagram of sending data packets, see Figure 1c The time when the receiving end receives the first data packet transmitted in the second time window is Tr_next, and the time when the receiving end receives the last data packet transmitted in the first time window is Tr_end. The third time difference between the two is Tr_next-Tr_end.

[0055] Step S3022: Determine the fourth time difference.

[0056] Specifically, a fourth time difference between the first data packet transmitted in the second time window and the last data packet transmitted in the first time window is determined. The time when the transmitting end sends the first data packet transmitted in the second time window is Ts_next, and the time when the transmitting end sends the last data packet transmitted in the first time window is Ts_end. The fourth time difference between the two is Ts_next-Ts_end.

[0057] Step S3023: Determine the time period associated with the last data packet according to the third time difference and the fourth time difference.

[0058] The third time difference is Tr_next-Tr_end, the fourth time difference is Ts_next-Ts_end, and the time period associated with the last data packet may be the difference between the fourth time difference and the third time difference, ie (Tr_next-Tr_end)-(Ts_next-Ts_end).

[0059] Step S303: Determine the sum of the first time consumption and the time period associated with the last data packet as the second time consumption.

[0060] Step S304: Determine a receiving code rate according to the total amount of data carried by the multiple data packets and the second time consumption.

[0061] Steps S303-S304 adopt Figure 1a The description of the corresponding steps of the embodiment will not be repeated here.

[0062] In one implementation, the received code rate may be used as a basis for calculating other parameters, for example, bandwidth estimation may be performed based on the received code rate.

[0063] The bandwidth estimated by the bandwidth estimation is positively correlated with the received bit rate. Bandwidth represents the transmission capacity, not the actual transmission speed. The received bit rate represents the actual transmission speed. The actual transmission speed is positively correlated with the estimated bandwidth, so that the faster the actual transmission speed, the higher the bottleneck bandwidth estimated by the bandwidth estimation.

[0064] Thus, the compensated receiving bit rate is used to correct the error of bandwidth estimation, correctly estimate the current network bottleneck, solve the problem of high receiving bit rate estimation caused by forwarding data packets exceeding the forwarding budget size when there is a network bottleneck in the related technology, and avoid technical problems such as network environment deterioration, audio and video freeze caused by overestimation of link bottleneck bandwidth. The bandwidth estimation of the embodiment of the present application can be used in various scenarios such as video conferencing, education, interactive entertainment, games, etc., especially in real-time communication (RTC) technology used in these scenarios.

[0065] A method for determining a receiving code rate provided by an embodiment of the present invention comprises determining a first time consumption for a receiving end to receive multiple data packets, wherein the first time consumption is the time difference between the time when the receiving end receives the last data packet among the multiple data packets and the time when the receiving end receives the first data packet; determining a time period associated with the last data packet; determining the sum of the first time consumption and the time period associated with the last data packet as a second time consumption; determining a receiving code rate based on a total amount of data carried by the multiple data packets and the second time consumption, and performing bandwidth estimation based on the receiving code rate, thereby accurately estimating the bandwidth of a network link.

[0066] Figure 4 A schematic structural diagram of a device for determining a bit rate provided in an embodiment of the present application is shown. The device 400 includes: a first determination module, a second determination module 420, a compensation module 430 and a third determination module 440.

[0067] The first determination module 410 is used to determine a first time consumption for a receiving end to receive multiple data packets, wherein the first time consumption is the time difference between the time when the receiving end receives the last data packet among the multiple data packets and the time when the receiving end receives the first data packet; the second determination module 420 is used to determine a time period associated with the last data packet; the compensation module 430 is used to determine the sum of the first time consumption and the time period associated with the last data packet as the second time consumption; the third determination module 440 is used to determine the receiving bit rate based on the total amount of data carried by the multiple data packets and the second time consumption.

[0068] In one possible implementation, the second determination module 420 is also used to determine a first time difference between the receiving end receiving a second data packet and receiving the last data packet, wherein the second data packet is the next data packet transmitted after the multiple data packets; determine a second time difference between the sending end sending the second data packet and sending the last data packet; and determine a time period associated with the last data packet based on the first time difference and the second time difference.

[0069] In a possible implementation, the second determining module 420 is configured to determine a difference between the second time difference and the first time difference as a time period associated with the last data packet.

[0070] In one possible implementation, the second determination module 420 is also used to determine a third time difference between a first data packet transmitted in a second time window and a last data packet transmitted in a first time window received by the receiving end, wherein the first time window is a time period of a predetermined length or a time period supporting data transmission of a predetermined amount of data, and the second time window is a next time window after the first time window; determine a fourth time difference between a first data packet transmitted in the second time window and a last data packet transmitted in the first time window sent by the sending end; and determine a time period associated with the last data packet based on the third time difference and the fourth time difference.

[0071] In a possible implementation, the second determining module 420 is configured to determine a difference between the fourth time difference and the third time difference as a time period associated with the last data packet.

[0072] In a possible implementation, the apparatus 400 for determining a code rate further includes a bandwidth estimation module, which is configured to perform bandwidth estimation according to the received code rate after the received code rate is determined.

[0073] In a possible implementation manner, the bandwidth estimated by the bandwidth estimation is positively correlated with the receiving code rate.

[0074] The device 400 provided in the embodiment of the present application can execute the various methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be repeated here.

[0075] Figure 5 A hardware structure diagram of an electronic device 500 for executing the data processing method provided in an embodiment of the present application is shown. Referring to the figure, at the hardware level, the electronic device includes a processor 510, and optionally, an internal bus 520, a network interface 530, and a memory. Among them, the memory may include a memory 540, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory) 550, such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0076] The processor 510, the network interface 530 and the memory may be connected to each other via an internal bus 520, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0077] The memory is used to store programs. Specifically, the program may include program codes, and the program codes include computer operation instructions. The memory may include a memory 540 and a non-volatile memory 550, and provide instructions and data to the processor 510.

[0078] The processor 510 reads the corresponding computer program from the non-volatile memory 550 into the memory 540 and then runs it, forming a device for locating the target user at the logical level. The processor 510 executes the program stored in the memory and is specifically used to execute Figure 1a , Figure 2 and Figure 3 The method described in the embodiment achieves the same or corresponding technical effects.

[0079] The above application Figure 1a , Figure 2 and Figure 3The method disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor 510. The processor 510 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 510. The above processor 510 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 510 reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0080] The electronic device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.

[0081] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0082] An embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device performs the following operations: determining the reception time of multiple data packets received by the receiving end; determining the transmission delay corresponding to the last data packet in the multiple data packets according to the transmission order of the multiple data packets; compensating the reception time according to the transmission delay to obtain the compensated reception time; determining the reception code rate according to the amount of data carried by the multiple data packets and the compensated reception time.

[0083] The electronic device can also execute the methods described in the above method embodiments and realize the functions and beneficial effects of the methods described in the above method embodiments, which will not be repeated here. The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0084] Furthermore, an embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the following process is implemented: determining the receiving time of a receiving end receiving multiple data packets; determining the transmission delay corresponding to the last data packet in the multiple data packets according to the transmission order of the multiple data packets; compensating the receiving time according to the transmission delay to obtain a compensated receiving time; determining the receiving code rate according to the amount of data carried by the multiple data packets and the compensated receiving time.

[0085] When the program instructions are executed by a computer, the various methods described in the foregoing method embodiments are implemented, and the functions and beneficial effects of the various methods described in the foregoing method embodiments are implemented, which will not be repeated here. In short, the above is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included in the scope of protection of the present application.

[0086] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0087] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0088] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0089] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A method for determining a receiving code rate, comprising: Determine a first time taken by a receiving end to receive a plurality of data packets, wherein the first time taken is a time difference between a time when the receiving end receives a last data packet among the plurality of data packets and a time when the receiving end receives a first data packet; determining a time period associated with the last data packet; Determine the sum of the first time consumption and the time period associated with the last data packet as the second time consumption; A receiving code rate is determined according to a total amount of data carried by the multiple data packets and the second time consumption.

2. The method according to claim 1, wherein: Determining a time period associated with the last data packet, comprising: Determine a first time difference between the receiving end receiving a second data packet and receiving the last data packet, wherein the second data packet is a next data packet transmitted after the plurality of data packets; Determine a second time difference between the sending end sending the second data packet and sending the last data packet; A time period associated with the last data packet is determined based on the first time difference and the second time difference.

3. The method according to claim 2, wherein: Determining a time period associated with the last data packet according to the first time difference and the second time difference includes: The difference between the second time difference and the first time difference is determined as a time period associated with the last data packet.

4. The method according to claim 1, wherein: Determining a time period associated with the last data packet, comprising: Determine a third time difference between a first data packet transmitted in a second time window and a last data packet transmitted in a first time window received by the receiving end, wherein the first time window is a time period of a predetermined length or a time period supporting data transmission of a predetermined amount of data, and the second time window is a next time window after the first time window; Determine a fourth time difference between a first data packet transmitted in the second time window and a last data packet transmitted in the first time window sent by the transmitting end; A time period associated with the last data packet is determined based on the third time difference and the fourth time difference.

5. The method according to claim 4, wherein: Determining a time period associated with the last data packet according to the third time difference and the fourth time difference includes: The difference between the fourth time difference and the third time difference is determined as a time period associated with the last data packet.

6. The method according to claim 1, wherein: After determining the receiving code rate, the method further includes: Bandwidth estimation is performed according to the received code rate.

7. The method according to claim 6, wherein: The bandwidth estimated by the bandwidth estimation is positively correlated with the receiving bit rate.

8. A device for determining a receiving code rate, comprising: A first determining module, used to determine a first time taken by a receiving end to receive a plurality of data packets, wherein the first time taken is a time difference between a time when the receiving end receives a last data packet among the plurality of data packets and a time when the receiving end receives a first data packet; A second determining module, configured to determine a time period associated with the last data packet; A compensation module, configured to determine a sum of the first time consumption and a time period associated with the last data packet as a second time consumption; The third determination module is used to determine the receiving code rate according to the total amount of data carried by the multiple data packets and the second time consumption.

9. The apparatus according to claim 8, wherein the second determining module is further configured to: Determine a first time difference between the receiving end receiving the second data packet and receiving the last data packet, wherein: The second data packet is a next data packet transmitted after the plurality of data packets; Determine a second time difference between the sending end sending the second data packet and sending the last data packet; A time period associated with the last data packet is determined based on the first time difference and the second time difference.

10. The device according to claim 9, wherein: The second determining module is used for: The difference between the second time difference and the first time difference is determined as a time period associated with the last data packet.

11. The device according to claim 8, wherein the second determining module is further configured to: Determine a third time difference between the first data packet transmitted in the second time window and the last data packet transmitted in the first time window received by the receiving end, wherein: The first time window is a time period of a predetermined length or a time period supporting data transmission of a predetermined amount of data, and the second time window is a next time window after the first time window; Determine a fourth time difference between a first data packet transmitted in the second time window and a last data packet transmitted in the first time window sent by the transmitting end; A time period associated with the last data packet is determined based on the third time difference and the fourth time difference.

12. The method according to claim 11, wherein: The second determining module is used for: The difference between the fourth time difference and the third time difference is determined as a time period associated with the last data packet.

13. The device according to claim 8, further comprising a bandwidth estimation module, configured to perform bandwidth estimation according to the received code rate after the received code rate is determined.

14. The device according to claim 8, wherein the bandwidth estimated by the bandwidth estimation is positively correlated with the received bit rate.

15. An electronic device, comprising: processor; as well as A memory configured to store computer executable instructions, wherein when the executable instructions are executed, the processor is used to perform the method for determining a received code rate according to any one of claims 1 to 7.

16. A computer-readable medium storing one or more programs, which, when executed by an electronic device, enables the electronic device to execute the method for determining a received code rate according to any one of claims 1 to 7.