WO2011150652A1 - Redirection method and apparatus - Google Patents

Redirection method and apparatus Download PDF

Info

Publication number
WO2011150652A1
WO2011150652A1 PCT/CN2010/080443 CN2010080443W WO2011150652A1 WO 2011150652 A1 WO2011150652 A1 WO 2011150652A1 CN 2010080443 W CN2010080443 W CN 2010080443W WO 2011150652 A1 WO2011150652 A1 WO 2011150652A1
Authority
WO
WIPO (PCT)
Prior art keywords
url
video
video server
request
server
Prior art date
Application number
PCT/CN2010/080443
Other languages
French (fr)
Chinese (zh)
Inventor
冯江平
代金良
张军
许志勇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2010/080443 priority Critical patent/WO2011150652A1/en
Priority to CN201080004374.0A priority patent/CN102388623B/en
Publication of WO2011150652A1 publication Critical patent/WO2011150652A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23103Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a redirection method and apparatus.
  • the player plug-in and player application are required when the user views the Internet video online through the browser.
  • the browser When playing a video, the browser first initializes the player plug-in, and the player plug-in executes the player application, requests video from the video server, and performs pauses, drags, and the like.
  • load balancing technology is usually used to load the video requests of users to each video server evenly.
  • the process in which the load balancing server selects the video server is called content routing.
  • the client's browser caches the IP address of the domain name resolved during the content routing process.
  • the browser caches the IP address of the video server currently serving the customer; if content routing based on redirection technology is used, the browser caches Is the IP address of the load balancer.
  • requests for any content under the same domain in the same web page will use the IP address in the cache. That is to say, when the video server currently provided for the client fails, the player does not re-initiate the DNS domain name resolution request, and the current video service will be interrupted, thereby affecting the user experience when watching the video.
  • the embodiment of the invention provides a redirection method and device to improve the user experience of using the Internet video to watch online.
  • a redirection method including:
  • a redirection device comprising:
  • a content receiving unit configured to receive a video content pointed by the first URL sent by the first video server
  • a state detecting unit configured to detect an operating state of the first video server
  • An information modification unit configured to obtain a second URL according to the first URL when the working status of the first video server is abnormal
  • a redirecting unit configured to send a video request, where the video request includes the second URL, so that a video server that receives the video request can acquire the first URL according to a second URL in the video request Pointing to the video content, and receiving the video content pointed by the first URL sent by the second video server.
  • the redirection method and device of the embodiment of the present invention after receiving the video content pointed by the first URL sent by the first video server, detecting the working status of the first video server, if the work of the first video server is detected If the status is abnormal, the first ULR is modified to obtain the second URL, and the video request is sent, where the video request includes the second URL, so that the video server that receives the video request can be based on the video request.
  • the second URL acquires the video content pointed by the first URL, and then receives the video content pointed by the first URL sent by the second video server.
  • a redirection method including:
  • a redirection device comprising:
  • a content receiving unit configured to receive a video content pointed by the first URL sent by the first video server
  • a state detecting unit configured to detect an operating state of the first video server
  • a content requesting unit configured to re-request the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal
  • An information modification unit configured to obtain a second URL according to the first URL when the re-request fails; a redirecting unit, configured to send a video request, where the video request includes the second URL, so as to receive the
  • the video server of the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive the video content pointed by the first URL sent by the second video server.
  • the redirection method and device of the embodiment of the present invention after receiving the video content pointed by the first URL sent by the first video server, detecting the working status of the first video server, if the work of the first video server is detected If the status is abnormal, the video content pointed to by the first URL is re-requested with the first URL, and when the re-request fails, the first ULR is modified to obtain a second URL, and a video request is sent, where the video request is included.
  • the second URL so that the video server receiving the video request can acquire the view pointed by the first URL according to the second URL in the video request. Frequency content, and then receiving the video content pointed by the first URL sent by the second video server.
  • FIG. 1 is a flowchart of a redirection method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a content routing process based on the DNS technology in the first embodiment of the present invention
  • FIG. 3 is a schematic diagram of a content routing process based on a redirection technology according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of a redirection method according to Embodiment 2 of the present invention
  • FIG. 5 is a schematic diagram of a third redirection method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a fourth redirection device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a state detecting unit in a redirection device according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic diagram of a redirection unit in a redirection device according to Embodiment 4 of the present invention.
  • FIG. 9 is a schematic diagram of a fifth redirection device according to an embodiment of the present invention.
  • the first embodiment of the present invention provides a redirection method, including:
  • Step 11 The player receives the video content pointed by the first URL (Uniform Resource Loca tor) sent by the first video server.
  • the first URL refers to a URL corresponding to the video content currently used by the user. For example, the user is currently watching the URL ht tp through the player: //video, demos i te. com/demo.
  • the player obtains the video content pointed by the first URL sent by the first video server, which is obtained by means of content routing.
  • the player can obtain the video content pointed by the first URL sent by the first video server in at least the following two ways.
  • this step mainly includes the following process:
  • Step 111 When the player requests the video content pointed to by the first URL, the browser first initiates a DNS domain name resolution request to the DNS server, and parses the IP address represented by the domain name in the first URL.
  • Step 112 The DNS server sends the DNS domain name resolution request to the load balancer.
  • Step 113 The load balancer selects a suitable video server according to the distance between each video server and the client where the player is located, and the current resource usage of each video server, and sends the IP address of the video server to the player through the DNS domain name resolution response.
  • the selected video server is referred to as a first video server.
  • Step 114 The player sends a video request to the first video server according to the IP address of the first video server.
  • Step 115 The first video server sends the video content pointed by the first URL to the player.
  • this step mainly includes the following process:
  • Step l l la when the player requests the video content pointed to by the first URL, the browser first
  • the DNS server initiates a DNS domain name resolution request and parses the IP address represented by the domain name in the first URL.
  • Step 112a The DNS server sends the IP address of the load balancer to the player through a DNS resolution response.
  • Step 113a The player sends a video request to the load balancer according to the IP address of the load balancer.
  • Step 114a the load balancer is based on the distance between each video server and the client where the player is located, A suitable video server, that is, a first video server, is selected for each video server's current resource usage. Then, the load balancer sends a redirect message to the player, including the IP address of the first video server in the redirect message, and notifying the player to use the IP address of the first video server as the redirected IP address.
  • Step 115a The player sends a video request to the first video server according to the IP address of the first video server.
  • Step 116a The first video server sends the video content pointed by the first URL to the player.
  • the player may have other ways to obtain the video content pointed by the first URL sent by the first video server, which is only an example.
  • Step 12 The player detects an working state of the first video server.
  • the player can detect the number of bytes of video content pointed to by the first URL received from the first video server within a predetermined time; when the number of bytes received within the predetermined time is 0 The working state of the first video server is abnormal. When the number of bytes received in the predetermined time is not 0, the working state of the first video server is normal.
  • the predetermined time may be arbitrarily set, for example, 1 minute or the like.
  • the player can also detect the working state of the first video server by other means.
  • Step 13 When the player detects that the working status of the first video server is abnormal, obtaining a second URL according to the first URL.
  • the player may add a prefix to the first URL to obtain the second URL.
  • the first URL is ht tp: //video, demos i te. com/demo. mp4
  • the second URL can be obtained by adding the prefix "new23415" to the first URL, which is ht tp: //new23415.
  • video Demos i te. com/ demo. mp4.
  • Step 14 The player sends a video request, where the video request includes the second URL, so that the video server that receives the video request can obtain the first URL pointing according to the second URL in the video request.
  • Video content Since the second URL is not cached in the browser, the player will use the second URL to re-route the content.
  • the process of performing content routing may also adopt content routing based on DNS technology or content routing based on redirection technology.
  • the load balancer needs to remove the prefix in the second URL to obtain the first A URL, then select the video server, and send the selected IP address of the working video server to the player.
  • the player sends a video request including the second URL to a video server with a working state selected by the load balancer, so that the video server receiving the video request can be based on the video request.
  • the second URL acquires the video content pointed to by the first URL.
  • the video server that receives the video request includes a second video server as described below. Of course, it may also include a first video server whose working status is restored to normal.
  • Step 15 The player receives the video content pointed by the first URL sent by the second video server.
  • the second video server obtains the second URL according to the video request, removes the prefix of the second URL, obtains a first URL, and obtains the first URL according to the first URL. Video content. Then, the video content pointed by the first URL is sent to the player.
  • the video content pointed by the first URL can still be obtained by the second video server, thereby ensuring the continuity or completeness of the video content pointed by the first URL. Sex. Therefore, with the redirection method of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
  • connection with the first video server can also be disconnected.
  • the second embodiment of the present invention provides a redirection method, including:
  • Step 21 The player receives the video content pointed by the first URL sent by the first video server.
  • Step 22 The player detects an operating status of the first video server.
  • step 12 For the specific process of this step, refer to the description of step 12 in the first embodiment of the present invention.
  • Step 23 When the working status of the first video server is abnormal, the player re-requests the video content pointed by the first URL by using the first URL.
  • the player can re-request the video content pointed to by the first URL to any video server.
  • the player since the IP address of the first video server or the IP address of the load balancer is cached in the browser of the client, the player may move to the first video server or the load balancer to further improve the efficiency. Re-requesting the video content pointed to by the first URL.
  • the specific process of the player re-requesting the video content pointed by the first URL to the first video server may include: the player according to the first video server The IP address sends a video request to the first video server, and then the first video server resends the video content pointed to by the first URL to the player.
  • the first video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, only the video content pointed to by the first URL obtained from the player may be The content after the interruption continues to be sent to the player.
  • the specific process of the player re-requesting the video content pointed to by the first URL to the load balancer may be:
  • the player sends a video request to the load balancer based on the IP address of the load balancer.
  • the load balancer selects a suitable video server (the third video server in this embodiment) according to the distance between each video server and the client where the player is located, the current resource usage of the video server, and the like.
  • the load balancer sends a redirect message to the player, includes the IP address of the third video server in the redirect message, and informs the player to use the IP address of the third video server as the redirected IP address, and then the player goes to the third
  • the video server sends a video request and the third video server sends the video content to the player.
  • the third video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, only the first player from the player may be The content after the video server obtains the interruption of the video content pointed to by the first URL continues to be sent to the player.
  • the load balancer may send a status request message to each video server, and each video server reports its own status through the status response message, and then the video server selects according to the status response message.
  • the right video server may periodically report its own status information, and the video server selects a suitable video server according to the status information.
  • Step 24 When the re-request fails, the player obtains the second URL according to the first URL.
  • the specific process of this step refer to the description of step 13 in the first embodiment of the present invention.
  • Step 25 The player sends a video request, and the second URL is included in the video request, so that the video server that receives the video request can obtain the first URL pointing according to the second URL in the video request.
  • Video content
  • step 14 The specific process of this step can be referred to the description of step 14 in the first embodiment of the present invention.
  • Step 26 The player receives the video content pointed by the first URL sent by the second video server.
  • step 15 For the specific process of this step, refer to the description of step 15 in the first embodiment of the present invention.
  • the player can re-request the video content pointed to by the first URL or obtain the video content pointed by the first URL by modifying the URL, thereby ensuring the video content.
  • the continuity or integrity of the video content pointed to by the first URL Therefore, with the redirection method of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
  • Embodiment 3 of the present invention provides a redirection method, including:
  • Step 51 The player acquires the video content pointed by the first URL from the first video server.
  • step 1 1 For the specific process of this step, refer to the description of step 1 1 in the first embodiment of the present invention.
  • Step 52 The player detects an operating status of the first video server.
  • step 12 For the specific process of this step, refer to the description of step 12 in the first embodiment of the present invention.
  • Step 53 When the player detects that the working state of the first video server is abnormal, disconnecting and The connection of the first video server.
  • Step 54 The player re-requests the video content pointed by the first URL to the first video server or the load balancer.
  • the IP address of the first video server is cached in the browser of the client, so that the player can re-send to the first video server. Requesting the video content pointed to by the first URL.
  • the specific process of this step may be: the player sends a video request to the first video server according to the IP address of the first video server, and then the first video server re-sends the video content pointed by the first URL to the player.
  • the first video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, only the video content pointed to by the first URL obtained from the player may be The content after the interruption continues to be sent to the player.
  • the IP address of the load balancer is cached in the browser of the client, so the player can re-request to the load balancer.
  • the video content pointed to by the first URL is obtained in the two steps in step 51, in the second mode.
  • the specific process may be:
  • the player sends a video request to the load balancer according to the IP address of the load balancer.
  • the load balancer selects a suitable video server (the third video server in this embodiment) according to the distance between each video server and the client where the player is located, the current resource usage of the video server, and the like.
  • the load balancer sends a redirect message to the player, includes the IP address of the third video server in the redirect message, and informs the player to use the IP address of the third video server as the redirected IP address, and then the player goes to the third
  • the video server sends a video request and the third video server sends the video content to the player.
  • the third video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, the first URL may only be obtained from the player from the first video server. The content of the interruption of the video content continues to be sent to the player.
  • the load balancer can The video server sends a status request message, and each video server reports its own status through the status response message, and then the video server selects a suitable video server according to the status response message.
  • each video server may periodically report its own status information, and the video server selects a suitable video server according to the status information.
  • Step 55 If the re-request is successful, the player receives the video content pointed by the first URL sent by the first video server or receives the first content sent by the third video server re-designated by the load balancer. The video content pointed to by the URL.
  • Step 56 If the re-request is unsuccessful, it indicates that after the step 54, the first video server still has an abnormal working state. At this point, the player will modify the first URL to get the second URL.
  • the player may add a prefix to the first URL to obtain the second URL.
  • the first URL ⁇ ht tp: //v ideo, demos i t e. com/demo. mp4
  • the second URL is ht tp: //new23415.
  • the prefix of the new force port is "new23415,,.
  • Step 57 Since the second URL is not cached in the browser, the player will use the second URL to re-route the content.
  • step 14 of Embodiment 1 of the present invention For a specific process of this step, refer to the corresponding description in step 14 of Embodiment 1 of the present invention.
  • Step 58 The player sends a video request to the second video server according to the IP address of the second video server, where the second URL is included in the video request.
  • the video request may further include content interruption location information for indicating where the video content pointed by the first URL obtained by the player from the first video server is interrupted.
  • Step 59 The second video server removes the prefix in the second URL, obtains a first URL, and obtains video content pointed by the first URL according to the first URL.
  • Step 510 The second video server sends the video content pointed by the first URL to the player.
  • the user does not have an interruption when viewing the video content, thereby improving the user experience of watching the Internet video online.
  • the fourth embodiment of the present invention further provides a redirection device, including: a content receiving unit 61, configured to receive video content pointed by a first URL sent by a first video server; and a state detecting unit 62.
  • the information modifying unit 63 is configured to: when the working status of the first video server is abnormal, obtain a second URL according to the first URL; and the redirecting unit 64 is configured to send a video request, wherein the video request includes the second URL, so that the video server that receives the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive The video content pointed by the first URL sent by the second video server.
  • the status detecting unit 62 may include: a detecting module 621, configured to detect a number of bytes of video content pointed by the first URL received from the first video server within a predetermined time; 622. Determine, when the number of bytes received in the predetermined time is 0, that an operating state of the first video server is abnormal; when the number of bytes received in the predetermined time is not 0. And determining that the working state of the first video server is normal.
  • the information modification unit 63 is specifically configured to: when the working status of the first video server is abnormal, add a prefix to the first URL to obtain the second URL.
  • the redirection unit 63 may include: an information obtaining module 631, configured to send a DNS resolution request, include the second URL in the DNS resolution request, and obtain the second from a load balancer a redirection module 632, configured to send a video request to the second video server by using information of the second video server, where the second URL is carried in the video request, so that the second The video server removes the prefix of the second URL according to the second URL in the video request, obtains the first URL, and obtains the video content pointed by the first URL according to the first URL; the receiving module 633, Receiving video content pointed by the first URL sent by the second video server.
  • an information obtaining module 631 configured to send a DNS resolution request, include the second URL in the DNS resolution request, and obtain the second from a load balancer
  • a redirection module 632 configured to send a video request to the second video server by using information of the second video server, where the second URL is carried in the video request, so that the second The video server removes the prefix of the second
  • the video request further includes a content interruption location letter.
  • the redirection module sends a video request to the second video server by using the information of the second video server, and the second URL is carried in the video request, so that the second video server is configured according to the second video server.
  • the second URL obtains the first URL, and obtains video content starting from the location determined by the content interruption location information in the video content pointed by the first URL according to the first URL and the content interruption location information.
  • the redirection unit 63 may further include: a connection operation module 634, configured to disconnect the connection with the first video server when the working status of the first video server is abnormal. Thereby ensuring that the device can regain the video content pointed to by the first URL.
  • the working principle of the redirection unit 63 can be referred to the description of the foregoing method embodiments. It can be seen from the above that in the case that the working status of the first video server is abnormal, the video content pointed by the first URL can still be retrieved by the second video server, thereby ensuring the continuity of the video content pointed by the first URL or Integrity. Therefore, with the redirection device of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
  • the device shown in any of Figures 6-8 can be located in the player of the client.
  • the fifth embodiment of the present invention further provides a redirection device, including: a content receiving unit 91, configured to receive video content pointed by a first URL sent by a first video server; and a state detecting unit 92.
  • the content requesting unit 93 is configured to re-request the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal; a modifying unit 94, configured to obtain a second URL according to the first URL when the re-request fails;
  • the redirecting unit 95 is configured to send a video request, where the video request includes the second URL, so as to receive
  • the video server of the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive the video content pointed by the first URL sent by the second video server.
  • the status detecting unit may include: a detecting module, configured to detect a number of bytes of video content pointed to by the first URL received from the first video server within a predetermined time; and a determining module, configured to be in the predetermined Determining the first video server when the number of bytes received in the time is 0 The working status is abnormal; when the number of bytes received within the predetermined time is not 0, it is determined that the working state of the first video server is normal.
  • the content requesting unit 93 can re-request the video content pointed to by the first URL to any video server.
  • the content requesting unit 93 may request the video content pointed to by the first URL from the first video server or the load balancer.
  • the content requesting unit 93 may include: an information receiving module, configured to receive a working state detection result sent by the state detecting unit, where the working state detection result indicates that the first video server is in an abnormal working state; And a module, configured to re-request the video content pointed by the first URL to the first video server or the load balancer according to the working state detection result.
  • the content receiving unit 91 is further configured to: when the re-request is successful, receive the video content pointed by the first URL sent by the first video server or receive the third video re-specified by the load balancer. The video content pointed by the first URL sent by the server.
  • the information modification unit 94 is specifically configured to: when the working status of the first video server is abnormal, add a prefix to the first URL to obtain the second URL.
  • the redirection unit 95 may include: (not shown): an information obtaining module, configured to send a DNS resolution request, including the second URL in the DNS resolution request, and obtaining the a second video server, the redirection module, configured to send a video request to the second video server by using the information of the second video server, where the second URL is carried in the video request, so that the The second video server removes the prefix of the second URL according to the second URL in the video request, obtains the first URL, and obtains the video content pointed by the first URL according to the first URL; Receiving video content pointed by the first URL sent by the second video server.
  • the video request further includes content interruption location information. Therefore, the redirection module sends a video request to the second video server by using the information of the second video server, and the second URL is carried in the video request, so that the second video server is configured according to the second video server. Obtaining, by the second URL, the first URL, and obtaining, according to the first URL and the content interruption location information, that the video content pointed by the first URL is determined by the content interruption location information The video content at the beginning of the location.
  • the redirection unit 95 may further include (not shown): a connection operation module, configured to disconnect the first video server when the first video server is in an abnormal state of operation. Thereby ensuring that the device can regain the video content pointed to by the first URL.
  • the working principle of the redirection unit 95 can be referred to the description of the foregoing method embodiments.
  • the working principle of the redirection device according to the embodiment of the present invention reference may be made to the description of the second embodiment of the method.
  • the device shown in Figure 9 can be located in the player of the client.
  • the player can re-request the video content pointed to by the first URL or obtain the video content pointed by the first URL by modifying the URL, thereby ensuring the video content.
  • the continuity or integrity of the video content pointed to by the first URL Therefore, with the redirection device of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
  • the redirection method and device of the embodiment of the present invention can ensure the continuity of the user when watching the video online, thereby improving the experience of the user when watching the video.
  • the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).

