CN102388623A - Redirection method and apparatus - Google Patents

Redirection method and apparatus Download PDF

Info

Publication number
CN102388623A
CN102388623A CN2010800043740A CN201080004374A CN102388623A CN 102388623 A CN102388623 A CN 102388623A CN 2010800043740 A CN2010800043740 A CN 2010800043740A CN 201080004374 A CN201080004374 A CN 201080004374A CN 102388623 A CN102388623 A CN 102388623A
Authority
CN
China
Prior art keywords
url
video
video server
request
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010800043740A
Other languages
Chinese (zh)
Other versions
CN102388623B (en
Inventor
冯江平
代金良
张军
许志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102388623A publication Critical patent/CN102388623A/en
Application granted granted Critical
Publication of CN102388623B publication Critical patent/CN102388623B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

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 apparatus
A kind of reorientation method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of reorientation method and device.
Background technology
User when watching internet video by browser, it is necessary to player plug-in unit and player application online.When playing video, browser initializes player plug-in unit first, and player plug-in unit performs player application again, asks video to video server and performs the operation such as pause, dragging.
Most video websites can provide the user Video service simultaneously using multiple video servers simultaneously at present.In order to effectively utilize resource, typically the video request of user averraged on each video server using load-balanced server using load-balancing technique.The process of wherein load-balanced server selection video server is referred to as contents construction.
In the prior art, there are two kinds of contents construction technologies, be respectively:Based on DNS (Doma in Name Sys tem, domain name system)The contents construction of technology and the contents construction based on redirecting technique.
The browser of current client can carry out Slow to the IP address for the domain name being resolved in content routing procedure and deposit.When providing the user Video service, if using the contents construction based on DNS technologies, what browser Slow was deposited is the IP address of the current video server for offering customers service;If using the contents construction based on redirecting technique, what browser Slow was deposited is the IP address of load equalizer.And within the Slow cycle of deposits of browser, to the IP address asked in all being deposited using Slow of any content under same domain name in same webpage.That is, when the video server currently provided for client breaks down, player will not also initiate DNS name resolution request again, then current video traffic will be interrupted, so that experience when have impact on user's viewing video.
The content of the invention
The embodiment of the present invention provides a kind of reorientation method, device, to improve the usage experience that user watches internet video online.
The embodiment of the present invention is adopted the following technical scheme that:
A kind of reorientation method, including:
Receive the video content that the first URL of the first video server transmission is pointed to; Detect the working condition of first video server;
When the first video server working condition is abnormal, the 2nd URL is obtained according to the first URL;Video request is sent, wherein the video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request;
Receive the video content that the first URL sent by the second video server is pointed to.
A kind of redirection device, including:
Content receipt unit, for receiving the video content that the first URL that the first video server is sent is pointed to;
State detection unit, the working condition for detecting first video server;
Information changes unit, for when the first video server working condition is abnormal, the 2nd URL to be obtained according to the first URL;
Redirect unit, for sending video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, and receive the video content that the first URL sent by the second video server is pointed to.
The reorientation method and device of the embodiment of the present invention, after the video content for the first URL sensings that the first video server is sent is received, detect the working condition of first video server, if the working condition for detecting first video server is abnormal, then the first ULR of modification obtains the 2nd URL, and send video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, then receive the video content that the first URL sent by the second video server is pointed to.As seen from the above, in the case where working condition exception occurs in the first video server, remain to obtain the video content that the first URL is pointed to by the second video server, so as to ensure that the continuity or integrality for the video content that the first URL is pointed to.Therefore, using the reorientation method and device of the embodiment of the present invention, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online. A kind of reorientation method, including:
Receive the video content that the first URL of the first video server transmission is pointed to;
Detect the working condition of first video server;
When the first video server working condition is abnormal, the video content pointed to using the first URL described in the first URL re-requests;
When re-request fails, the 2nd URL is obtained according to the first URL;
Video request is sent, wherein the video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request;
Receive the video content that the first URL sent by the second video server is pointed to.
A kind of redirection device, including:
Content receipt unit, for receiving the video content that the first URL that the first video server is sent is pointed to;
State detection unit, the working condition for detecting first video server;
Contents request module, for when the first video server working condition is abnormal, utilizing the video content of the first URL sensings described in the first URL re-requests;
Information changes unit, for when re-request fails, the 2nd URL to be obtained according to the first URL;Redirect unit, for sending video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, and receive the video content that the first URL sent by the second video server is pointed to.
The reorientation method and device of the embodiment of the present invention, after the video content for the first URL sensings that the first video server is sent is received, detect the working condition of first video server, if the working condition for detecting first video server is abnormal, the video content then pointed to the first URL described in the first URL re-requests, and when re-request fails, change the first ULR and obtain the 2nd URL, and send video request, wherein described video request includes the 2nd URL, to receive regarding for the 2nd URL acquisition the first URL sensings that the video server of the video request can be in the video request Frequency content, then receives the video content that the first URL sent by the second video server is pointed to.As seen from the above, in the case where working condition exception occurs in the first video server, remain to obtain the video content that the first URL is pointed to, so as to ensure that the continuity or integrality for the video content that the first URL is pointed to.Therefore, using the reorientation method and device of the embodiment of the present invention, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online.Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, the accompanying drawing used required in being described below to embodiment is briefly described, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the reorientation method of the embodiment of the present invention one;
Fig. 2 is the contents construction process schematic based on DNS technologies in the embodiment of the present invention one;Fig. 3 is the contents construction process schematic based on redirecting technique in the embodiment of the present invention one;Fig. 4 is the flow chart of the reorientation method of the embodiment of the present invention two
Fig. 5 is the schematic diagram of the reorientation method of the embodiment of the present invention three
Fig. 6 is the schematic diagram of the redirection device of the embodiment of the present invention four
Fig. 7 is the schematic diagram of state detection unit in the redirection device of the embodiment of the present invention four;
Fig. 8 is the schematic diagram of redirection unit in the redirection device of the embodiment of the present invention four;
Fig. 9 is the schematic diagram of the redirection device of the embodiment of the present invention five.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
As shown in figure 1, the embodiment of the present invention one provides a kind of reorientation method, including:
Step 11, player receive the first URL (the Uni form Resource Loca tor, URL that the first video server is sent)The video content of sensing. Wherein, the first URL refers to the URL corresponding to the currently used video content of user.For example, user is current to watch URL ht tp by player:Video content pointed by //video, demos i te. com/demo. mp4, then the ht tp://video, demos i te. com/demo. mp4 are that can be described as the first URL in this.
In this embodiment, the video content that player obtains the first URL sensings that the first video server is sent is obtained by way of contents construction.In this step, player can obtain the video content that the first URL of the first video server transmission is pointed to by least following two modes.
Mode one, the contents construction based on DNS technologies
In this fashion, as shown in Fig. 2 this step mainly includes following process:
Step 111, when the video content pointed by the URL of player requests the first, browser first to dns server initiate DNS name resolution request, parsing the first URL in domain name representated by IP address.
DNS name resolution request is sent to load equalizer by step 112, DNS servers.
Step 113, load equalizer one suitable video server of selection such as current resource service condition of the distance of client, each video server according to where each video server and player, player is sent to by the IP address of the video server by DNS name resolution response.For convenience, in the present embodiment, the video server that this is selected is referred to as the first video server.
Step 114, player send video request according to the IP address of the first video server to the first video server.
Step 115, the first video server send the video content that the first URL is pointed to player.
Mode two, the contents construction based on redirecting technique
In this fashion, as shown in figure 3, this step mainly includes following process:
Step l l la, when the video content pointed by the URL of player requests the first, browser first to
Dns server initiates the IP address representated by the domain name in DNS name resolution request, the first URL of parsing.
The IP address of load equalizer is sent to player by step 112a, dns server by dns resolution response.
Step 113a, player send video request according to the IP address of load equalizer to load equalizer.Step 114a, load equalizer according to the distance of client where each video server and player, Current resource service condition of each video server etc. selects a suitable video server, i.e. the first video server.Then, load equalizer sends to player and redirects message, includes the IP address of the first video server in the redirection message, notice player using the IP address of the first video server as redirection IP address.
Step 115a, player send video request according to the IP address of the first video server to the first video server.
Step 116a, the first video server send the video content that the first URL is pointed to player.Certainly, player there may also be other modes and obtain the video content that the first URL of the first video server transmission is pointed in a particular application, simply illustrate herein.
Step 12, player detect the working condition of first video server.
In this embodiment, player can detect the byte number for the video content that the first URL received in the scheduled time from first video server is pointed to;When the byte number received within the scheduled time is 0, the working condition of first video server is abnormal;When the byte number received within the scheduled time is not 0, the working condition of first video server is normal.
Wherein, the scheduled time can arbitrarily be set, such as 1 minute.Certainly, player can also detect the working condition of the first video server by other means.
Step 13, when player detect the first video server working condition it is abnormal when, the 2nd URL is obtained according to the first URL.
Wherein in this step, the player can increase the 2nd URL of prefix acquisition in the first URL.For example, the first URL is ht tp://video, demos i te. com/demo. mp4, can increase prefix in the first URL and obtain the 2nd URL for " new23415 ", be ht tp: //new23415. video, demos i te. com/ demo. mp4.
Certainly, can also there are other modes modified to the first URL, as long as the first URL and the 2nd URL can be distinguished, be merely illustrative herein.
Step 14, player send video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request. Due to not having Slow to deposit the 2nd URL in browser, therefore, player will re-start contents construction process using the 2nd URL.Wherein, the process for carrying out contents construction can also use the contents construction based on DNS technologies or the contents construction based on redirecting technique.
During contents construction is carried out, load equalizer is after receiving the DNS request of dns server or receiving player and include the video request of the 2nd URL, prefix in 2nd URL need to be removed, obtain the first URL, then reselection video server, and the IP addresses of the normal video server of the working condition of selection are sent to player.
Then, the video request for including the 2nd URL is sent to the normal video server of working condition of load equalizer selection by the player, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request.Wherein, the video server for receiving the video request includes the second video server described below.Certainly, it may also include working condition and revert to normal first video server.
Step 15, player receive the video content that the first URL sent by the second video server is pointed to.
Wherein, second video server obtains the 2nd URL according to the video request, and the prefix of the 2nd URL is removed, and obtains the first URL, and obtain the video content that the first URL is pointed to according to the first URL.Then, the first URL video contents pointed to are sent to player.
As seen from the above, in the case where working condition exception occurs in the first video server, remain to obtain the video content that the first URL is pointed to by the second video server, so as to ensure that the continuity or integrality for the video content that the first URL is pointed to.Therefore, using the reorientation method of the embodiment of the present invention, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online.
Certainly, in order to be further ensured that player results in the video content of the first URL sensings, after step 13, the connection with first video server can also be disconnected.
As shown in figure 4, the embodiment of the present invention two provides a kind of reorientation method, including:
Step 21, player receive the video content for the first URL sensings that the first video server is sent.The detailed process of this step can refer to the description of step 11 in the embodiment of the present invention one. Step 22, player detect the working condition of first video server.
The detailed process of this step can refer to the description of step 12 in the embodiment of the present invention one.
Step 23, when the first video server working condition is abnormal, the video content that player is pointed to using the first URL described in the first URL re-requests.
In this step, the video content that player can be pointed to the first URL described in arbitrary video server re-request.But, according to step 21, due in the browser of client Slow deposit be the first video server IP addresses or the IP address of load equalizer, so, further to improve efficiency, the video content that player can be pointed to the first URL described in the first video server or load equalizer re-request.
When in the browser in client Slow deposit be the first video server IP address, the detailed process of video content that the first URL described in player to the first video server re-request is pointed to can include:Player sends video request according to the IP addresses of the first video server to the first video server, then sends the video content that the first URL is pointed to player again from the first video server.Wherein, first video server can resend the first whole URL video contents pointed to player, or in order to further improve the experience of user, also only can continue to be sent to player by the content after at the interruption of the first URL obtained from player the video contents pointed to.
When in the browser in client Slow deposit be load equalizer IP address, the specific process of video content that the first URL described in player to load equalizer re-request is pointed to can be:
Player sends video request according to the IP address of load equalizer to load equalizer.Load equalizer one suitable video server of selection such as current resource service condition of the distance of client, video server according to where each video server and player(It is the 3rd video server in this embodiment).Load equalizer sends to player and redirects message, include the IP address of the 3rd video server in the redirection message, notify player using the IP address of the 3rd video server as redirection IP address, then player sends video request to the 3rd video server, and sends video content from the 3rd video server to player.
Wherein, the 3rd video server can resend the first whole URL video contents pointed to player, or in order to further improve the experience of user, can also only will be from player from first Content after the interruption for the video content that the first URL of video server acquisition is pointed to is sentenced continues to be sent to player.
During above-mentioned load equalizer selects suitable video server, load equalizer can send status request message to each video server, the situation of itself is reported by status response message by each video server, then by video server according to the suitable video server of status response message selection.Or, also the status information of itself can be reported by the timing of each video server, suitable video server is selected according to the status information by video server.
Step 24, when re-request fails, player according to the first URL obtain the 2nd URL.The detailed process of this step can refer to the description of step 13 in the embodiment of the present invention one.
Step 25, player send video request, include the 2nd URL in the video request, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request.
The detailed process of this step can refer to the description of step 14 in the embodiment of the present invention one.
Step 26, player receive the video content that the first URL sent by the second video server is pointed to.
The detailed process of this step can refer to the description of step 15 in the embodiment of the present invention one.
As seen from the above, in the case where there is working condition exception in the first video server, player can the URL of re-request the first point to video content or can be obtained by way of changing URL the first URL sensing video content so that ensure that the first URL point to video content continuity or integrality.Therefore, using the reorientation method of the embodiment of the present invention, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online.
As shown in figure 5, the embodiment of the present invention three provides a kind of reorientation method, including:
Step 51, player obtain the video content that the first URL is pointed to from the first video server.
The detailed process of this step can refer to the description of step 11 in the embodiment of the present invention one.
Step 52, player detect the working condition of first video server.
The detailed process of this step can refer to the description of step 12 in the embodiment of the present invention one.
Step 53, when player detect the first video server working condition it is abnormal when, disconnect with The connection of first video server.
The video content that the-URL described in step 54, player to first video server or load equalizer re-request is pointed to.
The mode for the video content that the first URL is pointed to is obtained according to two kinds in step 51, employing mode is for the moment, what Slow was deposited is the IP address of the first video server in the browser of client, therefore, the video content that player can be pointed to the first URL described in the first video server re-request.
Therefore, the detailed process of this step can be:Player sends video request according to the IP address of the first video server to the first video server, then sends the video content that the first URL is pointed to player again from the first video server.Wherein, first video server can resend the first whole URL video contents pointed to player, or in order to further improve the experience of user, also only can continue to be sent to player by the content after at the interruption of the first URL obtained from player the video contents pointed to.
The mode for the video content that the first URL is pointed to is obtained according to two kinds in step 51, during employing mode two, what Slow was deposited is the IP address of load equalizer in the browser of client, therefore, the video content that player can be pointed to the first URL described in load equalizer re-request.
Specifically process can be:Player sends video request according to the IP address of load equalizer to load equalizer.Load equalizer one suitable video server of selection such as current resource service condition of the distance of client, video server according to where each video server and player(It is the 3rd video server in this embodiment).Load equalizer sends to player and redirects message, include the IP address of the 3rd video server in the redirection message, notify player using the IP address of the 3rd video server as redirection IP address, then player sends video request to the 3rd video server, and sends video content from the 3rd video server to player.
Wherein, 3rd video server can resend the first whole URL video contents pointed to player, or in order to further improve the experience of user, the content after the interruption for the video content that also the first URL sensings can will be only obtained from player from the first video server is sentenced continues to be sent to player.
During above-mentioned load equalizer selects suitable video server, load equalizer can be to each Individual video server sends status request message, reports the situation of itself by status response message by each video server, then by video server according to the suitable video server of status response message selection.Or, also the status information of itself can be reported by the timing of each video server, suitable video server is selected according to the status information by video server.
If during the success of step 55, re-request, the video content that the first URL that the 3rd video server that the video content or reception that the first URL that player receives the first video server transmission is pointed to are reassigned by the load equalizer is sent is pointed to.
If step 56, re-request are unsuccessful, show after step 54, the first video server still suffers from the abnormal situation of working condition.Now, player will change the first URL, obtain the 2nd URL.
Wherein in this step, the player can increase the 2nd URL of prefix acquisition in the first URL.For example, the first URL ^ ht tp://v ideo, demos i t e. com/demo. mp4, the 2nd URL are ht tp: //new23415. v ideo. demos i te. com/demo. mp4.Wherein, the prefix of new reinforcement mouthful is " new23415,.
Certainly, can also there are other modes modified to the first URL, as long as the first URL and the 2nd URL can be distinguished, be merely illustrative herein.
Step 57, due to there is no Slow to deposit the 2nd URL in browser, therefore, player will re-start contents construction process using the 2nd URL.
The detailed process of this step can refer in the embodiment of the present invention one and be described accordingly in step 14.
Step 58, player send video request according to the IP address of the second video server to the second video server, wherein including the 2nd URL in the video request.
Content interruption position information is may also include in wherein described video request, for representing that the video content that the first URL that player is obtained from the first video server is pointed to is interrupted from where.
Step 59, second video server remove the prefix in the 2nd URL, obtain the first URL, and obtain the video content that the first URL is pointed to according to the first URL.
First URL video contents pointed to are sent to player by step 510, second video server.
Or, will be in the content when also including content interruption position information in the first video request The video content that disconnected positional information defined location starts is sent to player.
As seen from the above, using the reorientation method of the embodiment of the present invention three, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online.
As shown in fig. 6, the embodiment of the present invention four additionally provides a kind of redirection device, including:Content receipt unit 61, for receiving the video content that the first URL that the first video server is sent is pointed to;State detection unit 62, the working condition for detecting first video server;Information changes unit 63, for when the first video server working condition is abnormal, the 2nd URL to be obtained according to the first URL;Redirect unit 64, for sending video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, and receive the video content that the first URL sent by the second video server is pointed to.
Wherein, as shown in fig. 7, the state detection unit 62 may include:Detection module 621, the byte number for detecting the video content that the first URL received in the scheduled time from first video server is pointed to;Judge module 622, for when the byte number received within the scheduled time is 0, determining that the working condition of first video server is abnormal;When the byte number received within the scheduled time is not 0, determine that the working condition of first video server is normal.
Wherein, described information modification unit 63 in the first URL specifically for when the first video server working condition is abnormal, increasing prefix acquisition the 2nd URL.
As shown in figure 8, the redirection unit 63 may include:Data obtaining module 631, for sending dns resolution request, includes the 2nd URL in dns resolution request, the information of second video server is obtained from load equalizer;Redirection module 632, for the information using second video server video request is sent to second video server, the 2nd URL is carried in the video request, so as to twoth URL of second video server in the video request, remove the prefix of the 2nd URL, the first URL is obtained, and the video content that the first URL is pointed to is obtained according to the first URL;Receiving module 633, for receiving the video content that the first URL sent by second video server is pointed to.
In addition, also including content interrupt bit confidence in the description in such as embodiment of the method, the video request Breath.Therefore, the redirection module sends video request using the information of second video server to second video server, the 2nd URL is carried in the video request, so that second video server is obtained in the first URL, and the video content of the first URL sensings according to the first URL and content interruption position information acquisition by the video content the content interruption position information defined location according to the 2nd URL.
In addition, as shown in figure 8, the redirection unit 63 may also include:Attended operation module 634, for when the first video server working condition is abnormal, disconnecting the connection with first video server.So as to ensure that the device can regain the video content of the first URL sensings.
Wherein, the operation principle for redirecting unit 63 can refer to the description of preceding method embodiment.As seen from the above, in the case where there is working condition exception in the first video server, remain to be regained the video content of the first URL sensings by the second video server, so as to ensure that the continuity or integrality for the video content that the first URL is pointed to.Therefore, using the redirection device of the embodiment of the present invention, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online.
Device shown in wherein Fig. 6-Fig. 8 is any can be located in the player of client.
As shown in figure 9, the embodiment of the present invention five additionally provides a kind of redirection device, including:Content receipt unit 91, for receiving the video content that the first URL that the first video server is sent is pointed to;State detection unit 92, the working condition for detecting first video server;Contents request module 93, for when the first video server working condition is abnormal, utilizing the video content of the first URL sensings described in the first URL re-requests;Information changes unit 94, for when re-request fails, the 2nd URL to be obtained according to the first URL;Redirect unit 95, for sending video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, and receive the video content that the first URL sent by the second video server is pointed to.
Wherein, the state detection unit may include:Detection module, the byte number for detecting the video content that the first URL received in the scheduled time from first video server is pointed to;Judge module, for when the byte number received within the scheduled time is 0, determining first video server Working condition is abnormal;When the byte number received within the scheduled time is not 0, determine that the working condition of first video server is normal.
As it was previously stated, the video content that the contents request module 93 can be pointed to the first URL described in arbitrary video server re-request.But in order to further improve efficiency, the contents request module 93 can ask the video content that the first URL is pointed to the first video server or load equalizer.Specifically, the contents request module 93 may include:Information receiving module, for receiving the working condition testing result that the state detection unit is sent, wherein the working condition testing result represents that the first video server working condition is abnormal;Content-request module, for according to the working condition testing result, to the video content of the first URL sensings described in first video server or load equalizer re-request.Now, the content receipt unit 91 is additionally operable in re-request success, the video content for the first URL sensings that the 3rd video server that the video content or reception that the first URL that reception first video server is sent is pointed to are reassigned by the load equalizer is sent.
Wherein, described information modification unit 94 in the first URL specifically for when the first video server working condition is abnormal, increasing prefix acquisition the 2nd URL.
Wherein, the redirection unit 95 may include(Not shown in figure):Data obtaining module, for sending dns resolution request, includes the 2nd URL in dns resolution request, the information of second video server is obtained from load equalizer;Redirection module, for the information using second video server video request is sent to second video server, the 2nd URL is carried in the video request, so as to twoth URL of second video server in the video request, remove the prefix of the 2nd URL, the first URL is obtained, and the video content that the first URL is pointed to is obtained according to the first URL;Receiving module, for receiving the video content that the first URL sent by second video server is pointed to.
In addition, also including content interruption position information in the description in such as embodiment of the method, the video request.Therefore, the redirection module sends video request using the information of second video server to second video server, the 2nd URL is carried in the video request, so that second video server obtains true by content interruption position information in the first URL, and the video content of the first URL sensings according to the first URL and content interruption position information acquisition according to the 2nd URL The video content that fixed position starts.
In addition, the redirection unit 95 may also include(Not shown in figure):Attended operation module, for when the first video server working condition is abnormal, disconnecting the connection with first video server.So as to ensure that the device can regain the video content of the first URL sensings.
Wherein, the operation principle for redirecting unit 95 can refer to the description of preceding method embodiment.The operation principle of wherein redirection device described in the embodiment of the present invention can refer to the description of embodiment of the method two.Device wherein shown in Fig. 9 can be located in the player of client.
As seen from the above, in the case where there is working condition exception in the first video server, player can the URL of re-request the first point to video content or can be obtained by way of changing URL the first URL sensing video content so that ensure that the first URL point to video content continuity or integrality.Therefore, using the redirection device of the embodiment of the present invention, user is not in interrupt when the video content is watched, so as to improve the usage experience that user watches internet video online.
By above description as can be seen that using the reorientation method and device of the embodiment of the present invention, ensure that continuity when user watches video online, so that experience when improving user's viewing video.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, computer program is can be by instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only memory(Read-Only Memory, ROM) or random access memory (Random Acces s Memory, RAM) etc..
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (17)

  1. Claims
    1st, a kind of reorientation method, it is characterised in that including:
    Receive the video content that the first uniform resource position mark URL of the first video server transmission is pointed to;Detect the working condition of first video server;
    When the first video server working condition is abnormal, the 2nd URL is obtained according to the first URL;Video request is sent, wherein the video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request;
    Receive the video content that the first URL sent by the second video server is pointed to.
    2nd, according to the method described in claim 1, it is characterised in that the working condition of detection first video server includes:
    Detect the byte number for the video content that the first URL received in the scheduled time from first video server is pointed to;
    When the byte number received within the scheduled time is 0, the working condition of first video server is abnormal;When the byte number received within the scheduled time is not 0, the working condition of first video server is normal.
    3rd, according to the method described in claim 1, it is characterised in that described to be included according to the 2nd URL of the first URL acquisitions:Increase prefix in the first URL and obtain the 2nd URL.
    4th, according to the method described in claim 1, it is characterised in that the video server for receiving the video request includes second video server;The transmission video request, wherein the video request includes the 2nd URL, so that the video content for receiving the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request includes:
    Dns resolution request is sent, includes the 2nd URL in dns resolution request, the information of the second video server is obtained from load equalizer;
    Using the information of second video server video request is sent to second video server, the 2nd URL is carried in the video request, so that second video server obtains the 2nd URL according to the video request, remove the prefix of the 2nd URL, the first URL is obtained, and according to described first URL obtains the video content that the first URL is pointed to.
    5th, method according to claim 4, it is characterised in that also include content interruption position information in the video request;The 2nd URL so as to second video server in the video request, removes the prefix of the 2nd URL, obtains the first URL, and include according to the first URL video contents for obtaining the first URL sensings:
    So that second video server obtains the 2nd URL and content interruption position information according to the video request, remove the prefix of the 2nd URL, obtain the first URL,, and by the video content the content interruption position information defined location in the video content of the first URL sensings according to the first URL and content interruption position information acquisition.
    6th, according to any described methods of claim 1-5, it is characterised in that when the first video server working condition is abnormal, obtained according to the first URL after the 2nd URL, methods described also includes:Disconnect the connection with first video server.
    7th, a kind of reorientation method, it is characterised in that including:
    Receive the video content that the first uniform resource position mark URL of the first video server transmission is pointed to;Detect the working condition of first video server;
    When the first video server working condition is abnormal, the video content pointed to using the first URL described in the first URL re-requests;
    When re-request fails, the 2nd URL is obtained according to the first URL;
    Video request is sent, wherein the video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request;
    Receive the video content that the first URL sent by the second video server is pointed to.
    8th, method according to claim 7, it is characterised in that described when the first video server working condition is abnormal, is included using the video contents pointed to of the first URL described in the first URL re-requests:
    The video content pointed to the first URL described in first video server or load equalizer re-request, and in re-request success, the first URL for receiving the first video server transmission refers to To video content or receive the video content that the first URL that the 3rd video server reassigned by the load equalizer sends is pointed to.
    9th, method according to claim 8, it is characterized in that, the video content that the first URL that the 3rd video server that the video content or reception in re-request success, receiving the first URL sensings that first video server is sent is reassigned by the load equalizer is sent is pointed to includes:In re-request success, the video content that the first URL resend by first video server is pointed to or the video content that the first URL is pointed to for continuing to send from the interruption of the first URL video contents pointed to are received;Or
    In re-request success, receive video content that the first URL that the 3rd video server reassigned by the load equalizer sends points to or from the 3rd video server receive at the interruption of the first URL video contents pointed to the video contents that point to of the first URL.
    10th, according to any described methods of claim 7-9, it is characterised in that when the first video server working condition is abnormal, obtained according to the first URL after the 2nd URL, methods described also includes:Disconnect the connection with first video server.
    11st, a kind of redirection device, it is characterised in that including:
    Content receipt unit, for receiving the video content that the first URL that the first video server is sent is pointed to;State detection unit, the working condition for detecting first video server;
    Information changes unit, for when the first video server working condition is abnormal, according to described the
    - URL obtains the 2nd URL;
    Redirect unit, for sending video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, and receive the video content that the first URL sent by the second video server is pointed to.
    12nd, device according to claim 11, it is characterised in that the state detection unit includes:Detection module, the byte number for detecting the video content that the first URL received in the scheduled time from first video server is pointed to;
    Judge module, for when the byte number received within the scheduled time is 0, determining described the The working condition of one video server is abnormal;When the byte number received within the scheduled time is not 0, determine that the working condition of first video server is normal.
    13, device according to claim 11, it is characterised in that described information change unit specifically for:When the first video server working condition is abnormal, increase prefix acquisition the 2nd URL in the first URL.
    14th, device according to claim 11, it is characterised in that the redirection unit includes:Data obtaining module, for sending dns resolution request, includes the 2nd URL in dns resolution request, the information of second video server is obtained from load equalizer;
    Redirection module, for the information using second video server video request is sent to second video server, the 2nd URL is carried in the video request, so as to twoth URL of second video server in the video request, remove the prefix of the 2nd URL, the first URL is obtained, and the video content that the first URL is pointed to is obtained according to the first URL;
    Receiving module, for receiving the video content that the first URL sent by second video server is pointed to.
    15th, device according to claim 14, it is characterised in that the redirection unit also includes:Attended operation module, for when the first video server working condition is abnormal, disconnecting the connection with first video server.
    16th, a kind of redirection device, it is characterised in that including:
    Content receipt unit, for receiving the video content that the first URL that the first video server is sent is pointed to;State detection unit, the working condition for detecting first video server;
    Contents request module, for when the first video server working condition is abnormal, utilizing the video content of the first URL sensings described in the first URL re-requests;
    Information changes unit, for when re-request fails, the 2nd URL to be obtained according to the first URL;Redirect unit, for sending video request, wherein described video request includes the 2nd URL, to receive the video content for the 2nd URL acquisitions the first URL sensings that the video server of the video request can be in the video request, and receive the video content that the first URL sent by the second video server is pointed to. 17th, device according to claim 16, it is characterised in that the state detection unit includes:Detection module, the byte number for detecting the video content that the first URL received in the scheduled time from first video server is pointed to;
    Judge module, for when the byte number received within the scheduled time is 0, determining that the working condition of first video server is abnormal;When the byte number received within the scheduled time is not 0, determine that the working condition of first video server is normal.
    18th, device according to claim 16, it is characterised in that the contents request module includes:Information receiving module, for receiving the working condition testing result that the state detection unit is sent, wherein the working condition testing result represents that the first video server working condition is abnormal;
    Content-request module, for according to the working condition testing result, to the video content of the first URL sensings described in first video server or load equalizer re-request;
    The content receipt unit is additionally operable in re-request success, the video content for the first URL sensings that the 3rd video server that the video content or reception that the first URL that reception first video server is sent is pointed to are reassigned by the load equalizer is sent.
    19th, device according to claim 16, it is characterised in that described information change unit specifically for:When the first video server working condition is abnormal, increase prefix acquisition the 2nd URL in the first URL.
    20th, according to any described devices of claim 16-19, it is characterised in that the redirection unit includes:
    Data obtaining module, for sending dns resolution request, includes the 2nd URL in dns resolution request, the information of second video server is obtained from load equalizer;
    Redirection module, for the information using second video server video request is sent to second video server, the 2nd URL is carried in the video request, so as to twoth URL of second video server in the video request, remove the prefix of the 2nd URL, the first URL is obtained, and the video content that the first URL is pointed to is obtained according to the first URL;
    Receiving module, for receiving the video content that the first URL sent by second video server is pointed to.
    21st, device according to claim 20, it is characterised in that the redirection unit also includes:Attended operation module, for when the first video server working condition is abnormal, disconnecting the connection with first video server.
CN201080004374.0A 2010-12-29 2010-12-29 Redirection method and apparatus Expired - Fee Related CN102388623B (en)

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 (2)

Publication Number Publication Date
CN102388623A true CN102388623A (en) 2012-03-21
CN102388623B CN102388623B (en) 2013-10-02

Family

ID=45066143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201080004374.0A Expired - Fee Related CN102388623B (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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010005864A1 (en) * 1998-05-29 2001-06-28 Mousseau Gary P. 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
CN1968403A (en) * 2005-11-18 2007-05-23 阿尔卡特公司 Method for initiating or recovering a media-on-demand session, and protocol redirector
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
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010005864A1 (en) * 1998-05-29 2001-06-28 Mousseau Gary P. 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
CN1968403A (en) * 2005-11-18 2007-05-23 阿尔卡特公司 Method for initiating or recovering a media-on-demand session, and protocol redirector
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
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
WO2011150652A1 (en) 2011-12-08
CN102388623B (en) 2013-10-02

Similar Documents

Publication Publication Date Title
JP3646126B2 (en) Route selection type data transfer system, route selection method in data transfer, and medium recording program for executing the method
CN101584189B (en) Handover of wireless connections
EP2787742B1 (en) Method and system for transmitting network video
JP2010531618A (en) Real-time protocol stream migration
CN107104883B (en) Information sharing method, client and server in a kind of social networks chain
US20140040466A1 (en) Method and router for packet processing during server failure
CN103678307A (en) Page display method and client-side
CN102710748A (en) Data acquisition method, system and equipment
US7925771B1 (en) System and method for uninterrupted streaming
CN103581765B (en) The method and apparatus that a kind of message forwards
CN107682442B (en) Web connection method and device
EP2942918B1 (en) Method and device for transmitting streaming media data
CN103167044A (en) Intelligent analysis method of domain name system (DNS) and poking measurement device and system
CN103312593B (en) A kind of message distributing system and method
US20030005040A1 (en) Providing uninterrupted media streaming using multiple network sites
CN101729909A (en) Streaming media business processing method, device and system
CN112311907B (en) ARP request response method, load balancing equipment and related device
CN104753965A (en) Web acceleration method and system
CN100525437C (en) A method and system for improvement of the VOD service reliability
JP5255035B2 (en) Failover system, storage processing apparatus, and failover control method
US20120072604A1 (en) technique for delivering content to a user
CN101237314A (en) A method and access device for guaranteeing duplication service transmission
CN106209952B (en) Service node distribution method and device, CDN management server and system
US20120215869A1 (en) Multimedia Message Transmission Method and Apparatus Thereof, and Domain Name Server
CN102388623A (en) Redirection method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131002