WO2017067373A1 - Procédé et appareil de poussée de données - Google Patents

Procédé et appareil de poussée de données Download PDF

Info

Publication number
WO2017067373A1
WO2017067373A1 PCT/CN2016/100598 CN2016100598W WO2017067373A1 WO 2017067373 A1 WO2017067373 A1 WO 2017067373A1 CN 2016100598 W CN2016100598 W CN 2016100598W WO 2017067373 A1 WO2017067373 A1 WO 2017067373A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
service data
service request
data
user terminal
Prior art date
Application number
PCT/CN2016/100598
Other languages
English (en)
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 中兴通讯股份有限公司
Publication of WO2017067373A1 publication Critical patent/WO2017067373A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a data pushing method and apparatus.
  • CDN Content Delivery Network
  • the CDN node receives the request from the user terminal, returns the source to the source station, and stores the data accessed by the user terminal.
  • the CDN node that has stored the data directly provides the service.
  • many of the responses of the source station are redirected Uniform Resource Locators (URLs).
  • URLs Uniform Resource Locators
  • the user terminal needs to continue to access the data content according to the redirected URL. Some data may need to be more.
  • the secondary redirecting jump causes the user terminal to take a long time to obtain the target data content. In the prior art, there is a problem that the user terminal obtains data less efficiently.
  • a main object of the present invention is to provide a data push method and apparatus, which are intended to improve the efficiency of data acquisition by a user terminal.
  • the present invention provides a data push method, and the data push method includes:
  • the content distribution network CDN node Upon receiving the service request sent by the user terminal, the content distribution network CDN node determines whether the service data pointed by the service request is currently stored;
  • the CDN node acquires the non-redirected URL based on the redirected URL.
  • the CDN node stores the service data that does not carry the redirect URL as the service Requesting the pointed service data, and transmitting the service data that does not carry the redirect URL to the user terminal;
  • the CDN node When the service data pointed by the service request is currently stored, the CDN node directly sends the service data pointed by the service request to the user terminal.
  • the method before the step of the CDN node directly transmitting the service data pointed by the service request to the user terminal, the method further includes:
  • the CDN node determines whether the service data pointed to by the service request carries a redirect URL
  • the data pushing method further includes the steps of:
  • the CDN node When the service data pointed by the service request carries a redirect URL, the CDN node acquires service data that does not carry the redirect URL based on the redirect URL;
  • the CDN node updates the service data pointed by the service request by using the service data that does not carry the redirect URL, and sends the service data that does not carry the redirect URL to the user terminal.
  • the service data pointed by the service request carries an HTTP status code
  • the step of the CDN node determining whether the service data pointed by the service request carries a redirect URL includes:
  • the business data carries a redirect URL.
  • the method before the step of sending the service data pointed by the service request by the CDN node, when the type of the service data that the service request is directed to is webpage data, the method further includes:
  • the method further includes:
  • the CDN node re-encodes the service data pointed by the service request by using the coding mode of the user terminal when the coding mode used by the service data is different from the coding mode used by the user terminal. And transmitting the re-encoded service data to the user terminal.
  • the present invention further provides a data pushing device, where the data pushing device includes:
  • the first determining module is configured to determine, when the CDN node that the content distribution network is located, receives the service request sent by the user terminal, whether the CDN node currently stores the service data pointed by the service request;
  • An obtaining module configured to: when the CDN node does not currently store the service data pointed by the service request, and the service data pointed by the service request carries the redirected unified data locator URL, obtain the data based on the redirected URL Business data that does not carry a redirect URL;
  • a sending module configured to store the service data that does not carry the redirected URL as the service data pointed by the service request, and send the service data that does not carry the redirected URL to the user terminal;
  • the sending module is further configured to directly send the service data pointed by the service request to the user terminal when the CDN node currently stores the service data pointed by the service request.
  • the data pushing device further includes a second determining module, configured to determine, when the CDN node currently stores the service data pointed by the service request, whether the service data pointed by the service request carries a redirect URL ;
  • the sending module is further configured to directly send the service data pointed by the service request to the user terminal when the service data pointed by the service request does not carry the redirecting URL;
  • the obtaining module is further configured to: when the service data pointed to by the service request carries a redirect URL, obtain the service data that does not carry the redirect URL based on the redirected URL;
  • the sending module is further configured to update the service data pointed by the service request by using the service data that does not carry the redirect URL, and send the service data that does not carry the redirect URL to the user terminal.
  • the service data pointed to by the service request carries an HTTP status code
  • the second determining module is further configured to determine whether the HTTP status code carried by the service data pointed by the service request is consistent with a preset HTTP status code.
  • the service data pointed to by the service request carries a redirect URL when the HTTP status code is consistent with the preset HTTP status code.
  • the data pushing apparatus further includes a third determining module, configured to determine whether the encoding mode used by the service data pointed by the service request is The coding mode adopted by the user terminal is the same;
  • the sending module is further configured to send the service data pointed by the service request to the user terminal when the coding mode used by the service data pointed by the service request is the same as the coding mode adopted by the user terminal.
  • the sending module is further configured to: when the coding mode used by the service data pointed by the service request is different from the coding mode adopted by the user terminal, use the coding mode of the user terminal to point the service request The service data is re-encoded and the re-encoded service data is sent to the user terminal.
  • Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
  • the CDN node When receiving the service request of the user terminal, the CDN node obtains the service data pointed by the service request, and the service data pointed to by the service request carries the redirect URL, and obtains the redirect URL based on the redirected URL.
  • the service data of the redirected URL is not carried, and the service data that does not carry the redirected URL is stored as the service data pointed to by the service request, and the service data that does not carry the redirected URL is pointed to the service request.
  • the service data is sent to the user terminal, and when the service request is received again, the CDN node can provide the service by using the stored service data that does not carry the redirected URL, without the user terminal performing the redirecting jump. Improve the efficiency of user terminals to obtain data.
  • FIG. 1 is a schematic flow chart of a first embodiment of a data pushing method according to the present invention
  • FIG. 2 is a schematic diagram of functional modules of a first embodiment of a data push device according to the present invention.
  • the present invention provides a data push method.
  • the data push method includes:
  • Step S10 Upon receiving the service request sent by the user terminal, the content distribution network CDN node determines whether the service data pointed by the service request is currently stored.
  • the data pushing method provided in this embodiment can be applied to the Internet access.
  • the CDN node receives the webpage access request of the user terminal and does not currently store the webpage data pointed by the webpage access request
  • the webpage access is performed according to the webpage.
  • the CDN node stores the webpage data that does not carry the redirected URL as the webpage data pointed to by the webpage access request, and sends the webpage data that does not carry the redirected URL to the user terminal, which is easy to understand.
  • the CDN node can provide the service by using the stored webpage data that does not carry the redirected URL, thereby reducing response time and improving user terminal acquiring data. s efficiency.
  • the user terminal generates the corresponding URL when receiving the URL input by the user in the browser-based address bar, or the click operation triggered by the hyperlink address displayed by the browser, or the playback operation triggered by the streaming media player.
  • the service request (or the IP address) is sent to the CDN node; when receiving the service request sent by the user terminal, the CDN node determines whether the service data pointed by the service request is currently stored, according to the judgment result.
  • the corresponding operation is performed, for example, when the service data pointed by the service request is stored, the CDN node may directly send the service data pointed by the service request to the user terminal.
  • the method before step S10, the method further includes:
  • the CDN routing device receives the original service request sent by the user terminal, where the original service request carries the original URL requested by the user terminal, and the domain name corresponding to the original URL is the original domain name requested by the user terminal;
  • the routing device returns a redirect response message to the user terminal, where the domain name corresponding to the URL carried by the redirect response message includes an acceleration node selected by the CDN routing device for the user terminal (described in the first embodiment)
  • the URL carried in the service request sent by the user terminal to the CDN routing device is http://www.ZTE.com/news/a.html, wherein the content corresponding to www.ZTE.com is content provider (Content Provider) Provided by CP), and providing a content distribution acceleration service through the CDN, the CDN routing device selects an acceleration node for the user terminal according to a predetermined policy (the identifier of the acceleration node is corresponding to the identifier C1 of the CDN node in the first embodiment), Construct a new URL at http://C1.cdn.net/www.ZTE.com/news/a.html. The user terminal sends a service request to the new URL to obtain the number of pages of the corresponding page stored by the CDN node. according to.
  • a predetermined policy the identifier of the acceleration node is corresponding to the identifier C1 of the CDN node in the first embodiment
  • Construct a new URL at http://C1.cdn.net/www.ZTE.com
  • step S20 when the service data pointed by the service request is not currently stored, and the service data pointed to by the service request carries the redirected unified data locator URL, the CDN node acquires not carried based on the redirected URL. Redirect the business data of the URL;
  • the CDN node when the service data pointed by the service request is not currently stored, forwards the service request to the source station server according to the URL (or IP address) carried by the service request, to receive the The service data that the source station server responds to; when receiving the service data that is sent by the source station server, the CDN node determines whether the service data that the source station server responds carries the redirect URL, which can be understood by those skilled in the art.
  • the service data that the source station server responds carries the redirect URL
  • the CDN node directly returns the service data that the source station server responds to the user terminal
  • the user terminal will receive according to the The redirected URL carried in the service data is redirected and then accessed to obtain the target data, wherein the user terminal may even need to be redirected multiple times during the process of continuing to access. Obviously, this is contrary to the original intention of the CDN.
  • the CDN node when the service data pointed by the service request (that is, the service data that the source station server responds based on the service request) carries the redirect URL, And the CDN node continues to determine whether the service data that is responded to by the source station server corresponding to the redirect URL is carried according to the redirected URL redirection, when receiving the service data of the source station server corresponding to the redirect URL. If there is a redirect URL, if yes, continue the redirect, otherwise go to step S30.
  • Step S30 the CDN node stores the service data that does not carry the redirected URL as the service data pointed by the service request, and sends the service data that does not carry the redirected URL to the user terminal;
  • the service data that does not carry the redirected URL is stored as the service data pointed to by the service request, for the CDN node.
  • the service data providing service that does not carry the redirected URL is directly used; and when the service data that does not carry the redirected URL is stored, the CDN node also performs the Carry redirect URL
  • the service data is sent to the user terminal as the service data pointed by the service request for presentation to the user.
  • the CDN node may further send the service data that does not carry the redirected URL to the user terminal before or after storing the service data that does not carry the redirected URL.
  • Step S40 When currently storing the service data pointed by the service request, the CDN node directly sends the service data pointed by the service request to the user terminal.
  • the CDN node stores the service data in order to receive the service request for the stored service data again, and directly provides the service with the stored service data to achieve the purpose of network acceleration. Therefore, in this embodiment, When the service data pointed by the service request is currently stored, the CDN node directly sends the service data pointed by the service request to the user terminal for presentation to the user.
  • the CDN node may also delete the stored service data when the service request for the stored service data is not received within a preset time period.
  • the preset time period may be set according to actual needs.
  • the preset time period is preferably set to 24 hours in the embodiment, and those skilled in the art may understand that the user is not accessed by periodically deleting for a long time.
  • the business data can improve the utilization of the storage space of the CDN node.
  • the CDN node when the CDN node receives the service request of the user terminal, if the service data pointed by the service request is not currently stored, and the service data pointed by the service request carries the redirect URL, The redirecting URL obtains the service data that does not carry the redirected URL, and stores the service data that does not carry the redirected URL as the service data pointed to by the service request, and the service data that does not carry the redirected URL.
  • the service data that is directed to the service request is sent to the user terminal, and when the service request is received again, the CDN node can provide the service by using the stored service data that does not carry the redirect URL, without the user terminal. Perform redirected jumps to improve the efficiency of user terminals to obtain data.
  • the method further includes:
  • the CDN node determines whether the service data pointed to by the service request carries a redirect URL
  • the data pushing method further includes the steps of:
  • the CDN node When the service data pointed by the service request carries a redirect URL, the CDN node acquires service data that does not carry the redirect URL based on the redirect URL;
  • the CDN node updates the service data pointed by the service request by using the service data that does not carry the redirected URL, and sends the service data that does not carry the redirected URL to the user terminal.
  • the service data stored by the CDN node may be historically acquired based on the prior art, and may exist with a redirect URL. Therefore, in this embodiment, to ensure the CDN.
  • the node can effectively provide an acceleration service.
  • the CDN node first determines whether the service data pointed by the service request carries a redirect URL; if the service request points When the service data does not carry the redirected URL, the CDN node directly sends the service data pointed by the service request to the user terminal, so that the user terminal presents the user data to the user; if the service data pointed by the service request carries When there is a redirect URL, the CDN node obtains the service data that does not carry the redirected URL based on the redirected URL, and the CDN node obtains the service data that does not carry the redirected URL based on the redirected URL.
  • the first embodiment is not described here; when the service data that does not carry the redirected URL is obtained, the CDN node is not carried.
  • URL oriented service data updating service data point to the service request, and service data carries no redirect URL is transmitted to the user terminal, for their presentation to a user.
  • the service data pointed by the service request carries an HTTP status code
  • the CDN node determines the service.
  • the steps of the service data pointed to by the request carrying the redirect URL include:
  • the business data carries a redirect URL.
  • the HTTP Status Code is a 3-digit code used to indicate the HTTP response status of the server. It is defined by the RFC 2616 specification and obtained RFC2518, RFC 2817, RFC 2295, RFC 2774, and RFC 4918. Specification extension. Specifically, the HTTP status code includes a message class status code of 1 header, a success class status code of 2 headers, a redirect class status code of 3 headers, a request error class status code of 4 headers, and a server of 5 prefixes.
  • Error class status code for example, the common HTTP status code "404" indicates that the request failed, the requested resource was not found on the server, and "404" is widely used when the server does not want to reveal exactly why the request was rejected or no other suitable The response is available.
  • the CDN node determines whether the service data pointed by the service request carries a redirect URL based on the redirect header status code of the 3-word header. Specifically, the CDN node preferably passes the HTTP status code “301”. Or “302" to determine, that is, the preset HTTP status code is set to "301" or "302” in this embodiment. Wherein, 301" indicates that the requested resource has been permanently moved to the new location, and the new permanent URL is returned in the Location field of the response; “302" indicates that the requested resource temporarily responds from a different URL, and the temporary URL is The response is returned in the Location field.
  • the HTTP status code carried by the service data pointed by the service request that is extracted by the CDN node is “301” or “302”, it is determined that the service data pointed by the service request carries a redirect URL;
  • the HTTP status code carried by the service data pointed by the service request extracted by the CDN node is not “301” and is not “302”, the service pointed to by the service request is determined.
  • the transaction data does not carry a redirect URL.
  • a fourth embodiment of the data pushing method of the present invention when the type of the service data pointed by the service request is webpage data, the CDN node sends the Before the step of describing the business data pointed to by the business request, the method further includes:
  • the small computer storage letter “A” is 1100001
  • the Xiaowang computer storage letter “A” is 11000010
  • the two sides will misunderstand when exchanging information.
  • Xiao Zhang sent 1100001 to Xiao Wang.
  • Xiao Wang does not think that 1100001 is the letter "A”. It may be considered as the letter "X”. That is to say, Xiao Zhang and Xiao Wang's computers use different encoding methods.
  • the type of the service data pointed to by the service request is webpage data
  • the coding mode adopted by the user terminal is the same as the coding mode used by the service data pointed by the service request.
  • the user terminal can normally present the service data pointed by the service request to the user, and ensure that the displayed webpage does not appear garbled.
  • the CDN node further includes:
  • the CDN node re-encodes the service data pointed by the service request by using the coding mode of the user terminal when the coding mode used by the service data is different from the coding mode used by the user terminal. And transmitting the re-encoded service data to the user terminal.
  • the CDN node uses the coding mode of the user terminal to request the service pointed by the service request.
  • the data is re-encoded, and the re-encoded service data is available for the user terminal to be parsed normally, and the webpage content is presented to the user.
  • the CDN node may separately use the multiple common coding modes to The service data carrying the redirected URL is re-encoded, and the re-encoded service data is separately stored to further improve the efficiency of the user terminal to obtain data.
  • the present invention further provides a data pushing device.
  • the data pushing device includes:
  • the first determining module 10 is configured to determine, when the CDN node that the content distribution network is located, receives the service request sent by the user terminal, whether the CDN node currently stores the service data pointed by the service request;
  • the data pushing device provided in this embodiment can be applied to Internet access, for example,
  • the data pushing device provided by the embodiment is built in the CDN node, and the CDN node receives the webpage access request of the user terminal, and does not currently store the webpage data pointed by the webpage access request, according to the webpage access request.
  • the source station server returns the webpage data pointed to by the webpage access request, and obtains webpage data that does not carry the redirected URL based on the redirected URL when the webpage data that the source station server responds with the redirecting URL;
  • the CDN node stores the webpage data that does not carry the redirected URL as the webpage data pointed to by the webpage access request, and sends the webpage data that does not carry the redirected URL to the user terminal, which is easy to understand
  • the CDN node can provide the service by using the stored webpage data that does not carry the redirected URL, thereby reducing the response time and improving the efficiency of the user terminal acquiring data. .
  • the user terminal generates the corresponding URL when receiving the URL input by the user in the browser-based address bar, or the click operation triggered by the hyperlink address displayed by the browser, or the playback operation triggered by the streaming media player.
  • the service request of the (or IP address) is sent to the CDN node where the first determining module 10 is located; the first determining module 10 determines the CDN when receiving the service request sent by the user terminal based on the CDN node. Whether the node currently stores the service data pointed by the service request, so as to perform a corresponding operation according to the determination result, for example, when the service data pointed by the service request is stored, the service data pointed by the service request may be directly sent. To the user terminal.
  • the first determining module 10 determines whether the CDN node currently stores the service data pointed by the service request, the first determining module 10 further includes:
  • the CDN routing device receives the original service request sent by the user terminal, where the original service request carries the original URL requested by the user terminal, and the domain name corresponding to the original URL is the original domain name requested by the user terminal;
  • the routing device returns a redirect response message to the user terminal, where the domain name corresponding to the URL carried by the redirect response message includes an acceleration node selected by the CDN routing device for the user terminal (described in the first embodiment)
  • the URL carried in the service request sent by the user terminal to the CDN routing device is http://www.ZTE.com/news/a.html, wherein the content corresponding to www.ZTE.com is CP (Content Provider, content)
  • the provider provides, and provides a content distribution acceleration service through the CDN, and the CDN routing device selects an acceleration node for the user terminal according to a predetermined policy (the identifier of the acceleration node is corresponding to the identifier C1 of the CDN node in the first embodiment), constructing a new
  • the URL is http://C1.cdn.net/www.ZTE.com/news/a.html.
  • the user terminal sends a service request to the new URL to obtain page data of a corresponding page stored by the CDN node.
  • the obtaining module 20 is configured to: when the CDN node does not currently store the service data pointed by the service request, and the service data pointed by the service request carries the redirected unified data locator URL, based on the redirect URL Obtaining business data that does not carry a redirect URL;
  • the obtaining module 20 forwards the service request to the source station server according to the URL (or IP address) carried by the service request, Receiving the service data of the source station server response; when the CDN node receives the service data of the source station server response, the obtaining module 20 determines whether the service data that the source station server responds carries Oriented URL, as can be understood by those skilled in the art, when the service data that the source station server responds carries the redirected URL, if the service data responded to by the source station server is directly returned to the user terminal, The user terminal will re-access according to the redirected URL carried in the received service data, and then obtain the target data, wherein the user terminal may even need to be redirected multiple times during the process of continuing to access.
  • the service data pointed by the service request (that is, the service data that the source station server responds based on the service request) carries the redirect URL
  • the obtaining module 20 based on the redirected URL redirection, continues to determine whether the service data responded by the source station server corresponding to the redirected URL is received when receiving the service data of the source station server corresponding to the redirected URL. If the redirected URL is carried, the redirect is continued. Otherwise, the obtained service data that does not carry the redirected URL is pushed to the sending module 30 for processing.
  • the sending module 30 is configured to store the service data that does not carry the redirect URL as the service data pointed by the service request, and send the service data that does not carry the redirect URL. Sent to the user terminal;
  • the sending module 30 when the service data that does not carry the redirected URL is obtained, stores the service data that does not carry the redirected URL as the service data pointed to by the service request, to receive the service again.
  • the service data providing service that does not carry the redirected URL is directly used; and when the service data that does not carry the redirected URL is stored, the sending module 30 further sends the redirected URL.
  • the service data is sent to the user terminal as the service data pointed to by the service request for presentation to the user.
  • the sending module 30 may further send the service data that does not carry the redirected URL to the user terminal before or after storing the service data that does not carry the redirected URL.
  • the sending module 30 is further configured to directly send the service data pointed by the service request to the user terminal when the CDN node currently stores the service data pointed by the service request.
  • the CDN node stores the service data in order to receive the service request for the stored service data again, and directly provides the service with the stored service data to achieve the purpose of network acceleration. Therefore, in this embodiment, When the service data pointed by the service request is currently stored, the sending module 30 directly sends the service data pointed by the service request to the user terminal for presentation to the user.
  • the data pushing apparatus further includes a deleting module, configured to delete the stored service data when the CDN node does not receive a service request for the stored service data within a preset time period.
  • the preset time period may be set according to actual needs.
  • the preset time period is preferably set to 24 hours in the embodiment, and those skilled in the art may understand that the user is not accessed by periodically deleting for a long time.
  • the business data can improve the utilization of the storage space of the CDN node.
  • the data pushing device provided in this embodiment is built in the CDN to receive the operation, and when the CDN node receives the service request of the user terminal, if the service request is not currently stored, The service data, and the service data that the service request is directed to carry the redirect URL, the service data that does not carry the redirect URL is obtained based on the redirected URL, and the service data that does not carry the redirect URL is stored as The service data pointed to by the service request, and the service data not carrying the redirect URL is sent to the user terminal as the service data pointed by the service request, and when the service request is received again, the CDN node is The stored service data that does not carry the redirected URL can be used to provide a service, and the user terminal does not need to perform a redirect jump, thereby improving the efficiency of the user terminal to obtain data.
  • the data pushing device further includes a second determining module, configured to be currently stored in the CDN node.
  • a second determining module configured to be currently stored in the CDN node.
  • the sending module 30 is further configured to: when the service data pointed by the service request does not carry the redirecting URL, directly send the service data pointed by the service request to the user terminal;
  • the obtaining module 20 is further configured to: when the service data pointed to by the service request carries the redirecting URL, obtain the service data that does not carry the redirected URL based on the redirected URL;
  • the sending module 30 is further configured to update the service data pointed by the service request by using the service data that does not carry the redirect URL, and send the service data that does not carry the redirect URL to the user terminal.
  • the service data stored by the CDN node may be historically acquired based on the prior art, and may exist with a redirect URL. Therefore, in this embodiment, to ensure the CDN.
  • the node can effectively provide the acceleration service.
  • the second determining module first determines whether the service data pointed by the service request carries a redirect URL; if the service request points When the service data does not carry the redirected URL, the sending module 30 directly sends the service data pointed by the service request to the user terminal, so that the user terminal presents the user data to the user;
  • the obtaining module 20 obtains the service data that does not carry the redirected URL based on the redirected URL, where the obtaining module 20 obtains the non-portable based on the redirected URL.
  • the sending module 30 updates the service data that does not carry the redirected URL.
  • the service data pointed to by the service request, and the service data not carrying the redirect URL is sent to the user terminal for presentation to the user.
  • the obtaining module 20 determines whether the service data that the source station server responds carries the redirect URL by calling the second determining module.
  • the service data pointed by the service request carries an HTTP status code
  • the second determining module further sets Determining whether the HTTP status code carried by the service data pointed by the service request is consistent with a preset HTTP status code, where the service status is directed to the service data when the HTTP status code is consistent with the preset HTTP status code. Carry a redirect URL.
  • the HTTP Status Code is a 3-digit code used to indicate the HTTP response status of the server. It is defined by the RFC 2616 specification and obtained RFC2518, RFC 2817, RFC 2295, RFC 2774, and RFC 4918. Specification extension. Specifically, the HTTP status code includes a message class status code of 1 header, a success class status code of 2 headers, a redirect class status code of 3 headers, a request error class status code of 4 headers, and a server of 5 prefixes.
  • Error class status code for example, the common HTTP status code "404" indicates that the request failed, the requested resource was not found on the server, and "404" is widely used when the server does not want to reveal exactly why the request was rejected or no other suitable The response is available.
  • the second determining module determines, according to the redirecting class status code of the 3-word header, whether the service data pointed by the service request carries a redirecting URL. Specifically, the second determining module preferably passes the HTTP state.
  • the code “301" or “302” is judged, that is, the preset HTTP status code is set to "301" or "302” in this embodiment. Where 301" indicates that the requested resource has been forever Moved to the new location for a long time, and the new permanent URL is returned in the Location field of the response; "302" indicates that the requested resource temporarily responds from a different URL, and the temporary URL is returned in the Location field of the response.
  • the HTTP status code carried by the service data pointed by the service request by the second determining module is “301” or “302”, it is determined that the service data pointed by the service request carries a redirect URL;
  • the service data pointed to by the service request does not carry the redirected URL when the HTTP status code carried by the service data that is sent by the CDN node is not "301" and is not "302".
  • a fourth embodiment of the data pushing and loading device of the present invention is provided.
  • the data pushing device when the type of the service data pointed by the service request is webpage data, the data pushing device And a third determining module, configured to determine whether the encoding mode used by the service data pointed by the service request is the same as the encoding mode adopted by the user terminal;
  • the sending module is further configured to send the service data pointed by the service request to the user terminal when the coding mode used by the service data pointed by the service request is the same as the coding mode adopted by the user terminal.
  • the small computer storage letter “A” is 1100001
  • the Xiaowang computer storage letter “A” is 11000010
  • the two sides will misunderstand when exchanging information.
  • Xiao Zhang sent 1100001 to Xiao Wang.
  • Xiao Wang does not think that 1100001 is the letter "A”. It may be considered as the letter "X”. That is to say, Xiao Zhang and Xiao Wang's computers use different encoding methods.
  • the user terminal can normally perform the same manner only when the coding mode adopted by the user terminal is the same as the coding mode used by the service data pointed by the service request.
  • the business data pointed to by the service request is presented to the user to ensure that the displayed webpage is not garbled.
  • the service request sent by the user terminal to the CDN node includes an encoding mode adopted by the user terminal
  • the third determining module may parse the service data pointed by the service request.
  • the third determining module may perform the determination.
  • the sending module 30 is further configured to use the user terminal when the encoding mode used by the service data pointed by the service request is different from the encoding mode adopted by the user terminal.
  • the encoding mode re-encodes the service data pointed by the service request, and sends the re-encoded service data to the user terminal.
  • the sending module 30 uses the coding mode of the user terminal to point to the service request.
  • the service data is re-encoded, and the re-encoded service data is available for the user terminal to be parsed normally, and the webpage content is presented to the user.
  • the sending module 30 may also adopt a plurality of commonly used ones.
  • the encoding method re-encodes the service data that does not carry the redirected URL, and separately stores the re-encoded service data, so as to further improve the efficiency of the user terminal to obtain data.
  • Embodiments of the present invention also provide a storage medium.
  • an execution instruction is stored in the storage medium, and the execution instruction is used to execute the foregoing method.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a data push method and apparatus provided by an embodiment of the present invention have the following beneficial effects: when a service request of a user terminal is received by a CDN node, if the service data pointed by the service request is not currently stored, The service data pointed to by the service request carries the redirected URL, and the service data that does not carry the redirected URL is obtained based on the redirected URL, and the service data that does not carry the redirected URL is stored as the service pointed by the service request.
  • the CDN node may use the stored The service data providing service that does not carry the redirected URL does not require the user terminal to perform a redirect jump, thereby improving the efficiency of the user terminal to obtain data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

