WO2013091172A1 - 内容分发网络中文件下载方法、装置和系统 - Google Patents

内容分发网络中文件下载方法、装置和系统 Download PDF

Info

Publication number
WO2013091172A1
WO2013091172A1 PCT/CN2011/084275 CN2011084275W WO2013091172A1 WO 2013091172 A1 WO2013091172 A1 WO 2013091172A1 CN 2011084275 W CN2011084275 W CN 2011084275W WO 2013091172 A1 WO2013091172 A1 WO 2013091172A1
Authority
WO
WIPO (PCT)
Prior art keywords
file fragment
file
rate
transmission rate
sending
Prior art date
Application number
PCT/CN2011/084275
Other languages
English (en)
French (fr)
Inventor
许磊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2011/084275 priority Critical patent/WO2013091172A1/zh
Priority to CN201180003024.7A priority patent/CN103430489B/zh
Publication of WO2013091172A1 publication Critical patent/WO2013091172A1/zh
Priority to US14/145,481 priority patent/US9628352B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/508Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement
    • H04L41/509Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement wherein the managed service relates to media content delivery, e.g. audio, video or TV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • the present invention relates to the field of information technology, and in particular, to a file downloading method, apparatus, and system in a content distribution network. Background technique
  • the Content Delivery Network implements the distributed proximity service of content by publishing content to the edge of the network.
  • the CDN places the content cache server on each node of the network, and the CDN center control system according to the network in real time.
  • the traffic and the connection of each node, the load status, and the distance to the user, etc. direct the user's request to the best service node.
  • the time of the service request response is shortened by the CDN system, and the data transmission is performed. Increased stability, which improves the quality of network services.
  • the client sends a file request to the CDN edge cache server.
  • the CDN edge cache server determines whether the file is cached locally. If the file is cached locally, the CDN edge cache server sends the file directly to the client. If the file is not cached locally, the CDN edge cache server requests the content source server or the upper cache server to obtain the file, and after obtaining the file, forwards the file to the client.
  • the lower-level cache server requests the upper-level cache server or the content source server to obtain the target file, and the upper-level cache server or the content source server sends the file fragment to the lower-level cache server according to the pre-set file fragment sending rate, which cannot satisfy the lower-level cache server. Diversified download requirements, and thus can not provide users with flexible streaming services. Summary of the invention
  • Embodiments of the present invention provide a file downloading method, apparatus, and system in a content distribution network.
  • the system is used to solve the problem that the prior art cannot meet the diversified downloading requirements of the lower level cache server.
  • An embodiment of the present invention provides a file downloading method in a content distribution network, including: sending a request message for downloading a file fragment to a content source server or a superior cache server, where the request message carries a sending rate of the file fragment.
  • the sending rate of the file fragment is determined according to the requirement of playing the file fragment; and receiving the file fragment delivered according to the sending rate.
  • the embodiment of the present invention further provides a file downloading method in a content distribution network, including: receiving a request message for downloading a file fragment sent by a lower-level cache server, where the request message carries a sending rate of the file fragment, the file The sending rate of the fragment is determined by the lower-level cache server according to the requirement of playing the file fragmentation; and the file fragment is delivered according to the sending rate.
  • the embodiment of the present invention further provides a file downloading device in a content distribution network, comprising: a download request sending unit, configured to send a request message for downloading a file fragment to a content source server or a superior cache server, where the request message carries the The sending rate of the file fragment is determined according to the requirement of playing the file fragment; the content receiving unit is configured to receive the file fragment delivered according to the sending rate.
  • the embodiment of the present invention further provides a content providing apparatus in a content distribution network, including: a download request receiving unit, configured to receive a request message for downloading a file fragment sent by a lower-level cache server, where the request message carries the file fragment
  • the sending rate of the file is determined by the lower-level cache server according to the requirement of playing the file fragment; the content sending unit is configured to deliver the file fragment according to the sending rate.
  • the embodiment of the present invention further provides a file downloading system in a content distribution network, comprising: a file downloading device and a content providing device; and the file downloading device, configured to send a request message for downloading a file fragment to the content providing device, the request Carrying the file in the message a sending rate of the slice, the sending rate of the file fragment is determined according to the requirement of playing the file fragment; the content providing device, configured to receive a request message for downloading a file fragment sent by the file downloading device, and according to The file fragment is delivered at the sending rate.
  • the sending rate of the file fragment is determined according to the requirement of playing the file fragment, and the sending rate of the file fragment is carried in the request message for downloading the file fragment, so that the content source server or the upper level cache server
  • the file fragment is delivered according to the sending rate of the file fragment carried in the request message, which solves the problem that the upper-level cache server or the content source server cannot satisfy the diversified downloading requirement of the lower-level cache server in the prior art, so that the lower-level cache server can Provides flexible streaming services for end devices, which in turn improves the user experience.
  • FIG. 1 is a schematic flowchart of an embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of a file downloading apparatus in a content distribution network according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another embodiment of a file downloading apparatus in a content distribution network according to an embodiment of the present invention.
  • FIG. 7 is an implementation of a content providing apparatus in a content distribution network according to an embodiment of the present invention. Schematic diagram of the structure;
  • FIG. 8 is a schematic structural diagram of another embodiment of a content providing apparatus in a content distribution network according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an embodiment of a file downloading system in a content distribution network according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another embodiment of a file downloading system in a content distribution network according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of another embodiment of a file downloading system in a content distribution network according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic flowchart of an embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention. As shown in FIG. 1, the method in the embodiment of the present invention includes:
  • Step 100 Send a request message for downloading a file fragment to a content source server or a superior cache server, where the request message carries a sending rate of the file fragment, and the sending rate of the file fragment is according to playing the file.
  • the demand for the film is determined;
  • the manner of determining the sending rate of the file fragment includes: If the on-demand heat of the file fragment reaches a preset heat value or the file fragment is used for a play buffer of the terminal device, determining that the file fragment transmission rate is a desired transmission rate, and the expected transmission rate is greater than The minimum transmission rate for file fragmentation.
  • the lowest transmission rate of the file fragment may be used as the file.
  • the transmission rate of the slice may be used as the file.
  • the manner in which the request message carries the transmission rate of the file fragment includes: the request message carries the expected transmission rate and the minimum transmission rate of the file fragment; or the request message carries the file fragment.
  • Step 102 Receive the file fragment delivered according to the sending rate.
  • the sending rate of the file fragment is determined according to the requirement of playing the file fragment, and the sending rate of the file fragment is carried in the request message for downloading the file fragment, so that the content source server or the upper level cache server
  • the file fragment is delivered according to the sending rate of the file fragment carried in the request message, which solves the problem that the upper-level cache server or the content source server cannot satisfy the diversified downloading requirement of the lower-level cache server in the prior art, so that the lower-level cache server can Provides flexible streaming services for end devices, which in turn improves the user experience.
  • FIG. 2 is a schematic flowchart of another embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention. As shown in FIG. 2, the method in the embodiment of the present invention includes:
  • Step 200 Receive a request message for downloading a file fragment sent by a lower-level cache server, where the request message carries a sending rate of the file fragment, and the sending rate of the file fragment is that the lower-level cache server according to the playing
  • the method for determining the sending rate of the file fragment includes: if the on-demand heat of the file fragment reaches a preset heat value or the file fragmentation For playing buffer of the terminal device, determining that the sending rate of the file fragment is a desired sending rate, and the expected sending rate is greater than a minimum sending rate of the file fragment.
  • the lowest transmission rate of the file fragment may be used as the file.
  • the transmission rate of the slice may be used as the file.
  • the manner in which the request message carries the transmission rate of the file fragment includes: the request message carries the expected transmission rate and the minimum transmission rate of the file fragment; or the request message carries the file fragment.
  • Step 202 Deliver the file fragment according to the sending rate.
  • the request message of the downloaded file fragment sent by the lower-level server is received, and the request message carries the sending rate determined by the lower-level cache server according to the requirement of playing the file fragment, according to the file carried in the request message.
  • the file is fragmented at the sending rate of the chip, which satisfies the diversified downloading requirements of the lower-level cache server, so that the lower-level cache server can provide flexible streaming services for the terminal device, thereby improving the user experience.
  • the terminal device requests the edge cache server to download the "c" movie, and the edge cache server interacts with the terminal device and the content source server by using HTTP (Hyper Text Transfer Protoco l).
  • HTTP Hyper Text Transfer Protoco l
  • FIG. 3 is a schematic flowchart of another embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention. As shown in FIG. 3, the method in the embodiment of the present invention includes:
  • Step 300 The terminal device requests the edge cache server to download the "c"movie; the terminal device may send a download request message to the edge cache server, requesting to download "C" movie, for example:
  • Step 302 The edge cache server determines a minimum download rate of the "c” movie; in order to ensure that the "c” movie can be continuously played on the terminal device, the sending rate of the "c” movie cannot be lower than the minimum sending rate of the movie, otherwise, When the movie is played on the terminal device, screen pauses, mosaics, etc. may occur, affecting the user experience.
  • the edge cache server can determine the minimum sending rate of the "c" movie in a pre-configured manner. For example, a download request message with the prefix ht tp: //movie, youku. com/480 can be pre-configured in the edge cache server to request download.
  • the minimum download rate for the file is 4Mbps; or the download request message with the prefix ht tp: //movi e, youku. com/720, the minimum download rate for requesting the downloaded file is 6Mbps; or the prefix is ht tp: //movie, youku
  • the download request message of com/1080, the minimum download rate of the requested download file is 8 Mbps, etc.
  • the edge cache server receives the download request message, by identifying the download request message, it can determine the minimum transmission rate of the terminal device requesting to download the content.
  • Step 304 The edge cache server divides the content of the "c” movie into file fragments according to the download request of the "c” movie;
  • the edge cache server can slice the content of the "c” movie by the length of time, or slice the content of the "c” movie by a fixed byte size.
  • Step 306 The edge cache server determines whether all file fragments of the "c" movie are cached locally;
  • Step 308 For a file fragment that is not cached in the "c" movie in the edge cache server, the edge cache server determines a sending rate of the file fragment.
  • the terminal device Since the terminal device usually needs to cache part of the content of the movie before playing the movie, to prevent the terminal device from being stuck during playback, therefore, It is usually expected to download at a faster rate to quickly fill the buffer, reduce the program buffer time, and thus reduce the time the user waits for playback to enhance the user experience.
  • determining the sending rate of the file fragment may be determined according to the following manner: if the file fragment requested by the terminal device is used for the terminal device The play buffer determines that the transmission rate of the file fragment is a desired transmission rate, and the expected transmission rate is greater than a minimum transmission rate of the file fragment.
  • the edge cache server receives the download request sent by the terminal device for the first time. If the uncached file fragment in the edge cache server is the initial file fragment of the file, the edge cache server can increase the sending rate of the initial file fragment. For example, if the minimum download rate of uncached file fragments is 2 Mbps, the file fragment rate can be set to the desired transmission rate, for example, 4 Mbps or 6 Mbps, etc., and 4 Mbps or 6 Mbps can be used as the file transmission rate. .
  • the download request of the terminal device received by the edge cache server may also be a request for the terminal device to re-establish a new link in the case that the established link is disconnected, for example, the edge cache server receives the terminal device.
  • the sent jump request may increase the sending rate of the file fragment if the requested file fragment is not cached in the edge cache server. For example, if the minimum download rate of uncached file fragments is 2 Mbps, the transmission rate of the file fragment can be set to a desired transmission rate, for example, 6 Mbps or 8 Mbps.
  • the transmission rate of the file fragment can be set to the desired transmission rate, and the file is requested at the desired transmission rate.
  • the content of the film can be set to the desired transmission rate.
  • the file fragmentation on-demand of the "c" movie reaches the edge cache server settings. Cache the heat value of the file fragment, and when the file fragment needs to be cached locally, the desired download rate of the file fragment may be carried in the download request sent to the content source server, so as to slice the file.
  • the local cache device downloads and caches the file as soon as possible.
  • the edge cache server directly provides the file fragmentation for other terminal devices locally, which reduces the response time requested by the terminal device and improves the user experience.
  • Step 310 The edge cache server sends a download request to the content source server, where the download request carries the sending rate of the file fragment.
  • the manner in which the download request carries the transmission rate of the file fragment may include multiple manners.
  • X-download-speed which indicates the sending rate of the downloaded content
  • 0-16777215 indicating the byte of the file fragment, that is, the size of a complete file fragment; 2048000, indicating the lowest transmission rate, that is, 2Mbps;
  • 0-16777215 2048000-4096000 , indicating that the file has a minimum transmission rate of 2 Mbps and an expected transmission rate of 4 Mbps.
  • the content source server can ensure the minimum transmission rate of the file fragmentation when the desired transmission rate determined by the edge cache server cannot be reached.
  • the segment sending rate of the file fragment may be carried in the header of the download request message.
  • a file fragment is 16777215 bytes, and only the file is fragmented.
  • the content of the first 0-4096000 bytes is downloaded according to the transmission rate of 4Mbps, and the content after 4096000 bytes only needs to be downloaded at the transmission rate of 2Mbps.
  • the following fields can be carried in the header of the download request message:
  • X-download-speed which indicates the sending rate of the downloaded content
  • 0-4096000 indicating the segmentation byte of the file fragment. For example, a complete fragment is 0-16777215 bytes, and 0-4096000 indicates the first 4096000 bytes of the file fragment;
  • 4096000 where 4096000 represents the transmission rate, ie 4Mbps;
  • 4096000- indicating that the file is fragmented from all bytes after 4096000 bytes; 2048000, indicating the transmission rate, that is, 2Mbps;
  • the transmission rate of the file fragment to be downloaded can be accurately controlled.
  • the download request may further carry a segment desired transmission rate and a segmentation minimum transmission rate of the file fragment, so that the content source server ensures file fragmentation when the segmentation desired transmission rate determined by the edge cache server cannot be reached.
  • the minimum transmission rate for segmentation may be provided.
  • X-download-speed which indicates the sending rate of the downloaded content
  • 0-4096000 indicates the segmentation byte of the file fragment. For example, a complete fragment is 0-16777215 bytes, 0-4096000 indicates the first 4096000 bytes of the file fragmentation; 2048000, indicating the lowest transmission rate, ie 2Mbps ;
  • 0-4096000 2048000-4096000, indicating that the minimum transmission rate of the first 4096000 bytes of the file fragment is 2Mbps, and the expected transmission rate is 4Mbps;
  • 4096000- indicating that the file is fragmented from all bytes after 4096000 bytes; 2048000, indicating the transmission rate, that is, 2Mbps;
  • the content source server By sending the segment desired transmission rate and the minimum transmission rate of the file fragment in the download request, the content source server ensures the minimum transmission rate of the file fragmentation when the content source server fails to reach the desired transmission rate determined by the edge cache server, and ensures the terminal device. Ability to continuously download file fragments.
  • Step 312 The content source server sends the file fragmentation to the edge cache server according to the sending rate of the file fragment carried in the download request.
  • the content source server needs to determine the available bandwidth of the network port.
  • the maximum bandwidth of the network port of the content source server is 10 G. If there are currently 1000 terminal devices being downloaded, 500 of the terminal devices, each terminal The device downloads with 8Mbps bandwidth, and another 500 terminal devices. Each terminal device uses 2Mbps bandwidth to download. The total network port usage bandwidth is 5Gb P s. Then, the content source server has 5Gbps of available bandwidth.
  • the file fragment is delivered at the sending rate of the file fragment; if the available bandwidth is smaller than the file fragmentation If the sending rate is refused, the file fragmentation is refused to be sent to avoid sending Congestion occurs, affecting the download quality of other terminal devices.
  • the download request of the file fragment carries the expected transmission rate and the minimum transmission rate of the file fragment
  • the available bandwidth is equal to or greater than the expected transmission rate of the file fragment
  • Sending the file fragment at a desired sending rate of the file fragment if the available bandwidth is greater than a minimum sending rate of the file fragment, less than a desired sending rate of the file fragment, the available bandwidth is For the sending rate of the file fragment, the file fragment is sent to improve the network utilization; if the available bandwidth is smaller than the minimum sending rate of the file fragment, the file fragment is refused to be delivered, Avoid congestion and affect the download quality of other terminal devices.
  • the download request of the file fragment carries the segment transmission rate of the file fragment
  • the available bandwidth is greater than or equal to the segment transmission rate of the file fragment
  • Deleting the segment of the file fragment by the segment sending rate of the file fragment if the available bandwidth is smaller than the segment sending rate of the file fragment, rejecting the segmentation of the file fragment, Avoid congestion and affect the download quality of other terminal devices.
  • the download request of the file fragment carries the segment desired transmission rate and the segment minimum transmission rate of the file fragment, if the available bandwidth is equal to or larger than the file fragmentation.
  • the segmentation desired transmission rate is delivered by the segmentation desired transmission rate of the file fragment; if the available bandwidth is greater than the segment minimum transmission rate of the file fragment, less than the The segmentation desired rate of the file fragmentation is performed, and the available bandwidth is the segmentation transmission rate of the file fragment, and the segmentation of the file fragment is delivered to improve network utilization; if the available bandwidth is less than If the fragmentation rate of the file fragment is the lowest, the segmentation of the file fragment is refused, so as to avoid congestion and affect the download quality of other terminal devices.
  • Step 314 The edge cache server receives the file sent by the content source server. The fragments are forwarded to the terminal device.
  • the edge cache server determines the sending rate of the file fragment by analyzing the status of the file fragment to be downloaded, and the sending rate of the file fragment is carried in the request message for downloading the file fragment, so that
  • the content source server delivers the file fragmentation according to the sending rate of the file fragment carried in the request message, which solves the problem that the upper-level content source server cannot satisfy the diversified downloading requirement of the lower-level cache server in the prior art, so that the lower-level cache server can Provides flexible streaming services for end devices, which in turn improves the user experience.
  • FIG. 4 is a schematic flowchart of another embodiment of a file downloading method in a content distribution network according to an embodiment of the present invention. As shown in FIG. 4, the method in the embodiment of the present invention includes:
  • Step 400 The terminal device requests the edge cache server to download the "c” movie.
  • Step 402 The edge cache server determines the minimum download rate of the "c” movie; the edge cache server can determine the minimum sending rate of the "c” movie by a pre-configured manner.
  • the pre-configured manner has been described in the third embodiment of the method, and the embodiment is not repeated.
  • Step 404 The edge cache server divides the content of the "c” movie into file fragments according to the download request of the "c" movie;
  • Step 406 The edge cache server determines whether all file fragments of the "c" movie are cached locally;
  • Step 408 For a file fragment that is not cached in the "c" movie in the edge cache server, the edge cache server determines a sending rate of the file fragment.
  • the manner of determining the transmission rate of the file fragment is in the third embodiment of the method. It has been explained that this embodiment will not be repeated.
  • Step 410 The edge cache server sends a download request to the central layer cache server, where the download request carries the file segment sending rate.
  • the method for carrying the transmission rate of the file fragment in the download request is described in the third embodiment, and the embodiment of the present invention is not repeated.
  • Step 412 The central layer cache server determines whether the file fragment requested to be downloaded is cached. If the file fragment requested by the edge cache server is downloaded, step 414 and step 416 are performed; if the file fragment requested to be downloaded is not cached, Performing steps 418 to 424;
  • the content distribution network may have multiple levels of central layer cache servers, and the specific level is determined by a specific application scenario. , here is just an example, not limited.
  • the central layer cache server can directly provide services to users.
  • Step 414 The central layer cache server sends the file fragmentation to the edge cache server according to the sending rate of the file fragment carried in the download request.
  • Step 416 The edge cache server forwards the received file fragment sent by the central layer cache server to the terminal device.
  • Step 418 Forward the download request of the file fragment to the content source server.
  • Step 420 The content source server sends the file fragment to the central layer cache server according to the sending rate of the file fragment carried in the download request.
  • Step 422 The central layer cache server forwards the file fragment sent by the received content source server to the edge cache server.
  • Step 424 The edge cache server sends the received central layer cache server. File fragments are forwarded to the terminal device.
  • the edge cache server determines the sending rate of the file fragment by analyzing the status of the file fragment to be downloaded, and the sending rate of the file fragment is carried in the request message for downloading the file fragment, so that The content source server or the upper-level cache server delivers the file fragmentation according to the sending rate of the file fragment carried in the request message, which solves the problem that the upper-level cache server or the content source server cannot meet the diversified downloading requirements of the lower-level cache server in the prior art.
  • the problem is that the lower-level cache server can provide flexible streaming services for the terminal device, thereby improving the user experience.
  • FIG. 5 is a schematic structural diagram of an embodiment of a file downloading apparatus in a content distribution network according to an embodiment of the present invention.
  • the file downloading apparatus includes a download request sending unit 500 and a content receiving unit 502.
  • the download request sending unit 500 is configured to send a request message for downloading a file fragment to the content source server or the upper-level cache server, where the request message carries a sending rate of the file fragment, and the sending rate of the file fragment is according to the playing.
  • the requirements for the file fragmentation are determined;
  • the content receiving unit 502 is configured to receive the file fragment delivered according to the sending rate.
  • the file downloading device determines the sending rate of the file fragment according to the requirement of playing the file fragmentation, and the sending rate of the file fragment is carried in the request message for downloading the file fragment and sent to the content source server or
  • the upper-level cache server enables the content source server or the upper-level cache server to deliver the file fragmentation according to the sending rate of the file fragment carried in the request message.
  • the upper-level cache server or the content source server cannot satisfy the file downloading device. Problem with downloading requirements, making file downloads
  • the device can provide flexible streaming services for terminal devices, thereby improving the user experience.
  • Device embodiment 2
  • FIG. 6 is a schematic structural diagram of another embodiment of a file downloading apparatus in a content distribution network according to an embodiment of the present invention.
  • the download request sending unit 500 may include a first sending unit 5001 and a second determining unit 5002.
  • the first sending unit 5001 is configured to send, to the content source server or the upper-level cache server, a request message for downloading a file fragment, where the request message carries a sending rate of the file fragment;
  • the second determining unit 5002 is configured to determine that the sending rate of the file fragment is a desired sending rate when the on-demand heat of the file fragment reaches a preset heat value or the file fragment is used for playing buffer of the terminal device.
  • the expected transmission rate is greater than a minimum transmission rate of the file fragment.
  • the second determining unit 5002 may be further configured to determine the file when the on-demand heat of the file fragment reaches a preset heat value or the file fragment is used for playing buffer of the terminal device.
  • the sending rate of the fragment is a desired sending rate, and the expected sending rate is greater than the lowest sending rate of the file fragment; when the on-demand heat of the file fragment does not reach a preset heat value, and the file fragment is not used
  • the minimum transmission rate of the file fragment is used as the transmission rate of the file fragment in the playback buffer of the terminal device, so as to occupy the minimum bandwidth and save bandwidth resources when the terminal device is normally played.
  • the manner in which the request message carries the transmission rate of the file fragment may include one of the following methods:
  • Manner 1 The request message carries the expected transmission rate and the minimum transmission rate of the file fragment, and the expected transmission rate and the minimum transmission rate are used to ensure the minimum transmission rate when the expected transmission rate cannot be met.
  • Manner 2 The segment sending rate of the file fragment in the request message, the sub-method 3: the segment desired transmission rate and the segment minimum transmission rate of the file fragment in the request message, the segment The expected transmission rate and the segmented minimum transmission rate are used to ensure the segment minimum transmission rate when the segment desired transmission rate cannot be satisfied.
  • the sending rate of the file fragment is determined according to the requirement of playing the file fragment, and the manner of determining the sending rate of the file fragment may include: if the on-demand heat of the file fragment reaches a preset The heat value or the file fragment is used for playing buffer of the terminal device, determining that the sending rate of the file fragment is a desired sending rate, so that the terminal device downloads at a faster rate, reducing the time that the user waits for playing, so as to improve the user.
  • the manner of determining the sending rate of the file fragment may include: if the on-demand heat of the file fragment reaches a preset The heat value or the file fragment is used for playing buffer of the terminal device, determining that the sending rate of the file fragment is a desired sending rate, so that the terminal device downloads at a faster rate, reducing the time that the user waits for playing, so as to improve the user.
  • the manner of determining the sending rate of the file fragment may include: if the on-demand heat of the file fragment reaches a preset The heat
  • FIG. 7 is a schematic structural diagram of an embodiment of a content providing apparatus in a content distribution network according to an embodiment of the present invention.
  • the content providing apparatus includes a download request receiving unit 600 and a content sending unit 602.
  • the download request receiving unit 600 is configured to receive a request message for downloading a file fragment sent by a lower-level cache server, where the request message carries a sending rate of the file fragment, and the sending rate of the file fragment is the lower-level cache server. Determined according to the need to play the file segmentation;
  • the content sending unit 602 is connected to the download request receiving unit 600, and the content sending unit 602 is configured to deliver the file fragment according to the sending rate.
  • the content providing apparatus receives the request message for downloading the file fragment sent by the lower-level cache server, and delivers the file according to the file sending rate determined by the lower-level cache server, thereby providing a flexible streaming service for the lower-level cache server.
  • Device embodiment four
  • FIG. 8 is a schematic structural diagram of another embodiment of a content providing apparatus in a content distribution network according to an embodiment of the present invention.
  • the content sending unit 602 includes a first acquiring unit 6021 and a second sending unit 6022.
  • the first obtaining unit 6021 is configured to acquire the available bandwidth
  • the second sending unit 6022 is configured to send the file at the sending rate of the file fragment when the available bandwidth is greater than or equal to the sending rate of the file fragment. Fragmentation; when the available bandwidth is less than the transmission rate of the file fragment, the file fragmentation is refused to be delivered.
  • the second sending unit 6022 is further configured to: when the available bandwidth is equal to or greater than a desired sending rate of the file fragment, send the file fragment at a desired sending rate of the file fragment; when the available bandwidth is greater than the file When the minimum transmission rate of the fragment is smaller than the expected transmission rate of the file fragment, the file fragment is delivered with the available bandwidth as the transmission rate of the file fragment; when the available bandwidth is smaller than the file division When the minimum transmission rate of the slice is reached, the file fragmentation is refused to be sent to avoid congestion.
  • the content providing apparatus delivers the request message carrying the downloading rate of the downloaded file fragment sent by the lower-level server, and delivers the file fragmentation according to the sending rate of the file fragment and the available bandwidth of the file, and satisfies the The downloading requirements of the lower level cache server ensure the file download quality of other terminal devices.
  • the content sending unit 602 is further configured to: when the file fragment is not cached, forward the request message for downloading the file fragment to the content source server, so that the content source server sends the content source server according to the sending The file fragment is sent at a rate.
  • FIG. 9 is a schematic structural diagram of an embodiment of a file downloading system in a content distribution network according to an embodiment of the present invention.
  • the file downloading system includes a file downloading apparatus. 700 and content providing device 702.
  • the file downloading apparatus 700 is configured to send a request message for downloading a file fragment to the content providing apparatus 702, where the request message carries a sending rate of the file fragment, and the sending rate of the file fragment is according to playing the file The demand for the film is determined;
  • the content providing device 702 is connected to the file downloading device 700, and the content providing device 702 is configured to receive the request message for downloading the file fragment sent by the file downloading device 700, and deliver the file fragment according to the sending rate.
  • the file downloading device determines the sending rate of the file fragment to be downloaded according to the requirement of playing the file fragmentation, and carries the sending rate of the file fragment in the file download request message and sends the content to the content providing apparatus.
  • the content providing device delivers the file fragmentation according to the sending rate of the file fragment, which satisfies the diversified downloading requirements of the file downloading device, and further enables the file downloading device to provide a flexible streaming service for the terminal device and enhance the user's body.
  • the method for determining the sending rate of the file fragment may further include: determining, when the on-demand heat of the file fragment reaches a preset heat value or the file fragment is used for playing buffer of the terminal device, determining the file fragmentation
  • the sending rate is the expected sending rate, and the expected sending rate is greater than the lowest sending rate of the file fragment; when the on-demand heat of the file fragment does not reach the preset heat value, and the file fragment is not used for the terminal device
  • the minimum transmission rate of the file fragment is used as the transmission rate of the file fragment, so that the minimum bandwidth is occupied and the bandwidth resource is saved when the terminal device is normally played.
  • the manner in which the request message carries the transmission rate of the file fragment may include one of the following modes:
  • Manner 1 The request message carries the expected transmission rate and the minimum transmission rate of the file fragment, and the expected transmission rate and the minimum transmission rate are used for the desired transmission rate. When the rate cannot be satisfied, the minimum transmission rate is guaranteed;
  • Manner 2 The segment sending rate of the file fragment in the request message
  • sub-method 3 the segment desired transmission rate and the segment minimum transmission rate of the file fragment in the request message
  • the expected transmission rate and the segmented minimum transmission rate are used to ensure the segment minimum transmission rate when the segment desired transmission rate cannot be satisfied.
  • the manner in which the file fragment is delivered according to the sending rate may include one of the following manners:
  • Manner 1 Obtaining the available bandwidth, if the available bandwidth is greater than or equal to the sending rate of the file fragment, sending the file fragment at the sending rate of the file fragment; if the available bandwidth is smaller than the file fragmentation
  • the sending rate refuses to deliver the file fragmentation to avoid congestion and affect the download quality of other terminal devices.
  • Manner 2 Obtaining the available bandwidth, if the available bandwidth is equal to or greater than the expected transmission rate of the file fragment, the file fragment is delivered at the expected transmission rate of the file fragment; if the available bandwidth is greater than the file size The minimum transmission rate of the slice is smaller than the expected transmission rate of the file fragment, and the file fragment is sent to improve the network utilization rate if the available bandwidth is the transmission rate of the file fragment. If the bandwidth is smaller than the minimum transmission rate of the file fragment, the file fragmentation is refused to be sent to avoid congestion and affect the download quality of other terminal devices.
  • the third method is to obtain the available bandwidth. If the available bandwidth is greater than or equal to the segmented sending rate of the file fragment, the fragment of the file fragment is delivered at the segment sending rate of the file fragment; If the segment transmission rate of the file fragment is smaller than that, the segmentation of the file fragment is refused, so as to avoid congestion and affect the download quality of other terminal devices.
  • the file downloading system 700 includes a first sending unit 7001 and a rate determining unit 7002. .
  • the first sending unit 7001 is configured to send, to the content providing apparatus 702, a request message for downloading a file fragment, where the request message carries a sending rate of the file fragment;
  • the rate determining unit 7002 is configured to determine that a sending rate of the file fragment is a desired sending rate when the on-demand heat of the file fragment reaches a preset heat value or the file fragment is used for a play buffer of the terminal device.
  • the desired transmission rate is greater than a minimum transmission rate of the file fragment.
  • the file downloading device determines the sending rate of the file fragment according to the requirement of the specific playing file fragment, so as to provide flexible streaming services for the terminal device.
  • the request message further carries a minimum transmission rate of the file fragment, where the lowest transmission rate is used by the content source server or the upper cache server, and the expected transmission rate cannot be satisfied.
  • the minimum transmission rate is guaranteed.
  • FIG. 11 is a schematic structural diagram of another embodiment of a file downloading system in a content distribution network according to an embodiment of the present invention.
  • the content providing apparatus 702 includes a receiving unit 7021 and a distributing unit 7022.
  • the receiving unit 7021 is configured to receive a request message for downloading a file fragment sent by the file downloading apparatus 700;
  • the distribution unit 7022 is configured to acquire an available bandwidth, and when the available bandwidth is equal to or greater than a desired transmission rate of the file fragment, a desired transmission speed of the file fragmentation Sending the file fragmentation rate; when the available bandwidth is greater than the minimum sending rate of the file fragment, and less than the expected sending rate of the file fragment, the available bandwidth is the sending rate of the file fragment, The file fragment is delivered; when the available bandwidth is less than the lowest transmission rate of the file fragment, the file fragmentation is refused to be delivered.
  • the content providing apparatus determines the sending rate of the file fragment according to the sending rate carried in the file fragment downloading request and the available bandwidth that can be provided by the file fragment downloading request, and improves the utilization of the network while avoiding congestion.
  • the download quality of other terminal devices is guaranteed, and the user experience is improved.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, devices, unit-coupled or communication connections, or may be electrical, mechanical Or other forms of connection.
  • the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acces s Memory), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明提供一种内容分发网络中文件下载方法、装置和系统,通过根据播放文件分片的需求确定文件分片的发送速率,将该文件分片的发送速率携带在下载文件分片的请求消息中,使得内容源服务器或上级缓存服务器根据请求消息中携带的文件分片的发送速率下发文件分片,解决了现有技术中,上级缓存服务器或内容源服务器无法满足下级缓存服务器多元化的下载需求的问题,使得下级缓存服务器能为终端设备提供灵活的流化服务,进而提高了用户体验。

