Bandwidth detection method, device, equipment and medium

By evaluating the bandwidth of the network link and judging the bandwidth rise state, and allocating bandwidth to forward error correction packets, the packet loss problem caused by bandwidth detection is solved, and the reliability and user experience of data transmission are improved.

CN119109834APending Publication Date: 2024-12-10SHENZHEN ONETHING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411500666.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

During data transmission, network congestion and packet loss caused by bandwidth detection affects the user experience, and it is difficult for the prior art to effectively avoid data loss caused by packet loss.

Method used

By evaluating the current bandwidth and total transmission bandwidth of the network link, we can determine whether the bandwidth is in the rising state. If it is in the rising state, the evaluation bandwidth is used as the new total transmission bandwidth, and the bandwidth outside the effective data bandwidth is allocated to forward error correction Packet, enables the total transmission bandwidth to transmit data in a saturated state, and the effective data bandwidth is consistent with the last data transmission. If no abnormality occurs in data transmission, the effective data bandwidth will be improved.

Benefits of technology

It effectively avoids packet loss caused by bandwidth detection, reduces the packet loss rate of effective data, and ensures the reliability and user experience of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109834A_ABST
    Figure CN119109834A_ABST
Patent Text Reader

Abstract

The invention discloses a bandwidth detection method and device, equipment and a medium. The bandwidth detection method comprises the following steps: judging whether a network link is in a bandwidth rising state or not according to the current evaluation bandwidth of the network link and the current total sending bandwidth; and when the network link is in a bandwidth rising state, taking the evaluated bandwidth as a new total sending bandwidth, and allocating bandwidths except the effective data bandwidth to a forward error correction packet, so that the total sending bandwidth performs data sending in a saturated state, the effective data bandwidth is kept consistent with the effective data bandwidth adopted when the data is sent last time; and if the data transmission is not abnormal, the effective data bandwidth is improved. In this way, data loss caused by packet loss generated by bandwidth detection can be avoided, and thus the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a bandwidth detection method, device, equipment and medium. Background Art

[0002] In the scenario of data transmission over the network, it is usually hoped that a larger bandwidth can be used to improve data transmission performance. Therefore, various congestion control algorithms basically provide the function of bandwidth upward detection, that is, when the network situation is judged to be stable or improving, the bandwidth sent is increased, and a higher bandwidth upper limit of the link is expected to be detected. In this process, if the network fluctuates again, or the bandwidth upper limit has not actually increased, upward detection will cause network congestion and even packet loss, resulting in data loss and affecting user experience.

[0003] In summary, how to avoid data loss caused by packet loss during bandwidth detection and improve user experience is an urgent problem to be solved. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a bandwidth detection method, device, equipment and medium, which can avoid data loss caused by packet loss during bandwidth detection, thereby improving user experience. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a bandwidth detection method, comprising:

[0006] Determining whether the network link is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total sending bandwidth;

[0007] When the network link is in a bandwidth increase state, the evaluation bandwidth is used as a new total transmission bandwidth, and bandwidth other than the effective data bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission;

[0008] If no abnormality occurs in data transmission, the effective data bandwidth is increased.

[0009] Optionally, before judging whether the network is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total sending bandwidth, the method further includes:

[0010] Determine whether the packet loss rate of the network link increases. If the packet loss rate does not increase, trigger the step of determining whether the network is in a bandwidth increase state according to the current evaluation bandwidth of the network link and the current total sending bandwidth.

[0011] Optionally, after taking the evaluation bandwidth as a new total transmission bandwidth and allocating bandwidth other than the effective data bandwidth to the forward error correction packet so that the total transmission bandwidth is saturated for data transmission, the method further includes:

[0012] If the packet loss rate increases, it is determined that data transmission is abnormal, and the total transmission bandwidth is reduced.