Abstract

The embodiment of the present invention discloses a redirection method and an apparatus, which relate to communication technical field, and the present invention is invented in order to improve the user's experience in watching the internet video online. The method includes: receiving video content indicated by the first URL sent from the first video server; detecting the working status of the first video server; obtaining the second URL according to the first URL when the working status of the first video server is abnormal; sending the video request; wherein the video request includes the second URL, so that the video server which received the video request can obtain the video content indicated by the first URL according to the second URL in the video request; receiving the video content indicated by the first URL sent from the second video server.

Description

一种重定向方法及装置  Redirection method and device
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种重定向方法及装置。  The present invention relates to the field of communications technologies, and in particular, to a redirection method and apparatus.
背景技术 Background technique
用户通过浏览器在线观看互联网视频时, 需要播放器插件和播放器应用 程序。 在播放视频时, 浏览器首先初始化播放器插件, 播放器插件再执行播 放器应用程序, 向视频服务器请求视频以及执行暂停、 拖动等操作。  The player plug-in and player application are required when the user views the Internet video online through the browser. When playing a video, the browser first initializes the player plug-in, and the player plug-in executes the player application, requests video from the video server, and performs pauses, drags, and the like.
目前多数的视频网站能够同时采用多个视频服务器同时为用户提供视频 服务。 为了有效的利用资源, 通常是采用负载均衡技术利用负载均衡服务器 将用户的视频请求平均分担到各视频服务器上。 其中负载均衡服务器选择视 频服务器的过程称为内容路由。  At present, most video websites can simultaneously use multiple video servers to provide video services to users at the same time. In order to effectively utilize resources, load balancing technology is usually used to load the video requests of users to each video server evenly. The process in which the load balancing server selects the video server is called content routing.
在现有技术中, 有两种内容路由技术, 分别是: 基于 DNS ( Doma in Name Sys tem, 域名系统)技术的内容路由和基于重定向技术的内容路由。  In the prior art, there are two kinds of content routing technologies, namely: content routing based on DNS (Doma in Name System) technology and content routing based on redirection technology.
目前客户端的浏览器会对在内容路由过程中解析到的域名的 IP地址进行 緩存。 在为用户提供视频服务时, 如果采用基于 DNS技术的内容路由, 则浏 览器緩存的是当前为客户提供服务的视频服务器的 IP地址; 如果采用基于重 定向技术的内容路由, 则浏览器緩存的是负载均衡器的 IP地址。 而在浏览器 的緩存周期之内, 在同一个网页中对同一域名下的任何内容的请求都会采用 緩存中的 IP地址。 也就是说, 在当前为客户提供的视频服务器出现故障时, 播放器也不会重新发起 DNS域名解析请求, 那么当前的视频业务将会中断, 从而影响了用户观看视频时的体验。  Currently, the client's browser caches the IP address of the domain name resolved during the content routing process. When providing video services for users, if DNS-based content routing is used, the browser caches the IP address of the video server currently serving the customer; if content routing based on redirection technology is used, the browser caches Is the IP address of the load balancer. Within the browser's caching period, requests for any content under the same domain in the same web page will use the IP address in the cache. That is to say, when the video server currently provided for the client fails, the player does not re-initiate the DNS domain name resolution request, and the current video service will be interrupted, thereby affecting the user experience when watching the video.
发明内容 Summary of the invention
本发明实施例提供一种重定向方法、 装置, 以提高用户在线观看互联网 视频的使用体验。  The embodiment of the invention provides a redirection method and device to improve the user experience of using the Internet video to watch online.
本发明实施例采用如下技术方案:  The embodiment of the invention adopts the following technical solutions:
一种重定向方法, 包括:  A redirection method, including:
接收第一视频服务器发送的第一 URL指向的视频内容; 检测所述第一视频服务器的工作状态; Receiving video content pointed by the first URL sent by the first video server; Detecting an operating status of the first video server;
当所述第一视频服务器工作状态异常时 ,根据所述第一 URL获得第二 URL; 发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视 频请求的视频服务器能够根据所述视频请求中的第二 URL 获取所述第一 URL 指向的视频内容;  When the working status of the first video server is abnormal, obtaining a second URL according to the first URL; sending a video request, where the video request includes the second URL, so as to receive the video server of the video request And acquiring, according to the second URL in the video request, the video content pointed by the first URL;
接收由第二视频服务器发送的所述第一 URL指向的视频内容。  Receiving video content pointed by the first URL sent by the second video server.
一种重定向装置, 包括:  A redirection device comprising:
内容接收单元, 用于接收第一视频服务器发送的第一 URL指向的视频内 容;  a content receiving unit, configured to receive a video content pointed by the first URL sent by the first video server;
状态检测单元, 用于检测所述第一视频服务器的工作状态;  a state detecting unit, configured to detect an operating state of the first video server;
信息修改单元, 用于当所述第一视频服务器工作状态异常时, 根据所述 第一 URL获得第二 URL;  An information modification unit, configured to obtain a second URL according to the first URL when the working status of the first video server is abnormal;
重定向单元,用于发送视频请求,其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求中的第二 URL获 取所述第一 URL指向的视频内容, 并接收由第二视频服务器发送的所述第一 URL指向的视频内容。  a redirecting unit, configured to send a video request, where the video request includes the second URL, so that a video server that receives the video request can acquire the first URL according to a second URL in the video request Pointing to the video content, and receiving the video content pointed by the first URL sent by the second video server.
本发明实施例的重定向方法及装置, 在接收第一视频服务器发送的第一 URL指向的视频内容后,检测所述第一视频服务器的工作状态, 如果检测到所 述第一视频服务器的工作状态异常, 则修改第一 ULR获得第二 URL , 并发送视 频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视 频服务器能够根据所述视频请求中的第二 URL获取所述第一 URL指向的视频 内容, 而后接收由第二视频服务器发送的所述第一 URL指向的视频内容。 由 上可以看出, 在第一视频服务器出现工作状态异常的情况下, 仍能由第二视 频服务器获得第一 URL指向的视频内容, 从而保证了第一 URL指向的视频内 容的连续性或者完整性。 因此, 利用本发明实施例的重定向方法及装置, 用 户在观看该视频内容的时候不会出现中断, 从而提高了用户在线观看互联网 视频的使用体验。 一种重定向方法, 包括: The redirection method and device of the embodiment of the present invention, after receiving the video content pointed by the first URL sent by the first video server, detecting the working status of the first video server, if the work of the first video server is detected If the status is abnormal, the first ULR is modified to obtain the second URL, and the video request is sent, where the video request includes the second URL, so that the video server that receives the video request can be based on the video request. The second URL acquires the video content pointed by the first URL, and then receives the video content pointed by the first URL sent by the second video server. It can be seen from the above that in the case that the working status of the first video server is abnormal, the video content pointed by the first URL can still be obtained by the second video server, thereby ensuring the continuity or completeness of the video content pointed by the first URL. Sex. Therefore, with the redirection method and device of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online. A redirection method, including:
接收第一视频服务器发送的第一 URL指向的视频内容;  Receiving video content pointed by the first URL sent by the first video server;
检测所述第一视频服务器的工作状态;  Detecting an operating status of the first video server;
当所述第一视频服务器工作状态异常时, 利用所述第一 URL重新请求所 述第一 URL指向的视频内容;  Retrieving the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal;
当重新请求失败时, 根据所述第一 URL获得第二 URL;  When the re-request fails, obtaining the second URL according to the first URL;
发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视 频请求的视频服务器能够根据所述视频请求中的第二 URL 获取所述第一 URL 指向的视频内容;  Sending a video request, wherein the video request includes the second URL, so that the video server that receives the video request can obtain the video content pointed by the first URL according to the second URL in the video request;
接收由第二视频服务器发送的所述第一 URL指向的视频内容。  Receiving video content pointed by the first URL sent by the second video server.
一种重定向装置, 包括:  A redirection device comprising:
内容接收单元, 用于接收第一视频服务器发送的第一 URL指向的视频内 容;  a content receiving unit, configured to receive a video content pointed by the first URL sent by the first video server;
状态检测单元, 用于检测所述第一视频服务器的工作状态;  a state detecting unit, configured to detect an operating state of the first video server;
内容请求单元, 用于当所述第一视频服务器工作状态异常时, 利用所述 第一 URL重新请求所述第一 URL指向的视频内容;  a content requesting unit, configured to re-request the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal;
信息修改单元,用于当重新请求失败时,根据所述第一 URL获得第二 URL; 重定向单元,用于发送视频请求,其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求中的第二 URL获 取所述第一 URL指向的视频内容, 并接收由第二视频服务器发送的所述第一 URL指向的视频内容。  An information modification unit, configured to obtain a second URL according to the first URL when the re-request fails; a redirecting unit, configured to send a video request, where the video request includes the second URL, so as to receive the The video server of the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive the video content pointed by the first URL sent by the second video server.
本发明实施例的重定向方法及装置, 在接收第一视频服务器发送的第一 URL指向的视频内容后,检测所述第一视频服务器的工作状态, 如果检测到所 述第一视频服务器的工作状态异常,则用所述第一 URL重新请求所述第一 URL 指向的视频内容, 并在重新请求失败时, 修改第一 ULR获得第二 URL , 并发送 视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的 视频服务器能够根据所述视频请求中的第二 URL获取所述第一 URL指向的视 频内容, 而后接收由第二视频服务器发送的所述第一 URL指向的视频内容。 由上可以看出, 在第一视频服务器出现工作状态异常的情况下, 仍能获得第 一 URL指向的视频内容, 从而保证了第一 URL指向的视频内容的连续性或者 完整性。 因此, 利用本发明实施例的重定向方法及装置, 用户在观看该视频 内容的时候不会出现中断, 从而提高了用户在线观看互联网视频的使用体验。 附图说明 The redirection method and device of the embodiment of the present invention, after receiving the video content pointed by the first URL sent by the first video server, detecting the working status of the first video server, if the work of the first video server is detected If the status is abnormal, the video content pointed to by the first URL is re-requested with the first URL, and when the re-request fails, the first ULR is modified to obtain a second URL, and a video request is sent, where the video request is included. The second URL, so that the video server receiving the video request can acquire the view pointed by the first URL according to the second URL in the video request. Frequency content, and then receiving the video content pointed by the first URL sent by the second video server. It can be seen from the above that in the case that the working status of the first video server is abnormal, the video content pointed by the first URL can still be obtained, thereby ensuring the continuity or integrity of the video content pointed by the first URL. Therefore, with the redirection method and device of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following drawings will be briefly described, and the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1为本发明实施例一重定向方法的流程图;  1 is a flowchart of a redirection method according to an embodiment of the present invention;
图 2为本发明实施例一中基于 DNS技术的内容路由过程示意图; 图 3为本发明实施例一中基于重定向技术的内容路由过程示意图; 图 4为本发明实施例二重定向方法的流程图  2 is a schematic diagram of a content routing process based on the DNS technology in the first embodiment of the present invention; FIG. 3 is a schematic diagram of a content routing process based on a redirection technology according to Embodiment 1 of the present invention; FIG. 4 is a flowchart of a redirection method according to Embodiment 2 of the present invention; Figure
图 5为本发明实施例三重定向方法的示意图  FIG. 5 is a schematic diagram of a third redirection method according to an embodiment of the present invention;
图 6为本发明实施例四重定向装置的示意图  6 is a schematic diagram of a fourth redirection device according to an embodiment of the present invention;
图 7为本发明实施例四重定向装置中状态检测单元的示意图;  7 is a schematic diagram of a state detecting unit in a redirection device according to Embodiment 4 of the present invention;
图 8为本发明实施例四重定向装置中重定向单元的示意图;  8 is a schematic diagram of a redirection unit in a redirection device according to Embodiment 4 of the present invention;
图 9为本发明实施例五重定向装置的示意图。  FIG. 9 is a schematic diagram of a fifth redirection device according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
如图 1所示, 本发明实施例一提供了一种重定向方法, 包括:  As shown in FIG. 1, the first embodiment of the present invention provides a redirection method, including:
步骤 11、播放器接收第一视频服务器发送的第一 URL ( Uni form Resource Loca tor , 统一资源定位符)指向的视频内容。 其中, 所述第一 URL是指用户当前使用的视频内容所对应的 URL。 例如, 用户当前正在通过播放器观看 URL ht tp: //video, demos i te. com/demo. mp4所 指向的视频内容, 那么所述 ht tp: //video, demos i te. com/demo. mp4即可称为 在此的第一 URL。 Step 11: The player receives the video content pointed by the first URL (Uniform Resource Loca tor) sent by the first video server. The first URL refers to a URL corresponding to the video content currently used by the user. For example, the user is currently watching the URL ht tp through the player: //video, demos i te. com/demo. The video content pointed to by mp4, then the ht tp: //video, demos i te. com/demo. Mp4 can be called the first URL here.
在此实施例中, 播放器获得第一视频服务器发送的第一 URL指向的视频 内容是通过内容路由的方式获得的。 在此步骤中, 播放器可通过至少以下两 种方式获得第一视频服务器发送的第一 URL指向的视频内容。  In this embodiment, the player obtains the video content pointed by the first URL sent by the first video server, which is obtained by means of content routing. In this step, the player can obtain the video content pointed by the first URL sent by the first video server in at least the following two ways.
方式一、 基于 DNS技术的内容路由  Method 1: DNS-based content routing
在此方式下, 如图 2所示, 此步骤主要包括如下过程:  In this mode, as shown in Figure 2, this step mainly includes the following process:
步骤 111、 当播放器请求第一 URL 所指向的视频内容时, 浏览器首先向 DNS服务器发起 DNS域名解析请求,解析第一 URL中的域名所代表的 IP地址。  Step 111: When the player requests the video content pointed to by the first URL, the browser first initiates a DNS domain name resolution request to the DNS server, and parses the IP address represented by the domain name in the first URL.
步骤 112、 DNS 服务器将该 DNS域名解析请求发送给负载均衡器。  Step 112: The DNS server sends the DNS domain name resolution request to the load balancer.
步骤 113、 负载均衡器根据各视频服务器与播放器所在客户端的距离、各 视频服务器当前的资源使用情况等选择一个合适的视频服务器, 将该视频服 务器的 IP地址通过 DNS域名解析应答发送给播放器。 为了描述方便, 本实施 例中, 将该选择出的视频服务器称之为第一视频服务器。  Step 113: The load balancer selects a suitable video server according to the distance between each video server and the client where the player is located, and the current resource usage of each video server, and sends the IP address of the video server to the player through the DNS domain name resolution response. . For convenience of description, in this embodiment, the selected video server is referred to as a first video server.
步骤 114、 播放器根据第一视频服务器的 IP地址向第一视频服务器发送 视频请求。  Step 114: The player sends a video request to the first video server according to the IP address of the first video server.
步骤 115、 第一视频服务器向播放器发送第一 URL指向的视频内容。  Step 115: The first video server sends the video content pointed by the first URL to the player.
方式二、 基于重定向技术的内容路由  Method 2, content routing based on redirection technology
在此方式下, 如图 3所示, 此步骤主要包括如下过程:  In this mode, as shown in Figure 3, this step mainly includes the following process:
步骤 l l la、 当播放器请求第一 URL所指向的视频内容时, 浏览器首先向 Step l l la, when the player requests the video content pointed to by the first URL, the browser first
DNS服务器发起 DNS域名解析请求,解析第一 URL中的域名所代表的 IP地址。 The DNS server initiates a DNS domain name resolution request and parses the IP address represented by the domain name in the first URL.
步骤 112a、 DNS服务器将负载均衡器的 IP地址通过 DNS解析应答发送给 播放器。  Step 112a: The DNS server sends the IP address of the load balancer to the player through a DNS resolution response.
步骤 113a、播放器根据负载均衡器的 IP地址向负载均衡器发送视频请求。 步骤 114a、 负载均衡器根据各视频服务器与播放器所在客户端的距离、 各视频服务器当前的资源使用情况等选择一个合适的视频服务器, 即第一视 频服务器。 然后, 负载均衡器向播放器发送重定向消息, 在该重定向消息中 包括第一视频服务器的 IP地址, 通知播放器将第一视频服务器的 IP地址作 为重定向的 IP地址。 Step 113a: The player sends a video request to the load balancer according to the IP address of the load balancer. Step 114a, the load balancer is based on the distance between each video server and the client where the player is located, A suitable video server, that is, a first video server, is selected for each video server's current resource usage. Then, the load balancer sends a redirect message to the player, including the IP address of the first video server in the redirect message, and notifying the player to use the IP address of the first video server as the redirected IP address.
步骤 115a、播放器根据第一视频服务器的 IP地址向第一视频服务器发送 视频请求。  Step 115a: The player sends a video request to the first video server according to the IP address of the first video server.
步骤 116a、 第一视频服务器向播放器发送第一 URL指向的视频内容。 当然, 在具体应用中播放器还可能有其他的方式获得第一视频服务器发 送的第一 URL指向的视频内容, 在此只是举例而已。  Step 116a: The first video server sends the video content pointed by the first URL to the player. Of course, in a specific application, the player may have other ways to obtain the video content pointed by the first URL sent by the first video server, which is only an example.
步骤 12、 播放器检测所述第一视频服务器的工作状态。  Step 12: The player detects an working state of the first video server.
在此实施例中, 播放器可检测预定时间内从所述第一视频服务器接收的 第一 URL指向的视频内容的字节数; 当在所述预定时间内接收到的字节数为 0 时, 所述第一视频服务器的工作状态异常; 当在所述预定时间内接收到的字 节数不为 0时, 所述第一视频服务器的工作状态正常。  In this embodiment, the player can detect the number of bytes of video content pointed to by the first URL received from the first video server within a predetermined time; when the number of bytes received within the predetermined time is 0 The working state of the first video server is abnormal. When the number of bytes received in the predetermined time is not 0, the working state of the first video server is normal.
其中, 所述预定时间可任意设置, 例如 1 分钟等。 当然, 播放器还可通 过其他方式检测第一视频服务器的工作状态。  The predetermined time may be arbitrarily set, for example, 1 minute or the like. Of course, the player can also detect the working state of the first video server by other means.
步骤 13、 当播放器检测到所述第一视频服务器工作状态异常时, 根据所 述第一 URL获得第二 URL。  Step 13: When the player detects that the working status of the first video server is abnormal, obtaining a second URL according to the first URL.
其中在此步骤中,所述播放器可在第一 URL中增加一个前缀获得第二 URL。 例如, 第一 URL为 ht tp: //video, demos i te. com/demo. mp4 , 可在第一 URL 中 增 加 前 缀 为 " new23415 " 获 得 第 二 URL , 为 ht tp: //new23415. video, demos i te. com/ demo. mp4。  In this step, the player may add a prefix to the first URL to obtain the second URL. For example, the first URL is ht tp: //video, demos i te. com/demo. mp4 , and the second URL can be obtained by adding the prefix "new23415" to the first URL, which is ht tp: //new23415. video, Demos i te. com/ demo. mp4.
当然,还可有其他的对第一 URL进行修改的方式, 只要能够区分第一 URL 和第二 URL即可, 在此只是举例说明。  Of course, there may be other ways to modify the first URL, as long as the first URL and the second URL can be distinguished, which is merely an example.
步骤 14、 播放器发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求中的第二 URL获 取所述第一 URL指向的视频内容。 由于浏览器中没有緩存第二 URL , 因此, 播放器将会利用该第二 URL重新 进行内容路由过程。 其中, 进行内容路由的过程也可采用基于 DNS技术的内 容路由或者基于重定向技术的内容路由。 Step 14: The player sends a video request, where the video request includes the second URL, so that the video server that receives the video request can obtain the first URL pointing according to the second URL in the video request. Video content. Since the second URL is not cached in the browser, the player will use the second URL to re-route the content. The process of performing content routing may also adopt content routing based on DNS technology or content routing based on redirection technology.
在进行内容路由的过程中, 负载均衡器在收到 DNS服务器的 DNS请求或 者在收到播放器包含有所述第二 URL的视频请求后, 需将该第二 URL中的前 缀去掉, 获得第一 URL , 然后再选择视频服务器, 并将选择的工作状态正常的 视频服务器的 IP 地址发送给播放器。  In the process of performing content routing, after receiving the DNS request of the DNS server or receiving the video request that the player includes the second URL, the load balancer needs to remove the prefix in the second URL to obtain the first A URL, then select the video server, and send the selected IP address of the working video server to the player.
然后, 所述播放器将包含有所述第二 URL 的视频请求发送给负载均衡器 选择的工作状态正常的视频服务器, 以便收到所述视频请求的视频服务器能 够根据所述视频请求中的第二 URL获取所述第一 URL指向的视频内容。 其中, 所述收到所述视频请求的视频服务器包括下文所述的第二视频服务器。 当然, 还可包括工作状态恢复为正常的第一视频服务器。  Then, the player sends a video request including the second URL to a video server with a working state selected by the load balancer, so that the video server receiving the video request can be based on the video request. The second URL acquires the video content pointed to by the first URL. The video server that receives the video request includes a second video server as described below. Of course, it may also include a first video server whose working status is restored to normal.
步骤 15、 播放器接收由第二视频服务器发送的所述第一 URL指向的视频 内容。  Step 15. The player receives the video content pointed by the first URL sent by the second video server.
其中, 所述第二视频服务器根据所述视频请求获得所述第二 URL , 将所述 第二 URL的前缀去掉, 获得第一 URL,并根据所述第一 URL获得所述第一 URL 指向的视频内容。 然后, 将所述第一 URL指向的视频内容发送给播放器。  The second video server obtains the second URL according to the video request, removes the prefix of the second URL, obtains a first URL, and obtains the first URL according to the first URL. Video content. Then, the video content pointed by the first URL is sent to the player.
由上可以看出, 在第一视频服务器出现工作状态异常的情况下, 仍能由 第二视频服务器获得第一 URL指向的视频内容, 从而保证了第一 URL指向的 视频内容的连续性或者完整性。 因此, 利用本发明实施例的重定向方法, 用 户在观看该视频内容的时候不会出现中断, 从而提高了用户在线观看互联网 视频的使用体验。  It can be seen from the above that in the case that the working status of the first video server is abnormal, the video content pointed by the first URL can still be obtained by the second video server, thereby ensuring the continuity or completeness of the video content pointed by the first URL. Sex. Therefore, with the redirection method of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
当然, 为了进一步保证播放器能够获得第一 URL指向的视频内容, 在步 骤 1 3后, 还可断开与所述第一视频服务器的连接。  Of course, in order to further ensure that the player can obtain the video content pointed to by the first URL, after step 13, the connection with the first video server can also be disconnected.
如图 4所示, 本发明实施例二提供了一种重定向方法, 包括:  As shown in FIG. 4, the second embodiment of the present invention provides a redirection method, including:
步骤 21、 播放器接收第一视频服务器发送的第一 URL指向的视频内容。 此步骤的具体过程可参照本发明实施例一中步骤 1 1的描述。 步骤 22、 播放器检测所述第一视频服务器的工作状态。 Step 21: The player receives the video content pointed by the first URL sent by the first video server. For the specific process of this step, reference may be made to the description of step 11 in the first embodiment of the present invention. Step 22: The player detects an operating status of the first video server.
此步骤的具体过程可参照本发明实施例一中步骤 12的描述。  For the specific process of this step, refer to the description of step 12 in the first embodiment of the present invention.
步骤 23、 当所述第一视频服务器工作状态异常时, 播放器利用所述第一 URL重新请求所述第一 URL指向的视频内容。  Step 23: When the working status of the first video server is abnormal, the player re-requests the video content pointed by the first URL by using the first URL.
在此步骤中, 播放器可向任意的视频服务器重新请求所述第一 URL指向 的视频内容。 但是, 根据步骤 21 , 由于在客户端的浏览器中緩存的是第一视 频服务器的 IP 地址或者负载均衡器的 IP地址, 所以, 为进一步提高效率, 播放器可向第一视频服务器或者负载均衡器重新请求所述第一 URL指向的视 频内容。  In this step, the player can re-request the video content pointed to by the first URL to any video server. However, according to step 21, since the IP address of the first video server or the IP address of the load balancer is cached in the browser of the client, the player may move to the first video server or the load balancer to further improve the efficiency. Re-requesting the video content pointed to by the first URL.
当在客户端的浏览器中緩存的是第一视频服务器的 IP地址, 播放器向第 一视频服务器重新请求所述第一 URL指向的视频内容的具体过程可以包括: 播放器根据第一视频服务器的 IP 地址向第一视频服务器发送视频请求, 然后由第一视频服务器重新向播放器发送第一 URL指向的视频内容。 其中, 所述第一视频服务器可以将全部的第一 URL指向的视频内容重新发送给播放 器, 或者为了进一步提高用户的体验, 还可只将从播放器获得的第一 URL指 向的视频内容的中断处之后的内容继续发送给播放器。  When the IP address of the first video server is cached in the browser of the client, the specific process of the player re-requesting the video content pointed by the first URL to the first video server may include: the player according to the first video server The IP address sends a video request to the first video server, and then the first video server resends the video content pointed to by the first URL to the player. The first video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, only the video content pointed to by the first URL obtained from the player may be The content after the interruption continues to be sent to the player.
当在客户端的浏览器中緩存的是负载均衡器的 IP地址, 播放器向负载均 衡器重新请求所述第一 URL指向的视频内容的具体的过程可以是:  When the IP address of the load balancer is cached in the browser of the client, the specific process of the player re-requesting the video content pointed to by the first URL to the load balancer may be:
播放器根据负载均衡器的 IP地址向负载均衡器发送视频请求。 负载均衡 器根据各视频服务器与播放器所在客户端的距离、 视频服务器当前的资源使 用情况等选择一个合适的视频服务器(此实施例中为第三视频服务器)。 负载 均衡器向播放器发送重定向消息, 在该重定向消息中包括第三视频服务器的 IP地址, 通知播放器将第三视频服务器的 IP地址作为重定向的 IP地址, 然 后播放器向第三视频服务器发送视频请求, 并由第三视频服务器向播放器发 送视频内容。  The player sends a video request to the load balancer based on the IP address of the load balancer. The load balancer selects a suitable video server (the third video server in this embodiment) according to the distance between each video server and the client where the player is located, the current resource usage of the video server, and the like. The load balancer sends a redirect message to the player, includes the IP address of the third video server in the redirect message, and informs the player to use the IP address of the third video server as the redirected IP address, and then the player goes to the third The video server sends a video request and the third video server sends the video content to the player.
其中, 所述第三视频服务器可以将全部的第一 URL指向的视频内容重新 发送给播放器, 或者为了进一步提高用户的体验, 还可只将从播放器从第一 视频服务器获得第一 URL指向的视频内容的中断处以后的内容继续发送给播 放器。 The third video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, only the first player from the player may be The content after the video server obtains the interruption of the video content pointed to by the first URL continues to be sent to the player.
在上述负载均衡器选择合适的视频服务器的过程中, 负载均衡器可向各 个视频服务器发送状态请求消息, 由各个视频服务器通过状态响应消息上报 自身的情况, 再由视频服务器根据该状态响应消息选择合适的视频服务器。 或者, 还可由各视频服务器定时上报自身的状态信息, 由视频服务器根据该 状态信息选择合适的视频服务器。  In the process of selecting a suitable video server by the load balancer, the load balancer may send a status request message to each video server, and each video server reports its own status through the status response message, and then the video server selects according to the status response message. The right video server. Alternatively, each video server may periodically report its own status information, and the video server selects a suitable video server according to the status information.
步骤 24、 当重新请求失败时, 播放器根据所述第一 URL获得第二 URL。 此步骤的具体过程可参照本发明实施例一中步骤 1 3的描述。  Step 24: When the re-request fails, the player obtains the second URL according to the first URL. For the specific process of this step, refer to the description of step 13 in the first embodiment of the present invention.
步骤 25、 播放器发送视频请求, 在所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求中的第二 URL获 取所述第一 URL指向的视频内容。  Step 25: The player sends a video request, and the second URL is included in the video request, so that the video server that receives the video request can obtain the first URL pointing according to the second URL in the video request. Video content.
此步骤的具体过程可参照本发明实施例一中步骤 14的描述。  The specific process of this step can be referred to the description of step 14 in the first embodiment of the present invention.
步骤 26、 播放器接收由第二视频服务器发送的所述第一 URL指向的视频 内容。  Step 26: The player receives the video content pointed by the first URL sent by the second video server.
此步骤的具体过程可参照本发明实施例一中步骤 1 5的描述。  For the specific process of this step, refer to the description of step 15 in the first embodiment of the present invention.
由上可以看出, 在第一视频服务器出现工作状态异常的情况下, 播放器 可重新请求第一 URL指向的视频内容或者通过修改 URL的方式能获得第一 URL 指向的视频内容, 从而保证了第一 URL指向的视频内容的连续性或者完整性。 因此, 利用本发明实施例的重定向方法, 用户在观看该视频内容的时候不会 出现中断, 从而提高了用户在线观看互联网视频的使用体验。  It can be seen from the above that in the case that the working status of the first video server is abnormal, the player can re-request the video content pointed to by the first URL or obtain the video content pointed by the first URL by modifying the URL, thereby ensuring the video content. The continuity or integrity of the video content pointed to by the first URL. Therefore, with the redirection method of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
如图 5所示, 本发明实施例三提供了一种重定向方法, 包括:  As shown in FIG. 5, Embodiment 3 of the present invention provides a redirection method, including:
步骤 51、 播放器从第一视频服务器获取第一 URL指向的视频内容。  Step 51: The player acquires the video content pointed by the first URL from the first video server.
此步骤的具体过程可参照本发明实施例一中步骤 1 1的描述。  For the specific process of this step, refer to the description of step 1 1 in the first embodiment of the present invention.
步骤 52、 播放器检测所述第一视频服务器的工作状态。  Step 52: The player detects an operating status of the first video server.
此步骤的具体过程可参照本发明实施例一中步骤 1 2的描述。  For the specific process of this step, refer to the description of step 12 in the first embodiment of the present invention.
步骤 53、 当播放器检测到所述第一视频服务器工作状态异常时, 断开与 所述第一视频服务器的连接。 Step 53: When the player detects that the working state of the first video server is abnormal, disconnecting and The connection of the first video server.
步骤 54、 播放器向所述第一视频服务器或者负载均衡器重新请求所述第 — URL指向的视频内容。  Step 54: The player re-requests the video content pointed by the first URL to the first video server or the load balancer.
根据步骤 51中的两种获取第一 URL指向的视频内容的方式, 采用方式一 时, 在客户端的浏览器中緩存的是第一视频服务器的 IP地址, 因此, 播放器 可向第一视频服务器重新请求所述第一 URL指向的视频内容。  According to the manner in which the video content pointed to by the first URL is obtained in the two steps in step 51, the IP address of the first video server is cached in the browser of the client, so that the player can re-send to the first video server. Requesting the video content pointed to by the first URL.
因此, 此步骤的具体过程可以是: 播放器根据第一视频服务器的 IP地址 向第一视频服务器发送视频请求, 然后由第一视频服务器重新向播放器发送 第一 URL指向的视频内容。 其中, 所述第一视频服务器可以将全部的第一 URL 指向的视频内容重新发送给播放器, 或者为了进一步提高用户的体验, 还可 只将从播放器获得的第一 URL指向的视频内容的中断处之后的内容继续发送 给播放器。  Therefore, the specific process of this step may be: the player sends a video request to the first video server according to the IP address of the first video server, and then the first video server re-sends the video content pointed by the first URL to the player. The first video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, only the video content pointed to by the first URL obtained from the player may be The content after the interruption continues to be sent to the player.
根据步骤 51中的两种获取第一 URL指向的视频内容的方式, 采用方式二 时, 在客户端的浏览器中緩存的是负载均衡器的 IP地址, 因此, 播放器可向 负载均衡器重新请求所述第一 URL指向的视频内容。  According to the manner in which the video content pointed to by the first URL is obtained in the two steps in step 51, in the second mode, the IP address of the load balancer is cached in the browser of the client, so the player can re-request to the load balancer. The video content pointed to by the first URL.
具体的过程可以是: 播放器根据负载均衡器的 IP地址向负载均衡器发送 视频请求。 负载均衡器根据各视频服务器与播放器所在客户端的距离、 视频 服务器当前的资源使用情况等选择一个合适的视频服务器(此实施例中为第 三视频服务器)。 负载均衡器向播放器发送重定向消息, 在该重定向消息中包 括第三视频服务器的 IP地址, 通知播放器将第三视频服务器的 IP地址作为 重定向的 IP地址, 然后播放器向第三视频服务器发送视频请求, 并由第三视 频服务器向播放器发送视频内容。  The specific process may be: The player sends a video request to the load balancer according to the IP address of the load balancer. The load balancer selects a suitable video server (the third video server in this embodiment) according to the distance between each video server and the client where the player is located, the current resource usage of the video server, and the like. The load balancer sends a redirect message to the player, includes the IP address of the third video server in the redirect message, and informs the player to use the IP address of the third video server as the redirected IP address, and then the player goes to the third The video server sends a video request and the third video server sends the video content to the player.
其中, 所述第三视频服务器可以将全部的第一 URL指向的视频内容重新 发送给播放器, 或者为了进一步提高用户的体验, 还可只将从播放器从第一 视频服务器获得第一 URL指向的视频内容的中断处以后的内容继续发送给播 放器。  The third video server may resend the video content pointed by all the first URLs to the player, or in order to further improve the user experience, the first URL may only be obtained from the player from the first video server. The content of the interruption of the video content continues to be sent to the player.
在上述负载均衡器选择合适的视频服务器的过程中, 负载均衡器可向各 个视频服务器发送状态请求消息, 由各个视频服务器通过状态响应消息上报 自身的情况, 再由视频服务器根据该状态响应消息选择合适的视频服务器。 或者, 还可由各视频服务器定时上报自身的状态信息, 由视频服务器根据该 状态信息选择合适的视频服务器。 In the process of selecting the appropriate video server by the above load balancer, the load balancer can The video server sends a status request message, and each video server reports its own status through the status response message, and then the video server selects a suitable video server according to the status response message. Alternatively, each video server may periodically report its own status information, and the video server selects a suitable video server according to the status information.
步骤 55、 若重新请求成功时, 播放器接收所述第一视频服务器发送的所 述第一 URL指向的视频内容或者接收由所述负载均衡器重新指定的第三视频 服务器发送的所述第一 URL指向的视频内容。  Step 55: If the re-request is successful, the player receives the video content pointed by the first URL sent by the first video server or receives the first content sent by the third video server re-designated by the load balancer. The video content pointed to by the URL.
步骤 56、 若重新请求不成功, 则表明经过步骤 54后, 第一视频服务器仍 存在工作状态异常的情况。 此时, 播放器将修改第一 URL , 获得第二 URL。  Step 56: If the re-request is unsuccessful, it indicates that after the step 54, the first video server still has an abnormal working state. At this point, the player will modify the first URL to get the second URL.
其中在此步骤中,所述播放器可在第一 URL中增加一个前缀获得第二 URL。 例如, 第一 URL ^ ht tp: //v ideo, demos i t e. com/demo. mp4 , 第二 URL 为 ht tp: //new23415. v ideo. demos i te. com/demo. mp4。 其中, 新增力口的前缀为 "new23415,,。  In this step, the player may add a prefix to the first URL to obtain the second URL. For example, the first URL ^ ht tp: //v ideo, demos i t e. com/demo. mp4 , the second URL is ht tp: //new23415. v ideo. demos i te. com/demo. mp4. Among them, the prefix of the new force port is "new23415,,.
当然,还可有其他的对第一 URL进行修改的方式, 只要能够区分第一 URL 和第二 URL即可, 在此只是举例说明。  Of course, there may be other ways to modify the first URL, as long as the first URL and the second URL can be distinguished, which is merely an example.
步骤 57、 由于浏览器中没有緩存第二 URL , 因此, 播放器将会利用该第 二 URL重新进行内容路由过程。  Step 57: Since the second URL is not cached in the browser, the player will use the second URL to re-route the content.
此步骤的具体过程可参照本发明实施例一中步骤 14中相应的描述。  For a specific process of this step, refer to the corresponding description in step 14 of Embodiment 1 of the present invention.
步骤 58、播放器根据第二视频服务器的 IP地址向第二视频服务器发送视 频请求, 其中在所述视频请求中包括所述第二 URL。  Step 58: The player sends a video request to the second video server according to the IP address of the second video server, where the second URL is included in the video request.
其中所述视频请求中还可包括内容中断位置信息, 用于表示播放器从第 一视频服务器获得的第一 URL指向的视频内容是从何处中断的。  The video request may further include content interruption location information for indicating where the video content pointed by the first URL obtained by the player from the first video server is interrupted.
步骤 59、所述第二视频服务器去掉所述第二 URL中的前缀,获得第一 URL, 并根据所述第一 URL获得所述第一 URL指向的视频内容。  Step 59: The second video server removes the prefix in the second URL, obtains a first URL, and obtains video content pointed by the first URL according to the first URL.
步骤 510、所述第二视频服务器将所述第一 URL指向的视频内容发送给播 放器。  Step 510: The second video server sends the video content pointed by the first URL to the player.
或者, 在第一视频请求中还包括内容中断位置信息时, 将由所述内容中 断位置信息确定的位置开始的视频内容发送给播放器。 Or, when the content interruption location information is further included in the first video request, The video content starting from the position determined by the broken position information is sent to the player.
由上可以看出, 利用本发明实施例三的重定向方法, 用户在观看该视频 内容的时候不会出现中断, 从而提高了用户在线观看互联网视频的使用体验。  It can be seen from the above that with the redirection method of the third embodiment of the present invention, the user does not have an interruption when viewing the video content, thereby improving the user experience of watching the Internet video online.
如图 6所示, 本发明实施例四还提供了一种重定向装置, 包括: 内容接收单元 61 , 用于接收第一视频服务器发送的第一 URL指向的视频 内容; 状态检测单元 62 , 用于检测所述第一视频服务器的工作状态; 信息修 改单元 63 , 用于当所述第一视频服务器工作状态异常时, 根据所述第一 URL 获得第二 URL; 重定向单元 64 , 用于发送视频请求, 其中所述视频请求中包 括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求 中的第二 URL获取所述第一 URL指向的视频内容, 并接收由第二视频服务器 发送的所述第一 URL指向的视频内容。  As shown in FIG. 6, the fourth embodiment of the present invention further provides a redirection device, including: a content receiving unit 61, configured to receive video content pointed by a first URL sent by a first video server; and a state detecting unit 62. The information modifying unit 63 is configured to: when the working status of the first video server is abnormal, obtain a second URL according to the first URL; and the redirecting unit 64 is configured to send a video request, wherein the video request includes the second URL, so that the video server that receives the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive The video content pointed by the first URL sent by the second video server.
其中, 如图 7所示, 所述状态检测单元 62可包括: 检测模块 621 , 用于 检测预定时间内从所述第一视频服务器接收的第一 URL指向的视频内容的字 节数; 判断模块 622 , 用于当在所述预定时间内接收到的字节数为 0时, 确定 所述第一视频服务器的工作状态异常; 当在所述预定时间内接收到的字节数 不为 0时, 确定所述第一视频服务器的工作状态正常。  The status detecting unit 62 may include: a detecting module 621, configured to detect a number of bytes of video content pointed by the first URL received from the first video server within a predetermined time; 622. Determine, when the number of bytes received in the predetermined time is 0, that an operating state of the first video server is abnormal; when the number of bytes received in the predetermined time is not 0. And determining that the working state of the first video server is normal.
其中, 所述信息修改单元 63具体用于当所述第一视频服务器工作状态异 常时, 在所述第一 URL中增加前缀获得所述第二 URL。  The information modification unit 63 is specifically configured to: when the working status of the first video server is abnormal, add a prefix to the first URL to obtain the second URL.
如图 8所示, 所述重定向单元 63可包括: 信息获取模块 631 , 用于发送 DNS解析请求, 在所述 DNS解析请求中包括所述第二 URL , 从负载均衡器获得 所述第二视频服务器的信息; 重定向模块 632 , 用于利用所述第二视频服务器 的信息向所述第二视频服务器发送视频请求, 在所述视频请求中携带所述第 二 URL , 以便所述第二视频服务器根据所述视频请求中的第二 URL , 去掉所述 第二 URL的前缀, 获得第一 URL,并根据所述第一 URL获得所述第一 URL指向 的视频内容; 接收模块 633 , 用于接收由所述第二视频服务器发送的所述第一 URL指向的视频内容。  As shown in FIG. 8, the redirection unit 63 may include: an information obtaining module 631, configured to send a DNS resolution request, include the second URL in the DNS resolution request, and obtain the second from a load balancer a redirection module 632, configured to send a video request to the second video server by using information of the second video server, where the second URL is carried in the video request, so that the second The video server removes the prefix of the second URL according to the second URL in the video request, obtains the first URL, and obtains the video content pointed by the first URL according to the first URL; the receiving module 633, Receiving video content pointed by the first URL sent by the second video server.
此外, 如方法实施例中的描述, 所述视频请求中还包括内容中断位置信 息。 因此, 所述重定向模块利用所述第二视频服务器的信息向所述第二视频 服务器发送视频请求, 在所述视频请求中携带所述第二 URL , 以便所述第二视 频服务器根据所述第二 URL获得第一 URL,并根据所述第一 URL和所述内容中 断位置信息获得所述第一 URL指向的视频内容中由所述内容中断位置信息确 定的位置开始的视频内容。 In addition, as described in the method embodiment, the video request further includes a content interruption location letter. Interest. Therefore, the redirection module sends a video request to the second video server by using the information of the second video server, and the second URL is carried in the video request, so that the second video server is configured according to the second video server. The second URL obtains the first URL, and obtains video content starting from the location determined by the content interruption location information in the video content pointed by the first URL according to the first URL and the content interruption location information.
此外, 如图 8所示, 所述重定向单元 6 3还可包括: 连接操作模块 634 , 用于当所述第一视频服务器工作状态异常时, 断开与所述第一视频服务器的 连接。 从而保证该装置能够重新获得第一 URL指向的视频内容。  In addition, as shown in FIG. 8, the redirection unit 63 may further include: a connection operation module 634, configured to disconnect the connection with the first video server when the working status of the first video server is abnormal. Thereby ensuring that the device can regain the video content pointed to by the first URL.
其中, 所述重定向单元 63的工作原理可参照前述方法实施例的描述。 由上可以看出, 在第一视频服务器出现工作状态异常的情况下, 仍能由 第二视频服务器重新获得第一 URL指向的视频内容, 从而保证了第一 URL指 向的视频内容的连续性或者完整性。 因此, 利用本发明实施例的重定向装置, 用户在观看该视频内容的时候不会出现中断, 从而提高了用户在线观看互联 网视频的使用体验。  The working principle of the redirection unit 63 can be referred to the description of the foregoing method embodiments. It can be seen from the above that in the case that the working status of the first video server is abnormal, the video content pointed by the first URL can still be retrieved by the second video server, thereby ensuring the continuity of the video content pointed by the first URL or Integrity. Therefore, with the redirection device of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
其中图 6-图 8任一所示的装置可位于客户端的播放器中。  The device shown in any of Figures 6-8 can be located in the player of the client.
如图 9所示, 本发明实施例五还提供了一种重定向装置, 包括: 内容接收单元 91 , 用于接收第一视频服务器发送的第一 URL指向的视频 内容; 状态检测单元 92 , 用于检测所述第一视频服务器的工作状态; 内容请 求单元 93 , 用于当所述第一视频服务器工作状态异常时, 利用所述第一 URL 重新请求所述第一 URL指向的视频内容; 信息修改单元 94 , 用于当重新请求 失败时, 根据所述第一 URL获得第二 URL; 重定向单元 95 , 用于发送视频请 求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服 务器能够根据所述视频请求中的第二 URL获取所述第一 URL指向的视频内容, 并接收由第二视频服务器发送的所述第一 URL指向的视频内容。  As shown in FIG. 9, the fifth embodiment of the present invention further provides a redirection device, including: a content receiving unit 91, configured to receive video content pointed by a first URL sent by a first video server; and a state detecting unit 92. The content requesting unit 93 is configured to re-request the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal; a modifying unit 94, configured to obtain a second URL according to the first URL when the re-request fails; the redirecting unit 95 is configured to send a video request, where the video request includes the second URL, so as to receive The video server of the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive the video content pointed by the first URL sent by the second video server.
其中, 所述状态检测单元可包括: 检测模块, 用于检测预定时间内从所 述第一视频服务器接收的第一 URL指向的视频内容的字节数; 判断模块, 用 于当在所述预定时间内接收到的字节数为 0 时, 确定所述第一视频服务器的 工作状态异常; 当在所述预定时间内接收到的字节数不为 0 时, 确定所述第 一视频服务器的工作状态正常。 The status detecting unit may include: a detecting module, configured to detect a number of bytes of video content pointed to by the first URL received from the first video server within a predetermined time; and a determining module, configured to be in the predetermined Determining the first video server when the number of bytes received in the time is 0 The working status is abnormal; when the number of bytes received within the predetermined time is not 0, it is determined that the working state of the first video server is normal.
如前所述, 所述内容请求单元 93可向任意的视频服务器重新请求所述第 一 URL指向的视频内容。 但是为了进一步提高效率, 所述内容请求单元 93可 向第一视频服务器或负载均衡器请求第一 URL指向的视频内容。 具体的, 所 述内容请求单元 9 3可包括: 信息接收模块, 用于接收所述状态检测单元发送 的工作状态检测结果, 其中所述工作状态检测结果表示第一视频服务器工作 状态异常; 内容请求模块, 用于根据所述工作状态检测结果, 向所述第一视 频服务器或者负载均衡器重新请求所述第一 URL指向的视频内容。 此时, 所 述内容接收单元 91还用于在重新请求成功时, 接收所述第一视频服务器发送 的所述第一 URL指向的视频内容或者接收由所述负载均衡器重新指定的第三 视频服务器发送的所述第一 URL指向的视频内容。  As described above, the content requesting unit 93 can re-request the video content pointed to by the first URL to any video server. However, to further improve efficiency, the content requesting unit 93 may request the video content pointed to by the first URL from the first video server or the load balancer. Specifically, the content requesting unit 93 may include: an information receiving module, configured to receive a working state detection result sent by the state detecting unit, where the working state detection result indicates that the first video server is in an abnormal working state; And a module, configured to re-request the video content pointed by the first URL to the first video server or the load balancer according to the working state detection result. At this time, the content receiving unit 91 is further configured to: when the re-request is successful, receive the video content pointed by the first URL sent by the first video server or receive the third video re-specified by the load balancer. The video content pointed by the first URL sent by the server.
其中, 所述信息修改单元 94具体用于当所述第一视频服务器工作状态异 常时, 在所述第一 URL中增加前缀获得所述第二 URL。  The information modification unit 94 is specifically configured to: when the working status of the first video server is abnormal, add a prefix to the first URL to obtain the second URL.
其中, 所述重定向单元 95 可包括(图中未示出): 信息获取模块, 用于 发送 DNS解析请求, 在所述 DNS解析请求中包括所述第二 URL , 从负载均衡器 获得所述第二视频服务器的信息; 重定向模块, 用于利用所述第二视频服务 器的信息向所述第二视频服务器发送视频请求, 在所述视频请求中携带所述 第二 URL , 以便所述第二视频服务器根据所述视频请求中的第二 URL , 去掉所 述第二 URL的前缀, 获得第一 URL,并根据所述第一 URL获得所述第一 URL指 向的视频内容; 接收模块, 用于接收由所述第二视频服务器发送的所述第一 URL指向的视频内容。  The redirection unit 95 may include: (not shown): an information obtaining module, configured to send a DNS resolution request, including the second URL in the DNS resolution request, and obtaining the a second video server, the redirection module, configured to send a video request to the second video server by using the information of the second video server, where the second URL is carried in the video request, so that the The second video server removes the prefix of the second URL according to the second URL in the video request, obtains the first URL, and obtains the video content pointed by the first URL according to the first URL; Receiving video content pointed by the first URL sent by the second video server.
此外, 如方法实施例中的描述, 所述视频请求中还包括内容中断位置信 息。 因此, 所述重定向模块利用所述第二视频服务器的信息向所述第二视频 服务器发送视频请求, 在所述视频请求中携带所述第二 URL , 以便所述第二视 频服务器根据所述第二 URL获得第一 URL,并根据所述第一 URL和所述内容中 断位置信息获得所述第一 URL指向的视频内容中由所述内容中断位置信息确 定的位置开始的视频内容。 In addition, as described in the method embodiment, the video request further includes content interruption location information. Therefore, the redirection module sends a video request to the second video server by using the information of the second video server, and the second URL is carried in the video request, so that the second video server is configured according to the second video server. Obtaining, by the second URL, the first URL, and obtaining, according to the first URL and the content interruption location information, that the video content pointed by the first URL is determined by the content interruption location information The video content at the beginning of the location.
此外, 所述重定向单元 95还可包括(图中未示出): 连接操作模块, 用 于当所述第一视频服务器工作状态异常时, 断开与所述第一视频服务器的连 接。 从而保证该装置能够重新获得第一 URL指向的视频内容。  In addition, the redirection unit 95 may further include (not shown): a connection operation module, configured to disconnect the first video server when the first video server is in an abnormal state of operation. Thereby ensuring that the device can regain the video content pointed to by the first URL.
其中, 所述重定向单元 95的工作原理可参照前述方法实施例的描述。 其中本发明实施例所述重定向装置的工作原理可参照方法实施例二的描 述。 其中图 9所示的装置可位于客户端的播放器中。  The working principle of the redirection unit 95 can be referred to the description of the foregoing method embodiments. For the working principle of the redirection device according to the embodiment of the present invention, reference may be made to the description of the second embodiment of the method. The device shown in Figure 9 can be located in the player of the client.
由上可以看出, 在第一视频服务器出现工作状态异常的情况下, 播放器 可重新请求第一 URL指向的视频内容或者通过修改 URL的方式能获得第一 URL 指向的视频内容, 从而保证了第一 URL指向的视频内容的连续性或者完整性。 因此, 利用本发明实施例的重定向装置, 用户在观看该视频内容的时候不会 出现中断, 从而提高了用户在线观看互联网视频的使用体验。  It can be seen from the above that in the case that the working status of the first video server is abnormal, the player can re-request the video content pointed to by the first URL or obtain the video content pointed by the first URL by modifying the URL, thereby ensuring the video content. The continuity or integrity of the video content pointed to by the first URL. Therefore, with the redirection device of the embodiment of the present invention, the user does not interrupt when viewing the video content, thereby improving the user experience of watching the Internet video online.
通过以上描述可以看出, 利用本发明实施例的重定向方法及装置, 能够 保证用户在线观看视频时的连续性, 从而提高了用户观看视频时的体验。  It can be seen from the above description that the redirection method and device of the embodiment of the present invention can ensure the continuity of the user when watching the video online, thereby improving the experience of the user when watching the video.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体 ( Random Acces s Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利 要求 书 Claim
1、 一种重定向方法, 其特征在于, 包括: A redirecting method, comprising:
接收第一视频服务器发送的第一统一资源定位符 URL指向的视频内容; 检测所述第一视频服务器的工作状态;  Receiving video content pointed by the first uniform resource locator URL sent by the first video server; detecting an operating status of the first video server;
当所述第一视频服务器工作状态异常时, 根据所述第一 URL获得第二 URL; 发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频 请求的视频服务器能够根据所述视频请求中的第二 URL获取所述第一 URL指向 的视频内容;  When the working status of the first video server is abnormal, obtaining a second URL according to the first URL; sending a video request, where the video request includes the second URL, so as to receive the video server of the video request And acquiring, according to the second URL in the video request, the video content pointed by the first URL;
接收由第二视频服务器发送的所述第一 URL指向的视频内容。  Receiving video content pointed by the first URL sent by the second video server.
2、 根据权利要求 1所述的方法, 其特征在于, 所述检测所述第一视频服务 器的工作状态包括:  2. The method according to claim 1, wherein the detecting the working state of the first video server comprises:
检测预定时间内从所述第一视频服务器接收的第一 URL指向的视频内容的 字节数;  Detecting a number of bytes of video content pointed to by the first URL received from the first video server within a predetermined time;
当在所述预定时间内接收到的字节数为 0 时, 所述第一视频服务器的工作 状态异常; 当在所述预定时间内接收到的字节数不为 0 时, 所述第一视频服务 器的工作状态正常。  When the number of bytes received in the predetermined time is 0, the working state of the first video server is abnormal; when the number of bytes received in the predetermined time is not 0, the first The video server is working properly.
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述第一 URL获得 第二 URL包括: 在所述第一 URL中增加前缀获得所述第二 URL。  The method according to claim 1, wherein the obtaining the second URL according to the first URL comprises: adding a prefix to the first URL to obtain the second URL.
4、 根据权利要求 1所述的方法, 其特征在于, 所述收到所述视频请求的视 频服务器包括所述第二视频服务器; 所述发送视频请求, 其中所述视频请求中 包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求 中的第二 URL获取所述第一 URL指向的视频内容包括:  The method according to claim 1, wherein the video server that receives the video request includes the second video server, and the video request is sent, wherein the video request includes the first a second URL, wherein the video server that receives the video request can obtain the video content pointed by the first URL according to the second URL in the video request, including:
发送 DNS解析请求, 在所述 DNS解析请求中包括所述第二 URL ,从负载均衡 器获得第二视频服务器的信息;  Sending a DNS resolution request, including the second URL in the DNS resolution request, and obtaining information of the second video server from the load balancer;
利用所述第二视频服务器的信息向所述第二视频服务器发送视频请求, 在 所述视频请求中携带所述第二 URL , 以便所述第二视频服务器根据所述视频请求 获得所述第二 URL , 去掉所述第二 URL的前缀, 获得第一 URL , 并根据所述第一 URL获得所述第一 URL指向的视频内容。 Sending a video request to the second video server by using information of the second video server, and carrying the second URL in the video request, so that the second video server obtains the second according to the video request a URL, removing the prefix of the second URL, obtaining a first URL, and according to the first The URL obtains the video content pointed to by the first URL.
5、 根据权利要求 4所述的方法, 其特征在于, 所述视频请求中还包括内容 中断位置信息; 所述以便所述第二视频服务器根据所述视频请求中的第二 URL , 去掉所述第二 URL的前缀, 获得第一 URL , 并根据所述第一 URL获得所述第一 URL指向的视频内容包括:  The method according to claim 4, wherein the video request further includes content interruption location information; wherein the second video server removes the second URL according to the second URL in the video request. The prefix of the second URL, obtaining the first URL, and obtaining the video content pointed by the first URL according to the first URL includes:
以便所述第二视频服务器根据所述视频请求获得所述第二 URL和所述内容 中断位置信息,去掉所述第二 URL的前缀, 获得第一 URL , ,并根据所述第一 URL 和所述内容中断位置信息获得所述第一 URL指向的视频内容中由所述内容中断 位置信息确定的位置开始的视频内容。  So that the second video server obtains the second URL and the content interruption location information according to the video request, removes the prefix of the second URL, obtains the first URL, and according to the first URL and the The content interruption location information obtains video content starting from a location determined by the content interruption location information in the video content pointed by the first URL.
6、 根据权利要求 1-5任一所述的方法, 其特征在于, 当所述第一视频服务 器工作状态异常时, 根据所述第一 URL获得第二 URL后, 所述方法还包括: 断开与所述第一视频服务器的连接。  The method according to any one of claims 1-5, wherein, when the working status of the first video server is abnormal, after obtaining the second URL according to the first URL, the method further includes: Opening a connection with the first video server.
7、 一种重定向方法, 其特征在于, 包括:  7. A redirection method, comprising:
接收第一视频服务器发送的第一统一资源定位符 URL指向的视频内容; 检测所述第一视频服务器的工作状态;  Receiving video content pointed by the first uniform resource locator URL sent by the first video server; detecting an operating status of the first video server;
当所述第一视频服务器工作状态异常时, 利用所述第一 URL 重新请求所述 第一 URL指向的视频内容;  Retrieving the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal;
当重新请求失败时, 根据所述第一 URL获得第二 URL;  When the re-request fails, obtaining the second URL according to the first URL;
发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频 请求的视频服务器能够根据所述视频请求中的第二 URL获取所述第一 URL指向 的视频内容;  Sending a video request, wherein the video request includes the second URL, so that the video server that receives the video request can obtain the video content pointed by the first URL according to the second URL in the video request;
接收由第二视频服务器发送的所述第一 URL指向的视频内容。  Receiving video content pointed by the first URL sent by the second video server.
8、 根据权利要求 7所述的方法, 其特征在于, 所述当所述第一视频服务器 工作状态异常时, 利用所述第一 URL重新请求所述第一 URL指向的视频内容包 括:  The method according to claim 7, wherein, when the working status of the first video server is abnormal, re-requesting the video content pointed by the first URL by using the first URL includes:
向所述第一视频服务器或者负载均衡器重新请求所述第一 URL指向的视频 内容, 并在重新请求成功时, 接收所述第一视频服务器发送的所述第一 URL指 向的视频内容或者接收由所述负载均衡器重新指定的第三视频服务器发送的所 述第一 URL指向的视频内容。 Re-requesting the video content pointed by the first URL to the first video server or the load balancer, and receiving the first URL index sent by the first video server when the re-request is successful The video content to the video content or the third URL sent by the third video server re-specified by the load balancer.
9、 根据权利要求 8所述的方法, 其特征在于, 所述在重新请求成功时, 接 收所述第一视频服务器发送的所述第一 URL指向的视频内容或者接收由所述负 载均衡器重新指定的第三视频服务器发送的所述第一 URL指向的视频内容包括: 在重新请求成功时, 接收由所述第一视频服务器重新发送的所述第一 URL 指向的视频内容或者从所述第一 URL指向的视频内容的中断处继续发送的第一 URL指向的视频内容; 或者  The method according to claim 8, wherein, when the re-request is successful, receiving the video content pointed by the first URL sent by the first video server or receiving the restart by the load balancer The video content pointed by the first URL sent by the specified third video server includes: receiving, when the re-request is successful, receiving the video content pointed by the first URL resent by the first video server or from the The video content pointed to by the first URL that continues to be sent at the interruption of the video content pointed to by the URL; or
在重新请求成功时, 接收由所述负载均衡器重新指定的所述第三视频服务 器发送的所述第一 URL指向的视频内容或者从所述第三视频服务器接收从所述 第一 URL指向的视频内容的中断处开始的第一 URL指向的视频内容。  Receiving, when the re-request is successful, receiving video content pointed by the first URL sent by the third video server re-specified by the load balancer or receiving from the third video server from the first URL The video content pointed to by the first URL at the beginning of the interruption of the video content.
10、 根据权利要求 7-9任一所述的方法, 其特征在于, 当所述第一视频服 务器工作状态异常时, 根据所述第一 URL获得第二 URL后, 所述方法还包括: 断开与所述第一视频服务器的连接。  The method according to any one of claims 7-9, wherein, when the working status of the first video server is abnormal, after obtaining the second URL according to the first URL, the method further includes: Opening a connection with the first video server.
11、 一种重定向装置, 其特征在于, 包括:  11. A redirection device, comprising:
内容接收单元, 用于接收第一视频服务器发送的第一 URL指向的视频内容; 状态检测单元, 用于检测所述第一视频服务器的工作状态;  a content receiving unit, configured to receive video content pointed by the first URL sent by the first video server, and a state detecting unit, configured to detect an working state of the first video server;
信息修改单元, 用于当所述第一视频服务器工作状态异常时, 根据所述第 An information modification unit, configured to: when the working status of the first video server is abnormal, according to the
— URL获得第二 URL; - the URL gets the second URL;
重定向单元, 用于发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求中的第二 URL 获取 所述第一 URL指向的视频内容, 并接收由第二视频服务器发送的所述第一 URL 指向的视频内容。  a redirecting unit, configured to send a video request, where the video request includes the second URL, so that a video server that receives the video request can obtain the first URL according to a second URL in the video request Pointing to the video content, and receiving the video content pointed by the first URL sent by the second video server.
12、 根据权利要求 11所述的装置, 其特征在于, 所述状态检测单元包括: 检测模块, 用于检测预定时间内从所述第一视频服务器接收的第一 URL指 向的视频内容的字节数;  The device according to claim 11, wherein the state detecting unit comprises: a detecting module, configured to detect a byte of the video content pointed by the first URL received from the first video server within a predetermined time Number
判断模块, 用于当在所述预定时间内接收到的字节数为 0 时, 确定所述第 一视频服务器的工作状态异常; 当在所述预定时间内接收到的字节数不为 0时, 确定所述第一视频服务器的工作状态正常。 a determining module, configured to determine, when the number of bytes received in the predetermined time is 0 The working state of a video server is abnormal; when the number of bytes received in the predetermined time is not 0, it is determined that the working state of the first video server is normal.
1 3、 根据权利要求 11所述的装置, 其特征在于, 所述信息修改单元具体用 于: 当所述第一视频服务器工作状态异常时, 在所述第一 URL 中增加前缀获得 所述第二 URL。  The apparatus according to claim 11, wherein the information modification unit is specifically configured to: when the working status of the first video server is abnormal, adding a prefix to the first URL to obtain the first Two URLs.
14、 根据权利要求 11所述的装置, 其特征在于, 所述重定向单元包括: 信息获取模块, 用于发送 DNS解析请求, 在所述 DNS解析请求中包括所述 第二 URL , 从负载均衡器获得所述第二视频服务器的信息;  The apparatus according to claim 11, wherein the redirection unit comprises: an information obtaining module, configured to send a DNS resolution request, including the second URL in the DNS resolution request, and load balancing Obtaining information of the second video server;
重定向模块, 用于利用所述第二视频服务器的信息向所述第二视频服务器 发送视频请求, 在所述视频请求中携带所述第二 URL , 以便所述第二视频服务器 根据所述视频请求中的第二 URL , 去掉所述第二 URL的前缀, 获得第一 URL , 并 根据所述第一 URL获得所述第一 URL指向的视频内容;  a redirecting module, configured to send a video request to the second video server by using information of the second video server, where the second URL is carried in the video request, so that the second video server is configured according to the video a second URL in the request, removing the prefix of the second URL, obtaining a first URL, and obtaining video content pointed by the first URL according to the first URL;
接收模块, 用于接收由所述第二视频服务器发送的所述第一 URL指向的视 频内容。  And a receiving module, configured to receive video content pointed by the first URL sent by the second video server.
15、 根据权利要求 14所述的装置, 其特征在于, 所述重定向单元还包括: 连接操作模块, 用于当所述第一视频服务器工作状态异常时, 断开与所述 第一视频服务器的连接。  The device according to claim 14, wherein the redirection unit further comprises: a connection operation module, configured to disconnect from the first video server when the working state of the first video server is abnormal Connection.
16、 一种重定向装置, 其特征在于, 包括:  16. A redirection device, comprising:
内容接收单元, 用于接收第一视频服务器发送的第一 URL指向的视频内容; 状态检测单元, 用于检测所述第一视频服务器的工作状态;  a content receiving unit, configured to receive video content pointed by the first URL sent by the first video server, and a state detecting unit, configured to detect an working state of the first video server;
内容请求单元, 用于当所述第一视频服务器工作状态异常时, 利用所述第 一 URL重新请求所述第一 URL指向的视频内容;  a content requesting unit, configured to re-request the video content pointed by the first URL by using the first URL when the working status of the first video server is abnormal;
信息修改单元, 用于当重新请求失败时, 根据所述第一 URL获得第二 URL; 重定向单元, 用于发送视频请求, 其中所述视频请求中包括所述第二 URL , 以便收到所述视频请求的视频服务器能够根据所述视频请求中的第二 URL 获取 所述第一 URL指向的视频内容, 并接收由第二视频服务器发送的所述第一 URL 指向的视频内容。 An information modification unit, configured to: obtain a second URL according to the first URL when the re-request fails; and a redirection unit, configured to send a video request, where the video request includes the second URL, so as to receive the The video server of the video request can acquire the video content pointed by the first URL according to the second URL in the video request, and receive the video content pointed by the first URL sent by the second video server.
17、 根据权利要求 16所述的装置, 其特征在于, 所述状态检测单元包括: 检测模块, 用于检测预定时间内从所述第一视频服务器接收的第一 URL指 向的视频内容的字节数; The device according to claim 16, wherein the state detecting unit comprises: a detecting module, configured to detect a byte of the video content pointed by the first URL received from the first video server within a predetermined time Number
判断模块, 用于当在所述预定时间内接收到的字节数为 0 时, 确定所述第 一视频服务器的工作状态异常; 当在所述预定时间内接收到的字节数不为 0时, 确定所述第一视频服务器的工作状态正常。  a determining module, configured to determine that an operating state of the first video server is abnormal when the number of bytes received in the predetermined time is 0; when the number of bytes received in the predetermined time is not 0 When it is determined, the working state of the first video server is normal.
18、 根据权利要求 16所述的装置, 其特征在于, 所述内容请求单元包括: 信息接收模块, 用于接收所述状态检测单元发送的工作状态检测结果, 其 中所述工作状态检测结果表示第一视频服务器工作状态异常;  The device according to claim 16, wherein the content requesting unit includes: an information receiving module, configured to receive a working state detection result sent by the state detecting unit, where the working state detection result indicates A video server is working abnormally;
内容请求模块, 用于根据所述工作状态检测结果, 向所述第一视频服务器 或者负载均衡器重新请求所述第一 URL指向的视频内容;  a content requesting module, configured to re-request the video content pointed by the first URL to the first video server or the load balancer according to the working state detection result;
所述内容接收单元还用于在重新请求成功时, 接收所述第一视频服务器发 送的所述第一 URL指向的视频内容或者接收由所述负载均衡器重新指定的第三 视频服务器发送的所述第一 URL指向的视频内容。  The content receiving unit is further configured to: when the re-request is successful, receive the video content pointed by the first URL sent by the first video server or receive the third video server that is re-designated by the load balancer The video content pointed to by the first URL.
19、 根据权利要求 16所述的装置, 其特征在于, 所述信息修改单元具体用 于: 当所述第一视频服务器工作状态异常时, 在所述第一 URL 中增加前缀获得 所述第二 URL。  The device according to claim 16, wherein the information modification unit is configured to: when the working state of the first video server is abnormal, adding a prefix to the first URL to obtain the second URL.
20、 根据权利要求 16-19任一所述的装置, 其特征在于, 所述重定向单元 包括:  The apparatus according to any one of claims 16 to 19, wherein the redirection unit comprises:
信息获取模块, 用于发送 DNS解析请求, 在所述 DNS解析请求中包括所述 第二 URL , 从负载均衡器获得所述第二视频服务器的信息;  An information obtaining module, configured to send a DNS resolution request, including the second URL in the DNS resolution request, and obtaining information of the second video server from a load balancer;
重定向模块, 用于利用所述第二视频服务器的信息向所述第二视频服务器 发送视频请求, 在所述视频请求中携带所述第二 URL , 以便所述第二视频服务器 根据所述视频请求中的第二 URL , 去掉所述第二 URL的前缀, 获得第一 URL , 并 根据所述第一 URL获得所述第一 URL指向的视频内容;  a redirecting module, configured to send a video request to the second video server by using information of the second video server, where the second URL is carried in the video request, so that the second video server is configured according to the video a second URL in the request, removing the prefix of the second URL, obtaining a first URL, and obtaining video content pointed by the first URL according to the first URL;
接收模块, 用于接收由所述第二视频服务器发送的所述第一 URL指向的视 频内容。 a receiving module, configured to receive video content pointed by the first URL sent by the second video server.
21、 根据权利要求 20所述的装置, 其特征在于, 所述重定向单元还包括: 连接操作模块, 用于当所述第一视频服务器工作状态异常时, 断开与所述 第一视频服务器的连接。 The device according to claim 20, wherein the redirection unit further comprises: a connection operation module, configured to disconnect from the first video server when the working state of the first video server is abnormal Connection.
PCT/CN2010/080443 2010-12-29 2010-12-29 Redirection method and apparatus WO2011150652A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2010/080443 WO2011150652A1 (en) 2010-12-29 2010-12-29 Redirection method and apparatus
CN201080004374.0A CN102388623B (en) 2010-12-29 2010-12-29 Redirection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2010/080443 WO2011150652A1 (en) 2010-12-29 2010-12-29 Redirection method and apparatus

Publications (1)

Publication Number Publication Date
WO2011150652A1 true WO2011150652A1 (en) 2011-12-08

Family

ID=45066143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080443 WO2011150652A1 (en) 2010-12-29 2010-12-29 Redirection method and apparatus

Country Status (2)

Country Link
CN (1) CN102388623B (en)
WO (1) WO2011150652A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968403A (en) * 2005-11-18 2007-05-23 阿尔卡特公司 Method for initiating or recovering a media-on-demand session, and protocol redirector
CN101583022A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Method for playing video monitoring client terminal and system
CN101681318A (en) * 2007-04-05 2010-03-24 艾利森电话股份有限公司 Communication terminal, method for controlling communication terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438585B2 (en) * 1998-05-29 2002-08-20 Research In Motion Limited System and method for redirecting message attachments between a host system and a mobile data communication device
US20040006623A1 (en) * 2002-07-05 2004-01-08 Telefonaktiebolaget L M Ericsson (Publ) Service providing mechanism
EP1906617A1 (en) * 2006-09-27 2008-04-02 Gemplus Method for a called device to instruct a caller device to establish a communication session with a destination device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968403A (en) * 2005-11-18 2007-05-23 阿尔卡特公司 Method for initiating or recovering a media-on-demand session, and protocol redirector
CN101681318A (en) * 2007-04-05 2010-03-24 艾利森电话股份有限公司 Communication terminal, method for controlling communication terminal
CN101583022A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Method for playing video monitoring client terminal and system

Also Published As

Publication number Publication date
CN102388623B (en) 2013-10-02
CN102388623A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
US10778554B2 (en) Latency measurement in resource requests
US9912740B2 (en) Latency measurement in resource requests
US9253065B2 (en) Latency measurement in resource requests
US9185012B2 (en) Latency measurement in resource requests
US8971820B2 (en) Power consumption reduction in a user terminal
US9451046B2 (en) Managing CDN registration by a storage provider
TWI535255B (en) A metod and device thereof for sending business requirements
WO2012113262A1 (en) Download method, system, and device for mobile terminal
EP2953319A1 (en) Method, system and various components of such a system for selecting a chunk identifier
WO2012089062A1 (en) Method and device for data transmission in cdn network
EP2972954A2 (en) Dynamically optimizing content delivery using manifest chunking
CN109302437B (en) Method and device for redirecting website
KR101774983B1 (en) Method, apparatus, and system for monitoring quality of ott video
WO2014067070A1 (en) Data transmission method, switching method, data transmission apparatus, switching apparatus, user equipment, wireless access node, data transmission system and switching system
US20240073274A1 (en) Accelerating connections to a host server
WO2014114219A1 (en) Method, device and system for evaluating user experience value of video quality<0}
WO2014179950A1 (en) File uploading method, client, and server
KR20160083675A (en) Method for providing of live streaming contents, apparatus and recording medium recording program therfor
US20120072604A1 (en) technique for delivering content to a user
KR101650829B1 (en) Method, apparatus, and system for acquiring object
WO2011150652A1 (en) Redirection method and apparatus
CN110809064B (en) IP address switching method, device and system
CN115190319A (en) Video playing method and video playing device
US9288153B2 (en) Processing encoded content
US10951501B1 (en) Monitoring availability of content delivery networks

Legal Events

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

Ref document number: 201080004374.0

Country of ref document: CN

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

Ref document number: 10852447

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

Country of ref document: EP

Kind code of ref document: A1