WO2014089752A1 - Stream media transmission method, apparatus and communication device - Google Patents

Stream media transmission method, apparatus and communication device Download PDF

Info

Publication number
WO2014089752A1
WO2014089752A1 PCT/CN2012/086340 CN2012086340W WO2014089752A1 WO 2014089752 A1 WO2014089752 A1 WO 2014089752A1 CN 2012086340 W CN2012086340 W CN 2012086340W WO 2014089752 A1 WO2014089752 A1 WO 2014089752A1
Authority
WO
WIPO (PCT)
Prior art keywords
streaming media
current
data packet
preset
value
Prior art date
Application number
PCT/CN2012/086340
Other languages
French (fr)
Chinese (zh)
Inventor
张力学
熊春山
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280017023.2A priority Critical patent/CN104025524B/en
Priority to PCT/CN2012/086340 priority patent/WO2014089752A1/en
Publication of WO2014089752A1 publication Critical patent/WO2014089752A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of communications, and in particular, to a streaming media transmission rate control method and apparatus, and a communication device.
  • Streaming media refers to multimedia files transmitted by streaming technology on a network. Streaming media transmission enables buffering of multimedia files while playing. At the same time of streaming media playback, the network server performs download buffering according to the capacity of the buffer of the playing terminal. Generally, the size of the streaming media that the buffer of the terminal can accommodate is in minutes, that is, while playing, The size of the buffered file is often a few minutes, ten minutes, or tens of minutes.
  • the embodiments of the present invention provide a streaming media transmission method and device, and a communication device, which are aimed to solve the problem of waste of air interface bandwidth caused by the existing streaming media transmission method.
  • the present invention provides a streaming media transmission method, including:
  • the current buffering parameter of the streaming media is determined according to the streaming media data packet sent by the network side terminal. When the current buffering parameter of the streaming media is greater than the preset first threshold, the transmission rate of the streaming media is decreased.
  • the determining, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media includes:
  • the difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
  • the determining, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media includes:
  • the difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
  • the determining, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media includes:
  • the difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
  • the invention also provides a streaming media transmission device, comprising:
  • a determining module configured to determine a current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal;
  • the rate reduction control module is configured to reduce the transmission rate of the streaming media when a current buffering parameter of the streaming media is greater than a preset first threshold.
  • the determining module includes: a first time value obtaining unit, configured to acquire a preset clock pair to intercept the data packet of the streaming media for the first time to intercept the current data packet The time value for timing; a first current play time calculation unit, configured to add a time interval lower limit value of the data packet of the streaming media that is captured for the first time to the time value, and obtain a current play time of the streaming media;
  • a first detecting unit configured to detect a time interval upper limit value of the current data packet
  • a first determining unit configured to use, as the streaming media, a difference between the time interval upper limit value and the current playing time Current buffering parameters.
  • the determining module includes: a current playing time acquiring unit, configured to acquire a current playing time of the streaming media from the player; and a second detecting unit, configured to detect the current a time interval upper limit value of the data packet; a second determining unit, configured to use a difference between the time interval upper limit value and the current play time as a current buffer parameter of the streaming media.
  • the determining module includes: a second time value obtaining unit, configured to acquire a preset clock pair from the first time sending the data packet of the streaming media to sending the current data The time value at which the packet is timed;
  • a second current playing time calculating unit configured to add a time interval lower limit value of the data packet of the first time sent by the streaming media to the time value, to obtain a current playing time of the streaming media
  • a third detecting unit configured to detect a time interval upper limit value of the currently sent data packet; a third determining unit, configured to use a difference between the time interval upper limit value and the current playing time as the flow The current buffering parameters of the media.
  • the invention also provides a communication device, comprising:
  • the input/output interface is configured to receive a streaming media data packet sent by the network side terminal
  • the processor is configured to determine, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media, when the streaming media is currently When the buffering parameter is greater than the preset first threshold, the transmission rate of the streaming media is reduced.
  • the determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network to the terminal comprises:
  • the determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal comprises:
  • the processor acquires a current playing time of the streaming media from the player; detects a time interval upper limit value of the current data packet; and uses a difference between the time interval upper limit value and the current playing time as the flow The current buffering parameters of the media.
  • the determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal comprises:
  • the processor is configured to acquire a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent; and a time interval of the data packet of the streaming media that is sent for the first time that is obtained in advance Adding a lower limit value to the time value to obtain a current playing time of the streaming media; detecting a time interval upper limit value of the currently transmitted data packet; and setting the time interval upper limit value and the current playing time The difference is used as the current buffer parameter of the streaming media.
  • the streaming media transmission method and device and the communication device disclosed in the embodiment of the present invention calculate the current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal, when the buffering parameter is greater than a preset first threshold.
  • the transmission rate of the streaming media is too high, the transmission rate of the streaming media is reduced. Therefore, by setting the first threshold in advance, the transmission rate of the streaming media in the wireless network can be restricted, so that the streaming media is not buffered excessively when playing the streaming media. Resources, so even if the streaming media is stopped before the broadcast, it can minimize the waste of wireless air interface bandwidth, thereby reducing unnecessary network transmission and improving the utilization of wireless resources.
  • FIG. 1 is a flowchart of a streaming media transmission method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of still another method for transmitting a streaming media according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for transmitting a streaming media according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a streaming media transmission device according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a communication device according to an embodiment of the present invention.
  • the embodiment of the invention discloses a streaming media transmission method. After a streaming media transmission channel is established between the streaming media server and the terminal and the streaming media data packet is started, the mobile communication network calculates according to the streaming media data packet sent by the server to the terminal.
  • the current buffering parameter of the streaming media when the current buffering parameter of the streaming media is greater than a preset first threshold, reducing the transmission rate of the streaming media.
  • the method can also be applied to a streaming media server or a terminal, and the buffering speed of the streaming media in the wireless network is limited by a preset first threshold, so that the streaming media does not buffer excessive content, thereby limiting the streaming media packet.
  • the use of air interface bandwidth to avoid waste of air interface resources.
  • a streaming media transmission method is disclosed, which can be applied to a network element for performing packet deep detection in a 3GPP network, for example, P-GW, S-GW, GGSN, SGSN, RNC, UTRAN or E-UTRAN. And so on, it can also be applied to the media fluid processing network element added in the method of the embodiment.
  • the streaming media server establishes a transmission channel with the terminal and sends the streaming media data packet to the terminal through the transmission channel, as shown in FIG. 1, the method includes:
  • S101 Obtain a preset clock value for time when the data packet of the streaming media is intercepted for the first time to intercept the current data packet;
  • the network element intercepts the data packet, because the data packet sent by the streaming media server may be lost, so the first intercepted data packet refers to the network element.
  • An intercepted packet of the streaming file requested by the user The first intercepted packet may be the first packet sent by the streaming server or other packets sent by the streaming server.
  • the preset clock may be a clock existing in the 3GPP network, or may be a clock set in the method described in this embodiment.
  • This embodiment is preferably a clock separately set by the method, and an initial value of the clock is preferably set to
  • the time unit of the timing is the same as the time unit of the data packet, and the time value from the first interception of the streaming media packet to the interception of the current data packet is T, if the current data
  • the streaming media packet usually includes the duration interval of its own data.
  • the upper limit of the interval is called the upper limit of the time interval of the data packet, and the lower limit is called the lower limit of the time interval of the data packet.
  • the duration of the data packet is 20S--100S. Then, 20 is called the lower limit of the time interval, and 100 is called the upper limit of the time interval.
  • the current playing time of the streaming media is obtained, and the current playing time reflects the playing progress of the streaming media at the terminal, because the network The element does not know the situation in which the terminal plays the streaming media. Therefore, it is necessary to estimate the current playing progress of the streaming media through the above calculation process.
  • the CPT is equal to its time interval lower limit.
  • the upper limit of the time interval of the current packet is recorded as TTI.
  • the GAPmax is a preset first threshold, which may be predefined by the user or may be determined according to the state of the network.
  • S106 Send, to the streaming media server, a TCP message that includes a preset window length value, so that the streaming media server reduces the transmission rate of the streaming media.
  • the size of the local buffer space is notified to the streaming media server, and the window length value is used to indicate the size of the buffer space local to the terminal.
  • the preset window length value is smaller than the current window length value, and may be set to zero, or the current window length value /M, and the M is a natural number, for example, one-half of the current window length value.
  • the role of the preset flag bit is to indicate whether the current window length value is the reduced window length value, and the default value or initial value of the flag bit may be set to 1, when the window length value is reduced. After it is small, set it to 0, and if the window length value is not reduced, it will remain unchanged.
  • S 106 and S 107 can be changed.
  • S108 Intercept the response data packet sent by the terminal to the streaming media server.
  • S110 Send the modified response packet to the streaming server.
  • the terminal After receiving the data packet sent by the streaming media server, the terminal will reply the response data packet, and the response data packet carries the window length value set according to the buffer of the terminal, so that the network side server receives the response data packet.
  • the data packet is transmitted at a transmission rate corresponding to the window length value.
  • the data packet is intercepted by the network element, and the window length value thereof is decreased.
  • the GAPmin is a preset second threshold and can be customized by the user.
  • S113 Send, to the streaming media server, a TCP message including an unreduced window length value, so that the streaming media server transmits the streaming media by using the unreduced transmission rate;
  • the purpose of setting the flag is that if the current packet is the first packet, the current transmission rate must be the normal transmission rate without degradation, even if the current buffer parameter Less than the preset second threshold, the current transmission rate is not adjusted.
  • the network element intercepts the streaming media data packet sent by the streaming media server to the terminal, calculates the current buffering parameter of the streaming media, and adjusts the transmission rate of the streaming media according to the buffering parameter, when the streaming media When the terminal plays, it will not be buffered too much margin, so when the user stops watching, the waste of wireless air interface resources can be minimized.
  • the method for transmitting a streaming media is applied to a terminal, where the terminal initiates a streaming media playback request to the streaming media server, and the streaming media server establishes a streaming media transmission channel with the terminal, as shown in FIG. 2, Methods include:
  • the current playing time of the medium fluid can be directly obtained from the player, and no further calculation is required.
  • S205 Send, to the streaming media server, a TCP message that includes a preset window length value, where the preset window length value is smaller than a current window length value;
  • the purpose of this step is to enable the streaming media server to reduce the transmission rate of the streaming media.
  • the setting method of the preset window length value is the same as that of the foregoing embodiment, and details are not described herein again.
  • the default value of the preset identifier bit may be 1.
  • the non-processing means that the processing related to the transmission rate in the scope of the present invention is not performed.
  • the conventional processing of the streaming media data packet by the terminal may be performed.
  • S209 Send a TCP message including an unreduced window length value to the streaming server, so that The network side server transmits the streaming media using a transmission rate before the reduction.
  • the instruction to pause playing streaming media is usually sent by the application layer according to the user's instructions.
  • S212 Send, to the streaming media server, a TCP message that includes a window length value of zero, so that the network side server stops transmitting the streaming media.
  • the streaming media when the user pauses the playing of the streaming media, the streaming media is still in the buffer state, that is, the buffering margin continues to increase, that is, the streaming media server does not stop the transmission of the streaming media packet, and the existing
  • the terminal when the user pauses streaming media playback, the terminal sends a TCP message to the network side server, indicating that the cache of the streaming media server terminal is zero, and the streaming media server stops transmitting the data packet, for the 3GPP network. Words can save valuable air interface bandwidth.
  • S211 and S212 may also be performed before S201, and the order of execution of the steps of adjusting the transmission rate may be adjusted.
  • the terminal calculates the current buffer parameter according to the received data packet, and controls the transmission rate of the streaming media by sending a TCP message to the streaming media server, thereby limiting the streaming media. Download rate, save air interface bandwidth.
  • the streaming media transmission method disclosed in the embodiment of the present invention is applied to a streaming media server, and a streaming media transmission channel is established between the streaming media server and the terminal, and the streaming media data packet is sent to the terminal.
  • the method includes :
  • S301 Obtain a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent.
  • S302 adding a time interval lower limit value CPT1 of the data packet of the streaming media that is sent for the first time and the time value T to obtain the current playing time CPT of the streaming media.
  • the streaming media server Similar to the network element, it is also necessary to estimate the playback progress of the terminal streaming media by calculation. Unlike the network element, the streaming media server only needs to calculate according to the data packet that it sends to the terminal.
  • S303 detecting a time interval upper limit value of the currently sent data packet, which is recorded as TTI;
  • S304 using a difference between the time interval upper limit value and the current play time as the flow
  • S306 Send a streaming media data packet to the terminal at a preset transmission rate.
  • the preset transmission rate is less than the current transmission rate.
  • S308 Determine whether the current buffer parameter satisfies GAP ⁇ GAPmin, if yes, execute S309, if no, no processing;
  • S310 The streaming media is transmitted using a transmission rate before the reduction.
  • the flag is set to 0, and the flag is set to 1 after the transmission rate is restored, so that the flag is used as one of the determination conditions for whether to reduce the rate. If the flag is 1, the transmission rate is indicated. If it is not lowered, the operation of increasing the transmission rate is not performed even if the current GAP is greater than the preset first threshold.
  • the execution entity is a streaming media server
  • the streaming media server calculates the current buffering parameter of the streaming media according to the sent data packet, and is used to correct the rate of sending the data packet, thereby saving network resources.
  • all the above embodiments focus on the current data packet, that is, when the data packet is intercepted, received, or transmitted, the calculation of the buffer margin and the control of the transmission rate are performed, that is, the above embodiment
  • the method is performed according to the transmission period of the data packet, but the present invention is not limited thereto, and may be performed in a time unit of the buffer parameter. For example, if the GAP value is in units of seconds, the method may be 1S.
  • the cycle is performed, that is, the buffer parameter is calculated every 1S, and the transmission rate is revised according to the buffer parameter.
  • control of the streaming media transmission rate is based on the download amount of the streaming media itself, and the focus is on the streaming media itself, without paying attention to the current state of the network.
  • the invention also discloses a method for setting a first threshold preset in the foregoing embodiment according to a network state. As shown in FIG. 4, the method includes: S401: Detecting a load quantity of the network side wireless link;
  • S402 Determine the preset first threshold according to the load amount.
  • the preset first threshold that is, the value of GAPmax
  • GAPmax K*GAPmax, where K is a parameter related to the busy state of the wireless link.
  • K is a parameter related to the busy state of the wireless link.
  • the value of K is 1.
  • the first threshold is decreased.
  • the first threshold is increased.
  • the state of the streaming media itself is considered, and the state of the wireless network is taken into consideration, so that the wireless network can be used more effectively.
  • the first threshold value determination and adjustment method described in this embodiment is applicable to all of the above embodiments.
  • the streaming media server is sent to the terminal, and the terminal may also obtain the streaming media packet by accessing the cache unit provided in the network.
  • a cache unit In order to accelerate the distribution of streaming media data on mobile networks, a cache unit (Cache) is often placed in the 3GPP network.
  • the UE can acquire the network resource from the Cache without accessing the streaming server. Therefore, the streaming media server in all the above embodiments may be replaced by a cache unit, and details are not described herein again.
  • the present invention also discloses a streaming media transmission device, as shown in FIG. 5, including
  • a determining module 501 configured to determine a current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal;
  • the rate reduction control module 502 is configured to reduce the transmission rate of the streaming media when the current buffering parameter of the streaming media is greater than a preset first threshold.
  • the device in this embodiment may be used by a network element, a terminal, or a streaming media server to limit the buffering speed of the streaming media in the wireless network by using a preset first threshold, so that the streaming media does not buffer excessive content. It can limit the occupation of air interface bandwidth by streaming media packets, thus avoiding waste of air interface resources.
  • the method specifically includes:
  • a first time value obtaining unit configured to acquire a preset clock value for time when the data packet of the streaming media is intercepted for the first time to intercept the current data packet
  • a first current play time calculation unit configured to add a time interval lower limit value of the data packet of the streaming media that is captured for the first time to the time value, and obtain a current play time of the streaming media
  • a first detecting unit configured to detect a time interval upper limit value of the current data packet
  • a first determining unit configured to use, as the streaming media, a difference between the time interval upper limit value and the current playing time Current buffering parameters
  • a response packet intercepting unit configured to intercept a response packet sent by the terminal to the streaming server, reduce a window length value in the response packet, and send the modified response packet to a network side server ;
  • a first TCP message sending unit configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, send a TCP message including a preset window length value to the streaming media server, so that the streaming media The server reduces the transmission rate of the streaming media, where the preset window length value is smaller than the current window length value;
  • And identifying a location zero unit configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, set a value of the preset identifier bit to zero;
  • a rate increase control module configured to: when the current buffering parameter of the streaming media is less than a preset second threshold, and the value of the preset identifier bit is zero, increase the transmission rate of the streaming media
  • the The rate increasing unit may be: a second TCP message sending unit, configured to send, to the streaming media server, a TCP message including an unreduced window length value, so that the network side server uses the unreduced transmission rate transmission Streaming media.
  • the identification location 1 unit is configured to set the value of the preset identification bit to 1 when the transmission rate is increased.
  • the method specifically includes:
  • a current playing time obtaining unit configured to acquire a current playing time of the streaming media from the player
  • a second detecting unit configured to detect a time interval upper limit value of the current data packet
  • a second determining unit configured to: The difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
  • a first TCP message sending unit configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, send a TCP message including a preset window length value to the streaming media server, so that The streaming media server reduces the transmission rate of the streaming media, and the preset window length value is smaller than the current window length value.
  • identifying a location zero unit configured to set a value of the preset identifier bit to zero when the current buffering parameter of the streaming media is greater than a preset first threshold.
  • a rate increase control module configured to: when the current buffering parameter of the streaming media is less than a preset second threshold, and the value of the preset identifier bit is zero, increase the transmission rate of the streaming media
  • the The rate increasing unit may be: a second TCP message sending unit, configured to send, to the network side server, a TCP message that restores the transmission rate to a value before the reduction, so that the network side server transmits the transmission rate before the reduction.
  • a location 1 unit configured to set the value of the preset identifier bit to 1 when the rate of the speed is increased
  • a pause instruction sending unit configured to send, to the streaming media server, a TCP message including a window length value of zero after receiving the instruction to pause playing the streaming media, so that the streaming media server stops transmitting the streaming media.
  • the method specifically includes:
  • a second time value obtaining unit configured to acquire a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent;
  • a second current playing time calculating unit configured to add a time interval lower limit value of the data packet of the first time sent by the streaming media to the time value, to obtain a current playing time of the streaming media
  • a third detecting unit configured to detect a time interval upper limit value of the currently sent data packet;
  • a third determining unit configured to use a difference between the time interval upper limit value and the current playing time as the flow Current buffer parameters of the media;
  • a first sending unit configured to send a streaming media data packet to the terminal at a preset transmission rate, where the preset transmission rate is smaller than a current transmission rate
  • And identifying a location zero unit configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, set a value of the preset identifier bit to zero;
  • the rate increase control module may be: a second sending unit, configured to transmit the streaming media by using a transmission rate before the reduction;
  • the identification location 1 unit is configured to set the value of the preset identification bit to 1 when the transmission rate is increased.
  • the device further includes:
  • the first threshold determining module is configured to detect a load quantity of the network side wireless link, and determine the preset first threshold according to the load quantity.
  • the receiving module is configured to receive a streaming media packet sent by the buffer unit preset by the network side to the terminal.
  • the invention also discloses a communication device, as shown in FIG. 6, comprising:
  • the input/output interface 601 is configured to receive a streaming media data packet sent by the network side terminal, and the processor 602 is configured to determine, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media, when the current When the current buffering parameter of the media is greater than a preset first threshold, the transmission rate of the streaming media is decreased;
  • the specific process of determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network to the terminal may be:
  • the processor may be configured to acquire a time value of the preset clock for timing the data packet of the streaming media to be intercepted to intercept the current data packet; and the time of the first captured data packet of the streaming media that is acquired in advance
  • the interval lower limit value is added to the time value to obtain a current play time of the streaming media; detecting a time interval upper limit value of the current data packet; and the time interval upper limit value and the current play time The difference is used as the current buffering parameter of the streaming media;
  • the processor is further configured to: acquire a current playing time of the streaming media from the player; detect a time interval upper limit value of the current data packet; and compare a difference between the time interval upper limit value and the current playing time The value is used as the current buffering parameter of the streaming media;
  • the processor further acquires a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent; and the pre-acquired data packet of the streaming media that is sent for the first time Adding a time interval lower limit value to the time value to obtain a current play time of the streaming media; detecting a time interval upper limit value of the currently sent data packet; and setting the time interval upper limit value to the current time The difference in play time is used as the current buffer of the streaming media. Number.
  • it may preferably include:
  • the memory 603 is configured to store a current buffering parameter of the streaming media.
  • the communication device in this embodiment may be a network element, a terminal, or a streaming media server of the 3GPP network, or may be a network side cache.
  • the communication device controls the current transmission rate of the streaming media according to the calculated buffering parameters, thereby avoiding unnecessary data packet transmission, thereby improving the utilization of the wireless interface.
  • the functions described in the method of the present embodiment can be stored in a readable storage medium of a computing device if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, a portion of the embodiments of the present invention that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a
  • the computing device (which may be a personal computer, server, mobile computing device, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a stream media transmission method, an apparatus and a communication device. According to a stream media data packet sent by a network side to a terminal, a current buffer parameter of the stream media is calculated. When the buffer parameter is greater than a preset first threshold, indicating that a transmission rate of the stream media is over-high, the transmission rate of the stream media is reduced. Therefore, the transmission rate of the stream media on a wireless network can be restricted by presetting the first threshold, so that excessive resources will not be buffered when the stream media is played. Even if the stream media is stopped before it is completed in playing, a waste on a wireless air interface bandwidth can be reduced to the greatest extent, thus reducing unnecessary network transmission and improving utilization of wireless resources.

Description

流媒体传输方法 ½置、 通信设备 技术领域  Streaming media transmission method, communication device, technical field
本发明涉及通信领域, 尤其涉及流媒体传输速率控制方法及装置、 通 信设备。 背景技术 流媒体是指在网络上应用流技术传输的多媒体文件, 流媒体传输实现 了多媒体文件边播放边緩冲。 在流媒体播放的同时, 网络服务器会依据播 放终端的緩冲区的容量进行下载緩冲, 一般地, 终端的緩冲区可容纳的流 媒体的大小以分钟为单位, 即在播放的同时, 緩冲出的文件的大小往往是 几分钟、 十几分钟或者几十分钟。  The present invention relates to the field of communications, and in particular, to a streaming media transmission rate control method and apparatus, and a communication device. BACKGROUND OF THE INVENTION Streaming media refers to multimedia files transmitted by streaming technology on a network. Streaming media transmission enables buffering of multimedia files while playing. At the same time of streaming media playback, the network server performs download buffering according to the capacity of the buffer of the playing terminal. Generally, the size of the streaming media that the buffer of the terminal can accommodate is in minutes, that is, while playing, The size of the buffered file is often a few minutes, ten minutes, or tens of minutes.
有研究表明,超过一半的流媒体在用户观看的一分钟内会被用户抛弃, 因此使用上述的流媒体传输方法, 当流媒体被停止播放后, 緩冲下载的几 分钟、 十几分钟或者几十分钟的资源是无用的, 当网络为有线网络时, 由 于带宽资源的独占性, 这种对下载带宽的浪费不是特别关注, 而当网络为 无线网络时, 因为无线空口的带宽有限且为多用户共享, 这种流媒体传输 方法则会造成无线空口带宽的显著浪费。  Studies have shown that more than half of the streaming media will be discarded by the user within one minute of the user's viewing. Therefore, using the above streaming media transmission method, after the streaming media is stopped, buffer the download for a few minutes, ten minutes or a few Ten minutes of resources are useless. When the network is a wired network, due to the exclusiveness of bandwidth resources, this waste of download bandwidth is not of particular concern. When the network is a wireless network, because the bandwidth of the wireless air interface is limited and User sharing, this streaming media transmission method will cause significant waste of wireless air interface bandwidth.
发明内容 Summary of the invention
有鉴于此, 本发明实施例提供了一种流媒体传输方法及装置、 通信设 备, 目的在于解决现有的流媒体传输方法造成的空口带宽的浪费的问题。  In view of the above, the embodiments of the present invention provide a streaming media transmission method and device, and a communication device, which are aimed to solve the problem of waste of air interface bandwidth caused by the existing streaming media transmission method.
为了实现上述目的, 本发明实施例提供了以下技术方案:  In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
本发明提供了一种流媒体传输方法, 包括:  The present invention provides a streaming media transmission method, including:
依据网络侧向终端发送的流媒体数据包,确定流媒体当前的緩冲参数; 当所述流媒体当前的緩冲参数大于预设的第一阈值时, 降低所述流媒 体的传输速率。  The current buffering parameter of the streaming media is determined according to the streaming media data packet sent by the network side terminal. When the current buffering parameter of the streaming media is greater than the preset first threshold, the transmission rate of the streaming media is decreased.
在所述方法的第一种可能的实现方式中, 所述依据网络侧向终端发送 的流媒体数据包, 确定流媒体当前的緩冲参数包括:  In a first possible implementation manner of the method, the determining, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media includes:
获取预设的时钟对首次截获所述流媒体的数据包到截获当前的数据包 进行计时的时间值; Obtaining a preset clock pair to intercept the data packet of the streaming media for the first time to intercept the current data packet The time value for timing;
将预先获取的首次截获的所述流媒体的数据包的时间区间下限值与所 述时间值相加, 得到所述流媒体的当前播放时间;  And adding, to the time value, a time interval lower limit value of the data packet of the streaming media that is captured for the first time, and obtaining a current playing time of the streaming media;
检测所述当前的数据包的时间区间上限值;  Detecting an upper limit of a time interval of the current data packet;
将所述时间区间上限值与所述当前播放时间的差值作为所述流媒体当 前的緩冲参数。  The difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
在所述方法的第二种可能的实现方式中, 所述依据网络侧向终端发送 的流媒体数据包, 确定流媒体当前的緩冲参数包括:  In a second possible implementation manner of the method, the determining, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media includes:
从播放器获取流媒体的当前播放时间;  Get the current playing time of the streaming media from the player;
检测所述当前的数据包的时间区间上限值;  Detecting an upper limit of a time interval of the current data packet;
将所述时间区间上限值与所述当前播放时间的差值作为所述流媒体当 前的緩冲参数。  The difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
在所述方法的第三种可能的实现方式中, 所述依据网络侧向终端发送 的流媒体数据包, 确定流媒体当前的緩冲参数包括:  In a third possible implementation manner of the method, the determining, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media includes:
获取预设的时钟对从首次发送所述流媒体的数据包到发送当前的数据 包进行计时的时间值;  Obtaining a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent;
将预先获取的首次发送的所述流媒体的数据包的时间区间下限值与所 述时间值相加, 得到所述流媒体的当前播放时间;  And adding, to the time value, a time interval lower limit value of the data packet of the streaming media that is sent for the first time, and obtaining a current playing time of the streaming media;
检测所述当前发送的数据包的时间区间上限值;  Detecting an upper limit value of a time interval of the currently transmitted data packet;
将所述时间区间上限值与所述当前播放时间的差值作为所述流媒体当 前的緩冲参数。  The difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
本发明还提供了一种流媒体传输装置, 包括:  The invention also provides a streaming media transmission device, comprising:
确定模块, 用于依据网络侧向终端发送的流媒体数据包, 确定流媒体 当前的緩冲参数;  a determining module, configured to determine a current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal;
速率降低控制模块, 用于当所述流媒体当前的緩冲参数大于预设的第 一阈值时, 降低所述流媒体的传输速率。  The rate reduction control module is configured to reduce the transmission rate of the streaming media when a current buffering parameter of the streaming media is greater than a preset first threshold.
在所述装置的第一中可能的实现方式中, 所述确定模块包括: 第一时间值获取单元, 用于获取预设的时钟对首次截获所述流媒体的 数据包到截获当前的数据包进行计时的时间值; 第一当前播放时间计算单元, 用于将预先获取的首次截获的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间; In a first implementation manner of the device, the determining module includes: a first time value obtaining unit, configured to acquire a preset clock pair to intercept the data packet of the streaming media for the first time to intercept the current data packet The time value for timing; a first current play time calculation unit, configured to add a time interval lower limit value of the data packet of the streaming media that is captured for the first time to the time value, and obtain a current play time of the streaming media;
第一检测单元, 用于检测所述当前的数据包的时间区间上限值; 第一确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。  a first detecting unit, configured to detect a time interval upper limit value of the current data packet; a first determining unit, configured to use, as the streaming media, a difference between the time interval upper limit value and the current playing time Current buffering parameters.
在所述装置的第二中可能的实现方式中, 所述确定模块包括: 当前播放时间获取单元, 用于从播放器获取流媒体的当前播放时间; 第二检测单元, 用于检测所述当前的数据包的时间区间上限值; 第二确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。  In a second implementation of the apparatus, the determining module includes: a current playing time acquiring unit, configured to acquire a current playing time of the streaming media from the player; and a second detecting unit, configured to detect the current a time interval upper limit value of the data packet; a second determining unit, configured to use a difference between the time interval upper limit value and the current play time as a current buffer parameter of the streaming media.
在所述装置的第三中可能的实现方式中, 所述确定模块包括: 第二时间值获取单元, 用于获取预设的时钟对从首次发送所述流媒体 的数据包到发送当前的数据包进行计时的时间值;  In a third implementation of the apparatus, the determining module includes: a second time value obtaining unit, configured to acquire a preset clock pair from the first time sending the data packet of the streaming media to sending the current data The time value at which the packet is timed;
第二当前播放时间计算单元, 用于将预先获取的首次发送的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间;  a second current playing time calculating unit, configured to add a time interval lower limit value of the data packet of the first time sent by the streaming media to the time value, to obtain a current playing time of the streaming media;
第三检测单元, 用于检测所述当前发送的数据包的时间区间上限值; 第三确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。  a third detecting unit, configured to detect a time interval upper limit value of the currently sent data packet; a third determining unit, configured to use a difference between the time interval upper limit value and the current playing time as the flow The current buffering parameters of the media.
本发明还提供了一种通信设备, 包括:  The invention also provides a communication device, comprising:
输入输出接口, 用于接收网络侧向终端发送的流媒体数据包; 处理器, 用于依据网络侧向终端发送的流媒体数据包, 确定流媒体当 前的緩冲参数, 当所述流媒体当前的緩冲参数大于预设的第一阈值时, 降 低所述流媒体的传输速率。  The input/output interface is configured to receive a streaming media data packet sent by the network side terminal, and the processor is configured to determine, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media, when the streaming media is currently When the buffering parameter is greater than the preset first threshold, the transmission rate of the streaming media is reduced.
在所述通信设备的第一种实现方式中, 所述处理器用于依据网络侧向 终端发送的流媒体数据包, 确定流媒体当前的緩冲参数具体包括:  In a first implementation manner of the communications device, the determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network to the terminal comprises:
所述处理器获取预设的时钟对首次截获所述流媒体的数据包到截获当 前的数据包进行计时的时间值; 将预先获取的首次截获的所述流媒体的数 据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前播放时 间; 检测所述当前的数据包的时间区间上限值; 将所述时间区间上限值与 所述当前播放时间的差值作为所述流媒体当前的緩冲参数。 Obtaining, by the processor, a time value for timing the first interception of the data packet of the streaming media to intercept the current data packet; and pre-acquiring the number of the first intercepted streaming media Adding a time interval lower limit value of the packet to the time value to obtain a current playing time of the streaming media; detecting a time interval upper limit value of the current data packet; and setting the upper time limit value of the time interval The difference of the current playing time is used as the current buffering parameter of the streaming media.
在所述通信设备的第二种实现方式中, 所述处理器用于依据网络侧向 终端发送的流媒体数据包, 确定流媒体当前的緩冲参数具体包括:  In a second implementation manner of the communications device, the determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal comprises:
所述处理器从播放器获取流媒体的当前播放时间; 检测所述当前的数 据包的时间区间上限值; 将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。  The processor acquires a current playing time of the streaming media from the player; detects a time interval upper limit value of the current data packet; and uses a difference between the time interval upper limit value and the current playing time as the flow The current buffering parameters of the media.
在所述通信设备的第三种实现方式中, 所述处理器用于依据网络侧向 终端发送的流媒体数据包, 确定流媒体当前的緩冲参数具体包括:  In a third implementation manner of the communications device, the determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal comprises:
所述处理器用于获取预设的时钟对从首次发送所述流媒体的数据包到 发送当前的数据包进行计时的时间值; 将预先获取的首次发送的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间; 检测所述当前发送的数据包的时间区间上限值; 将所述时间区 间上限值与所述当前播放时间的差值作为所述流媒体当前的緩冲参数。  The processor is configured to acquire a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent; and a time interval of the data packet of the streaming media that is sent for the first time that is obtained in advance Adding a lower limit value to the time value to obtain a current playing time of the streaming media; detecting a time interval upper limit value of the currently transmitted data packet; and setting the time interval upper limit value and the current playing time The difference is used as the current buffer parameter of the streaming media.
本发明实施例公开的流媒体传输方法及装置、通信设备,依据网络侧 向终端发送的流媒体数据包, 计算流媒体当前的緩冲参数, 当所述緩冲参 数大于预设的第一阈值时, 说明流媒体的传输速率过高, 则降低流媒体的 传输速率, 因此, 通过预先设置第一阈值可以限制无线网络中流媒体的传 输速率, 使得在播放流媒体时, 不会緩冲过多的资源, 所以即使流媒体在 播完之前被停止, 也能够最大限度地减轻对无线空口带宽的浪费, 从而降 低了不必要的网络传输, 提高了无线资源的利用率。  The streaming media transmission method and device and the communication device disclosed in the embodiment of the present invention calculate the current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal, when the buffering parameter is greater than a preset first threshold. When the transmission rate of the streaming media is too high, the transmission rate of the streaming media is reduced. Therefore, by setting the first threshold in advance, the transmission rate of the streaming media in the wireless network can be restricted, so that the streaming media is not buffered excessively when playing the streaming media. Resources, so even if the streaming media is stopped before the broadcast, it can minimize the waste of wireless air interface bandwidth, thereby reducing unnecessary network transmission and improving the utilization of wireless resources.
附图说明  DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1为本发明实施例公开的一种流媒体传输方法的流程图; 图 2为本发明实施例公开的又一种流媒体传输方法的流程图; 图 3为本发明实施例公开的又一种流媒体传输方法的流程图; 图 4为本发明实施例公开的一种流媒体传输方法中确定第一阈值的方 法的流程图; 1 is a flowchart of a streaming media transmission method according to an embodiment of the present invention; FIG. 2 is a flowchart of still another method for transmitting a streaming media according to an embodiment of the present invention; FIG. 3 is a flowchart of still another method for transmitting a streaming media according to an embodiment of the present invention; A flowchart of a method for determining a first threshold in a streaming media transmission method;
图 5为本发明实施例公开的一种流媒体传输装置的结构示意图; 图 6为本发明实施例公开的一种通信设备的结构示意图。  FIG. 5 is a schematic structural diagram of a streaming media transmission device according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of a communication device according to an embodiment of the present invention.
具体实施方式  detailed description
本发明实施例公开了一种流媒体传输方法, 当流媒体服务器和终端之 间建立流媒体传输通道并开始传输流媒体数据包后, 移动通信网络根据服 务器向终端发送的流媒体数据包, 计算流媒体当前的緩冲参数, 当所述流 媒体当前的緩冲参数大于预设的第一阈值时,降低所述流媒体的传输速率。 所述方法也可以应用于流媒体服务器或终端, 通过预先设置的第一阈值来 限制无线网络中流媒体的緩冲速度, 使得流媒体不会緩冲过多的内容, 因 而能够限制流媒体数据包对空口带宽的占用,从而避免对空口资源的浪费。  The embodiment of the invention discloses a streaming media transmission method. After a streaming media transmission channel is established between the streaming media server and the terminal and the streaming media data packet is started, the mobile communication network calculates according to the streaming media data packet sent by the server to the terminal. The current buffering parameter of the streaming media, when the current buffering parameter of the streaming media is greater than a preset first threshold, reducing the transmission rate of the streaming media. The method can also be applied to a streaming media server or a terminal, and the buffering speed of the streaming media in the wireless network is limited by a preset first threshold, so that the streaming media does not buffer excessive content, thereby limiting the streaming media packet. The use of air interface bandwidth to avoid waste of air interface resources.
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本实施例中公开了一种流媒体传输方法, 可以应用于 3GPP网络中执 行数据包深度检测的网元上, 例如, P-GW、 S-GW、 GGSN、 SGSN、 RNC、 UTRAN或 E-UTRAN等, 也可以应用于为本实施例所述方法新增的媒流 体处理网元上。 在流媒体服务器与终端建立传输通道并通过所述传输通道 向终端发送流媒体数据包时, 如图 1所示, 所述方法包括:  In this embodiment, a streaming media transmission method is disclosed, which can be applied to a network element for performing packet deep detection in a 3GPP network, for example, P-GW, S-GW, GGSN, SGSN, RNC, UTRAN or E-UTRAN. And so on, it can also be applied to the media fluid processing network element added in the method of the embodiment. When the streaming media server establishes a transmission channel with the terminal and sends the streaming media data packet to the terminal through the transmission channel, as shown in FIG. 1, the method includes:
S101 : 获取预设的时钟对首次截获所述流媒体的数据包到截获当前的 数据包进行计时的时间值;  S101: Obtain a preset clock value for time when the data packet of the streaming media is intercepted for the first time to intercept the current data packet;
在流媒体服务器向终端发送流媒体数据包时, 本实施例中, 网元截获 这些数据包, 因为流媒体服务器发出的数据包有可能丟失, 所以, 首次截 获的数据包是指, 网元第一个截获到的用户请求的流媒体文件的数据包, 首次截获的数据包有可能是流媒体服务器发送的第一个数据包, 也可能是 流媒体服务器发送的其它数据包。 When the streaming media server sends the streaming media data packet to the terminal, in this embodiment, the network element intercepts the data packet, because the data packet sent by the streaming media server may be lost, so the first intercepted data packet refers to the network element. An intercepted packet of the streaming file requested by the user, The first intercepted packet may be the first packet sent by the streaming server or other packets sent by the streaming server.
本实施例中, 预设的时钟可以为 3GPP网络中已有的时钟, 也可以是 为本实施例所述方法设置的时钟。  In this embodiment, the preset clock may be a clock existing in the 3GPP network, or may be a clock set in the method described in this embodiment.
本实施例优选为所述方法单独设置的时钟, 时钟的初始值优选设置为 This embodiment is preferably a clock separately set by the method, and an initial value of the clock is preferably set to
0,从首次截获流媒体的数据包开始计时,计时的时间单位与数据包的时间 单位相同, 将从首次截获流媒体的数据包到截获当前数据包进行计时的时 间值为 T, 如果当前数据包即为首次截获的数据包, 则 τ=ο。 0, starting from the first interception of the streaming media packet, the time unit of the timing is the same as the time unit of the data packet, and the time value from the first interception of the streaming media packet to the interception of the current data packet is T, if the current data The packet is the first intercepted packet, then τ = ο.
S102: 将预先获取的首次截获的所述流媒体的数据包的时间区间下限 值, 记为 CPT1 , 与所述时间值相加, 得到所述流媒体的当前播放时间, 这里将当前播放时间记为 CPT, 即 CPT=CPT1+T;  S102: The time interval lower limit value of the data packet of the streaming media that is captured for the first time, which is captured in advance, is recorded as CPT1, and is added to the time value to obtain a current playing time of the streaming media, where the current playing time is obtained. Recorded as CPT, ie CPT=CPT1+T;
流媒体数据包中通常包括自身数据的时长区间, 此区间的上限称为数 据包的时间区间上限值, 下限称为数据包的时间区间下限值, 例如数据包 的时长为 20S--100S, 则 20称为其时间区间下限值, 100称为其时间区间 上限值。  The streaming media packet usually includes the duration interval of its own data. The upper limit of the interval is called the upper limit of the time interval of the data packet, and the lower limit is called the lower limit of the time interval of the data packet. For example, the duration of the data packet is 20S--100S. Then, 20 is called the lower limit of the time interval, and 100 is called the upper limit of the time interval.
将首次截获的数据包的时间区间下限值与 S101 中的时间值 T相加, 得到的为所述流媒体的当前播放时间, 当前播放时间反映的是流媒体在终 端的播放进度, 因为网元不清楚终端播放流媒体的情况, 因此, 需要通过 上述计算过程对流媒体的当前播放进度进行估计。  Adding the time interval lower limit value of the first intercepted data packet to the time value T in S101, the current playing time of the streaming media is obtained, and the current playing time reflects the playing progress of the streaming media at the terminal, because the network The element does not know the situation in which the terminal plays the streaming media. Therefore, it is necessary to estimate the current playing progress of the streaming media through the above calculation process.
如果当前数据包为首次截获的流媒体数据包,则 CPT等于其时间区间 下限值。  If the current packet is the first intercepted streaming packet, the CPT is equal to its time interval lower limit.
S103: 检测所述当前的数据包的时间区间上限值;  S103: Detect an upper limit value of a time interval of the current data packet;
这里将当前的数据包的时间区间上限值记为 TTI。  Here, the upper limit of the time interval of the current packet is recorded as TTI.
S104: 将所述时间区间上限值与所述当前播放时间的差值作为所述流 媒体当前的緩冲参数, 即: GAP= TTI-CPT;  S104: The difference between the time interval upper limit value and the current play time is used as a current buffer parameter of the streaming media, that is, GAP=TTI-CPT;
S105: 判断当前的緩冲参数是否满足 GAP>GAPmax, 如果是, 则执 行 S106, 如果否, 执行 S111 ;  S105: Determine whether the current buffer parameter satisfies GAP>GAPmax, if yes, execute S106, if no, execute S111;
其中 GAPmax为预设的第一阈值, 可以由用户预先定义, 也可以依据 网络的状态进行确定。 S106: 向流媒体服务器发送包含预设的窗长值的 TCP消息, 以使得流 媒体服务器降低所述流媒体的传输速率; The GAPmax is a preset first threshold, which may be predefined by the user or may be determined according to the state of the network. S106: Send, to the streaming media server, a TCP message that includes a preset window length value, so that the streaming media server reduces the transmission rate of the streaming media.
通常, 在终端向流媒体服务器发送 TCP消息时, 会将本地的緩存空间 的大小通知流媒体服务器, 窗长值的作用即为指示终端本地的緩冲空间的 大小, 本实施例中, 所述预设的窗长值小于当前的窗长值, 可以设置为零, 或者当前窗长值 /M, 所述 M为自然数, 例如, 当前窗长值的二分之一。  Generally, when the terminal sends a TCP message to the streaming media server, the size of the local buffer space is notified to the streaming media server, and the window length value is used to indicate the size of the buffer space local to the terminal. In this embodiment, The preset window length value is smaller than the current window length value, and may be set to zero, or the current window length value /M, and the M is a natural number, for example, one-half of the current window length value.
S107: 将预设的标识位的值设置为零;  S107: Set the value of the preset flag to zero;
本实施例中, 预设的标识位的作用为指示当前的窗长值是否是被减小 后的窗长值, 标识位的默认值或初始值可以设定为 1 , 当窗长值被减小后, 将其设置为 0, 如果窗长值没有被减小, 则保持不变。  In this embodiment, the role of the preset flag bit is to indicate whether the current window length value is the reduced window length value, and the default value or initial value of the flag bit may be set to 1, when the window length value is reduced. After it is small, set it to 0, and if the window length value is not reduced, it will remain unchanged.
S 106和 S 107的顺序可以改变。  The order of S 106 and S 107 can be changed.
S108: 截获所述终端向所述流媒体服务器发送的应答数据包;  S108: Intercept the response data packet sent by the terminal to the streaming media server.
S109: 减小所述应答数据包中的窗长值;  S109: Decrease a window length value in the response data packet;
本实施例中, 优选将窗长值减小为上述预设的窗长值。  In this embodiment, it is preferable to reduce the window length value to the preset window length value.
S110: 将修改后的应答数据包发送到流媒体服务器。  S110: Send the modified response packet to the streaming server.
通常, 终端在接收到流媒体服务器发送的数据包后, 会回复应答数据 包, 应答数据包中携带依据终端的緩冲区设定的窗长值, 使得网络侧服务 器在接收到应答数据包后, 使用与窗长值对应的传输速率发送数据包, 而 本实施例中, 应到数据包被网元截获, 将其中的窗长值减小。  Generally, after receiving the data packet sent by the streaming media server, the terminal will reply the response data packet, and the response data packet carries the window length value set according to the buffer of the terminal, so that the network side server receives the response data packet. The data packet is transmitted at a transmission rate corresponding to the window length value. In this embodiment, the data packet is intercepted by the network element, and the window length value thereof is decreased.
S111 : 判断当前的緩冲参数是否满足 GAP<GAPmin, 如果是, 则执行 S111: determining whether the current buffer parameter satisfies GAP<GAPmin, and if yes, executing
S112, 如果否, 不作处理; S112, if no, no processing;
其中, GAPmin为预设的第二阈值, 可以由用户自定义。  The GAPmin is a preset second threshold and can be customized by the user.
S112: 判断标识位的值是否为 0, 如果否, 则不作处理, 如果是 0, 执 行 S113;  S112: determining whether the value of the flag is 0. If not, no processing is performed. If it is 0, executing S113;
S113: 向流媒体服务器发送包括未减小的窗长值的 TCP消息, 以使得 所述流媒体服务器使用所述未降低前的传输速率传输所述流媒体;  S113: Send, to the streaming media server, a TCP message including an unreduced window length value, so that the streaming media server transmits the streaming media by using the unreduced transmission rate;
S114: 将所述标识位的值设置为 1 ;  S114: Set the value of the flag bit to 1;
设置标识位的目的在于, 如果当前的数据包为首个数据包, 当前的传 输速率一定为没有经过降低的正常的传输速率, 此时即使当前的緩冲参数 小于预设的第二阈值, 也不调整当前的传输速率。 The purpose of setting the flag is that if the current packet is the first packet, the current transmission rate must be the normal transmission rate without degradation, even if the current buffer parameter Less than the preset second threshold, the current transmission rate is not adjusted.
本实施例所述的流媒体传输方法, 网元截获流媒体服务器向终端发送 的流媒体数据包, 并计算流媒体当前的緩冲参数, 依据緩冲参数调整流媒 体的传输速率, 当流媒体在终端进行播放时, 不会被緩冲太多的余量, 因 此, 当用户停止观看, 也能将对无线空口资源的浪费降低到最低程度。  In the streaming media transmission method of the embodiment, the network element intercepts the streaming media data packet sent by the streaming media server to the terminal, calculates the current buffering parameter of the streaming media, and adjusts the transmission rate of the streaming media according to the buffering parameter, when the streaming media When the terminal plays, it will not be buffered too much margin, so when the user stops watching, the waste of wireless air interface resources can be minimized.
本发明实施例公开的又一种流媒体传输方法, 应用于终端, 所述终端 向流媒体服务器发起流媒体播放请求, 流媒体服务器与终端建立流媒体传 输通道, 如图 2所示, 所述方法包括:  The method for transmitting a streaming media according to the embodiment of the present invention is applied to a terminal, where the terminal initiates a streaming media playback request to the streaming media server, and the streaming media server establishes a streaming media transmission channel with the terminal, as shown in FIG. 2, Methods include:
S201 : 从播放器获取流媒体的当前播放时间 CPT;  S201: obtaining a current playing time of the streaming media from the player CPT;
对于终端而言, 媒流体的当前播放时间直接从播放器获取即可, 不必 再进行计算。  For the terminal, the current playing time of the medium fluid can be directly obtained from the player, and no further calculation is required.
S202: 检测所述当前的数据包的传输时长, 记为 TTI;  S202: Detecting a transmission duration of the current data packet, which is recorded as TTI;
S203: 将所述时间区间上限值与所述当前播放时间的差值作为所述流 媒体当前的緩冲参数, 当前的緩冲参数记为 GAP=TTI-CPT;  S203: The difference between the time interval upper limit value and the current play time is used as a current buffer parameter of the streaming media, and the current buffer parameter is recorded as GAP=TTI-CPT;
S204: 判断 GAP>GAPmax是否成立, 如果是, 执行 S205 , 如果否, 执行 S207;  S204: Determine whether GAP>GAPmax is established, if yes, execute S205, if no, execute S207;
S205: 向流媒体服务器发送包含预设的窗长值的 TCP消息, 所述预设 的窗长值小于当前的窗长值;  S205: Send, to the streaming media server, a TCP message that includes a preset window length value, where the preset window length value is smaller than a current window length value;
此步骤的目的在于使得所述流媒体服务器降低所述流媒体的传输速 率, 其中预设的窗长值的设定方法与上述实施例相同, 这里不再贅述。  The purpose of this step is to enable the streaming media server to reduce the transmission rate of the streaming media. The setting method of the preset window length value is the same as that of the foregoing embodiment, and details are not described herein again.
S206: 将预设的标识位设置为零;  S206: Set the preset flag to zero;
所述预设的标识位的默认值可以为 1。  The default value of the preset identifier bit may be 1.
S207: 判断当前的緩冲参数是否满足 GAP<GAPmin, 如果是, 则执行 S208, 如果否, 不作处理;  S207: Determine whether the current buffer parameter satisfies GAP<GAPmin, if yes, execute S208, if no, do not process;
S208: 判断标识位的当前值是否为零, 如果是, 执行 S209, 如果否, 则不作处理。  S208: Determine whether the current value of the flag is zero. If yes, execute S209. If no, no process is performed.
本实施例中, 不作处理是指不进行本发明范畴中对传输速率相关的处 理, 实际应用中, 可以按照终端对流媒体数据包的常规处理进行。  In this embodiment, the non-processing means that the processing related to the transmission rate in the scope of the present invention is not performed. In practical applications, the conventional processing of the streaming media data packet by the terminal may be performed.
S209: 向流媒体服务器发送包括未减小的窗长值的 TCP消息, 以使得 所述网络侧服务器使用未降低前的传输速率传输所述流媒体。 S209: Send a TCP message including an unreduced window length value to the streaming server, so that The network side server transmits the streaming media using a transmission rate before the reduction.
S210: 将所述标识位的值设置为 1 ;  S210: Set the value of the identifier bit to 1;
S211 : 接收暂停播放流媒体的指令;  S211: Receive an instruction to pause playing the streaming media;
暂停播放流媒体的指令通常由应用层依据用户的指令发出。  The instruction to pause playing streaming media is usually sent by the application layer according to the user's instructions.
S212: 向所述流媒体服务器发送包含窗长值为零的 TCP消息, 以使得 所述网络侧服务器停止传输所述流媒体。  S212: Send, to the streaming media server, a TCP message that includes a window length value of zero, so that the network side server stops transmitting the streaming media.
现有技术中, 当用户暂停流媒体的播放时, 流媒体仍然处于緩冲状态, 即緩冲余量持续增加, 也就是说, 流媒体服务器并不停止流媒体数据包的 传输, 与现有技术不同的是, 本实施例中, 在用户暂停流媒体播放时, 终 端向网络侧服务器发送 TCP消息, 指示流媒体服务器终端的緩存为零, 流 媒体服务器则停止传输数据包, 对于 3GPP网络而言, 能够节省宝贵的空 口带宽。  In the prior art, when the user pauses the playing of the streaming media, the streaming media is still in the buffer state, that is, the buffering margin continues to increase, that is, the streaming media server does not stop the transmission of the streaming media packet, and the existing The technical difference is that, in this embodiment, when the user pauses streaming media playback, the terminal sends a TCP message to the network side server, indicating that the cache of the streaming media server terminal is zero, and the streaming media server stops transmitting the data packet, for the 3GPP network. Words can save valuable air interface bandwidth.
需要说明的是, S211和 S212也可以在 S201之前进行, 其与调整传输 速率的步骤的执行顺序可以进行调整。  It should be noted that S211 and S212 may also be performed before S201, and the order of execution of the steps of adjusting the transmission rate may be adjusted.
本实施例所述的流媒体传输方法, 由终端依据接收的数据包计算当前 的緩冲参数, 通过向流媒体服务器发送 TCP消息的方式, 控制流媒体的传 输速率, 从而能够限制的流媒体的下载速率, 节省空口带宽。  In the streaming media transmission method of the embodiment, the terminal calculates the current buffer parameter according to the received data packet, and controls the transmission rate of the streaming media by sending a TCP message to the streaming media server, thereby limiting the streaming media. Download rate, save air interface bandwidth.
本发明实施例公开的又一种流媒体传输方法, 应用于流媒体服务器, 流媒体服务器与终端间建立流媒体传输通道, 向终端发送流媒体数据包, 如图 3所示, 所述方法包括:  The streaming media transmission method disclosed in the embodiment of the present invention is applied to a streaming media server, and a streaming media transmission channel is established between the streaming media server and the terminal, and the streaming media data packet is sent to the terminal. As shown in FIG. 3, the method includes :
S301 : 获取预设的时钟对从首次发送所述流媒体的数据包到发送当前 的数据包进行计时的时间值;  S301: Obtain a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent.
S302: 将预先获取的首次发送的所述流媒体的数据包的时间区间下限 值 CPT1与所述时间值 T相加, 得到所述流媒体的当前播放时间 CPT; 对于流媒体服务器而言, 与网元类似, 同样需要通过计算估计终端流 媒体的播放进度, 与网元不同的是, 流媒体服务器只需依据自身向终端发 送的数据包进行计算。  S302: adding a time interval lower limit value CPT1 of the data packet of the streaming media that is sent for the first time and the time value T to obtain the current playing time CPT of the streaming media. For the streaming media server, Similar to the network element, it is also necessary to estimate the playback progress of the terminal streaming media by calculation. Unlike the network element, the streaming media server only needs to calculate according to the data packet that it sends to the terminal.
S303: 检测所述当前发送的数据包的时间区间上限值, 记为 TTI; S304: 将所述时间区间上限值与所述当前播放时间的差值作为所述流 媒体当前的緩冲参数, 即 GAP=TTI-CPT; S303: detecting a time interval upper limit value of the currently sent data packet, which is recorded as TTI; S304: using a difference between the time interval upper limit value and the current play time as the flow The current buffering parameter of the media, namely GAP=TTI-CPT;
S305: 判断 GAP>GAPmax是否成立, 如果是, 执行 S306, 如果否, 执行 S308;  S305: Determine whether GAP>GAPmax is established, if yes, execute S306, if no, execute S308;
S306: 以预设的传输速率向所述终端发送流媒体数据包;  S306: Send a streaming media data packet to the terminal at a preset transmission rate.
预设的传输速率小于当前的传输速率。  The preset transmission rate is less than the current transmission rate.
S307: 将预设的标识位的值设为零;  S307: Set the value of the preset flag to zero;
S308: 判断当前的緩冲参数是否满足 GAP<GAPmin, 如果是, 则执行 S309, 如果否, 不作处理;  S308: Determine whether the current buffer parameter satisfies GAP<GAPmin, if yes, execute S309, if no, no processing;
S309: 判断标识位的值是否为 0, 如果是, 执行 S310, 如果否, 不作 处理;  S309: Determine whether the value of the flag bit is 0, if yes, execute S310, if no, do not process;
S310: 使用未降低之前的传输速率传输所述流媒体。  S310: The streaming media is transmitted using a transmission rate before the reduction.
S311 : 将所述标识位的值设置为 1。  S311: Set the value of the flag bit to 1.
也就是说, 传速速率降低后将标识位设置为 0, 传输速率恢复后将标 识位设置为 1 , 从而将标识位作为是否降低速率的判定条件之一, 如果标 识位为 1 , 说明传输速率没有被降低, 则即使当前的 GAP大于预设的第一 阈值, 也不进行提高传输速率的操作。  That is to say, after the transmission rate is reduced, the flag is set to 0, and the flag is set to 1 after the transmission rate is restored, so that the flag is used as one of the determination conditions for whether to reduce the rate. If the flag is 1, the transmission rate is indicated. If it is not lowered, the operation of increasing the transmission rate is not performed even if the current GAP is greater than the preset first threshold.
本实施例所述的流媒体传输方法, 执行主体为流媒体服务器, 流媒体 服务器依据发送的数据包计算得到流媒体当前的緩冲参数, 用来修正发送 数据包的速率, 从而节省网络资源。  In the streaming media transmission method of the embodiment, the execution entity is a streaming media server, and the streaming media server calculates the current buffering parameter of the streaming media according to the sent data packet, and is used to correct the rate of sending the data packet, thereby saving network resources.
需要说明的是, 上述全部实施例都着眼于当前的数据包, 也就是当截 获、 接收或发送数据包时, 进行緩冲余量的计算以及传输速率的控制, 也 就是说, 上述实施例所述的方法, 依据数据包的发送周期进行, 但是本发 明不限定于此, 还可以以緩冲参数的时间单位为周期进行, 例如, GAP值 以秒为单位, 则所述方法可以以 1S为周期进行, 即每隔 1S计算一次緩冲 参数, 并依据緩冲参数修订传输速率。  It should be noted that all the above embodiments focus on the current data packet, that is, when the data packet is intercepted, received, or transmitted, the calculation of the buffer margin and the control of the transmission rate are performed, that is, the above embodiment The method is performed according to the transmission period of the data packet, but the present invention is not limited thereto, and may be performed in a time unit of the buffer parameter. For example, if the GAP value is in units of seconds, the method may be 1S. The cycle is performed, that is, the buffer parameter is calculated every 1S, and the transmission rate is revised according to the buffer parameter.
上述全部实施例中, 对流媒体传输速率的控制以流媒体自身的下载量 为依据, 关注点在于流媒体本身, 而没有关注网络当前的状况。  In all of the above embodiments, the control of the streaming media transmission rate is based on the download amount of the streaming media itself, and the focus is on the streaming media itself, without paying attention to the current state of the network.
本发明还公开了一种依据网络状态设置上述实施例中预设的第一阈值 的方法, 如图 4所示, 包括: S401 : 检测所述网络侧无线链路的负载量; The invention also discloses a method for setting a first threshold preset in the foregoing embodiment according to a network state. As shown in FIG. 4, the method includes: S401: Detecting a load quantity of the network side wireless link;
S402: 依据所述负载量确定所述预设的第一阈值。  S402: Determine the preset first threshold according to the load amount.
本实施例所述的方法, 依据网络中无线链路的负载量确定预设的第一 阈值, 即 GAPmax的值, 具体地, GAPmax=K*GAPmax, K是一个无线链 路繁忙状态相关的参数, 一般情况 K取值为 1 , 当网络繁忙时 K变小, 当 网络空闲时候 K变大, 也就是说, 当网络繁忙时, 减小第一阈值, 当网络 空闲时, 增大第一阈值, 与上述实施例中第一阈值固定的情况, 在考虑流 媒体自身情况的同时, 兼顾了无线网络的状态, 能够更为有效地使用无线 网络。 本实施例所述的第一阈值的确定调整方法适用于以上全部实施例。  In the method of the embodiment, the preset first threshold, that is, the value of GAPmax, is determined according to the load of the wireless link in the network. Specifically, GAPmax=K*GAPmax, where K is a parameter related to the busy state of the wireless link. In general, the value of K is 1. When the network is busy, K becomes smaller. When the network is idle, K becomes larger. That is, when the network is busy, the first threshold is decreased. When the network is idle, the first threshold is increased. In the case where the first threshold is fixed in the above embodiment, the state of the streaming media itself is considered, and the state of the wireless network is taken into consideration, so that the wireless network can be used more effectively. The first threshold value determination and adjustment method described in this embodiment is applicable to all of the above embodiments.
进一步, 以上全部实施例中, 向终端发送流媒体数据包的是流媒体服 务器, 除此以外, 终端也可以通过访问网络中设置的緩存单元获取流媒体 数据包。  Further, in all of the above embodiments, the streaming media server is sent to the terminal, and the terminal may also obtain the streaming media packet by accessing the cache unit provided in the network.
为了加速移动网络的流媒体数据分发, 往往会在 3GPP网络内放置緩 存单元( Cache )。 当 UE访问的内容被緩存在 Cache时, UE可以从 Cache 获取网络资源, 而无需去访问流媒体服务器。 因此, 上述全部实施例中的 流媒体服务器均可被緩存单元代替, 这里不再贅述。  In order to accelerate the distribution of streaming media data on mobile networks, a cache unit (Cache) is often placed in the 3GPP network. When the content accessed by the UE is cached in the Cache, the UE can acquire the network resource from the Cache without accessing the streaming server. Therefore, the streaming media server in all the above embodiments may be replaced by a cache unit, and details are not described herein again.
与上述方法实施例相对应的, 本发明还公开了一种流媒体传输装置, 如图 5所示, 包括  Corresponding to the above method embodiment, the present invention also discloses a streaming media transmission device, as shown in FIG. 5, including
确定模块 501 , 用于依据网络侧向终端发送的流媒体数据包, 确定流 媒体当前的緩冲参数;  a determining module 501, configured to determine a current buffering parameter of the streaming media according to the streaming media data packet sent by the network side terminal;
速率降低控制模块 502, 用于当所述流媒体当前的緩冲参数大于预设 的第一阈值时, 降低所述流媒体的传输速率。  The rate reduction control module 502 is configured to reduce the transmission rate of the streaming media when the current buffering parameter of the streaming media is greater than a preset first threshold.
本实施例所述的装置可以用于网元、 终端或流媒体服务器, 通过预先 设置的第一阈值来限制无线网络中流媒体的緩冲速度, 使得流媒体不会緩 冲过多的内容, 因而能够限制流媒体数据包对空口带宽的占用, 从而避免 对空口资源的浪费。  The device in this embodiment may be used by a network element, a terminal, or a streaming media server to limit the buffering speed of the streaming media in the wireless network by using a preset first threshold, so that the streaming media does not buffer excessive content. It can limit the occupation of air interface bandwidth by streaming media packets, thus avoiding waste of air interface resources.
进一步地, 当所述装置用于网元时, 具体包括:  Further, when the device is used for a network element, the method specifically includes:
第一时间值获取单元, 用于获取预设的时钟对首次截获所述流媒体的 数据包到截获当前的数据包进行计时的时间值; 第一当前播放时间计算单元, 用于将预先获取的首次截获的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间; a first time value obtaining unit, configured to acquire a preset clock value for time when the data packet of the streaming media is intercepted for the first time to intercept the current data packet; a first current play time calculation unit, configured to add a time interval lower limit value of the data packet of the streaming media that is captured for the first time to the time value, and obtain a current play time of the streaming media;
第一检测单元, 用于检测所述当前的数据包的时间区间上限值; 第一确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数;  a first detecting unit, configured to detect a time interval upper limit value of the current data packet; a first determining unit, configured to use, as the streaming media, a difference between the time interval upper limit value and the current playing time Current buffering parameters;
应答数据包截获单元, 用于截获所述终端向所述流媒体服务器发送的 应答数据包, 减小所述应答数据包中的窗长值, 并将修改后的应答数据包 发送到网络侧服务器;  a response packet intercepting unit, configured to intercept a response packet sent by the terminal to the streaming server, reduce a window length value in the response packet, and send the modified response packet to a network side server ;
第一 TCP消息发送单元,用于当所述流媒体当前的緩冲参数大于预设 的第一阈值时, 向流媒体服务器发送包含预设的窗长值的 TCP消息, 以使 得所述流媒体服务器降低所述流媒体的传输速率, 所述预设的窗长值小于 当前的窗长值;  a first TCP message sending unit, configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, send a TCP message including a preset window length value to the streaming media server, so that the streaming media The server reduces the transmission rate of the streaming media, where the preset window length value is smaller than the current window length value;
标识位置零单元, 用于当所述流媒体当前的緩冲参数大于预设的第一 阈值时, 将预设的标识位的值设为零;  And identifying a location zero unit, configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, set a value of the preset identifier bit to zero;
速率提高控制模块, 用于当所述流媒体当前的緩冲参数小于预设的第 二阈值且预设的标识位的值为零时,提高所述流媒体的传输速率,具体地, 所述速率提高单元可以为: 第二 TCP消息发送单元, 用于向流媒体服务器 发送包括未减小的窗长值的 TCP消息,以使得所述网络侧服务器使用所述 未降低前的传输速率传输所述流媒体。  a rate increase control module, configured to: when the current buffering parameter of the streaming media is less than a preset second threshold, and the value of the preset identifier bit is zero, increase the transmission rate of the streaming media, specifically, the The rate increasing unit may be: a second TCP message sending unit, configured to send, to the streaming media server, a TCP message including an unreduced window length value, so that the network side server uses the unreduced transmission rate transmission Streaming media.
标识位置 1单元, 用于当提高所述传速速率时, 将所述预设的标识位 的值设为 1。  The identification location 1 unit is configured to set the value of the preset identification bit to 1 when the transmission rate is increased.
进一步地, 当所述装置用于终端时, 具体包括:  Further, when the device is used in a terminal, the method specifically includes:
当前播放时间获取单元, 用于从播放器获取流媒体的当前播放时间; 第二检测单元, 用于检测所述当前的数据包的时间区间上限值; 第二确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。  a current playing time obtaining unit, configured to acquire a current playing time of the streaming media from the player; a second detecting unit, configured to detect a time interval upper limit value of the current data packet; a second determining unit, configured to: The difference between the time interval upper limit value and the current play time is used as the current buffer parameter of the streaming media.
第一 TCP消息发送单元,用于当所述流媒体当前的緩冲参数大于预设 的第一阈值时, 向流媒体服务器发送包含预设的窗长值的 TCP消息, 以使 得所述流媒体服务器降低所述流媒体的传输速率, 所述预设的窗长值小于 当前的窗长值。 a first TCP message sending unit, configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, send a TCP message including a preset window length value to the streaming media server, so that The streaming media server reduces the transmission rate of the streaming media, and the preset window length value is smaller than the current window length value.
标识位置零单元, 用于当所述流媒体当前的緩冲参数大于预设的第一 阈值时, 将预设的标识位的值设为零。  And identifying a location zero unit, configured to set a value of the preset identifier bit to zero when the current buffering parameter of the streaming media is greater than a preset first threshold.
速率提高控制模块, 用于当所述流媒体当前的緩冲参数小于预设的第 二阈值且预设的标识位的值为零时,提高所述流媒体的传输速率,具体地, 所述速率提高单元可以为: 第二 TCP消息发送单元, 用于向网络侧服务器 发送将传输速率恢复到降低之前的值的 TCP消息,以使得所述网络侧服务 器使用所述未降低前的传输速率传输所述流媒体;  a rate increase control module, configured to: when the current buffering parameter of the streaming media is less than a preset second threshold, and the value of the preset identifier bit is zero, increase the transmission rate of the streaming media, specifically, the The rate increasing unit may be: a second TCP message sending unit, configured to send, to the network side server, a TCP message that restores the transmission rate to a value before the reduction, so that the network side server transmits the transmission rate before the reduction. The streaming media;
标识位置 1单元, 用于当提高所述传速速率时, 将所述预设的标识位 的值设为 1 ;  a location 1 unit, configured to set the value of the preset identifier bit to 1 when the rate of the speed is increased;
暂停指令发送单元, 用于当接收到暂停播放流媒体的指令后, 向所述 流媒体服务器发送包含窗长值为零的 TCP消息,以使得所述流媒体服务器 停止传输所述流媒体。  And a pause instruction sending unit, configured to send, to the streaming media server, a TCP message including a window length value of zero after receiving the instruction to pause playing the streaming media, so that the streaming media server stops transmitting the streaming media.
进一步地, 当所述装置用于流媒体服务器时, 具体包括:  Further, when the device is used in a streaming media server, the method specifically includes:
第二时间值获取单元, 用于获取预设的时钟对从首次发送所述流媒体 的数据包到发送当前的数据包进行计时的时间值;  a second time value obtaining unit, configured to acquire a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent;
第二当前播放时间计算单元, 用于将预先获取的首次发送的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间;  a second current playing time calculating unit, configured to add a time interval lower limit value of the data packet of the first time sent by the streaming media to the time value, to obtain a current playing time of the streaming media;
第三检测单元, 用于检测所述当前发送的数据包的时间区间上限值; 第三确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数;  a third detecting unit, configured to detect a time interval upper limit value of the currently sent data packet; a third determining unit, configured to use a difference between the time interval upper limit value and the current playing time as the flow Current buffer parameters of the media;
第一发送单元,用于以预设的传输速率向所述终端发送流媒体数据包, 所述预设的传输速率小于当前的传输速率;  a first sending unit, configured to send a streaming media data packet to the terminal at a preset transmission rate, where the preset transmission rate is smaller than a current transmission rate;
标识位置零单元, 用于当所述流媒体当前的緩冲参数大于预设的第一 阈值时, 将预设的标识位的值设为零;  And identifying a location zero unit, configured to: when the current buffering parameter of the streaming media is greater than a preset first threshold, set a value of the preset identifier bit to zero;
速率提高控制模块, 用于当所述流媒体当前的緩冲参数小于预设的第 二阈值且预设的标识位的值为零时,提高所述流媒体的传输速率,具体地, 所述速率提高控制模块可以为: 第二发送单元, 用于使用未降低之前的传 输速率传输所述流媒体; a rate increase control module, configured to: when the current buffering parameter of the streaming media is less than a preset second threshold, and the value of the preset identifier bit is zero, increase the transmission rate of the streaming media, specifically, The rate increase control module may be: a second sending unit, configured to transmit the streaming media by using a transmission rate before the reduction;
标识位置 1单元, 用于当提高所述传速速率时, 将所述预设的标识位 的值设为 1。  The identification location 1 unit is configured to set the value of the preset identification bit to 1 when the transmission rate is increased.
进一步地, 所述装置还包括:  Further, the device further includes:
第一阈值确定模块, 用于检测所述网络侧无线链路的负载量, 并依据 所述负载量确定所述预设的第一阈值。  The first threshold determining module is configured to detect a load quantity of the network side wireless link, and determine the preset first threshold according to the load quantity.
接收模块, 用于接收网络侧预设的緩存单元发送给终端的流媒体数据 包。  The receiving module is configured to receive a streaming media packet sent by the buffer unit preset by the network side to the terminal.
本发明还公开了一种通信设备, 如图 6所示, 包括:  The invention also discloses a communication device, as shown in FIG. 6, comprising:
输入输出接口 601 , 用于接收网络侧向终端发送的流媒体数据包; 处理器 602, 用于依据网络侧向终端发送的流媒体数据包, 确定流媒 体当前的緩冲参数,当所述流媒体当前的緩冲参数大于预设的第一阈值时, 降低所述流媒体的传输速率;  The input/output interface 601 is configured to receive a streaming media data packet sent by the network side terminal, and the processor 602 is configured to determine, according to the streaming media data packet sent by the network side terminal, the current buffering parameter of the streaming media, when the current When the current buffering parameter of the media is greater than a preset first threshold, the transmission rate of the streaming media is decreased;
进一步地, 本实施例中, 处理器依据网络侧向终端发送的流媒体数据 包, 确定流媒体当前的緩冲参数的具体过程可以为:  Further, in this embodiment, the specific process of determining, by the processor, the current buffering parameter of the streaming media according to the streaming media data packet sent by the network to the terminal may be:
所述处理器可以用于获取预设的时钟对首次截获所述流媒体的数据包 到截获当前的数据包进行计时的时间值; 将预先获取的首次截获的所述流 媒体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当 前播放时间; 检测所述当前的数据包的时间区间上限值; 将所述时间区间 上限值与所述当前播放时间的差值作为所述流媒体当前的緩冲参数;  The processor may be configured to acquire a time value of the preset clock for timing the data packet of the streaming media to be intercepted to intercept the current data packet; and the time of the first captured data packet of the streaming media that is acquired in advance The interval lower limit value is added to the time value to obtain a current play time of the streaming media; detecting a time interval upper limit value of the current data packet; and the time interval upper limit value and the current play time The difference is used as the current buffering parameter of the streaming media;
或者, 所述处理器还用于从播放器获取流媒体的当前播放时间; 检测 所述当前的数据包的时间区间上限值; 将所述时间区间上限值与所述当前 播放时间的差值作为所述流媒体当前的緩冲参数;  Or the processor is further configured to: acquire a current playing time of the streaming media from the player; detect a time interval upper limit value of the current data packet; and compare a difference between the time interval upper limit value and the current playing time The value is used as the current buffering parameter of the streaming media;
或者, 所述处理器还获取预设的时钟对从首次发送所述流媒体的数据 包到发送当前的数据包进行计时的时间值; 将预先获取的首次发送的所述 流媒体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的 当前播放时间; 检测所述当前发送的数据包的时间区间上限值; 将所述时 间区间上限值与所述当前播放时间的差值作为所述流媒体当前的緩冲参 数。 Alternatively, the processor further acquires a preset clock pair time value from a time when the data packet of the streaming media is first sent to when the current data packet is sent; and the pre-acquired data packet of the streaming media that is sent for the first time Adding a time interval lower limit value to the time value to obtain a current play time of the streaming media; detecting a time interval upper limit value of the currently sent data packet; and setting the time interval upper limit value to the current time The difference in play time is used as the current buffer of the streaming media. Number.
除此以外, 还可以优选包括:  In addition to this, it may preferably include:
存储器 603 , 用于存储所述流媒体当前的緩冲参数。  The memory 603 is configured to store a current buffering parameter of the streaming media.
本实施例所述的通信设备, 可以为 3GPP网络的网元、 终端或流媒体 服务器, 也可以为网络侧緩存。 所述通信设备依据计算得到的緩冲参数控 制流媒体的当前传输速率, 能够避免不必要的数据包传输, 从而提高无线 接口的利用率。  The communication device in this embodiment may be a network element, a terminal, or a streaming media server of the 3GPP network, or may be a network side cache. The communication device controls the current transmission rate of the streaming media according to the calculated buffering parameters, thereby avoiding unnecessary data packet transmission, thereby improving the utilization of the wireless interface.
本实施例方法所述的功能如果以软件功能单元的形式实现并作为独立 的产品销售或使用时, 可以存储在一个计算设备可读取存储介质中。 基于 这样的理解, 本发明实施例对现有技术做出贡献的部分或者该技术方案的 部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中, 包括若干指令用以使得一台计算设备(可以是个人计算机, 服务器, 移动 计算设备或者网络设备等)执行本发明各个实施例所述方法的全部或部分 步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以存储程序代码的介质。  The functions described in the method of the present embodiment can be stored in a readable storage medium of a computing device if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, a portion of the embodiments of the present invention that contributes to the prior art or a portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for causing a The computing device (which may be a personal computer, server, mobile computing device, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
本说明书中各个实施例采用递进的方式描述, 每个实施例重点说明的 都是与其它实施例的不同之处, 各个实施例之间相同或相似部分互相参见 即可。  The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts of the various embodiments may be referred to each other.
对所公开的实施例的上述说明, 使本领域专业技术人员能够实现或使 用本发明。 对这些实施例的多种修改对本领域的专业技术人员来说将是显 而易见的, 本文中所定义的一般原理可以在不脱离本发明的精神或范围的 情况下, 在其它实施例中实现。 因此, 本发明将不会被限制于本文所示的 这些实施例, 而是要符合与本文所公开的原理和新颖特点相一致的最宽的 范围。  The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but the broadest scopes

Claims

权 利 要 求 Rights request
1、 一种流媒体传输方法, 其特征在于, 包括: 1. A streaming media transmission method, characterized by including:
依据网络侧向终端发送的流媒体数据包,确定流媒体当前的緩冲参数; 当所述流媒体当前的緩冲参数大于预设的第一阈值时, 降低所述流媒 体的传输速率。 Determine the current buffering parameters of the streaming media based on the streaming media data packets sent from the network side to the terminal; when the current buffering parameters of the streaming media are greater than the preset first threshold, reduce the transmission rate of the streaming media.
2、根据权利要求 1所述的方法, 其特征在于, 所述依据网络侧向终端 发送的流媒体数据包, 确定流媒体当前的緩冲参数包括: 2. The method according to claim 1, characterized in that, determining the current buffering parameters of the streaming media based on the streaming media data packet sent from the network side to the terminal includes:
获取预设的时钟对首次截获所述流媒体的数据包到截获当前的数据包 进行计时的时间值; Obtain the time value of the preset clock from the first interception of the data packet of the streaming media to the interception of the current data packet;
将预先获取的首次截获的所述流媒体的数据包的时间区间下限值与所 述时间值相加, 得到所述流媒体的当前播放时间; Add the pre-obtained lower limit of the time interval of the first intercepted data packet of the streaming media to the time value to obtain the current playback time of the streaming media;
检测所述当前的数据包的时间区间上限值; Detect the upper limit of the time interval of the current data packet;
将所述时间区间上限值与所述当前播放时间的差值作为所述流媒体当 前的緩冲参数。 The difference between the upper limit of the time interval and the current playback time is used as the current buffering parameter of the streaming media.
3、根据权利要求 2所述的方法, 其特征在于, 在所述降低所述流媒体 的传输速率之后, 还包括: 3. The method according to claim 2, characterized in that, after reducing the transmission rate of the streaming media, further comprising:
截获所述终端向所述流媒体服务器发送的应答数据包; Intercept the response data packet sent by the terminal to the streaming media server;
减小所述应答数据包中的窗长值; Reduce the window length value in the response data packet;
将修改后的应答数据包发送到流媒体服务器。 Send the modified response packet to the streaming server.
4、根据权利要求 1所述的方法, 其特征在于, 所述依据网络侧向终端 发送的流媒体数据包, 确定流媒体当前的緩冲参数包括: 4. The method according to claim 1, characterized in that, determining the current buffering parameters of the streaming media based on the streaming media data packet sent from the network side to the terminal includes:
从播放器获取流媒体的当前播放时间; Get the current playback time of streaming media from the player;
检测所述当前的数据包的时间区间上限值; Detect the upper limit of the time interval of the current data packet;
将所述时间区间上限值与所述当前播放时间的差值作为所述流媒体当 前的緩冲参数。 The difference between the upper limit of the time interval and the current playback time is used as the current buffering parameter of the streaming media.
5、 根据权利要求 4所述的方法, 其特征在于, 还包括: 5. The method according to claim 4, further comprising:
当接收到暂停播放流媒体的指令后, 向所述流媒体服务器发送包含窗 长值为零的 TCP消息, 以使得所述流媒体服务器停止传输所述流媒体。 After receiving an instruction to pause the playing of streaming media, a TCP message containing a window length value of zero is sent to the streaming media server, so that the streaming media server stops transmitting the streaming media.
6、根据权利要求 2或 4所述的方法, 其特征在于, 所述降低所述流媒 体的传输速率包括: 6. The method according to claim 2 or 4, characterized in that: reducing the streaming media Body transfer rates include:
向流媒体服务器发送包含预设的窗长值的 TCP消息,以使得所述网络 侧服务器降低所述流媒体的传输速率, 所述预设的窗长值小于当前的窗长 值。 Send a TCP message containing a preset window length value to the streaming media server, so that the network side server reduces the transmission rate of the streaming media, and the preset window length value is smaller than the current window length value.
7、根据权利要求 6所述的方法,其特征在于,所述预设的窗长值包括: 零 或者 , 7. The method according to claim 6, characterized in that the preset window length value includes: zero or,
窗长值除以 M, 所述 M为自然数。 The window length value is divided by M, where M is a natural number.
8、根据权利要求 1所述的方法, 其特征在于, 所述依据网络侧向终端 发送的流媒体数据包, 确定流媒体当前的緩冲参数包括: 8. The method according to claim 1, characterized in that, determining the current buffering parameters of the streaming media based on the streaming media data packet sent from the network side to the terminal includes:
获取预设的时钟对从首次发送所述流媒体的数据包到发送当前的数据 包进行计时的时间值; Obtain the time value of the preset clock from the first transmission of the data packet of the streaming media to the transmission of the current data packet;
将预先获取的首次发送的所述流媒体的数据包的时间区间下限值与所 述时间值相加, 得到所述流媒体的当前播放时间; Add the pre-obtained lower limit of the time interval of the data packet of the streaming media sent for the first time to the time value to obtain the current playback time of the streaming media;
检测所述当前发送的数据包的时间区间上限值; Detect the upper limit of the time interval of the currently sent data packet;
将所述时间区间上限值与所述当前播放时间的差值作为所述流媒体当 前的緩冲参数。 The difference between the upper limit of the time interval and the current playback time is used as the current buffering parameter of the streaming media.
9、根据权利要求 8所述的方法, 其特征在于, 所述降低所述流媒体的 传输速率包括: 9. The method of claim 8, wherein reducing the transmission rate of the streaming media includes:
以预设的传输速率向所述终端发送流媒体数据包, 所述预设的传输速 率小于当前的传输速率。 The streaming media data packet is sent to the terminal at a preset transmission rate, and the preset transmission rate is smaller than the current transmission rate.
10、 根据权利要求 1、 2、 4或 8所述的方法, 其特征在于, 当所述流 媒体当前的緩冲参数大于预设的第一阈值时, 还包括: 10. The method according to claim 1, 2, 4 or 8, characterized in that when the current buffering parameter of the streaming media is greater than a preset first threshold, it further includes:
将预设的标识位的值设为零。 Set the default flag value to zero.
11、 根据权利要求 10所述的方法, 其特征在于, 还包括: 11. The method according to claim 10, further comprising:
当所述流媒体当前的緩冲参数小于预设的第二阈值且预设的标识位的 值为零时, 提高所述流媒体的传输速率。 When the current buffering parameter of the streaming media is less than the preset second threshold and the value of the preset identification bit is zero, the transmission rate of the streaming media is increased.
12、根据权利要求 11所述的方法, 其特征在于, 所述提高所述流媒体 的传输速率包括: 12. The method according to claim 11, characterized in that said increasing the transmission rate of said streaming media includes:
向流媒体服务器发送包括未减小的窗长值的 TCP消息,以使得所述流 媒体服务器使用未降低前的传输速率传输所述流媒体。 Send a TCP message including the unreduced window length value to the streaming server such that the stream The media server transmits the streaming media using the transmission rate before the reduction.
13、根据权利要求 11所述的方法, 其特征在于, 所述提高所述流媒体 的传输速率包括: 13. The method according to claim 11, characterized in that said increasing the transmission rate of said streaming media includes:
使用未降低之前的传输速率传输所述流媒体。 The stream is transmitted using the previous transmission rate without reduction.
14、根据权利要求 11至 13任一项所述的方法, 其特征在于, 还包括: 将所述预设的标识位的值设为 1。 14. The method according to any one of claims 11 to 13, further comprising: setting the value of the preset identification bit to 1.
15、 根据权利要求 1、 2、 4或 8任一项所述的方法, 其特征在于, 所 述预设的第一阈值的确定方法包括: 15. The method according to any one of claims 1, 2, 4 or 8, characterized in that the method for determining the preset first threshold includes:
检测所述网络侧无线链路的负载量; Detect the load of the network-side wireless link;
依据所述负载量确定所述预设的第一阈值。 The preset first threshold is determined according to the load amount.
16、 根据权利要求 1、 2、 4或 8任一项所述的方法, 其特征在于, 在 所述依据网络侧向终端发送的流媒体数据包, 计算流媒体当前的緩冲参数 之前, 还包括: 16. The method according to any one of claims 1, 2, 4 or 8, characterized in that, before calculating the current buffering parameters of the streaming media based on the streaming media data packets sent from the network side to the terminal, include:
接收网络侧预设的緩存单元发送给终端的流媒体数据包。 Receive streaming media data packets sent to the terminal from the cache unit preset on the network side.
17、 一种流媒体传输装置, 其特征在于, 包括: 17. A streaming media transmission device, characterized by including:
确定模块, 用于依据网络侧向终端发送的流媒体数据包, 确定流媒体 当前的緩冲参数; The determination module is used to determine the current buffering parameters of the streaming media based on the streaming media data packets sent from the network side to the terminal;
速率降低控制模块, 用于当所述流媒体当前的緩冲参数大于预设的第 一阈值时, 降低所述流媒体的传输速率。 A rate reduction control module, configured to reduce the transmission rate of the streaming media when the current buffering parameter of the streaming media is greater than a preset first threshold.
18、 根据权利要求 17所述的装置, 其特征在于, 所述确定模块包括: 第一时间值获取单元, 用于获取预设的时钟对首次截获所述流媒体的 数据包到截获当前的数据包进行计时的时间值; 18. The device according to claim 17, wherein the determination module includes: a first time value acquisition unit, configured to acquire a preset clock pair from the first interception of the data packet of the streaming media to the interception of the current data. The time value of the package for timing;
第一当前播放时间计算单元, 用于将预先获取的首次截获的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间; The first current playback time calculation unit is used to add the pre-obtained lower limit of the time interval of the first intercepted data packet of the streaming media to the time value to obtain the current playback time of the streaming media;
第一检测单元, 用于检测所述当前的数据包的时间区间上限值; 第一确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。 The first detection unit is used to detect the upper limit of the time interval of the current data packet; the first determination unit is used to use the difference between the upper limit of the time interval and the current playback time as the streaming media The current buffering parameters.
19、 根据权利要求 18所述的装置, 其特征在于, 还包括: 应答数据包截获单元, 用于截获所述终端向所述流媒体服务器发送的 应答数据包, 减小所述应答数据包中的窗长值, 并将修改后的应答数据包 发送到网络侧服务器。 19. The device according to claim 18, further comprising: A response data packet interception unit, configured to intercept the response data packet sent by the terminal to the streaming media server, reduce the window length value in the response data packet, and send the modified response data packet to the network side server. .
20、 根据权利要求 17所述的装置, 其特征在于, 所述确定模块包括: 当前播放时间获取单元, 用于从播放器获取流媒体的当前播放时间; 第二检测单元, 用于检测所述当前的数据包的时间区间上限值; 第二确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。 20. The device according to claim 17, wherein the determination module includes: a current playback time acquisition unit, used to obtain the current playback time of the streaming media from the player; a second detection unit, used to detect the The upper limit of the time interval of the current data packet; a second determination unit, configured to use the difference between the upper limit of the time interval and the current playback time as the current buffering parameter of the streaming media.
21、 根据权利要求 20所述的装置, 其特征在于, 还包括: 21. The device according to claim 20, further comprising:
暂停指令发送单元, 用于当接收到暂停播放流媒体的指令后, 向所述 流媒体服务器发送包含窗长值为零的 TCP消息,以使得所述流媒体服务器 停止传输所述流媒体。 The pause instruction sending unit is configured to, after receiving an instruction to pause the playing of streaming media, send a TCP message containing a window length value of zero to the streaming media server, so that the streaming media server stops transmitting the streaming media.
22、 根据权利要求 18或 20所述的装置, 其特征在于, 所述速率降低 控制模块包括: 22. The device according to claim 18 or 20, characterized in that the rate reduction control module includes:
第一 TCP消息发送单元,用于当所述流媒体当前的緩冲参数大于预设 的第一阈值时, 向流媒体服务器发送包含预设的窗长值的 TCP消息, 以使 得所述流媒体服务器降低所述流媒体的传输速率, 所述预设的窗长值小于 当前的窗长值。 A first TCP message sending unit, configured to send a TCP message containing a preset window length value to the streaming media server when the current buffering parameter of the streaming media is greater than a preset first threshold, so that the streaming media The server reduces the transmission rate of the streaming media, and the preset window length value is smaller than the current window length value.
23、 根据权利要求 17所述的装置, 其特征在于, 所述确定模块包括: 第二时间值获取单元, 用于获取预设的时钟对从首次发送所述流媒体 的数据包到发送当前的数据包进行计时的时间值; 23. The device according to claim 17, characterized in that the determination module includes: a second time value acquisition unit, configured to acquire a preset clock pair from the first transmission of the data packet of the streaming media to the transmission of the current The time value for timing of data packets;
第二当前播放时间计算单元, 用于将预先获取的首次发送的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间; The second current playback time calculation unit is used to add the pre-obtained lower limit of the time interval of the data packet of the streaming media sent for the first time to the time value to obtain the current playback time of the streaming media;
第三检测单元, 用于检测所述当前发送的数据包的时间区间上限值; 第三确定单元, 用于将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。 The third detection unit is used to detect the upper limit of the time interval of the currently sent data packet; the third determination unit is used to use the difference between the upper limit of the time interval and the current playback time as the stream The current buffering parameters of the media.
24、根据权利要求 23所述的装置, 其特征在于, 速率降低控制模块包 括: 第一发送单元,用于以预设的传输速率向所述终端发送流媒体数据包, 所述预设的传输速率小于当前的传输速率。 24. The device according to claim 23, characterized in that the rate reduction control module includes: A first sending unit configured to send streaming media data packets to the terminal at a preset transmission rate, where the preset transmission rate is smaller than the current transmission rate.
25、 根据权利要求 17、 18、 20或 23所述的装置, 其特征在于, 还包 括: 25. The device according to claim 17, 18, 20 or 23, further comprising:
标识位置零单元, 用于当所述流媒体当前的緩冲参数大于预设的第一 阈值时, 将预设的标识位的值设为零。 The identification bit zero unit is used to set the value of the preset identification bit to zero when the current buffering parameter of the streaming media is greater than the preset first threshold.
26、 根据权利要求 25所述的装置, 其特征在于, 还包括: 26. The device according to claim 25, further comprising:
速率提高控制模块, 用于当所述流媒体当前的緩冲参数小于预设的第 二阈值且预设的标识位的值为零时, 提高所述流媒体的传输速率。 A rate increase control module, configured to increase the transmission rate of the streaming media when the current buffering parameter of the streaming media is less than a preset second threshold and the value of the preset identification bit is zero.
27、根据权利要求 26所述的装置, 其特征在于, 所述速率提高控制模 块包括: 27. The device according to claim 26, characterized in that the rate increase control module includes:
第二 TCP消息发送单元,用于向流媒体服务器发送包括未减小的窗长 值的 TCP消息,以使得所述网络侧服务器使用所述未降低前的传输速率传 输所述流媒体。 The second TCP message sending unit is configured to send a TCP message including an unreduced window length value to the streaming media server, so that the network side server transmits the streaming media using the transmission rate before reduction.
28、根据权利要求 26所述的装置, 其特征在于, 所述速率提高控制模 块包括: 28. The device according to claim 26, characterized in that the rate increase control module includes:
第二发送单元, 用于使用未降低之前的传输速率传输所述流媒体。 The second sending unit is configured to transmit the streaming media using the previous transmission rate that is not reduced.
29、根据权利要求 26至 28任一项所述的装置, 其特征在于, 还包括: 标识位置 1单元, 用于当提高所述传速速率时, 将所述预设的标识位 的值设为 1。 29. The device according to any one of claims 26 to 28, further comprising: an identification position 1 unit, configured to set the value of the preset identification bit when the transmission rate is increased. is 1.
30、 根据权利要求 17、 18、 20或 23所述的装置, 其特征在于, 还包 括: 30. The device according to claim 17, 18, 20 or 23, further comprising:
第一阈值确定模块, 用于检测所述网络侧无线链路的负载量, 并依据 所述负载量确定所述预设的第一阈值。 A first threshold determination module, configured to detect the load of the network-side wireless link, and determine the preset first threshold based on the load.
31、 根据权利要求 17、 18、 20或 23所述的装置, 其特征在于, 还包 括: 31. The device according to claim 17, 18, 20 or 23, further comprising:
接收模块, 用于接收网络侧预设的緩存单元发送给终端的流媒体数据 包。 The receiving module is used to receive streaming media data packets sent to the terminal from the cache unit preset on the network side.
32、 一种通信设备, 其特征在于, 包括: 输入输出接口, 用于接收网络侧向终端发送的流媒体数据包; 处理器, 用于依据网络侧向终端发送的流媒体数据包, 确定流媒体当 前的緩冲参数, 当所述流媒体当前的緩冲参数大于预设的第一阈值时, 降 低所述流媒体的传输速率。 32. A communication device, characterized by: including: The input and output interface is used to receive streaming media data packets sent from the network side to the terminal; the processor is used to determine the current buffering parameters of the streaming media based on the streaming media data packets sent from the network side to the terminal. When the streaming media is currently When the buffering parameter is greater than the preset first threshold, the transmission rate of the streaming media is reduced.
33、根据权利要求 32所述的通信设备, 其特征在于, 所述处理器用于 依据网络侧向终端发送的流媒体数据包, 确定流媒体当前的緩冲参数具体 包括: 33. The communication device according to claim 32, characterized in that the processor is configured to determine the current buffering parameters of the streaming media based on the streaming media data packet sent from the network side to the terminal, specifically including:
所述处理器获取预设的时钟对首次截获所述流媒体的数据包到截获当 前的数据包进行计时的时间值; 将预先获取的首次截获的所述流媒体的数 据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前播放时 间; 检测所述当前的数据包的时间区间上限值; 将所述时间区间上限值与 所述当前播放时间的差值作为所述流媒体当前的緩冲参数。 The processor obtains a preset clock to time the time value from the first interception of the data packet of the streaming media to the interception of the current data packet; and sets the pre-acquired lower limit of the time interval of the first interception of the data packet of the streaming media. Add the value to the time value to obtain the current playback time of the streaming media; detect the upper limit of the time interval of the current data packet; calculate the difference between the upper limit of the time interval and the current playback time As the current buffering parameters of the streaming media.
34、根据权利要求 32所述的通信设备, 其特征在于, 所述处理器用于 依据网络侧向终端发送的流媒体数据包, 确定流媒体当前的緩冲参数具体 包括: 34. The communication device according to claim 32, characterized in that the processor is configured to determine the current buffering parameters of the streaming media based on the streaming media data packet sent from the network side to the terminal, specifically including:
所述处理器从播放器获取流媒体的当前播放时间; 检测所述当前的数 据包的时间区间上限值; 将所述时间区间上限值与所述当前播放时间的差 值作为所述流媒体当前的緩冲参数。 The processor obtains the current playback time of the streaming media from the player; detects the upper limit of the time interval of the current data packet; and uses the difference between the upper limit of the time interval and the current playback time as the stream The current buffering parameters of the media.
35、根据权利要求 32所述的通信设备, 其特征在于, 所述处理器用于 依据网络侧向终端发送的流媒体数据包, 确定流媒体当前的緩冲参数具体 包括: 35. The communication device according to claim 32, characterized in that the processor is configured to determine the current buffering parameters of the streaming media based on the streaming media data packet sent from the network side to the terminal, specifically including:
所述处理器用于获取预设的时钟对从首次发送所述流媒体的数据包到 发送当前的数据包进行计时的时间值; 将预先获取的首次发送的所述流媒 体的数据包的时间区间下限值与所述时间值相加, 得到所述流媒体的当前 播放时间; 检测所述当前发送的数据包的时间区间上限值; 将所述时间区 间上限值与所述当前播放时间的差值作为所述流媒体当前的緩冲参数。 The processor is configured to obtain a preset clock for timing the time value from the first transmission of the data packet of the streaming media to the transmission of the current data packet; and use the pre-acquired time interval of the first transmission of the data packet of the streaming media Add the lower limit value to the time value to obtain the current playback time of the streaming media; detect the upper limit value of the time interval of the currently sent data packet; compare the upper limit value of the time interval with the current playback time The difference is used as the current buffering parameter of the streaming media.
36、 根据权利要求 32所述的通信设备, 其特征在于, 还包括: 存储器, 用于存储所述流媒体当前的緩冲参数。 36. The communication device according to claim 32, further comprising: a memory, configured to store the current buffering parameters of the streaming media.
37、 根据权利要求 32至 36任一项所述通信设备, 其特征在于, 所述 通信设备为下面任意一个: 网元; 终端; 流媒体服务器; 网络侧緩存。 37. The communication device according to any one of claims 32 to 36, characterized in that: The communication device is any one of the following: network element; terminal; streaming media server; network-side cache.
PCT/CN2012/086340 2012-12-11 2012-12-11 Stream media transmission method, apparatus and communication device WO2014089752A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280017023.2A CN104025524B (en) 2012-12-11 2012-12-11 Flow-medium transmission method and device, communication equipment
PCT/CN2012/086340 WO2014089752A1 (en) 2012-12-11 2012-12-11 Stream media transmission method, apparatus and communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086340 WO2014089752A1 (en) 2012-12-11 2012-12-11 Stream media transmission method, apparatus and communication device

Publications (1)

Publication Number Publication Date
WO2014089752A1 true WO2014089752A1 (en) 2014-06-19

Family

ID=50933676

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086340 WO2014089752A1 (en) 2012-12-11 2012-12-11 Stream media transmission method, apparatus and communication device

Country Status (2)

Country Link
CN (1) CN104025524B (en)
WO (1) WO2014089752A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494702A (en) * 2018-02-23 2018-09-04 腾讯科技(深圳)有限公司 Transfer control method and device, storage medium and electronic device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681883B (en) * 2016-01-07 2019-05-31 深圳Tcl数字技术有限公司 Audio data method for pushing and system
CN107948153A (en) * 2017-11-23 2018-04-20 莫宝兰 A kind of streaming media control system and method
CN107995172A (en) * 2017-11-23 2018-05-04 莫宝兰 A kind of data stream transmitting control system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852229A (en) * 2005-10-20 2006-10-25 华为技术有限公司 Real-time flow-medium transmission method and system
US20100161761A1 (en) * 2008-12-22 2010-06-24 Industrial Technology Research Institute Method for audio and video control response and bandwidth adaptation based on network streaming applications and server using the same
CN101771492A (en) * 2008-12-29 2010-07-07 华为技术有限公司 Method and device for adjusting streaming media bit rate
CN101808239A (en) * 2010-03-01 2010-08-18 北京东方广视科技股份有限公司 Method for controlling TS flow broadcasting and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852229A (en) * 2005-10-20 2006-10-25 华为技术有限公司 Real-time flow-medium transmission method and system
US20100161761A1 (en) * 2008-12-22 2010-06-24 Industrial Technology Research Institute Method for audio and video control response and bandwidth adaptation based on network streaming applications and server using the same
CN101771492A (en) * 2008-12-29 2010-07-07 华为技术有限公司 Method and device for adjusting streaming media bit rate
CN101808239A (en) * 2010-03-01 2010-08-18 北京东方广视科技股份有限公司 Method for controlling TS flow broadcasting and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494702A (en) * 2018-02-23 2018-09-04 腾讯科技(深圳)有限公司 Transfer control method and device, storage medium and electronic device
CN108494702B (en) * 2018-02-23 2021-05-11 腾讯科技(深圳)有限公司 Transmission control method and apparatus, storage medium, and electronic apparatus

Also Published As

Publication number Publication date
CN104025524A (en) 2014-09-03
CN104025524B (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN108141443B (en) User equipment, media stream transmission network auxiliary node and media stream transmission method
US8717890B2 (en) Application, usage and radio link aware transport network scheduler
EP2959715B1 (en) Media distribution network with media burst transmission capabilities
US9854282B2 (en) System and method for enabling network based rate determination for adaptive video streaming
EP2904757B1 (en) Throttling a media stream for transmission via a radio access network
JP7496022B2 (en) Client, server, receiving method and transmitting method
WO2017185951A1 (en) Video transmission method, base station, and system
JP6132116B2 (en) Method, device and system for assessing user experience value of video quality
US20190104079A1 (en) Calling method and device, computer storage medium, and terminal
EP2959716B1 (en) Media distribution network system with media burst transmission via an access network
WO2014089752A1 (en) Stream media transmission method, apparatus and communication device
RU2012112435A (en) WAYS OF QUESTION OF ALLOCATION OF THE BAND OF THE BAND
JP2009089416A (en) Communication processing apparatus, data communication system, communication processing method, and computer program
WO2014124555A1 (en) Method and device for regulating streaming media data transmission
TW202032948A (en) Data relay device, method, distribution system, and program
US20210343304A1 (en) Method for Improving Voice Call Quality, Terminal, and System
WO2015109462A1 (en) Method and apparatus for evaluating the quality of audio and video service
JP2013143732A (en) Communication terminal device
WO2024125249A1 (en) Bitrate adaptation method and apparatus, and server
WO2014087765A1 (en) Terminal and communication system
WO2014040241A1 (en) Resetting method for transmission sequence number and radio network controller
WO2015198566A1 (en) Wireless communication device, wireless communication method, and storage medium for storing computer programs
WO2014075501A1 (en) Method and device for filtering false channel request

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12889875

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12889875

Country of ref document: EP

Kind code of ref document: A1