[0013] Optionally, after taking the evaluation bandwidth as a new total transmission bandwidth and allocating bandwidth other than the effective data bandwidth to the forward error correction packet so that the total transmission bandwidth is saturated for data transmission, the method further includes:

[0014] If it is determined based on the current evaluation bandwidth of the network link and the current total transmission bandwidth that the network link is not in a bandwidth reduction state and the packet loss rate is not increased, it is determined that there is no abnormality in data transmission.

[0015] Optionally, the increasing the effective data bandwidth includes:

[0016] The new total transmission bandwidth is used entirely as effective data bandwidth for data transmission.

[0017] Optionally, after using the new total transmission bandwidth as the effective data bandwidth for data transmission, the method further includes:

[0018] If the packet loss rate increases, the effective data bandwidth is restored to the level before the increase, and the bandwidth other than the effective data bandwidth in the new total transmission bandwidth is allocated to forward error correction packets, so that the total transmission bandwidth is saturated for data transmission.

[0019] Optionally, allocating bandwidth other than effective data bandwidth to the forward error correction packet includes:

[0020] All bandwidth outside of the effective data bandwidth is allocated to forward error correction packets.

[0021] In a second aspect, the present application discloses a bandwidth detection device, comprising:

[0022] A state judgment module, used to judge whether the network link is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total sending bandwidth;

[0023] A data transmission module, configured to use the evaluation bandwidth as a new total transmission bandwidth when the network link is in a bandwidth increase state, and allocate bandwidth other than the effective data bandwidth to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission;

[0024] The bandwidth adjustment module is used to increase the effective data bandwidth if no abnormality occurs in data transmission.

[0025] In a third aspect, the present application discloses an electronic device, including a memory and a processor, wherein:

[0026] The memory is used to store the computer program;

[0027] The processor is used to execute the computer program to implement the aforementioned bandwidth detection method.

[0028] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned bandwidth detection method when executed by a processor.

[0029] It can be seen from the above scheme that the present application provides a bandwidth detection method, including: judging whether the network link is in a bandwidth increase state according to the current evaluation bandwidth of the network link and the current total sending bandwidth; when the network link is in a bandwidth increase state, the evaluation bandwidth is used as the new total sending bandwidth, and the bandwidth outside the effective data bandwidth is allocated to the forward error correction packet, so that the total sending bandwidth is used for data transmission in a saturated state, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission; if there is no abnormality in the data transmission, the effective data bandwidth is increased.

[0030] It can be seen that the beneficial effects of the present application are: when the bandwidth of the network link is in an increasing state, the evaluation bandwidth is used as the new total transmission bandwidth, the effective data bandwidth is consistent with the effective data bandwidth used when the data was sent last time, and an additional forward error correction packet is used to detect the bandwidth. When performing bandwidth detection, the effective data bandwidth is not increased, which reduces the packet loss rate of effective data. Even if the detection fails and packet loss occurs, the packet loss can be recovered based on the added forward error correction packet, so as not to affect the transmission of effective data. In this way, data loss caused by packet loss caused by bandwidth detection can be avoided, thereby improving the user experience.

[0031] Correspondingly, a bandwidth detection device, equipment and readable storage medium provided by the present application also have the above technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0033] Figure 1 A flow chart of a bandwidth detection method provided in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of a state transition of bandwidth detection provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of the structure of a bandwidth detection device provided in an embodiment of the present application;

[0036] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] At present, the existing bandwidth upward detection function increases the bandwidth of the sent data when it is judged that the network situation is stable or improving, and is expected to detect a higher bandwidth limit of the network link. In this process, if the network fluctuates again, or the bandwidth limit is not actually increased, the upward detection will cause network congestion and even packet loss, resulting in data loss and affecting the user experience. To this end, the present application provides a bandwidth detection solution that can avoid data loss caused by packet loss caused by bandwidth detection, thereby improving the user experience.

[0039] See also Figure 1 As shown, the embodiment of the present application discloses a bandwidth detection method, including:

