WO2015172320A1 - 视频缓存切换处理方法、装置和系统 - Google Patents

视频缓存切换处理方法、装置和系统 Download PDF

Info

Publication number
WO2015172320A1
WO2015172320A1 PCT/CN2014/077396 CN2014077396W WO2015172320A1 WO 2015172320 A1 WO2015172320 A1 WO 2015172320A1 CN 2014077396 W CN2014077396 W CN 2014077396W WO 2015172320 A1 WO2015172320 A1 WO 2015172320A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
connection
information
vog
terminal
Prior art date
Application number
PCT/CN2014/077396
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 PCT/CN2014/077396 priority Critical patent/WO2015172320A1/zh
Priority to CN201480028962.6A priority patent/CN105230074B/zh
Publication of WO2015172320A1 publication Critical patent/WO2015172320A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off

Definitions

  • Video buffer switching processing method device and system
  • the embodiments of the present invention relate to communication technologies, and in particular, to a video buffer switching processing method, apparatus, and system. Background technique
  • video cache optimization (English: Video Optimize Gateway, hereinafter referred to as VOG) is introduced.
  • VOG Video Optimize Gateway
  • the combination of video optimization and radio resource management control can improve the video user experience, especially the environment where the cell is congested. The effect is particularly obvious. Realize the storage time, the technology to change the bandwidth. Improve video transmission efficiency of wireless networks and reduce business operation costs.
  • the embodiment of the invention provides a video buffer switching processing method, device and system, so as to overcome the need for the user to send a video request again when the mobile terminal switches, resulting in a decrease in user experience.
  • a first aspect of the present invention provides a video buffer switching processing method, including:
  • the source video optimization gateway VOG intercepts the connection establishment request sent by the terminal to the video resource server, where the connection establishment request includes a network address of the video resource server and a network address of the terminal;
  • the source VOG establishes a first connection with the terminal by using a network address of the video resource server, and establishes a second connection with the video resource server by using a network address of the terminal.
  • the source VOG receives the video request sent by the terminal by using the first connection, and obtains a video resource corresponding to the video information according to the video information included in the video request, and returns the video to the terminal. Video response of the resource;
  • the source VOG receives a handover indication sent by the source base station when the terminal switches from the source base station to the target base station;
  • the source VOG constructs a handover response, where the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint;
  • the source VOG sends the handover response to the target VOG by using the source base station and the target base station, where the first connection control transmission information and the second connection control transmission information are respectively used in the A transmission control context of the first connection and the second connection is established on the target VOG, and the information of the video breakpoint indicates that the target VOG continues to transmit the video resource from the video breakpoint to the terminal.
  • the information about the video breakpoint includes: a URL of the video resource on the video resource server, and a byte range of content that has been transmitted to the terminal;
  • the acquiring, by the video resource corresponding to the video information, returning the video to the terminal The video response of the resource, including:
  • the source VOG checks whether the local cache stores the video information contained in the video request
  • the VOG sends the video request to the video resource server according to the video information included in the video request, acquires a video resource corresponding to the video information, and returns a video response to the terminal, where the video response includes Video resources;
  • the source VOG Returning the video response to the terminal, where the video response includes a video resource corresponding to the video information acquired from a local cache.
  • the source VOG sends the target VOG to the target VOG by using the source base station and the target base station. After the switching response, the method further includes:
  • the source VOG stops transmitting video data of the video resource to the terminal, and deletes the first connection and the second connection.
  • a second aspect of the present invention provides a video buffer switching processing method, including:
  • the source base station sends a handover indication to the source video optimization gateway VOG when the terminal switches from the source base station to the target base station;
  • the source base station receives a handover response message sent by the source VOG, where the handover response includes control connection information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where the first connection is
  • the source VOG uses a network address of the video resource server to establish a connection with the terminal, and the second connection is a connection established by the source VOG with the network address of the terminal and the video resource server;
  • the source base station sends the handover response message to the target VOG by using the target base station, where the first connection control transmission information and the second connection control transmission information are respectively used to establish on the target VOG
  • the transmission control context of the first connection and the second connection, the information of the video breakpoint is used to indicate that the target VOG continues to transmit video resources from the video breakpoint to the terminal.
  • a third aspect of the present invention provides a video buffer switching processing method, including:
  • the target base station receives a handover response sent by the source base station when the terminal switches from the source base station to the target base station, where the handover response includes control connection information of the first connection, control transmission information of the second connection, and information of the video breakpoint
  • the first connection is that the source VOG uses a network address of a video resource server to establish a connection with the terminal
  • the second connection is that the source VOG establishes a network address of the terminal with the video resource server. Connection;
  • the target base station sends the handover response message to the target VOG, where the first connection control transmission information and the second connection control transmission information are respectively used to establish the first connection on the target VOG And a transmission control context of the second connection, the information of the video breakpoint is used to indicate that the target VOG continues to transmit the video from the video breakpoint to the terminal Frequency resources.
  • a fourth aspect of the present invention provides a method for processing a video buffer switch, including:
  • the target VOG receives a handover response sent by the target base station, where the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where the first connection is a video resource of the source VOG.
  • the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where the first connection is a video resource of the source VOG.
  • the target VOG establishes a transmission control context of the first connection and the second connection according to the transmission control information of the first connection and the transmission control information of the second connection, according to the information of the video breakpoint to the The terminal continues to transmit video resources.
  • the information of the video breakpoint includes: a URL of the video resource on the video resource server, and a byte range of content that has been transmitted to the terminal;
  • the URL of the video resource on the video resource server the content time range that has been transmitted to the terminal.
  • the target VOG continues to transmit the video resource to the terminal according to the information of the video breakpoint, including :
  • the target VOG checks whether the local cache stores video information corresponding to the information of the video breakpoint
  • the target VOG sends a video request to the video resource server according to the information of the video breakpoint, and acquires a video resource corresponding to the information of the video breakpoint, and Returning a video response to the terminal, the video response including the video resource;
  • the target VOG returns a video response to the terminal, and the video response includes a video resource corresponding to the information of the video breakpoint obtained from the local cache.
  • the method further includes:
  • the target VOG removes the connection established between the first connection transmission control information and the second connection transmission control information and the video resource server and the terminal according to the handover response.
  • a fifth aspect of the present invention provides a video optimization gateway, where the video optimization gateway is a source video optimization gateway, including:
  • An intercepting module configured to intercept a connection establishment request sent by the terminal to the video resource server, where the connection establishment request includes a network address of the video resource server and a network address of the terminal;
  • Establishing a connection module configured to establish a first connection with the terminal by using a network address of the video resource server, and establish a second connection with the video resource server by using a network address of the terminal;
  • An acquiring module configured to receive a video request sent by the terminal by using the first connection, acquire a video resource corresponding to the video information according to the video information included in the video request, and return the content to the terminal Video response of the video resource;
  • a receiving module configured to receive a handover indication sent by the source base station when the terminal switches from the source base station to the target base station;
  • a configuration module configured to construct a handover response, where the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint;
  • a sending module configured to send, by using the source base station and the target base station, the handover response to a target VOG, where the first connection control transmission information and the second connection control transmission information are used respectively Establishing a transmission control context of the first connection and the second connection on the target VOG, where the information of the video breakpoint indicates that the target VOG continues to transmit the video resource from the video breakpoint to the terminal.
  • the information of the video breakpoint includes: a URL of the video resource on the video resource server, and a byte range of content that has been transmitted to the terminal;
  • the acquiring module is specifically configured to:
  • the video request is sent to the video resource server according to the video information included in the video request, and the video resource corresponding to the video information is obtained, and the video resource is obtained.
  • the terminal returns a video response, and the video response includes the video resource;
  • a video response is returned to the terminal, and the video response includes a video resource corresponding to the video information obtained from the local cache.
  • the method further includes:
  • a deleting module after the sending module sends the switching response to the target VOG by using the source base station and the target base station, stopping sending video data of the video resource to the terminal, deleting the first connection and The second connection.
  • a sixth aspect of the present invention provides a base station, where the base station is a source base station, and includes: a first sending module, configured to send a handover indication to a source video optimization gateway VOG when the terminal switches from the source base station to the target base station;
  • a receiving module configured to receive a handover response message sent by the source VOG, where the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where the first connection is
  • the source VOG uses the network address of the video resource server to establish a connection with the terminal, and the second connection is that the source VOG uses the network address of the terminal to establish a connection with the video resource server;
  • a seventh aspect of the present invention provides a base station, where the base station is a target base station, and includes: a receiving module, configured to receive a handover response sent by a source base station when the terminal switches from the source base station to the target base station, where the handover is performed.
  • the response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where the first connection is a connection established by the source VOG with a network address of the video resource server and the terminal
  • the second connection is that the source VOG uses the network address of the terminal to establish a connection with the video resource server;
  • the sending module is configured to send the handover response message to the target VOG, where the first connection is controlled.
  • Transmitting information and the second connected control transmission information are respectively used to establish a transmission control context of the first connection and the second connection on the target VOG, where information of the video breakpoint is used to indicate the target VOG
  • the video resource is continuously transmitted from the video breakpoint to the terminal.
  • An eighth aspect of the present invention provides a video optimization gateway, where the video optimization gateway is a target VOG, including:
  • a receiving module configured to receive a handover response sent by the target base station, and receive, by the target base station, a handover response, where the handover response includes first connection control transmission information, second connection control transmission information, and video breakpoint information, where a connection is established by the source VOG using a network address of the video resource server to establish a connection with the terminal, and the second connection is a connection established by the source VOG with the network address of the terminal and the video resource server;
  • a transmission module configured to establish, according to the transmission control information of the first connection and the transmission control information of the second connection, a transmission control context of the first connection and the second connection, according to information of the video breakpoint The terminal continues to transmit video resources.
  • the information about the video breakpoint includes: a URL of the video resource on the video resource server, and a byte range of content that has been transmitted to the terminal;
  • the URL of the video resource on the video resource server the content time range that has been transmitted to the terminal.
  • the continuing transmission module is specifically configured to:
  • the local cache stores video information corresponding to the information of the video breakpoint; If the result of the check is that the video information is not stored, send a video request to the video resource server according to the information of the video breakpoint, acquire a video resource corresponding to the information of the video breakpoint, and return a video to the terminal. In response, the video response includes the video resource; or
  • the video response is returned to the terminal, and the video response includes the video resource corresponding to the information of the video breakpoint obtained from the local cache.
  • the third possible implementation manner of the eighth aspect further includes:
  • the removal module is configured to remove the connection established between the first connection transmission control information and the second connection transmission control information and the video resource server and the terminal according to the switching response after the video playback ends.
  • a ninth aspect of the present invention provides a video buffer switching processing system, including: the video optimization gateway according to any one of the fifth aspect to the fifth aspect, the third aspect, The base station described in the implementation manner, the base station described in the manner that the seventh aspect may be implemented, and the video optimization gateway according to any one of the eighth aspect to the eighth aspect, the third possible implementation manner .
  • the video buffer switching processing method, apparatus, and system of the embodiment of the present invention when the terminal switches from the source base station to the target base station, the source VOG sends a handover response message to the source base station, and the handover response message includes the source VOG local.
  • the TCP connection information and the video information so that the target VOG performs video transmission with the terminal according to the TCP connection information and the video information, so that the video is not interrupted when the terminal switches from the source base station to the target base station, which solves the prior art.
  • the terminal views the video during the base station handover, the terminal needs to send the video request again, which causes a defect in the user experience.
  • Embodiment 1 is a flowchart of Embodiment 1 of a video switching processing method according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a video switching processing method according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a video switching processing method according to the present invention.
  • Embodiment 4 is a flowchart of Embodiment 4 of a video switching processing method according to the present invention.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of a source video optimization gateway according to the present invention.
  • Embodiment 2 of a source video optimization gateway according to the present invention
  • Embodiment 7 is a schematic structural diagram of Embodiment 1 of a source base station according to the present invention.
  • Embodiment 8 is a schematic structural diagram of Embodiment 1 of a target base station according to the present invention.
  • Embodiment 9 is a schematic structural diagram of Embodiment 1 of a target video optimization gateway according to the present invention.
  • Embodiment 2 of a target video optimization gateway according to the present invention
  • FIG. 11 is a schematic structural diagram of an embodiment of a video buffer switching processing system according to the present invention
  • FIG. 12 is a flowchart of Embodiment 5 of a video switching processing method according to the present invention.
  • FIG. 13 is a flowchart of Embodiment 6 of a video switching processing method according to the present invention.
  • FIG. 16 is a flowchart of Embodiment 9 of a video switching processing method according to the present invention.
  • FIG. 17 is a flowchart of Embodiment 10 of a video switching processing method according to the present invention.
  • Embodiment 3 of a source video optimization gateway according to the present invention is a schematic structural diagram of Embodiment 3 of a source video optimization gateway according to the present invention.
  • Embodiment 19 is a schematic structural diagram of Embodiment 2 of a source base station according to the present invention.
  • Embodiment 2 of a target base station according to the present invention
  • FIG. 21 is a schematic structural diagram of Embodiment 3 of a target video optimization gateway according to the present invention. detailed description
  • the video switching processing system of the present invention includes a source base station, a source video optimization gateway VOG, and a target Base station and target VOG as well as terminal and video resource servers.
  • the terminal When the terminal is in the coverage of the source base station, the terminal sends a TCP connection establishment request to the video resource server, and the establishment connection module of the source video optimization gateway intercepts the establishment connection request, and establishes a connection request and the terminal and the video resource server according to the TCP. Establish a TCP connection.
  • the terminal sends a video request to the video resource server, and the source video optimization gateway acquiring module acquires the video resource corresponding to the video information according to the video information included in the video request, and returns a video response including the video resource to the terminal. .
  • the terminal switches from the source base station to the target base station.
  • the first sending module of the source base station sends a handover indication to the source VOG
  • the receiving module of the source VOG receives the switching indication sent by the source base station, and sends the switch to the source through the sending module.
  • the base station sends a handover response message, where the handover response message includes the TCP connection information of the source VOG and the video message, and the receiving module of the source base station receives the handover response message sent by the source VOG, and sends the handover response message to the target base station by using the second sending module.
  • the receiving module of the target base station receives the handover notification sent by the source base station, and sends the handover notification to the target VOG by using the sending module, the target VOG
  • the receiving module receives the switching notification sent by the target base station, and the establishing connection module establishes a TCP connection with the terminal and the video resource server according to the TCP connection information included in the switching notification, where the acquiring module of the target VEG acquires Video resource corresponding to the video information, and returning to the terminal Video frequency response containing the video asset.
  • the target VOG is removed by the removal module to establish a TCP connection according to the TCP connection information.
  • Embodiment 1 is a flowchart of Embodiment 1 of a video switching processing method according to the present invention. As shown in FIG. 1, the method in this embodiment may include:
  • Step 101 The source video optimization gateway VOG intercepts a connection establishment request sent by the terminal to the video resource server, where the connection establishment request includes a network address of the video resource server and a network address of the terminal;
  • Step 102 The source VOG establishes a first connection with the terminal by using a network address of the video resource server, and establishes a second connection with the video resource server by using a network address of the terminal;
  • Step 103 The source VOG receives a video request sent by the terminal by using the first connection, and acquires a video resource corresponding to the video information according to the video information included in the video request, and returns the video resource to the terminal. a video response containing the video resource;
  • Step 104 The source VOG receives a handover indication sent by the source base station when the terminal switches from the source base station to the target base station;
  • Step 105 The source VOG constructs a handover response, where the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint.
  • the terminal when the terminal wants to acquire video resources, the terminal first sends the video resource server to the video resource server.
  • the TCP establishes a connection request
  • the source video optimization gateway VOG intercepts the TCP connection establishment request sent by the terminal, and establishes a TCP connection with the terminal by using the network address of the video resource server included in the TCP connection establishment request, and uses the connection as the first connection;
  • the network address of the terminal included in the TCP connection establishment request is used to establish a TCP connection with the video resource server, and the connection is used as the second connection.
  • the source VOG receives the video request sent by the terminal to the video resource server through the first connection, requests to acquire the video resource, and the source VOG checks the local according to the video information included in the video request.
  • the source VOG receives the handover indication sent by the source base station, and the source base station indicates the source VOG to perform the handover. After receiving the handover indication, the source VOG constructs a handover response message according to the TCP connection information established by the source VOG and the video information.
  • the switching response includes control transmission information of the first connection and the second connection, and video breakpoint information, the source VOG transmitting the handover response to the target VOG by the source base station and the target base station, wherein the first connection control transmission information and the second connection
  • the control transmission information is respectively used to establish a transmission control context of the first connection and the second connection on the target VOG, and the information of the video breakpoint indicates that the target VOG continues to transmit the video resource from the video breakpoint to the terminal.
  • the target VOG migrates the connection between the source VOG and the video resource server and the terminal to the target VOG by establishing a transmission control context of the first connection and the second connection, that is, after the handover occurs.
  • the target VOG no longer needs to re-establish the connection through a process similar to the source VOG.
  • the base station in this embodiment may also be a base station controller RNC.
  • the information of the video breakpoint includes:
  • HTTP/1.1 Hypertext Transfer Protocol
  • HTTP/1.1 allows the client to request a part of the resource entity
  • the implementation method is to request the resource entity.
  • One or more byte ranges, using the Range request header field, the result returned by the request is the range of the request resource entity indicated by the Range header field, the Range support is effectively recovered from the partial failed transmission, and is supported from the overall resource entity.
  • the Accept-Range response header field allows the server to indicate to the client the server's acceptance of the scope request.
  • the source server can send an instruction if it accepts a byte range request: Accept-Ranges: bytes; If the server cannot accept any type of range request, it will send an instruction: Accept-Ranges: none.
  • Example Explain use the phone's youtube client to watch the youtube video, the first interaction process is to request the complete video, the second interaction process is to see the drag during the same video. In this example, the URL for requesting the complete video and the part of the video being dragged is the same. The difference is the Range header field.
  • Range request based on time offset. For servers that do not support byte ranges, the range header field in the video request will be ignored. While the user is playing a video, there is a scene in which part of the content is requested. For example, if some content does not want to be viewed, he may drag the playback progress bar to request a subsequent partial video.
  • the obtaining a video resource corresponding to the video information, and returning a video response including the video resource to the terminal includes:
  • the source VOG checks whether the local cache stores the video information contained in the video request
  • the source VOG sends the video request to the video resource server according to the video information included in the video request, and obtains the video. a video resource corresponding to the information, and returning a video response to the terminal, where the video response includes the video resource;
  • the source VOG returns the video response to the terminal, and the video response includes a video resource corresponding to the video information acquired from a local cache.
  • the source VOG checks whether the video information exists in the local cache according to the video information included in the video request, and the check result includes that the video information included in the video request exists and the video request is not stored. Two results of the video information included in the video: If the local cache stores the video information contained in the video request, the source VOG may directly return a video response to the terminal, where the video response includes a video response of the video resource corresponding to the video information; The local cache does not store the video resource corresponding to the video information included in the video request, then the source The VOG sends a video request to the video resource server based on the video information in the video request. After obtaining the corresponding video resource from the video resource server, the video response including the video resource is returned to the terminal.
  • the video request is based on a video distribution protocol for HTTP transmission, and the entire video can be requested, and a partial video can also be requested according to the range of time offset or byte offset.
  • the method further includes:
  • the source VOG stops transmitting video data of the video resource to the terminal, and deletes the first connection and the second connection.
  • the source VOG receives the handover notification of the source base station and returns the video handover response message
  • the video data is not sent to the terminal, and the TCP connection information corresponding to the terminal and the TCP resource connection with the video resource server is deleted.
  • the terminal when the terminal sends a TCP connection establishment request and a video request to the video resource server by using the source VOG, the TCP connection information included in the TCP connection establishment request and the video information included in the video request are acquired, so that the terminal is from the source base station.
  • the handover to the target base station is performed, returning, to the source base station, the TCP connection information including the source VOG and the video information in the handover response message, so that the target VOG is based on the TCP connection information and the video information after switching the base station.
  • the terminal performs video transmission.
  • the problem that the video accessed by the terminal is suspended during the handover of the base station and the video request needs to be resent is solved.
  • the user is made unaware of the switching of the base station while watching the video.
  • Embodiment 2 is a flowchart of Embodiment 2 of a video switching processing method according to the present invention. As shown in FIG. 2, the method in this embodiment may include:
  • Step 201 The source base station sends a handover indication to the source video optimization gateway VOG when the terminal switches from the source base station to the target base station.
  • Step 202 The source base station receives a handover response message sent by the source VOG, where the handover response includes first connection control transmission information, second connection control transmission information, and video breakpoint information, where the first Connecting to the source VOG, the network address of the video resource server is connected to the terminal, and the second connection is that the source VOG uses the network address of the terminal to establish a connection with the video resource server;
  • Step 203 The source base station sends the handover response message to the target VOG by using the target base station, where the first connection control transmission information and the second connection control transmission information are used in the A transmission control context of the first connection and the second connection is established on the target VOG, where the information of the video breakpoint is used to indicate that the target VOG continues to transmit video resources from the video breakpoint to the terminal.
  • the source base station sends a handover indication to the source VOG of the subordinate to the base VOG during the handover of the terminal, and instructs the source VOG to perform handover.
  • the source VOG After receiving the handover indication, the source VOG returns a handover response message to the source base station, where the handover response message includes the TCP connection information of the active VOG and the video information included in the video request, so that the target base station sends the TCP connection information. And the video information is sent to the target VOG, so that the target VOG performs video transmission with the terminal according to the TCP connection information and the video information.
  • the base station in this embodiment may also be a base station controller RNC.
  • the source base station when the terminal switches from the source base station to the target base station, the source base station receives the handover response message of the source VOG, and sends a handover notification to the target base station, so that the target base station sends the handover notification to the target VOG, where
  • the notification includes the TCP connection information and the video information local to the source VOG in the handover response message, so that the target VOG performs video transmission with the terminal according to the TCP connection information and the video information. It realizes that the video watched by the terminal during the handover of the base station is not interrupted, and the terminal does not need to send the video request again.
  • FIG. 3 is a flowchart of Embodiment 3 of a video switching processing method according to the present invention. As shown in FIG. 3, the method in this embodiment may include:
  • Step 301 The target base station receives a handover response sent by the source base station when the terminal switches from the source base station to the target base station, where the handover response includes the first connection control transmission information, the second connection control transmission information, and a video.
  • the information of the breakpoint, the first connection is that the source VOG uses the network address of the video resource server to establish a connection with the terminal, and the second connection is that the source VOG adopts the network address of the terminal and the The connection established by the video resource server;
  • Step 302 The target base station sends the handover response message to a target VOG, where the first connection control transmission information and the second connection control transmission information are respectively used to establish a location on the target VOG. And a transmission control context of the first connection and the second connection, where the information of the video breakpoint is used to indicate that the target VOG continues to transmit video resources from the video breakpoint to the terminal.
  • the target base station receives the handover notification sent by the source base station, and sends the handover notification to the target VOG, where the handover notification includes local TCP connection information of the source VOG and video information included in the video request, thereby making the target VOG Performing video transmission with the terminal according to the TCP connection information.
  • the base station in the embodiment may also be a base station. Controller RNC.
  • the target base station receives the handover notification sent by the source base station, and sends the handover notification to the target VOG, so that the target VOG can perform video transmission with the terminal according to the TCP connection information and the video information included in the handover notification. It realizes that the terminal watches the video during the handover of the base station, and does not need to send the video request again.
  • Embodiment 4 is a flowchart of Embodiment 4 of a video switching processing method according to the present invention. As shown in FIG. 4, the method in this embodiment may include:
  • Step 401 The target VOG receives a handover response sent by the target base station, where the handover response includes first connection control transmission information, second connection control transmission information, and video breakpoint information, where the first connection is the source
  • the VOG uses the network address of the video resource server to establish a connection with the terminal, and the second connection is that the source VOG uses the network address of the terminal to establish a connection with the video resource server;
  • Step 402 The target VOG establishes a transmission control context of the first connection and the second connection according to the first connection transmission control information and the second connected transmission control information, according to the video breakpoint The information continues to transmit video resources to the terminal.
  • the target VOG receives a handover notification of the target base station, where the handover notification includes the TCP connection information of the active VOG and the video information in the video request, and establishes a TCP connection with the terminal and the video resource server by using the video resource server network address.
  • the base station in this embodiment may also be a base station controller RNC.
  • the information of the video breakpoint includes:
  • the URL of the video resource on the video resource server the content time range that has been transmitted to the terminal.
  • the target VOG continues to transmit video resources to the terminal according to the information of the video breakpoint, including:
  • the target VOG checks whether the local cache stores video information corresponding to the information of the video breakpoint; If the result of the check is that the video information is not stored, the target VOG sends a video request to the video resource server according to the information of the video breakpoint, and acquires a video resource corresponding to the information of the video breakpoint, and Returning a video response to the terminal, the video response including the video resource;
  • the target VOG returns a video response to the terminal, and the video response includes a video resource corresponding to the information of the video breakpoint obtained from the local cache.
  • the target VOG checks the local mitigation result according to the video information included in the handover notification sent by the target base station: if the check result is that the video information is stored, the target VOG directly returns a video response to the terminal, the video. The response includes the video resource corresponding to the video information. If the video information is not stored, the target VOG sends a video request to the video resource server according to the video information, and after obtaining the video resource, returns a video response to the terminal.
  • the target VOG constructs a new video request to the resource server, and the new video request will request the video content of the remaining portion that was not viewed before the switch. Requesting the remaining portion of the video content can be based on a byte range request and a time offset based range request.
  • the method further includes:
  • the target VOG removes the connection established between the first connection transmission control information and the second connection transmission control information and the video resource server and the terminal according to the handover response.
  • the target VOG receives the handover notification of the target base station, and performs video transmission to the terminal according to the TCP connection information and the video information included in the handover notification. It is implemented that the terminal does not need to send the request again to obtain the video.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of a source video optimization gateway according to the present invention. As shown in FIG. 5, the video optimization gateway in this embodiment may include:
  • the intercepting module 101 is configured to intercept a connection establishment request sent by the terminal to the video resource server, where the connection establishment request includes a network address of the video resource server and a network address of the terminal;
  • Establishing a connection module 102 configured to adopt a network address of the video resource server and the The terminal establishes a first connection, and establishes a second connection with the video resource server by using a network address of the terminal;
  • the obtaining module 103 is configured to receive, by using the first connection, a video request sent by the terminal, acquire a video resource corresponding to the video information, and return a content to the terminal according to the video information included in the video request. Video response of the video resource;
  • the receiving module 104 is configured to receive a handover indication sent by the source base station when the terminal switches from the source base station to the target base station;
  • a constructing module 105 configured to construct a handover response, where the handover response includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint; And the source base station and the target base station send the handover response to the target VOG, where the first connection control transmission information and the second connection control transmission information are used to establish the first on the target VOG a transmission control context of a connection and a second connection, the information of the video breakpoint indicating that the target VOG continues to transmit the video resource from the video breakpoint to the terminal.
  • the information of the video breakpoint includes:
  • the obtaining module 103 is specifically configured to:
  • the video request is sent to the video resource server according to the video information included in the video request, and the video resource corresponding to the video information is obtained, and the video resource is obtained.
  • the terminal returns a video response, and the video response includes the video resource;
  • a video response is returned to the terminal, where the video response includes a video resource corresponding to the video information obtained from the local cache.
  • the video optimization gateway of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1. The implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of Embodiment 2 of a source video optimization gateway according to the present invention.
  • the video optimization gateway of this embodiment may further include: a deletion module 107, configured to: After the sending, by the source base station and the target base station, the handover response to the target VOG, the sending module stops sending video data to the terminal, and deletes connection information established with the terminal and the video resource server.
  • the video optimization gateway of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 1.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of a source base station according to the present invention.
  • the source base station in this embodiment may include:
  • the first sending module 201 is configured to send a handover indication to the source video optimization gateway VOG when the terminal switches from the source base station to the target base station;
  • the receiving module 202 is configured to receive a handover response message sent by the source VOG, where the handover response includes control connection information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where the first connection is
  • the source VOG uses a network address of the video resource server to establish a connection with the terminal, and the second connection is a connection established by the source VOG with the network address of the terminal and the video resource server;
  • a second sending module 203 configured to send, by using the target base station, the handover response message to the target VOG, where the first connection control transmission information and the second connection control transmission information are used in the A transmission control context of the first connection and the second connection is established on the target VOG, where the information of the video breakpoint is used to indicate that the target VOG continues to transmit video resources from the video breakpoint to the terminal.
  • the source base station in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of a target base station according to the present invention. As shown in FIG. 8, the target base station in this embodiment may include:
  • the receiving module 301 is configured to receive a handover response that is sent by the source base station when the terminal switches from the source base station to the target base station, where the handover response includes control transmission information of the first connection, and control of the second connection Transmitting information and video breakpoint information, the first connection is
  • the source VOG uses the network address of the video resource server to establish a connection with the terminal
  • the second connection is that the source VOG uses the network address of the terminal to establish a connection with the video resource server
  • the sending module 302 is configured to send the handover response message to the target VOG, where the first connection control transmission information and the second connection control transmission information are used to establish the first on the target VOG a transmission control context of a connection and a second connection, the information of the video breakpoint being used to indicate that the target VOG continues to transmit video resources from the video breakpoint to the terminal.
  • the target base station in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of a target video optimization gateway according to the present invention.
  • the target video optimization gateway in this embodiment may include:
  • the receiving module 401 is configured to receive a handover response sent by the target base station, and the handover response includes the first connection control transmission information, the second connection control transmission information, and the video breakpoint.
  • the first connection is that the source VOG uses the network address of the video resource server to establish a connection with the terminal
  • the second connection is that the source VOG uses the network address of the terminal and the video resource server.
  • the established connection; the continuation transmission module 402 is configured to establish, according to the transmission control information of the first connection and the transmission control information of the second connection, a transmission control context of the first connection and the second connection, according to the video
  • the information of the breakpoint continues to transmit video resources to the terminal.
  • the information of the video breakpoint includes:
  • the URL of the video resource on the video resource server the content time range that has been transmitted to the terminal.
  • continuation transmission module 402 is specifically configured to:
  • a video response is returned to the terminal, and the video response includes a video resource corresponding to the information of the video breakpoint acquired from the local cache.
  • the video optimization gateway of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of Embodiment 2 of a target video optimization gateway according to the present invention. As shown in FIG. 10, the target video optimization gateway in this embodiment may further include:
  • the removal module 403 is configured to remove the connection established between the first connection transmission control information and the second connection transmission control information and the video resource server and the terminal according to the switching response after the video playback ends.
  • the video optimization gateway of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of an embodiment of a video buffer switching processing system according to the present invention.
  • the video buffer switching processing system of this embodiment includes: a source video optimization gateway 501, a source base station 502, a target base station 503, and target video optimization.
  • the source video optimization gateway of the present embodiment is the same as the embodiment of the video buffer switching processing method of the present invention shown in FIG. 1 and will not be described again.
  • the source base station of this embodiment and the video buffer switching processing method of the present invention shown in FIG. The principle of the embodiment is the same and will not be described again.
  • the principle of the embodiment of the video buffer switching processing method of the present invention is the same as that of the embodiment of the video buffer switching processing method of the present invention, and will not be described again.
  • the target video optimization gateway of this embodiment and FIG. 4 The principles of the video buffer switching processing method of the present invention are the same, and are not described again.
  • the technical solution of the embodiment of the present invention is different from the prior art in that when the terminal switches from the source base station to the target base station, the handover response message returned by the source VOG to the source base station includes the TCP connection information of the source VOG and the video disconnection.
  • the point information is used for the target VOG to establish a TCP connection with the terminal, establish a TCP connection with the video resource server, and acquire the video resource to the video resource server when there is no video resource.
  • FIG. 12 is a flowchart of a fifth embodiment of a video switching processing method according to the present invention.
  • the video switching processing method in this embodiment uses a video resource in a source video request in a source VOG, and a target VOG is switched.
  • the video resource corresponding to the information in the video breakpoint Specifically include:
  • Step 501 The terminal sends a connection establishment request to the video resource server.
  • the terminal when the terminal wants to watch the video, the terminal sends a TCP connection request to the video resource server, where the connection request includes the network address of the video resource server and the network address of the terminal.
  • Step 502 The source video optimization gateway VOG intercepts the connection request, and establishes the first connection and the second connection.
  • the source VOG establishes a TCP connection with the terminal by using the network address of the video resource server included in the TCP connection establishment request, and uses the connection as the first connection; and establishes a network address of the terminal included in the connection request by using the TCP. Establish a TCP connection with the video resource server, which is the second connection.
  • Step 503 The terminal sends a video request to the video resource server.
  • Step 504 The source VOG checks the local cache to store video resources.
  • the source VOG checks whether the video resource corresponding to the video information exists in the local cache according to the video information included in the video request.
  • the result of the check in this embodiment is that the video resource is not stored.
  • Step 505 The source VOG returns a video response to the terminal.
  • the video response includes a video resource corresponding to the video request obtained from a local cache.
  • Step 506 The source base station sends a handover indication to the source VOG when the terminal switches from the source base station to the target base station.
  • the source base station when the terminal switches from the source base station to the target base station, the source base station sends a handover indication to the source VOG, indicating that the source VOG is switched.
  • Step 507 The source VOG constructs a handover response message, and returns a handover response to the source base station.
  • the source base station receives the handover response message sent by the source VOG, and sends the handover response message to the target base station.
  • Step 510 The target base station sends a handover response message to the target VOG.
  • the target base station receives the change response message sent by the source base station, and sends the switch response message to the target VOG.
  • Step 511 The target VOG establishes a connection according to the handover response message.
  • the target VOG receives a handover response message sent by the target base station, where the handover response message includes control transmission information of the first connection, control transmission information of the second connection, and information of a video breakpoint, where a connection is established by the source VOG using a network address of a video resource server to establish a connection with the terminal, and the second connection is that the source VOG uses a network address of the terminal to establish a connection with the video resource server, and A transmission control context of the first connection and the second connection is established according to the first and second connections.
  • Step 512 The target VOG checks that the local cache stores video resources.
  • the target VOG checks whether the local cache has a corresponding video resource according to the video breakpoint information included in the handover response.
  • the result of the check is that the video resource is stored.
  • Step 513 The target VOG returns a video response to the terminal.
  • Step 514 After the video playback ends, the target VOG tears down and establishes a TCP connection according to the TCP connection information.
  • the source VOG when the video information included in the terminal video request is stored in the local cache before and after the handover of the base station, the source VOG is stored with video information, and the target VOG checks according to the information of the video breakpoint included in the handover response message.
  • the local cache also stores the video resource, and can directly return a video response to the terminal.
  • FIG. 13 is a flowchart of Embodiment 6 of a video switching processing method according to the present invention.
  • the video switching processing method in this embodiment uses a video information included in a video request in a source VOG, and the target video optimization gateway does not.
  • the video information corresponding to the information of the video breakpoint included in the handover response message is stored. Specifically include: Steps 601-611 are the same as steps 501-511, and are not described herein again.
  • Step 612 The target VOG checks, according to the information of the video breakpoint included in the handover response message, that the video resource is not stored in the local cache result, and constructs a new video request.
  • Step 613 The target VOG sends a new video request to the video resource server.
  • Step 614 The video resource server returns a video resource to the target VOG.
  • Step 615 The target VOG returns a video response to the terminal.
  • Step 616 After the video is played, the target VOG removes the connection.
  • the source VOG when checking whether the local cache stores the video information included in the terminal video request, stores the video resource, and the target VOG does not store the video resource, and the target VOG is included in the handover notification.
  • the video breakpoint information constructs a new video request and sends it to the video resource server to obtain the video resource and return a video response to the terminal.
  • FIG. 14 is a flowchart of a seventh embodiment of a video switching processing method according to the present invention.
  • the video switching processing method in this embodiment uses a video information and a target video included in a video request.
  • the optimization gateway stores information about the video breakpoints contained in the handover response message. Specifically include:
  • Step 701 The terminal sends a connection establishment request to the video resource server.
  • Step 702 The source VOG establishes a connection request, and establishes a first connection and a second connection.
  • Step 703 The terminal sends a video request to the video resource server.
  • Step 704 The source VOG checks that the local cache does not store the video resources included in the video request.
  • Step 705 The source VOG sends a video request to the video resource server.
  • the source VOG sends a video request to the video resource server according to the video information included in the video request, and acquires a video resource corresponding to the video information.
  • Step 706 The video resource server returns a video resource to the source VOG.
  • Step 707 The source VOG returns a video response to the terminal.
  • Steps 708-716 are the same as steps 506-514, and are not described here.
  • the source VOG does not have a corresponding video resource in the terminal video request, and the target
  • the VOG stores the video resource corresponding to the information of the video breakpoint in the handover response message, and the target VOG directly returns a video response to the terminal.
  • Embodiment 8 of a video switching processing method according to the present invention, as shown in FIG.
  • the source video optimization gateway and the target video optimization gateway do not store the video information included in the video request. Specifically include:
  • Steps 801-813 are the same as steps 701-713, and are not described here.
  • Steps 814-818 are the same as steps 612-616, and are not described herein again.
  • FIG. 16 is a flowchart of Embodiment 9 of a video switching processing method according to the present invention.
  • the video switching processing method in this embodiment uses a video information included in a video clearing guide for a source video optimization gateway, and the target base station does not. Deploy the target video optimization gateway. Specifically include:
  • Steps 901-905 are the same as 501-505, and are not described here.
  • Step 906 The source base station sends a handover indication to the source VOG when the terminal switches from the source base station to the target base station, where the handover indication includes a notification that the target base station does not deploy the VOG.
  • Step 907 The source VOG receives the handover indication sent by the source base station, and sends a handover response message to the source base station, where the handover response message does not include the first connection control transmission information and the second connection control.
  • Step 908 The source VOG removes the first connection and the second connection.
  • Step 909 The terminal re-sends a connection establishment request and a video request to the resource server.
  • This embodiment is a special case when the handover is performed, that is, the target base station does not deploy the VOG.
  • the terminal needs to re-send the TCP connection request and the video request to the resource server after switching to the target base station.
  • FIG. 17 is a flowchart of a tenth embodiment of a video switching processing method according to the present invention.
  • the video switching processing method in this embodiment uses the video information included in the video request that the source VOG does not exist to be forwarded only. Specifically include:
  • Step 1001 The terminal sends a connection establishment request to the video resource server.
  • Step 1002 The source VOG forwards the establishing connection request.
  • Step 1003 The terminal sends a video request to the video resource server.
  • Step 1004 The source VOG checks the local cache, and does not store the video information in the video request.
  • Step 1005 The source VOG sends a video request to the video resource server.
  • Step 1006 The video resource server returns a video resource.
  • Step 1007 The source VOG returns a video response to the terminal.
  • Step 1008 The source VOG video is injected into the local cache.
  • Step 1009 The terminal sends a transmission information confirmation to the video resource server.
  • Step 1010 The source VOG forwards the transmission information confirmation to the video resource server.
  • Step 1011 The source base station sends a handover indication to the source VOG.
  • Step 1012 Construct a handover response message, and return a handover response message to the source base station. Specifically, in the application scenario in this embodiment, the source base station returns a handover response message that does not include the connection transmission control information and the video breakpoint information. .
  • Step 1013 The source VOG deletes the local connection information.
  • Step 1014 The source base station sends a handover activation indication to the target base station.
  • Step 1015 The video resource server returns a video response.
  • Step 1016 The target VOG forwards a return video response to the terminal.
  • Step 1017 The terminal sends a transmission information confirmation to the video resource server.
  • Step 1018 The target VOG forwards the transmission information confirmation.
  • Step 1019 the video playback ends, and the connection is removed.
  • This embodiment is a special case at the time of handover, that is, the source VOG does not have the video resource in the video request of the terminal, and the source VOG does not include the connection transmission control information and the video disconnection in the handover response message constructed when the terminal switches to the target base station. Point information, source VOG and target VOG are only forwarded.
  • FIG. 18 is a schematic structural diagram of Embodiment 3 of a source video optimization gateway according to the present invention.
  • the network device of this embodiment includes: a processor 101 and an interface circuit 102, and the memory 103 and the bus 104 are also shown.
  • the processor 101, the interface circuit 102, and the memory 103 are connected by the bus 104 and complete communication with each other.
  • the bus 104 can be an industry standard architecture (English: Industry Standard Architecture, ISA for short) bus, external device interconnection (English: Peripheral Component Interconnect, abbreviation: PCI) bus or internal integrated circuit (English: Inter-Integrated Circuit, abbreviation : I2C) Bus, etc.
  • the bus 104 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 18, but it does not mean that there is only one bus or one type of bus.
  • the memory 103 is for storing executable program code, the program code including computer operating instructions.
  • the memory 103 can be a volatile memory (English: volatile memory), for example Machine memory (English: random-access memory, referred to as: RAM), can also be non-volatile memory (English: non-volatile memory, referred to as: NVM), such as read-only memory (English: read-only memory, referred to as ROM) , flash memory (English: flash memory), hard disk (English: hard disk drive, referred to as HDD) or solid state drive (English: solid-state drive, SSD for short).
  • ROM read-only memory
  • HDD hard disk drive
  • SSD solid state drive
  • the processor 101 can be a central processing unit (English: central processing unit, abbreviated as: CPU).
  • the processing of the video buffer switching provided by the embodiment of the present invention is performed by the processor 101, and the method for processing the video cache switching provided by the embodiment of the present invention is performed by using the operation instruction or the program code stored in the memory 103.
  • the method includes:
  • the processor 101 intercepts a TCP connection establishment request sent by the terminal to the video resource server, and establishes a TCP connection with the terminal and the video resource server according to the TCP connection information included in the TCP connection establishment request;
  • the processor 101 intercepts the video request sent by the terminal to the video resource server, checks whether the video information exists in the local cache according to the video information included in the video request, and returns a video to the terminal according to the check result. Respond
  • the processor 101 receives, by the interface circuit 102, a handover indication sent by the source base station when the terminal switches from the source base station to the target base station;
  • the processor 101 sends a handover response message to the source base station through the interface circuit 102, where the handover response message includes the TCP connection information of the source VOG and the video information, so that the source base station sends the TCP connection information and video.
  • FIG. 19 is a schematic structural diagram of Embodiment 2 of a source base station according to the present invention.
  • the network device in this embodiment includes: a processor 201 and an interface circuit 202, and further includes a memory 203 and a bus 204.
  • the processor 201, the interface circuit 202, and the memory 203 are connected by the bus 204 and complete communication with each other.
  • the bus 204 can be an industry standard architecture (English: Industry Standard Architecture, ISA for short) bus, external device interconnection (English: Peripheral Component Interconnect, referred to as: PCI) bus or internal integrated circuit (English: Inter-Integrated Circuit, referred to as: I2C) bus.
  • the bus 204 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 19, but it does not mean that there is only one bus or one type of bus.
  • Memory 203 is for storing executable program code, the program code including computer operating instructions.
  • the memory 203 may be a volatile memory (English: volatile memory), such as a random-access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (English: non-volatile memory, referred to as NVM)
  • volatile memory such as a random-access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (English: non-volatile memory, referred to as NVM)
  • read-only memory English: read-only memory, ROM for short
  • flash memory English: flash memory
  • hard disk English: hard disk drive, HDD for short
  • solid state drive English: solid-state drive, abbreviation SSD
  • the processor 201 can be a central processing unit (English: central processing unit, abbreviated as: CPU).
  • the processing of the video buffer switching provided by the embodiment of the present invention is performed by the processor 201, and the method for processing the video cache switching provided by the embodiment of the present invention is performed by using the operation instruction or the program code stored in the memory 203.
  • the method includes:
  • the processor 201 sends a handover indication to the source VOG when the terminal switches from the source base station to the target base station;
  • the processor 201 receives the handover response message sent by the source VOG through the interface circuit 202;
  • the processor 201 sends a handover notification to the target base station by using the interface circuit 202, where the handover notification includes the TCP connection information of the source VOG and the video information, so that the target base station sends the TCP connection information and The video information is sent to the target VOG, and the target VOG is further transmitted to the terminal according to the TCP connection information and the video information.
  • FIG. 20 is a schematic structural diagram of Embodiment 2 of a target base station according to the present invention.
  • the network device of this embodiment includes: a processor 301 and an interface circuit 302.
  • the memory 303 and the bus 304 are also shown.
  • the processor 301, the interface circuit 302, and the memory 303 are connected by the bus 304 and complete communication with each other.
  • the bus 304 can be an industry standard architecture (English: Industry Standard Architecture, referred to as: ISA) Bus, external device interconnection (English: Peripheral Component Interconnect, referred to as: PCI) bus or internal integrated circuit (English: Inter-Integrated Circuit, referred to as: I2C) bus.
  • the bus 304 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 20, but it does not mean that there is only one bus or one type of bus.
  • Memory 303 is for storing executable program code, including computer operating instructions.
  • the memory 303 may be a volatile memory (English: volatile memory), such as a random-access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (NVM).
  • volatile memory such as a random-access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (NVM).
  • RAM random-access memory
  • NVM non-volatile memory
  • read-only memory English: read-only memory, ROM for short
  • flash memory English: flash memory
  • hard disk English: hard disk drive, HDD for short
  • solid state drive English: solid-state drive, abbreviation SSD
  • the processor 301 can be a central processing unit (English: central processing unit, abbreviated as: CPU).
  • the processor 301 can execute the processing method of the video cache switching provided by the embodiment of the present invention by using an operation instruction or a program code stored in the memory 303, where the method includes:
  • the processor 301 receives, by using the interface circuit 302, a handover notification sent by the source base station when the terminal switches from the source base station to the target base station, where the handover notification includes TCP connection information and video information of the terminal in the source VOG;
  • the processor 301 transmits the handover notification to the target VOG through the interface circuit 302 to cause the target VOG to perform video transmission with the terminal according to the TCP connection information and video information.
  • FIG. 21 is a schematic structural diagram of Embodiment 3 of the target video optimization gateway of the present invention.
  • the network device of this embodiment includes: a processor 401 and an interface circuit 402, and the memory 403 and the bus 404 are also shown.
  • the processor 401, the interface circuit 402, and the memory 403 are connected by a bus 404 and complete communication with each other.
  • the bus 404 can be an industry standard architecture (English: Industry Standard Architecture, ISA for short) bus, external device interconnection (English: Peripheral Component Interconnect, abbreviation: PCI) bus or internal integrated circuit (English: Inter-Integrated Circuit, referred to as: I2C) bus.
  • the bus 404 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 21, but it does not mean that there is only one bus or one type of bus.
  • Memory 403 is for storing executable program code, the program code including computer operating instructions.
  • the memory 403 may be a volatile memory (English: volatile memory), such as a random-access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (English: non-volatile memory, referred to as NVM)
  • volatile memory such as a random-access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (English: non-volatile memory, referred to as NVM)
  • read-only memory English: read-only memory, ROM for short
  • flash memory English: flash memory
  • hard disk English: hard disk drive, HDD for short
  • solid state drive English: solid-state drive, abbreviation SSD
  • the processor 401 can be a central processing unit (English: central processing unit, abbreviated as: CPU).
  • the processor 401 can execute the processing method of the video cache switching provided by the embodiment of the present invention by using an operation instruction or a program code stored in the memory 403, where the method includes:
  • the processor 401 receives, by using the interface circuit 402, a handover notification sent by the target base station, where the handover notification includes the TCP connection information and the video information of the terminal in the source VOG;
  • the processor 401 establishes a TCP connection with the terminal and the video resource server according to the TCP connection information;
  • the processor 401 checks whether the video information exists in the local cache according to the video information included in the handover notification, and returns a video response to the terminal according to the check result.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, may be located at a Places, or they can be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the method of various embodiments of the present invention.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一种视频缓存切换处理方法、装置和系统。源VOG在终端从源基站切换到目标基站时构造切换响应,切换响应包括源VOG与视频资源服务器建立的第一连接和与终端建立的第二连接的控制传输信息以及视频断点的信息;源VOG通过源基站和所述目标基站向目标VOG发送切换响应,其中,第一连接的控制传输信息和第二连接的控制传输信息分别用于在目标VOG上建立第一连接和第二连接的传输控制上下文,视频断点的信息指示目标VOG从视频断点向终端继续传输视频资源。解决了终端在基站切换过程中所访问的视频被中止,需要重新发送视频请求,导致用户体验效果下降的问题。

