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

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

Info

Publication number
CN113542215B
CN113542215B CN202110605067.8A CN202110605067A CN113542215B CN 113542215 B CN113542215 B CN 113542215B CN 202110605067 A CN202110605067 A CN 202110605067A CN 113542215 B CN113542215 B CN 113542215B
Authority
CN
China
Prior art keywords
transmission
bandwidth
streaming media
frame
parameter
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.)
Active
Application number
CN202110605067.8A
Other languages
Chinese (zh)
Other versions
CN113542215A (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 transmission parameter of a detection frame of a history period; obtaining a second transmission parameter of the streaming media data packet transmitted in the history period; determining the estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter; and adjusting the sending flow of the current period based on the estimated bandwidth. According to the method provided by the invention, the estimated bandwidth of the period of the shift is determined according to the first transmission parameter and the second transmission parameter, so that the transmission flow can be regulated and controlled more accurately according to the estimated bandwidth under the condition that the error rate is not influenced, 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 and related device for improving streaming media transmission performance
Technical Field
The present invention relates to the field of data transmission, and in particular, to a method and related apparatus for improving streaming media transmission performance.
Background
The OSI model is covered during streaming media transmission. During streaming media transmission, the transport layer in the OSI model adjusts the transmission traffic, i.e. congestion control, in real time according to the network conditions. However, if congestion control policy control is used under the radio link, the error rate becomes high, and the accuracy of the streaming media transmission is further affected, so a technical solution is needed that can solve the above-mentioned problems.
Disclosure of Invention
The technical problem that this application mainly solves is to provide a method and relevant device that promotes streaming media transmission performance, realizes more accurately regulating and controlling the sending flow under the condition that does not influence the error rate, and then promotes streaming media transmission performance.
In order to solve the technical problems, one technical scheme adopted by the application is as follows: a method for improving streaming media transmission performance is provided, the method comprising:
acquiring a first transmission parameter of a detection frame of a history period; and
acquiring a second transmission parameter of the streaming media data packet transmitted in the history period;
determining an estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter;
and adjusting the sending flow of the current period based on the estimated bandwidth.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: providing a terminal device, wherein the terminal device comprises a wireless link layer and a transmission layer;
the wireless link layer is used for acquiring a first transmission parameter of a detection frame of a history period; obtaining a second transmission parameter of the streaming media data packet transmitted in the history period; the wireless link layer is further configured to determine an estimated bandwidth of a current period according to the first transmission parameter and the second transmission parameter, and send the 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 the other terminal equipment.
In order to solve the technical problem, another technical scheme adopted by the application is as follows: providing a terminal device comprising a processor, a memory coupled to the processor, and a communication circuit; wherein, the liquid crystal display device comprises a liquid crystal display device,
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 of the above.
In order to solve the technical problem, a further technical scheme adopted by the application is as follows: there is provided a computer readable storage medium storing a computer program executable by a processor, the computer program implementing the steps of the method as claimed in any one of the preceding claims when executed by the processor.
The beneficial effects of this application are: different from the situation of the prior art, the method for improving the transmission performance of the streaming media and the related device provided by the application are characterized in that the first transmission parameters of the detection frames of the history period are obtained; obtaining a second transmission parameter of the streaming media data packet transmitted in the history period; determining the estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter; and adjusting the sending flow of the current period based on the estimated bandwidth. According to the method provided by the invention, the estimated bandwidth of the period of the shift is determined according to the first transmission parameter and the second transmission parameter, so that the transmission flow can be regulated and controlled more accurately according to the estimated bandwidth under the condition that the error rate is not influenced, and the transmission performance of the streaming media is further improved.
Drawings
Fig. 1 is a flow chart illustrating an embodiment of a method for improving streaming media transmission performance according to the present application;
FIG. 2 is a flow chart 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 disclosure;
fig. 4 is a schematic structural diagram of an embodiment of a terminal device in the present application;
fig. 5 is a schematic structural diagram of an embodiment of a terminal device in the present application;
FIG. 6 is a schematic diagram illustrating the structure of a computer-readable storage medium according to an embodiment of 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 for purposes of illustration only and are not limiting. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the present application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Firstly, it should be noted that the method for improving the transmission performance of the streaming media provided by the present application is applied in the environment of the wireless link, and is specifically used for improving the transmission performance of the streaming media transmitted by the wireless link.
Referring to fig. 1, fig. 1 is a flow chart illustrating an embodiment of a method for improving streaming media transmission performance according to the present application.
S110: the method comprises the steps of obtaining a first transmission parameter of a detection frame of a history period and obtaining a second transmission parameter of a streaming media data packet transmitted in the history period.
When streaming media transmission is performed by using a wireless link, the terminal device firstly acquires a first transmission parameter of a probe frame in a history period and acquires a second transmission parameter of a streaming media data packet transmitted in the history period. The period is a preset time interval for adjusting the size of the transmission flow, and the length of the period can be specifically determined according to the accuracy requirement for adjusting the transmission flow and/or the computing capability of the terminal device, which is not specifically limited herein. If the transmission flow needs to be very accurately adjusted, the cycle length is set smaller, for example, a cycle length of 0.5s can be set; conversely, the period length may be set slightly larger, for example, one period length may be set to 1s.
Further, in an embodiment, the terminal device may acquire the first transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet transmitted in the 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 first transmission parameter of the probe frame and the second transmission parameter of the streaming media data packet transmitted in each period are recorded and stored in the storage area. Correspondingly, step S110 may also be to obtain, from the storage area, a first transmission parameter of a probe frame of a history period and a second transmission parameter of a streaming media data packet transmitted in the history period.
Further, in an embodiment, the history period in step S110 includes the last period. Then, correspondingly, step S110 is: the method comprises the steps of obtaining a first transmission parameter of a detection frame of a previous period and obtaining a second transmission parameter of a 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 the actual requirement, which is not limited herein. When n is greater than or equal to 1, in step S110, a first transmission parameter of a probe frame of a plurality of history periods and a second transmission parameter of a streaming media packet transmitted in a plurality of corresponding history periods are obtained.
Still further, when the history period includes n periods before the current period is counted, after the first transmission parameters of the probe frames and the second transmission parameters of the streaming media data packet of the n periods are obtained, the method further includes calculating the obtained first transmission parameters of the probe frames and the second transmission parameters of the streaming media data packet of the n periods according to a preset transmission parameter weight ratio, so as to obtain a more accurate final first transmission parameter of the probe frames and a more accurate final second transmission parameter of the streaming media data packet of the history period. The closer the time period is to the current period, the more the transmission parameter of the historical period has 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 historical period far from the current period. If the first transmission parameters of the 3 periods before the current period and the second transmission parameters of the streaming media data packet are acquired, the transmission parameter weight of the first period before the current period is set to 0.6, the transmission parameter weight of the second period before the current period is set to 0.3, the transmission parameter weight of the third period before the current period is set to 0.1, then the first transmission parameters of the three periods before the current period and the second transmission parameters of the streaming media data packet are acquired, the first transmission parameters of the detection frames and the second transmission parameters of the streaming media data packet in each period are multiplied by the transmission parameter weight of each period, and then the final first transmission parameters of the detection frames and the final second transmission parameters of the streaming media data packet in the history period in the current period are obtained.
Wherein the first transmission parameter of the probe frame comprises at least one of: frame length, transmit timestamp, and first transmit rate. The transmission time stamp of the probe frame is the transmission time of the probe frame, and the first transmission rate of the probe frame is the transmission rate of the probe frame selected by the terminal device of the sender. The first sending rate is a low-speed rate selected by the sender, so that the terminal equipment of the receiver can accurately receive the detection frame. Further, the first sending rate may be a pre-stored rate in the terminal device, and the terminal device stores a plurality of different first sending rates respectively corresponding to different communication protocols in advance, so as to select for use when transmitting streaming media data.
Further, the probe frames include a probe request frame and a probe reply frame. Correspondingly, in step S110, the first transmission parameters of the probe request frame and the probe reply frame corresponding to the probe request frame in the history period 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. The receiving timestamp of the probe reply frame is the time when the sender terminal equipment receives the probe reply frame.
The second transmission parameter of the streaming media data packet includes at least one of: second sending rate, number of packets sent and number of packet loss. The second sending rate is a sending rate selected when the sender terminal device sends the streaming media data packet to the receiver 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 an actual requirement, and then the sender terminal device selects a second sending rate within the set range of the second sending rate according to an actual environment when sending the streaming media data packet. The sending number of the streaming media data packets is the total number of the streaming media data packets sent by the sender terminal equipment in the period; the packet loss number of the streaming media data packets is the number of data packets which are not received by the receiving side terminal device in the streaming media data packets sent by the sending side terminal device in the period.
S120: and determining the estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter.
After the first transmission parameter and the second transmission parameter are acquired, determining the estimated bandwidth of the current period according to the acquired first transmission parameter and second transmission parameter. The estimated bandwidth is an estimated value of the bandwidth required by the current period obtained by calculating according to the parameters of the historical period, and can be used as a reference to adjust the transmission flow. In other embodiments, the estimated bandwidth may also be understood as: the sender terminal equipment determines the bandwidth estimated value of the current period according to the first transmission parameter of the detection frame and the second transmission parameter of the streaming media data packet in the history period.
Further, in an embodiment, if the first transmission parameters of the probe frames and the second transmission parameters of the transmitted streaming media data packet of the plurality of history periods before the current period are obtained in step S110, the estimated bandwidth of the current period is determined according to the obtained first transmission parameters of the probe frames and the second transmission parameters of the transmitted streaming media data packet of the plurality of history periods in step S120.
Further, in another embodiment, if the first transmission parameters of the plurality of history period probe frames and the second transmission parameters of the transmitted streaming media data packet before the current period are obtained in step S110, and the calculation is required to obtain the final first transmission parameters of the more accurate history period probe frames and the final second transmission parameters of the streaming media data packet according to the preset weights of the history periods and the obtained first transmission parameters of the plurality of history period probe frames and the second transmission parameters of the streaming media data packet, 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 determining the estimated bandwidth of the current period, adjusting the size of the transmission flow of the current period based on the obtained estimated bandwidth. The sending flow is the rate selected by the sender in the current period and used 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 weighted, so as to obtain a final bandwidth, and then the transmission traffic of the current period is adjusted according to the obtained final bandwidth. At this time, if the final bandwidth is greater than the transmission traffic, the transmission traffic may not be adjusted; if the final bandwidth is smaller than the transmission traffic, the current bandwidth cannot support the currently selected transmission traffic, and the transmission traffic is reduced.
In another embodiment, in step S130, the 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 obtained final bandwidth.
In the embodiment corresponding to fig. 1 of the present application, a first transmission parameter of a probe frame of a history period is obtained; obtaining a second transmission parameter of the streaming media data packet transmitted in the history period; determining the estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter; and adjusting the sending flow of the current period based on the estimated bandwidth. According to the method provided by the invention, the estimated bandwidth of the period of the shift is determined according to the first transmission parameter and the second transmission parameter, so that the transmission flow can be regulated and controlled more accurately according to the estimated bandwidth under the condition that the error rate is not influenced, and the transmission performance of the streaming media is further improved.
Referring to fig. 2, fig. 2 is a flow chart 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: the method comprises the steps of obtaining a first transmission parameter of a detection frame of a history period and obtaining a second transmission parameter of a streaming media data packet transmitted in the history period.
In the present embodiment, step S201 is the same as step S110 described above, and specific reference may be made to the description of the corresponding parts above, and detailed description thereof is omitted here.
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 steps S202 to S205 described below.
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 the first transmission parameter of the probe frame of the history period is acquired and the second transmission parameter of the streaming media data packet transmitted in the history period is acquired, 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 time stamp of the probe request frame and the reception time stamp of the probe reply frame. Wherein, as above, the receiving timestamp of the probe reply frame is the time when the sender terminal device receives the probe 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 used as a first parameter. For example, in one embodiment, the frame length of the probe request frame is denoted as L 1 The frame length of the detection reply frame is recorded as L 2 The sending time stamp of the probe request frame is t 1 Stamping the reception time of the probe reply frame as t 2 First isThe parameters are
Figure BDA0003094016210000081
S203: and obtaining a second parameter based on the first transmission rate and the second transmission rate.
And then further calculating and obtaining 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 recorded as TxRate cur The sending rate of the probe request frame is recorded as TxRate basic Correspondingly, 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 and obtaining a third parameter according to the obtained packet loss number and packet sending number of the streaming media data packets in the history period.
Further, step S204 includes: and taking the ratio of the packet loss number to the packet sending number as a third parameter. For example, the packet loss number of the streaming media data packet is recorded as Tx drop The number of packets Tx for transmitting streaming media data packets all The corresponding third parameter is
Figure BDA0003094016210000083
Here, the execution order of steps S202, S203, and S204 is not limited, and steps S202, S203, and S204 may be executed sequentially, simultaneously, or in other order, and is not limited in any way.
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 calculated and obtained further based on the obtained first parameter, second parameter and third parameter.
Further, step S205 includes: 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 BW est The formula is:
Figure BDA0003094016210000091
s206: and adjusting the sending flow of the current period based on the estimated bandwidth.
In the present embodiment, the step S206 is the same as the step S130 described above, and specific reference may be made to the description of the corresponding parts above, which is not repeated here.
Referring to fig. 3, fig. 3 is a flow chart 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: the method comprises the steps of obtaining a first transmission parameter of a detection frame of a history period and obtaining a second transmission parameter of a streaming media data packet transmitted in the history period.
S302: and determining the estimated bandwidth of the current period according to the first transmission parameter and the second transmission parameter.
In the present embodiment, step S301 and step S302 are the same as the corresponding step S110 and step S120, and specific reference may be made to the description of the corresponding parts above, which is not repeated here. And step S130 in fig. 1 above adjusts the transmission traffic of the current period based on the estimated bandwidth, and further includes steps S303 to S305 in the current embodiment.
S303: a first bandwidth of a current period is acquired.
After determining the estimated bandwidth, the receiving terminal device further obtains the first bandwidth of the current period. The first bandwidth is a bandwidth 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 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 a first bandwidth according to the streaming media data packet to be transmitted in the current period and the wireless state.
In another embodiment, step S303 further includes: and determining a first bandwidth according to the streaming media data packet 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 transmitting the streaming media data packet currently required, 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 before 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 weighting operation may be performed on the obtained final bandwidths of the plurality of periods before the current period 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, the wireless state and the reference final bandwidth that need to be transmitted in the current period. The final bandwidth is calculated based on the final bandwidths of the historical periods and the preset final bandwidth weight ratio of each period.
For example, in an embodiment, when the first bandwidth is determined by acquiring the final bandwidths of 3 periods before the current period, the final bandwidth weight of the first period before the current period is set to 0.5, the final bandwidth weight of the second period before the current period is set to 0.3, the final bandwidth weight of the third period before the current period is set to 0.2, and then after the final bandwidths of three periods before the current period are acquired, the final bandwidths of the respective periods are multiplied by the final bandwidth weights of the respective periods, and then the reference final bandwidth is obtained. Wherein the reference final bandwidth is a bandwidth obtained by weighted summing of final bandwidths of the plurality of history periods, and the reference final bandwidth is a first bandwidth for determining the current period.
S304: and carrying out 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 weighted 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 transmitting 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. If the core weight ratio of the estimated bandwidth and the first bandwidth of the current period may be preset to be 0.5, then the corresponding step S304 may be understood as calculating the 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 is set to 0.6, and then the product of the value of the estimated bandwidth multiplied by 0.4 and the product of the value of the first bandwidth multiplied by 0.6 are 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 determining the final bandwidth, further comparing the final bandwidth with the transmission flow of the current period, and adjusting the transmission flow of the current period according to the final comparison result.
Further, step S305 includes: and if the final bandwidth is smaller than the transmission flow, reducing the transmission flow to the transmission flow smaller than the final bandwidth. If the final bandwidth is smaller than the transmission traffic, the current wireless environment cannot support the transmission of the current transmission traffic, so that the transmission traffic needs to be reduced to be smaller than the final bandwidth in order to avoid data accumulation or loss.
In an embodiment, if the final bandwidth is greater than or equal to the transmission traffic, the transmission traffic may not be adjusted.
In another embodiment, if the final bandwidth is greater than or equal to the transmission traffic, in order to more fully utilize the bandwidth resources, the method provided in the present application further obtains the difference between the final bandwidth and the transmission traffic. And then further judging whether the difference value is larger than or equal to a preset threshold value, and when the difference value is judged to be larger than or equal to the preset threshold value, regulating the sending flow so that the difference value between the final bandwidth and the sending flow is smaller than the preset threshold value, further better utilizing bandwidth resources and rapidly completing the sending of the streaming media data. The preset threshold is a preset threshold, and is used for judging whether the condition of bandwidth resource waste exists or not, if the difference value between the final bandwidth and the sending flow is smaller than the preset threshold, the condition that the bandwidth resource waste does not exist is indicated; otherwise, if the difference between the final bandwidth and the transmission flow is greater than or equal to the preset threshold, it indicates that there is bandwidth resource waste, and the transmission flow needs to be enlarged.
In other embodiments, if the final bandwidth is greater than or equal to the transmission traffic and it is determined that the number of remaining streaming media data packets to be transmitted is small, the transmission traffic may not be adjusted, and the streaming media data packets may be transmitted while maintaining the existing transmission traffic.
Meanwhile, under the condition that the features included in the embodiments are not contradictory, the features in the embodiments can 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 an embodiment of a terminal device 400 according to the present application. In the current embodiment, the terminal device 400 provided in the present application includes a radio link layer 402 and a transport layer 401.
Wherein, the radio link layer 402 is configured to obtain a first transmission parameter of a probe frame of a history period; obtaining 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 transmission parameter and the second transmission parameter, and send the estimated bandwidth to the transport layer 401.
And the transmission layer 401, the transmission layer 401 is configured to adjust the transmission flow of the current period based on the estimated bandwidth, and perform sending the streaming media data packet to the other terminal device 400 or receiving 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 also used to execute the steps corresponding to the different embodiments of fig. 1 to 3. The radio link layer 402 is further used for performing the steps S202 to S205, and the transport layer 401 is used for performing the steps S303 to S305. According to the technical scheme, the estimated bandwidth is obtained by estimating the bandwidth of the current period through the wireless link layer, and the estimated bandwidth is fed back to the transmission layer and the application layer, so that the congestion control strategy is adjusted by the transmission layer, the streaming media transmission code rate is adjusted by the application layer, and further the streaming media transmission performance is improved.
According to the technical scheme provided by the application, on the basis of the original congestion control strategy of the transmission layer, the estimated bandwidth obtained by calculation of the wireless link layer based on the first transmission parameter and the second transmission parameter is further referred to, so that the technical problem that network congestion is considered when no opposite-end reply is received can be solved; meanwhile, the problem that the existing wireless network has larger fluctuation and the code rate is inevitably delayed if the transmission layer or the application layer is completely depended on whether to lose packets or not is solved. 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, the sending flow of the streaming media data packet transmitted in the current period is adjusted in advance, the situation of video blocking can be effectively relieved, and the streaming media transmission performance can be improved well.
Only the radio link layer 402 and the transport layer 401 of the terminal device 400 relevant to this case are shown in fig. 4, and other hierarchical structures in the terminal device 400 are not described in detail here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a terminal device in the present application. In the present embodiment, the terminal device 500 provided herein 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 methods described in any of the embodiments of fig. 1-3 and their counterparts.
The memory 502 includes a local storage (not shown) and is configured to store a computer program that, when executed, implements the methods described in any of the embodiments of fig. 1-3 and their counterparts.
The communication circuit 503 is connected to the processor 501 and is configured to perform interactive communication with an external other terminal device under the control of the processor 501, so as to transmit or receive data. The data that the communication circuit 503 is configured to send includes at least a probe request frame and a streaming media data packet, and the data that the communication circuit 503 is configured to receive includes at least a probe reply frame and a streaming media data packet.
Processor 501 is coupled to memory 502 and communication circuit 503, respectively, processor 501 being configured to execute a computer program to perform the methods described above in any of fig. 1-4 and their corresponding embodiments. Further, in some embodiments, the terminal device may include any one of a mobile terminal, a computer, a intercom device with computing capability, 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 that can be executed by a processor, the computer program 601 being configured to implement the method for improving streaming media transmission performance as described in any of the embodiments of fig. 1 to 3 and corresponding thereto. Specifically, the computer readable storage medium 600 may be one of a memory, a personal computer, a server, a network device, a usb disk, etc., which is not limited in this regard.
The foregoing is only the embodiments of the present application, and not the patent scope of the present application is limited by the foregoing description, but all equivalent structures or equivalent processes using the contents of the present application and the accompanying drawings, or directly or indirectly applied to other related technical fields, which are included in the patent protection scope of the present application.

Claims (10)

1. A method for improving streaming media transmission performance, the method comprising:
acquiring a first transmission parameter of a detection frame of a history period; and
acquiring a second transmission parameter of the streaming media data packet transmitted in the history period; wherein, the probe frame includes a probe request frame and a probe reply frame, and the first transmission parameters of the probe frame include: the frame length of the probe request frame, the sending time stamp of the probe request frame, the first sending rate of the probe request frame, the frame length of the probe reply frame and the receiving time stamp of the probe reply frame, and the second sending parameters of the streaming media data packet include: the second sending rate, the number of packets sent and the number of packet losses;
taking the ratio between the sum of the frame lengths of the probe request frame and the probe reply frame and the difference between the sending time stamps of the probe request frame and the probe reply frame as a first parameter; taking the ratio between the second sending rate and the first sending rate as a second parameter; taking the ratio of the packet loss number to the packet sending number as a third parameter; taking the product of the first parameter, the second parameter and the third parameter as the estimated bandwidth of the current period;
and adjusting the sending flow of the current period based on the estimated bandwidth.
2. The method according to claim 1, wherein the history period includes a number of periods before the current period, and the first transmission parameter of the probe frame of the history period is obtained; obtaining a second transmission parameter of the streaming media data packet transmitted in the history period; comprising the following steps:
and respectively carrying out weighted calculation on the first transmission parameters of the detection frames in the plurality of periods and the second transmission parameters of the streaming media data packets according to the preset transmission parameter weight ratio to obtain the first transmission parameters of the detection frames in the history period and the second transmission parameters of the streaming media data packets transmitted in the history period.
3. The method according to claim 2, wherein the preset transmission parameter weight corresponding to the period close to the current period is greater than the preset transmission parameter weight corresponding to the period far from the current period among the plurality of periods.
4. The method for improving transmission performance of streaming media according to claim 1, wherein said adjusting the transmission 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 a final bandwidth of the current period;
and adjusting the sending flow of the current period according to the final bandwidth.
5. The method for improving transmission performance of streaming media according to claim 4, wherein said adjusting the transmission 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 to the state that the sending flow is smaller than the final bandwidth;
and if the final bandwidth is larger than or equal to the sending flow, acquiring a difference value between the final bandwidth and the sending flow, and if the difference value is larger than or equal to a preset threshold value, regulating the sending flow to ensure that the difference value between the final bandwidth and the sending flow is smaller than the preset threshold value.
6. The method for improving transmission performance of streaming media of claim 4,
the obtaining 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 alternatively
And determining the first bandwidth according to the streaming media data packet to be transmitted in the current period, the wireless state and the final bandwidth of the historical period.
7. The method of claim 1, wherein the history period is a last period.
8. A terminal device, wherein 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 detection frame of a history period; obtaining a second transmission parameter of the streaming media data packet transmitted in the history period; wherein, the probe frame includes a probe request frame and a probe reply frame, and the first transmission parameters of the probe frame include: the frame length of the probe request frame, the sending time stamp of the probe request frame, the first sending rate of the probe request frame, the frame length of the probe reply frame and the receiving time stamp of the probe reply frame, and the second sending parameters of the streaming media data packet include: the second sending rate, the number of packets sent and the number of packet losses;
the radio link layer is further configured to use a ratio between a sum of frame lengths of the probe request frame and the probe reply frame and a difference between transmission time stamps of the probe request frame and the probe reply frame as a first parameter; taking the ratio between the second sending rate and the first sending rate as a second parameter; taking the ratio of the packet loss number to the packet sending number as a third parameter; taking the product of the first parameter, the second parameter and the third parameter as the estimated bandwidth of the current period, and sending the 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 the other terminal equipment.
9. A terminal device comprising a processor and a memory and communication circuit coupled to the processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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 being operative to execute the computer program to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program executable by a processor, which computer program, when executed by the processor, implements the steps of the method according to any of claims 1-7.
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 CN113542215A (en) 2021-10-22
CN113542215B true 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)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
WO2021081889A1 (en) * 2019-10-31 2021-05-06 华为技术有限公司 Method for determining frame error ratio and related device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8775665B2 (en) * 2009-02-09 2014-07-08 Citrix Systems, Inc. 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
WO2013071517A1 (en) * 2011-11-18 2013-05-23 华为技术有限公司 Media stream sending method and server
GB2542984B (en) * 2015-07-31 2020-02-19 Imagination Tech Ltd Identifying network congestion based on a processor load and receiving delay
CN108234224B (en) * 2016-12-13 2020-04-24 腾讯科技(深圳)有限公司 Available bandwidth detection method and device
CN110266551B (en) * 2019-07-29 2021-06-25 腾讯科技(深圳)有限公司 Bandwidth prediction method, device, equipment and storage medium
CN112491658B (en) * 2020-12-02 2023-01-03 广州虎牙科技有限公司 Bandwidth estimation method and device, electronic equipment and computer-readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021012869A1 (en) * 2019-07-25 2021-01-28 广州市百果园信息技术有限公司 Transmission rate determination method and device, apparatus, 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