[0040] Step S11: judging whether the network link is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total sending bandwidth.

[0041] Among them, the network link can be understood as a link that transmits data through the network, and the data transmitted by the network link includes but is not limited to media data, and the media data may include audio and / or video data. For example, game screens and game audio in cloud games, etc. The evaluation bandwidth can be understood as the real-time bandwidth obtained by evaluating the network link based on a preset bandwidth evaluation algorithm. The preset bandwidth evaluation algorithm can be a congestion control algorithm or other algorithm that can evaluate the implementation bandwidth of the network link. The preset bandwidth comment algorithm can be triggered based on preset conditions, such as timing conditions or event conditions, that is, the embodiment of the present application can calculate the evaluation bandwidth regularly, or set an event to calculate the evaluation bandwidth when a certain event occurs. The current total transmission bandwidth can be understood as the total bandwidth for data transmission at present. When the evaluation bandwidth is higher than the current total transmission bandwidth, it is determined that the network link is in a bandwidth increase state. In an optional embodiment, in order to reduce the probability of detection failure and avoid upward bandwidth detection when the bandwidth change is not large, the network link can be determined to be in a bandwidth increase state when the evaluation bandwidth is higher than the current total transmission bandwidth and the difference between the evaluation bandwidth and the current total transmission bandwidth is higher than the preset threshold. Among them, the preset threshold can be set based on experience. If the network link is not in a bandwidth increasing state, no upward bandwidth detection is performed.

[0042] In an optional implementation, this embodiment can determine whether the packet loss rate of the network link has increased before determining whether the network is in a bandwidth increase state based on the current evaluation bandwidth of the network link and the current total transmission bandwidth. If the packet loss rate has not increased, the step of determining whether the network is in a bandwidth increase state based on the current evaluation bandwidth of the network link and the current total transmission bandwidth is triggered. That is, in a state of increasing packet loss rate, upward bandwidth detection is not performed. It is understandable that upward bandwidth detection may increase the packet loss rate. In a state of increasing packet loss rate, avoiding upward bandwidth detection can avoid increasing the packet loss rate and further affecting users.

[0043] Step S12: When the network link is in a bandwidth increase state, the evaluation bandwidth is used as the new total transmission bandwidth, and the bandwidth outside the effective data bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is used for data transmission in a saturated state, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission.

[0044] Among them, the forward error correction packet can be understood as an error correction packet sent together with valid data for data recovery and encapsulation. In an optional implementation, all bandwidths other than the valid data bandwidth can be allocated to the forward error correction packet. That is, the new total transmission bandwidth-valid data bandwidth=the bandwidth allocated to the forward error correction packet. In this way, by sending more forward error correction packets, the proportion of forward error correction packets is increased, thereby improving the guarantee for data transmission.

[0045] Among them, the effective data bandwidth can be understood as the bandwidth for sending effective data or the bandwidth for sending effective data and default forward error correction packets. That is, in some embodiments, a corresponding default forward error correction packet can be configured for effective data. Effective data can be understood as data to be transmitted by a network link, for example, media data. FEC (i.e., Forward Error Correction) technology is a data encoding technology used to automatically correct transmission errors during data transmission. By performing specific encoding processing on the original data at the sending end, some redundant information is added. At the receiving end, even if there are a certain number of errors in the received data, the errors can be detected and corrected based on these redundant information without requesting the sending end to resend the data. FEC has the advantages of improving data transmission reliability, reducing the number of retransmissions, and reducing transmission delays, and can meet the communication, storage and other scenarios with high real-time requirements or difficult to retransmit. FEC technology can resist a fixed random packet loss rate, such as adding 10% FEC, and it is expected to resist 10% random packet loss.

[0046] In an optional implementation, if the network link is in a bandwidth decreasing state, the total transmission bandwidth is adjusted downward. If the network link is neither in a bandwidth decreasing state nor in an increasing state, that is, in a bandwidth stable state, the total transmission bandwidth is kept unchanged. The bandwidth stable state can be understood as the current evaluation bandwidth of the network link being equal to the current transmission total bandwidth.