Description

说 明 书
内容分发网络中文件下载方法、 装置和系统
技术领域
本发明涉及信息技术领域,尤其涉及一种内容分发网络中文件下 载方法、 装置和系统。 背景技术
内容分发网络(Content De l ivery Network , CDN)是通过将内容 发布到网络的边缘, 实现内容的分布式就近服务, CDN通过在网络各 节点放置内容緩存服务器,由 CDN中心控制系统实时地根据网络流量 和各节点的连接、 负载状况以及到用户的距离等信息, 将用户的请求 导向到最佳的服务节点上, 对用户来说, 通过 CDN系统, 服务请求响 应的时间被缩短,数据传输的稳定性提高,从而提高了网络服务质量。
在 CDN中, 客户端向 CDN边缘緩存服务器发送文件请求, CDN边 缘緩存服务器在收到请求后, 判断本地是否緩存了该文件, 若本地緩 存了该文件, 则 CDN边缘緩存服务器直接向客户端发送该文件; 若本 地没有緩存该文件,则 CDN边缘緩存服务器向内容源服务器或上层緩 存服务器请求获取该文件,在获取该文件后,将该文件转发给客户端。
目前,下级緩存服务器向上级緩存服务器或内容源服务器请求获 取目标文件,上级緩存服务器或内容源服务器按照预先设置的文件分 片的发送速率, 向下级緩存服务器发送文件分片, 无法满足下级緩存 服务器多元化的下载需求, 进而不能为用户提供灵活的流化服务。 发明内容
本发明实施例提供一种内容分发网络中文件下载方法、装置和系 统,用于解决现有技术中无法满足下级緩存服务器多元化下载需求的 问题。
本发明实施例提供一种内容分发网络中文件下载方法,包括: 向 内容源服务器或上级緩存服务器发送下载文件分片的请求消息,所述 请求消息中携带所述文件分片的发送速率,所述文件分片的发送速率 是根据播放所述文件分片的需求确定的;接收按照所述发送速率下发 的所述文件分片。
本发明实施例还提供一种内容分发网络中文件下载方法,包括: 接收下级緩存服务器发送的下载文件分片的请求消息,所述请求消息 中携带所述文件分片的发送速率,所述文件分片的发送速率是所述下 级緩存服务器根据播放所述文件分片的需求确定的;根据所述发送速 率下发所述文件分片。
本发明实施例还提供一种内容分发网络中文件下载装置,包括: 下载请求发送单元,用于向内容源服务器或上级緩存服务器发送下载 文件分片的请求消息, 所述请求消息中携带所述文件分片的发送速 率,所述文件分片的发送速率是根据播放所述文件分片的需求确定的; 内容接收单元, 用于接收按照所述发送速率下发的所述文件分片。
本发明实施例还提供一种内容分发网络中内容提供装置,包括: 下载请求接收单元,用于接收下级緩存服务器发送的下载文件分片的 请求消息, 所述请求消息中携带所述文件分片的发送速率, 所述文件 分片的发送速率是所述下级緩存服务器根据播放所述文件分片的需 求确定的;内容发送单元,用于根据所述发送速率下发所述文件分片。
本发明实施例还提供一种内容分发网络中文件下载系统, 包括: 文件下载装置和内容提供装置; 所述文件下载装置, 用于向内容提供 装置发送下载文件分片的请求消息,所述请求消息中携带所述文件分 片的发送速率,所述文件分片的发送速率是根据播放所述文件分片的 需求确定的; 所述内容提供装置, 用于接收文件下载装置发送的下载 文件分片的请求消息, 以及根据所述发送速率下发所述文件分片。
在本发明实施例中,通过根据播放文件分片的需求确定文件分片 的发送速率,将该文件分片的发送速率携带在下载文件分片的请求消 息中,使得内容源服务器或上级緩存服务器根据请求消息中携带的文 件分片的发送速率下发文件分片, 解决了现有技术中, 上级緩存服务 器或内容源服务器无法满足下级緩存服务器多元化的下载需求的问 题, 使得下级緩存服务器能为终端设备提供灵活的流化服务, 进而提 高了用户体验。
附图说明
图 1 为本发明实施例内容分发网络中文件下载方法的一个实施 例的流程示意图;
图 2 为本发明实施例内容分发网络中文件下载方法的另一个实 施例的流程示意图;
图 3 为本发明实施例内容分发网络中文件下载方法的另一个实 施例的流程示意图;
图 4 为本发明实施例内容分发网络中文件下载方法的另一个实 施例的流程示意图;
图 5 为本发明实施例内容分发网络中文件下载装置的一个实施 例的结构示意图;
图 6 为本发明实施例内容分发网络中文件下载装置的另一个实 施例的结构示意图;
图 7 为本发明实施例内容分发网络中内容提供装置的一个实施 例的结构示意图;
图 8 为本发明实施例内容分发网络中内容提供装置的另一个实 施例的结构示意图;
图 9 为本发明实施例内容分发网络中文件下载系统的一个实施 例的结构示意图;
图 10为本发明实施例内容分发网络中文件下载系统的另一个实 施例的结构示意图;
图 11为本发明实施例内容分发网络中文件下载系统的另一个实 施例的结构示意图。 具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结 合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有 作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护 的范围。
下面对本发明方法实施例的整体技术方案进行说明。
方法实施例一
图 1 为本发明实施例内容分发网络中文件下载方法的一个实施 例的流程示意图, 如图 1所示, 本发明实施例的方法包括:
步骤 100、 向内容源服务器或上级緩存服务器发送下载文件分片 的请求消息, 所述请求消息中携带所述文件分片的发送速率, 所述文 件分片的发送速率是根据播放所述文件分片的需求确定的;
在本发明实施例中, 确定该文件分片的发送速率的方式包括: 若所述文件分片的点播热度达到预置的热度值或所述文件分片 用于终端设备的播放緩沖,确定所述文件分片的发送速率为期望发送 速率, 所述期望发送速率大于所述文件分片的最低发送速率。
此外, 若所述文件分片的点播热度未达到预置的热度值, 且所述 文件分片不用于终端设备的播放緩沖时,可以将所述文件分片的最低 发送速率作为所述文件分片的发送速率。
在本发明实施例中,请求消息中携带文件分片的发送速率的方式 包括: 请求消息中携带所述文件分片的期望发送速率和最低发送速 率; 或请求消息中携带所述文件分片的分段发送速率; 或请求消息中 携带所述文件分片的分段期望发送速率和分段最低发送速率等。
步骤 102、 接收按照所述发送速率下发的所述文件分片。
在本发明实施例中,通过根据播放文件分片的需求确定文件分片 的发送速率,将该文件分片的发送速率携带在下载文件分片的请求消 息中,使得内容源服务器或上级緩存服务器根据请求消息中携带的文 件分片的发送速率下发文件分片, 解决了现有技术中, 上级緩存服务 器或内容源服务器无法满足下级緩存服务器多元化的下载需求的问 题, 使得下级緩存服务器能为终端设备提供灵活的流化服务, 进而提 高了用户体验。
图 2 为本发明实施例内容分发网络中文件下载方法的另一个实 施例的流程示意图, 如图 2所示, 本发明实施例的方法包括:
步骤 200、接收下级緩存服务器发送的下载文件分片的请求消息, 所述请求消息中携带所述文件分片的发送速率,所述文件分片的发送 速率是所述下级緩存服务器根据播放所述文件分片的需求确定的; 在本发明实施例中, 确定该文件分片的发送速率的方式包括: 若所述文件分片的点播热度达到预置的热度值或所述文件分片 用于终端设备的播放緩沖,确定所述文件分片的发送速率为期望发送 速率, 所述期望发送速率大于所述文件分片的最低发送速率。
此外, 若所述文件分片的点播热度未达到预置的热度值, 且所述 文件分片不用于终端设备的播放緩沖时,可以将所述文件分片的最低 发送速率作为所述文件分片的发送速率。
在本发明实施例中,请求消息中携带文件分片的发送速率的方式 包括: 请求消息中携带所述文件分片的期望发送速率和最低发送速 率; 或请求消息中携带所述文件分片的分段发送速率; 或请求消息中 携带所述文件分片的分段期望发送速率和分段最低发送速率等。
步骤 202、 根据所述发送速率下发所述文件分片。
在本发明实施例中,通过接收下级服务器发送的下载文件分片的 请求消息,该请求消息中携带下级緩存服务器根据播放该文件分片的 需求确定的发送速率,根据请求消息中携带的文件分片的发送速率下 发文件分片, 满足了下级緩存服务器多元化的下载需求, 使得下级緩 存服务器能为终端设备提供灵活的流化服务, 进而提高了用户体验。
为了更加清楚的说明本发明的技术方案,下述以两级组网模式的 CDN为例详细说明本发明的技术方案。
方法实施例三
在本发明实施例中, 终端设备向边缘緩存服务器请求下载 "c" 影片, 边缘緩存服务器与终端设备和内容源服务器之间采用 HTTP ( Hyper Text Trans fer Protoco l , 超文本传输协议 )进行交互。
图 3 为本发明实施例内容分发网络中文件下载方法的另一个实 施例的流程示意图, 如图 3所示, 本发明实施例的方法包括:
步骤 300、 终端设备向边缘緩存服务器请求下载 "c" 影片; 终端设备可以向边缘緩存服务器发送下载请求消息, 请求下载 " C " 影片, 例如:
GET ht tp: //movie, youku. com/480p/c. f lv HTTP/1. 1
步骤 302、 边缘緩存服务器确定 "c" 影片的最低下载速率; 为了保证 "c" 影片在终端设备上能够连续播放, "c" 影片的发 送速率不能低于该影片的最低发送速率, 否则, 该影片在终端设备上 播放时, 会出现画面停顿、 马赛克等现象, 影响用户体验。
边缘緩存服务器可以通过预先配置的方式确定 "c" 影片的最低 发送速率, 例如, 可以预先在边缘緩存服务器中配置前缀为 ht tp: //movie, youku. com/480 的下载请求消息, 请求下载文件的最 低下载速率为 4Mbps ; 或前缀为 ht tp: //movi e, youku. com/720 的下 载请求消息, 请求下载文件的最低下载速率为 6Mbps ; 或前缀为 ht tp: //movie, youku. com/1080 的下载请求消息, 请求下载文件的 最低下载速率为 8Mbps 等, 当边缘緩存服务器接收到下载请求消息 时, 通过识别下载请求消息, 就可以确定终端设备请求下载内容的最 低发送速率。
步骤 304、 边缘緩存服务器根据 "c" 影片的下载请求, 将 "c" 影片的内容划分成文件分片;
边缘緩存服务器可以按照时间长度对 "c"影片的内容进行分片, 也可以按照固定字节大小对 "c" 影片的内容进行分片。
步骤 306、 边缘緩存服务器判断本地是否緩存有 "c" 影片的全 部文件分片;
步骤 308、 对于没有緩存在边缘緩存服务器中 "c" 影片的文件 分片, 边缘緩存服务器确定该文件分片的发送速率;
由于终端设备在播放影片前, 通常需要緩存该影片的部分内容, 以防止终端设备在播放过程中出现卡顿现象, 因此, 对于开始下载内 容, 通常期望以较快速率下载, 以快速填满緩沖区, 减少节目緩沖时 间, 进而减少用户等待播放的时间, 以提升用户体验。
在本发明实施例中, 对于没有緩存在边缘緩存服务器中 " C " 影 片的文件分片, 确定该文件分片的发送速率可以根据下列方式确定: 若终端设备请求的文件分片用于终端设备的播放緩沖,则确定所 述文件分片的发送速率为期望发送速率,所述期望发送速率大于所述 文件分片的最低发送速率。
例如, 边缘緩存服务器首次接收到终端设备发送的下载请求, 若 边缘緩存服务器中未緩存的文件分片是该文件的初始文件分片,则边 缘緩存服务器可以提高该初始文件分片的发送速率。 例如, 未緩存的 文件分片的最低下载速率范为 2Mbps , 则可以将该文件分片的速率设 置为期望发送速率,例如, 4Mbps或 6Mbps等,可以将 4Mbps或 6Mbps 作为文件分片的发送速率。
需要说明的是, 边缘緩存服务器接收到的终端设备的下载请求, 也可以是终端设备在断开已经建立的链接的情况下,重新建立一条新 链接的请求,例如,边缘緩存服务器接收到终端设备发送的跳转请求, 若该请求的文件分片在边缘緩存服务器中没有緩存,则可以提高该文 件分片的发送速率。 例如, 未緩存的文件分片的最低下载速率范为 2Mbps , 则可以将该文件分片的发送速率设置期望发送速率, 例如, 6Mbps或 8Mbps等。
需要说明的是, 上述举例只对本案做说明之用, 不做限定。
此外, 还需要说明的是, 若 "c" 影片的文件分片的点播热度达 到预置的热度值,可以将该文件分片的发送速率设置期望发送速率,, 以期望的发送速率请求文件分片的内容。
例如, "c" 影片的文件分片点播热度达到边缘緩存服务器设置 的, 緩存该文件分片的热度值, 需要将该文件分片緩存在本地时, 可 以在向内容源服务器发送的下载请求中,携带该文件分片期望的发送 速率, 以便把该文件分片尽快下载并緩存在本地, 当其它终端设备请 求该文件分片时,边缘緩存服务器直接从本地为其它终端设备提供该 文件分片, 减少了终端设备请求的响应时间, 提高了用户体验。
步骤 310、 边缘緩存服务器向内容源服务器发送下载请求, 下载 请求中携带文件分片的发送速率;
在本发明实施例中, 下载请求中携带文件分片的发送速率的方 式, 可以包括多种方式。
可以在下载请求中携带文件分片的期望发送速率和最低发送速 率, 例如, X- down load- speed: 0-16777215=2048000-4096000
上述字段的意义如下:
x-download-speed, 表示设定下载内容的发送速率;
0-16777215 ,表示文件分片的字节,即一个完整文件分片的大小; 2048000 , 表示最低发送速率, 即 2Mbps ;
4096000 , 表示期望发送速率, 即 4Mbps ;
0-16777215=2048000-4096000 ,表示该文件分片的最低发送速率 为 2Mbps , 期望发送速率为 4Mbps。
通过在下载请求消息头域中,携带文件分片的期望发送速率和最 低发送速率,可以使得内容源服务器在无法达到边缘緩存服务器确定 的期望发送速率时, 保证文件分片的最低发送速率。
需要说明的是, 若该文件分片较大, 只需要对该文件分片不同的 内容设定不同的发送速率时, 可以在下载请求消息头域中, 携带该文 件分片的分段发送速率。
例如, 一个文件分片为 16777215字节, 只需要对该文件分片的 前 0-4096000字节的内容按照 4Mbps的发送速率下载, 4096000字节 以后的内容只需要以 2Mbps的发送速率下载即可,则可以在下载请求 消息头域中携带以下字段:
X- download- speed: 0-4096000=4096000, 4096000- =2048000 上述字段的意义如下:
x-download-speed, 表示设定下载内容的发送速率;
0-4096000 , 表示文件分片的分段字节, 例如, 一个完整的分片 为 0-16777215字节, 0-4096000表示该文件分片的前 4096000字节;
4096000, 其中, 4096000表示发送速率, 即 4Mbps ;
0-4096000=4096000, 表示该文件分片的前 4096000字节的发送 速率为 4Mbps;
4096000-,表示该文件分片从 4096000字节以后的全部字节; 2048000, 表示发送速率, 即 2Mbps ;
4096000- =2048000,表示该文件分片的后 4096000字节的发送速 率为 2Mbps。
通过在下载请求消息头域中, 携带文件分片的分段发送速率, 可 以准确的控制需要下载的文件分片的发送速率。
此外,下载请求中还可以携带该文件分片的分段期望发送速率和 分段最低发送速率,以使得内容源服务器在无法达到边缘緩存服务器 确定的分段期望发送速率时, 保证文件分片的分段最低发送速率。
例如, 可以在下载请求消息头域中携带以下字段:
x-download-speed: 0-4096000=2048000-4096000, 4096000- =204
8000
上述字段的意义如下:
x-download-speed, 表示设定下载内容的发送速率; 0-4096000 , 表示文件分片的分段字节, 例如, 一个完整的分片 为 0-16777215字节, 0-4096000表示该文件分片的前 4096000字节; 2048000, 表示最低发送速率, 即 2Mbps ;
4096000, 表示期望发送速率, 即 4Mbps ;
0-4096000=2048000-4096000, 表示该文件分片的前 4096000字 节的最低发送速率为 2Mbps , 期望发送速率为 4Mbps;
4096000-,表示该文件分片从 4096000字节以后的全部字节; 2048000, 表示发送速率, 即 2Mbps ;
4096000- =2048000,表示该文件分片的后 4096000字节的发送速 率为 2Mbps。
通过在下载请求中,携带文件分片的分段期望发送速率和最低发 送速率,使得内容源服务器在无法达到边缘緩存服务器确定的期望发 送速率时, 保证文件分片的最低发送速率, 保证终端设备能够连续下 载文件分片。
步骤 312、 内容源服务器按照下载请求中携带的文件分片的发送 速率, 向边缘緩存服务器发送文件分片;
在本发明实施例中, 内容源服务器需要判断网口的可用带宽, 例 如, 内容源服务器的网口最大带宽为 10G, 若当前有 1000个终端设 备在下载, 其中 500个终端设备,每个终端设备在使用 8Mbps的带宽 下载,另外 500个终端设备,每个终端设备在使用 2Mbps的带宽下载, 总的网口使用带宽就是 5GbPs , 那么, 内容源服务器的可用带宽为 5Gbps。
在本发明实施例中,若可用带宽大于或等于所述文件分片的发送 速率, 则以所述文件分片的发送速率下发所述文件分片; 若可用带宽 小于所述文件分片的发送速率, 则拒绝下发所述文件分片, 以避免发 生拥塞现象, 影响其它终端设备的下载质量。
需要说明的是, 在本发明实施例中, 对于文件分片的下载请求携 带文件分片的期望发送速率和最低发送速率的情况,若可用带宽等于 或大于所述文件分片的期望发送速率,则以所述文件分片的期望发送 速率下发所述文件分片;若可用带宽大于所述文件分片的最低发送速 率, 小于所述文件分片的期望发送速率, 则以所述可用带宽为所述文 件分片的发送速率, 下发所述文件分片, 以提高网络的利用率; 若可 用带宽小于所述文件分片的最低发送速率, 则拒绝下发所述文件分 片, 以避免发生拥塞现象, 影响其它终端设备的下载质量。
需要说明的是, 在本发明实施例中, 对于文件分片的下载请求携 带文件分片的分段发送速率的情况,若可用带宽大于或等于所述文件 分片的分段发送速率,则以所述文件分片的分段发送速率下发所述文 件分片的分段; 若可用带宽小于所述文件分片的分段发送速率, 则拒 绝下发所述文件分片的分段, 以避免发生拥塞现象, 影响其它终端设 备的下载质量。
还需要说明的是, 在本发明实施例中, 对于文件分片的下载请求 携带文件分片的分段期望发送速率和分段最低发送速率的情况,若可 用带宽等于或大于所述文件分片的分段期望发送速率,则以所述文件 分片的分段期望发送速率下发所述文件分片的分段;若可用带宽大于 所述文件分片的分段最低发送速率,小于所述文件分片的分段期望发 送速率, 则以所述可用带宽为所述文件分片的分段发送速率, 下发所 述文件分片的分段, 以提高网络的利用率; 若可用带宽小于所述文件 分片的分段最低发送速率, 则拒绝下发所述文件分片的分段, 以避免 发生拥塞现象, 影响其它终端设备的下载质量。
步骤 314、 边缘緩存服务器将接收到的内容源服务器发送的文件 分片转发给终端设备。
在本发明实施例中,边缘緩存服务器通过分析被请求下载的文件 分片的状态, 确定文件分片的发送速率, 将该文件分片的发送速率携 带在下载文件分片的请求消息中,使得内容源服务器根据请求消息中 携带的文件分片的发送速率下发文件分片, 解决了现有技术中, 上级 内容源服务器无法满足下级緩存服务器多元化的下载需求的问题,使 得下级緩存服务器能为终端设备提供灵活的流化服务,进而提高了用 户体验。
方法实施例四
下面以三级组网模式的 CDN为例对本发明的技术方案进行说明。 图 4为本发明实施例内容分发网络中文件下载方法的另一个实施 例的流程示意图, 如图 4所示, 本发明实施例的方法包括:
步骤 400、 终端设备向边缘緩存服务器请求下载 "c" 影片; 步骤 402、 边缘緩存服务器确定 "c" 影片的最低下载速率; 边缘緩存服务器可以通过预先配置的方式确定 "c" 影片的最低 发送速率, 所述预先配置的方式在方法实施例三中已经说明, 本实施 例不再复述。
步骤 404、 边缘緩存服务器根据 "c" 影片的下载请求, 将 "c" 影片的内容划分成文件分片;
步骤 406、 边缘緩存服务器判断本地是否緩存有 " c" 影片的全 部文件分片;
步骤 408、 对于没有緩存在边缘緩存服务器中 "c" 影片的文件 分片, 边缘緩存服务器确定该文件分片的发送速率;
在本发明实施例中, 对于没有緩存在边缘緩存服务器中 "c" 影 片的文件分片,确定该文件分片的发送速率的方式在方法实施例三中 已经说明, 本实施例不再复述。
步骤 410、 边缘緩存服务器向中心层緩存服务器发送下载请求, 下载请求中携带文件分片的发送速率;
在本发明实施例中, 下载请求中携带文件分片的发送速率的方 式, 在实施例三中已经说明, 本发明实施例不再复述。
步骤 412、 中心层緩存服务器判断是否緩存了请求下载的文件分 片, 若緩存有边缘緩存服务器请求下载的文件分片, 则执行步骤 414 和步骤 416; 若没有緩存请求下载的文件分片, 则执行步骤 418至步 骤 424;
需要说明的是, 在本发明实施例中, 只给出了一个中心层緩存服 务器, 但在实际应用中, 内容分发网络可以存在多个层次的中心层緩 存服务器, 具体层次由具体的应用场景决定, 此处只是示例, 不做限 定。
此外, 还需要说明的是, 中心层緩存服务器可以直接面对用户提 供服务。
步骤 414、 中心层緩存服务器按照下载请求中携带的文件分片的 发送速率, 向边缘緩存服务器发送文件分片;
步骤 416、 边缘緩存服务器将接收到的中心层緩存服务器发送的 文件分片转发给终端设备;
步骤 418、 将文件分片的下载请求转发给内容源服务器; 步骤 420、 内容源服务器按照下载请求中携带的文件分片的发送 速率, 向中心层緩存服务器发送文件分片;
步骤 422、 中心层緩存服务器将接收到的内容源服务器发送的文 件分片转发给边缘緩存服务器。
步骤 424、 边缘緩存服务器将接收到的中心层緩存服务器发送的 文件分片转发给终端设备。
在本发明实施例中,边缘緩存服务器通过分析被请求下载的文件 分片的状态, 确定文件分片的发送速率, 将该文件分片的发送速率携 带在下载文件分片的请求消息中,使得内容源服务器或上级緩存服务 器根据请求消息中携带的文件分片的发送速率下发文件分片,解决了 现有技术中,上级緩存服务器或内容源服务器无法满足下级緩存服务 器多元化的下载需求的问题,使得下级緩存服务器能为终端设备提供 灵活的流化服务, 进而提高了用户体验。
下面对本发明的装置实施例进行说明。
装置实施例一
图 5为本发明实施例内容分发网络中文件下载装置的一个实施 例的结构示意图, 如图 5所示, 该文件下载装置包括下载请求发送单 元 500和内容接收单元 502。
下载请求发送单元 500用于向内容源服务器或上级緩存服务器 发送下载文件分片的请求消息,所述请求消息中携带所述文件分片的 发送速率,所述文件分片的发送速率是根据播放所述文件分片的需求 确定的;
内容接收单元 502用于接收按照所述发送速率下发的所述文件 分片。
在本发明实施例中,文件下载装置通过根据播放文件分片的需求 确定文件分片的发送速率,将该文件分片的发送速率携带在下载文件 分片的请求消息中发送给内容源服务器或上级緩存服务器,使得内容 源服务器或上级緩存服务器根据请求消息中携带的文件分片的发送 速率下发文件分片, 解决了现有技术中, 上级緩存服务器或内容源服 务器无法满足文件下载装置多元化的下载需求的问题,使得文件下载 装置能为终端设备提供灵活的流化服务, 进而提高了用户体验。 装置实施例二
图 6为本发明实施例内容分发网络中文件下载装置的另一个实 施例的结构示意图, 如图 6所示, 下载请求发送单元 500可以包括第 一发送单元 5001和第二确定单元 5002。
第一发送单元 5001用于向内容源服务器或上级緩存服务器发送 下载文件分片的请求消息,所述请求消息中携带所述文件分片的发送 速率;
第二确定单元 5002用于当所述文件分片的点播热度达到预置的 热度值或所述文件分片用于终端设备的播放緩沖时,确定所述文件分 片的发送速率为期望发送速率,所述期望发送速率大于所述文件分片 的最低发送速率。
需要说明的是,所述第二确定单元 5002还可以用于当所述文件分 片的点播热度达到预置的热度值或所述文件分片用于终端设备的播 放緩沖时, 确定所述文件分片的发送速率为期望发送速率, 所述期望 发送速率大于所述文件分片的最低发送速率;当所述文件分片的点播 热度未达到预置的热度值,且所述文件分片不用于终端设备的播放緩 沖时, 以所述文件分片的最低发送速率作为所述文件分片的发送速 率, 以便于在满足终端设备正常播放的请况下, 占用最少的带宽, 节 约带宽资源。
在本发明实施例中,请求消息中携带所述文件分片的发送速率的 方式可以包括下列方式之一:
方式一:请求消息中携带所述文件分片的期望发送速率和最低发 送速率, 所述期望发送速率和最低发送速率, 用于在所述期望发送速 率不能得到满足时, 保证所述最低发送速率; 方式二: 请求消息中携带所述文件分片的分段发送速率, 所述分 方式三:请求消息中携带所述文件分片的分段期望发送速率和分 段最低发送速率, 所述分段期望发送速率和分段最低发送速率, 用于 所述分段期望发送速率不能得到满足时, 保证所述分段最低发送速 率。
在本发明实施例中,文件分片的发送速率是根据播放所述文件分 片的需求确定的,确定文件分片的发送速率的方式可以包括若所述文 件分片的点播热度达到预置的热度值或所述文件分片用于终端设备 的播放緩沖, 确定所述文件分片的发送速率为期望发送速率, 以便于 终端设备以较快速率下载, 减少用户等待播放的时间, 以提升用户体 验。
装置实施例三
图 7为本发明实施例内容分发网络中内容提供装置的一个实施 例的结构示意图, 如图 7所示, 该内容提供装置包括下载请求接收单 元 600和内容发送单元 602。
下载请求接收单元 600用于接收下级緩存服务器发送的下载文 件分片的请求消息, 所述请求消息中携带所述文件分片的发送速率, 所述文件分片的发送速率是所述下级緩存服务器根据播放所述文件 分片的需求确定的;
内容发送单元 602与下载请求接收单元 600相连接, 内容发送单 元 602用于根据所述发送速率下发所述文件分片。
在本发明实施例中,内容提供装置接收下级緩存服务器发送的下 载文件分片的请求消息,根据下级緩存服务器确定的文件发送速率下 发文件, 为下级緩存服务器提供了灵活的流化服务。 装置实施例四
图 8为本发明实施例内容分发网络中内容提供装置的另一个实 施例的结构示意图, 如图 8所示, 内容发送单元 602包括第一获取单 元 6021和第二发送单元 6022。
第一获取单元 6021用于获取可用带宽;第二发送单元 6022用于 当所述可用带宽大于或等于所述文件分片的发送速率时,以所述文件 分片的发送速率下发所述文件分片; 当可用带宽小于所述文件分片的 发送速率时, 拒绝下发所述文件分片。
第二发送单元 6022还用于当可用带宽等于或大于所述文件分片 的期望发送速率时,以所述文件分片的期望发送速率下发所述文件分 片; 当可用带宽大于所述文件分片的最低发送速率, 小于所述文件分 片的期望发送速率时, 以所述可用带宽为所述文件分片的发送速率, 下发所述文件分片; 当可用带宽小于所述文件分片的最低发送速率 时, 拒绝下发所述文件分片, 以避免发生拥塞现象。
在本发明实施例中, 内容提供装置通过接收下级服务器发送的携 带下载文件分片发送速率的请求消息,根据该文件分片的发送速率和 自身可用带宽情况, 下发文件分片, 在满足了下级緩存服务器多元化 的下载需求的同时, 保证了其它终端设备的文件下载质量。
此外, 还需要说明的是, 内容发送单元 602还用于当没有緩存所 述文件分片时, 向内容源服务器转发所述下载文件分片的请求消息, 使得所述内容源服务器按照所述发送速率下发所述文件分片。
下面对本发明的系统实施例进行说明。
系统实施例一
图 9为本发明实施例内容分发网络中文件下载系统的一个实施 例的结构示意图, 如图 9所示, 该文件下载系统包括文件下载装置 700和内容提供装置 702。
文件下载装置 700用于向内容提供装置 702发送下载文件分片的 请求消息, 所述请求消息中携带所述文件分片的发送速率, 所述文件 分片的发送速率是根据播放所述文件分片的需求确定的;
内容提供装置 702与文件下载装置 700相连接, 内容提供装置 702用于接收文件下载装置 700发送的下载文件分片的请求消息, 以 及根据所述发送速率下发所述文件分片。
在本发明实施例中, 文件下载装置根据播放文件分片的需求, 确 定请求下载的文件分片的发送速率,并将该文件分片的发送速率携带 在文件下载请求消息中发送给内容提供装置, 内容提供装置根据文件 分片的发送速率下发文件分片,满足了文件下载装置多元化的下载需 求, 进而使得文件下载装置能为终端设备提供灵活的流化服务, 提升 用户体马 。
确定文件分片的发送速率的方式还可以包括: 当所述文件分片的 点播热度达到预置的热度值或所述文件分片用于终端设备的播放緩 沖时, 确定所述文件分片的发送速率为期望发送速率, 所述期望发送 速率大于所述文件分片的最低发送速率;当所述文件分片的点播热度 未达到预置的热度值, 且所述文件分片不用于终端设备的播放緩沖 时, 以所述文件分片的最低发送速率作为所述文件分片的发送速率, 以便于在满足终端设备正常播放的请况下, 占用最少的带宽, 节约带 宽资源。
此外, 在本发明实施例中, 请求消息中携带所述文件分片的发送 速率的方式可以包括下列方式之一:
方式一:请求消息中携带所述文件分片的期望发送速率和最低发 送速率, 所述期望发送速率和最低发送速率, 用于在所述期望发送速 率不能得到满足时, 保证所述最低发送速率;
方式二: 请求消息中携带所述文件分片的分段发送速率, 所述分 方式三:请求消息中携带所述文件分片的分段期望发送速率和分 段最低发送速率, 所述分段期望发送速率和分段最低发送速率, 用于 所述分段期望发送速率不能得到满足时, 保证所述分段最低发送速 率。
还需要说明的是, 在本发明实施例中, 根据所述发送速率下发所 述文件分片的方式可以包括下列方式之一:
方式一: 获取可用带宽, 若可用带宽大于或等于所述文件分片的 发送速率, 则以所述文件分片的发送速率下发所述文件分片; 若可用 带宽小于所述文件分片的发送速率, 则拒绝下发所述文件分片, 以避 免发生拥塞现象, 影响其它终端设备的下载质量。
方式二: 获取可用带宽, 若可用带宽等于或大于所述文件分片的 期望发送速率, 则以所述文件分片的期望发送速率下发所述文件分 片; 若可用带宽大于所述文件分片的最低发送速率, 小于所述文件分 片的期望发送速率, 则以所述可用带宽为所述文件分片的发送速率, 下发所述文件分片, 以提高网络的利用率; 若可用带宽小于所述文件 分片的最低发送速率, 则拒绝下发所述文件分片, 以避免发生拥塞现 象, 影响其它终端设备的下载质量。
方式三: 获取可用带宽, 若可用带宽大于或等于所述文件分片的 分段发送速率,则以所述文件分片的分段发送速率下发所述文件分片 的分段; 若可用带宽小于所述文件分片的分段发送速率, 则拒绝下发 所述文件分片的分段, 以避免发生拥塞现象, 影响其它终端设备的下 载质量。 系统实施例二
图 10为本发明实施例内容分发网络中文件下载系统的另一个实 施例的结构示意图, 如图 10所示, 该文件下载系统包括文件下载装 置 700可以包括第一发送单元 7001和速率确定单元 7002。
第一发送单元 7001用于向内容提供装置 702发送下载文件分片 的请求消息, 所述请求消息中携带所述文件分片的发送速率;
速率确定单元 7002用于当所述文件分片的点播热度达到预置的 热度值或所述文件分片用于终端设备的播放緩沖时,确定所述文件分 片的发送速率为期望发送速率,所述期望发送速率大于所述文件分片 的最低发送速率。
在本发明实施例中, 文件下载装置根据具体播放文件分片的需 求, 确定文件分片的发送速率, 以便于为终端设备提供灵活的流化服 务。
需要说明的是, 在本发明实施例中, 请求消息中还携带所述文件 分片的最低发送速率,所述最低发送速率用于内容源服务器或上级緩 存服务器在所述期望发送速率不能得到满足时,保证所述最低发送速 率。
系统实施例三
图 11为本发明实施例内容分发网络中文件下载系统的另一个实 施例的结构示意图, 如图 11所示, 所述内容提供装置 702包括接收 单元 7021和分发单元 7022;
所述接收单元 7021用于接收文件下载装置 700发送的下载文件分 片的请求消息;
所述分发单元 7022用于获取可用带宽, 当所述可用带宽等于或 大于所述文件分片的期望发送速率时,以所述文件分片的期望发送速 率下发所述文件分片; 当可用带宽大于所述文件分片的最低发送速 率, 小于所述文件分片的期望发送速率时, 以所述可用带宽为所述文 件分片的发送速率, 下发所述文件分片; 当可用带宽小于所述文件分 片的最低发送速率时, 拒绝下发所述文件分片。
在本发明实施例中, 内容提供装置根据文件分片下载请求中携带 的发送速率结合自身可提供的可用带宽, 确定文件分片的发送速率, 在提高网络的利用率的同时避免发生拥塞现象,保证了其它终端设备 的下载质量, 提高了用户体验。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描 述的各示例的单元及步骤, 能够以电子硬件、 计算机软件或者二者的 结合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中 已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以 硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条 件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到, 为了描述的方便和筒 洁, 上述描述的系统、 设备、 和单元的具体工作过程, 可以参考前述 方法实施例中的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 设备和方法, 可以通过其它的方式实现。 例如, 以上所描述的设备实 施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能 划分, 实际实现时可以有另外的划分方式, 例如多个单元或可以结合 或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外, 所显示或讨论的相互之心的耦合或直接耦合或通信连接可以是通过 一些接口、 设备、 单元的心接耦合或通信连接, 也可以是电的, 机械 的或其它的形式连接。 开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以 位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的 需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理 单元中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上 单元集成在一个单元中。 上述集成的单元既可以采用硬件的形式实 现, 也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的 产品销售或使用时, 可以存储在一个计算机可读取存储介质中。基于 这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的 部分, 或者该技术方案的全部或部分可以以软件产品的形式体现出 来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使 得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介 质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ) 、 随机存取存储器(RAM, Random Acces s Memory ) 、 磁碟或者光盘等 各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并 不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范 围内, 可轻易想到各种等效的修改或替换, 这些修改或替换都应涵盖 在本发明的保护范围之内。 因此, 本发明的保护范围应以权利要求的 保护范围为准。

Claims

权 利 要 求 书
1、 一种内容分发网络中文件下载方法, 其特征在于, 包括: 向内容源服务器或上级緩存服务器发送下载文件分片的请求消 息, 所述请求消息中携带所述文件分片的发送速率, 所述文件分片的 发送速率是根据播放所述文件分片的需求确定的;
接收按照所述发送速率下发的所述文件分片。
2、 根据权利要求 1所述的方法, 其特征在于, 所述文件分片的 发送速率是根据播放所述文件分片的需求确定的包括:
若所述文件分片的点播热度达到预置的热度值或所述文件分片 用于终端设备的播放緩沖,确定所述文件分片的发送速率为期望发送 速率, 所述期望发送速率大于所述文件分片的最低发送速率。
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法进一步 包括:
若所述文件分片的点播热度未达到预置的热度值,且所述文件分 片不用于终端设备的播放緩沖,以所述文件分片的最低发送速率作为 所述文件分片的发送速率。
4、 根据权利要求 2所述的方法, 其特征在于, 所述请求消息中 还携带所述文件分片的最低发送速率,所述最低发送速率用于在所述 期望发送速率不能得到满足时, 保证所述最低发送速率。
5、 根据权利要求 1至 3任一所述的方法, 其特征在于, 所述文 件分片的发送速率包括: 文件分片的分段发送速率, 所述分段发送速
6、 一种内容分发网络中文件下载方法, 其特征在于, 包括: 接收下级緩存服务器发送的下载文件分片的请求消息,所述请求 消息中携带所述文件分片的发送速率,所述文件分片的发送速率是所 述下级緩存服务器根据播放所述文件分片的需求确定的;
根据所述发送速率下发所述文件分片。
7、 根据权利要求 6所述的方法, 其特征在于, 所述文件分片的 发送速率是所述下级緩存服务器根据播放所述文件分片的需求确定 的包括:
若所述文件分片的点播热度达到预置的热度值或所述文件分片 用于终端设备的播放緩沖,所述下级緩存服务器确定所述文件分片的 发送速率为期望发送速率,所述期望发送速率大于所述文件分片的最 低发送速率。
8、 根据权利要求 7所述的方法, 其特征在于, 所述方法进一步 包括:
若所述文件分片的点播热度未达到预置的热度值,且所述文件分 片不用于终端设备的播放緩沖,所述下级緩存服务器以所述文件分片 的最低发送速率作为所述文件分片的发送速率。
9、 根据权利要求 7所述的方法, 其特征在于, 所述请求消息中 还携带所述文件分片的最低发送速率,所述最低发送速率用于内容源 服务器或上级緩存服务器在所述期望发送速率不能得到满足时,保证 所述最低发送速率。
1 0、 根据权利要求 6至 8任一所述的方法, 其特征在于, 所述文 件分片的发送速率包括: 文件分片的分段发送速率, 所述分段发送速
1 1、 根据权利要求 6至 8任一所述的方法, 其特征在于, 所述根 据所述发送速率下发所述文件分片包括:
获取可用带宽, 若可用带宽大于或等于所述文件分片的发送速 率, 则以所述文件分片的发送速率下发所述文件分片; 若可用带宽小 于所述文件分片的发送速率, 则拒绝下发所述文件分片。
12、 根据权利要求 9所述的方法, 其特征在于, 所述根据所述发 送速率下发所述文件分片包括:
获取可用带宽,若可用带宽等于或大于所述文件分片的期望发送 速率, 则以所述文件分片的期望发送速率下发所述文件分片; 若可用 带宽大于所述文件分片的最低发送速率,小于所述文件分片的期望发 送速率, 则以所述可用带宽为所述文件分片的发送速率, 下发所述文 件分片; 若可用带宽小于所述文件分片的最低发送速率, 则拒绝下发 所述文件分片。
1 3、 一种内容分发网络中文件下载装置, 其特征在于, 包括: 下载请求发送单元,用于向内容源服务器或上级緩存服务器发送 下载文件分片的请求消息,所述请求消息中携带所述文件分片的发送 速率,所述文件分片的发送速率是根据播放所述文件分片的需求确定 的;
内容接收单元, 用于接收按照所述发送速率下发的所述文件分 片。
14、 根据权利要求 1 3所述的装置, 其特征在于, 所述下载请求 发送单元包括:
第一发送单元,用于向内容源服务器或上级緩存服务器发送下载 文件分片的请求消息, 所述请求消息中携带所述文件分片的发送速 率;
第二确定单元,用于当所述文件分片的点播热度达到预置的热度 值或所述文件分片用于终端设备的播放緩沖时,确定所述文件分片的 发送速率为期望发送速率,所述期望发送速率大于所述文件分片的最 低发送速率。
15、 根据权利要求 1 3所述的装置, 其特征在于, 所述下载请求 发送单元包括:
第一发送单元,用于向内容源服务器或上级緩存服务器发送下载 文件分片的请求消息, 所述请求消息中携带所述文件分片的发送速 率;
第二确定单元, 用于当所述文件分片的点播热度达到预置的热度 值或所述文件分片用于终端设备的播放緩沖时,确定所述文件分片的 发送速率为期望发送速率,所述期望发送速率大于所述文件分片的最 低发送速率;当所述文件分片的点播热度未达到预置的热度值, 且所 述文件分片不用于终端设备的播放緩沖时,以所述文件分片的最低发 送速率作为所述文件分片的发送速率。
16、 根据权利要求 14所述的装置, 其特征在于, 所述请求消息 中还携带所述文件分片的最低发送速率,所述最低发送速率用于内容 源服务器或上级緩存服务器在所述期望发送速率不能得到满足时,保 证所述最低发送速率。
17、 根据权利要求 1 3至 15任一所述的装置, 其特征在于, 所述 文件分片的发送速率包括: 文件分片的分段发送速率, 所述分段发送
18、 一种内容分发网络中内容提供装置, 其特征在于, 包括: 下载请求接收单元,用于接收下级緩存服务器发送的下载文件分 片的请求消息, 所述请求消息中携带所述文件分片的发送速率, 所述 文件分片的发送速率是所述下级緩存服务器根据播放所述文件分片 的需求确定的;
内容发送单元, 用于根据所述发送速率下发所述文件分片。
19、 根据权利要求 18所述的装置, 其特征在于, 所述文件分片 的发送速率是所述下级緩存服务器根据播放所述文件分片的需求确 定的包括:
当所述文件分片的点播热度达到预置的热度值或所述文件分片 用于终端设备的播放緩沖时,所述下级緩存服务器确定所述文件分片 的发送速率为期望发送速率,所述期望发送速率大于所述文件分片的 最低发送速率。
20、 根据权利要求 18所述的装置, 其特征在于, 所述文件分片 的发送速率是所述下级緩存服务器根据播放所述文件分片的需求确 定的包括:
当所述文件分片的点播热度达到预置的热度值或所述文件分片 用于终端设备的播放緩沖时,所述下级緩存服务器确定所述文件分片 的发送速率为期望发送速率,所述期望发送速率大于所述文件分片的 最低发送速率; 当所述文件分片的点播热度未达到预置的热度值, 且 所述文件分片不用于终端设备的播放緩沖时,所述下级緩存服务器以 所述文件分片的最低发送速率作为所述文件分片的发送速率。
21、 根据权利要求 19所述的装置, 其特征在于, 所述请求消息 中还携带所述文件分片的最低发送速率,所述最低发送速率用于在所 述期望发送速率不能得到满足时, 保证所述最低发送速率。
22、 根据权利要求 18至 20任一所述的装置, 其特征在于, 所述 文件分片的发送速率包括: 文件分片的分段发送速率, 所述分段发送
23、 根据权利要求 18至 20任一所述的装置, 其特征在于, 所述 内容发送单元包括:
第一获取单元, 用于获取可用带宽; 第二发送单元,用于当所述可用带宽大于或等于所述文件分片的 发送速率时, 以所述文件分片的发送速率下发所述文件分片; 当可用 带宽小于所述文件分片的发送速率时, 拒绝下发所述文件分片。
24、 根据权利要求 21所述的装置, 其特征在于, 所述内容发送 单元包括:
第一获取单元, 用于获取可用带宽;
第二发送单元,用于当可用带宽等于或大于所述文件分片的期望 发送速率时, 以所述文件分片的期望发送速率下发所述文件分片; 当 可用带宽大于所述文件分片的最低发送速率,小于所述文件分片的期 望发送速率时, 以所述可用带宽为所述文件分片的发送速率, 下发所 述文件分片; 当可用带宽小于所述文件分片的最低发送速率时, 拒绝 下发所述文件分片。
25、 一种内容分发网络中文件下载系统, 其特征在于, 包括文件 下载装置和内容提供装置;
所述文件下载装置,用于向内容提供装置发送下载文件分片的请 求消息, 所述请求消息中携带所述文件分片的发送速率, 所述文件分 片的发送速率是根据播放所述文件分片的需求确定的;
所述内容提供装置,用于接收文件下载装置发送的下载文件分片 的请求消息, 以及根据所述发送速率下发所述文件分片。
26、 根据权利要求 25所述的系统, 其特征在于, 所述文件下载 装置包括:
第一发送单元,用于向内容提供装置发送下载文件分片的请求消 息, 所述请求消息中携带所述文件分片的发送速率;
速率确定单元,用于当所述文件分片的点播热度达到预置的热度 值或所述文件分片用于终端设备的播放緩沖时,确定所述文件分片的 发送速率为期望发送速率,所述期望发送速率大于所述文件分片的最 低发送速率; 当所述文件分片的点播热度未达到预置的热度值, 且所 述文件分片不用于终端设备的播放緩沖时,以所述文件分片的最低发 送速率作为所述文件分片的发送速率。
27、 根据权利要求 25所述的系统, 其特征在于, 所述内容提供装 置包括接收单元和分发单元;
所述接收单元用于接收文件下载装置发送的下载文件分片的请求 消息;
所述分发单元用于获取可用带宽, 当所述可用带宽等于或大于所 述文件分片的期望发送速率时,以所述文件分片的期望发送速率下发 所述文件分片; 当可用带宽大于所述文件分片的最低发送速率, 小于 所述文件分片的期望发送速率时,以所述可用带宽为所述文件分片的 发送速率, 下发所述文件分片; 当可用带宽小于所述文件分片的最低 发送速率时, 拒绝下发所述文件分片。
PCT/CN2011/084275 2011-12-20 2011-12-20 内容分发网络中文件下载方法、装置和系统 WO2013091172A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2011/084275 WO2013091172A1 (zh) 2011-12-20 2011-12-20 内容分发网络中文件下载方法、装置和系统
CN201180003024.7A CN103430489B (zh) 2011-12-20 2011-12-20 内容分发网络中文件下载方法、装置和系统
US14/145,481 US9628352B2 (en) 2011-12-20 2013-12-31 Method, apparatus and system for downloading file in content delivery network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/084275 WO2013091172A1 (zh) 2011-12-20 2011-12-20 内容分发网络中文件下载方法、装置和系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/145,481 Continuation US9628352B2 (en) 2011-12-20 2013-12-31 Method, apparatus and system for downloading file in content delivery network

Publications (1)

Publication Number Publication Date
WO2013091172A1 true WO2013091172A1 (zh) 2013-06-27

Family

ID=48667633

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084275 WO2013091172A1 (zh) 2011-12-20 2011-12-20 内容分发网络中文件下载方法、装置和系统

Country Status (3)

Country Link
US (1) US9628352B2 (zh)
CN (1) CN103430489B (zh)
WO (1) WO2013091172A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704062A (zh) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 一种ott系统中的码流处理方法及装置
US10270883B2 (en) 2014-03-27 2019-04-23 Hewlett Packard Enterprise Development Lp Scheduling downloads
CN111586103A (zh) * 2020-04-08 2020-08-25 北京明略软件系统有限公司 一种文件片段下载方法及装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700945B1 (en) * 2011-09-23 2014-04-15 Amazon Technologies, Inc. Content delivery failover
CN106686112A (zh) * 2017-01-18 2017-05-17 中国工商银行股份有限公司 云文件传输系统及方法
US20190045393A1 (en) * 2017-08-04 2019-02-07 T-Mobile Usa, Inc. Fragmented Data Transmission
CN110620795A (zh) * 2018-06-19 2019-12-27 优视科技有限公司 文件下载中断续传的方法、装置及终端
CN109600437B (zh) * 2018-12-11 2021-11-16 网宿科技股份有限公司 一种流媒体资源的下载方法及缓存服务器
US11711445B2 (en) * 2020-09-16 2023-07-25 Netflix, Inc. Configurable access-based cache policy control
CN115550263A (zh) * 2021-06-28 2022-12-30 华为技术有限公司 一种网络设备的主动队列管理方法及网络设备
CN117061503B (zh) * 2023-10-11 2024-01-26 腾讯科技(深圳)有限公司 镜像文件管理方法、装置、计算机可读介质及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005098674A1 (en) * 2004-03-12 2005-10-20 Thomson Licensing System and method for scheduling downloading in a cached network environment
CN1852229A (zh) * 2005-10-20 2006-10-25 华为技术有限公司 实时流媒体传输方法及系统
CN101873355A (zh) * 2010-06-28 2010-10-27 深圳市迅雷网络技术有限公司 一种下载文件的方法、装置和系统
CN102118323A (zh) * 2010-01-04 2011-07-06 中兴通讯股份有限公司 内容分发网络服务器及内容下载方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7145870B2 (en) * 2000-11-29 2006-12-05 Altera Corporation Method and apparatus for combining dedicated and shared networks for efficient data transmission
CN101656756B (zh) * 2009-09-17 2012-09-05 中国科学院声学研究所 一种发送速率自适应控制的文件传输方法及其系统
US9596522B2 (en) * 2010-06-04 2017-03-14 Mobitv, Inc. Fragmented file structure for live media stream delivery
KR101710400B1 (ko) * 2010-10-29 2017-02-28 엘지전자 주식회사 무선 통신 시스템에서 최저 보장 비트 레이트 설정 방법 및 이를 위한 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005098674A1 (en) * 2004-03-12 2005-10-20 Thomson Licensing System and method for scheduling downloading in a cached network environment
CN1852229A (zh) * 2005-10-20 2006-10-25 华为技术有限公司 实时流媒体传输方法及系统
CN102118323A (zh) * 2010-01-04 2011-07-06 中兴通讯股份有限公司 内容分发网络服务器及内容下载方法
CN101873355A (zh) * 2010-06-28 2010-10-27 深圳市迅雷网络技术有限公司 一种下载文件的方法、装置和系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10270883B2 (en) 2014-03-27 2019-04-23 Hewlett Packard Enterprise Development Lp Scheduling downloads
CN105704062A (zh) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 一种ott系统中的码流处理方法及装置
CN111586103A (zh) * 2020-04-08 2020-08-25 北京明略软件系统有限公司 一种文件片段下载方法及装置

Also Published As

Publication number Publication date
CN103430489B (zh) 2016-11-30
US20140115124A1 (en) 2014-04-24
US9628352B2 (en) 2017-04-18
CN103430489A (zh) 2013-12-04

Similar Documents

Publication Publication Date Title
WO2013091172A1 (zh) 内容分发网络中文件下载方法、装置和系统
US11601372B2 (en) Network flow control
US10142405B2 (en) Multi-CDN digital content streaming
US10523732B2 (en) Multi-CDN digital content streaming
US9191322B2 (en) Methods, apparatus and computer readable medium for managed adaptive bit rate for bandwidth reclamation
US9178929B2 (en) Client-side class-of-service-based bandwidth management in over-the-top video delivery
US20150172354A1 (en) Content-delivery transfer for cooperative delivery systems
WO2012171507A1 (zh) 向客户端传输数据文件的方法和装置
WO2022166593A1 (zh) 点对点网络调度方法和系统
US20150172135A1 (en) Dynamic bandwidth allocation for cooperative delivery systems
WO2017125017A1 (zh) 缓存内容的调整方法、装置及系统
KR20150079557A (ko) 클라이언트 장치에 시청각 컨텐츠를 전달하는 시스템 및 방법
WO2022166584A1 (zh) 点对点网络调度方法和系统
US8769047B1 (en) Delivery control for cooperative delivery systems
US20230412873A1 (en) Streaming Media Transmission Method and Apparatus
JP2018511209A (ja) ネットワークにおける帯域幅の分配のための方法および装置
WO2013071517A1 (zh) 媒体流的发送方法及服务器
WO2016165596A1 (zh) 一种多媒体文件控制方法和系统
KR100804075B1 (ko) 분할화된 데이터를 이용한 클라이언트/서버 간의 접속 제어방법 및 시스템 및 이를 이용한 데이터 수신/재생 방법 및시스템
WO2015172320A1 (zh) 视频缓存切换处理方法、装置和系统
EP4002793B1 (en) Method and controller for audio and/or video content delivery
CN116916048B (zh) 一种用于流媒体传输优化的混合架构、方法、设备和介质
Heikkinen Network-assisted DASH by utilizing local caches at network edge
US20150172149A1 (en) Shared delivery using a terminal-network cache in cooperative delivery systems

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

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

Country of ref document: EP

Kind code of ref document: A1