Description

视频缓存切换处理方法、 装置和系统
技术领域
本发明实施例涉及通信技术, 尤其涉及一种视频缓存切换处理方法、 装置和系统。 背景技术
随着人们对于随时随地的多媒体访问需求的日益迫切, 移动视频需求正 呈爆炸式增长。 但是移动宽带网络与固网不同, 无线接入网络带宽稳定性 差, 存在视频资源瓶颈, 并且多用户共享有限资源, 导致在网络进行大数据 流分发时, 视频的播放初始化缓冲时延长、 播放时频繁卡顿的现象发生。
在网络的无线接入侧, 引入视频的缓存优化 (英文: Video Optimize Gateway, 以下简称: VOG) , 通过视频优化与无线资源管理控制的结合, 可以改善视频用户的体验, 特别是小区拥塞的环境下效果尤为明显。 实现以 存储换时间, 以技术换带宽。 提升无线网络的视频传输效率, 降低了业务运 营成本。
由于引入视频缓存优化, 当移动终端发生切换时, 需要用户再次发送视 频请求, 导致用户体验效果下降。 发明内容
本发明实施例提供一种视频缓存切换处理方法、 装置和系统, 以克服当 移动终端发生切换时, 用户需要再次发送视频请求, 导致用户体验效果下 降。
本发明第一方面提供了一种视频缓存切换处理方法, 包括:
源视频优化网关 VOG拦截终端向视频资源服务器发送的建立连接请 求, 所述建立连接请求包含所述视频资源服务器的网络地址和所述终端 的网络地址;
所述源 VOG采用所述视频资源服务器的网络地址与所述终端建立第 一连接, 采用所述终端的网络地址与所述视频资源服务器建立第二连 接;
所述源 VOG通过所述第一连接接收所述终端发送的视频请求, 根据 所述视频请求中包含的视频信息, 获取与所述视频信息对应的视频资 源, 向所述终端返回包含所述视频资源的视频响应;
所述源 VOG接收源基站在所述终端从所述源基站切换到目标基站时 发送的切换指示;
所述源 VOG构造切换响应, 所述切换响应包括所述第一连接的控制 传输信息、 所述第二连接的控制传输信息和视频断点的信息;
所述源 VOG通过所述源基站和所述目标基站向目标 VOG发送所述切 换响应, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输 信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传输控 制上下文, 所述视频断点的信息指示所述目标 VOG从所述视频断点向所 述终端继续传输所述视频资源。
在第一方面第一种可能实现方式中, 所述视频断点的信息, 包括: 所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容时间范围。
结合第一方面或第一方面第一种可能实现方式, 在第一方面第二种可 能的实现方式中, 所述获取与所述视频信息对应的视频资源, 向所述终 端返回包含所述视频资源的视频响应, 包括:
所述源 VOG 检査本地缓存是否存有所述视频请求中包含的视频信 息;
若检査结果为未存有所述视频请求中包含的视频信息, 则所述源
VOG 根据所述视频请求中包含的视频信息向所述视频资源服务器发送所 述视频请求, 获取与所述视频信息所对应的视频资源, 并向所述终端返 回视频响应, 所述视频响应包含所述视频资源;
或者,
若检査结果为存有所述视频请求中包含的视频信息, 则所述源 VOG 向所述终端返回所述视频响应, 所述视频响应包含从本地缓存获取的与 所述视频信息所对应的视频资源。
结合第一方面至第一方面第二种实现方式任一种可能实现方式, 在 第一方面第三种可能实现方式中, 所述源 VOG通过所述源基站和所述目 标基站向目标 VOG发送所述切换响应之后, 还包括:
所述源 VOG停止向所述终端发送所述视频资源的视频数据, 删除所 述第一连接和所述第二连接。
本发明第二方面提供一种视频缓存切换处理方法, 包括:
源基站在终端从所述源基站切换到目标基站时向源视频优化网关 VOG发送切换指示;
所述源基站接收所述源 VOG发送的切换响应消息, 所述切换响应包 括第一连接的控制传输信息、 第二连接的控制传输信息和视频断点的信 息, 所述第一连接为所述源 VOG采用视频资源服务器的网络地址与所述 终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地址 与所述视频资源服务器建立的连接;
所述源基站通过所述目标基站向目标 VOG发送所述切换响应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输信息分别 用于在所述目标 VOG 上建立所述第一连接和第二连接的传输控制上下 文, 所述视频断点的信息用于指示所述目标 VOG从所述视频断点向所述 终端继续传输视频资源。
本发明第三方面提供一种视频缓存切换处理方法, 包括:
目标基站接收源基站在终端从所述源基站切换到所述目标基站时发 送的切换响应, 所述切换响应包括第一连接的控制传输信息、 第二连接的 控制传输信息和视频断点的信息, 所述第一连接为所述源 VOG采用视频 资源服务器的网络地址与所述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地址与所述视频资源服务器建立的连接;
所述目标基站向目标 VOG发送所述切换响应消息, 其中, 所述第一 连接的控制传输信息和所述第二连接的控制传输信息分别用于在所述目 标 VOG上建立所述第一连接和第二连接的传输控制上下文, 所述视频断 点的信息用于指示所述目标 VOG从所述视频断点向所述终端继续传输视 频资源。
本发明第四方面提供一种视频缓存切换的处理方法, 包括:
目标 VOG接收目标基站发送的切换响应, 所述切换响应包括第一连 接的控制传输信息、 第二连接的控制传输信息和视频断点的信息, 所述第 一连接为所述源 VOG采用视频资源服务器的网络地址与所述终端建立的 连接, 所述第二连接为所述源 VOG采用所述终端的网络地址与所述视频 资源服务器建立的连接;
所述目标 VOG根据所述第一连接的传输控制信息和所述第二连接的 传输控制信息建立所述第一连接和第二连接的传输控制上下文, 根据所述 视频断点的信息向所述终端继续传输视频资源。
在第四方面第一种可能的实现方式中, 所述视频断点的信息, 包括: 所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容时间范围。
结合第四方面或第四方面第一种可能实现方式, 在第四方面第二种 可能的实现方式中, 所述目标 VOG根据所述视频断点的信息向所述终端 继续传输视频资源, 包括:
所述目标 VOG检査本地缓存是否存有所述视频断点的信息对应的视 频信息;
若检査结果为未存有所述视频信息, 则所述目标 VOG根据所述视频 断点的信息向视频资源服务器发送视频请求, 获取与所述视频断点的信 息所对应的视频资源, 并向终端返回视频响应, 所述视频响应包含所述 视频资源;
或者,
若检査结果为存有所述视频信息, 则所述目标 VOG向终端返回视频 响应, 所述视频响应包含从本地缓存获取的与所述视频断点的信息所对 应的视频资源。
结合第四方面至第四方面第二种实现方式任一种可能实现方式, 在 第四方面第三种可能实现方式中, 所述目标 VOG根据所述视频断点的信 息向所述终端继续传输视频资源之后, 还包括:
所述目标 VOG在视频播放结束之后, 拆除根据所述切换响应中所包 含的第一连接传输控制信息、第二连接传输控制信息与视频资源服务器和 终端建立的连接。
本发明第五方面提供了一种视频优化网关, 所述视频优化网关为源 视频优化网关, 包括:
拦截模块, 用于拦截终端向视频资源服务器发送的建立连接请求, 所述建立连接请求包含所述视频资源服务器的网络地址和所述终端的网 络地址;
建立连接模块, 用于采用所述视频资源服务器的网络地址与所述终端 建立第一连接, 采用所述终端的网络地址与所述视频资源服务器建立第 二连接;
获取模块, 用于通过所述第一连接接收所述终端发送的视频请求, 根据所述视频请求中包含的视频信息, 获取与所述视频信息对应的视频 资源, 向所述终端返回包含所述视频资源的视频响应;
接收模块, 用于接收源基站在所述终端从所述源基站切换到目标基 站时发送的切换指示;
构造模块, 用于构造切换响应, 所述切换响应包括所述第一连接的控 制传输信息、 所述第二连接的控制传输信息和视频断点的信息;
发送模块, 用于通过所述源基站和所述目标基站向目标 VOG发送所 述切换响应, 其中, 所述第一连接的控制传输信息和所述第二连接的控制 传输信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传 输控制上下文, 所述视频断点的信息指示所述目标 VOG从所述视频断点 向所述终端继续传输所述视频资源。
在第五方面第一种可能的实现方式中, 所述视频断点的信息, 包括: 所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容时间范围。
结合第五方面或第五方面第一种可能实现方式, 在第五方面第二种可 能的实现方式中, 所述获取模块, 具体用于:
检査本地缓存是否存有视频请求中包含的视频信息;
若检査结果为未存有所述视频请求中包含的视频信息, 则根据视频 请求中包含的视频信息向视频资源服务器发送视频请求, 获取与所述视 频信息所对应的视频资源, 并向所述终端返回视频响应, 所述视频响应 包含所述视频资源;
或者,
若检査结果为存有所述视频请求中包含的视频信息, 则向所述终端 返回视频响应, 所述视频响应包含从本地缓存获取的与所述视频信息所 对应的视频资源。
结合第五方面至第五方面第二种可能的实现方式, 在第五方面第三种 可能的实现方式中, 还包括:
删除模块, 用于所述发送模块通过所述源基站和所述目标基站向目 标 VOG发送所述切换响应之后, 停止向所述终端发送所述视频资源的视 频数据, 删除所述第一连接和所述第二连接。
本发明第六方面提供了一种基站, 所述基站为源基站, 包括: 第一发送模块, 用于在终端从所述源基站切换到目标基站时向源视 频优化网关 VOG发送切换指示;
接收模块, 用于接收所述源 VOG发送的切换响应消息, 所述切换响 应包括第一连接的控制传输信息、第二连接的控制传输信息和视频断点的 信息, 所述第一连接为所述源 VOG采用视频资源服务器的网络地址与所 述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地 址与所述视频资源服务器建立的连接;
第二发送模块, 用于通过所述目标基站向目标 VOG发送所述切换响 应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输 信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传输控 制上下文, 所述视频断点的信息用于指示所述目标 VOG从所述视频断点 向所述终端继续传输视频资源。 本发明第七方面提供了一种基站, 所述基站为目标基站, 包括: 接收模块, 用于接收源基站在终端从所述源基站切换到所述目标基 站时发送的切换响应, 所述切换响应包括第一连接的控制传输信息、 第二 连接的控制传输信息和视频断点的信息, 所述第一连接为所述源 VOG采 用视频资源服务器的网络地址与所述终端建立的连接, 所述第二连接为所 述源 VOG采用所述终端的网络地址与所述视频资源服务器建立的连接; 发送模块, 用于向目标 VOG发送所述切换响应消息, 其中, 所述第 一连接的控制传输信息和所述第二连接的控制传输信息分别用于在所述 目标 VOG上建立所述第一连接和第二连接的传输控制上下文, 所述视频 断点的信息用于指示所述目标 VOG从所述视频断点向所述终端继续传输 视频资源。
本发明第八方面提供了一种视频优化网关, 所述视频优化网关为目 标 VOG, 包括:
接收模块, 用于接收目标基站发送的切换通知接收目标基站发送的 切换响应, 所述切换响应包括第一连接的控制传输信息、第二连接的控制 传输信息和视频断点的信息, 所述第一连接为所述源 VOG采用视频资源 服务器的网络地址与所述终端建立的连接, 所述第二连接为所述源 VOG 采用所述终端的网络地址与所述视频资源服务器建立的连接;
继续传输模块, 用于根据所述第一连接的传输控制信息和所述第二连 接的传输控制信息建立所述第一连接和第二连接的传输控制上下文, 根据 所述视频断点的信息向所述终端继续传输视频资源。
在第八方面第一种可能实现方式中, 所述视频断点的信息, 包括: 所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容时间范围。
结合第八方面或第八方面第一种可能实现方式, 在第八方面第二种可 能的实现方式中, 所述继续传输模块, 具体用于:
检査本地缓存是否存有所述视频断点的信息对应的视频信息; 若检査结果为未存有所述视频信息, 则根据所述视频断点的信息向 视频资源服务器发送视频请求, 获取与所述视频断点的信息所对应的视 频资源, 并向终端返回视频响应, 所述视频响应包含所述视频资源; 或者,
若检査结果为存有所述视频信息, 则向终端返回视频响应, 所述视 频响应包含从本地缓存获取的与所述视频断点的信息所对应的视频资 源。
结合第八方面至第八方面第二种实现方式中任一种可能实现方式, 在 第八方面第三种可能实现方式中, 还包括:
拆除模块, 用于在视频播放结束之后, 拆除根据所述切换响应中所 包含的第一连接传输控制信息、第二连接传输控制信息与视频资源服务器 和终端建立的连接。
本发明第九方面提供了一种视频缓存切换处理系统, 包括: 所述第五方面至第五方面第三种可能实现的方式中任一项所述的视频优 化网关、 所述第六方面可能实现的方式中所述的基站、 所述第七方面可能实 现的方式中所述的基站以及所述第八方面至第八方面第三种可能实现的方式 中任一项所述的视频优化网关。
本发明实施例视频缓存切换处理方法、装置和系统,通过源 VOG在终端 从源基站切换到目标基站时向所述源基站发送切换响应消息, 并且所述切换 响应消息中包含所述源 VOG本地的 TCP连接信息以及视频信息, 以使目标 VOG根据所述 TCP连接信息和视频信息与所述终端进行视频传输, 实现终 端在从源基站切换到目标基站时视频不中断, 解决了现有技术中终端在进行 基站切换时观看视频, 需要终端再次发送视频请求, 导致用户体验效果下降 的缺陷。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将 对实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易 见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术 人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得 其他的附图。
图 1为本发明视频切换处理方法实施例一的流程图;
图 2为本发明视频切换处理方法实施例二的流程图;
图 3为本发明视频切换处理方法实施例三的流程图;
图 4为本发明视频切换处理方法实施例四的流程图;
图 5为本发明源视频优化网关实施例一的结构示意图;
图 6为本发明源视频优化网关实施例二的结构示意图;
图 7为本发明源基站实施例一的结构示意图;
图 8为本发明目标基站实施例一的结构示意图;
图 9为本发明目标视频优化网关实施例一的结构示意图;
图 10为本发明目标视频优化网关实施例二的结构示意图;
图 11为本发明视频缓存切换处理系统实施例的结构示意图; 图 12为本发明视频切换处理方法实施例五的流程图;
图 13为本发明视频切换处理方法实施例六的流程图;
图 14为本发明视频切换处理方法实施例七的流程图;
图 15为本发明视频切换处理方法实施例八的流程图;
图 16为本发明视频切换处理方法实施例九的流程图;
图 17为本发明视频切换处理方法实施例十的流程图;
图 18为本发明源视频优化网关实施例三的结构示意图;
图 19为本发明源基站实施例二的结构示意图;
图 20为本发明目标基站实施例二的结构示意图;
图 21为本发明目标视频优化网关实施例三的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合 本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整 地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的 实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明视频切换处理系统包括源基站、 源视频优化网关 VOG、 目标 基站和目标 VOG以及终端和视频资源服务器。 当终端处于源基站覆盖范 围内时, 终端向视频资源服务器发送 TCP 建立连接请求, 源视频优化网 关的建立连接模块拦截所述建立连接请求, 并根据所述 TCP 建立连接请 求与终端和视频资源服务器建立 TCP 连接。 终端向视频资源服务器发送 视频请求, 源视频优化网关获取模块根据所述视频请求中包含的视频信 息, 获取与所述视频信息对应的视频资源, 向所述终端返回包含所述视 频资源的视频响应。 终端在移动过程中, 从源基站切换到目标基站, 此 时源基站第一发送模块向源 VOG发送切换指示, 源 VOG的接收模块接收 源基站发送的所述切换指示, 并通过发送模块向源基站发送切换响应消 息, 所述切换响应消息中包含源 VOG 本地的 TCP 连接信息以及视频消 息, 源基站的接收模块接收所述源 VOG发送的切换响应消息, 并通过第 二发送模块向目标基站发送切换通知, 所述切换通知中包含所述 TCP 连 接消息以及所述视频消息, 目标基站的接收模块接收所述源基站发送的 切换通知, 并通过发送模块向目标 VOG发送所述切换通知, 目标 VOG的 接收模块接收目标基站发送的所述切换通知, 建立连接模块根据所述切 换通知所包含的所述 TCP连接信息与终端和视频资源服务器建立 TCP连 接, 所述目标 VOG的获取模块获取与所述视频信息对应的视频资源, 并 向所述终端返回包含所述视频资源的视频响应。 所述目标 VOG在视频播 放结束之后, 通过拆除模块拆除根据所述 TCP连接信息建立 TCP连接。
图 1为本发明视频切换处理方法实施例一的流程图, 如图 1所示, 本 实施例的方法可以包括:
歩骤 101、 源视频优化网关 VOG拦截终端向视频资源服务器发送的 建立连接请求, 所述建立连接请求包含所述视频资源服务器的网络地址 和所述终端的网络地址;
歩骤 102、 所述源 VOG采用所述视频资源服务器的网络地址与所述 终端建立第一连接, 采用所述终端的网络地址与所述视频资源服务器建 立第二连接;
歩骤 103、 所述源 VOG通过所述第一连接接收所述终端发送的视频 请求, 根据所述视频请求中包含的视频信息, 获取与所述视频信息对应 的视频资源, 向所述终端返回包含所述视频资源的视频响应; 歩骤 104、 所述源 VOG接收源基站在所述终端从所述源基站切换到 目标基站时发送的切换指示;
歩骤 105、所述源 VOG构造切换响应, 所述切换响应包括所述第一连 接的控制传输信息、 所述第二连接的控制传输信息和视频断点的信息; 歩骤 106、 所述源 VOG通过所述源基站和所述目标基站向目标 VOG 发送所述切换响应, 其中, 所述第一连接的控制传输信息和所述第二连接 的控制传输信息分别用于在所述目标 VOG上建立所述第一连接和第二连 接的传输控制上下文, 所述视频断点的信息指示所述目标 VOG从所述视 频断点向所述终端继续传输所述视频资源。
具体来说, 终端在想获取视频资源的时候, 首先向视频资源服务器发送
TCP建立连接请求, 源视频优化网关 VOG拦截终端发出的 TCP建立连接请 求, 并采用该 TCP建立连接请求中所包含的视频资源服务器的网络地址与终 端建立 TCP连接,把该连接作为第一连接;采用该 TCP建立连接请求中所包 含的终端的网络地址与视频资源服务器建立 TCP连接, 把该连接作为第二连 接。 在源 VOG建立第一和第二连接之后, 源 VOG通过第一连接接收终端向 视频资源服务器发送的视频请求,请求获取视频资源,源 VOG根据该视频请 求中所包含的视频信息,检査本地缓存是否存在该视频信息对应的视频资源, 根据检査的结果向终端返回视频响应。 终端在移动的过程当中, 当终端从源 基站向目标基站切换的时候,源 VOG接收源基站发送的切换指示,源基站指 示源 VOG进行切换。 源 VOG接收到切换指示后, 根据源 VOG本地所建 立的 TCP 连接信息以及所述视频信息构造切换响应消息。 该切换响应包 括第一连接和第二连接的控制传输信息以及视频断点信息, 源 VOG通过 源基站和目标基站向目标 VOG发送该切换响应, 其中, 第一连接的控制 传输信息和第二连接的控制传输信息分别用于在目标 VOG上建立第一连 接和第二连接的传输控制上下文, 所述视频断点的信息指示目标 VOG从 视频断点向所述终端继续传输视频资源。 目标 VOG通过建立第一连接和 第二连接的传输控制上下文, 也就是在发生切换后将源 VOG分别和视频 资源服务器和终端建立的连接迁移到了目标 VOG上。目标 VOG无需再通 过类似源 VOG的建立连接的过程来重建连接。
迁移的连接信息具体参见表 1, 表 1
Figure imgf000014_0001
需要说明的是, 本实施例中的基站也可以为基站控制器 RNC。
进一歩地, 所述视频断点的信息, 包括:
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容时间范围。
具体来说, 对于视频请求的方式有两种: 第一种, 超文本传输协议 HTTP/1.1 的字节范围请求, HTTP/1.1 允许客户请求资源实体的一部分, 实现的方法是可以通过请求资源实体的一个或多个字节范围, 利用 Range 请求头域, 请求返回的结果就是 Range头域指示的请求资源实体的范围, Range支持从部分失败传输中有效地恢复, 并且支持从整体的资源实体中 有效地获取部分内容; Accept-Range响应头域允许服务器向客户指明服务 器对范围请求的接受度。源服务器如果接受字节范围请求那么可以发送指 令: Accept-Ranges: bytes; 服务器如果不能接受任何类型的范围请求, 将 会发送指令: Accept-Ranges: none。 去劝告客户不要尝试范围请求。 举例 说明, 使用手机的 youtube客户端观看 youtube视频, 第一个交互过程是 请求完整视频, 第二个交互过程是看同一视频过程中的拖动。 本例中, 请 求完整视频与拖动的部分视频两者的 URL是相同的, 不同的是 Range头 域, 请求完整视频的 Range头域为 " Range: bytes=0-2625756 " , 而请求部 分视频内容的 Range头域为 "Range: bytes=1433600-2625756 " 。
第二种方式: 基于时间偏移的范围请求。 不支持字节范围的服务器, 视频请求中的 range头域将被忽略。 而用户在播放视频过程中, 是存在请 求部分内容的场景的, 例如, 有部分内容不想看, 他可能拖动播放进度条, 请求后续部分视频。 现网中通行的做法是, 在用户请求的 URL 中, 携带 基于时间偏移的字段, 如 "begin" 、 " start"等, 其时间单位一般为毫秒。 举例说明, 采用计算机访问 youtube 视频, 拖动时请求 URL 中增加了 "begin=48023 "单位为毫秒。
进一歩地, 所述获取与所述视频信息对应的视频资源, 向所述终端 返回包含所述视频资源的视频响应, 包括:
所述源 VOG 检査本地缓存是否存有所述视频请求中包含的视频信 息;
若检査结果为未存有所述视频请求中包含的视频信息, 则所述源 VOG 根据所述视频请求中包含的视频信息向所述视频资源服务器发送所 述视频请求, 获取与所述视频信息所对应的视频资源, 并向所述终端返 回视频响应, 所述视频响应包含所述视频资源;
或者,
若检査结果为存有所述视频信息, 则所述源 VOG向所述终端返回所 述视频响应, 所述视频响应包含从本地缓存获取的与所述视频信息所对 应的视频资源。
具体来说, 源 VOG根据视频请求中包含的视频信息检査本地缓存是 否存有所述视频信息, 检査结果存在有存有所述视频请求中包含的视频 信息和未存有所述视频请求中包含的视频信息两种结果: 若本地缓存存 有该视频请求中包含的视频信息, 源 VOG 可以直接向终端返回视频响 应, 该视频响应中包含有视频信息对应的视频资源的视频响应; 若本地 缓存未存有该视频请求中包含的视频信息所对应的视频资源, 那么源 VOG 则根据视频请求中的视频信息向视频资源服务器发送视频请求。 从 视频资源服务器端获取相对应的视频资源后向终端返回包含该视频资源 的视频响应。 该视频请求基于 HTTP传输的视频分发协议, 可以请求整个 视频, 同样也可以根据时间偏移或字节偏移的范围请求部分视频。
构造部分视频的视频请求的方法:
首先判断使用哪种范围请求的方法, 如果初始视频请求中, 存在 Range头域, 则在新视频请求中, 使用 Range字节范围; 如果初始视频请 求中, 不存在 Range 头域, 但在初始视频请求的响应中, 存在 Accept-Range响应头域, 则在新视频请求中, 也使用 Range字节范围; 当 上述两种情况都不成立时, 则在新视频请求中, 使用时间偏移范围。 确 定具体范围的方法, 字节偏移的结果记录到 mngeByteVar, 时间偏移的结 果记录到 mngeTimeVar中: 如果 VOG给用户的视频响应就是用户请求的 原始视频, 即视频内容与服务器的一致: 如果新视频请求使用 Range字节 范围, 则以 TCP 已经确认的接收字节及视频总大小作为请求的 Range头 域, mngeByteVar= ( TCP已经确认的接收字节) - (视频总大小) ; 如 果新视频请求使用时间偏移范围, 其时间偏移值的计算方法为: (TCP已 经确认的接收字节) I (视频总大小) *视频总时长; 如果 VOG给用户的 视频响应不是用户请求的原始视频, 即经过了转码: 首先将 TCP 已经确 认的接收字节转换为视频已播放时间, 即视频已播放时间 = ( TCP已经确 认的接收字节) I (转码后视频总大小) *视频总时长; 如果新视频请求使 用 Range字节范围, 则 mngeByteVar= (视频已播放时间) I (视频总时长) * (原始视频总大小) - (原始视频总大小) ; 如果新视频请求使用时间偏 移范围, 则采用视频已播放时间作为时间偏移范围, 即 31^61 11½¥ ^视 频已播放时间。
确定了新视频请求具体使用是字节还是时间偏移的访问请求, 以及具 体的范围大小之后;如果选择的是字节偏移,则在新视频请求中添加 mnge 头域, 头域的值采用已计算的 rangeByteVar; 如果选择的是时间偏移, 则 时间偏移字段的名称需要根据不同的视频 SP 做配置, 如 youtube 使用 " begin " , 土豆使用 " tflvbegin " , 还有的视频 sp使用 " start " 。 最后在 新视频请求的 URL中, 添加时间偏移字段, g卩 " begin=rangeTimeVar" , 或者 " start=rangeTimeVar,, 。
进一歩地, 所述源 V0G通过所述源基站和所述目标基站向目标 VOG 发送所述切换响应之后, 还包括:
所述源 VOG停止向所述终端发送所述视频资源的视频数据, 删除所 述第一连接和所述第二连接。
具体来说, 在源 VOG接收到源基站的切换通知返回视频切换响应消 息后停止向终端下发播放视频数据, 并删除之前与终端和与视频资源服 务器建立 TCP连接所对应的 TCP连接信息。
本实施例, 通过源 VOG在终端向视频资源服务器发送 TCP建立连接 请求和视频请求时获取所述 TCP建立连接请求中包含的 TCP连接信息和 视频请求中包含的视频信息, 从而在终端从源基站向目标基站发生切换 时, 向源基站返回切换响应消息中包含有所述源 VOG本地的 TCP连接信 息以及所述视频信息, 以使目标 VOG在切换基站后根据所述 TCP连接信 息和视频信息与所述终端进行视频传输。 解决了终端在基站切换过程 中, 终端所访问的视频被中止, 需要重新发送视频请求的问题。 使用户 在观看视频的过程中对于基站的切换无察觉。
图 2为本发明视频切换处理方法实施例二的流程图, 如图 2所示, 本 实施例的方法可以包括:
歩骤 201、 源基站在终端从所述源基站切换到目标基站时向源视频优 化网关 VOG发送切换指示;
歩骤 202、 所述源基站接收所述源 VOG发送的切换响应消息, 所述 切换响应包括第一连接的控制传输信息、第二连接的控制传输信息和视频 断点的信息, 所述第一连接为所述源 VOG采用视频资源服务器的网络地 址与所述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的 网络地址与所述视频资源服务器建立的连接;
歩骤 203、 所述源基站通过所述目标基站向目标 VOG发送所述切换 响应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传 输信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传输 控制上下文, 所述视频断点的信息用于指示所述目标 VOG从所述视频断 点向所述终端继续传输视频资源。 具体来说, 源基站在终端移动过程当中, 发生基站切换时向其所部 属的源 VOG发送切换指示, 指示所述源 VOG进行切换。 源 VOG接收该 切换指示后, 向源基站返回切换响应消息, 该切换响应消息中包含有源 VOG本地的 TCP连接信息以及视频请求中所包含的视频信息, 以使目标 基站将所述 TCP连接信息和视频信息发送给目标 VOG, 进而使所述目标 VOG根据所述 TCP连接信息和视频信息与所述终端进行视频传输。 需要 说明的是, 本实施例中的基站也可以为基站控制器 R N C。
本实施例, 源基站在终端从源基站向目标基站切换时, 接收源 VOG 的切换响应消息, 并向目标基站发送切换通知, 以使目标基站将所述切 换通知发送至目标 VOG, 其中, 切换通知包含切换响应消息中的源 VOG 本地的 TCP连接信息和视频信息, 从而使目标 VOG根据所述 TCP连接信 息以及视频信息与所述终端进行视频传输。 实现了终端在基站切换过程 中, 观看的视频不会中断, 不需要终端再次发送视频请求。
图 3为本发明视频切换处理方法实施例三的流程图, 如图 3所示, 本 实施例的方法可以包括:
歩骤 301、 目标基站接收源基站在终端从所述源基站切换到所述目标 基站时发送的切换响应, 所述切换响应包括第一连接的控制传输信息、 第 二连接的控制传输信息和视频断点的信息, 所述第一连接为所述源 VOG 采用视频资源服务器的网络地址与所述终端建立的连接, 所述第二连接为 所述源 VOG 采用所述终端的网络地址与所述视频资源服务器建立的连 接;
歩骤 302、 所述目标基站向目标 VOG发送所述切换响应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输信息分别用于 在所述目标 VOG上建立所述第一连接和第二连接的传输控制上下文, 所 述视频断点的信息用于指示所述目标 VOG从所述视频断点向所述终端继 续传输视频资源。
具体来说, 目标基站接收源基站发送的切换通知, 并将所述切换通 知发送至目标 VOG, 该切换通知中包含源 VOG的本地 TCP连接信息以 及视频请求中包含的视频信息, 从而使目标 VOG根据所述 TCP连接信息 与终端进行视频传输。 需要说明的是, 被实施例中的基站也可以为基站 控制器 RNC。
本实施例, 目标基站接收源基站发送的切换通知, 并发送至目标 VOG, 使得目标 VOG可以根据该切换通知包含的 TCP连接信息以及视频 信息与终端进行视频传输。 实现了终端在基站切换过程中观看视频, 不 需要向再次发送视频请求。
图 4为本发明视频切换处理方法实施例四的流程图, 如图 4所示, 本 实施例的方法可以包括:
歩骤 401、 目标 VOG接收目标基站发送的切换响应, 所述切换响应 包括第一连接的控制传输信息、 第二连接的控制传输信息和视频断点的 信息, 所述第一连接为所述源 VOG采用视频资源服务器的网络地址与所 述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地 址与所述视频资源服务器建立的连接;
歩骤 402、 所述目标 VOG根据所述第一连接的传输控制信息和所述 第二连接的传输控制信息建立所述第一连接和第二连接的传输控制上下 文, 根据所述视频断点的信息向所述终端继续传输视频资源。
具体来说, 目标 VOG接收目标基站的切换通知, 该切换通知中包含 有源 VOG本地的 TCP连接信息以及视频请求中的视频信息, 采用视频资 源服务器网络地址建立与终端和视频资源服务器的 TCP 连接, 检査本地 缓存是否存有所述视频信息, 根据检査的结果向终端返回视频响应。 需 要说明的是, 本实施例中的基站也可以为基站控制器 RNC。
进一歩地, 所述视频断点的信息, 包括:
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容时间范围。
进一歩地, 所述目标 VOG根据所述视频断点的信息向所述终端继续 传输视频资源, 包括:
所述目标 VOG检査本地缓存是否存有所述视频断点的信息对应的视 频信息; 若检査结果为未存有所述视频信息, 则所述目标 VOG根据所述视频 断点的信息向视频资源服务器发送视频请求, 获取与所述视频断点的信 息所对应的视频资源, 并向终端返回视频响应, 所述视频响应包含所述 视频资源;
或者,
若检査结果为存有所述视频信息, 则所述目标 VOG向终端返回视频 响应, 所述视频响应包含从本地缓存获取的与所述视频断点的信息所对 应的视频资源。
具体来说, 目标 VOG根据目标基站发送的切换通知中包含的视频信 息检査本地缓有两种结果: 若检査结果为存有该视频信息, 目标 VOG则 直接向终端返回视频响应, 该视频响应包含所述视频信息对应的视频资 源; 若检査未存有所述视频信息, 目标 VOG则根据所述视频信息向视频 资源服务器发送视频请求, 获取视频资源后, 向终端返回视频响应。
目标 VOG构造新的视频请求传递给资源服务器, 新视频请求将请求 切换前未观看的剩余部分的视频内容。 而请求剩余部分的视频内容, 可以 基于字节范围请求和基于时间偏移的范围请求。
进一歩地, 在所述目标 VOG根据所述视频断点的信息向所述终端继 续传输视频资源之后, 还包括:
所述目标 VOG在视频播放结束之后, 拆除根据所述切换响应中所包 含的第一连接传输控制信息、第二连接传输控制信息与视频资源服务器和 终端建立的连接。
本实施例, 目标 VOG通过接收目标基站的切换通知, 并根据该切换 通知中包含的 TCP 连接信息和视频信息向终端进行视频传输。 实现了不 需要终端再次发送请求以获取视频。
图 5为本发明源视频优化网关实施例一的结构示意图, 如图 5所示, 本实施例的视频优化网关可以包括:
拦截模块 101, 用于拦截终端向视频资源服务器发送的建立连接请 求, 所述建立连接请求包含所述视频资源服务器的网络地址和所述终端 的网络地址;
建立连接模块 102, 用于采用所述视频资源服务器的网络地址与所述 终端建立第一连接, 采用所述终端的网络地址与所述视频资源服务器建 立第二连接;
获取模块 103, 用于通过所述第一连接接收所述终端发送的视频请 求, 根据所述视频请求中包含的视频信息, 获取与所述视频信息对应的 视频资源, 向所述终端返回包含所述视频资源的视频响应;
接收模块 104, 用于接收源基站在所述终端从所述源基站切换到目标 基站时发送的切换指示;
构造模块 105, 用于构造切换响应, 所述切换响应包括所述第一连接 的控制传输信息、 所述第二连接的控制传输信息和视频断点的信息; 发送模块 106, 用于通过所述源基站和所述目标基站向目标 VOG发 送所述切换响应, 其中, 所述第一连接的控制传输信息和所述第二连接的 控制传输信息分别用于在所述目标 VOG上建立所述第一连接和第二连接 的传输控制上下文, 所述视频断点的信息指示所述目标 VOG从所述视频 断点向所述终端继续传输所述视频资源。
进一歩地, 所述视频断点的信息, 包括:
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容时间范围。
进一歩地, 所述获取模块 103, 具体用于:
检査本地缓存是否存有视频请求中包含的视频信息;
若检査结果为未存有所述视频请求中包含的视频信息, 则根据视频 请求中包含的视频信息向视频资源服务器发送视频请求, 获取与所述视 频信息所对应的视频资源, 并向所述终端返回视频响应, 所述视频响应 包含所述视频资源;
或者,
若检査结果为存有所述视频请求中包含的视频信息, 则向所述终端 返回视频响应, 所述视频响应包含从本地缓存获取的与所述视频信息所 对应的视频资源。 本实施例的视频优化网关, 可以用于执行图 1所示方法实施例的技术 方案, 其实现原理和技术效果类似, 此处不再赘述。
图 6为本发明源视频优化网关实施例二的结构示意图, 如图 6所示, 本实施例的视频优化网关在图 5的视频优化网关的基础上, 还可以包括: 删除模块 107, 用于所述发送模块通过所述源基站和所述目标基站向 目标 VOG发送所述切换响应之后, 停止向终端下发播放视频数据, 删除 与所述终端和所述视频资源服务器建立的连接信息。
本实施例的视频优化网关, 可以用于执行图 1所示方法实施例的技术 方案, 其实现原理和技术效果类似, 此处不再赘述。
图 7为本发明源基站实施例一的结构示意图, 如图 7所示, 本实施例 的源基站可以包括:
第一发送模块 201, 用于在终端从所述源基站切换到目标基站时向源 视频优化网关 VOG发送切换指示;
接收模块 202, 用于接收所述源 VOG发送的切换响应消息, 所述切 换响应包括第一连接的控制传输信息、 第二连接的控制传输信息和视频断 点的信息, 所述第一连接为所述源 VOG采用视频资源服务器的网络地址 与所述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网 络地址与所述视频资源服务器建立的连接;
第二发送模块 203, 用于通过所述目标基站向目标 VOG发送所述切 换响应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制 传输信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传 输控制上下文, 所述视频断点的信息用于指示所述目标 VOG从所述视频 断点向所述终端继续传输视频资源。
本实施例的源基站, 可以用于执行图 2所示方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 8为本发明目标基站实施例一的结构示意图, 如图 8所示, 本实施 例的目标基站可以包括:
接收模块 301, 用于接收源基站在终端从所述源基站切换到所述目标 基站时发送的切换响应, 所述切换响应包括所述第一连接的控制传输信 息、 所述第二连接的控制传输信息和视频断点的信息, 所述第一连接为所 述源 VOG采用视频资源服务器的网络地址与所述终端建立的连接, 所述 第二连接为所述源 VOG采用所述终端的网络地址与所述视频资源服务器 建立的连接;
发送模块 302, 用于向目标 VOG发送所述切换响应消息, 其中, 所 述第一连接的控制传输信息和所述第二连接的控制传输信息分别用于在 所述目标 VOG上建立所述第一连接和第二连接的传输控制上下文, 所述 视频断点的信息用于指示所述目标 VOG从所述视频断点向所述终端继续 传输视频资源。
本实施例的目标基站, 可以用于执行图 3 所示方法实施例的技术方 案, 其实现原理和技术效果类似, 此处不再赘述。
图 9 为本发明目标视频优化网关实施例一的结构示意图, 如图 9所 示, 本实施例的目标视频优化网关可以包括:
接收模块 401, 用于接收目标基站发送的切换通知接收目标基站发送 的切换响应, 所述切换响应包括所述第一连接的控制传输信息、 所述第二 连接的控制传输信息和视频断点的信息, 所述第一连接为所述源 VOG采 用视频资源服务器的网络地址与所述终端建立的连接, 所述第二连接为所 述源 VOG采用所述终端的网络地址与所述视频资源服务器建立的连接; 继续传输模块 402, 用于根据所述第一连接的传输控制信息和所述第 二连接的传输控制信息建立所述第一连接和第二连接的传输控制上下文, 根据所述视频断点的信息向所述终端继续传输视频资源。
进一歩地, 所述视频断点的信息, 包括:
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容时间范围。
进一歩地, 所述继续传输模块 402, 具体用于:
检査本地缓存是否存有所述视频断点的信息对应的视频信息; 若检査结果为未存有所述视频信息, 则根据所述视频断点的信息向 视频资源服务器发送视频请求, 获取与所述视频断点的信息所对应的视 频资源, 并向终端返回视频响应, 所述视频响应包含所述视频资源; 或者,
若检査结果为存有所述视频信息, 则向所述终端返回视频响应, 所 述视频响应包含从本地缓存获取的与所述视频断点的信息所对应的视频 资源。
本实施例的视频优化网关, 可以用于执行图 4所示方法实施例的技术 方案, 其实现原理和技术效果类似, 此处不再赘述。
图 10为本发明目标视频优化网关实施例二的结构示意图, 如图 10所 示, 本实施例的目标视频优化网关在图 9所示的视频优化网关的基础上, 还可以包括:
拆除模块 403, 用于在视频播放结束之后, 拆除根据所述切换响应中 所包含的第一连接传输控制信息、第二连接传输控制信息与视频资源服务 器和终端建立的连接。
本实施例的视频优化网关, 可以用于执行图 4所示方法实施例的技术 方案, 其实现原理和技术效果类似, 此处不再赘述。
图 11为本发明视频缓存切换处理系统实施例的结构示意图, 如图 11 所示, 本实施例的视频缓存切换处理系统包括: 源视频优化网关 501、 源 基站 502、 目标基站 503、 目标视频优化网关 504、 终端 505、 视频资源服 务器 506。
本实施例的源视频优化网关与图 1所示的本发明视频缓存切换处理方 法实施例的原理相同, 不再赘述; 本实施例的源基站与图 2所示的本发明 视频缓存切换处理方法实施例的原理相同, 不再赘述; 本实施例的目标基 站与图 3所示的本发明视频缓存切换处理方法实施例的原理相同, 不再赘 述; 本实施例的目标视频优化网关与图 4所示的本发明视频缓存切换处理 方法实施例的原理相同, 不再赘述。
本发明实施例的技术方案, 不同于现有技术之处在于在终端从源基 站向目标基站发生切换时, 源 VOG向源基站返回的切换响应消息中包含 源 VOG 本地的 TCP连接信息以及视频断点信息, 用于目标 VOG 与终 端、 与视频资源服务器建立 TCP 连接以及在未存有视频资源时, 向视频 资源服务器获取所述视频资源。 下面采用几个具体的实施例, 对图 1所示方法实施例的技术方案进行 详细说明。 需要说明的是, 下面的实施例中的基站也可以为基站控制器
RNC。
图 12为本发明视频切换处理方法实施例五的流程图, 如图 12所示, 本实施例的视频切换处理方法使用场景为源 VOG存有终端视频请求中的 视频资源, 目标 VOG存有切换响应中视频断点的信息所对应的视频资 源。 具体包括:
歩骤 501、 终端向视频资源服务器发送建立连接请求;
具体来说, 终端在想观看视频时, 向视频资源服务器发送建立 TCP 连接请求, 该连接请求中包含视频资源服务器的网络地址、 终端的网络地 址。
歩骤 502、 源视频优化网关 VOG拦截建立连接请求, 建立第一和第 二连接;
具体来说, 源 VOG采用该 TCP建立连接请求中所包含的视频资源服 务器的网络地址与终端建立 TCP 连接, 把该连接作为第一连接; 采用该 TCP 建立连接请求中所包含的终端的网络地址与视频资源服务器建立 TCP连接, 吧该连接作为第二连接。
歩骤 503、 终端向视频资源服务器发送视频请求;
歩骤 504、 源 VOG检査本地缓存为存有视频资源;
具体来说, 源 VOG根据该视频请求中所包含的视频信息, 检査本地 缓存是否存在该视频信息对应的视频资源, 本实施例中检査的结果为未 存有该视频资源。
歩骤 505、 源 VOG向所述终端返回视频响应;
具体来说, 所述视频响应包含从本地缓存获取的与所述视频请求所对 应的视频资源。
歩骤 506、 源基站在终端从所述源基站切换到目标基站时向源 VOG 发送切换指示;
具体来说, 在终端从源基站切换到目标基站时, 源基站向源 VOG发 送切换指示, 指示源 VOG发生切换。
歩骤 507、 源 VOG构造切换响应消息, 并向源基站返回切换响应消 歩骤 508、 源 VOG停止向终端下发视频资源, 删除本地连接信息; 歩骤 509、 源基站向目标基站发送切换响应消息;
具体来说, 源基站接收源 VOG发送的切换响应消息, 并将该切换响 应消息向目标基站发送。
歩骤 510、 目标基站向目标 VOG发送切换响应消息;
具体来说, 目标基站接收源基站发送的却换响应消息, 并将该切换响 应消息向目标 VOG发送。
歩骤 511、 目标 VOG根据所述切换响应消息建立连接 ·'
具体来说, 目标 VOG接收目标基站发送的切换响应消息, 所述切换 响应消息包括所述第一连接的控制传输信息、所述第二连接的控制传输信 息和视频断点的信息, 所述第一连接为所述源 VOG采用视频资源服务器 的网络地址与所述终端建立的连接, 所述第二连接为所述源 VOG采用所 述终端的网络地址与所述视频资源服务器建立的连接, 并根据第一和第二 连接建立所述第一连接和第二连接的传输控制上下文。
歩骤 512、 所述目标 VOG检査本地缓存存有视频资源;
具体来说, 目标 VOG根据所述切换响应中包括的视频断点信息检査 本地缓存是否有对应的视频资源, 本实施例中, 检査结果为存有该视频资 源。
歩骤 513、 所述目标 VOG向终端返回视频响应;
歩骤 514、 所述目标 VOG在视频播放结束之后, 拆除根据所述 TCP 连接信息建立 TCP连接。
本实施例, 在基站切换前后检査本地缓存是否存有终端视频请求中 所包含的视频信息时, 源 VOG为存有视频信息, 目标 VOG根据切换响应 消息中包括的视频断点的信息检査本地缓存也存有该视频资源, 可以直 接向终端返回视频响应。
图 13为本发明视频切换处理方法实施例六的流程图, 如图 13所示, 本实施例的视频切换处理方法使用场景为源 VOG存有视频请求中包含的 视频信息、 目标视频优化网关未存有切换响应消息中包括的视频断点的 信息对应的视频信息。 具体包括: 歩骤 601-611与歩骤 501-511相同, 此处不再赘述。
歩骤 612、 目标 VOG根据所述切换响应消息所包括的视频断点的信 息检査本地缓存结果未存有该视频资源, 构造新视频请求;
歩骤 613、 目标 VOG向视频资源服务器发送新视频请求;
歩骤 614、 视频资源服务器向所述目标 VOG返回视频资源; 歩骤 615、 目标 VOG向终端返回视频响应;
歩骤 616、 视频播放结束后, 目标 VOG拆除连接。
本实施例, 在检査本地缓存是否存有终端视频请求中所包含的视频 信息时, 源 VOG为存有该视频资源, 目标 VOG未存有该视频资源, 则目 标 VOG根据切换通知中包含的视频断点的信息构造新视频请求, 并向视 频资源服务器发送以获取视频资源, 向终端返回视频响应。
图 14为本发明视频切换处理方法实施例七的流程图, 如图 14所示, 本实施例的视频切换处理方法使用场景为源视频优化网关未存有视频请 求中包含的视频信息、 目标视频优化网关存有切换响应消息中包含的视 频断点的信息。 具体包括:
歩骤 701、 终端向视频资源服务器发送建立连接请求;
歩骤 702、 源 VOG建立连接请求, 建立第一和第二连接;
歩骤 703、 终端向视频资源服务器发送视频请求;
歩骤 704、 源 VOG 检査本地缓存未存有视频请求中包含的视频资 源;
歩骤 705、 源 VOG向视频资源服务器发送视频请求;
具体来说, 源 VOG根据视频请求中包含的视频信息向视频资源服务 器发送视频请求, 获取与所述视频信息所对应的视频资源。
歩骤 706、 视频资源服务器向源 VOG返回视频资源;
歩骤 707、 源 VOG向终端返回视频响应;
歩骤 708-716与歩骤 506-514相同, 此处不在赘述。
本实施例, 源 VOG 未存有终端视频请求中对应的视频资源, 目标
VOG存有切换响应消息中视频断点的信息对应的视频资源, 则目标 VOG 直接向终端返回视频响应。
图 15为本发明视频切换处理方法实施例八的流程图, 如图 15所示, 本实施例的视频切换处理方法使用场景为源视频优化网关和目标视频优 化网关都未存有视频请求中包含的视频信息。 具体包括:
歩骤 801-813与歩骤 701-713相同, 此处不再赘述。
歩骤 814-818与歩骤 612-616相同, 此处不再赘述。
图 16为本发明视频切换处理方法实施例九的流程图, 如图 16所示, 本实施例的视频切换处理方法使用场景为源视频优化网关存有视频清秀 中包含的视频信息, 目标基站未部署目标视频优化网关。 具体包括:
歩骤 901-905与 501-505相同, 此处不再赘述。
歩骤 906、 源基站在终端从所述源基站切换到目标基站时向源 VOG 发送切换指示, 所述切换指示包含目标基站未部署 VOG的通知;
歩骤 907、 源 VOG接收源基站发送的所述切换指示, 并向源基站发 送切换响应消息, 所述切换响应消息中不包括所述第一连接的控制传输 信息、 所述第二连接的控制传输信息和视频断点的信息;
歩骤 908、 源 VOG拆除第一连接和第二连接;
歩骤 909、 终端重新向资源服务器发送建立连接请求、 视频请求; 歩骤 910、 视频资源服务器向终端返回视频响应, 所述视频响应包含 所述视频资源。
本实施例为切换时的特殊情况, 即目标基站未部署 VOG, 此种情况 则需要终端在切换到目标基站后重新向资源服务器发送 TCP 建立连接请 求和视频请求。
图 17为本发明视频切换处理方法实施例十的流程图, 如图 17所示, 本实施例的视频切换处理方法使用场景为源 VOG未存有视频请求中包含 的视频信息只转发。 具体包括:
歩骤 1001、 终端向视频资源服务器发送建立连接请求;
歩骤 1002、 源 VOG转发所述建立连接请求;
歩骤 1003、 终端向视频资源服务器发送视频请求;
歩骤 1004、 源 VOG检査本地缓存, 未存有视频请求中的视频信息; 歩骤 1005、 源 VOG向视频资源服务器发送视频请求;
歩骤 1006、 视频资源服务器返回视频资源;
歩骤 1007、 源 VOG向终端返回视频响应; 歩骤 1008、 源 VOG视频注入本地缓存;
歩骤 1009、 终端向视频资源服务器发送传输信息确认;
歩骤 1010、 源 VOG向视频资源服务器转发传输信息确认;
歩骤 1011、 源基站向源 VOG发送切换指示;
歩骤 1012、 构造切换响应消息, 并向源基站返回切换响应消息; 具体来说, 本实施例中的应用场景下, 源基站返回切换响应消息中不 包括连接传输控制信息和视频断点的信息。
歩骤 1013、 源 VOG删除本地连接信息;
歩骤 1014、 源基站向目标基站发送切换激活指示;
歩骤 1015、 视频资源服务器返回视频响应;
歩骤 1016、 目标 VOG向终端转发返回视频响应;
歩骤 1017、 终端向视频资源服务器发送传输信息确认;
歩骤 1018、 目标 VOG转发所述传输信息确认;
歩骤 1019、 视频播放结束, 拆除连接。
本实施例为切换时的特殊情况, 即源 VOG未存有终端的视频请求中 的视频资源, 源 VOG在终端向目标基站切换时所构造的切换响应消息中 不包括连接传输控制信息和视频断点的信息, 源 VOG和目标 VOG只转 发。
图 18 为本发明源视频优化网关实施例三的结构示意图, 如图 18 所 示, 本实施例的网络设备, 包括: 处理器 101和接口电路 102, 图中还示 出了存储器 103和总线 104, 该处理器 101、 接口电路 102和存储器 103 通过总线 104连接并完成相互间的通信。
该总线 104 可以是工业标准架构 (英文: Industry Standard Architecture, 简称: ISA ) 总线、 外部设备互连 (英文: Peripheral Component Interconnect , 简称: PCI ) 总线或内部整合电路 (英文: Inter-Integrated Circuit, 简称: I2C ) 总线等。 该总线 104可以分为地址总 线、 数据总线、 控制总线等。 为便于表示, 图 18 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。
存储器 103用于存储可执行程序代码, 该程序代码包括计算机操作指 令。 存储器 103可以是易失性存储器 (英文: volatile memory ) , 例如随 机存储器 (英文: random-access memory, 简称: RAM) , 也可以是非易失性 存储器(英文: non- volatile memory, 简称: NVM ), 例如只读存储器(英 文: read-only memory, 简称 ROM ) , 快闪存储器(英文: flash memory) , 硬盘 (英文: hard disk drive, 简称 HDD ) 或固态硬盘 (英文: solid-state drive, 简称 SSD ) 。
处理器 101可以是中央处理器(英文: central processing unit, 简称: CPU) 。
其中, 处理器 101可以调用存储器 103中存储的操作指令或者程序代 码, 来执行本发明实施例提供的视频缓存切换的处理方法, 所述方法包 括:
处理器 101拦截终端向视频资源服务器发送的 TCP建立连接请求, 根 据所述 TCP建立连接请求中包含的 TCP连接信息与所述终端和所述视频 资源服务器建立 TCP连接;
处理器 101拦截所述终端向视频资源服务器发送的视频请求, 根据所 述视频请求中包含的视频信息, 检査本地缓存是否存有所述视频信息, 并根据检査结果向所述终端返回视频响应;
处理器 101通过接口电路 102接收源基站在所述终端从所述源基站切 换到目标基站时发送的切换指示;
处理器 101通过接口电路 102源基站发送切换响应消息, 所述切换响 应消息中包含所述源 VOG本地的 TCP连接信息以及所述视频信息, 以使 所述源基站将所述 TCP 连接信息和视频信息发送给所述目标基站, 进而 使所述目标基站将所述 TCP连接信息和视频信息发送给目标 VOG, 从而 使所述目标 VOG根据所述 TCP连接信息和视频信息与所述终端进行视频 传输。
图 19为本发明源基站实施例二的结构示意图, 如图 19所示, 本实施 例的网络设备, 包括: 处理器 201和接口电路 202, 图中还示出了存储器 203和总线 204, 该处理器 201、 接口电路 202和存储器 203通过总线 204 连接并完成相互间的通信。
该总线 204 可以是工业标准架构 (英文: Industry Standard Architecture, 简称: ISA ) 总线、 外部设备互连 (英文: Peripheral Component Interconnect , 简称: PCI ) 总线或内部整合电路 (英文: Inter-Integrated Circuit, 简称: I2C ) 总线等。 该总线 204可以分为地址总 线、 数据总线、 控制总线等。 为便于表示, 图 19 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。
存储器 203用于存储可执行程序代码, 该程序代码包括计算机操作指 令。 存储器 203可以是易失性存储器 (英文: volatile memory ) , 例如随 机存储器 (英文: random-access memory, 简称: RAM) , 也可以是非易失性 存储器(英文: non- volatile memory, 简称: NVM ), 例如只读存储器(英 文: read-only memory, 简称 ROM ) , 快闪存储器(英文: flash memory) , 硬盘 (英文: hard disk drive, 简称 HDD ) 或固态硬盘 (英文: solid-state drive, 简称 SSD ) 。
处理器 201可以是中央处理器(英文: central processing unit, 简称: CPU) 。
其中, 处理器 201可以调用存储器 203中存储的操作指令或者程序代 码, 来执行本发明实施例提供的视频缓存切换的处理方法, 所述方法包 括:
处理器 201在终端从所述源基站切换到目标基站时向源 VOG发送切 换指示;
处理器 201 通过接口电路 202接收所述源 VOG发送的切换响应消 息;
处理器 201通过接口电路 202向所述目标基站发送切换通知, 所述切 换通知中包含所述源 VOG本地的 TCP连接信息以及所述视频信息, 以使 所述目标基站将所述 TCP连接信息和视频信息发送给目标 VOG, 进而使 所述目标 VOG根据所述 TCP连接信息和视频信息与所述终端进行视频传 输。
图 20为本发明目标基站实施例二的结构示意图, 如图 20所示, 本实 施例的网络设备, 包括: 处理器 301和接口电路 302, 图中还示出了存储 器 303和总线 304, 该处理器 301、 接口电路 302和存储器 303通过总线 304连接并完成相互间的通信。
该总线 304 可以是工业标准架构 (英文: Industry Standard Architecture, 简称: ISA ) 总线、 外部设备互连 (英文: Peripheral Component Interconnect , 简称: PCI ) 总线或内部整合电路 (英文: Inter-Integrated Circuit, 简称: I2C ) 总线等。 该总线 304可以分为地址总 线、 数据总线、 控制总线等。 为便于表示, 图 20 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。
存储器 303用于存储可执行程序代码, 该程序代码包括计算机操作指 令。 存储器 303可以是易失性存储器 (英文: volatile memory ) , 例如随 机存储器 (英文: random-access memory, 简称: RAM) , 也可以是非易失性 存储器(英文: non- volatile memory, 简称: NVM ), 例如只读存储器(英 文: read-only memory, 简称 ROM ) , 快闪存储器(英文: flash memory) , 硬盘 (英文: hard disk drive, 简称 HDD ) 或固态硬盘 (英文: solid-state drive, 简称 SSD ) 。
处理器 301可以是中央处理器(英文: central processing unit, 简称: CPU) 。
其中, 处理器 301可以调用存储器 303中存储的操作指令或者程序代 码, 来执行本发明实施例提供的视频缓存切换的处理方法, 所述方法包 括:
处理器 301通过接口电路 302接收源基站在终端从所述源基站切换到 所述目标基站时发送的切换通知, 所述切换通知中包含所述终端在源 VOG中的 TCP连接信息以及视频信息;
处理器 301通过接口电路 302向目标 VOG发送所述切换通知, 以使 所述目标 VOG根据所述 TCP连接信息和视频信息与所述终端进行视频传 输。
图 21为本发明目标视频优化网关实施例三的结构示意图, 如图 21所 示, 本实施例的网络设备, 包括: 处理器 401和接口电路 402, 图中还示 出了存储器 403和总线 404, 该处理器 401、 接口电路 402和存储器 403 通过总线 404连接并完成相互间的通信。
该总线 404 可以是工业标准架构 (英文: Industry Standard Architecture, 简称: ISA ) 总线、 外部设备互连 (英文: Peripheral Component Interconnect , 简称: PCI ) 总线或内部整合电路 (英文: Inter-Integrated Circuit, 简称: I2C ) 总线等。 该总线 404可以分为地址总 线、 数据总线、 控制总线等。 为便于表示, 图 21 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。
存储器 403用于存储可执行程序代码, 该程序代码包括计算机操作指 令。 存储器 403可以是易失性存储器 (英文: volatile memory ) , 例如随 机存储器 (英文: random-access memory, 简称: RAM) , 也可以是非易失性 存储器(英文: non- volatile memory, 简称: NVM ), 例如只读存储器(英 文: read-only memory, 简称 ROM ) , 快闪存储器(英文: flash memory) , 硬盘 (英文: hard disk drive, 简称 HDD ) 或固态硬盘 (英文: solid-state drive, 简称 SSD ) 。
处理器 401可以是中央处理器(英文: central processing unit, 简称: CPU) 。
其中, 处理器 401可以调用存储器 403中存储的操作指令或者程序代 码, 来执行本发明实施例提供的视频缓存切换的处理方法, 所述方法包 括:
处理器 401通过接口电路 402接收目标基站发送的切换通知, 所述切 换通知中包含终端在源 VOG中的 TCP连接信息以及视频信息;
处理器 401根据所述 TCP连接信息与终端和视频资源服务器建立 TCP 连接;
处理器 401根据切换通知中所包含的视频信息, 检査本地缓存是否存 有所述视频信息, 并根据检査结果向所述终端返回视频响应。
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之 间的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接 耦合或通信连接, 可以是电性, 机械或其它的形式。
所述该作为分离部件说明的单元可以是或者也可以不是物理上分开 的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一 个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其 中的部分或者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 —个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬 件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算 机可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若 干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络 设备等) 或处理器 (processor) 执行本发明各个实施例所述方法的部分歩 骤。 而前述的存储介质包括: U 盘、 移动硬盘、 只读存储器 (Read-Only Memory, ROM ) 、 随机存取存储器 (Random Access Memory, RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员可以清楚地了解到, 为描述的方便和简洁, 仅以上述 各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将装置的内部结构划分成不同的功能模 块, 以完成以上描述的全部或者部分功能。 上述描述的装置的具体工作过 程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非 对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范 围。

Claims

权 利 要 求 书
1、 一种视频缓存切换处理方法, 其特征在于, 包括:
源视频优化网关 VOG拦截终端向视频资源服务器发送的建立连接请 求, 所述建立连接请求包含所述视频资源服务器的网络地址和所述终端 的网络地址;
所述源 VOG采用所述视频资源服务器的网络地址与所述终端建立第 一连接, 采用所述终端的网络地址与所述视频资源服务器建立第二连 接;
所述源 VOG通过所述第一连接接收所述终端发送的视频请求, 根据 所述视频请求中包含的视频信息, 获取与所述视频信息对应的视频资 源, 向所述终端返回包含所述视频资源的视频响应;
所述源 VOG接收源基站在所述终端从所述源基站切换到目标基站时 发送的切换指示;
所述源 VOG构造切换响应, 所述切换响应包括所述第一连接的控制 传输信息、 所述第二连接的控制传输信息和视频断点的信息;
所述源 VOG通过所述源基站和所述目标基站向目标 VOG发送所述切 换响应, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输 信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传输控 制上下文, 所述视频断点的信息指示所述目标 VOG从所述视频断点向所 述终端继续传输所述视频资源。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述视频断点的信 息, 包括:
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容时间范围。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述获取与所述 视频信息对应的视频资源, 向所述终端返回包含所述视频资源的视频响 应, 包括: 所述源 VOG 检査本地缓存是否存有所述视频请求中包含的视频信 息;
若检査结果为未存有所述视频请求中包含的视频信息, 则所述源 VOG 根据所述视频请求中包含的视频信息向所述视频资源服务器发送所 述视频请求, 获取与所述视频信息所对应的视频资源, 并向所述终端返 回视频响应, 所述视频响应包含所述视频资源;
或者,
若检査结果为存有所述视频请求中包含的视频信息, 则所述源 VOG 向所述终端返回所述视频响应, 所述视频响应包含从本地缓存获取的与 所述视频信息所对应的视频资源。
4、 根据权利要求 1-3任一项所述的方法, 其特征在于, 所述源 VOG 通过所述源基站和所述目标基站向目标 VOG发送所述切换响应之后, 还 包括:
所述源 VOG停止向所述终端发送所述视频资源的视频数据, 删除所 述第一连接和所述第二连接。
5、 一种视频缓存切换处理方法, 其特征在于, 包括:
源基站在终端从所述源基站切换到目标基站时向源视频优化网关 VOG发送切换指示;
所述源基站接收所述源 VOG发送的切换响应消息, 所述切换响应包 括第一连接的控制传输信息、 第二连接的控制传输信息和视频断点的信 息, 所述第一连接为所述源 VOG采用视频资源服务器的网络地址与所述 终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地址 与所述视频资源服务器建立的连接;
所述源基站通过所述目标基站向目标 VOG发送所述切换响应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输信息分别 用于在所述目标 VOG 上建立所述第一连接和第二连接的传输控制上下 文, 所述视频断点的信息用于指示所述目标 VOG从所述视频断点向所述 终端继续传输视频资源。
6、 一种视频缓存切换处理方法, 其特征在于, 包括:
目标基站接收源基站在终端从所述源基站切换到所述目标基站时发 送的切换响应, 所述切换响应包括第一连接的控制传输信息、 第二连接的 控制传输信息和视频断点的信息, 所述第一连接为所述源 VOG采用视频 资源服务器的网络地址与所述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地址与所述视频资源服务器建立的连接;
所述目标基站向目标 VOG发送所述切换响应消息, 其中, 所述第一 连接的控制传输信息和所述第二连接的控制传输信息分别用于在所述目 标 VOG上建立所述第一连接和第二连接的传输控制上下文, 所述视频断 点的信息用于指示所述目标 VOG从所述视频断点向所述终端继续传输视 频资源。
7、 一种视频缓存切换处理方法, 其特征在于, 包括:
目标 VOG接收目标基站发送的切换响应, 所述切换响应包括第一连 接的控制传输信息、 第二连接的控制传输信息和视频断点的信息, 所述第 一连接为源 VOG采用视频资源服务器的网络地址与终端建立的连接, 所 述第二连接为所述源 VOG采用所述终端的网络地址与所述视频资源服务 器建立的连接;
所述目标 VOG根据所述第一连接的传输控制信息和所述第二连接的 传输控制信息建立所述第一连接和第二连接的传输控制上下文, 根据所述 视频断点的信息向所述终端继续传输视频资源。
8、 根据权利要求 7所述的方法, 其特征在于, 所述视频断点的信息, 包括:
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容时间范围。
9、 根据权利要求 7或 8所述的方法, 其特征在于, 所述目标 VOG根 据所述视频断点的信息向所述终端继续传输视频资源, 包括:
所述目标 VOG检査本地缓存是否存有所述视频断点的信息对应的视 频信息;
若检査结果为未存有所述视频信息, 则所述目标 VOG根据所述视频 断点的信息向视频资源服务器发送视频请求, 获取与所述视频断点的信 息所对应的视频资源, 并向终端返回视频响应, 所述视频响应包含所述 视频资源;
或者,
若检査结果为存有所述视频信息, 则所述目标 VOG向所述终端返回 视频响应, 所述视频响应包含从本地缓存获取的与所述视频断点的信息 所对应的视频资源。
10、 根据权利要求 7-9中任一项所述的方法, 其特征在于, 在所述目 标 VOG根据所述视频断点的信息向所述终端继续传输视频资源之后, 还 包括:
所述目标 VOG在视频播放结束之后, 拆除根据所述切换响应中所包 含的第一连接传输控制信息、第二连接传输控制信息与视频资源服务器和 终端建立的连接。
11、 一种视频优化网关, 其特征在于, 包括:
拦截模块, 用于拦截终端向视频资源服务器发送的建立连接请求, 所述建立连接请求包含所述视频资源服务器的网络地址和所述终端的网 络地址;
建立连接模块, 用于采用所述视频资源服务器的网络地址与所述终端 建立第一连接, 采用所述终端的网络地址与所述视频资源服务器建立第 二连接;
获取模块, 用于通过所述第一连接接收所述终端发送的视频请求, 根据所述视频请求中包含的视频信息, 获取与所述视频信息对应的视频 资源, 向所述终端返回包含所述视频资源的视频响应;
接收模块, 用于接收源基站在所述终端从所述源基站切换到目标基 站时发送的切换指示;
构造模块, 用于构造切换响应, 所述切换响应包括所述第一连接的控 制传输信息、 所述第二连接的控制传输信息和视频断点的信息;
发送模块, 用于通过所述源基站和所述目标基站向目标 VOG发送所 述切换响应, 其中, 所述第一连接的控制传输信息和所述第二连接的控制 传输信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传 输控制上下文, 所述视频断点的信息指示所述目标 VOG从所述视频断点 向所述终端继续传输所述视频资源。
12、 根据权利要求 11 所述的视频优化网关, 其特征在于, 所述视频 断点的信息, 包括:
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL、已向所述终端传输的 内容时间范围。
13、 根据权利要求 11或 12所述的视频优化网关, 其特征在于, 所述 获取模块, 具体用于:
检査本地缓存是否存有视频请求中包含的视频信息;
若检査结果为未存有所述视频请求中包含的视频信息, 则根据视频 请求中包含的视频信息向视频资源服务器发送视频请求, 获取与所述视 频信息所对应的视频资源, 并向所述终端返回视频响应, 所述视频响应 包含所述视频资源;
或者,
若检査结果为存有所述视频请求中包含的视频信息, 则向所述终端 返回视频响应, 所述视频响应包含从本地缓存获取的与所述视频信息所 对应的视频资源。
14、 根据权利要求 11-13任一项所述的视频优化网关, 其特征在于, 还包括:
删除模块, 用于所述发送模块通过所述源基站和所述目标基站向目 标 VOG发送所述切换响应之后, 停止向所述终端发送所述视频资源的视 频数据, 删除所述第一连接和所述第二连接。
15、 一种基站, 其特征在于, 包括:
第一发送模块, 用于在终端从源基站切换到目标基站时向源视频优 化网关 VOG发送切换指示;
接收模块, 用于接收所述源 VOG发送的切换响应消息, 所述切换响 应包括第一连接的控制传输信息、第二连接的控制传输信息和视频断点的 信息, 所述第一连接为所述源 V0G采用视频资源服务器的网络地址与所 述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地 址与所述视频资源服务器建立的连接;
第二发送模块, 用于通过所述目标基站向目标 VOG发送所述切换响 应消息, 其中, 所述第一连接的控制传输信息和所述第二连接的控制传输 信息分别用于在所述目标 VOG上建立所述第一连接和第二连接的传输控 制上下文, 所述视频断点的信息用于指示所述目标 VOG从所述视频断点 向所述终端继续传输视频资源。
16、 一种基站, 其特征在于, 包括:
接收模块, 用于接收源基站在终端从所述源基站切换到目标基站时 发送的切换响应, 所述切换响应包括第一连接的控制传输信息、 第二连接 的控制传输信息和视频断点的信息, 所述第一连接为所述源 VOG采用视 频资源服务器的网络地址与所述终端建立的连接, 所述第二连接为所述源 VOG采用所述终端的网络地址与所述视频资源服务器建立的连接;
发送模块, 用于向目标 VOG发送所述切换响应消息, 其中, 所述第 一连接的控制传输信息和所述第二连接的控制传输信息分别用于在所述 目标 VOG上建立所述第一连接和第二连接的传输控制上下文, 所述视频 断点的信息用于指示所述目标 VOG从所述视频断点向所述终端继续传输 视频资源。
17、 一种视频优化网关, 其特征在于, 包括:
接收模块, 用于接收目标基站发送的切换通知接收目标基站发送的 切换响应, 所述切换响应包括第一连接的控制传输信息、第二连接的控制 传输信息和视频断点的信息, 所述第一连接为源 VOG采用视频资源服务 器的网络地址与终端建立的连接, 所述第二连接为所述源 VOG采用所述 终端的网络地址与所述视频资源服务器建立的连接;
继续传输模块, 用于根据所述第一连接的传输控制信息和所述第二连 接的传输控制信息建立所述第一连接和第二连接的传输控制上下文, 根据 所述视频断点的信息向所述终端继续传输视频资源。
18、 根据权利要求 17所述的视频优化网关, 其特征在于, 所述视频 断点的信息, 包括: 所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容的字节范围;
或者,
所述视频资源在所述视频资源服务器上的 URL,已向所述终端传输的 内容时间范围。
19、 根据权利要求 17或 18所述的视频优化网关, 其特征在于, 所述 继续传输模块, 具体用于:
检査本地缓存是否存有所述视频断点的信息对应的视频信息; 若检査结果为未存有所述视频信息, 则根据所述视频断点的信息向 视频资源服务器发送视频请求, 获取与所述视频断点的信息所对应的视 频资源, 并向终端返回视频响应, 所述视频响应包含所述视频资源;
或者,
若检査结果为存有所述视频信息, 则向所述终端返回视频响应, 所 述视频响应包含从本地缓存获取的与所述视频断点的信息所对应的视频 资源。
20、 根据权利要求 17-19任一项所述的视频优化网关, 其特征在于, 还包括:
拆除模块, 用于在视频播放结束之后, 拆除根据所述切换响应中所 包含的第一连接传输控制信息、第二连接传输控制信息与视频资源服务器 和终端建立的连接。
21、 一种视频缓存切换处理系统, 其特征在于, 包括: 权利要求 n-14任一项所述的视频优化网关、 权利要求 15所述的基站、 权利要求 16 所述的基站以及权利要求 17-20任一项所述的视频优化网关。
PCT/CN2014/077396 2014-05-13 2014-05-13 视频缓存切换处理方法、装置和系统 WO2015172320A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/077396 WO2015172320A1 (zh) 2014-05-13 2014-05-13 视频缓存切换处理方法、装置和系统
CN201480028962.6A CN105230074B (zh) 2014-05-13 2014-05-13 视频缓存切换处理方法、装置和系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/077396 WO2015172320A1 (zh) 2014-05-13 2014-05-13 视频缓存切换处理方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2015172320A1 true WO2015172320A1 (zh) 2015-11-19

Family

ID=54479145

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077396 WO2015172320A1 (zh) 2014-05-13 2014-05-13 视频缓存切换处理方法、装置和系统

Country Status (2)

Country Link
CN (1) CN105230074B (zh)
WO (1) WO2015172320A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791062A (zh) * 2016-03-11 2016-07-20 中国联合网络通信集团有限公司 标识业务的方法、家庭网关和家庭网络系统
US11089356B2 (en) 2019-03-26 2021-08-10 Rovi Guides, Inc. Systems and methods for media content hand-off based on type of buffered data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101006744A (zh) * 2004-06-29 2007-07-25 诺基亚公司 链路层辅助移动ip快速切换的系统、相关移动节点、外地代理和方法
CN101605366A (zh) * 2009-06-03 2009-12-16 南京邮电大学 基于转发站点的移动视频平滑切换方法
US20120188980A1 (en) * 2010-11-16 2012-07-26 Qualcomm Incorporated Systems and methods for non-optimized handoff

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1465186A1 (en) * 2003-04-02 2004-10-06 Deutsche Thomson-Brandt Gmbh Method for buffering data streams read from an optical storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101006744A (zh) * 2004-06-29 2007-07-25 诺基亚公司 链路层辅助移动ip快速切换的系统、相关移动节点、外地代理和方法
CN101605366A (zh) * 2009-06-03 2009-12-16 南京邮电大学 基于转发站点的移动视频平滑切换方法
US20120188980A1 (en) * 2010-11-16 2012-07-26 Qualcomm Incorporated Systems and methods for non-optimized handoff

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791062A (zh) * 2016-03-11 2016-07-20 中国联合网络通信集团有限公司 标识业务的方法、家庭网关和家庭网络系统
US11089356B2 (en) 2019-03-26 2021-08-10 Rovi Guides, Inc. Systems and methods for media content hand-off based on type of buffered data

Also Published As

Publication number Publication date
CN105230074B (zh) 2019-05-28
CN105230074A (zh) 2016-01-06

Similar Documents

Publication Publication Date Title
US9413830B2 (en) Application streaming service
US9094464B1 (en) Connection digest for accelerating web traffic
WO2018054195A1 (zh) 一种资源分配的方法及基站
US9838724B2 (en) Media distribution network for live streaming
WO2023046088A1 (zh) 一种应用于音视频数据传输的端到端系统解决方法
US9628352B2 (en) Method, apparatus and system for downloading file in content delivery network
WO2016049987A1 (zh) 一种数据处理方法、装置及相关服务器
WO2021047515A1 (zh) 一种服务路由方法及装置
US9356985B2 (en) Streaming video to cellular phones
CN103348657B (zh) 流媒体播放方法、设备及系统
TWI578745B (zh) 行動管理行動資料通訊的物件快取
US20190306007A1 (en) Mechanism for rapid network failure detection for faster switch-over in server-to-server applications
TWI530147B (zh) 一種基於層之自動調整同級媒體串流之裝置和方法
US20150127837A1 (en) Relay apparatus and data transfer method
JPWO2016104537A1 (ja) 負荷分散装置、負荷分散方法及びプログラム
WO2017113816A1 (zh) 一种对等网络连接方法及装置
US20240098142A1 (en) Migration of remote data processing between servers
CN109818901B (zh) 报文头压缩机制确定方法、设备及系统
CN104660550A (zh) 一种在多服务器之间进行会话迁移的方法
WO2015172320A1 (zh) 视频缓存切换处理方法、装置和系统
CN111211933A (zh) 一种确定传输链路的质量的方法及装置
US9729661B2 (en) Optimization of mobile data communication using byte caching
US20140323102A1 (en) Method and device for virtualization of terminal devices of a wireless network
US9992309B2 (en) Communication device and communication method
US11973824B2 (en) Method for data transmission of audio and video in end-to-end system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480028962.6

Country of ref document: CN

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

Ref document number: 14892124

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14892124

Country of ref document: EP

Kind code of ref document: A1