[0047] Step S13: If there is no abnormality in data transmission, the effective data bandwidth is increased.

[0048] In this embodiment, the evaluation bandwidth is used as the new total transmission bandwidth, and the bandwidth outside the effective data bandwidth is allocated to the forward error correction packet, so that after the total transmission bandwidth is saturated for data transmission, if it is determined based on the current evaluation bandwidth of the network link and the current total transmission bandwidth that the network link is not in a bandwidth reduction state, and the packet loss rate has not increased, it is determined that there is no abnormality in the data transmission. That is, this embodiment can obtain the current evaluation bandwidth of the network link after data transmission, and the current total transmission bandwidth is the aforementioned new total transmission bandwidth. The bandwidth reduction state means that the current evaluation bandwidth is lower than the current total transmission bandwidth.

[0049] In this embodiment, after the evaluation bandwidth is used as the new total transmission bandwidth and the bandwidth other than the effective data bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission, if the packet loss rate increases, it is determined that the data transmission is abnormal and the total transmission bandwidth is reduced. Specifically, the total transmission bandwidth and the effective data bandwidth can be restored to the bandwidth value used for the last data transmission. In addition, if the network link is in a bandwidth reduction state, it is determined that the data transmission is abnormal and the total transmission bandwidth can be reduced.

[0050] In an optional implementation, the increasing of the effective data bandwidth includes: using the new total transmission bandwidth as the effective data bandwidth for data transmission. That is, if there is no abnormality in data transmission and the bandwidth detection is successful, the effective data bandwidth can be increased. If the effective data bandwidth includes forward error correction packets, the bandwidth occupied by the forward error correction packets is the default value, and other bandwidths are used to send effective data.

[0051] Furthermore, in an optional implementation, after the new total transmission bandwidth is used as the effective data bandwidth for data transmission, the method further includes: if the packet loss rate increases, the effective data bandwidth is restored to the level before the increase, and the bandwidth other than the effective data bandwidth in the new total transmission bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission. That is, re-performing bandwidth upward detection.

[0052] Furthermore, this embodiment can implement a state machine, and perform bandwidth detection based on the state machine. The input of the state machine is the estimated bandwidth and packet loss rate output by the congestion control algorithm. The output is the available bandwidth for valid data allocation and the additional FEC coding ratio. Figure 2 As shown, Figure 2 A schematic diagram of a state transition of bandwidth detection provided in an embodiment of the present application.

[0053] Among them, bwe: the evaluation bandwidth of the current CC (congestion control algorithm). bwe_sending: the total sending bandwidth actually used at present. bwe_using: the bandwidth currently allocated and used for valid data (audio and video data), using the default FEC ratio (that is, the effective data bandwidth). last_bwe_sending: the last bwe_sending value. last_bwe_using: the last bwe_using value. Bandwidth increase: bwe > bwe_sending. Bandwidth decrease: bwe < bwe_sending. Abnormal: the overall packet loss rate increases, or the evaluation bandwidth decreases. The duration of each state of the state machine can be consistent or configured separately. For example, it is uniformly calculated according to 3 times RTT (Round-Trip Time), the upper limit is configured to 100ms, and the multiple and upper limit value are configurable. The initial state of the state machine is the Hold state. RTT refers to the total time taken from the sender sending a data packet to the receiver receiving the data packet and responding with a confirmation packet in network communication, and then to the sender receiving the confirmation packet.

[0054] Hold state (steady state): In the initial state, bwe_sending = bwe_using = bwe. If the packet loss rate increases, this state is maintained. If the bandwidth decreases, the state is entered into the Decrease state. If no abnormality is observed, the bandwidth increases, bwe_sending = bwe, bwe_using remains unchanged, and last_bwe_using is recorded, and the state is entered into the Probe state. If no abnormality is observed, the bandwidth remains unchanged, and the state remains unchanged.