L'invention concerne un procédé de poussée de données. Le procédé de poussée de données consiste à : lors de la réception d'une requête de service envoyée par un terminal d'utilisateur, déterminer, par un nœud de réseau de livraison de contenu (CDN), si des données de service indiquées par la requête de service sont mémorisées à l'heure actuelle ou non ; lorsque les données de service indiquées par la requête de service ne sont pas mémorisées à l'heure actuelle et que les données de service indiquées par la requête de service comportent un localisateur de ressources uniforme (URL) redirigé, acquérir, par le nœud CDN et sur la base de l'URL redirigé, des données de service qui ne comportent pas l'URL redirigé ; mémoriser, par le nœud CDN, les données de service qui ne comportent pas l'URL redirigé en tant que données de service indiquées par la requête de service et envoyer les données de service qui ne comportent pas l'URL redirigé au terminal d'utilisateur ; et lorsque les données de service indiquées par la requête de service sont mémorisées à l'heure actuelle, envoyer directement, par le nœud CDN, les données de service indiquées par la requête de service au terminal d'utilisateur. L'invention concerne également un appareil de poussée de données. La présente invention peut améliorer l'efficacité d'acquisition de données d'un terminal d'utilisateur.
PCT/CN2016/100598 2015-10-23 2016-09-28 Procédé et appareil de poussée de données WO2017067373A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510698072.2A CN106612311A (zh) 2015-10-23 2015-10-23 数据推送方法及装置
CN201510698072.2 2015-10-23