Also Published As

Publication number Publication date
CN113542215A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US7680064B2 (en) Wireless communication apparatus and transmission control method
KR101472922B1 (en) Wireless transmission rate control method
JP4495721B2 (en) Differentiating service quality in wireless networks
US10432534B2 (en) Method and device for transmission control in wireless communication system
EP2962434B1 (en) Apparatus and method for measuring and using congestion in a wireless communication system
US9736859B2 (en) Method and apparatus for providing voice service in wireless local area network
JP2011524683A (en) Near field communication
US9510354B2 (en) Method and a device for low intrusive fast estimation of the bandwidth available between two IP nodes
CN100418314C (en) Wireless mobile terminal and telecommunication system
CN104320809A (en) Wireless multi-hop network congestion control method and system based on RTT
CN111465090A (en) Wireless data transmission method and device, storage medium and terminal
JP2003264563A (en) Method for radio link adaptation in network with contention-based medium access
CN113542215B (en) Method and related device for improving streaming media transmission performance
EP2292060B1 (en) Method for achieving an optimal shaping rate for a new packet flow
KR20140088097A (en) Controlling transmission of data
JP2011176693A (en) Mobile radio communication apparatus, tcp flow control device and method of the same
Tuysuz et al. Exploiting the channel using uninterrupted collision‐free MAC adaptation over IEEE 802.11 WLANs
Wang et al. Fairness analysis of throughput and delay in WLAN environments with channel diversities
EP3366060B1 (en) Allocating radio resources in a cellular network
CN110290552B (en) Method and device for measuring cache depth, storage medium and electronic device
US20110038383A1 (en) A technique for transmission by a node of a communications network
US10506613B2 (en) Method and rate controlling node for providing data rate for data communication
JP6142195B2 (en) Wireless communication system, wireless base station, wireless communication method, and program
JP6277775B2 (en) Wireless communication apparatus and communication control program
CN113315773A (en) Code rate adjusting method and device, electronic equipment and storage medium

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