[0055] Probe state: In this state, bandwidth is probed based on additional FEC. The part of bwe_sending that exceeds bwe_using uses FEC, and the additional FEC ratio is calculated. The packet loss rate increases, and the sending bandwidth and effective bandwidth return to the last used bandwidth value, bwe_sending = bwe_using = last_bwe_using, and enter the Hold state. The bandwidth decreases and enters the Decrease state. No abnormality is found, and enter the Increase state.

[0056] Increase state: In this state, it is equivalent to that the Probe has successfully used FEC detection, and the extra bandwidth can be used for valid data. Run such a state with increased effective bandwidth for observation. Record last_bwe_using, bwe_using = bwe_sending, bwe_sending remains unchanged. The packet loss rate increases, bwe_using = last_bwe_using, bwe_sending remains unchanged, and enters the Probe state. It is equivalent to reusing the newly added part for the additional FEC ratio and re-detecting. The bandwidth decreases and enters the Decrease state. No abnormality is found, the bandwidth increases, bwe_sending = bwe, and the detection continues. No abnormality is found, the bandwidth remains unchanged, and the state is maintained.

[0057] Decrease state: In this state, bwe_sending = bwe_using = bwe. If no abnormality is found, enter the Hold state. In other cases, keep the state unchanged.

[0058] In this embodiment, in addition to the fixed FEC ratio, an additional FEC coding ratio can be added for upward bandwidth detection. When the network condition is stable or very good, additional FEC packets can be used to detect bandwidth. If the detection is successful, the bandwidth actually used for valid data will also increase; if the detection fails and the packet loss rate increases, the additional packet loss can be recovered due to the higher FEC coding ratio protection, so as not to affect the transmission of valid data. In this way, the bandwidth can be utilized more and the experience will not be affected by packet loss.

[0059] The bandwidth detection scheme provided in the embodiment of the present application can be applied to a variety of data transmission scenarios, such as cloud games. Cloud games usually hope to use a larger bandwidth to obtain higher-definition image quality, and transmit complex game scenes, special effects and other content more completely and with high quality to bring a better experience to players. The embodiment of the present application can avoid network congestion and packet loss caused by bandwidth exploration, avoid the game screen from being stuck and not smooth, seriously affecting the player's gaming experience, and may cause delayed or inaccurate operations, reducing the playability of the game. By using additional FEC to explore the bandwidth, the loss of real audio and video data caused by packet loss is avoided, and the player's experience is not affected while detecting higher bandwidth. In addition, it is compatible with various congestion control algorithms for easy deployment.

[0060] It can be seen that the embodiment of the present application determines whether the network link is in a bandwidth increase state according to the current evaluation bandwidth of the network link and the current total transmission bandwidth; when the network link is in a bandwidth increase state, the evaluation bandwidth is used as the new total transmission bandwidth, and the bandwidth outside the effective data bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is used for data transmission in a saturated state, wherein the effective data bandwidth is consistent with the effective data bandwidth used when the data was sent last time; if there is no abnormality in the data transmission, the effective data bandwidth is increased. That is, in the embodiment of the present application, when the bandwidth of the network link is in an increasing state, the evaluation bandwidth is used as the new total transmission bandwidth, the effective data bandwidth is consistent with the effective data bandwidth used when the data was sent last time, and an additional forward error correction packet is used to detect the bandwidth. When performing bandwidth detection, the effective data bandwidth is not increased, which reduces the packet loss rate of the effective data. Even if the detection fails and causes packet loss, the packet loss can be recovered based on the increased forward error correction packet, so as not to affect the transmission of the effective data. In this way, data loss caused by packet loss caused by bandwidth detection can be avoided, thereby improving the user experience.

[0061] See also Figure 3 As shown, the embodiment of the present application discloses a bandwidth detection device, including:

[0062] A state judgment module 11 is used to judge whether the network link is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total transmission bandwidth;

[0063] The data transmission module 12 is used for, when the network link is in a bandwidth increase state, using the evaluation bandwidth as a new total transmission bandwidth, and allocating bandwidth other than the effective data bandwidth to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission;

[0064] The bandwidth adjustment module 13 is used to increase the effective data bandwidth if there is no abnormality in data transmission.

[0065] In an optional embodiment, the bandwidth detection device also includes a packet loss rate judgment module, which is used to judge whether the packet loss rate of the network link has increased before the status judgment module 11 judges whether the network is in a bandwidth increase state based on the current evaluation bandwidth of the network link and the current total sending bandwidth. If the packet loss rate has not increased, the status judgment module 11 is triggered to execute the step of judging whether the network is in a bandwidth increase state based on the current evaluation bandwidth of the network link and the current total sending bandwidth.

[0066] In an optional embodiment, the device also includes an abnormality judgment module, which is used in the data sending module 12 to use the evaluation bandwidth as the new total sending bandwidth, and allocate the bandwidth outside the effective data bandwidth to the forward error correction packet, so that the total sending bandwidth is saturated for data transmission, and then judge whether there is an abnormality in the data transmission.

[0067] In an optional implementation, the abnormality determination module is specifically used to determine whether the packet loss rate increases, and if the packet loss rate increases, it is determined that data transmission is abnormal. Correspondingly, the bandwidth adjustment module 13 is also used to reduce the total transmission bandwidth.

[0068] In an optional embodiment, the abnormality judgment module is also used to use the evaluation bandwidth as the new total transmission bandwidth in the data sending module 12, and allocate the bandwidth outside the effective data bandwidth to the forward error correction packet, so that after the total transmission bandwidth is saturated for data transmission, it is judged whether the bandwidth is in a decreasing state; if it is judged that the network link is not in a bandwidth decreasing state according to the current evaluation bandwidth of the network link and the current total transmission bandwidth, and the packet loss rate has not increased, it is judged that there is no abnormality in the data transmission.

[0069] In an optional implementation manner, the bandwidth adjustment module 13 is specifically configured to use the new total transmission bandwidth as the effective data bandwidth for data transmission.

[0070] In an optional implementation, the data sending module 12 is further used for, after the new total sending bandwidth is used entirely as the effective data bandwidth for data sending, if the packet loss rate increases, restoring the effective data bandwidth to the level before the increase, and allocating the bandwidth other than the effective data bandwidth in the new total sending bandwidth to the forward error correction packet, so that the total sending bandwidth is saturated for data sending.

[0071] In an optional implementation, the data sending module 12 is specifically configured to allocate all bandwidth other than the effective data bandwidth to the forward error correction packet.

[0072] It can be seen that the embodiment of the present application determines whether the network link is in a bandwidth increase state according to the current evaluation bandwidth of the network link and the current total transmission bandwidth; when the network link is in a bandwidth increase state, the evaluation bandwidth is used as the new total transmission bandwidth, and the bandwidth outside the effective data bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is used for data transmission in a saturated state, wherein the effective data bandwidth is consistent with the effective data bandwidth used when the data was sent last time; if there is no abnormality in the data transmission, the effective data bandwidth is increased. That is, in the embodiment of the present application, when the bandwidth of the network link is in an increasing state, the evaluation bandwidth is used as the new total transmission bandwidth, the effective data bandwidth is consistent with the effective data bandwidth used when the data was sent last time, and an additional forward error correction packet is used to detect the bandwidth. When performing bandwidth detection, the effective data bandwidth is not increased, which reduces the packet loss rate of the effective data. Even if the detection fails and causes packet loss, the packet loss can be recovered based on the increased forward error correction packet, so as not to affect the transmission of the effective data. In this way, data loss caused by packet loss caused by bandwidth detection can be avoided, thereby improving the user experience.