Publications (1)

Publication Number Publication Date
WO2017067373A1 true WO2017067373A1 (fr) 2017-04-27

Family

ID=58556739

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100598 WO2017067373A1 (fr) 2015-10-23 2016-09-28 Procédé et appareil de poussée de données

Country Status (2)

Country Link
CN (1) CN106612311A (fr)
WO (1) WO2017067373A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871489A (zh) 2019-03-06 2019-06-11 网宿科技股份有限公司 一种智能识别系统中的资源检索方法及智能识别系统
CN112333290B (zh) * 2021-01-05 2021-04-06 腾讯科技(深圳)有限公司 数据访问控制方法、装置、存储介质及内容分发网络系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197843A (zh) * 2007-11-13 2008-06-11 华为技术有限公司 页面重定向方法及无线应用协议网关
CN101854375A (zh) * 2009-03-31 2010-10-06 华为软件技术有限公司 重定向方法及装置
EP2355446A2 (fr) * 2010-02-02 2011-08-10 Swisscom AG Accès à des services restreints

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013078687A1 (fr) * 2011-12-02 2013-06-06 华为技术有限公司 Procédé d'acheminement de données sur un réseau de distribution de contenu, et système et terminal d'utilisateur correspondants
CN103051976B (zh) * 2013-01-22 2016-02-10 中兴通讯股份有限公司 一种cdn分发hls内容方法、系统及设备
CN104468817B (zh) * 2014-12-22 2016-08-24 北京奇虎科技有限公司 通过cdn下载资源的实现方法和装置、服务器、客户端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197843A (zh) * 2007-11-13 2008-06-11 华为技术有限公司 页面重定向方法及无线应用协议网关
CN101854375A (zh) * 2009-03-31 2010-10-06 华为软件技术有限公司 重定向方法及装置
EP2355446A2 (fr) * 2010-02-02 2011-08-10 Swisscom AG Accès à des services restreints

