WO2014114224A1 - 一种数据缓存的方法和装置 - Google Patents

一种数据缓存的方法和装置 Download PDF

Info

Publication number
WO2014114224A1
WO2014114224A1 PCT/CN2014/071008 CN2014071008W WO2014114224A1 WO 2014114224 A1 WO2014114224 A1 WO 2014114224A1 CN 2014071008 W CN2014071008 W CN 2014071008W WO 2014114224 A1 WO2014114224 A1 WO 2014114224A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
data
accelerated
acceleration
packet
Prior art date
Application number
PCT/CN2014/071008
Other languages
English (en)
French (fr)
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 EP14743244.7A priority Critical patent/EP2943006B1/en
Publication of WO2014114224A1 publication Critical patent/WO2014114224A1/zh
Priority to US14/811,577 priority patent/US9866495B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6215Individual queue per QOS, rate or priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/17Interaction among intermediate nodes, e.g. hop by hop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient
    • H04W72/569Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient of the traffic information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for data caching. Background technique
  • the LTE (Long Term Evolution) base station is used as a data forwarding device.
  • the UE User Equipment
  • the received data needs to be buffered in the base station.
  • the base station uses the resource to send the buffered data to the UE.
  • the base station since the base station has a limited buffer and the service data transmission has a certain delay requirement, even if the data is not successfully transmitted to the UE, the base station cannot buffer the received data indefinitely, so the base station usually needs to implement packet loss control.
  • the mechanism is to ensure that the amount of buffered data of the base station does not exceed the buffer capacity of the base station, and the overflow of the buffered data amount is prevented.
  • the packet loss control mechanism of the base station is implemented by a "drop packet timer".
  • the LTE base station receives the IP data packet from the core network, it will start a “drop packet timer" for the received IP data packet, and the "drop packet timer" is used for:
  • the buffer of the base station is controlled to prevent the base station buffer from being occupied by the IP data packet for a long time, so that the buffer of the base station can be released in time, and the buffer space is released for receiving the new IP data packet.
  • the air interface transmission delay of the IP data packet is controlled to prevent the IP data packet from being cached for too long in the air interface, and unnecessary data transmission is generated if the QoS (Quality of Service) delay requirement is not met. This leads to wasted bandwidth.
  • QoS Quality of Service
  • the base station determines that it is timeout and advances Discard, if the streaming media is carried over TCP (Transmission Control Protocol), because TCP is a reliable transport layer protocol, if the data is lost, the data will be retransmitted continuously, which will greatly reduce the video transmission. The effect is to reduce the user experience.
  • TCP Transmission Control Protocol
  • Embodiments of the present invention provide a data cache method and apparatus, which can perform high-reliability cache processing on a received first data packet, thereby improving user experience.
  • a method for data caching comprising:
  • the first data packet is buffered in a first manner
  • the first data packet is cached in a second manner, where a cache time of the second mode is greater than a cache time of the first mode.
  • the determining whether to perform the accelerated transmission on the data in the first data packet specifically includes:
  • the first data packet carries an acceleration indication, determining to perform accelerated transmission on the data in the first data packet;
  • the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the method before the detecting whether the first data packet carries an acceleration indication, the method further includes:
  • the packet detection start command is used to indicate a data packet Whether to carry the acceleration indication for detection.
  • the method further includes:
  • a packet detection stop command is received, and the packet detection stop command is used to instruct to stop detecting whether the data packet carries an acceleration indication.
  • the method before the receiving the first data packet, the method further includes:
  • Determining whether to perform the accelerated transmission on the data in the first data packet specifically includes: detecting whether the feature information of the data packet to be accelerated matches the feature information of the first data packet;
  • the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command, determining to perform accelerated transmission on the data in the first data packet;
  • the method further includes:
  • the acceleration stop command carries characteristic information of a data packet to be stopped for acceleration.
  • the buffering the first data packet by using the first mode specifically includes:
  • the buffering the first data packet in the second manner specifically includes:
  • the buffering the first data packet by using the second mode specifically includes:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the method further includes:
  • the method further includes:
  • a second aspect provides an apparatus for data buffering, where the apparatus includes a receiving unit, a determining unit, and a buffering unit;
  • the receiving unit is configured to receive a first data packet
  • the determining unit is configured to determine whether to perform accelerated transmission on the data in the first data packet, and the buffering unit is configured to: if the accelerated transmission is not performed on the data in the first data packet, use the first mode cache The first data packet;
  • the buffering unit is further configured to cache the first data packet in a second manner, if the performing the accelerated transmission on the data in the first data packet, where the buffering time of the second mode is greater than the first The cache time of the way.
  • the determining, by the determining unit, determining whether to perform the accelerated transmission on the data in the first data packet specifically includes:
  • the first data packet carries an acceleration indication, determining to perform accelerated transmission on the data in the first data packet; If the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the receiving unit is further configured to: before detecting whether the first data packet carries an acceleration indication, receive a data packet detection start command, where the data packet detection start command is used to indicate whether the data packet carries an acceleration indication .
  • the receiving unit is further configured to: after the receiving unit receives the data packet detection start command, receive a data packet detection stop command, where the data packet detection stop command is used to indicate to stop detecting whether the data packet carries an acceleration indication.
  • the receiving unit is further configured to receive an acceleration start command before receiving the first data packet, where the acceleration start command carries feature information of the data packet to be accelerated;
  • the determining unit determines whether to perform accelerated transmission on the data in the first data packet, and specifically includes:
  • the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command, determining to perform accelerated transmission on the data in the first data packet;
  • the receiving unit is further configured to receive an acceleration stop command after receiving the acceleration start command, wherein the acceleration stop command carries characteristic information of the data packet that needs to stop acceleration.
  • the buffering unit by using the first mode, to cache the first data packet, according to the second aspect to the fifth possible implementation, specifically includes: Activating a first time length packet loss timer for the first data packet, and buffering the first data packet;
  • the buffering unit caches the first data packet in a second manner, which specifically includes:
  • the buffering unit by using the second mode to cache the first data packet, according to the second aspect to the fifth possible implementation, specifically includes:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the apparatus further includes a sending unit
  • the sending unit is configured to: if the accelerated transmission of the data packet is supported during the interface establishment process, send an indication message supporting the accelerated transmission of the data packet;
  • the receiving unit is further configured to receive an acceleration capability query message, where the acceleration capability query message is used to query whether the accelerated transmission of the data packet is supported;
  • the sending unit is further configured to: if the accelerated transmission of the data packet is supported, send an indication message supporting the accelerated transmission of the data packet.
  • an apparatus for data caching comprising a receiver, a processor, and a memory;
  • the receiver is configured to receive a first data packet, and send the first data packet to the processor;
  • the processor is configured to receive a first data packet sent by the receiver, and determine whether to perform accelerated transmission on data in the first data packet;
  • the memory is configured to cache the first data packet in a first manner if it is determined that the accelerated transmission is not performed on the data in the first data packet;
  • the memory is further configured to: if it is determined to perform accelerated transmission on data in the first data packet, The first data packet is cached in a second manner, where a cache time of the second mode is greater than a cache time of the first mode.
  • the determining, by the processor, whether performing the accelerated transmission on the data in the first data packet includes:
  • the first data packet carries an acceleration indication, determining to perform accelerated transmission on the data in the first data packet;
  • the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the receiver is further configured to: before the processor detects whether the first data packet carries an acceleration indication, receive a data packet detection start command, and send the data packet detection start command to the processor, where The data packet detection start command is used to indicate whether the data packet carries an acceleration indication.
  • the receiver is further configured to: after the receiving data packet detection start command, receive a data packet detection stop command, where the data packet detection stop command is used to indicate to stop detecting whether the data packet carries an acceleration indication.
  • the receiver is further configured to receive an acceleration start command before the receiving the first data packet, where the acceleration start command carries data to be accelerated Characteristic information of the package;
  • the determining, by the processor, whether to perform accelerated transmission on the data in the first data packet includes:
  • the feature information of the first data packet and the data packet to be accelerated carried by the acceleration start command If the feature information is matched, it is determined that the accelerated transmission is performed on the data in the first data packet; if the feature information of the first data packet does not match the feature information of the data packet to be accelerated carried by the acceleration start command, the determination is incorrect.
  • the data in the first data packet performs an accelerated transmission.
  • the receiver is further configured to receive an acceleration stop command after receiving the acceleration start command, where the acceleration stop command is required to be carried according to the fourth possible implementation manner. Stop the feature information of the accelerated packet.
  • the storing, by the first mode, the first data packet by using the first mode specifically includes:
  • the storing, by the second mode, the first data packet in the second manner includes:
  • the storing, by the second mode, the first data packet by using the second mode specifically includes:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the apparatus further includes a transmitter
  • the transmitter is configured to send an indication message supporting an accelerated transmission of the data packet if the accelerated transmission of the data packet is supported during the interface establishment process;
  • the receiver is configured to receive an acceleration capability query message, where the acceleration capability query message is used to query whether an accelerated transmission of the data packet is supported;
  • the transmitter is configured to send an indication message supporting an accelerated transmission of the data packet if the accelerated transmission of the data packet is supported.
  • Embodiments of the present invention provide a data cache method and apparatus, where the method includes: receiving a a data packet, determining whether to perform accelerated transmission on the data in the first data packet, and if performing accelerated transmission on the data in the first data packet, buffering the first data packet in a first manner; The data in the first data packet performs the accelerated transmission, and the first data packet is buffered in the second manner, where the buffering time of the second mode is greater than the buffering time of the first mode.
  • FIG. 1 is a schematic diagram of a data cache according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another method for data buffering of a base station according to an embodiment of the present invention.
  • FIG. 4 is still another method for data buffering of a base station according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a function negotiation between a video optimization gateway and a base station according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a user equipment data cache according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a function negotiation interaction between a base station and a user equipment according to an embodiment of the present invention.
  • FIG. 9 is another apparatus for data buffering according to an embodiment of the present invention.
  • FIG. 10 is still another apparatus for data buffering according to an embodiment of the present invention.
  • FIG. 11 is still another apparatus for data buffering according to an embodiment of the present invention. detailed description
  • the embodiment of the invention provides a method for data caching, as shown in FIG. 1 , the method includes:
  • the first data packet may be originated from a gateway, or may be derived from another network device, and the device that receives the first data packet may be a base station or a user equipment UE, if the first data packet is received.
  • the first data packet may be originated from the base station. After the base station sends the first data packet to the UE, the first data packet is stored in the application layer of the UE. Therefore, from another level, If the first data packet is received by the UE, the first data packet is derived from the application layer of the UE, and the source of the first data packet and the application scope of the present invention are not specifically limited. Indicates that the first packet was received.
  • the first data packet does not have any special meaning, only to distinguish it from the second data packet, where the first data packet and the second data packet are different data packets received.
  • the device determines whether to perform accelerated transmission on the data in the first data packet, as follows:
  • the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the device receives an acceleration start command, where the acceleration start command carries feature information of a data packet to be accelerated, and then the device detects whether feature information of the first data packet is required to be carried by the acceleration start command Accelerated packet matching of feature information;
  • the feature information of the first data packet and the data to be accelerated carried by the acceleration start command If the feature information of the packet matches, determining to perform accelerated transmission on the data in the first data packet; if the feature information of the first data packet does not match the feature information of the data packet to be accelerated carried by the acceleration start command And determining to not perform accelerated transmission on the data in the first data packet.
  • the feature information may be an IP quintuple, that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • the feature information may also be other information that can identify the first data packet, and the feature information is not specifically limited in the embodiment of the present invention.
  • An embodiment of the present invention is directed to the apparatus, after receiving the first data packet, determining whether to perform accelerated transmission on data in the first data packet, and determining how to perform accelerated transmission on data in the first data packet. No specific limitation.
  • step 103 If it is determined that the accelerated transmission is not performed on the data in the first data packet, step 103 is performed; if it is determined that the accelerated transmission is performed on the data in the first data packet, step 104 is performed.
  • the first data packet is buffered in a first manner.
  • the device After receiving the data packet belonging to a specific bearer, the device starts a fixed time length packet loss timer for the received data packet, and caches the data packet.
  • data packets that need to be accelerated and buffers that do not need to be accelerated are buffered in different manners.
  • the first data packet is buffered in a first manner, and the first data packet is cached in the first manner.
  • a first time length packet loss timer is started for the first data packet, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the millisecond level, and the cache management mode is suitable for ensuring the data packet transmitted in the normal manner, so if it is determined that the first The data in the data packet performs the accelerated transmission, and the first data packet is cached in the first manner, specifically, the first time length packet loss timer is started for the first data packet, and Cache the first data packet, and the first time length may refer to a value of a fixed time length in the prior art.
  • the first data packet is cached in a second manner, where a cache time of the second mode is greater than a cache time of the first mode.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the first data packet is cached in a second manner, and the first data packet in the second manner may be:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the order of milliseconds, and the cache management mode is not suitable for securing data packets that need to be accelerated, because the data packet needs to be accelerated.
  • more data packets may be transmitted during the acceleration process, resulting in temporary congestion of the scheduling process, resulting in a prolonged transmission delay of the data packet.
  • the use of the fixed-length packet loss timer may cause the data packet to be transmitted to be accelerated. Before being successfully delivered to the user equipment, it has been discarded in advance due to timeout.
  • the second time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the second time length is greater than The first time length
  • the second time length is suitable for the data packet that needs to be accelerated, that is, the device discards the need for accelerated transmission only after receiving the acknowledgement message successfully received from the receiving end or the receiving end of the bottom layer feedback. data pack.
  • the second time length is infinity, the second time length must be suitable for data packets that need to be accelerated.
  • not starting the packet loss timer will cause the data packet that needs to be accelerated to be stored in the buffer, and the device only receives the acknowledgement message successfully received from the receiving end, or the receiving end of the underlying feedback. After that, the packets that need to be accelerated are discarded, so the packet loss timer is not started, and it is also suitable for packets that need to be accelerated.
  • the embodiment of the present invention only describes the data packet that needs to perform the accelerated transmission in the second mode, and the buffering time of the second mode is greater than the buffering time of the first mode, and the specific implementation manner of the second mode is not specifically limited. .
  • An embodiment of the present invention provides a data buffering method, where the method includes: receiving a first data packet, determining whether to perform accelerated transmission on data in the first data packet, if it is determined not to be in the first data packet The data is transmitted in an accelerated manner, and the first data packet is buffered in a first manner. If it is determined that the data in the first data packet is to be accelerated, the first data packet is buffered in a second manner, where the The cache time of the second mode is greater than the cache time of the first mode.
  • the method caches data packets that need to be accelerated and buffers that do not need to be accelerated, by using different methods, so that the device can perform highly reliable cache processing on the received first data packet, thereby improving the user experience.
  • the embodiment of the present invention provides a method for data caching, which is specifically described by taking the whole process of packet forwarding in a video service as an example, and the data cache of the base station is described.
  • the method includes: 201, VoG (Video The Optimization Gateway (Video Optimization Gateway) receives the first service data sent by the PDN (Packet Data Network).
  • VoG Video The Optimization Gateway
  • PDN Packet Data Network
  • the VoG determines whether the first data packet in the first service data needs to be accelerated.
  • the first service data received by the VoG includes multiple data packets, and the data in some data packets may be in a time range that needs to be accelerated, and the data in some data packets does not need to be accelerated.
  • VoG may accelerate the data of the initial stage of the video, or randomly visit the user.
  • VoG can accelerate the data of the video clip randomly accessed by the user.
  • the VoG can identify the data packet that needs to be accelerated through the packet detection mechanism, that is, determine whether the first data packet in the first service data needs to be accelerated.
  • the VoG sets an acceleration indication in the first data packet.
  • the acceleration indication is used to instruct the base station to perform accelerated transmission on data of the first data packet.
  • the acceleration indication may be a “download acceleration” indication, which is not specifically limited in this embodiment of the present invention.
  • the acceleration indication it can be identified that the data packet belongs to a data packet that needs to perform accelerated transmission.
  • the VoG sends the first data packet to the base station.
  • the first data packet sent to the base station carries an acceleration indication.
  • the base station receives the first data packet that is sent by the VoG.
  • the base station detects whether the first data packet carries an acceleration indication.
  • step 207 is performed;
  • step 209 is performed.
  • the base station determines not to perform accelerated transmission on the data in the first data packet.
  • the base station caches the first data packet by using a first manner.
  • the device After receiving the data packet belonging to a specific bearer, the device starts a fixed time length packet loss timer for the received data packet, and caches the data packet.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners. If it is determined that the first data packet is not cached in the first data packet, the first data packet is cached in the first manner, where the first data packet is cached in the first manner:
  • a first time length packet loss timer is started for the first data packet, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the millisecond level, and the cache management mode is suitable for ensuring the data packet transmitted in the normal manner, so if it is determined that the first The data in the data packet performs the accelerated transmission, and the first data packet is cached in the first manner, specifically, the first time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the first data packet is buffered.
  • the first time length reference may be made to the value of the fixed time length in the prior art.
  • the base station determines to perform accelerated transmission on the data in the first data packet.
  • the base station caches the first data packet by using the second mode, where the cache time of the second mode is greater than the cache time of the first mode.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the first data packet is cached in a second manner, and the first data packet in the second manner may be:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the order of milliseconds, and the cache management mode is not suitable for securing data packets that need to be accelerated, because the data packet needs to be accelerated.
  • more data packets may be transmitted during the acceleration process, resulting in temporary congestion of the scheduling process, resulting in extended transmission delay of the data packet, using the fixed length.
  • the packet loss timer causes packets that need to be accelerated to be discarded in advance due to timeout before being successfully transmitted to the user equipment.
  • the second time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the second time length is greater than The first time length
  • the second time length is suitable for the data packet that needs to be accelerated, that is, the device discards the need for accelerated transmission only after receiving the acknowledgement message successfully received from the receiving end or the receiving end of the bottom layer feedback. data pack.
  • the second time length is infinity, the second time length must be suitable for data packets that need to be accelerated.
  • not starting the packet loss timer will cause the data packet that needs to be accelerated to be stored in the cache all the time.
  • the device only discards the acknowledgement message that is successfully received by the receiver from the receiving end or the underlying feedback, and then discards the need for accelerated transmission. Packets, so the packet loss timer is not started, and it is also suitable for packets that need to be accelerated.
  • the embodiment of the present invention only describes the data packet that needs to perform the accelerated transmission in the second mode, and the buffering time of the second mode is greater than the buffering time of the first mode, and the specific implementation manner of the second mode is not specifically limited. .
  • the base station schedules the first data packet to the user equipment.
  • the embodiment of the present invention further provides a method for data caching, which is specifically described by using a data packet forwarding process in a video service as an example, and the data cache of the base station is described. Specifically, as shown in FIG. 3, the method includes:
  • the VoG Video Optimization Gateway
  • PDN Packet Data Network
  • the VoG determines whether the first data packet in the first service data needs to be accelerated.
  • the first service data received by the VoG includes multiple data packets, and the data in some data packets may be in a time range that needs to be accelerated, and the data in some data packets is not required. Accelerate transmission.
  • the VoG may accelerate the data of the initial stage of the video, or reduce the random access of the user when the user randomly accesses a certain playing segment. Waiting for delay, VoG can accelerate the data of the video segment randomly accessed by the user.
  • the VoG can identify the data packet that needs to be accelerated through the packet detection mechanism, that is, determine whether the first data packet in the first service data needs to be accelerated.
  • the VoG sets an acceleration indication in the first data packet.
  • the acceleration indication is used to instruct the base station to perform accelerated transmission on data of the first data packet.
  • the acceleration indication may be a “download acceleration” indication, which is not specifically limited in this embodiment of the present invention.
  • the acceleration indication it can be identified that the data packet belongs to a data packet that needs to perform accelerated transmission.
  • the VoG sends a data packet detection start command to the base station, where the data packet detection start command is used to instruct the base station to detect whether the data packet carries an acceleration indication.
  • the VoG sends the data packet detection start command to the base station.
  • the base station is notified to detect whether the data packet carries an acceleration indication.
  • the base station receives a data packet detection start command sent by the VoG.
  • the VoG sends the first data packet to the base station.
  • the first data packet sent to the base station carries an acceleration indication.
  • step 305 is an action performed by the base station
  • step 306 is an action performed by VoG
  • step 305 and step 306 have no absolute sequence, only step 305 is required.
  • step 306 can be before step 307.
  • the base station receives the first data packet that is sent by the VoG.
  • the base station detects whether the first data packet carries an acceleration indication.
  • step 309 is performed Specifically, if the first data packet does not carry an acceleration indication, step 309 is performed;
  • step 311 is performed.
  • the base station determines not to perform accelerated transmission on the data in the first data packet.
  • the base station caches the first data packet in a first manner.
  • the device After receiving the data packet belonging to a specific bearer, the device starts a fixed time length packet loss timer for the received data packet, and caches the data packet.
  • data packets that need to be accelerated and buffers that do not need to be accelerated are buffered in different manners.
  • the first data packet is buffered in a first manner, and the first data packet is cached in the first manner.
  • a first time length packet loss timer is started for the first data packet, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the millisecond level, and the cache management mode is suitable for ensuring the data packet transmitted in the normal manner, so if it is determined that the first The data in the data packet performs the accelerated transmission, and the first data packet is cached in the first manner, specifically, the first time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the first data packet is buffered.
  • the first time length reference may be made to the value of the fixed time length in the prior art.
  • the base station determines to perform accelerated transmission on the data in the first data packet.
  • the base station caches the first data packet by using a second manner, where a buffering time of the second mode is greater than a buffering time of the first mode.
  • a buffering time of the second mode is greater than a buffering time of the first mode.
  • the first data packet is cached in a second manner, and the first data packet in the second manner may be:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the order of milliseconds, and the cache management mode is not suitable for securing data packets that need to be accelerated, because the data packet needs to be accelerated.
  • more data packets may be transmitted during the acceleration process, resulting in temporary congestion of the scheduling process, resulting in a prolonged transmission delay of the data packet.
  • the use of the fixed-length packet loss timer may cause the data packet to be transmitted to be accelerated. Before being successfully delivered to the user equipment, it has been discarded in advance due to timeout.
  • the second time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the second time length is greater than The first time length
  • the second time length is suitable for the data packet that needs to be accelerated, that is, the device discards the need for accelerated transmission only after receiving the acknowledgement message successfully received from the receiving end or the receiving end of the bottom layer feedback. data pack.
  • the second time length is infinity, the second time length must be suitable for data packets that need to be accelerated.
  • not starting the packet loss timer will cause the data packet that needs to be accelerated to be stored in the cache all the time.
  • the device only discards the acknowledgement message that is successfully received by the receiver from the receiving end or the underlying feedback, and then discards the need for accelerated transmission. Packets, so the packet loss timer is not started, and it is also suitable for packets that need to be accelerated.
  • the base station schedules the first data packet to the user equipment.
  • the VoG further determines whether the second data packet in the first service data needs to be accelerated. .
  • the VoG sends a data packet detection stop command to the base station, where the data packet detection stop command is used to instruct the base station to stop detecting whether the data packet carries an acceleration indication.
  • the method for data buffering of the base station at this time further includes:
  • the base station receives the data packet detection stop command sent by the VoG, so that the base station stops the acceleration indication detection of the data packet.
  • the embodiment of the present invention further provides a method for data caching, which is specifically described by using a data packet forwarding process in a video service as an example, and the data cache of the base station is described. As shown in FIG. 4, the method includes:
  • the VoG Video Optimization Gateway
  • PDN Packet Data Network
  • the VoG determines whether the first data packet in the first service data needs to be accelerated.
  • the first service data received by the VoG includes multiple data packets, and the data in some data packets may be in a time range that needs to be accelerated, and the data in some data packets does not need to be accelerated.
  • the VoG may accelerate the data of the initial stage of the video, or reduce the random access of the user when the user randomly accesses a certain playing segment. Waiting for delay, VoG can accelerate the data of the video segment randomly accessed by the user.
  • the VoG can identify the data packet that needs to be accelerated through the packet detection mechanism, that is, determine whether the first data packet in the first service data needs to be needed. Speed up the transfer.
  • the VoG sends an acceleration start command to the base station.
  • the acceleration start command carries feature information of the data packet to be accelerated.
  • the feature information may be an IP quintuple, that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • the feature information may also be other information that can identify the first data packet, and the feature information is not specifically limited in the embodiment of the present invention.
  • the base station will identify a data packet that needs to be accelerated to be transmitted according to the acceleration start command.
  • the base station receives the acceleration start command sent by the VoG.
  • the VoG sends the first data packet to the base station.
  • step 404 is an action performed by the base station
  • step 405 is an action performed by VoG, so steps 405 and 404 have no absolute sequence. Only step 404 is required. After step 403, step 405 is before step 406.
  • the base station receives the first data packet that is sent by the VoG.
  • the base station detects whether the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command.
  • step 408 is performed;
  • step 410 is performed.
  • the base station caches the first data packet by using a first manner.
  • the device After receiving the data packet belonging to a specific bearer, the device starts a fixed time length packet loss timer for the received data packet, and caches the data packet.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the first data packet is buffered in a first manner, and the first data packet is cached in the first manner.
  • a first time length packet loss timer is started for the first data packet, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the millisecond level, and the cache management mode is suitable for ensuring the data packet transmitted in the normal manner, so if it is determined that the first The data in the data packet performs the accelerated transmission, and the first data packet is cached in the first manner, specifically, the first time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the first data packet is buffered.
  • the first time length reference may be made to the value of the fixed time length in the prior art.
  • the base station caches the first data packet by using a second manner, where the cache time of the second mode is greater than the cache time of the first mode.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the first data packet is cached in a second manner, and the first data packet in the second manner may be:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the order of milliseconds, and the cache management mode is inappropriate for securing data packets that need to be accelerated.
  • the cache management mode is inappropriate for securing data packets that need to be accelerated.
  • more data packets may be transmitted during the acceleration process, causing temporary congestion of the scheduling process, resulting in extended transmission delay of the data packet, and using the fixed length packet loss timer Packets that require accelerated transmission have been discarded in advance due to timeouts before being successfully transmitted to the user equipment.
  • the second time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the second time length is greater than The first time length
  • the second time length is suitable for the data packet that needs to be accelerated, that is, the device discards the need for accelerated transmission only after receiving the acknowledgement message successfully received from the receiving end or the receiving end of the bottom layer feedback. data pack.
  • the second time length is infinity, the second time length must be suitable for data packets that need to be accelerated.
  • not starting the packet loss timer will cause the data packet that needs to be accelerated to be stored in the cache all the time.
  • the device only discards the acknowledgement message that is successfully received by the receiver from the receiving end or the underlying feedback, and then discards the need for accelerated transmission. Packets, so the packet loss timer is not started, and it is also suitable for packets that need to be accelerated.
  • the base station schedules the first data packet to the user equipment.
  • the VoG further determines whether the third data packet in the first service needs to be accelerated.
  • the VoG sends an acceleration stop command to the base station, where the acceleration stop command instructs the base station to stop the accelerated transmission process after receiving the acceleration stop command, where
  • the acceleration stop command carries the feature information of the data packet that needs to stop the accelerated transmission.
  • the method for data buffering of the base station further includes:
  • the acceleration stop command carries characteristic information of a data packet that needs to stop accelerated transmission.
  • the VoG sends an acceleration capability query message, where the acceleration capability query message is used to query whether the base station supports accelerated transmission of the data packet.
  • the base station receives the acceleration capability query message.
  • the base station If the base station supports accelerated transmission of a data packet, the base station sends an indication message that supports accelerated transmission of the data packet.
  • the VoG receives an indication message of the accelerated transmission of the support data packet sent by the base station. It should be noted that if the base station does not support accelerated transmission of data packets, the method of base station data buffering in the embodiment of the present invention cannot be used. The method for buffering the data of the base station in the embodiment of the present invention is applicable to the occasion where the base station supports the accelerated transmission of the data packet. By using the function negotiation process to perform the acceleration capability query, it is possible to determine whether to adopt the subsequent method of base station data buffering.
  • the VoG when the VoG establishes an interface with the base station, if the base station supports accelerated transmission of the data packet, an indication message supporting the accelerated transmission of the data packet is sent.
  • the embodiment of the present invention is specifically described by the method for buffering the data of the base station in the video service, but the method for buffering the data of the base station is not only applicable to the video service, but also applicable to other services. Again - enumeration.
  • the foregoing embodiment is specifically described by using a data buffer of a base station, but the method for buffering the data is not only applicable to the data cache of the base station, but also applicable to other applications, such as buffering of data applied to the user equipment side, in the user.
  • the first data packet may be originated from a base station, and after the base station sends the first data packet to the user equipment, the first data packet is stored in an application layer of the user equipment, so
  • the first data packet may be derived from an application layer of the user equipment, as shown in FIG. 6, which includes:
  • the first data packet is buffered in a first manner.
  • the first data packet is cached in a second manner, where a cache time of the second mode is greater than a cache time of the first mode.
  • the function negotiation process between the video optimization gateway and the base station is similar.
  • the data buffering method is applied to the user equipment data buffer, a function negotiation process exists between the user equipment and the base station. As shown in Figure 7, it includes:
  • the base station sends an acceleration capability query message, where the acceleration capability query message is used to query whether the user equipment supports accelerated transmission of the data packet.
  • the user equipment receives the acceleration capability query message.
  • the user equipment If the user equipment supports accelerated transmission of a data packet, the user equipment sends an indication message that supports accelerated transmission of the data packet.
  • the base station receives an indication message of the accelerated transmission of the support data packet sent by the user equipment.
  • the function negotiation process between the video optimization gateway and the base station is similar. If the user equipment does not support the accelerated transmission of the data packet, the user equipment side data cache method cannot be used.
  • the above method for user equipment side data caching is applicable to a case where the user equipment supports accelerated transmission of data packets.
  • an indication message supporting the accelerated transmission of the data packet is sent.
  • An embodiment of the present invention provides a data buffering method, where the method includes: receiving a first data packet, determining whether to perform accelerated transmission on data in the first data packet, if it is determined not to be in the first data packet The data is transmitted in an accelerated manner, and the first data packet is buffered in a first manner.
  • the first data packet is buffered in a second manner, where the The cache time of the second mode is greater than the cache time of the first mode.
  • the method caches the data packets that need to be accelerated and the data packets that do not need to be accelerated, by using different manners, so that the device can perform high-reliability cache processing on the received first data packet, thereby improving the user experience.
  • An embodiment of the present invention provides a device 800 for data caching.
  • the device 800 includes a receiving unit 801, a determining unit 802, and a buffer unit 803.
  • the receiving unit 801 is configured to receive a first data packet.
  • the first data packet may be originated from a gateway, or may be derived from another network device, and the device that receives the first data packet may be a base station or a UE, if the first data packet is received, The UE may send the first data packet to the base station, and after the base station sends the first data packet to the UE, the first data packet is stored in an application layer of the UE, so from another level, if receiving The first data packet is the UE, and the first data packet is derived from the application layer of the UE.
  • the source of the first data packet and the application scope of the present invention are not specifically limited in the embodiment of the present invention, and only the receiving is described.
  • Unit 801 receives the first data packet.
  • the determining unit 802 is configured to determine whether to perform accelerated transmission on data in the first data packet.
  • the determining unit 802 needs to determine whether to perform accelerated transmission on the data in the first data packet, by: detecting the first data Whether the acceleration indication is carried in the packet, and if the first data packet carries the acceleration indication, determining to perform accelerated transmission on the data in the first data packet;
  • the first data packet does not carry an acceleration indication, determining that the data in the first data packet is not Perform an accelerated transfer.
  • the receiving unit 801 receives an acceleration start command, where the acceleration start command carries feature information of a data packet to be accelerated, and then the determining unit 802 detects whether the feature information of the first data packet is related to the acceleration start The feature information of the data packet carried by the command that needs to be accelerated is matched;
  • the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command, determining to perform accelerated transmission on the data in the first data packet;
  • the feature information may be an IP quintuple, that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • the feature information may also be other information that can identify the first data packet, and the feature information is not specifically limited in the embodiment of the present invention.
  • An embodiment of the present invention is directed to the apparatus 800, after receiving the first data packet, determining whether to perform accelerated transmission on data in the first data packet, and how to determine whether to perform acceleration on data in the first data packet.
  • Transmission is not specifically limited.
  • the buffer unit 803 is configured to cache the first data packet in a first manner if the accelerated transmission is not performed on the data in the first data packet.
  • the device 800 After receiving the data packet belonging to a specific bearer, the device 800 starts a packet loss timer of a fixed length of time for the received data packet, and caches the data packet.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the buffering unit 803 caches the first data packet in a first manner, and the buffering the first data packet in the first manner may be: Generating a first time length packet loss timer for the first data packet, and buffering the first data packet.
  • the cache management time of the fixed-time packet loss timer is generally in the millisecond level, and the cache management mode is suitable for ensuring the data packet transmitted in the normal manner, so if it is determined that the first The data in the data packet performs the accelerated transmission, and the first data packet is cached in the first manner, specifically, the first time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the first data packet is buffered.
  • the first time length reference may be made to the time value of the fixed time packet loss timer in the prior art.
  • the buffering unit 803 is further configured to: when performing accelerated transmission on the data in the first data packet, buffering the first data packet in a second manner, where a cache time of the second mode is greater than the first A way to cache time.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the buffering unit 803 caches the first data packet in a second manner, and the buffering the first data packet in the second manner may be:
  • the packet loss timer is not started, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the order of milliseconds, and the cache management mode is not suitable for securing data packets that need to be accelerated, because the data packet needs to be accelerated.
  • more data packets may be transmitted during the acceleration process, thereby causing temporary congestion of the scheduling process, resulting in prolonged transmission delay of the data packet.
  • Using the fixed length packet loss timer may cause the data packet to be accelerated to be transmitted. It has been discarded in advance due to timeout before being successfully transmitted to the user equipment.
  • the second method is used to cache the first data packet, the specific Activating a second time-length packet loss timer for the first data packet, and buffering the first data packet, the second time length needs to be greater than a first time length, where the second time length should be accelerated.
  • the data packet is suitable, that is, the device discards the data packet that needs to be accelerated only after receiving the acknowledgment message successfully received from the receiving end, or the receiving end of the underlying feedback. Specifically, if the second time length is infinity, the second time length must be suitable for data packets that need to be accelerated.
  • not starting the packet loss timer will cause the data packet that needs to be accelerated to be stored in the cache all the time.
  • the device only discards the acknowledgement message that is successfully received by the receiver from the receiving end or the underlying feedback, and then discards the need for accelerated transmission. Packets, so the packet loss timer is not started, and it is also suitable for packets that need to be accelerated.
  • the embodiment of the present invention only describes the data packet that needs to perform the accelerated transmission in the second mode, and the buffering time of the second mode is greater than the buffering time of the first mode, and the specific implementation manner of the second mode is not specifically limited. .
  • the determining unit 802 determining whether to perform the accelerated transmission on the data in the first data packet specifically includes:
  • the first data packet carries an acceleration indication, determining to perform accelerated transmission on the data in the first data packet.
  • the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the apparatus 800 is prevented from being in the acceleration indication detection state of the data packet, and the communication peer end determines to perform accelerated transmission on the first data packet sent to the apparatus 800. Thereafter, a packet detection start command is also sent to the device 800, The device 800 is notified to initiate the acceleration indication detection of the data packet. Therefore, the receiving unit 801 is further configured to receive the data packet detection before the detecting whether the first data packet carries the acceleration indication. The start command is used to indicate whether the data packet carries an acceleration indication.
  • the receiving unit 801 is further configured to: after receiving the data packet detection start command, Receiving a packet detection stop command, the packet detection stop command is used to instruct to stop detecting whether the data packet carries an acceleration indication.
  • the receiving unit 801 is further configured to receive an acceleration start command before receiving the first data packet, where the acceleration start command carries feature information of the data packet to be accelerated.
  • the feature information may be an IP quintuple, that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • IP quintuple that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • the feature information is not specifically limited in the embodiment of the present invention.
  • the feature information may also be other information that can identify the first data packet, and the feature information is not specifically limited in the embodiment of the present invention.
  • the device 800 will identify a packet that needs to be accelerated for transmission according to the accelerated start command.
  • the determining unit 802 determining whether to perform acceleration transmission on the data in the first data packet includes:
  • the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command, determining to perform accelerated transmission on the data in the first data packet;
  • the receiving unit 801 is further configured to: after receiving the acceleration start command, receive and add a speed stop command, wherein the acceleration stop command carries characteristic information of a data packet that needs to stop acceleration.
  • the buffering unit 803 buffering the first data packet in the first manner specifically includes:
  • a first time length packet loss timer is started for the first data packet, and the first data packet is buffered.
  • the buffering unit 803, in the second manner, buffering the first data packet specifically includes: starting a second time length packet loss timer for the first data packet, and buffering the first data packet, where the The second time length is greater than the first time length.
  • the second time length may be infinity.
  • the buffering, by the cache unit 803, the first data packet in the second manner, the method includes: starting a packet loss timer, and buffering the first data packet.
  • the apparatus 800 further includes a sending unit 804.
  • the receiving unit 801 is further configured to receive an acceleration capability query message, where the acceleration capability query message is used to query whether the accelerated transmission of the data packet is supported.
  • the sending unit 804 is further configured to: if the accelerated transmission of the data packet is supported, send an indication message that supports the accelerated transmission of the data packet.
  • the data caching method of the embodiment of the present invention cannot be adopted.
  • the data buffering method provided by the above embodiment is suitable for the case where the apparatus 800 supports accelerated transmission of data packets.
  • the device 800 does not necessarily send an indication message supporting the accelerated transmission of the data packet after receiving the acceleration capability query message.
  • the function negotiation process is only one type of the function negotiation process.
  • the sending unit 804 is further configured to: when the interface is established, if the accelerated transmission of the data packet is supported, the indication message for supporting the accelerated transmission of the data packet is sent.
  • the device for the data buffering may be applied to the data buffer of the base station, and may also be applied to the data buffer of the user equipment.
  • the application scenario of the device for buffering the data is not specifically limited.
  • An embodiment of the present invention provides an apparatus for data buffering, where the apparatus includes: a receiving unit, a determining unit, and a cache unit.
  • the determining unit determines whether to perform accelerated transmission on the data in the first data packet, and if it is determined not to perform accelerated transmission on the data in the first data packet,
  • the buffering unit caches the first data packet in a first manner; if it is determined to perform accelerated transmission on the data in the first data packet, the buffering unit caches the first data packet in a second manner, where The cache time of the second mode is greater than the cache time of the first mode.
  • the device caches data packets that need to be accelerated and buffers that do not need to be accelerated, by using different methods, so that the device can perform highly reliable cache processing on the received first data packet, thereby improving the user experience.
  • An embodiment of the present invention provides a device 1000 for data caching.
  • the device 1000 includes a receiver 1001, a processor 1002, and a memory 1003.
  • the receiver 1001 is configured to receive a first data packet, and send the first data packet to the processor 1002.
  • the first data packet may be originated from a gateway, or may be derived from another network device, and the device that receives the first data packet may be a base station or a UE, if the first data packet is received, The UE may send the first data packet to the base station, and after the base station sends the first data packet to the UE, the first data packet is stored in an application layer of the UE, so from another level, if receiving The first data packet is the UE, and the first data packet is derived from the application layer of the UE.
  • the source of the first data packet and the application scope of the present invention are not specifically limited in the embodiment of the present invention, and only the receiving is described.
  • the device 1001 receives the first data packet and sends the first data packet to the processor 1002.
  • the processor 1002 is configured to receive the first data packet sent by the receiver 1001, and Whether to perform accelerated transmission on the data in the first data packet.
  • the processor 1002 receives the first data packet, and determines whether the data in the first data packet is Perform an accelerated transfer.
  • whether to perform accelerated transmission on the data in the first data packet may be determined as follows:
  • the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the receiver 1001 receives an acceleration start command, wherein the acceleration start command carries feature information of a data packet to be accelerated, and then the processor 1002 detects whether feature information of the first data packet is related to the acceleration start Matching the feature information of the data packet to be accelerated carried by the command; if the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command, determining the first data packet
  • the data in the execution performs accelerated transmission;
  • the feature information may be an IP quintuple, that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • the feature information may also be other information that can identify the first data packet, and the feature information is not specifically limited in the embodiment of the present invention.
  • the embodiment of the present invention is directed to the apparatus 80 determining, after receiving the first data packet, whether to perform accelerated transmission on the data in the first data packet, and determining, by the processor 1002, whether the first data packet is determined.
  • the data in the execution of the accelerated transmission is not specifically limited.
  • the memory 1003 is configured to: if it is determined not to perform accelerated transmission on the data in the first data packet In the first mode, the first data packet is cached.
  • the device 1000 After receiving the data packet belonging to a specific bearer, the device 1000 starts a packet loss timer of a fixed length of time for the received data packet, and caches the data packet.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the memory 1003 caches the first data packet in a first manner, where the first data packet is buffered in a first manner, which may be:
  • a first time length packet loss timer is started for the first data packet, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the millisecond level, and the cache management mode is suitable for ensuring the data packet transmitted in the normal manner, so if it is determined that the first The data in the data packet performs the accelerated transmission, and the first data packet is cached in the first manner, specifically, the first time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the first data packet is buffered.
  • the first time length reference may be made to the time value of the fixed time packet loss timer in the prior art.
  • the memory 1003 is further configured to: if it is determined to perform accelerated transmission on the data in the first data packet, cache the first data packet in a second manner, where a cache time of the second mode is greater than the first A way to cache time.
  • data packets that need to be accelerated for transmission and data packets that do not need to be accelerated are buffered in different manners.
  • the memory 1003 caches the first data packet in a second manner, and the buffering the first data packet in the second manner may be:
  • the second time length packet loss timer is started for the first data packet, and the first data packet is cached, where the second time length is greater than the first time length, and may be infinity. or
  • the packet loss timer is not started, and the first data packet is buffered.
  • the cache management time of the fixed-time packet loss timer is generally in the order of milliseconds, and the cache management mode is not suitable for securing data packets that need to be accelerated, because the data packet needs to be accelerated.
  • more data packets may be transmitted during the acceleration process, thereby causing temporary congestion of the scheduling process, resulting in prolonged transmission delay of the data packet.
  • Using the fixed length packet loss timer may cause the data packet to be accelerated to be transmitted. It has been discarded in advance due to timeout before being successfully transmitted to the user equipment.
  • the second time length packet loss timer is started for the first data packet, and the first data packet is buffered, and the second time length is greater than The first time length
  • the second time length is suitable for the data packet that needs to be accelerated, that is, the device discards the need for accelerated transmission only after receiving the acknowledgement message successfully received from the receiving end or the receiving end of the bottom layer feedback. data pack.
  • the second time length is infinity, the second time length must be suitable for data packets that need to be accelerated.
  • not starting the packet loss timer will cause the data packet that needs to be accelerated to be stored in the cache all the time.
  • the device only discards the acknowledgement message that is successfully received by the receiver from the receiving end or the underlying feedback, and then discards the need for accelerated transmission. Packets, so the packet loss timer is not started, and it is also suitable for packets that need to be accelerated.
  • the embodiment of the present invention only describes the data packet that needs to perform the accelerated transmission in the second mode, and the buffering time of the second mode is greater than the buffering time of the first mode, and the specific implementation manner of the second mode is not specifically limited. .
  • the determining, by the processor 1002, whether performing the accelerated transmission on the data in the first data packet includes: Detecting whether the first data packet carries an acceleration indication.
  • the first data packet carries an acceleration indication, determining to perform accelerated transmission on the data in the first data packet.
  • the first data packet does not carry an acceleration indication, it is determined that the accelerated transmission is not performed on the data in the first data packet.
  • the apparatus 1000 is prevented from being in the acceleration indication detection state of the data packet, and the communication peer end determines to perform accelerated transmission on the first data packet sent to the apparatus 1000. Thereafter, a packet detection start command is also sent to the device 1000, and the device 1000 is notified to initiate an acceleration indication detection of the data packet, so for the device 1000,
  • the receiver 1001 is further configured to: before the processor detects whether the first data packet carries an acceleration indication, receive a data packet detection start command, and send the data packet detection start command to the processor 1002
  • the data packet detection start command is used to indicate whether the data packet carries an acceleration indication.
  • the receiver 1001 is further configured to detect a start command in the received data packet. Thereafter, a packet detection stop command is received, and the packet detection stop command is used to instruct to stop detecting whether the data packet carries an acceleration indication.
  • the receiver 1001 is further configured to receive an acceleration start command before receiving the first data packet, where the acceleration start command carries feature information of the data packet to be accelerated.
  • the feature information may be an IP quintuple, that is, a source IP address, a target IP address, a source port number, a target port number, and a protocol type.
  • the feature information may also be other information that can identify the first data packet, and the feature information is not specifically limited in the embodiment of the present invention.
  • the device 1000 will identify a data packet that needs to be accelerated for transmission according to the acceleration start command.
  • the determining, by the processor 1002, whether performing the accelerated transmission on the data in the first data packet includes:
  • the feature information of the first data packet matches the feature information of the data packet to be accelerated carried by the acceleration start command, determining to perform accelerated transmission on the data in the first data packet;
  • the receiver 1001 is further configured to receive an acceleration stop command after receiving the acceleration start command, wherein the acceleration stop command carries characteristic information of a data packet that needs to stop acceleration.
  • the storing, by the memory 1003, the first data packet by using the first manner includes:
  • the buffering of the first data packet by the memory 1003 in the second manner includes: starting a second time length packet loss timer for the first data packet, and buffering the first data packet, where the second The length of time is greater than the first length of time.
  • the second time length may be infinity.
  • the storing, by the memory 1003, the first data packet in the second manner, the method includes: starting a packet loss timer, and buffering the first data packet.
  • the apparatus 1000 further includes a transmitter 1004.
  • the receiver 1001 is configured to receive an acceleration capability query message, where the acceleration capability query message is used to query whether an accelerated transmission of the data packet is supported.
  • the transmitter 1004 is configured to: if the accelerated transmission of the data packet is supported, send an indication message supporting the accelerated transmission of the data packet. It should be noted that if the apparatus 1000 does not support accelerated transmission of data packets, the data caching method of the embodiment of the present invention cannot be adopted.
  • the method for data buffering provided by the above embodiment is applicable to the case where the device 1000 supports accelerated transmission of data packets. By using the function negotiation process to perform the acceleration capability query, it is possible to determine whether to adopt a subsequent data cache method.
  • the device 1000 does not necessarily send an indication message supporting the accelerated transmission of the data packet after receiving the acceleration capability query message.
  • the function negotiation process is only one type of the function negotiation process.
  • the transmitter 1004 is further configured to: if the accelerated transmission of the data packet is supported when the interface is established, send an indication message that supports the accelerated transmission of the data packet.
  • the device for data buffering may be applied to the data buffer of the base station, and may also be applied to the data buffer of the user equipment.
  • the application scenario of the device for buffering the data is not specifically limited in the embodiment of the present invention.
  • An embodiment of the present invention provides an apparatus for data buffering, where the apparatus includes: a receiver, a processor, and a memory.
  • the processor determines whether to perform accelerated transmission on the data in the first data packet, and if it is determined not to perform accelerated transmission on the data in the first data packet, The memory buffers the first data packet in a first manner; if it is determined to perform accelerated transmission on data in the first data packet, the memory caches the first data packet in a second manner, where The cache time of the second mode is greater than the cache time of the first mode.
  • the device caches data packets that need to be accelerated and buffers that do not need to be accelerated, by using different methods, so that the device can perform high-reliability cache processing on the received first data packet, thereby improving the user experience.

Landscapes

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

Abstract

本发明实施例提供一种数据缓存的方法和装置,能够对接收到的第一数据包执行高可靠性的缓存处理,进而提升用户体验。所述方法包括:接收第一数据包;确定是否对所述第一数据包中的数据执行加速传输;若确定不对所述第一数据包中的数据执行加速传输,采用第一方式缓存所述第一数据包;若确定对所述第一数据包中的数据执行加速传输,采用第二方式缓存所述第一数据包,其中,所述第二方式的缓存时间大于所述第一方式的缓存时间。本发明适用于通信领域。

Description

一种数据緩存的方法和装置 技术领域
本发明涉及通信领域, 尤其涉及一种数据緩存的方法和装置。 背景技术
LTE ( long term evolution, 长期演进 )基站作为数据转发设备, 在将数 据调度给数据所对应的 UE ( User Equipment, 用户设备)前, 需要先将所接 收到的数据緩存在基站中, 当空口调度分配给 UE—定的空口资源后, 基站 再利用该资源将緩存的数据发送给 UE。但是由于基站的緩存有限, 而且业务 数据的传输具有一定的时延要求, 即使数据没有被成功发送给 UE,基站也不 能无限制的将所接收的数据緩存, 因此基站中通常需实现丟包控制机制, 以 保证基站的緩存数据量不超过基站的緩存容量,防止出现緩存数据量的上溢。
在 LTE基站緩存管理规范中, 基站的丟包控制机制通过 "丟包定时器" 实现。 当 LTE基站接收到来自核心网的 IP数据包后, 将为接收到的 IP数据 包启动 "丟包定时器", 该 "丟包定时器" 用于:
第一, 控制基站的緩存, 避免基站緩存被 IP数据包长时间占用, 使得可 以及时释放基站的緩存, 为接纳新的 IP数据包释放出緩存空间。
第二, 控制 IP数据包的空口传输时延, 避免 IP数据包在空口緩存时间 过长, 在不满足 QoS ( Quality of Service,服务质量)时延要求的情况下, 产生 不必要的数据传输, 而导致带宽浪费。
但是, 不同业务在特定时期对承载带宽和基站的緩存管理要求不同, 比 如为了达到流媒体初始播放加速和拖动加速的效果, 需要在流媒体初始下载 阶段,将较大量的流媒体数据在初始下载阶段发送给 UE,但是当大量数据到 达基站后, 由于基站启动 "毫秒" 级丟包定时器, 有可能导致基站接收到的 大量 "下载数据包", 在未成功传输给 UE前就被无线基站认定为超时而提前 丟弃,如果流媒体承载在 TCP ( Transmission Control Protocol,传输控制协议 ) 上, 因为 TCP是一种可靠的运输层协议, 假如数据丟失, 则该数据会被不断 重传, 这样会大大降低视频传输效果, 降低用户体验。 发明内容
本发明的实施例提供一种数据緩存的方法和装置, 能够对接收到的第一 数据包执行高可靠性的緩存处理, 进而提升用户体验。
为达到上述目的, 本发明的实施例采用如下技术方案:
第一方面, 提供一种数据緩存的方法, 所述方法包括:
接收第一数据包;
确定是否对所述第一数据包中的数据执行加速传输;
若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包;
若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所 述第一数据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩存时 间。
在第一种可能的实现方式中, 根据第一方面, 所述确定是否对所述第一 数据包中的数据执行加速传输具体包括:
检测所述第一数据包是否携带加速指示;
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
在第二种可能的实现方式中, 根据第一种可能的实现方式, 在所述检测 所述第一数据包是否携带加速指示前, 还包括:
接收数据包检测启动命令, 所述数据包检测启动命令用于指示对数据包 是否携带加速指示进行检测。
在第三种可能的实现方式中, 根据第二种可能的实现方式, 在所述接收 数据包检测启动命令后, 还包括:
接收数据包检测停止命令, 所述数据包检测停止命令用于指示停止对数 据包是否携带加速指示进行检测。
在第四种可能的实现方式中, 根据第一方面, 在所述接收第一数据包前, 还包括:
接收加速启动命令, 其中, 所述加速启动命令携带需加速的数据包的特 征信息;
所述确定是否对所述第一数据包中的数据执行加速传输具体包括: 检测所述需加速的数据包的特征信息是否与所述第一数据包的特征信息 匹配;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
在第五种可能的实现方式中, 根据第四种可能的实现方式, 在所述接收 加速启动命令后, 还包括:
接收加速停止命令, 其中, 所述加速停止命令携带需停止加速的数据包 的特征信息。
在第六种可能的实现方式中, 根据第一方面至第五种可能的实现方式, 所述采用第一方式緩存所述第一数据包具体包括:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包;
所述采用第二方式緩存所述第一数据包具体包括:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
在第七种可能的实现方式中, 根据第一方面至第五种可能的实现方式, 所述采用第二方式緩存所述第一数据包具体包括:
不启动丟包定时器, 并緩存所述第一数据包。
在第八种可能的实现方式中, 根据第一方面至第七种可能的实现方式, 所述方法还包括:
在接口建立过程中, 若支持数据包的加速传输, 则发送支持数据包的加 速传输的指示消息;
或所述方法还包括:
接收加速能力查询消息, 所述加速能力查询消息用于查询是否支持数据 包的加速传输;
若支持数据包的加速传输, 则发送支持数据包的加速传输的指示消息。 第二方面, 提供了一种数据緩存的装置, 所述装置包括接收单元、 确定 单元、 緩存单元;
所述接收单元, 用于接收第一数据包;
所述确定单元,用于确定是否对所述第一数据包中的数据执行加速传输; 所述緩存单元, 用于若不对所述第一数据包中的数据执行加速传输, 采 用第一方式緩存所述第一数据包;
所述緩存单元, 还用于若对所述第一数据包中的数据执行加速传输, 采 用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩存时间大于所述 第一方式的緩存时间。
在第一种可能的实现方式中, 根据第二方面, 所述确定单元确定是否对 所述第一数据包中的数据执行加速传输具体包括:
检测所述第一数据包是否携带加速指示;
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输; 若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
在第二种可能的实现方式中, 根据第一种可能的实现方式,
所述接收单元,还用于在所述检测所述第一数据包是否携带加速指示前, 接收数据包检测启动命令, 所述数据包检测启动命令用于指示对数据包是否 携带加速指示进行检测。
在第三种可能的实现方式中, 根据第二种可能的实现方式,
所述接收单元, 还用于在所述接收单元接收数据包检测启动命令后, 接 收数据包检测停止命令, 所述数据包检测停止命令用于指示停止对数据包是 否携带加速指示进行检测。
在第四种可能的实现方式中, 根据第二方面,
所述接收单元, 还用于在接收第一数据包前, 接收加速启动命令, 其中, 所述加速启动命令携带需加速的数据包的特征信息;
所述确定单元确定是否对所述第一数据包中的数据执行加速传输具体包 括:
检测所述需加速的数据包的特征信息是否与所述第一数据包的特征信息 匹配;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
在第五种可能的实现方式中, 根据第四种可能的实现方式,
所述接收单元, 还用于在接收加速启动命令后, 接收加速停止命令, 其 中, 所述加速停止命令携带需停止加速的数据包的特征信息。
在第六种可能的实现方式中, 根据第二方面至第五种可能的实现方式, 所述緩存单元采用第一方式緩存所述第一数据包具体包括: 为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包;
所述緩存单元采用第二方式緩存所述第一数据包具体包括:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
在第七种可能的实现方式中, 根据第二方面至第五种可能的实现方式, 所述緩存单元采用第二方式緩存所述第一数据包具体包括:
不启动丟包定时器, 并緩存所述第一数据包。
在第八种可能的实现方式中, 根据第二方面至第七种可能的实现方式, 所述装置还包括发送单元;
所述发送单元, 用于在接口建立过程中, 若支持数据包的加速传输, 则 发送支持数据包的加速传输的指示消息;
所述接收单元, 还用于接收加速能力查询消息, 所述加速能力查询消息 用于查询是否支持数据包的加速传输;
所述发送单元, 还用于若支持数据包的加速传输, 则发送支持数据包的 加速传输的指示消息。
第三方面, 提供了一种数据緩存的装置, 所述装置包括接收器、 处理器、 存储器;
所述接收器, 用于接收第一数据包, 并将所述第一数据包发送给所述处 理器;
所述处理器, 用于接收所述接收器发送的第一数据包, 并确定是否对所 述第一数据包中的数据执行加速传输;
所述存储器, 用于若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存所述第一数据包;
所述存储器, 还用于若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩存时间大于所 述第一方式的緩存时间。
在第一种可能的实现方式中, 根据第三方面, 所述处理器确定是否对所 述第一数据包中的数据执行加速传输具体包括:
检测所述第一数据包是否携带加速指示;
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
在第二种可能的实现方式中, 根据第一种可能的实现方式,
所述接收器, 还用于在所述处理器检测所述第一数据包是否携带加速指 示前, 接收数据包检测启动命令, 并将所述数据包检测启动命令发送给所述 处理器, 其中, 所述数据包检测启动命令用于指示对数据包是否携带加速指 示进行检测。
在第三种可能的实现方式中, 根据第二种可能的实现方式,
所述接收器, 还用于在所述接收数据包检测启动命令后, 接收数据包检 测停止命令, 所述数据包检测停止命令用于指示停止对数据包是否携带加速 指示进行检测。
在第四种可能的实现方式中, 根据第三方面, 所述接收器, 还用于在所 述接收第一数据包前, 接收加速启动命令, 其中, 所述加速启动命令携带需 加速的数据包的特征信息;
所述处理器确定是否对所述第一数据包中的数据执行加速传输具体包 括:
检测所述需加速传输的数据包的特征信息是否与所述第一数据包的特征 信息匹配;
若第一数据包的特征信息与所述加速启动命令携带的需加速的数据包的 特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输; 若第一数据包的特征信息与所述加速启动命令携带的需加速的数据包的 特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
在第五种可能的实现方式中, 根据第四种可能的实现方式, 所述接收器, 还用于在所述接收加速启动命令后, 接收加速停止命令, 其中, 所述加速停 止命令携带需停止加速的数据包的特征信息。
在第六种可能的实现方式中, 根据第三方面至第五种可能的实现方式, 所述存储器采用第一方式緩存所述第一数据包具体包括:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包;
所述存储器采用第二方式緩存所述第一数据包具体包括:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
在第七种可能的实现方式中, 根据第三方面至第五种可能的实现方式, 所述存储器采用第二方式緩存所述第一数据包具体包括:
不启动丟包定时器, 并緩存所述第一数据包。
在第八种可能的实现方式中, 根据第三方面至第七种可能的实现方式, 所述装置还包括发送器;
所述发送器, 用于在接口建立过程中, 若支持数据包的加速传输, 则发 送支持数据包的加速传输的指示消息;
所述接收器, 用于接收加速能力查询消息, 所述加速能力查询消息用于 查询是否支持数据包的加速传输;
所述发送器, 用于若支持数据包的加速传输, 则发送支持数据包的加速 传输的指示消息。
本发明实施例提供一种数据緩存的方法和装置, 所述方法包括: 接收第 一数据包, 确定是否对所述第一数据包中的数据执行加速传输, 若不对所述 第一数据包中的数据执行加速传输, 采用第一方式緩存所述第一数据包; 若 对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所述第一数据 包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩存时间。 该方法 通过采用不同方式緩存需要加速传输的数据包和不需要加速传输的数据包, 使得能够对接收到的第一数据包执行高可靠性的緩存处理,提升了用户体验。 附图说明
图 1为本发明实施例提供的一种数据緩存的方法;
图 2为本发明实施例提的一种基站数据緩存的方法;
图 3为本发明实施例提的另一种基站数据緩存的方法;
图 4为本发明实施例提的又一种基站数据緩存的方法;
图 5为本发明实施例提供的一种视频优化网关与基站之间的功能协商交 互图;
图 6为本发明实施例提供的一种用户设备数据緩存的方法;
图 7 为本发明实施例提供的一种基站与用户设备之间的功能协商交互 图;
图 8为本发明实施例提供的一种数据緩存的装置;
图 9为本发明实施例提供的另一种数据緩存的装置;
图 10为本发明实施例提供的又一种数据緩存的装置;
图 11为本发明实施例提供的又一种数据緩存的装置。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 实施例一、
本发明实施例提供一种数据緩存的方法, 具体如图 1所示, 所述方法包 括:
101、 接收第一数据包。
具体的,所述第一数据包可以来源于网关,也可以来源于其它网络设备, 接收所述第一数据包的装置可以是基站,也可以是用户设备 UE ,如果接收所 述第一数据包的是 UE, 则所述第一数据包可以来源于基站, 基站将所述第 一数据包发送给 UE后, 所述第一数据包存储在 UE 的应用层, 所以, 从另 一层面讲, 如果接收所述第一数据包的是 UE, 则所述第一数据包来源于 UE 的应用层, 本发明实施例对所述第一数据包的来源和本发明的应用范围不作 具体限定, 仅说明接收到第一数据包。
需要说明的是, 所述第一数据包不具有任何特殊的含义, 仅是为了区别 于下述的第二数据包,所述第一数据包和第二数据包是接收到的不同数据包。
102、 确定是否对所述第一数据包中的数据执行加速传输。
具体的, 装置在接收到第一数据包后, 需确定是否对所述第一数据包中 的数据执行加速传输, 可以通过如下方式:
检测所述第一数据包中是否携带加速指示, 若所述第一数据包携带加速 指示, 确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
所述装置接收加速启动命令, 其中, 所述加速启动命令携带需加速传输 的数据包的特征信息, 然后所述装置检测所述第一数据包的特征信息是否与 所述加速启动命令携带的需加速的数据包的特征信息匹配;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输; 若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
示例性的, 所述特征信息具体可以为 IP五元组, 即源 IP地址、 目标 IP 地址、 源端口号、 目标端口号、 协议类型。
当然, 所述特征信息也可以是其它能够标识所述第一数据包的信息, 本 发明实施例对所述特征信息不作具体限定。
本发明实施例旨在说明装置在接收第一数据包后, 还确定是否对所述第 一数据包中的数据执行加速传输, 对如何确定是否对所述第一数据包中的数 据执行加速传输不作具体限定。
若确定不对所述第一数据包中的数据执行加速传输, 执行步骤 103 ; 若确定对所述第一数据包中的数据执行加速传输, 执行步骤 104。
103、若确定不对所述第一数据包中的数据执行加速传输,采用第一方式 緩存所述第一数据包。
具体的,现有技术中,所述装置在接收到属于某个特定承载的数据包后, 为所接收的数据包启动某一固定时间长度丟包定时器, 并緩存所述数据包。 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据包和不需要加 速传输的数据包。
若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包, 所述采用第一方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障采用普通方式传输的数据包是合适的, 所以若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包具体为为所述第一数据包启动第一时间长度丟包定时器, 并 緩存所述第一数据包, 则所述第一时间长度可以参考现有技术中的固定时间 长度的数值。
104、若确定对所述第一数据包中的数据执行加速传输,采用第二方式緩 存所述第一数据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩 存时间。
具体的, 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据 包和不需要加速传输的数据包。
若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所 述第一数据包, 所述采用第二方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度, 具体可以为无穷大。
不启动丟包定时器, 并緩存所述第一数据包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障需要加速传输的数据包是不合适的, 因 为若所述数据包需要加速传输, 则在加速过程中将可能传输较多的数据包, 产生调度过程的暂时拥塞, 导致数据包的传输时延延长, 使用所述固定长度 丟包定时器会使得需要加速传输的数据包在未成功传送给用户设备前, 已经 因超时而被提前丟弃。 所以若采用第二方式緩存所述第一数据包具体为为所 述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据包, 则所 述第二时间长度需大于第一时间长度, 该第二时间长度应对需要加速传输的 数据包是合适的, 即装置只有在接收来自接收端, 或底层反馈的接收端成功 接收的确认消息后, 才丟弃需要加速传输的数据包。 具体的, 如果所述第二 时间长度为无穷大,该第二时间长度对需要加速传输的数据包一定是合适的。
当然, 不启动丟包定时器会使得需要加速传输的数据包一直存储在緩存 中, 装置只有在接收来自接收端, 或底层反馈的接收端成功接收的确认消息 后, 才丟弃需要加速传输的数据包, 所以不启动丟包定时器, 对于需要加速 传输的数据包也是合适的。
另外,对于需要加速传输的数据包, 除了使用控制丟弃定时器的方法外, 也可以采用其他緩存控制技术, 目的是要达到允许需要加速传输的数据包在 緩存中存留更长的时间的效果, 避免不必要的数据丟弃。
本发明实施例仅说明采用第二方式緩存需要执行加速传输的数据包, 所 述第二方式的緩存时间大于所述第一方式的緩存时间, 对于所述第二方式的 具体实现形式不作具体限定。
本发明实施例提供一种数据緩存的方法, 所述方法包括: 接收第一数据 包, 确定是否对所述第一数据包中的数据执行加速传输, 若确定不对所述第 一数据包中的数据执行加速传输, 采用第一方式緩存所述第一数据包; 若确 定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所述第一数 据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩存时间。 该方 法通过采用不同方式緩存需要加速传输的数据包和不需要加速传输的数据 包, 使得所述装置能够对接收到的第一数据包执行高可靠性的緩存处理, 提 升了用户体验。
实施例二、
本发明实施例提供一种数据緩存的方法, 具体以视频业务下数据包转发 的全过程为例, 基站的数据緩存进行说明, 具体如图 2所示, 所述方法包括: 201、 VoG( Video Optimization Gateway,视频优化网关)接收 PDN( Packet Data Network, 分组数据网络)发送的第一业务数据。
202、 VoG判断所述第一业务数据中的第一数据包是否需要加速传输。 具体的, VoG接收到的第一业务数据中包含多个数据包, 某些数据包中 的数据可能处于需要加速传输的时间范围内, 某些数据包中的数据则不需要 进行加速传输。 例如, 在用户点播某视频的开始阶段, 为降低用户的初始等 待时延, VoG可以对该视频初始阶段的数据进行加速传输, 或在用户随机访 问某个播放片段的时候, 为降低用户随机访问的等待时延, VoG可以对该用 户随机访问的视频片段的数据进行加速。 此时, VoG可以通过包检测机制识 别出需要加速的数据包, 即判断所述第一业务数据中的第一数据包是否需要 加速传输。
203、 若所述第一数据包需要加速传输, VoG在所述第一数据包中设置 加速指示。
其中, 所述加速指示用于指示所述基站对所述第一数据包的数据执行加 速传输。
具体的, 所述加速指示可以为 "下载加速" 指示, 本发明实施例对此不 作具体限定。
通过所述加速指示, 可以识别出该数据包属于需要执行加速传输的数据 包。
204、 VoG发送所述第一数据包至所述基站。
具体的, 若所述第一数据包需要加速传输, 则发送给基站的所述第一数 据包中携带加速指示。
205、 基站接收所述 VoG发送的所述第一数据包。
206、 基站检测所述第一数据包中是否携带加速指示。
具体的, 若所述第一数据包中未携带加速指示, 执行步骤 207;
若所述第一数据包中携带加速指示, 执行步骤 209。
207、若所述第一数据包未携带加速指示,基站确定不对所述第一数据包 中的数据执行加速传输。
208、 基站采用第一方式緩存所述第一数据包。
具体的,现有技术中,所述装置在接收到属于某个特定承载的数据包后, 为所接收的数据包启动某一固定时间长度丟包定时器, 并緩存所述数据包。 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据包和不需要加 速传输的数据包。 若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包, 所述采用第一方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障采用普通方式传输的数据包是合适的, 所以若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包具体为为所述第一数据包启动第一时间长度丟包定时器, 并 緩存所述第一数据包, 则所述第一时间长度可以参考现有技术中的固定时间 长度的数值。
209、若所述第一数据包携带加速指示,基站确定对所述第一数据包中的 数据执行加速传输。
210、基站采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩 存时间大于所述第一方式的緩存时间。
具体的, 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据 包和不需要加速传输的数据包。
若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所 述第一数据包, 所述采用第二方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度, 具体可以为无穷大。
不启动丟包定时器, 并緩存所述第一数据包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障需要加速传输的数据包是不合适的, 因 为若所述数据包需要加速传输, 则在加速过程中将可能传输较多的数据包, 产生调度过程的暂时拥塞, 导致数据包的传输时延延长, 使用所述固定长度 丟包定时器会使得需要加速传输的数据包在未成功传送给用户设备前, 已经 因超时而被提前丟弃。 所以若采用第二方式緩存所述第一数据包具体为为所 述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据包, 则所 述第二时间长度需大于第一时间长度, 该第二时间长度应对需要加速传输的 数据包是合适的, 即装置只有在接收来自接收端, 或底层反馈的接收端成功 接收的确认消息后, 才丟弃需要加速传输的数据包。 具体的, 如果所述第二 时间长度为无穷大,该第二时间长度对需要加速传输的数据包一定是合适的。
当然, 不启动丟包定时器会使得需要加速传输的数据包一直存储在緩存 中, 装置只有在接收来自接收端, 或底层反馈的接收端成功接收的确认消息 后, 才丟弃需要加速传输的数据包, 所以不启动丟包定时器, 对于需要加速 传输的数据包也是合适的。
另外,对于需要加速传输的数据包, 除了使用控制丟弃定时器的方法外, 也可以采用其他緩存控制技术, 目的是要达到允许需要加速传输的数据包在 緩存中存留更长的时间的效果, 避免不必要的数据丟弃。
本发明实施例仅说明采用第二方式緩存需要执行加速传输的数据包, 所 述第二方式的緩存时间大于所述第一方式的緩存时间, 对于所述第二方式的 具体实现形式不作具体限定。
211、 基站调度所述第一数据包给用户设备。
可选的, 本发明实施例还提供一种数据緩存的方法, 具体以视频业务下 数据包转发的全过程为例, 基站的数据緩存进行说明, 具体如图 3所示, 所 述方法包括:
301、 VoG (视频优化网关)接收 PDN (分组数据网络)发送的第一业 务数据。
302、 VoG判断所述第一业务数据中的第一数据包是否需要加速传输。 具体的, VoG接收到的第一业务数据中包含多个数据包, 某些数据包中 的数据可能处于需要加速传输的时间范围内, 某些数据包中的数据则不需要 进行加速传输。 例如, 在用户点播某视频的开始阶段, 为降低用户的初始等 待时延, VoG可以对该视频初始阶段的数据进行加速传输, 或在用户随机访 问某个播放片段的时候, 为降低用户随机访问的等待时延, VoG可以对该用 户随机访问的视频片段的数据进行加速。 此时, VoG可以通过包检测机制识 别出需要加速的数据包, 即判断所述第一业务数据中的第一数据包是否需要 加速传输。
303、 若所述第一数据包需要加速传输, VoG在所述第一数据包中设置 加速指示。
其中, 所述加速指示用于指示所述基站对所述第一数据包的数据执行加 速传输。
具体的, 所述加速指示可以为 "下载加速" 指示, 本发明实施例对此不 作具体限定。
通过所述加速指示, 可以识别出该数据包属于需要执行加速传输的数据 包。
304、 VoG发送数据包检测启动命令至所述基站, 所述数据包检测启动 命令用于指示所述基站对所述数据包是否携带加速指示进行检测。
具体的, 为了降低基站检测数据包的开销, 避免基站一直处于数据包的 加速指示检测状态,当 VoG确定对发送给基站的第一数据包执行加速传输后, VoG发送数据包检测启动命令给基站, 通知基站对数据包是否携带加速指示 进行检测。
305、 基站接收所述 VoG发送的数据包检测启动命令。
306、 VoG发送所述第一数据包至所述基站。
具体的, 若所述第一数据包需要加速传输, 则发送给基站的所述第一数 据包中携带加速指示。
需要说明的是, 因为步骤 305是基站所执行的动作, 步骤 306是 VoG所 执行的动作, 所以步骤 305与步骤 306没有绝对的先后顺序, 仅需步骤 305 在步骤 304之后即可, 步骤 306在步骤 307之前即可。
307、 基站接收所述 VoG发送的所述第一数据包。
308、 基站检测所述第一数据包中是否携带加速指示。
具体的, 若所述第一数据包中未携带加速指示, 执行步骤 309;
若所述第一数据包中携带加速指示, 执行步骤 311。
309、若所述第一数据包未携带加速指示,基站确定不对所述第一数据包 中的数据执行加速传输。
310、 基站采用第一方式緩存所述第一数据包。
具体的,现有技术中,所述装置在接收到属于某个特定承载的数据包后, 为所接收的数据包启动某一固定时间长度丟包定时器, 并緩存所述数据包。 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据包和不需要加 速传输的数据包。
若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包, 所述采用第一方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障采用普通方式传输的数据包是合适的, 所以若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包具体为为所述第一数据包启动第一时间长度丟包定时器, 并 緩存所述第一数据包, 则所述第一时间长度可以参考现有技术中的固定时间 长度的数值。
311、若所述第一数据包携带加速指示,基站确定对所述第一数据包中的 数据执行加速传输。
312、基站采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩 存时间大于所述第一方式的緩存时间。 具体的, 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据 包和不需要加速传输的数据包。
若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所 述第一数据包, 所述采用第二方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度, 具体可以为无穷大。
不启动丟包定时器, 并緩存所述第一数据包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障需要加速传输的数据包是不合适的, 因 为若所述数据包需要加速传输, 则在加速过程中将可能传输较多的数据包, 产生调度过程的暂时拥塞, 导致数据包的传输时延延长, 使用所述固定长度 丟包定时器会使得需要加速传输的数据包在未成功传送给用户设备前, 已经 因超时而被提前丟弃。 所以若采用第二方式緩存所述第一数据包具体为为所 述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据包, 则所 述第二时间长度需大于第一时间长度, 该第二时间长度应对需要加速传输的 数据包是合适的, 即装置只有在接收来自接收端, 或底层反馈的接收端成功 接收的确认消息后, 才丟弃需要加速传输的数据包。 具体的, 如果所述第二 时间长度为无穷大,该第二时间长度对需要加速传输的数据包一定是合适的。
当然, 不启动丟包定时器会使得需要加速传输的数据包一直存储在緩存 中, 装置只有在接收来自接收端, 或底层反馈的接收端成功接收的确认消息 后, 才丟弃需要加速传输的数据包, 所以不启动丟包定时器, 对于需要加速 传输的数据包也是合适的。
另外,对于需要加速传输的数据包, 除了使用控制丟弃定时器的方法外, 也可以采用其他緩存控制技术, 目的是要达到允许需要加速传输的数据包在 緩存中存留更长的时间的效果, 避免不必要的数据丟弃。 本发明实施例仅说明采用第二方式緩存需要执行加速传输的数据包, 所 述第二方式的緩存时间大于所述第一方式的緩存时间, 对于所述第二方式的 具体实现形式不作具体限定。
313、 基站调度所述第一数据包给用户设备。
进一步的, 为了进一步降低基站检测数据包的开销, 在所述 VoG发送数 据包检测启动命令至所述基站后, 所述 VoG还判断所述第一业务数据中的第 二数据包是否需要加速传输。
若所述第二数据包不需要加速传输,所述 VoG发送数据包检测停止命令 至所述基站, 所述数据包检测停止命令用于指示所述基站停止对数据包是否 携带加速指示进行检测。
相应的, 此时所述基站的数据緩存的方法还包括:
所述基站接收所述 VoG发送的所述数据包检测停止命令,以使得所述基 站停止对数据包的加速指示检测。
可选的, 本发明实施例还提供一种数据緩存的方法, 具体以视频业务下 数据包转发的全过程为例, 基站的数据緩存进行说明, 具体如图 4所示, 所 述方法包括:
401、 VoG (视频优化网关)接收 PDN (分组数据网络)发送的第一业 务数据。
402、 VoG判断所述第一业务数据中的第一数据包是否需要加速传输。 具体的, VoG接收到的第一业务数据中包含多个数据包, 某些数据包中 的数据可能处于需要加速传输的时间范围内, 某些数据包中的数据则不需要 进行加速传输。 例如, 在用户点播某视频的开始阶段, 为降低用户的初始等 待时延, VoG可以对该视频初始阶段的数据进行加速传输, 或在用户随机访 问某个播放片段的时候, 为降低用户随机访问的等待时延, VoG可以对该用 户随机访问的视频片段的数据进行加速。 此时, VoG可以通过包检测机制识 别出需要加速的数据包, 即判断所述第一业务数据中的第一数据包是否需要 加速传输。
403、 若所述第一数据包需要加速传输, VoG发送加速启动命令至所述 基站。
其中, 所述加速启动命令携带需加速的数据包的特征信息。
示例性的, 所述特征信息具体可以为 IP五元组, 即源 IP地址、 目标 IP 地址、 源端口号、 目标端口号、 协议类型。
当然, 所述特征信息也可以是其它能够标识所述第一数据包的信息, 本 发明实施例对所述特征信息不作具体限定。
具体的,所述基站将根据所述加速启动命令识别需要加速传输的数据包。
404、 基站接收所述 VoG发送的所述加速启动命令。
405、 VoG发送所述第一数据包至所述基站。
需要说明的是, 因为步骤 404是基站所执行的动作, 步骤 405是 VoG所 执行的动作, 所以步骤 405与步骤 404没有绝对的先后顺序。 仅需步骤 404 在步骤 403之后, 步骤 405在步骤 406之前即可。
406、 基站接收所述 VoG发送的所述第一数据包。
407、基站检测所述第一数据包的特征信息是否与所述加速启动命令携带 的需加速的数据包的特征信息匹配。
具体的, 若所述第一数据包的特征信息与所述加速启动命令携带的需加 速的数据包的特征信息不匹配, 执行步骤 408;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 执行步骤 410。
408、若所述第一数据包的特征信息与所述加速启动命令携带的需加速的 数据包的特征信息不匹配,确定不对所述第一数据包中的数据执行加速传输。
409、 基站采用第一方式緩存所述第一数据包。
具体的,现有技术中,所述装置在接收到属于某个特定承载的数据包后, 为所接收的数据包启动某一固定时间长度丟包定时器, 并緩存所述数据包。 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据包和不需要加 速传输的数据包。
若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包, 所述采用第一方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障采用普通方式传输的数据包是合适的, 所以若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包具体为为所述第一数据包启动第一时间长度丟包定时器, 并 緩存所述第一数据包, 则所述第一时间长度可以参考现有技术中的固定时间 长度的数值。
410、若所述第一数据包的特征信息与所述加速启动命令携带的需加速的 数据包的特征信息匹配, 确定对所述第一数据包中的数据执行加速传输。
411、基站采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩 存时间大于所述第一方式的緩存时间。
具体的, 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据 包和不需要加速传输的数据包。
若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所 述第一数据包, 所述采用第二方式緩存所述第一数据包具体可以为:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度, 具体可以为无穷大。
不启动丟包定时器, 并緩存所述第一数据包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障需要加速传输的数据包是不合适的, 因 为若所述数据包需要加速传输, 则在加速过程中将可能传输较多的数据包, 产生调度过程的暂时拥塞, 导致数据包的传输时延延长, 使用所述固定长度 丟包定时器会使得需要加速传输的数据包在未成功传送给用户设备前, 已经 因超时而被提前丟弃。 所以若采用第二方式緩存所述第一数据包具体为为所 述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据包, 则所 述第二时间长度需大于第一时间长度, 该第二时间长度应对需要加速传输的 数据包是合适的, 即装置只有在接收来自接收端, 或底层反馈的接收端成功 接收的确认消息后, 才丟弃需要加速传输的数据包。 具体的, 如果所述第二 时间长度为无穷大,该第二时间长度对需要加速传输的数据包一定是合适的。
当然, 不启动丟包定时器会使得需要加速传输的数据包一直存储在緩存 中, 装置只有在接收来自接收端, 或底层反馈的接收端成功接收的确认消息 后, 才丟弃需要加速传输的数据包, 所以不启动丟包定时器, 对于需要加速 传输的数据包也是合适的。
另外,对于需要加速传输的数据包, 除了使用控制丟弃定时器的方法外, 也可以采用其他緩存控制技术, 目的是要达到允许需要加速传输的数据包在 緩存中存留更长的时间的效果, 避免不必要的数据丟弃。
412、 基站调度所述第一数据包给用户设备。
进一步的, 在所述 VoG发送加速启动命令至所述基站后, 所述 VoG还 判断所述第一业务中的第三数据包是否需要加速传输。
若所述第三数据包不需要加速传输, VoG发送加速停止命令至所述基站, 所述加速停止命令指示所述基站在接收到所述加速停止命令后, 停止加速传 输处理, 其中, 所述加速停止命令携带需停止加速传输的数据包的特征信息。
相应的, 所述基站的数据緩存的方法还包括:
接收加速停止命令, 其中, 所述加速停止命令携带需停止加速传输的数 据包的特征信息。
进一步的, 以视频业务为例, 基站进行数据緩存时, 视频优化网关与基 站之间还存在功能协商过程, 具体如图 5所示, 包括:
501、 VoG发送加速能力查询消息, 所述加速能力查询消息用于查询所 述基站是否支持数据包的加速传输。
502、 基站接收所述加速能力查询消息。
503、若所述基站支持数据包的加速传输,则所述基站发送支持数据包的 加速传输的指示消息。
504、 VoG接收所述基站发送的所述支持数据包的加速传输的指示消息。 需要说明的是, 若所述基站不支持数据包的加速传输, 则不能采用本发 明实施例的基站数据緩存的方法。 本发明实施例中所述基站数据緩存的方法 适用于基站支持数据包的加速传输的场合。 通过采用功能协商过程进行加速 能力查询, 可以确定是否采用后续的基站数据緩存的方法。
可选的, 在所述 VoG与所述基站建立接口时, 若所述基站支持数据包的 加速传输, 将发送支持数据包的加速传输的指示消息。
同样需要说明的是, 在所述 VoG与所述基站建立接口时, 若所述基站不 支持数据包的加速传输, 则不能使用本发明实施例的基站数据緩存的方法。
需要说明的是, 本发明实施例具体以视频业务下基站数据緩存的方法进 行说明, 但是所述基站数据緩存的方法并不仅适用于视频业务, 同样适用于 其它业务, 本发明实施例在此不再——列举。
另外, 上述实施例具体以基站的数据緩存进行说明, 但是所述数据緩存 的方法不仅仅适用于基站的数据緩存, 同样适用于其它应用场合, 比如应用 于用户设备侧的数据的緩存, 在用户设备侧进行数据緩存时, 所述第一数据 包可以来源于基站, 基站将所述第一数据包发送给用户设备后, 所述第一数 据包存储在用户设备的应用层, 所以, 从另一层面讲, 如果是用户设备侧的 数据緩存, 所述第一数据包可以来源于用户设备的应用层, 具体如图 6所示, 包括:
601、 接收应用层发送的第一数据包。 602、 确定是否对所述第一数据包中的数据执行加速传输。
603、若确定不对所述第一数据包中的数据执行加速传输,采用第一方式 緩存所述第一数据包。
604、若确定对所述第一数据包中的数据执行加速传输,采用第二方式緩 存所述第一数据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩 存时间。
进一步的, 与基站进行数据緩存时, 视频优化网关与基站之间的功能协 商过程类似, 所述数据緩存的方法应用于用户设备数据緩存时, 用户设备与 基站之间还存在功能协商过程, 具体如图 7所示, 包括:
701、基站发送加速能力查询消息,所述加速能力查询消息用于查询所述 用户设备是否支持数据包的加速传输。
702、 用户设备接收所述加速能力查询消息。
703、若所述用户设备支持数据包的加速传输, 则所述用户设备发送支持 数据包的加速传输的指示消息。
704、基站接收所述用户设备发送的所述支持数据包的加速传输的指示消 息。
当然, 与基站进行数据緩存时, 视频优化网关与基站之间的功能协商过 程类似, 若所述用户设备不支持数据包的加速传输, 则不能采用上述用户设 备侧数据緩存的方法。 上述用户设备侧数据緩存的方法适用于用户设备支持 数据包的加速传输的场合。 通过采用功能协商过程进行加速能力查询, 可以 确定是否采用后续的用户设备数据緩存的方法。
可选的, 在所述用户设备与所述基站建立接口时, 若所述用户设备支持 数据包的加速传输, 将发送支持数据包的加速传输的指示消息。
需要说明的是, 所述数据緩存的方法不限制应用在基站侧或用户设备侧 的数据緩存, 也可以应用于其他场合, 具体的, 对于其它应用场合数据緩存 的方法可参考上述实施例的描述, 本发明实施例对此不再——赘述。 本发明实施例提供一种数据緩存的方法, 所述方法包括: 接收第一数据 包, 确定是否对所述第一数据包中的数据执行加速传输, 若确定不对所述第 一数据包中的数据执行加速传输, 采用第一方式緩存所述第一数据包; 若确 定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所述第一数 据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩存时间。 该方 法通过采用不同方式緩存需要加速传输的数据包和不需要加速传输的数据 包, 使得所述装置能够对接收到的第一数据包执行高可靠性的緩存处理, 提 升了用户体验。
实施例三、
本发明实施例提供一种数据緩存的装置 800, 具体如图 8所示, 所述装 置 800包括接收单元 801、 确定单元 802、 緩存单元 803。
所述接收单元 801 , 用于接收第一数据包。
具体的,所述第一数据包可以来源于网关,也可以来源于其它网络设备, 接收所述第一数据包的装置可以是基站,也可以是 UE, 如果接收所述第一数 据包的是 UE, 则所述第一数据包可以来源于基站, 基站将所述第一数据包 发送给 UE后, 所述第一数据包存储在 UE 的应用层, 所以, 从另一层面讲, 如果接收所述第一数据包的是 UE, 则所述第一数据包来源于 UE的应用层, 本发明实施例对所述第一数据包的来源和本发明的应用范围不作具体限定, 仅说明接收单元 801接收第一数据包。
所述确定单元 802, 用于确定是否对所述第一数据包中的数据执行加速 传输。
具体的, 所述接收单元 801在接收到第一数据包后, 所述确定单元 802 需确定是否对所述第一数据包中的数据执行加速传输, 可以通过如下方式: 检测所述第一数据包中是否携带加速指示, 若所述第一数据包携带加速 指示, 确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
所述接收单元 801接收加速启动命令, 其中, 所述加速启动命令携带需 加速传输的数据包的特征信息, 然后所述确定单元 802检测所述第一数据包 的特征信息是否与所述加速启动命令携带的需加速传输的数据包的特征信息 匹配;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
示例性的, 所述特征信息具体可以为 IP五元组, 即源 IP地址、 目标 IP 地址、 源端口号、 目标端口号、 协议类型。
当然, 所述特征信息也可以是其它能够标识所述第一数据包的信息, 本 发明实施例对所述特征信息不作具体限定。
本发明实施例旨在说明装置 800在接收第一数据包后, 还确定是否对所 述第一数据包中的数据执行加速传输, 对如何确定是否对所述第一数据包中 的数据执行加速传输不作具体限定。
所述緩存单元 803 , 用于若不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存所述第一数据包。
具体的, 现有技术中, 所述装置 800在接收到属于某个特定承载的数据 包后, 为所接收的数据包启动某一固定时间长度的丟包定时器, 并緩存所述 数据包。 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据包和 不需要加速传输的数据包。
若确定不对所述第一数据包中的数据执行加速传输, 所述緩存单元 803 采用第一方式緩存所述第一数据包, 所述采用第一方式緩存所述第一数据包 具体可以为: 为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障采用普通方式传输的数据包是合适的, 所以若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包具体为为所述第一数据包启动第一时间长度丟包定时器, 并 緩存所述第一数据包, 则所述第一时间长度可以参考现有技术中的固定时间 丟包定时器的时间值。
所述緩存单元 803 ,还用于若对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩存时间大于所 述第一方式的緩存时间。
具体的, 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据 包和不需要加速传输的数据包。
若确定对所述第一数据包中的数据执行加速传输, 所述緩存单元 803采 用第二方式緩存所述第一数据包, 所述采用第二方式緩存所述第一数据包具 体可以为:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度, 具体可以为无穷大。
不启动丟包定时器, 并緩存所述第一数据包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障需要加速传输的数据包是不合适的, 因 为若所述数据包需要加速传输, 则在加速过程中将可能传输较多的数据包, 从而产生调度过程的暂时拥塞, 导致数据包的传输时延延长, 使用所述固定 长度丟包定时器会使得需要加速传输的数据包在未成功传送给用户设备前, 已经因超时而被提前丟弃。 所以若采用第二方式緩存所述第一数据包具体为 为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据包, 则所述第二时间长度需大于第一时间长度, 该第二时间长度应对需要加速传 输的数据包是合适的, 即装置只有在接收来自接收端, 或底层反馈的接收端 成功接收的确认消息后, 才丟弃需要加速传输的数据包。 具体的, 如果所述 第二时间长度为无穷大, 该第二时间长度对需要加速传输的数据包一定是合 适的。
当然, 不启动丟包定时器会使得需要加速传输的数据包一直存储在緩存 中, 装置只有在接收来自接收端, 或底层反馈的接收端成功接收的确认消息 后, 才丟弃需要加速传输的数据包, 所以不启动丟包定时器, 对于需要加速 传输的数据包也是合适的。
另外,对于需要加速传输的数据包, 除了使用控制丟弃定时器的方法外, 也可以采用其他緩存控制技术, 目的是要达到允许需要加速传输的数据包在 緩存中存留更长的时间的效果, 避免不必要的数据丟弃。
本发明实施例仅说明采用第二方式緩存需要执行加速传输的数据包, 所 述第二方式的緩存时间大于所述第一方式的緩存时间, 对于所述第二方式的 具体实现形式不作具体限定。
进一步的, 所述确定单元 802确定是否对所述第一数据包中的数据执行 加速传输具体包括:
检测所述第一数据包是否携带加速指示。
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输。
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
进一步的,为了降低所述装置 800检测数据包的开销,避免所述装置 800 一直处于数据包的加速指示检测状态,当通信对端确定对发送给所述装置 800 的第一数据包执行加速传输后, 还发送数据包检测启动命令给所述装置 800, 通知所述装置 800启动对数据包的加速指示检测, 所以对于所述装置 800, 所述接收单元 801 , 还用于在所述检测所述第一数据包是否携带加速指 示前, 接收数据包检测启动命令, 所述数据包检测启动命令用于指示对数据 包是否携带加速指示进行检测。
进一步的, 当通信对端确定不对接收到的数据包执行加速传输时, 为了 进一步降低所述装置 800检测数据包的开销, 所述接收单元 801 , 还用于在 接收数据包检测启动命令后, 接收数据包检测停止命令, 所述数据包检测停 止命令用于指示停止对数据包是否携带加速指示进行检测。
可选的, 所述接收单元 801 , 还用于在接收第一数据包前, 接收加速启 动命令, 其中, 所述加速启动命令携带需加速的数据包的特征信息。
示例性的, 所述特征信息具体可以为 IP五元组, 即源 IP地址、 目标 IP 地址、 源端口号、 目标端口号、 协议类型, 本发明实施例对所述特征信息不 作具体限定。
当然, 所述特征信息也可以是其它能够标识所述第一数据包的信息, 本 发明实施例对所述特征信息不作具体限定。
具体的, 所述装置 800将根据所述加速启动命令识别需要加速传输的数 据包。
所述确定单元 802确定是否对所述第一数据包中的数据执行加速传输具 体包括:
检测所述第一数据包的特征信息是否与所述加速启动命令携带的需加速 的数据包的特征信息匹配。
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
进一步的, 所述接收单元 801 , 还用于在接收加速启动命令后, 接收加 速停止命令, 其中, 所述加速停止命令携带需停止加速的数据包的特征信息。 进一步的, 所述緩存单元 803采用第一方式緩存所述第一数据包具体包 括:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
所述緩存单元 803采用第二方式緩存所述第一数据包具体包括: 为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
具体的, 所述第二时间长度可以为无穷大。
可选的,所述緩存单元 803采用第二方式緩存所述第一数据包具体包括: 不启动丟包定时器, 并緩存所述第一数据包。
可选的, 如图 9所示, 所述装置 800还包括发送单元 804。
所述接收单元 801 , 还用于接收加速能力查询消息, 所述加速能力查询 消息用于查询是否支持数据包的加速传输;
所述发送单元 804, 还用于若支持数据包的加速传输, 则发送支持数据 包的加速传输的指示消息。
需要说明的是, 若所述装置 800不支持数据包的加速传输, 则不能采用 本发明实施例的数据緩存的方法。 上述实施例提供的所述数据緩存的方法适 用于所述装置 800支持数据包的加速传输的场合。 通过采用功能协商过程进 行加速能力查询, 可以确定是否采用后续的数据緩存的方法。
当然, 所述装置 800并不一定在接收加速能力查询消息后, 才发送支持 数据包的加速传输的指示消息,上述功能协商过程仅是功能协商过程的一种。
可选的, 所述发送单元 804 , 还用于在接口建立时, 若支持数据包的加 速传输, 则发送支持数据包的加速传输的指示消息。
具体的, 通过所述数据緩存的装置进行数据緩存的方法可参见实施例一 和实施例二的描述, 本发明实施例对此不再赘述。 具体的, 所述数据緩存的装置可以应用于基站数据緩存, 也可以应用于 用户设备数据緩存, 本发明实施例对所述数据緩存的装置的应用场景不作具 体限定。
本发明实施例提供一种数据緩存的装置, 所述装置包括: 接收单元、 确 定单元、 緩存单元。 其中, 在所述接收单元接收第一数据包后, 所述确定单 元确定是否对所述第一数据包中的数据执行加速传输, 若确定不对所述第一 数据包中的数据执行加速传输, 所述緩存单元采用第一方式緩存所述第一数 据包; 若确定对所述第一数据包中的数据执行加速传输, 所述緩存单元采用 第二方式緩存所述第一数据包, 其中, 所述第二方式的緩存时间大于所述第 一方式的緩存时间。 该装置通过采用不同方式緩存需要加速传输的数据包和 不需要加速传输的数据包, 使得所述装置能够对接收到的第一数据包执行高 可靠性的緩存处理, 提升了用户体验。
实施例四、
本发明实施例提供一种数据緩存的装置 1000, 具体如图 10所示, 所述 装置 1000包括接收器 1001、 处理器 1002、 存储器 1003。
所述接收器 1001 , 用于接收第一数据包, 并将所述第一数据包发送给所 述处理器 1002。
具体的,所述第一数据包可以来源于网关,也可以来源于其它网络设备, 接收所述第一数据包的装置可以是基站,也可以是 UE, 如果接收所述第一数 据包的是 UE, 则所述第一数据包可以来源于基站, 基站将所述第一数据包 发送给 UE后, 所述第一数据包存储在 UE 的应用层, 所以, 从另一层面讲, 如果接收所述第一数据包的是 UE, 则所述第一数据包来源于 UE的应用层, 本发明实施例对所述第一数据包的来源和本发明的应用范围不作具体限定, 仅说明接收器 1001接收第一数据包,并将所述第一数据包发送给所述处理器 1002。
所述处理器 1002, 用于接收所述接收器 1001发送的第一数据包, 并确 定是否对所述第一数据包中的数据执行加速传输。
具体的,所述接收器 1001在发送所述第一数据包给所述处理器 1002后, 所述处理器 1002接收所述第一数据包,并确定是否对所述第一数据包中的数 据执行加速传输。
其中, 可以通过如下方式确定是否对所述第一数据包中的数据执行加速 传输:
检测所述第一数据包中是否携带加速指示, 若所述第一数据包携带加速 指示, 确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
所述接收器 1001接收加速启动命令,其中,所述加速启动命令携带需加 速传输的数据包的特征信息,然后所述处理器 1002检测所述第一数据包的特 征信息是否与所述加速启动命令携带的需加速的数据包的特征信息匹配; 若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
示例性的, 所述特征信息具体可以为 IP五元组, 即源 IP地址、 目标 IP 地址、 源端口号、 目标端口号、 协议类型。
当然, 所述特征信息也可以是其它能够标识所述第一数据包的信息, 本 发明实施例对所述特征信息不作具体限定。
本发明实施例旨在说明装置 80在接收第一数据包后,还确定是否对所述 第一数据包中的数据执行加速传输,对所述处理器 1002如何确定是否对所述 第一数据包中的数据执行加速传输不作具体限定。
所述存储器 1003 , 用于若确定不对所述第一数据包中的数据执行加速传 输, 采用第一方式緩存所述第一数据包。
具体的,现有技术中,所述装置 1000在接收到属于某个特定承载的数据 包后, 为所接收的数据包启动某一固定时间长度的丟包定时器, 并緩存所述 数据包。 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据包和 不需要加速传输的数据包。
若确定不对所述第一数据包中的数据执行加速传输, 所述存储器 1003 采用第一方式緩存所述第一数据包, 所述采用第一方式緩存所述第一数据包 具体可以为:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障采用普通方式传输的数据包是合适的, 所以若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包具体为为所述第一数据包启动第一时间长度丟包定时器, 并 緩存所述第一数据包, 则所述第一时间长度可以参考现有技术中的固定时间 丟包定时器的时间值。
所述存储器 1003 ,还用于若确定对所述第一数据包中的数据执行加速传 输, 采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩存时间大 于所述第一方式的緩存时间。
具体的, 本发明实施例中, 分别采用不同方式緩存需要加速传输的数据 包和不需要加速传输的数据包。
若确定对所述第一数据包中的数据执行加速传输,所述存储器 1003采用 第二方式緩存所述第一数据包, 所述采用第二方式緩存所述第一数据包具体 可以为:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度, 具体可以为无穷大。 或
不启动丟包定时器, 并緩存所述第一数据包。
需要说明的是, 现有技术中固定时间长度丟包定时器的緩存管理时间一 般为毫秒级, 该緩存管理方式对保障需要加速传输的数据包是不合适的, 因 为若所述数据包需要加速传输, 则在加速过程中将可能传输较多的数据包, 从而产生调度过程的暂时拥塞, 导致数据包的传输时延延长, 使用所述固定 长度丟包定时器会使得需要加速传输的数据包在未成功传送给用户设备前, 已经因超时而被提前丟弃。 所以若采用第二方式緩存所述第一数据包具体为 为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据包, 则所述第二时间长度需大于第一时间长度, 该第二时间长度应对需要加速传 输的数据包是合适的, 即装置只有在接收来自接收端, 或底层反馈的接收端 成功接收的确认消息后, 才丟弃需要加速传输的数据包。 具体的, 如果所述 第二时间长度为无穷大, 该第二时间长度对需要加速传输的数据包一定是合 适的。
当然, 不启动丟包定时器会使得需要加速传输的数据包一直存储在緩存 中, 装置只有在接收来自接收端, 或底层反馈的接收端成功接收的确认消息 后, 才丟弃需要加速传输的数据包, 所以不启动丟包定时器, 对于需要加速 传输的数据包也是合适的。
另外,对于需要加速传输的数据包, 除了使用控制丟弃定时器的方法外, 也可以采用其他緩存控制技术, 目的是要达到允许需要加速传输的数据包在 緩存中存留更长的时间的效果, 避免不必要的数据丟弃。
本发明实施例仅说明采用第二方式緩存需要执行加速传输的数据包, 所 述第二方式的緩存时间大于所述第一方式的緩存时间, 对于所述第二方式的 具体实现形式不作具体限定。
进一步的,所述处理器 1002确定是否对所述第一数据包中的数据执行加 速传输具体包括: 检测所述第一数据包是否携带加速指示。
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输。
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
进一步的, 为了降低所述装置 1000检测数据包的开销, 避免所述装置 1000一直处于数据包的加速指示检测状态, 当通信对端确定对发送给所述装 置 1000的第一数据包执行加速传输后,还发送数据包检测启动命令给所述装 置 1000, 通知所述装置 1000启动对数据包的加速指示检测, 所以对于所述 装置 1000,
所述接收器 1001 ,还用于在所述处理器检测所述第一数据包是否携带加 速指示前, 接收数据包检测启动命令, 并将所述数据包检测启动命令发送给 所述处理器 1002, 其中, 所述数据包检测启动命令用于指示对数据包是否携 带加速指示进行检测。
进一步的, 当通信对端确定不对接收到的数据包执行加速传输时, 为了 进一步降低所述装置 1000检测数据包的开销, 所述接收器 1001 , 还用于在 所述接收数据包检测启动命令后, 接收数据包检测停止命令, 所述数据包检 测停止命令用于指示停止对数据包是否携带加速指示进行检测。
可选的, 所述接收器 1001 , 还用于在所述接收第一数据包前, 接收加速 启动命令, 其中, 所述加速启动命令携带需加速的数据包的特征信息。
示例性的, 所述特征信息具体可以为 IP五元组, 即源 IP地址、 目标 IP 地址、 源端口号、 目标端口号、 协议类型。
当然, 所述特征信息也可以是其它能够标识所述第一数据包的信息, 本 发明实施例对所述特征信息不作具体限定。
具体的,所述装置 1000将根据所述加速启动命令识别需要加速传输的数 据包。 所述处理器 1002 确定是否对所述第一数据包中的数据执行加速传输具 体包括:
检测所述第一数据包的特征信息是否与所述加速启动命令携带的需加速 的数据包的特征信息匹配。
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
进一步的, 所述接收器 1001 , 还用于在所述接收加速启动命令后, 接收 加速停止命令, 其中, 所述加速停止命令携带需停止加速的数据包的特征信 息。
进一步的, 所述存储器 1003 采用第一方式緩存所述第一数据包具体包 括:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包;
所述存储器 1003采用第二方式緩存所述第一数据包具体包括: 为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
具体的, 所述第二时间长度可以为无穷大。
可选的, 所述存储器 1003采用第二方式緩存所述第一数据包具体包括: 不启动丟包定时器, 并緩存所述第一数据包。
可选的, 具体如图 11所示, 所述装置 1000还包括发送器 1004。
所述接收器 1001 , 用于接收加速能力查询消息, 所述加速能力查询消息 用于查询是否支持数据包的加速传输;
所述发送器 1004, 用于若支持数据包的加速传输, 则发送支持数据包的 加速传输的指示消息。 需要说明的是,若所述装置 1000不支持数据包的加速传输, 则不能采用 本发明实施例的数据緩存的方法。 上述实施例提供的所述数据緩存的方法适 用于所述装置 1000支持数据包的加速传输的场合。通过采用功能协商过程进 行加速能力查询, 可以确定是否采用后续的数据緩存的方法。
当然,所述装置 1000并不一定在接收加速能力查询消息后, 才发送支持 数据包的加速传输的指示消息,上述功能协商过程仅是功能协商过程的一种。
可选的, 所述发送器 1004, 还用于在接口建立时, 若支持数据包的加速 传输, 则发送支持数据包的加速传输的指示消息。
具体的, 通过所述数据緩存的装置进行数据緩存的方法可参见实施例一 和实施例二的描述, 本发明实施例对此不再赘述。
具体的, 所述数据緩存的装置可以应用于基站数据緩存, 也可以应用于 用户设备数据緩存, 本发明实施例对所述数据緩存的装置的应用场景不作具 体限定。
本发明实施例提供一种数据緩存的装置, 所述装置包括: 接收器、 处理 器、 存储器。 其中, 在所述接收器接收第一数据包后, 所述处理器确定是否 对所述第一数据包中的数据执行加速传输, 若确定不对所述第一数据包中的 数据执行加速传输, 所述存储器采用第一方式緩存所述第一数据包; 若确定 对所述第一数据包中的数据执行加速传输, 所述存储器采用第二方式緩存所 述第一数据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩存时 间。 该装置通过采用不同方式緩存需要加速传输的数据包和不需要加速传输 的数据包, 使得所述装置能够对接收到的第一数据包执行高可靠性的緩存处 理, 提升了用户体验。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种数据緩存的装置, 其特征在于, 所述装置包括接收器、 处理器、 存储器;
所述接收器, 用于接收第一数据包, 并将所述第一数据包发送给所述处 理器;
所述处理器, 用于接收所述接收器发送的第一数据包, 并确定是否对所 述第一数据包中的数据执行加速传输;
所述存储器, 用于若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存所述第一数据包;
所述存储器, 还用于若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所述第一数据包, 其中, 所述第二方式的緩存时间大于所 述第一方式的緩存时间。
2、 根据权利要求 1所述的装置, 其特征在于, 所述处理器确定是否对所 述第一数据包中的数据执行加速传输具体包括:
检测所述第一数据包是否携带加速指示;
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
3、 根据权利要求 2所述的装置, 其特征在于,
所述接收器, 还用于在所述处理器检测所述第一数据包是否携带加速指 示前, 接收数据包检测启动命令, 并将所述数据包检测启动命令发送给所述 处理器, 其中, 所述数据包检测启动命令用于指示对数据包是否携带加速指 示进行检测。
4、 根据权利要求 3所述的装置, 其特征在于,
所述接收器, 还用于在所述接收数据包检测启动命令后, 接收数据包检 测停止命令, 所述数据包检测停止命令用于指示停止对数据包是否携带加速 指示进行检测。
5、 根据权利要求 1所述的装置, 其特征在于,
所述接收器, 还用于在所述接收第一数据包前, 接收加速启动命令, 其 中, 所述加速启动命令携带需加速的数据包的特征信息;
所述处理器确定是否对所述第一数据包中的数据执行加速传输具体包 括:
检测所述第一数据包的特征信息是否与所述加速启动命令携带的需加速 的数据包的特征信息匹配;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
6、 根据权利要求 5所述的装置, 其特征在于,
所述接收器, 还用于在所述接收加速启动命令后, 接收加速停止命令, 其中, 所述加速停止命令携带需停止加速的数据包的特征信息。
7、 根据权利要求 1-6任一项所述的装置, 其特征在于, 所述存储器采用 第一方式緩存所述第一数据包具体包括:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包;
所述存储器采用第二方式緩存所述第一数据包具体包括:
为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
8、 根据权利要求 1-6任一项所述的装置, 其特征在于, 所述存储器采用 第二方式緩存所述第一数据包具体包括:
不启动丟包定时器, 并緩存所述第一数据包。
9、 根据权利要求 1-8任一项所述的装置, 其特征在于, 所述装置还包括 发送器;
所述发送器, 用于在接口建立过程中, 若支持数据包的加速传输, 则发 送支持数据包的加速传输的指示消息;
所述接收器, 用于接收加速能力查询消息, 所述加速能力查询消息用于 查询是否支持数据包的加速传输;
所述发送器, 用于若支持数据包的加速传输, 则发送支持数据包的加速 传输的指示消息。
10、 一种数据緩存的方法, 其特征在于, 所述方法包括:
接收第一数据包;
确定是否对所述第一数据包中的数据执行加速传输;
若确定不对所述第一数据包中的数据执行加速传输, 采用第一方式緩存 所述第一数据包;
若确定对所述第一数据包中的数据执行加速传输, 采用第二方式緩存所 述第一数据包, 其中, 所述第二方式的緩存时间大于所述第一方式的緩存时 间。
11、 根据权利要求 10所述的方法, 其特征在于, 所述确定是否对所述第 一数据包中的数据执行加速传输具体包括:
检测所述第一数据包是否携带加速指示;
若所述第一数据包携带加速指示, 确定对所述第一数据包中的数据执行 加速传输;
若所述第一数据包未携带加速指示, 确定不对所述第一数据包中的数据 执行加速传输。
12、 根据权利要求 11所述的方法, 其特征在于, 在所述检测所述第一数 据包是否携带加速指示前, 还包括: 接收数据包检测启动命令, 所述数据包检测启动命令用于指示对数据包 是否携带加速指示进行检测。
13、 根据权利要求 12所述的方法, 其特征在于, 在所述接收数据包检测 启动命令后, 还包括:
接收数据包检测停止命令, 所述数据包检测停止命令用于指示停止对数 据包是否携带加速指示进行检测。
14、 根据权利要求 10所述的方法, 其特征在于, 在所述接收第一数据包 前, 还包括:
接收加速启动命令, 其中, 所述加速启动命令携带需加速的数据包的特 征信息;
所述确定是否对所述第一数据包中的数据执行加速传输具体包括: 检测所述第一数据包的特征信息是否与所述加速启动命令携带的需加速 的数据包的特征信息匹配;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息匹配, 则确定对所述第一数据包中的数据执行加速传输;
若所述第一数据包的特征信息与所述加速启动命令携带的需加速的数据 包的特征信息不匹配, 则确定不对所述第一数据包中的数据执行加速传输。
15、 根据权利要求 14所述的方法, 其特征在于, 在所述接收加速启动命 令后, 还包括:
接收加速停止命令, 其中, 所述加速停止命令携带需停止加速的数据包 的特征信息。
16、 根据权利要求 10-15任一项所述的方法, 其特征在于, 所述采用第一 方式緩存所述第一数据包具体包括:
为所述第一数据包启动第一时间长度丟包定时器, 并緩存所述第一数据 包;
所述采用第二方式緩存所述第一数据包具体包括: 为所述第一数据包启动第二时间长度丟包定时器, 并緩存所述第一数据 包, 其中, 所述第二时间长度大于所述第一时间长度。
17、 根据权利要求 10-15任一项所述的方法, 其特征在于, 所述采用第二 方式緩存所述第一数据包具体包括:
不启动丟包定时器, 并緩存所述第一数据包。
18、 根据权利要求 10-17任一项所述的方法, 其特征在于, 所述方法还包 括:
在接口建立过程中, 若支持数据包的加速传输, 则发送支持数据包的加 速传输的指示消息;
或所述方法还包括:
接收加速能力查询消息, 所述加速能力查询消息用于查询是否支持数据 包的加速传输;
若支持数据包的加速传输, 则发送支持数据包的加速传输的指示消息。
PCT/CN2014/071008 2013-01-28 2014-01-21 一种数据缓存的方法和装置 WO2014114224A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14743244.7A EP2943006B1 (en) 2013-01-28 2014-01-21 Method and device for caching data
US14/811,577 US9866495B2 (en) 2013-01-28 2015-07-28 Method and apparatus for buffering data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310031102.5A CN103974339B (zh) 2013-01-28 2013-01-28 一种数据缓存的方法和装置
CN201310031102.5 2013-01-28

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/811,577 Continuation US9866495B2 (en) 2013-01-28 2015-07-28 Method and apparatus for buffering data

Publications (1)

Publication Number Publication Date
WO2014114224A1 true WO2014114224A1 (zh) 2014-07-31

Family

ID=51226933

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071008 WO2014114224A1 (zh) 2013-01-28 2014-01-21 一种数据缓存的方法和装置

Country Status (4)

Country Link
US (1) US9866495B2 (zh)
EP (1) EP2943006B1 (zh)
CN (1) CN103974339B (zh)
WO (1) WO2014114224A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453667B (zh) * 2016-12-20 2019-06-18 北京小米移动软件有限公司 更新缓存数据的方法及装置
CN107071034B (zh) * 2017-04-20 2019-10-11 网宿科技股份有限公司 一种数据包传输方法和系统
CN108616579B (zh) * 2018-04-09 2021-06-15 深圳市腾讯网络信息技术有限公司 应用数据下载方法、服务器、存储介质和电子装置
TW202322648A (zh) * 2021-09-22 2023-06-01 美商高通公司 分散式單元的加速器中的訊息的直通
US20240031780A1 (en) * 2022-07-12 2024-01-25 Qualcomm Incorporated Techniques for application and accelerator communications of a distributed unit
CN118175582A (zh) * 2022-12-09 2024-06-11 维沃移动通信有限公司 数据包处理方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007000630A1 (en) * 2005-06-28 2007-01-04 Nokia Corporation Optimizing playback startup time of bursty real-time streams
CN101646204A (zh) * 2009-08-24 2010-02-10 上海华为技术有限公司 数据传输方法和无线接入网元
CN103413511A (zh) * 2013-07-17 2013-11-27 安伟建 一种语音导览系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI114365B (fi) * 2001-08-31 2004-09-30 First Hop Oy Menetelmä langattomien verkkojen suorituskyvyn optimoimiseksi
CN101466034A (zh) * 2008-12-25 2009-06-24 华为技术有限公司 发送、播放流媒体数据的方法和装置及流媒体点播系统
MX2011011078A (es) 2009-05-06 2012-01-20 Ericsson Telefon Ab L M Puerta o interfaz de enlace dedicada para dispositivos de banda ancha movil.
CN102006500B (zh) * 2010-10-29 2012-12-26 蓝汛网络科技(北京)有限公司 一种应用于缓存服务器的视频拖拽方法及装置
GB2485348A (en) * 2010-11-08 2012-05-16 Wireless Tech Solutions Llc Controlling communication from and/or to a mobile communications device in accordance with a relative priority indicated by the type of data packets
ES2393368B1 (es) 2011-01-11 2013-08-14 Telefónica, S.A. Método de identificación para acceder a servicios o aplicaciones de banda ancha móvil.
CN102202418B (zh) 2011-02-23 2013-12-04 华为技术有限公司 业务建立的方法、业务提供的方法、设备及系统
CN102790925B (zh) * 2011-05-20 2015-04-29 深圳市云帆世纪科技有限公司 一种在线流媒体播放的方法及点播终端
CN102323892B (zh) 2011-08-17 2017-03-15 中兴通讯股份有限公司 移动宽带设备的数据处理方法及驱动装置
CN102752212B (zh) * 2012-07-12 2015-08-19 苏州阔地网络科技有限公司 一种传输速率控制方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007000630A1 (en) * 2005-06-28 2007-01-04 Nokia Corporation Optimizing playback startup time of bursty real-time streams
CN101646204A (zh) * 2009-08-24 2010-02-10 上海华为技术有限公司 数据传输方法和无线接入网元
CN103413511A (zh) * 2013-07-17 2013-11-27 安伟建 一种语音导览系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2943006A4 *

Also Published As

Publication number Publication date
US9866495B2 (en) 2018-01-09
CN103974339B (zh) 2018-01-16
EP2943006A4 (en) 2015-12-02
US20150334037A1 (en) 2015-11-19
EP2943006A1 (en) 2015-11-11
CN103974339A (zh) 2014-08-06
EP2943006B1 (en) 2020-07-15

Similar Documents

Publication Publication Date Title
KR102350444B1 (ko) 메시지들을 송신하기 위한 방법 및 디바이스, 칩 및 단말
US9866495B2 (en) Method and apparatus for buffering data
WO2018121294A1 (zh) 一种报文传输方法、终端、网络设备及通信系统
JP5059976B2 (ja) 通信装置及び通信方法
WO2017117968A1 (zh) 数据接口分流方法、装置、终端设备和计算机存储介质
WO2008032750A1 (fr) dispositif de communication
US20190312938A1 (en) Data Transmission Method And Apparatus
US10225830B2 (en) Processing method of data packet, terminal, base station and system
WO2015113293A1 (zh) 一种数据传输方法、设备和系统
CN113938945B (zh) 数据包发送的方法、装置
US20100029275A1 (en) Migration of TCP connections with layer 2 support in wireless environments
CN107710810B (zh) 具有延迟容忍的业务的设备的非活动处理
JP2008131233A (ja) ストリーミング通信システム
WO2013139010A1 (zh) 确认包的处理方法、设备及系统
WO2014067070A1 (zh) 数据传输方法、切换方法、数据传输装置、切换装置、用户设备、无线接入节点、数据传输系统、切换系统
US20220046465A1 (en) METHOD AND APPARATUS FOR PACKET DELAY MANAGEMENT IN eCPRI NETWORK
WO2017107148A1 (zh) 一种数据传输方法及网络侧设备
WO2011006336A1 (zh) 一种基于tdd制式的数据传输方法和装置
WO2012131604A1 (en) Sctp endpoint migration
WO2015042859A1 (zh) 一种异步通信的方法及设备
WO2019196853A1 (zh) Tcp加速方法及装置
EP3231149B1 (en) Buffer discard control for content streaming via intermediate node
WO2014032307A1 (zh) 一种资源调度的方法、装置及系统
TW201325145A (zh) 在多連結環境中使用逐跳協定封包路由方法、系統及裝置
WO2015161791A1 (zh) 一种rlc层的数据包处理方法和rlc实体

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: 14743244

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2014743244

Country of ref document: EP