[0073] See also Figure 4 As shown, an embodiment of the present application discloses an electronic device 20, including a processor 21 and a memory 22; wherein the memory 22 is used to store a computer program; the processor 21 is used to execute the computer program, the bandwidth detection method disclosed in the above embodiment.

[0074] For the specific process of the above bandwidth detection method, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0075] Furthermore, the memory 22 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.

[0076] In addition, the electronic device 20 also includes a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26; wherein the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input / output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0077] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the bandwidth detection method disclosed in the aforementioned embodiment.

[0078] For the specific process of the above bandwidth detection method, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.

[0079] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0080] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0081] The above is a detailed introduction to a bandwidth detection method, device, equipment and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. At the same time, for general technicians in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A bandwidth detection method, characterized in that: include: Determining whether the network link is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total sending bandwidth; When the network link is in a bandwidth increase state, the evaluation bandwidth is used as a new total transmission bandwidth, and bandwidth other than the effective data bandwidth is allocated to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission; If no abnormality occurs in data transmission, the effective data bandwidth is increased.

2. The bandwidth detection method according to claim 1, characterized in that: Before judging whether the network is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total transmission bandwidth, the method further includes: Determine whether the packet loss rate of the network link increases. If the packet loss rate does not increase, trigger the step of determining whether the network is in a bandwidth increase state according to the current evaluation bandwidth of the network link and the current total sending bandwidth.

3. The bandwidth detection method according to claim 1, characterized in that: After the evaluation bandwidth is used as a new total transmission bandwidth and the bandwidth other than the effective data bandwidth is allocated to the forward error correction packet so that the total transmission bandwidth is saturated for data transmission, the method further includes: If the packet loss rate increases, it is determined that data transmission is abnormal, and the total transmission bandwidth is reduced.

4. The bandwidth detection method according to claim 1, characterized in that: After the evaluation bandwidth is used as a new total transmission bandwidth and the bandwidth other than the effective data bandwidth is allocated to the forward error correction packet so that the total transmission bandwidth is saturated for data transmission, the method further includes: If it is determined based on the current evaluation bandwidth of the network link and the current total transmission bandwidth that the network link is not in a bandwidth reduction state and the packet loss rate is not increased, it is determined that there is no abnormality in data transmission.

5. The bandwidth detection method according to claim 1, characterized in that: The improving of effective data bandwidth comprises: The new total transmission bandwidth is used entirely as effective data bandwidth for data transmission.

6. The bandwidth detection method according to claim 5, characterized in that: After the new total transmission bandwidth is used as the effective data bandwidth for data transmission, the method further includes: If the packet loss rate increases, the effective data bandwidth is restored to the level before the increase, and the bandwidth other than the effective data bandwidth in the new total transmission bandwidth is allocated to forward error correction packets, so that the total transmission bandwidth is saturated for data transmission.

7. The bandwidth detection method according to any one of claims 1 to 6, characterized in that: The allocating bandwidth other than the effective data bandwidth to the forward error correction packet comprises: All bandwidth outside of the effective data bandwidth is allocated to forward error correction packets.

8. A bandwidth detection device, characterized in that: include: A state judgment module, used to judge whether the network link is in a bandwidth increasing state according to the current evaluation bandwidth of the network link and the current total sending bandwidth; A data transmission module, configured to use the evaluation bandwidth as a new total transmission bandwidth when the network link is in a bandwidth increase state, and allocate bandwidth other than the effective data bandwidth to the forward error correction packet, so that the total transmission bandwidth is saturated for data transmission, wherein the effective data bandwidth is consistent with the effective data bandwidth used in the last data transmission; The bandwidth adjustment module is used to increase the effective data bandwidth if no abnormality occurs in data transmission.

9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store the computer program; The processor is used to execute the computer program to implement the bandwidth detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the bandwidth detection method according to any one of claims 1 to 7 is implemented.