Also Published As

Publication number Publication date
CN106612311A (zh) 2017-05-03

Similar Documents

Publication Publication Date Title
CN107025234B (zh) 一种信息推送方法及缓存服务器
US9888089B2 (en) Client side cache management
US8321503B2 (en) Context-specific network resource addressing model for distributed services
US8892680B2 (en) System and method for caching content elements with dynamic URLs
KR102166589B1 (ko) 웹 페이지와 네이티브 애플리케이션 간의 통신을 실현하기 위한 방법 및 장치, 그리고 전자 디바이스
US20140280859A1 (en) Sharing control system and method for network resources download information
US7987243B2 (en) Method for media discovery
US8484373B2 (en) System and method for redirecting a request for a non-canonical web page
JP7331073B2 (ja) 強化されたオンラインプライバシ
US8949952B2 (en) Multi-stack subscriber sign on
US8824676B2 (en) Streaming video to cellular phones
CN103944994A (zh) 分布式资源获取方法及装置
WO2012034518A1 (fr) Procédé et système de production de message incluant une adresse universelle
US9058399B2 (en) System and method for providing network resource identifier shortening service to computing devices
US20170041422A1 (en) Method and system for retrieving a content manifest in a network
WO2013013556A1 (fr) Procédé et dispositif de rapport de données
WO2017067373A1 (fr) Procédé et appareil de poussée de données
CN101378407A (zh) 一种信息推送方法、系统及设备
CN112069386B (zh) 一种请求处理方法、装置、系统、终端及服务器
CN102904935B (zh) 基于家庭网关的下载方法、设备和系统
CN113285920B (zh) 业务访问方法、装置、设备及存储介质
CN110196842A (zh) 文件存储方法、管理方法、装置、服务器及存储介质
CN106790176B (zh) 一种访问网络的方法及系统
WO2014169497A1 (fr) Procédé et serveur de diffusion sélective d'un fichier multimédia
US20080033961A1 (en) Electronic Document Browsing

Legal Events

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

Ref document number: 16856806

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

Country of ref document: EP

Kind code of ref document: A1