CN113542215A - Method for improving streaming media transmission performance and related device - Google Patents

Method for improving streaming media transmission performance and related device Download PDF

Info

Publication number
CN113542215A
CN113542215A CN202110605067.8A CN202110605067A CN113542215A CN 113542215 A CN113542215 A CN 113542215A CN 202110605067 A CN202110605067 A CN 202110605067A CN 113542215 A CN113542215 A CN 113542215A
Authority
CN
China
Prior art keywords
sending
parameter
bandwidth
transmission
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110605067.8A
Other languages
Chinese (zh)
Other versions
CN113542215B (en
Inventor
檀深秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110605067.8A priority Critical patent/CN113542215B/en
Publication of CN113542215A publication Critical patent/CN113542215A/en
Application granted granted Critical
Publication of CN113542215B publication Critical patent/CN113542215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/127Avoiding congestion; Recovering from congestion by using congestion prediction
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method for improving streaming media transmission performance, which comprises the following steps: acquiring a first sending parameter of a detection frame in a history period; acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter; and adjusting the sending flow of the current period based on the estimated bandwidth. The method provided by the application determines the estimated bandwidth of the period according to the first sending parameter and the second sending parameter, so that the sending flow can be more accurately regulated and controlled according to the estimated bandwidth under the condition of not influencing the error rate, and the transmission performance of the streaming media is further improved. The application also provides a terminal device and a computer readable storage medium.

Description

Method for improving streaming media transmission performance and related device
Technical Field
The present application relates to the field of data transmission, and in particular, to a method and a related apparatus for improving streaming media transmission performance.
Background
During streaming, the OSI model is covered. In the process of streaming media transmission, the transport layer in the OSI model can adjust the sending traffic in real time according to the network condition, i.e. congestion control. However, if the congestion control policy is used for control in the wireless link, the error rate will be high, and the accuracy of the streaming media transmission will be affected.
Disclosure of Invention
The technical problem mainly solved by the present application is to provide a method and a related device for improving the transmission performance of a streaming media, so as to realize more accurate regulation and control of the sending flow rate without affecting the error rate, and further improve the transmission performance of the streaming media.
In order to solve the technical problem, the application adopts a technical scheme that: a method for improving streaming media transmission performance is provided, and the method comprises the following steps:
acquiring a first sending parameter of a detection frame in a history period; and
acquiring a second transmission parameter of the streaming media data packet transmitted in the history period;
determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter;
and adjusting the sending flow of the current period based on the pre-estimated bandwidth.
In order to solve the above technical problem, another technical solution adopted by the present application is: providing a terminal device comprising a radio link layer and a transport layer;
the wireless link layer is used for acquiring a first transmission parameter of a probe frame in a history period; acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; the wireless link layer is further used for determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter, and sending the pre-estimated bandwidth to the transmission layer;
and the transmission layer is used for adjusting the sending flow of the current period based on the estimated bandwidth and sending the streaming media data packet to other terminal equipment or receiving the streaming media data packet sent by other terminal equipment.
In order to solve the above technical problem, the present application adopts another technical solution: providing a terminal device comprising a processor and memory and communication circuitry coupled to the processor; wherein the content of the first and second substances,
the memory is used for storing a computer program;
the communication circuit is used for interacting with other terminal equipment under the control of the processor;
the processor is configured to run the computer program to perform the method as described in any of the above.
In order to solve the above technical problem, the present application adopts another technical solution that: there is provided a computer readable storage medium, storing a computer program capable of being executed by a processor, the computer program, when executed by the processor, implementing the steps of the method as claimed in any one of the above.
The beneficial effect of this application is: different from the situation of the prior art, the method and the related device for improving the transmission performance of the streaming media provided by the application acquire the first sending parameter of the detection frame in the history period; acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter; and adjusting the sending flow of the current period based on the estimated bandwidth. The method provided by the application determines the estimated bandwidth of the period according to the first sending parameter and the second sending parameter, so that the sending flow can be more accurately regulated and controlled according to the estimated bandwidth under the condition of not influencing the error rate, and the transmission performance of the streaming media is further improved.
Drawings
Fig. 1 is a schematic flowchart illustrating an embodiment of a method for improving streaming media transmission performance according to the present application;
fig. 2 is a schematic flowchart illustrating another embodiment of a method for improving streaming media transmission performance according to the present application;
fig. 3 is a flowchart illustrating a method for improving streaming media transmission performance according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an embodiment of a terminal device according to the present application;
fig. 5 is a schematic structural diagram of an embodiment of a terminal device according to the present application;
fig. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
First, it should be noted that the method for improving the transmission performance of streaming media provided by the present application is applied in a wireless link environment, and in particular, is used for improving the transmission performance of the streaming media in the wireless link.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of a method for improving streaming media transmission performance according to the present application.
S110: and acquiring a first transmission parameter of the detection frame in the history period and acquiring a second transmission parameter of the streaming media data packet transmitted in the history period.
When streaming media transmission is performed by using a wireless link, a terminal device first obtains a first transmission parameter of a probe frame in a history period, and obtains a second transmission parameter of a streaming media data packet sent in the history period. The period is a preset time interval for adjusting the size of the sending traffic, and the length of the period may be specifically determined according to the accuracy requirement for adjusting the sending traffic and/or the operational capability of the terminal device, which is not specifically limited herein. If the sending flow needs to be adjusted very accurately, the cycle length is set to be smaller, for example, one cycle length can be set to be 0.5 s; otherwise, the period length may be set slightly larger than the first period length, for example, one period length may be set to be 1 s.
Further, in an embodiment, the terminal device may obtain a first transmission parameter of its probe frame and a second transmission parameter of a streaming media data packet transmitted in a history period when the step of transmitting the streaming media data is performed in the history period.
In another embodiment, when the terminal device transmits the streaming media data, the terminal device records the first transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet transmitted in each period, and stores the first transmission parameter and the second transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet in the storage area. Correspondingly, step S110 may also be to obtain the first transmission parameter of the probe frame in the history period and the second transmission parameter of the streaming media data packet transmitted in the history period from the storage area.
Further, in one embodiment, the history period in step S110 includes a previous period. Correspondingly, step S110 is: and acquiring a first transmission parameter of the detection frame in the previous period and a second transmission parameter of the streaming media data packet transmitted in the previous period.
Further, in another embodiment, the history period in step S110 may also include n periods before the current period, where n is greater than or equal to 1 and is an integer, and the size of n is set according to actual requirements, which is not limited herein. When n is greater than or equal to 1, in step S110, first transmission parameters of the probe frames in the multiple history periods and second transmission parameters of the streaming media data packets transmitted in the corresponding multiple history periods are obtained.
Further, when the history period includes n periods before the current period is counted, after the first sending parameters of the probe frames of the n periods and the second sending parameters of the streaming media data packets are obtained, the method provided by the application further includes calculating the obtained first sending parameters of the probe frames of the n periods and the obtained second sending parameters of the streaming media data packets according to a preset sending parameter weight ratio, so as to obtain a more accurate final first sending parameter of the probe frames of the history period and a final second sending parameter of the streaming media data packets. The closer the time period is to the current period, the more the transmission parameter of the history period has a reference value, and correspondingly, the transmission parameter weight close to the current period is set to be greater than the transmission parameter weight of the history period farther from the current period. If the first transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet in 3 periods before the current period are obtained, the weight of the transmission parameter of the first period before the current period is set to 0.6, the weight of the transmission parameter of the second period before the current period is set to 0.3, and the weight of the transmission parameter of the third period before the current period is set to 0.1, then, after the first transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet in three periods before the current period are obtained, the first transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet in each period are multiplied by the weight of the transmission parameter in each period, and then the final first transmission parameter of the probe frame and the final second transmission parameter of the streaming media data packet in the history period of the current period are obtained.
Wherein the first transmission parameter of the sounding frame includes at least one of: a frame length, a transmission timestamp, and a first transmission rate. The sending time stamp of the detection frame is the sending time of the detection frame, and the first sending rate of the detection frame is the sending rate of the detection frame selected by the terminal equipment of the sending party. The first sending rate is a low-speed rate selected by the sending party, so that the terminal device at the receiving party can accurately receive the sounding frame. Further, the first sending rate may be a rate pre-stored in the terminal device, and the terminal device pre-stores a plurality of different first sending rates respectively corresponding to different communication protocols, so as to be selected when streaming media data transmission is performed.
Further, the probe frame includes a probe request frame and a probe reply frame. Correspondingly, in step S110, the probe request frame in the history period and the first transmission parameter of the probe reply frame corresponding to the probe request frame are obtained. Specifically, the frame length of the probe request frame, the transmission time stamp of the probe request frame, and the first transmission rate of the probe request frame are obtained, and the frame length of the probe reply frame corresponding to the probe request frame and the reception time stamp of the probe reply frame are obtained. And the receiving time stamp of the detection reply frame is the time when the terminal equipment of the sending party receives the detection reply frame.
The second transmission parameter of the streaming media data packet includes at least one of: a second transmission rate, a number of transmitted packets, and a number of lost packets. The second sending rate is a sending rate selected when the sending-side terminal device sends the streaming media data packet to the receiving-side terminal device, where the second sending rate may be a sending rate preset according to a communication protocol. In other embodiments, a range of the second sending rate may be preset according to actual requirements, and then the sending terminal device selects a second sending rate within the range of the set second sending rate according to actual environment when sending the streaming media data packet. The packet sending number of the streaming media data packets is the total number of the streaming media data packets sent by the terminal equipment of the sender in the period; the packet loss number of the streaming media data packet is the number of data packets which are not received by the receiving terminal device in the streaming media data packet sent by the sending terminal device in the period.
S120: and determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter.
After the first sending parameter and the second sending parameter are obtained, the estimated bandwidth of the current period is determined according to the obtained first sending parameter and the obtained second sending parameter. The estimated bandwidth is an estimated value of the bandwidth required by the current period, which is calculated according to the parameters of the history period, and can be used as a reference for adjusting the sending flow. In other embodiments, the predicted bandwidth may also be understood as: and the terminal equipment of the sending party determines the bandwidth estimated value of the current period according to the first sending parameter of the detection frame in the history period and the second sending parameter of the streaming media data packet.
Further, in an embodiment, if the first transmission parameters of the probe frames of the multiple history periods before the current period and the second transmission parameters of the transmitted streaming media data packet are obtained in step S110, the estimated bandwidth of the current period is determined according to the first transmission parameters of the probe frames of the multiple history periods and the second transmission parameters of the transmitted streaming media data packet in step S120.
Further, in another embodiment, if the first transmission parameters of the probe frames in the plurality of history periods before the current period and the second transmission parameters of the streaming media data packet are obtained in step S110, and it is required to perform calculation according to the preset weights of the respective history periods, the obtained first transmission parameters of the probe frames in the plurality of history periods and the obtained second transmission parameters of the streaming media data packet to obtain the final first transmission parameters of the probe frames in the history periods and the final second transmission parameters of the streaming media data packet more accurately, then in step S120, the estimated bandwidth of the current period is determined according to the obtained final first transmission parameters and the obtained final second transmission parameters.
S130: and adjusting the sending flow of the current period based on the estimated bandwidth.
After the estimated bandwidth of the current period is determined, the size of the sending flow of the current period is adjusted based on the obtained estimated bandwidth. The sending flow is the rate selected by the sender in the current period for sending the streaming media data packet.
In an embodiment, the estimated bandwidth obtained in step S120 and the bandwidth of the current period are subjected to weighted calculation to obtain a final bandwidth, and then the sending traffic of the current period is adjusted according to the final bandwidth. At this time, if the final bandwidth is greater than the sending traffic, the sending traffic may not be adjusted; if the final bandwidth is smaller than the sending traffic, it indicates that the current bandwidth cannot support the currently selected sending traffic, and the sending traffic is reduced.
In another embodiment, in step S130, a final bandwidth may be obtained by averaging the estimated bandwidth and the current bandwidth, and then the size of the transmission traffic of the current transmission period may be adjusted based on the final bandwidth.
In the embodiment corresponding to fig. 1 of the present application, a first sending parameter of a probe frame in a history period is obtained; acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter; and adjusting the sending flow of the current period based on the estimated bandwidth. The method provided by the application determines the estimated bandwidth of the period according to the first sending parameter and the second sending parameter, so that the sending flow can be more accurately regulated and controlled according to the estimated bandwidth under the condition of not influencing the error rate, and the transmission performance of the streaming media is further improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another embodiment of a method for improving streaming media transmission performance according to the present application. In the current embodiment, the method provided by the present application includes:
s201: and acquiring a first transmission parameter of the detection frame in the history period and acquiring a second transmission parameter of the streaming media data packet transmitted in the history period.
In the current embodiment, step S201 is the same as step S110 described above, and reference may be specifically made to the description of the corresponding parts above, which is not repeated herein.
The step S120 illustrated in fig. 1 determines the estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter, and further includes the following steps S202 to S205.
S202: the first parameter is obtained based on the frame lengths of the probe request frame and the probe reply frame, and the transmission time stamp of the probe request frame and the reception time stamp of the probe reply frame.
In the current embodiment, the probe frame includes a probe request frame and a probe reply frame. After acquiring the first transmission parameter of the probe frame in the history period and the second transmission parameter of the streaming media data packet transmitted in the history period, the first parameter is calculated and acquired further based on the acquired frame length of the probe request frame and the frame length of the probe reply frame, and the transmission timestamp of the probe request frame and the reception timestamp of the probe reply frame. As described above, the reception timestamp of the sounding reply frame is the time when the terminal device of the transmitting side receives the sounding reply frame.
Further, step S202 further includes: the ratio between the sum of the frame lengths of the probe request frame and the probe reply frame and the difference between the transmission time stamps of the probe request frame and the probe reply frame is taken as a first parameter. For example, in one embodiment, the frame length of the probe request frame is denoted as L1The frame length of the detection reply frame is recorded as L2Recording the transmission time stamp of the probe request frame as t1The reception time stamp of the detection reply frame is denoted as t2Then the first parameter is
Figure BDA0003094016210000081
S203: and obtaining a second parameter based on the first sending rate and the second sending rate.
And then, further calculating to obtain a second parameter based on the first sending rate of the detection request frame and the second sending rate of the corresponding streaming media data packet.
Further, step S203 includes: the ratio between the second transmission rate and the first transmission rate is taken as a second parameter. For example, the transmission rate of the streaming media data packet is denoted as TxRatecurRecording the sending rate of the probe request frame as TxRatebasicCorrespondingly, the second parameter is
Figure BDA0003094016210000082
S204: and obtaining a third parameter based on the packet loss number and the packet sending number.
And calculating to obtain a third parameter according to the obtained packet loss number and packet sending number of the streaming media data packet in the history period.
Further, step S204 includes: the ratio of the number of lost packets to the number of transmitted packets is used as a third parameter. For example, let the packet loss number of the streaming media data packet be TxdropThe number of packets Tx of the streaming media data packetallThen the corresponding third parameter is
Figure BDA0003094016210000083
It should be noted that, the execution sequence of steps S202, S203, and S204 is not limited herein, and specifically, steps S202, S203, and S204 may be executed sequentially, or simultaneously, or executed in another sequence, and is not limited herein.
S205: and obtaining the estimated bandwidth of the current period by using the first parameter, the second parameter and the third parameter.
After the first parameter, the second parameter and the third parameter are calculated and obtained respectively, the estimated bandwidth of the current period is further calculated and obtained based on the obtained first parameter, the obtained second parameter and the obtained third parameter.
Further, step S205 includes: and taking the product of the first parameter, the second parameter and the third parameter as the estimated bandwidth of the current period. Calculating the first parameter, the second parameter and the third parameter to obtain the estimated bandwidth BWestThe formula is as follows:
Figure BDA0003094016210000091
s206: and adjusting the sending flow of the current period based on the estimated bandwidth.
In the current embodiment, the step S206 is the same as the step S130 described above, and for details, reference may be made to the description of the corresponding parts above, and details are not described here again.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for improving streaming media transmission performance according to another embodiment of the present application. In the current embodiment, the method provided by the present application includes:
s301: and acquiring a first transmission parameter of the detection frame in the history period and acquiring a second transmission parameter of the streaming media data packet transmitted in the history period.
S302: and determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter.
In the current embodiment, step S301 and step S302 are the same as step S110 and step S120 corresponding to the above, and may specifically refer to the description of the corresponding parts above, which is not described herein again. And the step S130 in fig. 1 mentioned above adjusts the sending traffic of the current period based on the estimated bandwidth, and in the current embodiment, the step S303 to step S305 are further included.
S303: and acquiring a first bandwidth of the current period.
After determining the predicted bandwidth, the receiving terminal device further obtains the first bandwidth of the current period. The first bandwidth is a bandwidth used for transmitting the streaming media data packet, which is determined according to a preset bandwidth determination rule and based on the streaming media data packet required to be transmitted in the current period and the wireless state. Wherein the wireless state includes at least: the size of the wireless signal.
In one embodiment, step S303 further includes: and determining the first bandwidth according to the streaming media data packet required to be transmitted in the current period and the wireless state.
In another embodiment, step S303 further comprises: and determining the first bandwidth according to the streaming media data packet required to be transmitted in the current period, the wireless state and the final bandwidth of the historical period. In the present embodiment, in order to more accurately determine the bandwidth required for the currently required transport stream media data packet, the final bandwidth of the history period may also be referred to at the same time. Wherein the history period includes a plurality of periods prior to the previous period or the current period.
Further, in other embodiments, if the history period in step S303 includes a plurality of periods before the current period, the obtained final bandwidth of the plurality of periods before the current period may be weighted according to a preset final bandwidth weight ratio, so as to obtain a more accurate reference final bandwidth, and then the first bandwidth is determined according to the streaming media data packet that needs to be transmitted in the current period, the wireless status, and the reference final bandwidth. And the final bandwidth is calculated based on the final bandwidths of the plurality of historical periods and a preset final bandwidth weight ratio of each period.
For example, in an embodiment, when the final bandwidth of 3 cycles before the current cycle is obtained to determine the first bandwidth, the final bandwidth weight of the first cycle before the current cycle is set to 0.5, the final bandwidth weight of the second cycle before the current cycle is set to 0.3, and the final bandwidth weight of the third cycle before the current cycle is set to 0.2, and then after the final bandwidths of three cycles before the current cycle are obtained, the final bandwidths of each cycle are multiplied by the final bandwidth weights of each cycle, and then the reference final bandwidth is obtained by calculation. The reference final bandwidth is a bandwidth obtained by weighted summation of final bandwidths of a plurality of historical periods, and the reference final bandwidth is a first bandwidth used for determining the current period.
S304: and performing weighted calculation on the first bandwidth and the estimated bandwidth to obtain the final bandwidth of the current period.
In the technical scheme provided by the application, a core weight ratio is preset, and after the first bandwidth is determined, the first bandwidth and the estimated bandwidth are further subjected to weighted calculation according to the preset core weight ratio, so that the final bandwidth of the current period is obtained. The final bandwidth is the bandwidth used for sending the streaming media data packet in the current period, and the core weight ratio is the ratio of the estimated bandwidth to the first bandwidth in the final bandwidth. For example, the core weight ratio of the estimated bandwidth of the current period and the first bandwidth may be preset to be 0.5, and the corresponding step S304 may also be understood as calculating an average value of the first bandwidth and the estimated bandwidth, and then outputting the obtained average value as the final bandwidth of the current period. In other embodiments, the core weight ratio of the estimated bandwidth of the current period may be set to 0.4, the core weight ratio of the first bandwidth may be set to 0.6, then the estimated bandwidth value is multiplied by the product of 0.4, and the product of the first bandwidth value and 0.6 is added, and the final sum is output as the final bandwidth of the current period.
S305: and adjusting the sending flow of the current period according to the final bandwidth.
After the final bandwidth is determined, the final bandwidth is further compared with the sending flow of the current period, and the sending flow of the current period is adjusted according to the final comparison result.
Further, step S305 includes: and if the final bandwidth is smaller than the sending flow, reducing the sending flow until the sending flow is smaller than the final bandwidth. If the final bandwidth is smaller than the transmission traffic, it indicates that the current wireless environment cannot support transmission of the current transmission traffic, and in order to avoid data accumulation or data loss, the transmission traffic needs to be reduced to a value where the transmission traffic is smaller than the final bandwidth.
In an embodiment, if the final bandwidth obtained by the determination is greater than or equal to the sending traffic, no adjustment may be made to the sending traffic.
In another embodiment, if the final bandwidth is determined to be greater than or equal to the sending traffic, the method further obtains a difference between the final bandwidth and the sending traffic in order to more fully utilize the bandwidth resources. And then, whether the difference value is greater than or equal to a preset threshold value is further judged, and when the difference value is greater than or equal to the preset threshold value, the sending flow is increased, so that the difference value between the final bandwidth and the sending flow is smaller than the preset threshold value, the bandwidth resource is better utilized, and the streaming media data is quickly sent. The preset threshold is a preset threshold used for judging whether the situation of bandwidth resource waste exists or not, and if the difference value between the final bandwidth and the sending flow is smaller than the preset threshold, the situation of bandwidth resource waste does not exist; on the contrary, if the difference between the final bandwidth and the transmission traffic is greater than or equal to the preset threshold, it indicates that there is bandwidth resource waste, and the transmission traffic needs to be increased.
In other embodiments, if the final bandwidth is greater than or equal to the transmission traffic and the number of remaining streaming media data packets to be sent is determined to be small, the transmission traffic may not be adjusted, and the streaming media data packets are sent while maintaining the existing transmission traffic.
Meanwhile, in the case that the features included in the above embodiments are not contradictory, the features in the embodiments may be combined and overlapped according to actual requirements, so as to better improve the streaming media transmission performance.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device 400 according to an embodiment of the present application. In the present embodiment, the terminal device 400 provided by the present application includes a radio link layer 402 and a transport layer 401.
The radio link layer 402 is configured to obtain a first transmission parameter of a probe frame in a history period; acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; the radio link layer 402 is further configured to determine an estimated bandwidth of the current period according to the first sending parameter and the second sending parameter, and send the estimated bandwidth to the transport layer 401.
And the transport layer 401 is configured to adjust the sending flow of the current period based on the estimated bandwidth, and perform sending of the streaming media data packet to the other terminal device 400 or receiving of the streaming media data packet sent by the other terminal device.
It should be noted that the radio link layer 402 and the transport layer 401 are further respectively configured to perform corresponding steps in different embodiments shown in fig. 1 to 3. If the radio link layer 402 is further configured to perform the above steps S202 to S205, the transport layer 401 is configured to perform the steps S303 to S305. According to the technical scheme, the bandwidth of the current period is estimated through the wireless link layer to obtain the estimated bandwidth, the estimated bandwidth obtained through estimation is fed back to the transmission layer and the application layer, the transmission layer adjusts the congestion control strategy in a rational mode, the application layer adjusts the transmission code rate of the streaming media, and then the transmission performance of the streaming media is improved.
In the technical scheme provided by the application, on the basis of the original congestion control strategy of the transmission layer, the estimated bandwidth calculated by the wireless link layer based on the first sending parameter and the second sending parameter is further referred, so that the technical problem that the network congestion is considered when the reply of the opposite end cannot be received can be solved; meanwhile, the problem that the existing wireless network has large fluctuation and the adjustment of the code rate is necessarily lagged if the adjustment depends on whether the packet loss occurs in a transmission layer or an application layer is solved. According to the technical scheme provided by the application, the bandwidth of the current period is estimated through the wireless link layer and fed back to the transmission layer, so that the transmission layer refers to the estimated bandwidth obtained by the transmission layer, the sending flow of the current period for transmitting the streaming media data packet is adjusted in advance, the video blockage can be effectively relieved, and the streaming media transmission performance can be well improved.
Only the radio link layer 402 and the transport layer 401 of the terminal device 400 relevant to the present application are shown in fig. 4, and other hierarchical structures in the terminal device 400 are not described in detail herein.
Please refer to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a terminal device according to the present application. In the present embodiment, the terminal device 500 provided by the present application includes a processor 501, and a memory 502 and a communication circuit 503 coupled to the processor 501. The terminal device 500 may perform the method described in any of the embodiments of fig. 1 to 3 and their counterparts.
The memory 502 includes a local storage (not shown) and is used for storing a computer program, and the computer program can implement the method described in any one of the embodiments of fig. 1 to 3 and corresponding embodiments thereof when executed.
The communication circuit 503 is connected to the processor 501, and is configured to perform interactive communication with other external terminal devices under the control of the processor 501, so as to transmit or receive data. The data transmitted by the communication circuit 503 at least includes a probe request frame and a streaming media data packet, and the data received by the communication circuit 503 at least includes a probe reply frame and a streaming media data packet.
The processor 501 is coupled to the memory 502 and the communication circuit 503, respectively, and the processor 501 is configured to run a computer program to perform the method as described in any of the embodiments of fig. 1 to 4 and corresponding embodiments thereof. Further, in some embodiments, the terminal device may include any one of a mobile terminal, a computer, a walkie-talkie device with computing and storing capabilities, a server, and the like, and may also include any other type of device that communicates with the outside based on a wireless link.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium according to the present application. The computer-readable storage medium 600 stores a computer program 601 capable of being executed by a processor, where the computer program 601 is used to implement the method for improving streaming media transmission performance as described in any one of the embodiments of fig. 1 to fig. 3 and their counterparts. Specifically, the computer-readable storage medium 600 may be one of a memory, a personal computer, a server, a network device, or a usb disk, and is not limited in any way herein.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (12)

1. A method for improving streaming media transmission performance, the method comprising:
acquiring a first sending parameter of a detection frame in a history period; and
acquiring a second transmission parameter of the streaming media data packet transmitted in the history period;
determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter;
and adjusting the sending flow of the current period based on the pre-estimated bandwidth.
2. The method for improving streaming media transmission performance according to claim 1,
the first transmission parameters of the sounding frame include at least one of: a frame length, a transmission timestamp, and a first transmission rate;
the second sending parameter of the streaming media data packet comprises at least one of the following: a second transmission rate, a number of transmitted packets, and a number of lost packets.
3. The method of claim 2, wherein the probe frame comprises a probe request frame and a probe reply frame, and wherein the first transmission parameter comprises a frame length of the probe request frame, a transmission time stamp of the probe request frame and a first transmission rate of the probe request frame, and a frame length of the probe reply frame and a reception time stamp of the probe reply frame.
4. The method of claim 3, wherein the determining the estimated bandwidth of the current period according to the first sending parameter and the second sending parameter further comprises:
obtaining a first parameter based on the frame lengths of the probe request frame and the probe reply frame, and the sending time stamp of the probe request frame and the receiving time stamp of the probe reply frame;
obtaining a second parameter based on the first sending rate and the second sending rate;
obtaining a third parameter based on the packet loss number and the packet sending number;
and obtaining the estimated bandwidth of the current period by using the first parameter, the second parameter and the third parameter.
5. The method according to claim 4, wherein obtaining the first parameter based on the frame lengths of the probe request frame and the probe reply frame and the transmission timestamps of the probe request frame and the probe reply frame comprises:
taking the ratio of the sum of the frame lengths of the detection request frame and the detection reply frame to the difference of the sending time stamps of the detection request frame and the detection reply frame as a first parameter;
obtaining a second parameter based on the first sending rate and the second sending rate, including:
taking a ratio between the second sending rate and the first sending rate as a second parameter;
obtaining a third parameter based on the packet loss number and the packet sending number, wherein the third parameter comprises:
taking the ratio of the packet loss number to the packet sending number as a third parameter;
the obtaining the estimated bandwidth of the current period by using the first parameter, the second parameter and the third parameter includes:
and taking the product of the first parameter, the second parameter and the third parameter as the estimated bandwidth of the current period.
6. The method of claim 1, wherein the adjusting the sending traffic of the current period based on the estimated bandwidth further comprises:
acquiring a first bandwidth of the current period;
performing weighted calculation on the first bandwidth and the estimated bandwidth to obtain the final bandwidth of the current period;
and adjusting the sending flow of the current period according to the final bandwidth.
7. The method of claim 6, wherein the adjusting the sending traffic of the current period according to the final bandwidth further comprises at least one of the following steps:
if the final bandwidth is smaller than the sending flow, the sending flow is reduced until the sending flow is smaller than the final bandwidth;
if the final bandwidth is greater than or equal to the sending flow, obtaining a difference value between the final bandwidth and the sending flow, and if the difference value is judged to be greater than or equal to a preset threshold value, increasing the sending flow so that the difference value between the final bandwidth and the sending flow is smaller than the preset threshold value.
8. The method for improving streaming media transmission performance according to claim 6,
the obtaining of the first bandwidth of the current period further includes:
determining the first bandwidth according to the streaming media data packet to be transmitted in the current period and the wireless state; or
And determining the first bandwidth according to the streaming media data packet required to be transmitted in the current period, the wireless state and the final bandwidth of the historical period.
9. The method of claim 1, wherein the history period is a previous period.
10. A terminal device, characterized in that the terminal device comprises a radio link layer and a transport layer;
the wireless link layer is used for acquiring a first transmission parameter of a probe frame in a history period; acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; the wireless link layer is further used for determining the pre-estimated bandwidth of the current period according to the first sending parameter and the second sending parameter, and sending the pre-estimated bandwidth to the transmission layer;
and the transmission layer is used for adjusting the sending flow of the current period based on the estimated bandwidth and sending the streaming media data packet to other terminal equipment or receiving the streaming media data packet sent by other terminal equipment.
11. A terminal device comprising a processor and memory and communication circuitry coupled to the processor; wherein the content of the first and second substances,
the memory is used for storing a computer program;
the communication circuit is used for interacting with other terminal equipment under the control of the processor;
the processor is configured to run the computer program to perform the method of any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that the storage medium stores a computer program which can be executed by a processor, the computer program, when being executed by the processor, implementing the steps of the method according to any one of claims 1-9.
CN202110605067.8A 2021-05-31 2021-05-31 Method and related device for improving streaming media transmission performance Active CN113542215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110605067.8A CN113542215B (en) 2021-05-31 2021-05-31 Method and related device for improving streaming media transmission performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110605067.8A CN113542215B (en) 2021-05-31 2021-05-31 Method and related device for improving streaming media transmission performance

Publications (2)

Publication Number Publication Date
CN113542215A true CN113542215A (en) 2021-10-22
CN113542215B CN113542215B (en) 2023-04-25

Family

ID=78124514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110605067.8A Active CN113542215B (en) 2021-05-31 2021-05-31 Method and related device for improving streaming media transmission performance

Country Status (1)

Country Link
CN (1) CN113542215B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002086A (en) * 2022-05-23 2022-09-02 阿里巴巴(中国)有限公司 Real-time streaming media transmission method and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205318A1 (en) * 2009-02-09 2010-08-12 Miguel Melnyk Method for controlling download rate of real-time streaming as needed by media player
CN102231898A (en) * 2011-07-05 2011-11-02 深圳市融创天下科技股份有限公司 Network bandwidth self-adaptive QOS (quality of service) transmission method and system and terminal device
CN103650449A (en) * 2011-11-18 2014-03-19 华为技术有限公司 Media stream sending method and server
GB201513519D0 (en) * 2015-07-31 2015-09-16 Imagination Tech Ltd Estimating processor load
CN108234224A (en) * 2016-12-13 2018-06-29 腾讯科技(深圳)有限公司 The detection method and device of available bandwidth
CN110266551A (en) * 2019-07-29 2019-09-20 腾讯科技(深圳)有限公司 A kind of bandwidth prediction method, apparatus, equipment and storage medium
CN111741248A (en) * 2020-05-26 2020-10-02 视联动力信息技术股份有限公司 Data transmission method, device, terminal equipment and storage medium
WO2021012869A1 (en) * 2019-07-25 2021-01-28 广州市百果园信息技术有限公司 Transmission rate determination method and device, apparatus, and storage medium
CN112491658A (en) * 2020-12-02 2021-03-12 广州虎牙科技有限公司 Bandwidth estimation method and device, electronic equipment and computer-readable storage medium
WO2021081889A1 (en) * 2019-10-31 2021-05-06 华为技术有限公司 Method for determining frame error ratio and related device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100205318A1 (en) * 2009-02-09 2010-08-12 Miguel Melnyk Method for controlling download rate of real-time streaming as needed by media player
CN102231898A (en) * 2011-07-05 2011-11-02 深圳市融创天下科技股份有限公司 Network bandwidth self-adaptive QOS (quality of service) transmission method and system and terminal device
CN103650449A (en) * 2011-11-18 2014-03-19 华为技术有限公司 Media stream sending method and server
GB201513519D0 (en) * 2015-07-31 2015-09-16 Imagination Tech Ltd Estimating processor load
CN108234224A (en) * 2016-12-13 2018-06-29 腾讯科技(深圳)有限公司 The detection method and device of available bandwidth
WO2021012869A1 (en) * 2019-07-25 2021-01-28 广州市百果园信息技术有限公司 Transmission rate determination method and device, apparatus, and storage medium
CN110266551A (en) * 2019-07-29 2019-09-20 腾讯科技(深圳)有限公司 A kind of bandwidth prediction method, apparatus, equipment and storage medium
WO2021081889A1 (en) * 2019-10-31 2021-05-06 华为技术有限公司 Method for determining frame error ratio and related device
CN111741248A (en) * 2020-05-26 2020-10-02 视联动力信息技术股份有限公司 Data transmission method, device, terminal equipment and storage medium
CN112491658A (en) * 2020-12-02 2021-03-12 广州虎牙科技有限公司 Bandwidth estimation method and device, electronic equipment and computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002086A (en) * 2022-05-23 2022-09-02 阿里巴巴(中国)有限公司 Real-time streaming media transmission method and electronic equipment
CN115002086B (en) * 2022-05-23 2024-04-02 阿里巴巴(中国)有限公司 Real-time streaming media transmission method and electronic equipment

Also Published As

Publication number Publication date
CN113542215B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
US11044290B2 (en) TCP cross traffic rate control
CN106255149B (en) Media data transmission method and device
KR101472922B1 (en) Wireless transmission rate control method
CN106301684B (en) Media data transmission method and device
CN104618195A (en) Bandwidth estimation method and device
US9510354B2 (en) Method and a device for low intrusive fast estimation of the bandwidth available between two IP nodes
CN112821992B (en) Data transmission method, device, electronic equipment and storage medium
CN113938945B (en) Method and device for sending data packet
WO2015069944A1 (en) Systems and methods for proactive congestion detection in radio access networks
CN111756641A (en) Adjusting method of sending equipment and communication device
JP2014532379A (en) Data transmission control
CN113542215A (en) Method for improving streaming media transmission performance and related device
US11190430B2 (en) Determining the bandwidth of a communication link
Lee et al. Enhancing voice over WLAN via rate adaptation and retry scheduling
CN111682975B (en) Network state prediction method, device, electronic equipment and storage medium
Tuysuz et al. Exploiting the channel using uninterrupted collision‐free MAC adaptation over IEEE 802.11 WLANs
EP3366060B1 (en) Allocating radio resources in a cellular network
Yuan et al. iVoIP: an intelligent bandwidth management scheme for VoIP in WLANs
CN114079652A (en) Data processing method
CN113179534B (en) Wireless transmission quality assessment method and device
Narbutt et al. Experimental investigation on VoIP performance and the resource utilization in 802.11 b WLANs
CN116232442B (en) Communication method, device and storage medium based on TCP/IP protocol and CCSDS protocol
CN114172848B (en) Communication method and device
HASSANI Achieving Low Delay & High Rate in 802.11 ac Edge Networks
Fridayansah et al. Enhancement of Adaptive Auto Rate Fallback with Collision Detection for IEEE 802.11 n/ac WLANs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant