WO2023246488A1 - 内容提供方法及装置 - Google Patents

内容提供方法及装置 Download PDF

Info

Publication number
WO2023246488A1
WO2023246488A1 PCT/CN2023/098323 CN2023098323W WO2023246488A1 WO 2023246488 A1 WO2023246488 A1 WO 2023246488A1 CN 2023098323 W CN2023098323 W CN 2023098323W WO 2023246488 A1 WO2023246488 A1 WO 2023246488A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
ont
acquisition method
target
cdn node
Prior art date
Application number
PCT/CN2023/098323
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 华为云计算技术有限公司
Publication of WO2023246488A1 publication Critical patent/WO2023246488A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing

Definitions

  • This application relates to the fields of information technology (IT) and communication technology, and in particular to content providing methods and devices.
  • CDN Content delivery network
  • CDN nodes By placing node servers throughout the network to form a layer of intelligent virtual network based on the existing Internet, the CDN system can real-time analyze the network traffic and the connection and load conditions of each node, as well as the distance to the user and response time. And other comprehensive information redirects the user's request to the CDN node closest to the user, improving the data transmission rate.
  • CDN nodes are generally located in computer rooms, and users will pay high broadband costs when downloading content through CDN nodes.
  • the embodiments of the present application provide content providing methods and devices. By using the embodiments of the present application to provide content, the required traffic overhead is small, the transmission delay is small, and the transmission efficiency is high.
  • embodiments of the present application provide a content providing method, including:
  • the acquisition method of the content is the acquisition method from the CDN node or the acquisition method from other network nodes;
  • obtaining from other network nodes refers to obtaining from network nodes other than CDN nodes.
  • These network nodes usually have the ability to cache content or return content, and can return content to users.
  • the above implementation may be implemented by a CDN node.
  • the CDN node may include multiple nodes, and the CDN node that implements the above content providing method and the target CDN node that returns the content may or may not be the same node.
  • the content attribute includes an identifier of the content, and the identifier of the content is used to determine the service type of the content.
  • the content access policy includes the following policy: if the service type corresponding to the content belongs to the first type, the content is obtained from a CDN node.
  • the first type of service includes the first segment of the video.
  • the terminal device when a user uses a terminal device to view a video, the terminal device usually has a caching mechanism for pre-downloading the video. Therefore, when the user views a certain segment of a certain video, the client can pre-load the subsequent segments of the video to improve usage. experience.
  • the pre-download method is not suitable for the first segment of the video. First, the terminal does not know which video the user is about to select to view, so it cannot be pre-cached; secondly, if the terminal caches every video that may be clicked, Preloading will cause network bandwidth congestion and waste of storage space.
  • the first type of service is user-defined.
  • users have different sensitivities to different types of services. Therefore, users can define the types of services they need to obtain through CDN according to their own needs.
  • the content access policy includes:
  • the acquisition method of the content is the acquisition method from the ONT.
  • mapping these contents to the acquisition method obtained from the ONT will neither It affects user experience and also reduces bandwidth costs.
  • the second type of content is obtained from the ONT.
  • the second type is preset, or is provided by the management device of the CDN network, or the second type of service is user-defined. This setting can improve flexibility and accuracy in determining how to obtain content.
  • the content request address can be included in the request header of the get request.
  • the acquisition method can be obtained from the CDN.
  • the URL is usually represented by a multi-segment string.
  • the content is obtained through a CDN.
  • the URL of the content contains the second string, the content is obtained through the ONT. This setting allows precise control over how content is obtained and improves user experience.
  • the target provider may be a provider of a public benefit nature or with special functions.
  • a fire protection agency provides users with safety protection videos.
  • the fire protection agency is set as the target provider.
  • users obtain the safety protection videos they can quickly obtain them, which improves the user experience and is beneficial to users in learning knowledge. .
  • the content providing device is used to receive the acquisition request
  • the target CDN node is used to return the content to the terminal device.
  • the terminal device is further configured to request the content from the target ONT;
  • the acquisition method of the content is the acquisition method from the ONT.
  • the content access policy includes:
  • the content attribute is a request address of the content; the content providing device is further configured to determine a method of obtaining the content based on the request address of the content.
  • the provider of the content is a target provider or a provider of a target service
  • the content is obtained from a CDN node.
  • the target CDN node is used to implement the method described in any one of the first aspects, or to implement part of the operations of the above method.
  • the communication unit is configured to receive an acquisition request for content sent by a terminal device, where the acquisition request includes a content attribute of the content;
  • the processing unit is configured to determine the acquirer of the content according to the content access policy corresponding to the content attribute.
  • the acquisition method of the content is the acquisition method from the content distribution network CDN node or the acquisition method from the optical network terminal ONT;
  • the communication unit is also configured to instruct the target CDN node to return the content to the terminal device if the content is obtained from a CDN node.
  • the acquisition method of the content is the acquisition method from the ONT, instruct the terminal device to redirect to the target ONT to obtain the content.
  • the content attribute is a service type of the content or an identifier of the content, and the identifier of the content is used to determine the service type of the content;
  • the content access policy includes the following policy: if the service type corresponding to the content belongs to the first type, the content is obtained from a CDN node.
  • the acquisition method of the content is the acquisition method from the ONT;
  • the acquisition method of the content is the acquisition method from the ONT.
  • the content attribute is a request address of the content; the processing unit is further configured to determine a method of obtaining the content based on the request address of the content.
  • the provider of the content is a target provider or a provider of a target service
  • the content is obtained from a CDN node.
  • the communication unit is also used to:
  • the communication unit is also used to:
  • the content providing device instructs the target CDN node to return the content to the terminal device.
  • the computing device further includes a communication interface, the communication interface is used to receive and/or send data, and/or the communication interface is used to provide input and/or output to the processor.
  • the above embodiments are explained by taking a processor (or a general-purpose processor) specified by calling a computer to execute a method as an example.
  • the processor may also be a dedicated processor, in which case the computer instructions have been preloaded in the processor.
  • the processor may also include both a dedicated processor and a general-purpose processor.
  • the processor and the memory may be integrated into one device, that is, the processor and the memory may be integrated together.
  • embodiments of the present application further provide a computing device cluster, the computing device cluster includes at least one computing device, and each computing device includes a processor and a memory;
  • the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the cluster of computing devices executes the method described in any one of the first aspects.
  • the present application provides a computer program product.
  • the computer program product includes computer instructions. When the instructions are run by a computing device (or a cluster of computing devices), the computing device (or a cluster of computing devices) causes the computing device (or a cluster of computing devices) to implement the foregoing.
  • the computer program product can be a software installation package or image file. If the foregoing method needs to be used, the computer program product can be obtained and executed on the computing device.
  • Figure 1 is a schematic diagram of a distributed content distribution network
  • Figure 2 is an architectural schematic diagram of a content providing system provided by an embodiment of the present application.
  • Figure 3 is a schematic flowchart of a content providing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of yet another content providing method provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a content providing device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a computing device provided by an embodiment of the present application.
  • CDN Content Delivery Network
  • CDN distributes the content of the origin site to nodes that are physically close to the user, so that the user can obtain the required content nearby, solving the congestion of the Internet network, and improving the response speed and success rate of user access.
  • Client 1051 in Region 1 sends a domain name access request for the source site node domain name (optionally including the content to be accessed requested by the user).
  • the domain name access request reaches the public network domain name system (domain name system, DNS) server, and the public network DNS server Obtain the public IP addresses of multiple regional edge cache nodes 1041-1045 corresponding to the domain name.
  • DNS domain name system
  • the edge cache node 1041 queries whether the content to be accessed is cached locally. If so, it is directly returned to the client 1051. If not, the upper level cache node (center cache node 1021) requests the content to be accessed (sends a back-to-origin request). The central cache node 1021 queries whether the content to be accessed is cached locally. If so, it is directly returned to the edge cache node 1041. If not, the content to be accessed is requested from the upper-level origin node 101.
  • edge cache node 1041 caches content to be accessed, it can be returned to the client 1051 nearby, thereby increasing the speed at which the client 1051 accesses the content to be accessed.
  • xDSL is the collective name for various types of digital subscriber lines (DSL), including asymmetric digital subscriber line (ADSL), rate adaptive digital subscriber line (rate adaptive digital subscriber line, RADSL), very high-bit-rate digital subscriber line (VDSL), symmetrical digital subscriber line (SDSL), integrated services digital network (Integrated digital subscriber line, IDSL) and High-speed Digital Subscriber Line (HDSL), etc.
  • DSL digital subscriber line
  • ADSL asymmetric digital subscriber line
  • rate adaptive digital subscriber line rate adaptive digital subscriber line
  • VDSL very high-bit-rate digital subscriber line
  • SDSL symmetrical digital subscriber line
  • IDSL integrated services digital network
  • HDSL High-speed Digital Subscriber Line
  • network nodes are only examples, and other nodes with content caching capabilities may also be included in the specific implementation process.
  • 302 is a status code that indicates that the requested resource exists but is not at the currently accessed location.
  • 302 scheduling refers to scheduling based on the 302 status code.
  • the user's request for content reaches the scheduling module (or other scheduling nodes, scheduling servers, etc.) in the CDN network, and the scheduling module (or other scheduling nodes, scheduling servers, etc.) passes the 302 method, feedback to the user the address (such as IP address, etc.) where the content can be obtained.
  • the terminal can send a content access request to the address again, thereby obtaining the content at the node corresponding to the address.
  • embodiments of the present application provide a content providing method and device.
  • the required traffic overhead is small, the transmission delay is small, and the transmission efficiency is high.
  • the system architecture of the embodiment of the present application is exemplarily described below. It should be noted that the system architecture described in this application is for the purpose of explaining the technical solutions of this application more clearly and does not constitute a limitation on the technical solutions provided by this application. Those of ordinary skill in the art will know that with the evolution of system architecture and With the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
  • network nodes other than CDN nodes that can return content are introduced by taking ONT as an example.
  • This application is also applicable to other types of network nodes.
  • the content providing system may include several nodes capable of returning content, such as one or more of ONTs, routers, xDSL modems, etc.
  • the content providing device 201 is a device with computing capabilities and communication capabilities, and can communicate with one or more devices among the terminal device, the CDN node 203, and the ONT 204.
  • the content providing device 201 can be integrated in a CDN node (such as CDN node 203, or CDN access gateway, etc.), or the content providing device 201 can serve as a node in the CDN network (such as a scheduling node, CDN access gateway, etc.) gateway, etc.), or the content providing device can be integrated in the DNS server.
  • a terminal device also called User Equipment (UE) in some embodiments, is a device with communication capabilities that can initiate requests for content.
  • the terminal device can interact with the user, such as presenting a user interface, or receiving user input operations, etc.
  • terminal devices include, but are not limited to, handheld terminals, wearable devices, entertainment devices, transportation devices, etc.
  • handheld devices such as mobile phones, tablets, laptops, or police communications, etc.
  • Wearable devices such as smart bracelets, smart watches, or smart glasses.
  • Transportation equipment such as vehicles, ships, aircraft, rail transit (such as subways, high-speed rails, etc.), or logistics robots, etc.
  • Leisure and entertainment equipment such as virtual reality (VR) equipment, mixed reality (MR) equipment, massage chairs, or 4D theater cockpits, etc.
  • VR virtual reality
  • MR mixed reality
  • the CDN node 203 is a node in the CDN network and can return content to the terminal device. Generally speaking, CDN nodes have storage space and communication capabilities. Storage space users cache content, and communication capabilities allow CDN nodes to provide content to terminal devices.
  • the CDN node 203 includes but is not limited to a CDN access node, an edge cache node shown in Figure 1, etc.
  • the link of the communication connection may include one or more types of connection media, including wired links (such as optical fibers), wireless links or wired links. Links and combinations of wireless links, etc.
  • the connection medium can be a wireless link that uses short-range connection technology, such as 802.11b/g technology, Bluetooth (Blue Tooth) technology, Zigbee technology, and Radio Frequency Identification (RFID) technology, ultra-wideband (UWB) technology, wireless short-range communication (such as vehicle-mounted wireless short-range communication) technology or vehicle to everything (V2X, vehicle-to-everything information exchange) technology, etc.
  • short-range connection technology such as 802.11b/g technology, Bluetooth (Blue Tooth) technology, Zigbee technology, and Radio Frequency Identification (RFID) technology, ultra-wideband (UWB) technology, wireless short-range communication (such as vehicle-mounted wireless short-range communication) technology or vehicle to everything (V2X, vehicle-to-everything information exchange) technology, etc.
  • the wireless link uses long-distance connection technology, such as Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Universal Mobile Telecommunications System (Universal Mobile Telecommunications System) , UMTS), LTE, or 5G and other wireless access type technologies.
  • GSM Global System for Mobile communications
  • GPRS General Packet Radio Service
  • Universal Mobile Telecommunications System Universal Mobile Telecommunications System
  • UMTS Universal Mobile Telecommunications System
  • LTE Long-distance connection technology
  • the acquisition method of the ONT node can be matched. In this way, even if the content exists on the target CDN node, it can be provided through the ONT node to control bandwidth costs.
  • user U2 requests content B through terminal device 2022.
  • Content B is obtained from an ONT.
  • the content providing device can feed back the instruction information of ONT 204 to terminal device 2022.
  • the terminal device 2022 may request content B from the ONT, and the ONT returns content B to the terminal device 2022. Since the ONT is usually idle and the bandwidth cost is low, the transmission cost can be reduced by returning content B through the ONT.
  • embodiments of the present application can utilize idle network nodes (such as ONTs, routers, etc.) in home networks, office networks, etc., and integrate the computing resources, storage resources, bandwidth resources, etc. provided by them to provide content distribution services. In this way, network traffic can be optimized and the utilization of network nodes can be improved.
  • idle network nodes such as ONTs, routers, etc.
  • Figure 3 is a schematic flowchart of a content providing method provided by an embodiment of the present application.
  • this method can be applied to a system including a terminal device, a content providing device, a target CDN, and a target ONT (optional), such as the content providing system shown in Figure 2.
  • the content providing method as shown in FIG. 3 may include a plurality of steps S301 to S307. It should be understood that this application describes the sequence of steps S301 to S307 for convenience of description, and is not intended to limit execution to the above sequence. The embodiments of the present application do not limit the execution sequence, execution time, number of executions, etc. of one or more of the above steps.
  • the details of steps S301 to S307 are as follows:
  • Step S301 The terminal device sends an acquisition request for content.
  • the content providing device obtains the content acquisition request sent by the terminal device.
  • the content acquisition request includes the content attribute of the content.
  • the content attributes of the content include one or more of the content's identity (identification, ID), request address, uniform resource locator (uniform resource locator, URL), type, service quality requirements, content provider identification, user information, etc. item.
  • the acquisition request may be sent directly by the terminal device to the content providing device, or may be dispatched by other devices to reach the content providing device.
  • This application does not limit the manner in which the content providing device obtains the access request.
  • the acquisition request may first arrive at a DNS server, and the DNS server may dispatch (or redirect) it to the content providing device.
  • the acquisition request first reaches the CDN access gateway, and the CDN access gateway allocates the access request to the content providing device.
  • Step S302 The content providing device determines the content acquisition method according to the content access policy corresponding to the content attribute.
  • the access policy describes the corresponding relationship between content attributes and content acquisition methods, and can be used to determine which acquisition method is used to obtain a certain content.
  • Design 1 The method of obtaining content is related to the business type of the content.
  • the business type can be predefined, preset, or follow a certain standard.
  • the service type includes but is not limited to one of video services, audio services, live broadcast services, file download services, web page services (for example: ticket purchase services, shopping services, news services, or book reading services, etc.), etc. Or multiple items.
  • the access policy may include: if the service type corresponding to the content belongs to the first type, the content is obtained from a CDN node. That is, for the first type of service, it is obtained from the CDN node.
  • the first type may be preset, or provided by the CDN network, or customized by the user. Taking the first type of user-defined business as an example, if a certain part of the CDN network serves financial practitioners, the user can determine the acquisition method of financial-related services as the acquisition method from the CDN.
  • Table 1 shows the classification of several service types. It can be seen that the first type of service may include video service, audio service, live broadcast service, ticket purchase service, or shopping service, etc.
  • the acquisition method is the acquisition method from CDN. Since these services are sensitive to latency, obtaining them from CDN nodes can significantly improve the service quality of the content providing network.
  • Table 1 is an exemplary service classification for the convenience of understanding the first service, and is not limited to this application.
  • the first type may contain more or fewer service types, or the names of the service types may be replaced.
  • the first type of service includes the first segment of the video.
  • the first segment of the video is the first segment of the video.
  • it can be mapped to the acquisition method obtained from the CDN.
  • the target CDN node will provide the content of the first segment of the video, reducing latency and improving transmission efficiency, improving user experience and increasing the stickiness of CDN video customers.
  • the access policy may include: if the service type of the content belongs to the second type, the acquisition method of the content is the acquisition method from the ONT.
  • the corresponding acquisition method for the second type of content is to obtain it from the ONT.
  • This setting can divert the acquisition of content and control the cost of content provision.
  • mapping these contents to the acquisition method obtained from the ONT will neither It affects user experience and also reduces bandwidth costs.
  • the acquisition method of content A is from the CDN node; the business type of content B belongs to the second type, then the content B
  • the acquisition method is the acquisition method from the ONT.
  • the second type is preset, or is provided by the management device of the CDN network, or the second type of service is user-defined.
  • the second type of business includes book reading business, file downloading business, etc.
  • the content access policy includes:
  • the acquisition method of the content is the acquisition method from the ONT.
  • the acquisition method of almost all content can be determined based on the business type, which can reduce the complexity of determining the acquisition method and improve the efficiency of determining the acquisition method.
  • the content providing device may first determine the service type of the content.
  • the business type of the content can also be directly included in the attributes of the content.
  • the business type of the content can be determined by the attributes of the content.
  • the attributes used to determine the service type of the content may include one or more of the identification of the content, the access address of the content, the service quality requirements of the content, and the like.
  • the attribute of the content includes the identifier of the content
  • the content providing device can determine the service type according to the identifier of the content.
  • Table 2 shows the service type corresponding to the user's identity in an example of this embodiment of the present application.
  • the service providing device can determine that the content belongs to the video service according to the identifier of the content, thereby determining that the service type corresponding to the content is the first type.
  • the content is obtained from CDN.
  • the service providing device can determine that the content belongs to the book reading service according to the content identifier, thereby determining that the service type corresponding to the content is the second type. Based on the content access policy of Design 1, the content is obtained from the ONT.
  • the business type corresponding to the business can also be represented by a corresponding relationship set, a database table, etc.
  • Table 2 is an exemplary service classification for the convenience of understanding the first service, and is not intended to limit the embodiments of the present application.
  • the content may contain more or fewer business types, or the names of the business types, identification of the content, etc. may be replaced.
  • the identifier of the content can directly correspond to the type of the service type. That is, it can be determined according to the identifier of the content whether the service type of the content belongs to the first type. At this time, the content service device can determine that the content corresponds to the first type according to the identifier "C001" of the content, and then the acquisition method of the content is the acquisition method from the CDN.
  • the content access policy may include: the service providing device determines how to obtain the content based on the request address of the content.
  • the request address can be represented by a URL.
  • the service providing device performs regular expression matching on the URL corresponding to the content to determine how to obtain the content. This setting allows precise control over how content is obtained and improves user experience.
  • the URL is usually represented by a multi-segment string.
  • the URL corresponding to the content contains the first string
  • the content is obtained through a CDN.
  • the URL of the content contains the second string
  • the content is obtained through the ONT.
  • Design 3 The method of obtaining content is related to the provider of the content.
  • the access policy may include: if the provider of the content is the target provider, the acquisition method of the content is from a CDN node.
  • the target provider may be a provider that subscribes to additional services.
  • the target provider can be a certain type of provider.
  • the user or the CDN management device can predefine which providers belong to the target provider.
  • the target provider may be a provider that has subscribed to additional services. These additional services are usually provided to the target provider after purchasing or reaching some kind of cooperation. This setting is equivalent to paying the high bandwidth cost of CDN through the provider's purchase of services. At this time, when users access the content provided by these providers, they can obtain it from the CDN node, which improves the user experience of obtaining content.
  • the target provider may be a provider with a public welfare nature or with special functions.
  • a fire protection agency provides users with safety protection videos.
  • the fire protection agency is set as the target provider.
  • users obtain the safety protection videos they can quickly obtain them, which improves the user experience and is beneficial to users in learning knowledge. .
  • the access policy may include: if the provider of the content is a provider of the target service, the acquisition method of the content is from a CDN node.
  • the content can be obtained from a CDN.
  • Step S303 If the content is obtained from a CDN node, the content providing device instructs the target CDN node to return the content to the terminal device.
  • the target CDN node is not the optimal CDN node for returning content to the terminal, and redirection may be triggered in this case. That is, the content may be provided to the terminal device by another CDN node.
  • the content providing device queries and obtains ONTs with available content, and the aforementioned target ONT belongs to the available ONTs.
  • the embodiments of the present application can flexibly determine the content acquisition method, and provide the content with low traffic overhead, small transmission delay, and high transmission efficiency.
  • step S410 to step S412 are as follows:
  • Step S401 User Equipment (UE) requests content.
  • UE User Equipment
  • the CDN node can receive the request from the UE.
  • Step S402 The CDN node access gateway queries the content access policy.
  • the CDN node access gateway can be a module in the CDN node and can receive requests from the UE.
  • the content access policy is provided by the CDN node content scheduling module.
  • the CDN node access gateway queries the content access policy from the CDN node content scheduling module.
  • the CDN access gateway can obtain all content access policies.
  • the CDN node access gateway can also query only part of the content access policy. For example, the CDN node access gateway can only query the access policy corresponding to the content attribute.
  • the CDN node access gateway has obtained some or all of the content access policies.
  • the CDN node access gateway may also perform step S204, but determine the content acquisition method based on the acquired content access policy.
  • Step S403 The CDN node content scheduling module returns the content access policy to the CDN node access gateway.
  • the CDN node access gateway receives the content return policy.
  • the CDN node content scheduling module is a module in the CDN node, used to manage and maintain content access policies, and can provide content access policies to other devices.
  • the content scheduling policy can be defined by turning on/off a certain content acquisition method. Two possible implementations are listed below:
  • Implementation method 1 Users (operation and maintenance personnel, administrators or CDN network users, etc.) can enable (or disable) ONT acceleration based on domain names (that is, the acquisition method obtained from ONT). For example, if ONT acceleration is enabled for domain name A, then when the user device accesses the content provided by the domain name, the content can be obtained from the ONT.
  • Implementation method 2 Based on the first fragment of the video, ONT acceleration can be turned off by default. At this time, the first fragment of the video can be obtained from a CDN. At this time, when the user device requests content of the first segment type of the video, the content is provided by the CDN node, allowing the user device to quickly open the video and improving the user experience.
  • Step S404 If the content is obtained from a CDN, the CDN node access gateway queries the CDN node cache.
  • the content acquisition method is related to the content attribute and content access policy of the content.
  • the content attribute and content access policy of the content please refer to the above.
  • Step S406 If the content is obtained from an ONT, the CDN node accesses the gateway to query the available ONT.
  • ONT scheduling is scheduled by the ONT resource scheduling brain.
  • the CDN node access gateway queries the available ONTs from the ONT resource scheduling brain.
  • the ONT resource scheduling brain receives the query request from the CDN access gateway.
  • Step S407 The ONT resource scheduling brain returns the query results.
  • the ONT resource scheduling brain determines available ONTs from multiple ONTs based on the content index and generates query results.
  • the query result may include one or more of the following contents: whether there are available ONTs, indication information of available ONTs, or the priority of available ONTs, etc.
  • the ONT resource scheduling brain can obtain the content stored on multiple ONTs.
  • Table 3 shows a schematic table of contents stored on the ONT. It contains one or more of the ONT's identification, ONT's IP address, stored content index, etc. It can be seen that the ONT identified as "D001” stores content identified as the following: “C001, "C002”, “C003", “C004", etc.
  • the ONT resource scheduling brain determines the available ONTs based on the content index. For example, if the CDN access gateway queries the available gateways for content "C001", the ONT resource scheduling brain can return the indication information of ONT "D001", such as the identification, IP address, or MAC address of ONT "D001".
  • available ONTs include ONT "D001” and ONT "D002".
  • the query result may include information indicating ONT "D001” and ONT "D002”.
  • query results It can contain the instruction information of one of the ONTs.
  • the resource scheduling brain can determine an ONT from ONT "D001” and ONT "D002" as the ONT of the returned content.
  • the resource scheduling brain can determine the priorities of the multiple available ONTs to facilitate the CDN node access gateway and/or terminal to determine the target ONT from the multiple available ONTs.
  • the priority of available ONTs can be included in the query results.
  • Table 3 is a possible schematic table made to facilitate understanding of the process of determining available ONTs, and is not intended to limit the embodiments of the present application. During the specific implementation process, the fields in the table can be more or less; the ONT identification, IP address, content index, etc. can be replaced with other designs.
  • the query result may indicate that an available ONT exists or may indicate that an available ONT does not exist.
  • the following describes the situation where there is no available ONT.
  • Step S408 If there is no available ONT, the CDN node accesses the gateway to access the cache.
  • the CDN node cache is a module in the CDN node that stores content.
  • the CDN node cache can request the content from the upper level.
  • Step S409 The CDN node cache returns content to the UE.
  • Step S410 If there is an available ONT, the CDN node access gateway returns an HTTP 302 redirect request.
  • the redirection request includes indication information of available ONTs, such as one or more of the identification of the ONT, the IP address of the ONT, the MAC address of the ONT, and the name of the ONT.
  • the available ONT can be one or multiple.
  • the redirection request also contains the priority of the ONT.
  • Step S411 The UE requests content from the ONT.
  • the ONT here belongs to the available ONT.
  • ONT is also called ONT acceleration end.
  • Step S412 The ONT returns the content to the UE.
  • the CDN node access gateway can determine the acquisition method suitable for the current content from multiple acquisition methods based on the content and content access policy, which improves the flexibility of content acquisition.
  • Using the above method to provide content requires small traffic overhead, small transmission delay, and high transmission efficiency.
  • the process of providing content may include steps S401 to S405.
  • the process of providing content includes steps S401 to S403, and steps S406 to S409.
  • the process of providing content includes step S401-step S401, step S406-step S407, and step S410-step S412.
  • the CDN node access gateway, CDN node content scheduling module and CDN node cache can be included in the same CDN node.
  • the above three modules can also be integrated in different CDN nodes.
  • the CDN node access gateway and the CDN node content scheduling module are included in the same CDN node, and the CDN node cache is included in another CDN node.
  • FIG. 5 is a schematic structural diagram of a content providing device 50 provided by an embodiment of the present application.
  • the content providing device 50 may include a processing unit 501 and a communication unit 502.
  • the content providing device 50 is used to implement the aforementioned content providing method, such as the content providing method in the embodiment shown in FIG. 3 or FIG. 4 .
  • the communication unit 502 is configured to receive an acquisition request for content sent by a terminal device, where the acquisition request includes the content attribute of the content;
  • the processing unit 501 is configured to determine the acquisition method of the content according to the content access policy corresponding to the content attribute.
  • the acquisition method of the content is an acquisition method from a content distribution network CDN node or from an optical network terminal. How to obtain ONT;
  • the communication unit 502 is also used to:
  • the acquisition method of the content is the acquisition method from the ONT, instruct the terminal device to redirect to the target ONT to obtain the content.
  • the content attribute is a service type of the content or an identifier of the content, and the identifier of the content is used to determine the service type of the content;
  • the content access policy includes one or more of the following:
  • the acquisition method of the content is the acquisition method from the ONT;
  • the acquisition method of the content is the acquisition method from the ONT.
  • the content attribute is a request address of the content; the processing unit 501 is further configured to determine a method of obtaining the content according to the request address of the content.
  • the communication unit 502 is also used to:
  • the acquisition method of the content is from an ONT
  • query and obtain the ONT available for the content and the target ONT belongs to the ONT available for the content.
  • the communication unit 502 is also used to:
  • the content providing device instructs the target CDN node to return the content to the terminal device.
  • the computing device 60 includes: a processor 602, a memory 601, a bus 604, and optionally a communication interface 603.
  • the processor 602, the memory 601, etc. communicate through the bus 604. It should be understood that this application does not limit the number of processors and memories in the computing device 60 .
  • the computing device cluster includes at least one computing device 60 .
  • the same instructions for executing the content providing method may be stored in the memory 601 of one or more computing devices 60 in the computing device cluster.
  • the memory 601 of one or more computing devices 60 in the computing device cluster may also store part of the instructions for executing the content providing method respectively.
  • a combination of one or more computing devices 60 may collectively execute instructions for performing a content providing method.
  • An embodiment of the present application also provides a computer program product containing instructions.
  • the computer program product may be a software or program product containing instructions capable of running on a computing device or stored in any available medium.
  • the computer program instructions are used to implement the aforementioned content providing method, such as the content providing method in embodiments such as Figure 3 or Figure 4.
  • At least one mentioned in the embodiments of this application means one or more, and “multiple” means two or more. “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • at least one of a, b, or c can represent: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple.
  • “And/or” describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or” relationship.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供内容提供方法及装置,应用于信息技术、通信技术领域。本申请实施例能够从多个获取方式中,基于内容属性对应的访问策略,确定适用于当前内容的获取方式,提升了内容获取的灵活性。利用本申请实施例来提供内容,所需的流量开销小、传输延迟小、传输效率高。

Description

内容提供方法及装置
本申请要求于2022年06月24日提交中国国家知识产权局、申请号为202210724237.9、申请名称为“内容提供方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及信息技术(information technology,IT)、通信技术领域,尤其涉及内容提供方法及装置。
背景技术
内容分发网络(content delivery network,CDN)是一个策略性部署的整体***。意在尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。
通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,CDN***能够实时地根据网络流量和各节点的连接、负载情况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的CDN节点上,提高数据传输的速率。但是,CDN节点一般位于机房中,用户通过CDN节点来下载内容,会付出高昂的宽带成本。
因此,如何在保证速率的前提下,控制传输成本是领域技术人员正在研究的热点问题。
发明内容
本申请实施例提供了内容提供方法及装置,利用本申请实施例来提供内容,所需的流量开销小、传输延迟小、传输效率高。
第一方面,本申请实施例提供一种内容提供方法,包括:
接收终端设备发送的针对内容的获取请求,所述获取请求包含所述内容的内容属性;
根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,所述内容的获取方式为从CDN节点获取的获取方式或从其他网络节点获取的获取方式;
如果所述内容的获取方式为从CDN节点获取的获取方式,指示目标CDN节点向所述终端设备返回所述内容。
其中,从其他网络节点获取,是指从CDN节点之外的网络节点上获取。这些网络节点通常具有缓存内容能力或返回内容的功能,能够向用户返回内容。
可选的,其他网络节点包含光网络中的节点,例如光网络终端(content delivery network,ONT)等。以下以ONT为例进行说明,但本申请实施例对于其他类型的网络节点同样适用。
本申请实施例在提供内容时,能够从多个获取方式中,基于内容属性对应的访问策略,确定适用于当前内容的获取方式,提升了内容获取的灵活性。由于可以灵活地确定内容获取方式,因此,本申请实施例能够针对不同的内容(例如不同内容类型、不同内容提供者、或不同域名等),确定该内容的获取方式。
这样设置,一些内容就可以对应于CDN获取方式,针对这些内容,就由目标CDN节点向终端设备提供,从而减少内容的传输时延、提升内容的访问效率。而对于另一些内容则可 以对应ONT节点的获取方式,这样即便在目标CDN节点上存在该内容,也可以通过ONT节点来提供,以控制带宽成本。
综上,本申请实施例能够灵活地确定内容的获取方式,提供内容所需的流量开销小、传输时延小、传输效率高。
可选的,上述实施方式可以由CDN节点来实现。其中,CDN节点可以包含多个节点,实现上述内容提供方法的CDN节点与返回内容的目标CDN节点可以为同一节点,也可以不为同一节点。
进一步可选的,当实现上述内容提供方法的CDN节点与目标CDN节点为同一节点时,“指示”具体可以理解为输出控制信息等方式指示,或者,通过程序跳转等方式来指示。
在第一方面的一种可能的实施方式中,内容的内容属性包含内容的身份标识(identification,ID)、请求地址、统一资源定位符(uniform resource locator,URL)、类型、服务质量需求、内容提供商标识、用户信息等中的一项或者多项。
在第一方面的又一种可能的实施方式中,所述方法还包括:
如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
在第一方面的又一种可能的实施方式中,所述内容属性包含所述内容的业务类型;
所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
在第一方面的又一种可能的实施方式中,所述内容属性包含所述内容的标识,所述内容的标识用于确定所述内容的业务类型。此时,所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
在上述实施方式中,内容的获取方式与内容的业务类型相关,对于第一类型的业务,则从CDN节点上获取。由于CDN***能够实时地根据网络流量和各节点的连接、负载情况以及到用户的距离和响应时间等综合信息确定向用户返回内容的节点CDN节点,因此,从CDN节点获取内容的效率高,时延低,用户体验较好。尤其对于某些对传输速率敏感的业务,将其获取方式对应为从CDN节点获取,能够显著提高内容提供网络的服务质量。
在第一方面的又一种可能的实施方式中,所述第一类型的业务包括如下的一种或多种:
视频业务、音频业务、直播业务、购票业务、或购物业务等。
在第一方面的又一种可能的实施方式中,所述第一类型的业务包含视频首分片。
其中,视频类型的内容,在提供时通常以多个分片的形式提供,而视频首分片即视频的第一个分片。
具体的,用户适用终端设备查看视频时,终端设备通常具有预先下载视频的缓存机制,因此,当用户查看某一视频的某一分片时,客户端可以预先加载视频后面的分片以提高使用体验。但是,针对视频首分片则不适用于预先下载的方式,首先,终端并不清楚用户即将选中查看哪一个视频,因此无法进行预先缓存;其次,若终端将每一个可能被点开的视频都进行预先加载,则会造成网络带宽的拥堵以及存储空间的浪费。
由于终端没有提前对某一视频首分片进行缓存,用户打开某一视频后客户端才开始获取视频首分片,此时,若视频首分片的传输效率低,就会导致视频播放的时延增加甚至出现卡顿,进而影响用户体验。此时用户可能会关闭客户端或切换其他的视频软件查看该视频,造成用户流失。
而通过本申请实施例,针对视频首分片,可以将其对应到从CDN获取的获取方式。用户 加载视频首分片时,会由目标CDN节点提供视频首分片的内容,降低时延且提升传输效率,提升用户体验并提高CDN视频客户的黏性。
在第一方面的一种可能的实施方式中,所述第一类型为预先设置的,或者,由CDN网络的管理设备提供。
在第一方面的又一种可能的实施方式中,所述第一类型的业务为用户自定义的。
例如,用户对于不同类型的业务有不同的敏感性,因此,用户可以根据自己的需求定义需要通过CDN获取业务类型。
例如,某一CDN网络服务于金融从业者,则用户可以将金融相关业务的获取方式确定为从CDN获取的获取方式。
在第一方面的又一种可能的实施方式中,所述内容访问策略包含:
若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式。
在上述实施方式中,第二类型的内容则从ONT获取。这样设置,可以对内容的获取进行分流,控制了内容提供成本。
尤其对于一些对速率不敏感的业务,或者具有提前预缓存的业务(比如视频播放的客户端一般会提前预下载一部分未播放内容),将这些内容对应到从ONT获取的获取方式,既不会影响用户体验,也降低了带宽成本。
可选的,第二类型的内容则从ONT获取。第二类型为预先设置的,或者,由CDN网络的管理设备提供,或者,第二类型的业务为用户自定义的。这样设置,可以提高确定内容获取方式时的灵活性和精准性。
进一步的,对于既不属于第一类型,也不属于第二类型的业务,可以通过其他的策略来确定访问方式,提升***兼容性。
在第一方面的又一种可能的实施方式中,所述内容访问策略包含:
若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
在第一方面的又一种可能的实施方式中,所述内容属性为内容的请求地址;所述方法包括:根据所述内容的请求地址,确定所述内容的获取方式。
可选的,内容请求地址可以包含在获取请求的请求头中。在这种情况下,对于指向某一个请求地址或某一些请求地址的业务,则可以对应从CDN获取的获取方式。
总之,上述实施方式可以针对内容属性确定内容的获取方式,实现对内容的获取的分流。通过上述实施方式,可以在保证速率的前提下,控制传输成本。
在一种可能的设计中,请求地址可以通过URL来表示。此时,上述方式具体可以为:对内容对应的URL进行正则表达式匹配,确定内容的获取方式。这样设置,可以对内容的获取方式进行精准控制,提升用户体验。
又一种可能的设计中,URL通常由多段字符串的形式来表示。此时,若内容对应的URL中包含第一字符串,则内容的获取方式为通过CDN获取。或者,若内容的URL中包含第二字符串,则内容的获取方式为通过ONT获取。这样设置,可以对内容的获取方式进行精准控制,提升用户体验。
上述的第一字符串和第二字符串是为了示例性的描述字符串,第一字符串和/或第二字符串中可以包含一个或多个字符。
在第一方面的又一种可能的实施方式中,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
作为一种可能的实施方式,目标提供者可以为开通了额外服务的提供者。
这些额外服务通常在购买或达成某种合作后,向目标提供者提供。这样设置,相当于通过提供者对服务的购买,支付了CDN的高昂带宽成本。此时,当用户访问这些提供者提供的内容时,可以从CDN节点上获取,提升了用户获取内容使用体验。
或者,目标提供者可能是具有公益性质或者具有特殊功能的提供者。例如,某一消防机构向用户提供安全防护视频,这种情况下,将消防机构设置为目标提供者,用户在获取该安全防护视频时,能够快速获取,提升了用户体验又对于用户学习知识有益。
在第一方面的又一种可能的实施方式中,所述方法还包括:
若所述内容的获取方式为从ONT获取的获取方式,查询获取所述内容可用的ONT,所述ONT属于所述内容可用的ONT。
在上述实施方式中,在内容获取方式为从ONT获取的获取方式时,为了提高内容获取的成功率,可以先查询周围是否有可用的ONT。在存在目标ONT的情况下,则从目标ONT获取内容。
在第一方面的又一种可能的实施方式中,所述方法还包括:
若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,指示所述目标CDN节点向所述终端设备返回所述内容。
在上述实施方式中,在内容获取方式为从ONT获取的获取方式时,为了提高内容获取的成功率,可以先查询周围是否有可用的ONT。在不存在可用ONT的情况下,则仍然从CDN上获取内容,降低内容获取的时延,提升用户体验。
第二方面,本申请实施例提供一种内容提供***,所述内容提供***包括内容提供装置、终端设备和目标CDN节点,所述终端设备用于向内容提供装置发送针对内容的获取请求,所述目标CDN节点用于向终端设备返回内容,所述内容提供装置用于实现前述第一方面任一项所属的内容提供方法。
在第二方面的一种可能的实施方式中,所述终端设备,用于向所述内容提供装置发送针对内容的获取请求,所述获取请求包含所述内容的内容属性;
所述内容提供装置,用于接收所述获取请求;
所述内容提供装置,还用于根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,所述内容的获取方式为从CDN节点获取的获取方式或从其他网络节点获取的获取方式;
所述内容提供装置,还用于如果所述内容的获取方式为从CDN节点获取的获取方式,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容;
所述目标CDN节点,用于向所述终端设备返回所述内容。
其中,从其他网络节点获取,是指从CDN节点之外的网络节点上获取。这些网络节点通常具有缓存内容能力或返回内容的功能,能够为用户返回内容。
可选的,其他网络节点包含光网络中的节点,例如ONT等。以下以ONT为例进行说明,但本申请实施例对于其他类型的网络节点同样适用。
在第二方面的又一种可能的实施方式中,内容的内容属性包含内容的ID、请求地址、URL、类型、服务质量需求、内容提供商标识、用户信息等中的一项或者多项。
在第二方面的又一种可能的实施方式中,所述内容提供***还包括目标ONT;
所述内容提供装置,还用于如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
在第二方面的又一种可能的实施方式中,所述终端设备,还用于向所述目标ONT请求所述内容;
所述目标ONT,用于向所述终端设备返回所述内容。
在第二方面的又一种可能的实施方式中,所述内容属性为所述内容的业务类型;
所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
在第二方面的又一种可能的实施方式中,所述内容属性为所述内容的标识,所述内容的标识用于确定所述内容的业务类型。所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
在第二方面的又一种可能的实施方式中,所述内容访问策略包含:
若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式。
在第二方面的又一种可能的实施方式中,所述内容访问策略包含:
若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
在第二方面的又一种可能的实施方式中,所述内容属性为所述内容的请求地址;所述内容提供装置,还用于根据所述内容的请求地址,确定所述内容的获取方式。
在第二方面的又一种可能的实施方式中,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
在第二方面的又一种可能的实施方式中,若所述内容的获取方式为从ONT获取的获取方式,所述内容提供装置查询获取所述内容可用的ONT,所述目标ONT属于所述内容可用的ONT。
在第二方面的又一种可能的实施方式中,若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容。
应理解,在第二方面任一项所描述的内容提供***中,为了方便区分,故将内容提供装置描述为位于目标CDN节点之外。但具体实施过程中,内容提供装置也可以位于目标CDN节点内。或者,内容提供装置的部分模块位于CDN节点内,部分模块位于CDN节点之外。
在内容提供装置包含位于目标CDN节点之内的模块时,内容提供装置所执行的部分操作(或全部操作),也可以由目标CDN节点来执行。即,目标CDN节点可以用于实现第二方面中,由内容提供装置所实现的功能。
换句话,目标CDN节点用于实现第一方面任一项所描述的方法,或者用于实现上述方法的部分操作。
第三方面,本申请实施例提供一种内容提供装置,所述内容提供装置包含通信单元和处理单元,所述内容提供装置用于实现第一方面任一项所述的内容提供方法。
在第三方面的一种可能的实施方式中,所述通信单元,用于接收终端设备发送的针对内容的获取请求,所述获取请求包含所述内容的内容属性;
所述处理单元,用于根据所述内容属性所对应的内容访问策略,确定所述内容的获取方 式,所述内容的获取方式为从内容分发网络CDN节点获取的获取方式或从光网络终端ONT获取的获取方式;
所述通信单元,还用于如果所述内容的获取方式为从CDN节点获取的获取方式,指示目标CDN节点向所述终端设备返回所述内容。
在第三方面的又一种可能的实施方式中,所述通信单元,还用于:
如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
在第三方面的又一种可能的实施方式中,所述内容属性为所述内容的业务类型或所述内容的标识,所述内容的标识用于确定所述内容的业务类型;
所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
在第三方面的又一种可能的实施方式中,所述内容访问策略包含如下的一种或多种:
若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式;
或者,若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
在第三方面的又一种可能的实施方式中,所述内容属性为所述内容的请求地址;所述处理单元,还用于根据所述内容的请求地址,确定所述内容的获取方式。
在第三方面的又一种可能的实施方式中,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
在第三方面的又一种可能的实施方式中,所述通信单元,还用于:
若所述内容的获取方式为从ONT获取的获取方式,查询获取所述内容可用的ONT,所述目标ONT属于所述内容可用的ONT。
在第三方面的又一种可能的实施方式中,所述通信单元,还用于:
若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容。
第四方面,本申请实施例提供一种计算设备,该计算设备包括处理器和存储器;所述处理器执行存储中存储的指令,以使得所述计算设备实现前述第一方面任一项所描述的方法。
可选的,所述计算设备还包括通信接口,所述通信接口用于接收和/或发送数据,和/或,所述通信接口用于为所述处理器提供输入和/或输出。
需要说明的是,上述实施例是以通过调用计算机指定来执行方法的处理器(或称通用处理器)为例进行说明。具体实施过程中,处理器还可以是专用处理器,此时计算机指令已经预先加载在处理器中。可选的,处理器还可以既包括专用处理器也包括通用处理器。
可选的,处理器和存储器还可能集成于一个器件中,即处理器和存储器还可以被集成在一起。
第五方面,本申请实施例还提供一种计算设备集群,该计算设备集群包含至少一个计算设备,每个计算设备包括处理器和存储器;
所述至少一个计算设备的处理器用于执行所述至少一个计算设备的存储器中存储的指令,以使得所述计算设备集群执行第一方面任一项所述的方法。
第六方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存 储有指令,当所述指令被计算设备(或计算设备集群)运行时,使得所述计算设备(或计算设备集群)实现前述第一方面任一项所描述的方法。
第七方面,本申请提供了一种计算机程序产品,计算机程序产品包括计算机指令,当所述指令被计算设备(或计算设备集群)运行时,使得所述计算设备(或计算设备集群)实现前述第一方面任一项所描述的方法。
可选的,该计算机程序产品可以为一个软件安装包或镜像文件,在需要使用前述方法的情况下,可以获取该计算机程序产品并在计算设备上执行该计算机程序产品。
本申请第二至第七方面所提供的技术方案,其有益效果可以参考第一方面的技术方案的有益效果,此处不再赘述。
附图说明
下面将对实施例描述中所需要使用的附图作介绍。
图1是一种分布式的内容分发网的示意图;
图2是本申请实施例提供的一种内容提供***的架构示意图;
图3是本申请实施例提供的一种内容提供方法的流程示意图;
图4是本申请实施例提供的又一种内容提供方法的流程示意图;
图5是本申请实施例提供的一种内容提供装置的结构示意图;
图6是本申请实施例提供的一种计算设备的结构示意图。
具体实施方式
下面结合附图对本申请实施例进行详细介绍。
为了便于理解,以下示例地给出了部分与本申请实施例相关概念的说明以供参考。如下所示:
1.内容分发网络(Content Delivery Network,CDN)是一种分布式的内容分发网,用于向用户分发内容。其原理如图1所示,CDN将源站内容分发至物理位置靠近用户的节点,使得用户可以就近获得所需的内容,解决Internet网络拥挤的状况,提高用户访问的响应速度和成功率。
如图1所示,服务提供者(或称租户)设置源站节点101,源站节点101提供服务,例如网页、视频播放、音乐播放、文件下载等服务。服务提供者在控制平台103购买CDN服务,在不同地域设置边缘缓存节点(例如,边缘缓存节点1041-1045),公网DNS服务器注册源站节点的域名与不同地域设置边缘缓存节点的公网IP地址之间的对应关系。
地域1的客户端1051发送针对源站节点域名的域名访问请求(可选包含用户请求的待访问内容),该域名访问请求到达公网域名***(domain name system,DNS)服务器,公网DNS服务器获得与该域名对应的多个地域设置边缘缓存节点1041-1045的公网IP地址。
公网DNS服务器将客户端1051的公网IP地址(携带在域名访问请求的源IP地址中)与多个边缘缓存节点1041-1045的公网IP地址作比较,确认边缘缓存节点1041的公网IP地址与客户端1051的公网IP地址属于相同地域,将边缘缓存节点1041的公网IP地址返回给客户端1051,客户端1051根据边缘缓存节点1041的公网IP地址就近访问边缘缓存节点1041,向其请求待访问内容。
边缘缓存节点1041查询本地是否缓存有待访问内容,如果是,则直接返回给客户端1051,如果否,则向上一级缓存节点(中心缓存节点1021)请求待访问内容(发送回源请求),中 心缓存节点1021查询本地是否缓存有待访问内容,如果是,则直接返回给边缘缓存节点1041,如果否,则向上一级的源站节点101请求待访问内容。
因此,当边缘缓存节点1041缓存有待访问内容,可就近返回给客户端1051,从而提高客户端1051访问待访问内容的速度。
为了方便描述,本申请将边缘缓存节点、中心缓存节点等CDN网络中的节点,统一称为CDN节点。另外,上述的客户端(客户端1051-1055)可以看作终端设备,或者,客户端可以在终端设备中实现。
2.具有内容提供功能的网络节点
除了通过CDN节点向用户返回内容,一些其他网络中的节点也可以向用户返回内容。下面示例性地列举几种的具有内容提供功能的网络节点:
示例1,光网络终端(content delivery network,ONT)是光接入网络中的网络节点,一般用于连接家庭网络。ONT具有存储空间、计算能力和通信能力,且带宽通常闲置。因此,ONT可以用于内容进行缓存,并将缓存的内容提供给用户。
示例2,一种路由器,除了具有无线路由功能外,还能够本地缓存内容,并将内容返回给用户。例如,该路由器可以用于缓存许某特定网站的视频内容,并将所述视频内容提供给用户。
示例3,数字用户线路调制解调器(x digital subscriber line modem,xDSL modem)是数字用户线路(x digital subscriber line,xDSL)接入网络中的网络节点。xDSL modem具有计算空间、存储空间和通信能力。
其中,xDSL是各种类型数字用户线路(digital subscriber line,DSL)的统称,包括非对称数字用户线路(ADSL,asymmetric digital subscriber line,ADSL)、速率自适应数字用户线(rate adaptive digital subscriber line,RADSL)、甚高比特率数字用户线(very high-bit-rate digital subscriber line,VDSL)、对称数字用户线(symmetrical digital subscriber line,SDSL)、综合业务数字网(Integrated digital subscriber line,IDSL)和高速率数字用户线路(High-speed Digital Subscriber Line,HDSL)等。
上述三种网络节点仅为示例,具体实施过程中还可以包含其他具有内容缓存能力的节点。
在一些可能的场景中,通过上述从CDN节点之外的网络节点获取内容时,可以结合其他访问控制设备实现。例如,结合CDN网络实现,或者结合源站的服务器实现。
以ONT为例,由于ONT本身原本不具有内容分发的能力,因此,ONT可以与CDN网络进行结合。一些技术中,CDN将一些内容(例如,热门内容)主动推送到ONT进行提前缓存,在CDN节点接收到终端设备对于内容的访问请求时,若该内容已经在ONT上提前缓存,则CDN节点可以基于302调度(下文中介绍)将该访问请求转到ONT上,由ONT将内容提供给终端设备。
3.302调度
302是一种状态码(status code),用于指示请求的资源存在但并不在当前访问的位置。而302调度是指基于302状态码的调度,用户对内容的请求到达CDN网络中的调度模块(或其他调度节点、调度服务器等),而调度模块(或其他调度节点、调度服务器等)通过302方式,向用户反馈可以获取到内容的地址(如IP地址等)。终端可以向该地址再一次发送内容访问请求,从而在该地址对应的节点处获取到内容。
4.返回内容
应理解,本申请中的“返回内容”是指CDN节点或ONT等设备将其缓存的内容提供(或 称为发送)给用户。为了与提供内容的源站做区分,故此本申请实施例中称为“返回”。
以上对技术术语的解释,可以应用于下文的实施例中。
由CDN网络中的节点向用户返回内容,能够保证用户具有极佳的传输体验,但CDC网络的带宽成本高昂。而如ONT、路由器等节点,带宽闲置、成本低,但其带宽有限,内容下载速率慢。如果对二者进行结合,可以减少CDN节点的带宽消耗。
但是,部分业务需要较高的下载速度才能具有良好的用户体验,若该类型的业务被分配到ONT、路由器等网络节点上进行下载,可能会影响用户的内容访问体验,甚至导致客户端的用户流失。
有鉴于此,本申请实施例提供一种内容提供方法及装置,利用本申请实施例来提供内容,所需的流量开销小、传输延迟小、传输效率高。
下面对本申请实施例的***架构进行示例性地描述。需要说明的是,本申请描述的***架构是为了更加清楚的说明本申请的技术方案,并不构成对于本申请提供的技术方案的限定,本领域普通技术人员可知,随着***架构的演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。另外,本申请实施例中,除了CDN节点之外的、能够返回内容的网络节点,以ONT为例来进行介绍。对于其他类型的网络节点,本申请同样适用。换句话说,内容提供***中可以包含若干个具有返回内容的能力的节点,例如ONT、路由器、xDSLmodem等中的一个或者多个。
请参见图2,图2是本申请实施例提供的一种可能内容提供***的架构示意图,该示意图也说明了该内容提供***的运行场景。内容提供***包含内容提供装置201、终端设备、CDN节点203,可选包含ONT204。其中,内容提供装置201、终端设备、CDN节点203、ONT等的数量本申请不做严格限定,图2所示的数量仅为示例。
内容提供装置201是具有计算能力和通信能力的装置,能够与终端设备、CDN节点203、ONT204中的一个或者多个设备进行通信。可选的,内容提供装置201可以集成在CDN节点(例如CDN节点203、或CDN接入网关等)中,或者,内容提供装置201可以作为CDN网络中的节点(如:调度节点、CDN接入网关等),或者,内容提供装置可以集成在DNS服务器中。
终端设备,部分实施例也称用户设备(User Equipment,UE),是具有通信能力的设备,其可以对内容发起请求。可选的,终端设备能够与用户进行交互,例如呈现用户界面,或接收用户输入的操作等。示例性地,终端设备包含但不限于是,手持终端、可穿戴设备、娱乐设备、交通设备等。其中,手持设备例如手机、平板电脑、笔记本电脑、或警务通等。可穿戴设备例如智能手环、智能手表、或智能眼镜等。交通设备例如车辆、舰船、飞行器、轨道交通(如地铁、高铁等)、或物流机器人等。休闲娱乐设备例如虚拟现实((virtual reality,VR)设备、混合现实(Mixed Reality,MR)设备、按摩椅、或4D影院座舱等。应理解,虽然图2以终端设备为例进行描述,但本申请对于其他有内容获取需求的设备同样适用。
CDN节点203是CDN网络中的节点,能够向终端设备返回内容。通常来说,CDN节点具有存储空间和通信能力,存储空间用户缓存内容,通信能力能够让CDN节点将内容提供给终端设备。CDN节点203包含但不限于是CDN接入节点、图1所示的边缘缓存节点等。
ONT204是接入网中的设备,具有存储空间和通信能力。
应理解,图2所示的***中的装置,例如内容提供装置、CDN节点、ONT等,其可以通过硬件实现,也可以通过软件实现,或者通过软硬结合的方式实现。
需要说明的是,上述四者中任意两者之间建立通信连接时,通信连接的链路可以包括一种或者多种类型的连接介质,包括有线链路(例如光纤)、无线链路或者有线链路和无线链路的组合等。例如连接介质可以为无线链路,该无线链路采用近距离连接技术,例如802.11b/g技术、蓝牙(Blue Tooth)技术、紫蜂(Zigbee)技术、无线射频识别(Radio Frequency Identification,RFID)技术、超宽带(Ultra Wideband,UWB)技术、无线短距通信(例如车载无线短距通信)技术或车联网(vehicle to everything,V2X,车对外界的信息交换)技术等。再如,该无线链路采用远距离连接技术,例如全球移动通信***(Global System for Mobile communications,GSM)、通用分组无线业务(General Packet Radio Service,GPRS)、通用移动通信***(Universal Mobile Telecommunications System,UMTS),LTE,或5G等无线接入类型技术。
在图2所示的***中,终端可以发送(或称提交)针对某一内容的获取请求,内容提供装置201能够从多个获取方式中,基于内容属性对应的访问策略,确定适用于当前内容的获取方式。其中,多个获取方式至少包含从CDN节点获取、从ONT节点获取这两种获取方式。
这样设置,一些内容就可以对应于CDN获取方式,针对这些内容,就由目标CDN节点向终端设备提供,从而减少内容的传输时延、提升内容的访问效率。如图2所示,用户U1通过终端设备2021请求内容A,内容A的获取方式为从CDN获取,则CDN节点203向终端设备2021提供该内容A。由于CDN网络带宽资源好,因此传输的时延低,用户U1可以尽快获取到内容,从提升了用户U1的使用体验。
而对于另一些内容,则可以对应ONT节点的获取方式,这样即便在目标CDN节点上存在该内容,也可以通过ONT节点来提供,以控制带宽成本。如图2所示,用户U2通过终端设备2022请求内容B,内容B的获取方式为从ONT获取,则内容提供装置可以向终端设备2022反馈ONT204的指示信息。终端设备2022可以向ONT请求内容B,由ONT向终端设备2022返回内容B。由于ONT通常闲置,带宽成本低,因此,通过ONT返回内容B,可以减少传输成本。
综上,本申请实施例能够灵活地确定内容的获取方式,提供内容所需的流量开销小、传输时延小、传输效率高。
另外,本申请实施例能够将家庭网络、办公网络等网络中闲置的网络节点(例如ONT、路由器等)利用起来,将其提供的计算资源、存储资源、带宽资源等整合起来提供内容分发服务,从而实现网络流量的优化,提高网络节点的利用率。
下面对本申请实施例的方法进行详细介绍。
请参见图3,图3是本申请实施例提供的一种内容提供方法的流程示意图。可选的,该方法可以应用于包含终端设备、内容提供装置、目标CDN和目标ONT(可选)的***中,例如图2所示的内容提供***。
如图3所示的内容提供方法可以包括步骤S301至S307中的多个步骤。应理解,本申请为了方便描述,故通过步骤S301至S307这一顺序进行描述,并不旨在限定一定通过上述顺序进行执行。本申请实施例对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。步骤S301至S307具体如下:
步骤S301:终端设备发送针对内容的获取请求。相应的,内容提供装置获取终端设备发送的针对内容的获取请求。
其中,内容的获取请求包含内容的内容属性。内容的内容属性包含内容的身份标识(identification,ID)、请求地址、统一资源定位符(uniform resource locator,URL)、类型、服务质量需求、内容提供商标识、用户信息等中的一项或者多项。
需要说明的是,获取请求可以是终端设备直接发送给内容提供装置的,也可以是经过其它装置调度到达内容提供装置的,本申请对于内容提供装置获取访问请求的方式不作限定。例如,获取请求可以先到达DNS服务器,由DNS服务器调度(或重定向)给内容提供装置。再如,获取请求先到达CDN接入网关,CDN接入网关将访问请求分配给内容提供装置。
步骤S302:内容提供装置根据内容属性对应的内容访问策略,确定内容的获取方式。
其中,访问策略描述了内容属性和内容的获取方式的对应关系,能够用于确定某一内容基于哪种获取方式获取。
下面先介绍几种内容访问策略的可能设计:
设计1:内容的获取方式与内容的业务类型相关。其中,业务类型可以预先定义、预先设置或者遵循某一标准。示例性地,业务类型包含但不限于是视频业务、音频业务、直播业务、文件下载业务、网页业务(例如:购票业务、购物业务、新闻业务、或书籍阅读业务等)等中的一项或者多项。
作为一种可能的方案,访问策略可以包含:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。即,对于第一类型的业务,则从CDN节点上获取。
示例性的,第一类型可以是预先设置的,或者,由CDN网络提供,或者,用户自定义。以用户自定义第一类型的业务为例,某一部分CDN网络服务于金融从业者,则用户可以将金融相关业务的获取方式确定为从CDN获取的获取方式。
为了便于理解,表1示出了几种业务类型的分类。可以看出,第一类型的业务可以包含视频业务、音频业务、直播业务、购票业务、或购物业务等。对于业务类型为上述类型的内容,则获取方式为从CDN获取的获取方式。由于这些业务对时延较为敏感,将其获取方式对应为从CDN节点获取,能够显著提高内容提供网络的服务质量。
表1业务类型的分类表
当然,业务对应的业务类型除了通过表格表示,还可以通过对应关系集合、数据库表等方式表示。另外,表1是为了方便理解第一业务所做出的一种示例性的业务分类,不作为本申请限定。例如,第一类型可以包含更多或者更少的业务类型,或者,业务类型的名称可以进行替换。
一种可能的设计中,第一类型的业务包含视频首分片。视频首分片即视频的第一个分片。 这种情况下,针对视频首分片,可以将其对应到从CDN获取的获取方式。用户加载视频首分片时,会由目标CDN节点提供视频首分片的内容,降低时延且提升传输效率,提升用户体验并提高CDN视频客户的黏性。
上述对第一类型的业务的获取方式进行了介绍。进一步的,对于第一类型以外的其他业务类型的业务,可以使用以下策略来确定获取方式:
作为又一种可能的方案,访问策略可以包含:若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式。第二类型的内容,对应的获取方式为从ONT获取。这样设置,可以对内容的获取进行分流,控制了内容提供成本。尤其对于一些对速率不敏感的业务,或者具有提前预缓存的业务(比如视频播放的客户端一般会提前预下载一部分未播放内容),将这些内容对应到从ONT获取的获取方式,既不会影响用户体验,也降低了带宽成本。
示例性的,图2所示的***中,内容A的业务类型属于第一类型,则内容A的获取方式为从CDN节点获取的获取方式;内容B的业务类型属于第二类型,则内容B的获取方式为从ONT获取的获取方式。
可选的,第二类型为预先设置的,或者,由CDN网络的管理设备提供,或者,第二类型的业务为用户自定义的。例如,第二类型的业务包含书籍阅读业务、文件下载业务等。
应理解,在这种方案中,对于既不属于第一类型,也不属于第二类型的业务,可以通过其他的策略来确定内容获取方式,提升***兼容性。
作为又一种可能的方案,所述内容访问策略包含:
若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。在这种方案中,基于业务类型即可确定几乎全部内容的获取方式,可以减少确定获取方式的复杂度,提高确定获取方式的效率。
实现设计1的内容访问策略时,内容提供装置可以先确定内容的业务类型。其中,内容的业务类型也可以直接包含在内容的属性中。或者,内容的业务类型可以通过内容的属性来确定。可选的,用于确定内容的业务类型的属性可以包含内容的标识、内容的访问地址、内容的服务质量需求等中的一项或者多项。
下面对通过内容的标识确定内业务类型的方案进行示例性地介绍,对于使用其他内容属性来确定业务类型地方案,本申请同样适用。
具体的,内容的属性中包含内容的标识,内容提供装置可以根据内容的标识确定业务类型。如表2所示是本申请实施例一种示例的用户的标识对应的业务类型。如图2所示,在内容的标识为“C001”的情况下,服务提供装置可以根据内容的标识确定内容属于视频业务,从而确定该内容对应的业务类型为第一类型。基于设计1的内容访问策略,则该内容的获取方式为从CDN获取的获取方式。同理,在内容标识为“C002”的情况下,服务提供装置可以根据内容的标识确定内容属于书籍阅读业务,从而确定该内容对应的业务类型为第二类型。基于设计1的内容访问策略,则该内容的获取方式为从ONT获取的获取方式。
表2内容的标识对应业务类型

应理解,业务对应的业务类型除了通过表格表示,还可以通过对应关系集合、数据库表等方式表示。另外,表2是为了方便理解第一业务所做出的一种示例性的业务分类,不作为对本申请实施例的限定。例如,内容可以包含更多或者更少的业务类型,或者,业务类型的名称、内容的标识等可以进行替换。
在一些可能的设计中,内容的标识与业务类型的类型可以直接对应,即:根据内容的标识可以确定该内容的业务类型是否属于第一类型。此时,内容服务装置根据内容的标识“C001”,可以确定内容对应第一类型,则该内容的获取方式为从CDN获取的获取方式。
设计2:内容的获取方式与内容的请求地址相关。这种情况下,对于指向某一个请求地址或某一些请求地址的业务,则可以对应从CDN获取的获取方式。
此时,内容访问策略可以包含:服务提供装置根据内容的请求地址,确定内容的获取方式。
作为一种可能的方案,请求地址可以通过URL来表示。此时,服务提供装置对内容对应的URL进行正则表达式匹配,确定内容的获取方式。这样设置,可以对内容的获取方式进行精准控制,提升用户体验。
可选的,URL通常由多段字符串的形式来表示。此时,若内容对应的URL中包含第一字符串,则内容的获取方式为通过CDN获取。或者,若内容的URL中包含第二字符串,则内容的获取方式为通过ONT获取。
设计3:内容的获取方式与内容的提供者相关。
作为一种可能的方案,访问策略可以包含:若所述内容的提供者为目标提供者,则所述内容的获取方式为从CDN节点获取的获取方式。例如,目标提供者可以为开通了额外服务的提供者。再如,目标提供者可以为某种类型的提供者。此时,用户或者CDN管理设备可以预先定义哪些提供者属于目标提供者。
一种可能的设计中,目标提供者可以为开通了额外服务的提供者。这些额外服务通常在购买或达成某种合作后,向目标提供者提供。这样设置,相当于通过提供者对服务的购买,支付了CDN的高昂带宽成本。此时,当用户访问这些提供者提供的内容时,可以从CDN节点上获取,提升了用户获取内容使用体验。
在又一种可能的设计中,目标提供者可能是具有公益性质或者具有特殊功能的提供者。例如,某一消防机构向用户提供安全防护视频,这种情况下,将消防机构设置为目标提供者,用户在获取该安全防护视频时,能够快速获取,提升了用户体验又对于用户学习知识有益。
作为又一种可能的方案,访问策略可以包含:若所述内容的提供者为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
例如,内容的提供者可以是视频网站、音频网站、购票网站、书籍阅读网站等多种源站。此时,若内容提供者提供的内容属于视频业务,则该内容提供者为目标提供者。
示例性的,若内容由视频网站、音频网站等网站提供,则该内容的获取方式为从CDN获取的获取方式。
可选的,若内容的提供者不属于目标提供者或者内容的提供者不属于目标业务的提供者,则内容的获取方式为从ONT获取的获取方式。
实现设计3的内容访问策略时,内容提供装置可以先确定关于内容的提供者的指示信息。例如,内容属性指示内容的提供者,则内容提供装置根据内容的提供者对应的访问策略,确定内容的获取方式。
设计4:内容的获取方式由用户进行定义。例如,用户根据需求定义某个内容采用何种获取方式。
示例性的,用户可以根据域名,设置访问某个域名的服务时关闭ONT获取方式,在获取方式只包含“从CDN获取”、“从ONT”获取的情况下,则该域名对应的内容的获取方式为从CDN获取的获取方式。
示例性的,用户可以根据域名,设置某个业务类型仅开启CDN获取方式。这种情况下,则该业务类型的内容对应的内容获取方式为从CDN获取的获取方式。
应理解,上述内容访问策略的设计只是为了便于理解,并不表示对内容访问策略的限定。具体实施过程中,内容访问策略可以包含更多或者更少的设计。或者,上述设计还可以在不互斥的情况下结合。
在一种可能的设计中,内容访问策略可以由CDN网络中的调度节点,或者调度模块来管理和维护。此时,内容提供装置可以从调度节点(或调度模块)中获取内容访问策略。
应理解,内容的获取方式可能有多种,不同的内容获取方式,后续的内容提供步骤也不同。步骤S303是在获取方式为从CDN获取时可能会执行的步骤。
步骤S303:如果内容的获取方式为从CDN节点获取的获取方式,内容提供装置指示目标CDN节点向终端设备返回内容。
其中,目标CDN节点是CDN网络中的节点,能够向终端设备返回内容,例如目标CDN节点属于边缘缓存节点(或称缓存节点)。可选的,目标CDN节点可以是多个CDN节点中与终端设备距离最近的节点。本申请实施例中的距离最近可以是物理上的地理距离,也可以是网络距离(例如经历的跳数等)。
“指示”可以有多种实现方式。作为一种可能的实现方式,内容提供装置与目标CDN节点之间有通信连接,内容提供装置可以向目标CDN节点发送指示信息(便于区分称为第一指示信息),目标CDN节点接收该指示信息,可以向终端设备返回内容。
再如,内容提供装置查询CDN节点的缓存,若目标CDN的缓存中具有终端设备所请求的内容,则向终端设备返回内容。
作为又一种可能的实现方式,内容提供装置位于目标CDN节点内,此时内容提供装置可以输出控制信息或生成指令,相应的,CDN节点可以根据控制信号或指令向终端设备返回内容。
步骤S304(可选):目标CDN节点向终端设备返回内容。
这里的可选可以理解为,具体实施过程中可能包含步骤S304,也可能不包含步骤S304。例如,目标CDN节点中可能暂时没有该内容的缓存,此时可以向上一级节点或者源站请求该内容,在请求过程中终端设备可能已经取消了对内容的请求,此时目标CDN节点可能没有执行步骤S304。
再如,一些场景中,目标CDN节点不是向终端返回内容的最优CDN节点,此时可能会触发重定向。即,该内容可能由另一CDN节点向终端设备提供。
步骤S305-步骤S307是在获取方式为从CDN获取时可能会执行的步骤,具体如下:
步骤S305(可选):如果内容的获取方式为从ONT获取的获取方式,内容提供装置指示终端设备重定向到目标ONT获取内容。
“指示”可以有多种实现方式。下面列举几种可能的示例:
示例1:内容提供装置直接指示终端设备。内容提供装置可以向终端设备发送指示信息(便于区分称为第二指示信息),第二指示信息中包含指示目标ONT的信息。相应的,终端设备将内容的获取请求重定向到目标ONT。例如,第二指示信息可以包含目标ONT的网际互连协议(internet protocol,IP)地址、目标ONT的媒体存取控制(media access control,MAC)地址、目标ONT的设备标识、目标ONT的名称、目标ONT的编号等中的一项或者多项。
示例2:内容提供装置间接指示终端设备。内容提供装置可以向目标ONT发送指示信息(便于区分称为第三指示信息)。目标ONT与终端设备进行信息交互,以将终端设备对内容的请求重定向到目标ONT。
上述两种方式仅为示例,具体实施过程中,内容提供装置可以通过其他方式指示终端设备从目标ONT上获取内容。
为了提升ONT的命中率,内容提供装置可以在目标ONT上具有终端设备请求的内容的情况下,将终端设备重定向到目标ONT获取内容。
作为一种可能的方案,内容提供装置查询获取内容可用的ONT,而前述的目标ONT则属于可用的ONT。
可选的,ONT资源调度节点(或称ONT资源调度大脑)能够提供可用ONT查询服务。此时,内容提供装置可以从ONT处查询,是否有获取某一内容可用的ONT。
作为又一种可能的方案,若内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,则内容提供装置指示目标CDN节点向终端设备返回所述内容。这样设置,在不存在内容的可用ONT的情况下,终端设备可以从CDN网络中获取内容,降低内容获取的时延,提升用户体验。
步骤S306(可选):终端设备向目标ONT发送针对内容的获取请求。其中,内容的获取请求包含内容的内容属性。
相关描述可以参考步骤S301中的描述。
步骤S307(可选):目标ONT向终端设备的返回内容。
在图3所示的实施例中,内容提供装置能够从多个获取方式中,基于内容属性对应的访问策略,确定适用于当前内容的获取方式,提升了内容获取的灵活性。由于可以灵活地确定内容获取方式,因此,本申请实施例能够针对不同的内容(例如不同内容类型、不同内容提供者、或不同域名等),确定该内容的获取方式。
这样设置,一些内容就可以对应于CDN获取方式,针对这些内容,就由目标CDN节点向终端设备提供,从而减少内容的传输时延、提升内容的访问效率。而对于另一些内容则可以对应ONT节点的获取方式,这样即便在目标CDN节点上存在该内容,也可以通过ONT节点来提供,以控制带宽成本。
综上,本申请实施例能够灵活地确定内容的获取方式,提供内容所需的流量开销小、传输时延小、传输效率高。
图3所示的实施例中包含了多种可能的方案,下面对其中的一些可选方案进行进一步说明。
请参见图4,图4是本申请实施例提供的又一种可能的内容提供方法的流程图。可选的,该方法可以应用于包含用户设备、CDN节点接入网关、CDN节点内容调度模块、CDN缓存、 ONT资源调度大脑(可选)和ONT目标(可选)的***中,例如图2所示的内容提供***。
图4所示的步骤可以包含步骤S401-步骤S412中的部分或者全部步骤。应理解,本申请为了方便描述,故通过S401至S412这一顺序进行描述,并不旨在限定一定通过上述顺序进行执行。对于上述一个或多个步骤的执行的先后顺序、执行的时间、执行的次数等不做限定。步骤S410-步骤S412具体如下:
步骤S401:用户设备(User Equipment,UE)请求内容。
例如,UE发送针对内容的获取请求。可选的,请求内容的消息中携带内容的内容属性。相关描述可以参考前述步骤S301中的描述。
相应的,CDN节点可以接收来自UE的请求。
步骤S402:CDN节点接入网关查询内容访问策略。
可选的,CDN节点接入网关可以是CDN节点中的一个模块,能够接收来自UE的请求。
作为一种可能的方案,内容的访问策略由CDN节点内容调度模块提供。此时,CDN节点接入网关从CDN节点内容调度模块处查询内容访问策略。可选的,CDN接入网关可以获取全部内容访问策略。
或者可选的,内容访问策略包含多条时,CDN节点接入网关也可以只查询部分内容访问策略,例如,CDN节点接入网关可以只查询内容属性对应的访问策略。
作为又一种可能的方案,CDN节点接入网关中已经获取了部分或者全部内容访问策略。此时,CDN节点接入网关也可以执行步骤S204,而是根据已经获取的内容访问策略,确定内容的获取方式。
作为又一种可能的方案,CDN节点内容调度模块可以在内容访问策略更新时,向CDN节点接入网关同步内容访问策略,以提升***一致性。
其中,内容访问策略可以有多种可能的设计。具体可以参考步骤S302中的相关描述。
步骤S403:CDN节点内容调度模块向CDN节点接入网关返回内容访问策略。
相应的,CDN节点接入网关接收内容返回策略。
可选的,CDN节点内容调度模块是CDN节点中的一个模块,用于管理和维护内容访问策略,能够向其他设备提供内容访问策略。
可选的,CDN节点内容调度模块还支持对内容访问策略进行设置。作为一种可能的方案,用户(这里的用户是指运维人员、管理员或CDN网络的用户等)可以在CDN节点内容调度模块中定义内容访问策略。
通过CDN节点中的内容调度模块对内容访问策略进行集中管理,便于在内容访问策略变更时,及时更新、同步最新的内容访问策略,提高CDN网络中各节点的一致性,有助于***稳定。
需要说明的是,对内容调度策略可以通过开启/关闭某一种内容获取方式来定义。下面列举两种可能的实现方式:
实现方式1,用户(运维人员、管理员或CDN网络的用户等)可以基于域名开启(或关闭)ONT加速(即从ONT获取的获取方式)。例如,域名A被开启了ONT加速,则用户设备访问该域名提供的内容时,该内容的获取方式可以是从ONT获取的获取方式。
实现方式2,基于视频首分片,可以默认关闭ONT加速,此时视频首分片的获取方式可为从CDN获取的获取方式。此时,用户设备请求视频首分片类型的内容时,内容由CDN节点提供,使得用户设备能够快速打开视频,提升了用户体验。
上述两种实现方式是对用户设置内容访问策略的示例性地描述,不作为对本申请实施例 的限定。
步骤S404:若内容的获取方式为从CDN获取,CDN节点接入网关查询CDN节点缓存。
其中,内容的获取方式与内容的内容属性和内容访问策略相关。相关描述可以参考前述。
CDN节点缓存是CDN节点中,存储了内容的模块。可选的,若某一内容在CDN节点缓存上没有提前缓存,则CDN节点可以向上一级请求内容。
可选的,CDN节点接入网关查询CDN节点缓存的操作,可以看作是CDN节点接入网关对CDN节点缓存的一个指示。这个指示用于告知CDN节点缓存向UE返回内容。
步骤S405:CDN节点缓存向UE返回内容。
可选的,上述步骤S404和步骤S405在内容的获取方式为从CDN获取的情况下执行的操作。在一些场景中,内容的获取方式可以为从ONT获取,此时,图4所示的方法包含以下步骤中的一个或者多个步骤。
步骤S406:若内容的获取方式为从ONT获取,CDN节点接入网关查询可用ONT。
其中,ONT的调度由ONT资源调度大脑进行调度。此时,CDN节点接入网关从ONT资源调度大脑处查询可用ONT。相应的,ONT资源调度大脑接收CDN接入网关的查询请求。
在一种可能的设计中,ONT中已经缓存的内容,可以通过内容索引来查找。此时,CDN节点接入网关的查询请求中包含内容索引。内容索引可以包含于内容的内容属性中,或者,根据对内容的内容属性进行处理能够得到内容索引。
步骤S407:ONT资源调度大脑返回查询结果。
示例性地,ONT资源调度大脑根据内容索引,从多个ONT中确定可用ONT并生成查询结果。可选的,查询结果中可以包含以下内容中的一项或者多项:是否有可用ONT、可用ONT的指示信息、或可用ONT的优先级等。
作为一种可能的方案,ONT资源调度大脑可以获取多个ONT上存储的内容。表3示出了一种ONT上存储的内容示意表。其中包含ONT的标识、ONT的IP地址、存储的内容索引等中的一项或者多项内容。可以看出,标识为“D001”的ONT上存储了标识为以下标识的内容:“C001、“C002”、“C003”、“C004”等。
ONT资源调度大脑根据内容索引确定可用ONT。例如,若CDN接入网关查询获取内容“C001”的可用网关,则ONT资源调度大脑可以返回ONT“D001”的指示信息,例如ONT“D001”的标识、IP地址、或MAC地址等。
表3 ONT上存储的内容示意表
可选的,对于某一个内容,若存在多个可用ONT,则资源调度大脑可以返回全部可用ONT。或者可替换的,若存储多个可用ONT,资源调度大脑可以返回其中的若干个可用ONT。可选的,资源调度大脑可以根据ONT的服务质量来确定返回哪些ONT,其中服务质量可以与以下信息相关:ONT的负载、ONT的带宽、ONT与UE的距离、ONT的计算能力、ONT的存储空间等。
示例性地,对于内容“C004”,可用ONT包含ONT“D001”和ONT“D002”。可选的,查询结果可以包含指示ONT“D001”和ONT“D002”的信息。或者可选的,查询结果 可以包含其中一个ONT的指示信息,此时,资源调度大脑可以从ONT“D001”和ONT“D002”确定一个ONT作为返回内容的ONT。
在一种可能的设计中,存在多个可用ONT时,资源调度大脑可以确定多个可用ONT的优先级,便于CDN节点接入网关和/或终端从多个可用ONT中确定目标ONT。可用ONT的优先级可以包含在查询结果中。
需要说明的是,表3是为了方便理解确定可用ONT的过程所做出的一种可能的示意表,不作为对本申请实施例的限定。具体实施过程中,表中的字段可以更多或者更少;ONT的标识、IP地址、内容索引等可以替换为其他设计。
应理解,查询结果可能指示存在可用ONT,也可能指示不存在可用ONT。下面先对不存在可用ONT的情况进行描述。
步骤S408:若不存在可用ONT,则CDN节点接入网关访问缓存。
CDN节点缓存是CDN节点中,存储了内容的模块。可选的,若某一内容在CDN节点缓存上没有提前缓存,则CDN节点缓存可以向上一级请求内容。
步骤S409:CDN节点缓存向UE返回内容。
下面先对存在可用ONT的情况进行描述。
步骤S410:若存在可用ONT,则CDN节点接入网关返回HTTP 302重定向请求。
其中,重定向请求中包含可用ONT的指示信息,指示信息例如ONT的标识、ONT的IP地址、ONT的MAC地址、ONT的名称等中的一项或者多项。可选的,可用ONT可以是一个,也可以是多个。进一步的,重定向请求中还包含ONT的优先级。
步骤S411:UE向ONT请求内容。
其中,这里的ONT属于可用ONT。一些场景中,ONT也称为ONT加速端。
步骤S412:ONT向UE返回内容。
在图4所示的实施例中,CDN节点接入网关能够从多个获取方式中,基于内容和内容访问策略,确定适用于当前内容的获取方式,提升了内容获取的灵活性。利用上述方式来提供内容,所需的流量开销小、传输时延小、传输效率高。
应理解,图4所示实施例中包含多种可能的情况。在具体实施过程中,提供内容的流程可能只包含其中部分步骤。下面列举几种可能的实施方式:
在一种可能的实施方式中,提供内容的流程可以包含步骤S401-步骤S405。
在又一种可能的实施方式中,提供内容的流程可以包含步骤S401、步骤S404、S405。
在又一种可能的实施方式中,提供内容的流程包含步骤S401-步骤S403、步骤S406-步骤S409。
在又一种可能的实施方式中,提供内容的流程包含步骤S401-步骤S401、步骤S406-步骤S407、步骤S410-步骤S412。
在一种可能的设计中,图4所示的实例中,CDN节点接入网关、CDN节点内容调度模块和CDN节点缓存可以包含于同一个CDN节点中。当然,上述三个模块也可以集成在不同的CDN节点中。例如,CDN节点接入网关和CDN节点内容调度模块包含于同一个CDN节点中,而CDN节点缓存包含于另一个CDN节点中。
上述详细阐述了本申请实施例的方法,下面提供本申请实施例的装置。
请参见图5,图5是本申请实施例提供的一种内容提供装置50的结构示意图。该内容提供装置50可以包括处理单元501和通信单元502。该内容提供装置50用于实现前述的内容提供方法,例如图3或图4所示实施例中的内容提供方法。
这里需要说明的是,上述多个单元的划分仅是一种根据功能进行的逻辑划分,不作为对内容提供装置50具体的结构的限定。在具体实现中,其中部分功能模块可能被细分为更多细小的功能模块,部分功能模块也可能组合成一个功能模块,但无论这些功能模块是进行了细。
作为一种可能的方案,如图5所示的内容提供装置50用于实现图3或图4所示实施例中内容提供装置的部分或者全部功能。
在一种可能的实施方式中,所述通信单元502,用于接收终端设备发送的针对内容的获取请求,所述获取请求包含所述内容的内容属性;
所述处理单元501,用于根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,所述内容的获取方式为从内容分发网络CDN节点获取的获取方式或从光网络终端ONT获取的获取方式;
所述通信单元502,还用于如果所述内容的获取方式为从CDN节点获取的获取方式,指示目标CDN节点向所述终端设备返回所述内容。
在又一种可能的实施方式中,所述通信单元502,还用于:
如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
在又一种可能的实施方式中,所述内容属性为所述内容的业务类型或所述内容的标识,所述内容的标识用于确定所述内容的业务类型;
所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
在又一种可能的实施方式中,所述内容访问策略包含如下的一种或多种:
若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式;
或者,若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
在又一种可能的实施方式中,所述内容属性为所述内容的请求地址;所述处理单元501,还用于根据所述内容的请求地址,确定所述内容的获取方式。
在又一种可能的实施方式中,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
在又一种可能的实施方式中,所述通信单元502,还用于:
若所述内容的获取方式为从ONT获取的获取方式,查询获取所述内容可用的ONT,所述目标ONT属于所述内容可用的ONT。
在又一种可能的实施方式中,所述通信单元502,还用于:
若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容。
图6所示为本申请实施例提供的一种计算设备60的结构示意图。计算设备是具有计算能 力的设备,这里的设备可以是实体的设备,例如服务器(如机架式服务器)、主机等,也可能是虚拟的设备,例如虚拟机、容器等。
如图6所示,计算设备60包括:处理器602、存储器601、总线604,可选包含通信接口603。处理器602和存储器601等之间通过总线604通信。应理解,本申请不限定计算设备60中的处理器、存储器的个数。
存储器601用于提供存储空间,存储空间中可选存储应用数据、用户数据、操作***和计算机程序等。存储器601可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM)。存储器601还可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器,机械硬盘(hard disk drive,HDD)或固态硬盘(solid state drive,SSD)。
处理器602是进行运算的模块,可以包括中央处理器(central processing unit,CPU)、图形处理器(graphics processing unit,GPU)、微处理器(microprocessor,MP)、数字信号处理器(digital signal processor,DSP)、协处理器(协助中央处理器完成相应处理和应用)、专用集成电路(Application Specific Integrated Circuit,ASIC)、微控制单元(Microcontroller Unit,MCU)等处理器中的任意一种或多种。
通信接口603用于为所述至少一个处理器提供信息输入或者输出。和/或,所述通信接口603可以用于接收外部发送的数据和/或向外部发送数据。通信接口603可以为包括诸如以太网电缆等的有线链路接口,也可以是无线链路(Wi-Fi、蓝牙、通用无线传输及其他无线通信技术等)接口。可选的,通信接口603还可以包括与接口耦合的发射器(如射频发射器、天线等),或者接收器等。
总线604可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。总线604可包括在计算设备60各个部件(例如,存储器601、处理器602、通信接口603)之间传送信息的通路。
本申请实施例中,存储器601存储有可执行的指令,处理器602执行该可执行的指令以实现前述的内容提供方法,例如图3或图4等实施例中的内容提供方法。也即,存储器601上存有用于执行内容提供方法的指令。
或者,存储器601中存储有可执行的指令,处理器602执行该可执行的指令以分别实现前述的内容提供装置、CDN节点接入网关、CDN内容调度模块、CDN缓存中的一个或者多个装置(或设备)的功能,从而实现内容提供方法。
本申请实施例还提供了一种计算设备集群。该计算设备集群包括至少一台计算设备60。该计算设备可以是服务器,例如是中心服务器、边缘服务器,或者是本地数据中心中的本地服务器。在一些实施例中,计算设备也可以是台式机、笔记本电脑或者智能手机等终端设备。
如图6所示,所述计算设备集群包括至少一个计算设备60。计算设备集群中的一个或多个计算设备60中的存储器601中可以存有相同的用于执行内容提供方法的指令。
在一些可能的实现方式中,该计算设备集群中的一个或多个计算设备60的存储器601中也可以分别存有用于执行内容提供方法的部分指令。换言之,一个或多个计算设备60的组合可以共同执行用于执行内容提供方法的指令。
需要说明的是,计算设备集群中的不同的计算设备60中的存储器601可以存储不同的指 令,分别用于执行内容提供装置、CDN节点接入网关、CDN内容调度模块、或CDN缓存等装置执行的部分功能。
也即,不同的计算设备60中的存储器601存储的指令可以实现内容提供装置、CDN节点接入网关、CDN内容调度模块、或CDN缓存中的一个或多个装置(或设备)的功能。
在一些可能的实现方式中,计算设备集群中的一个或多个计算设备可以通过网络连接。其中,所述网络可以是广域网或局域网等等。
本申请实施例还提供了一种包含指令的计算机程序产品。所述计算机程序产品可以是包含指令的,能够运行在计算设备上或被储存在任何可用介质中的软件或程序产品。所述计算机程序指令用于实现前述的内容提供方法,例如图3或图4等实施例中的内容提供方法。
本申请实施例还提供了一种计算机可读存储介质。该计算机可读存储介质包括指令,所述指令用于实现前述的内容提供方法,例如图3或图4等实施例中的内容提供方法。
其中,所述计算机可读存储介质可以是计算设备能够存储的任何可用介质,或者是包含一个或多个可用介质的数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘)等。
值得提及的是,本申请中所涉及的装置的名称,是为了方便区分多个装置以及便于理解所提供的示例性的名称。具体实施过程中,装置的名称可以任意替换。例如,前述的内容提供装置也可以称为调度装置、调度模块、通信装置等。
本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中实施例提到的“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b、或c中的至少一项(个),可以表示:a、b、c、(a和b)、(a和c)、(b和c)、或(a和b和c),其中a、b、c可以是单个,也可以是多个。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A、同时存在A和B、单独存在B这三种情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
以及,除非有相反的说明,本申请实施例使用“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。例如,第一内容提供装置和第二内容提供装置,只是为了便于描述,而并不是表示这第一内容提供装置和第一内容提供装置的装置结构、部署顺序、重要程度等的不同。
本领域普通技术人员可以理解,实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。

Claims (29)

  1. 一种内容提供方法,其特征在于,包括:
    接收终端设备发送的针对内容的获取请求,所述获取请求包含所述内容的内容属性;
    根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,所述内容的获取方式为从内容分发网络CDN节点获取的获取方式或从光网络终端ONT获取的获取方式;
    如果所述内容的获取方式为从CDN节点获取的获取方式,指示目标CDN节点向所述终端设备返回所述内容。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
  3. 根据权利要求1或2所述的方法,其特征在于,所述内容属性为所述内容的业务类型或所述内容的标识,所述内容的标识用于确定所述内容的业务类型;
    所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
  4. 根据权利要求3所述的方法,其特征在于,所述第一类型包括如下的一种或多种:
    视频首分片、音频首分段。
  5. 根据权利要求3所述的方法,其特征在于,所述第一类型为用户自定义的。
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述内容访问策略包含如下的一种或多种:
    若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式;
    或者,若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述内容属性为所述内容的请求地址;所述根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,包括:
    根据所述内容的请求地址,确定所述内容的获取方式。
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
    若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
  9. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若所述内容的获取方式为从ONT获取的获取方式,查询获取所述内容可用的ONT,所述目标ONT属于所述内容可用的ONT。
  10. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,指示所述目标CDN节点向所述终端设备返回所述内容。
  11. 一种内容提供***,其特征在于,所述***包括内容提供装置、终端设备和目标内容分发网络CDN节点:
    所述终端设备,用于向所述内容提供装置发送针对内容的获取请求,所述获取请求包含所述内容的内容属性;
    所述内容提供装置,用于接收所述获取请求;
    所述内容提供装置,还用于根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,所述内容的获取方式为从CDN节点获取的获取方式或从光网络终端ONT获取的获取方式;
    所述内容提供装置,还用于如果所述内容的获取方式为从CDN节点获取的获取方式,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容;
    所述目标CDN节点,用于向所述终端设备返回所述内容。
  12. 根据权利要求11所述的内容提供***,其特征在于,所述内容提供***还包括目标ONT;
    所述内容提供装置,还用于如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
  13. 根据权利要求12所述的内容提供***,其特征在于,
    所述终端设备,还用于向所述目标ONT请求所述内容;
    所述目标ONT,用于向所述终端设备返回所述内容。
  14. 根据权利要求11-13任一项所述的内容提供***,其特征在于,所述内容属性为所述内容的业务类型或所述内容的标识,所述内容的标识用于确定所述内容的业务类型;
    所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
  15. 根据权利要求11-14任一项所述的内容提供***,其特征在于,所述内容访问策略包含如下的一种或多种:
    若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式;
    或者,若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
  16. 根据权利要求11-15任一项所述的内容提供***,其特征在于,所述内容属性为所述内容的请求地址;
    所述内容提供装置,还用于根据所述内容的请求地址,确定所述内容的获取方式。
  17. 根据权利要求11-16任一项所述的内容提供***,其特征在于,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
    若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
  18. 根据权利要求12所述的内容提供***,其特征在于,
    若所述内容的获取方式为从ONT获取的获取方式,所述内容提供装置查询获取所述内容可用的ONT,所述目标ONT属于所述内容可用的ONT。
  19. 根据权利要求18所述的内容提供***,其特征在于,
    若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容。
  20. 一种内容提供装置,其特征在于,所述内容提供装置包含:
    通信单元,用于接收终端设备发送的针对内容的获取请求,所述获取请求包含所述内容的内容属性;
    处理单元,用于根据所述内容属性所对应的内容访问策略,确定所述内容的获取方式,所述内容的获取方式为从内容分发网络CDN节点获取的获取方式或从光网络终端ONT获取的获取方式;
    所述通信单元,还用于如果所述内容的获取方式为从CDN节点获取的获取方式,指示目标CDN节点向所述终端设备返回所述内容。
  21. 根据权利要求20所述的内容提供装置,其特征在于,所述通信单元,还用于:
    如果所述内容的获取方式为从ONT获取的获取方式,指示所述终端设备重定向到目标ONT获取所述内容。
  22. 根据权利要求20或21所述的内容提供装置,其特征在于,所述内容属性为所述内容的业务类型或所述内容的标识,所述内容的标识用于确定所述内容的业务类型;
    所述内容访问策略包含以下策略:若内容对应的业务类型属于第一类型,则所述内容的获取方式为从CDN节点获取的获取方式。
  23. 根据权利要求20-22任一项所述的内容提供装置,其特征在于,所述内容访问策略包含如下的一种或多种:
    若所述内容的业务类型属于第二类型,则所述内容的获取方式为从ONT获取的获取方式;
    或者,若所述内容的业务类型不属于所述第一类型,则所述内容的获取方式为从ONT获取的获取方式。
  24. 根据权利要求20-23任一项所述的内容提供装置,其特征在于,所述内容属性为所述内容的请求地址;所述处理单元,还用于根据所述内容的请求地址,确定所述内容的获取方式。
  25. 根据权利要求20-24任一项所述的内容提供装置,其特征在于,所述内容属性指示所述内容的提供者;所述内容访问策略包括:
    若所述内容的提供者为目标提供者或为目标业务的提供者,则所述内容的获取方式为从CDN节点获取的获取方式。
  26. 根据权利要求21所述的内容提供装置,其特征在于,所述通信单元,还用于:
    若所述内容的获取方式为从ONT获取的获取方式,查询获取所述内容可用的ONT,所述目标ONT属于所述内容可用的ONT。
  27. 根据权利要求21所述的内容提供装置,其特征在于,所述通信单元,还用于:
    若所述内容的获取方式为从ONT获取的获取方式,但不存在获取所述内容可用的ONT,所述内容提供装置指示所述目标CDN节点向所述终端设备返回所述内容。
  28. 一种计算设备,其特征在于,所述计算设备包括处理器和存储器;
    所述存储器中存储有计算机指令;所述处理器用于执行所述计算机指令,以实现权利要求1-10任一项所述的方法。
  29. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,所述计算机指令用于实现权利要求1-10任一项所述的方法。
PCT/CN2023/098323 2022-06-24 2023-06-05 内容提供方法及装置 WO2023246488A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210724237.9A CN117319500A (zh) 2022-06-24 2022-06-24 内容提供方法及装置
CN202210724237.9 2022-06-24

Publications (1)

Publication Number Publication Date
WO2023246488A1 true WO2023246488A1 (zh) 2023-12-28

Family

ID=89295930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/098323 WO2023246488A1 (zh) 2022-06-24 2023-06-05 内容提供方法及装置

Country Status (2)

Country Link
CN (1) CN117319500A (zh)
WO (1) WO2023246488A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464712A (zh) * 2014-04-29 2017-02-22 阿尔卡特朗讯 用于对流送请求进行响应的方法和设备、接入节点及用于操作接入节点的方法
CN106911701A (zh) * 2017-03-06 2017-06-30 北京电信规划设计院有限公司 基于无源光网络实现内容分发的方法
US20190068701A1 (en) * 2017-08-31 2019-02-28 Boe Technology Group Co., Ltd. Content Scheduling Method Based on CDN and P2P Network, and Communication Network
CN114301848A (zh) * 2021-12-10 2022-04-08 阿里巴巴(中国)有限公司 基于cdn的通信方法、***、设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464712A (zh) * 2014-04-29 2017-02-22 阿尔卡特朗讯 用于对流送请求进行响应的方法和设备、接入节点及用于操作接入节点的方法
CN106911701A (zh) * 2017-03-06 2017-06-30 北京电信规划设计院有限公司 基于无源光网络实现内容分发的方法
US20190068701A1 (en) * 2017-08-31 2019-02-28 Boe Technology Group Co., Ltd. Content Scheduling Method Based on CDN and P2P Network, and Communication Network
CN114301848A (zh) * 2021-12-10 2022-04-08 阿里巴巴(中国)有限公司 基于cdn的通信方法、***、设备及存储介质

Also Published As

Publication number Publication date
CN117319500A (zh) 2023-12-29

Similar Documents

Publication Publication Date Title
US10574772B2 (en) Content engine for mobile communications systems
EP2088719B1 (en) Method and device for distributing file data
US10491657B2 (en) Network acceleration method, apparatus and device based on router device
JP5701902B2 (ja) アプリケーションレイヤにおける複数のインターフェースの結合/集約
CN201518488U (zh) 服务器负载均衡器及其***
US8964757B2 (en) HTTP optimization, multi-homing, mobility and priority
US20140222967A1 (en) Transparent media delivery and proxy
US10070348B2 (en) Hypertext transfer protocol support over hybrid access
KR20130088774A (ko) 분할 콘텐트 전달 시스템 및 방법
CN102238226A (zh) 在以内容为中心的网络上的会话迁移
JP2014522518A (ja) コンテンツ処理方法、コンテンツ処理デバイス、およびコンテンツ処理システム
US20100115031A1 (en) System and Method For Enabling P2P Applications in a Wireless Mobile Network
US11159642B2 (en) Site and page specific resource prioritization
WO2019071995A1 (zh) 内容分发方法、设备及***
US20200007653A1 (en) Multi-path management
US20180091631A1 (en) Systems and methods for writing prioritized http/2 data to a socket buffer
CN112231606A (zh) 一种网页处理方法和装置
CN102857547A (zh) 分布式缓存的方法及设备
WO2016180284A1 (zh) 服务节点分配方法、装置、cdn管理服务器及***
CN104539727A (zh) 一种基于ap平台的缓存方法和***
WO2023246488A1 (zh) 内容提供方法及装置
KR20130033252A (ko) 서비스 오버레이 네트워크에서 종단간 QoS 보장형 콘텐츠 전달 방법 및 그 시스템
Yan et al. Design and implementation of integrated ICN and CDN as a video streaming service
EP2997489B1 (en) Method and device for efficient mobile data transmission
CN102449979B (zh) 用于改进包括内容共享客户端的内容共享***的性能的***、方法和装置

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

Country of ref document: EP

Kind code of ref document: A1