CN108737500B - Target resource obtaining and providing method and device, storage medium and computer equipment - Google Patents

Target resource obtaining and providing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN108737500B
CN108737500B CN201810359065.3A CN201810359065A CN108737500B CN 108737500 B CN108737500 B CN 108737500B CN 201810359065 A CN201810359065 A CN 201810359065A CN 108737500 B CN108737500 B CN 108737500B
Authority
CN
China
Prior art keywords
target resource
node
equipment
information
cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810359065.3A
Other languages
Chinese (zh)
Other versions
CN108737500A (en
Inventor
刘剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201810359065.3A priority Critical patent/CN108737500B/en
Publication of CN108737500A publication Critical patent/CN108737500A/en
Application granted granted Critical
Publication of CN108737500B publication Critical patent/CN108737500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

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

Abstract

The invention discloses a method, a device, a storage medium and computer equipment for acquiring and providing target resources, wherein the method comprises the following steps: sending a target resource acquisition request to an equipment load node; receiving node information of a device cache node determined by a device load node according to a target resource acquisition request; sending a target resource acquisition request to the equipment cache node according to the node information; and the receiving equipment cache node acquires the target resource sent by the request according to the target resource. The invention modifies the intelligent audio-visual equipment into the equipment load node or the equipment cache node in the CDN, so that a user does not need to request the central load node for resources when wishing to acquire target resources, and only needs to request the equipment load node closest to the central load node. The CDN service capability is improved under the condition of utilizing the existing equipment, the cost is relatively low, and meanwhile, the reliability of the CDN network with wide distribution area and increased node quantity scale in the case of dealing with the problems of network and equipment faults is also improved.

Description

Target resource obtaining and providing method and device, storage medium and computer equipment
Technical Field
The invention relates to the field of intelligent audio-visual, in particular to a target resource obtaining and providing method, a target resource obtaining and providing device, a storage medium and computer equipment.
Background
The Content Delivery Network (CDN) essentially caches static resources commonly used in a Network in a server in the same area as a target user, so as to improve an access rate of the user, and is a basis for fast static resource Delivery in various Network services at present, and the CDN mainly includes a central load node and central cache service nodes distributed in different Network areas.
With the popularization of high-definition videos and high-quality audios, users also put higher requirements on the performance of storage, concurrent access and the like of CDN cache service nodes. Although a distributed architecture is adopted in the current CDN, the CDN still presents a centralized service form for an end user in a certain network area. Therefore, in order to solve the problems of high storage, high concurrency, fast link and the like, the width rate needs to be continuously increased, the number of central cache servers needs to be increased, and in addition, the cost of the audio and video content playing service provider is increased due to the fact that the copyright of the audio and video content is normalized, so that the cost of a terminal user for obtaining the content is increased, and the fast transmission of the content is not facilitated.
In the prior art, when a terminal user accesses a certain specific resource, the terminal first initiates a request to a central load node, and returns the description information of a central cache server closest to the user, and the terminal initiates a final resource access request to a corresponding central cache server again. In the process, service failures caused by errors of software and hardware of the nodes or network faults and other reasons can cause access failures of different degrees, the failure of the central load node can cause that the CDN network cannot provide services integrally, the failure of a certain central cache server can cause service failures in a corresponding area, and finally the access failures of terminal users are caused.
Disclosure of Invention
The invention provides a method, a device, a storage medium and computer equipment for acquiring and providing target resources, which are used for solving the following problems in the prior art: different access failures can be caused by software and hardware errors of nodes or network faults and the like, and the problem of increased service cost caused by high storage, high concurrency, quick link and the like is solved.
In order to solve the above technical problem, in one aspect, the present invention provides a target resource obtaining method, applied to a sending end device, including: sending a target resource acquisition request to an equipment load node; receiving node information of a device cache node determined by a device load node according to a target resource acquisition request; sending a target resource acquisition request to the equipment cache node according to the node information; and the receiving equipment cache node acquires the target resource sent by the request according to the target resource.
Further, after sending the target resource acquisition request to the device load node, the method further includes: detecting whether node information sent by an equipment load node is received; under the condition of receiving the node information, sending a target resource acquisition request to an equipment cache node according to the node information; and under the condition that the node information is not received, sending a target resource acquisition request to the central load node.
Further, after sending the target resource acquisition request to the central load node, the method further includes: receiving server information of a central cache server sent by a central load node; sending a target resource acquisition request to a central cache server according to the server information; and receiving the target resource sent by the central cache server.
On the other hand, the present invention also provides a target resource providing method, applied to a receiving end device, including: receiving a target resource acquisition request sent by a terminal; determining node information of an equipment cache node where the target resource is located according to the target resource acquisition request; and sending the node information to the terminal.
Further, after receiving the target resource acquisition request sent by the terminal, the method further includes: detecting whether the description information of the target resource requested in the target resource acquisition request is stored; under the condition that the description information of the target resource is stored, determining node information of a device cache node where the target resource is located according to the description information of the target resource; and under the condition that the description information of the target resource is not stored, sending a target resource acquisition request to the central load node.
Further, after sending the target resource acquisition request to the central load node, the method further includes: receiving synchronization information sent by a central load node, wherein the synchronization information at least comprises: description information of the target resource and server information of the central cache server; instructing a cache node of the preset equipment to acquire and cache the target resource from the central cache server according to the synchronization information; and storing the description information of the target resource and the node information of the cache node of the predetermined equipment.
In another aspect, the present invention further provides a target resource obtaining apparatus, including: the first sending module is used for sending a target resource obtaining request to the equipment load node; the first receiving module is used for receiving node information of the equipment cache node determined by the equipment load node according to the target resource acquisition request; the first sending module is also used for sending a target resource obtaining request to the equipment cache node according to the node information; the first receiving module is further configured to receive a target resource sent by the device cache node according to the target resource acquisition request.
Further, still include: the first detection module is used for detecting whether node information sent by the equipment load node is received or not; under the condition of receiving the node information, the first sending module is also used for sending a target resource obtaining request to the equipment cache node according to the node information; and under the condition that the node information is not received, the first sending module is also used for sending a target resource obtaining request to the central load node.
Further, under the condition that the node information is not received, the first receiving module is also used for receiving server information of the central cache server sent by the central load node; the first sending module is also used for sending a target resource obtaining request to the central cache server according to the server information; the first receiving module is further used for receiving the target resource sent by the central cache server.
In another aspect, the present invention further provides a target resource providing apparatus, including: the second receiving module is used for receiving a target resource obtaining request sent by the terminal; the determining module is used for determining node information of the equipment cache node where the target resource is located according to the target resource obtaining request; and the second sending module is used for sending the node information to the terminal.
Further, still include: the second detection module is used for detecting whether the description information of the target resource requested in the target resource acquisition request is stored; the determining module is specifically used for determining node information of a device cache node where the target resource is located according to the description information of the target resource under the condition that the description information of the target resource is stored; and under the condition that the description information of the target resource is not stored, the second sending module is further configured to send a target resource obtaining request to the central load node.
Further, still include: under the condition that the description information of the target resource is not stored, the second receiving module is further configured to receive synchronization information sent by the central load node, where the synchronization information at least includes: description information of the target resource and server information of the central cache server; the indication module is used for indicating the cache node of the preset equipment to acquire and cache the target resource from the central cache server according to the synchronization information; and the storage module is used for storing the description information of the target resource and the node information of the cache node of the preset device.
In another aspect, the present invention further provides a storage medium, in which a computer program is stored, and the computer program is executed by a processor to implement the target resource acquiring method.
In another aspect, the present invention further provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the above-mentioned target resource providing method.
In another aspect, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the target resource obtaining method.
In another aspect, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the target resource providing method.
The invention modifies the intelligent audio-visual equipment into the equipment load node or the equipment cache node in the CDN, so that a user does not need to request the central load node for resources when wishing to acquire target resources, and only needs to request the equipment load node closest to the central load node. The CDN service capability is improved under the condition of utilizing the existing equipment, the cost is relatively low, and meanwhile, the reliability of the CDN network with wide distribution area and increased node quantity scale in the case of dealing with the problems of network and equipment faults is also improved.
Drawings
FIG. 1 is a flowchart of a target resource acquisition method in a first embodiment of the present invention;
FIG. 2 is a flowchart of a target resource providing method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a target resource acquiring apparatus according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another target resource acquiring apparatus according to a third embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a target resource providing apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of another target resource providing apparatus according to a fourth embodiment of the present invention;
FIG. 7 is a schematic diagram of a CDN network structure in a ninth embodiment of the present invention;
fig. 8 is a schematic flow chart of a user acquiring a target resource in a ninth embodiment of the present invention.
Detailed Description
In order to solve the following problems in the prior art: the present invention provides a method, an apparatus, a storage medium, and a computer device for acquiring and providing a target resource, which are provided by the present invention, and further detailed descriptions will be provided below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
A first embodiment of the present invention provides a target resource obtaining method, which is applied to a terminal used by a user, and a flowchart of the method is shown in fig. 1, and specifically includes steps S101 to S104:
s101, sending a target resource acquisition request to an equipment load node;
s102, receiving node information of a device cache node determined by a device load node according to a target resource acquisition request;
s103, sending a target resource acquisition request to the equipment cache node according to the node information;
and S104, the receiving equipment cache node acquires the target resource sent by the request according to the target resource.
In this embodiment, when a user wishes to obtain a target resource, the user does not need to send a target resource obtaining request to a central load node of the CDN network, and only needs to send a target resource obtaining request to a device load node closest to a terminal held by the user; the equipment load node determines which equipment cache node the corresponding target resource is cached in according to the received target resource acquisition request, and feeds back node information of the equipment cache node to a user, wherein the node information mainly comprises an IP address or an MAC address and the like of the equipment cache node; after receiving the node information of the device cache node cached with the target resource, the user terminal sends a target resource acquisition request to the device cache node, and receives the target resource content sent by the device cache node according to the target resource acquisition request.
Specifically, all the device cache nodes and the device load nodes in this embodiment are intelligent audio-visual devices connected to the CDN network and having contents of playing and storing online video and audio, such as a mobile phone, an intelligent television, a network sound box, and the like. After comprehensively considering the network connection rate of each equipment node, the size of the storage space of the equipment, the marking and fragmentation strategy of the storage resource, the access frequency, the time distribution, the regional distribution, the resource failure and other factors, the CDN central load node formulates a corresponding service execution algorithm and provides a corresponding execution strategy for the equipment nodes. In order to avoid affecting the normal use of the intelligent audio-visual equipment by a user, the intelligent audio-visual equipment in the network space provides load or cache service for the network space according to the execution strategy provided by the CDN central load node only in a software upgrading mode when the intelligent audio-visual equipment is in a standby state.
Because the storage space of the intelligent audio-visual equipment is limited, the equipment load node cannot know the cache positions of all target resources, and the equipment cache node cannot cache all the target resources, so that if the node information of the equipment cache node corresponding to the target resource which the user wishes to acquire is not stored in the equipment load node closest to the user, the equipment load node cannot send the node information to the user terminal, and in order to ensure the timeliness of the user acquiring the target resource, the user terminal can detect whether the node information fed back by the equipment load node is received or not after sending the target resource request; if node information fed back by the equipment load node is received, a target resource request is sent to the corresponding equipment cache node according to the node information; and if the node information fed back by the equipment load node is not received, sending a target resource acquisition request to a central load node of the CDN. Further, when detecting whether node information fed back by the equipment load node is received, a preset time period may be set, and in the preset time period, if the node information fed back by the equipment load node is not received, the user terminal may consider that information of the target resource is not stored in the current equipment load node, that is, a request is sent to the central load node, and the preset time period may be set according to a network condition and a user requirement, which is not limited in this embodiment.
After sending a target resource acquisition request to a central load node of the CDN network, the user terminal receives server information of a central cache server sent by the central load node, sends the target resource acquisition request to a corresponding central cache server according to the server information, and finally receives a corresponding target resource sent by the corresponding central cache server. In actual use, the terminal can resend the target resource acquisition request to the equipment load node which is the second closest to the terminal if the terminal does not receive the reply after sending the target resource acquisition request to the equipment load node which is the closest to the terminal; if the fed-back node information has not been received yet, the target resource acquisition request may be sent to the device load node that is the third closest to the user terminal, or may be sent to the central load node, and it should be understood that steps of the method for the user terminal to acquire the target resource from the device load node that is the second closest to the user terminal or the device load node that is the third closest to the user terminal are also S101 to S104, and therefore details are not repeated again.
In this embodiment, the intelligent audio-visual device is modified into a device load node or a device cache node in the CDN network, so that a user does not need to request a resource from the central load node when desiring to obtain a target resource, but only needs to request the device load node closest to the central load node. The CDN service capability is improved under the condition of utilizing the existing equipment, the cost is relatively low, and meanwhile, the reliability of the CDN network with wide distribution area and increased node quantity scale in the case of dealing with the problems of network and equipment faults is also improved.
A second embodiment of the present invention provides a target resource providing method, which is applied to a device load node in a CDN network, and a flowchart thereof is shown in fig. 2, and specifically includes steps S201 to S203:
s201, receiving a target resource acquisition request sent by a terminal;
s202, determining node information of a device cache node where the target resource is located according to the target resource acquisition request;
and S203, transmitting the node information to the terminal.
All the device cache nodes and the device load nodes in this embodiment are intelligent audio-visual devices connected to the CDN network, such as a mobile phone, an intelligent television, and a network sound box, and having contents of playing and storing online video and audio. After comprehensively considering the network connection rate of each equipment node, the size of the storage space of the equipment, the marking and fragmentation strategy of the storage resource, the access frequency, the time distribution, the regional distribution, the resource failure and other factors, the CDN central load node formulates a corresponding service execution algorithm and provides a corresponding execution strategy for the equipment nodes. In order to avoid affecting the normal use of the intelligent audio-visual equipment by a user, the intelligent audio-visual equipment in the network space provides load or cache service for the network space according to the execution strategy provided by the CDN central load node only in a software upgrading mode when the intelligent audio-visual equipment is in a standby state.
When a user terminal wants to acquire a target resource, a target resource acquisition request is sent to an equipment load node, after the equipment load node receives the target resource acquisition request, the node information of an equipment cache node where the target resource is located is determined according to the target resource acquisition request, the node information mainly comprises an IP address or an MAC address and the like of the equipment cache node, and after the node information of the equipment cache node is acquired, the node information is sent to the user terminal, so that the user can access the corresponding equipment cache node according to the node information to acquire the target resource.
Because the storage space of the intelligent audio-visual equipment is limited, the equipment load node cannot know the cache positions of all target resources, and the equipment cache node cannot cache all the target resources, therefore, after receiving the target resource acquisition request, the equipment load node firstly detects whether the description information of the target resource requested in the target resource acquisition request is stored in the information table of the equipment load node, such as the information of the equipment cache node where the target resource is stored, the size of the target resource, and the like; if the description information of the target resource is stored, the equipment load node determines the node information of the equipment cache node where the target resource is located according to the description information of the target resource and sends the node information to the user terminal; and when the description information of the target resource is not stored, the equipment load node sends the target resource acquisition request to the central load node for updating the resource.
When receiving a target resource acquisition request sent by an equipment load node, a central load node sends synchronization information to the equipment load node, wherein the synchronization information at least comprises description information of a target resource corresponding to the target resource acquisition request and server information of a central cache server storing the target resource; after receiving the synchronization information, the equipment load node instructs a preset equipment cache node to acquire the target resource from a corresponding central cache server according to the synchronization information and caches the target resource so as to complete the updating of the resource; and finally, storing the description information of the target resource and the node information of the cache node of the preset equipment. Preferably, when the device load node selects a predetermined device cache node for caching the target resource, the device load node may determine the size of the target resource, the network condition of the device cache node, and the storage size.
In the embodiment, the intelligent audition device in the standby state in the network is used as a load or a cache node, and the distributed cache service is constructed by the video network data in the network space by using relatively idle network resources, storage resources and computing resources, so that the network distance between the service provider and the user is reduced, the service efficiency and the network resource utilization rate of the CDN are improved, the cost of network expansion is reduced, the risk resistance of the CDN is improved, and the problem of large-area service failure caused by regional network faults is prevented.
A third embodiment of the present invention provides a target resource obtaining apparatus, which is installed in a terminal used by a user, and a schematic structural diagram of the apparatus is shown in fig. 3, and the apparatus mainly includes: a first sending module 301, configured to send a target resource obtaining request to an equipment load node; a first receiving module 302, coupled to the first sending module 301, configured to receive node information of a device cache node determined by a device load node according to the target resource acquisition request; the first sending module 301 is further configured to send a target resource obtaining request to the device cache node according to the node information; the first receiving module 302 is further configured to receive a target resource sent by the device cache node according to the target resource obtaining request.
In this embodiment, the target resource obtaining apparatus is installed in a terminal used by a user, and when the user wishes to obtain a target resource, the first sending module 301 does not need to send a target resource obtaining request to a central load node of the CDN network, but only needs to send the target resource obtaining request to an equipment load node closest to the terminal held by the user; the equipment load node determines which equipment cache node the corresponding target resource is cached in according to the received target resource acquisition request, and feeds back node information of the equipment cache node to a user, wherein the node information mainly comprises an IP address or an MAC address and the like of the equipment cache node; after the first receiving module 302 receives the node information of the device cache node where the target resource is cached, the first sending module 301 sends a target resource obtaining request to the device cache node, and receives the target resource content sent by the device cache node according to the target resource obtaining request through the first receiving module 302.
Specifically, all the device cache nodes and the device load nodes in this embodiment are intelligent audio-visual devices connected to the CDN network and having contents of playing and storing online video and audio, such as a mobile phone, an intelligent television, a network sound box, and the like. After comprehensively considering the network connection rate of each equipment node, the size of the storage space of the equipment, the marking and fragmentation strategy of the storage resource, the access frequency, the time distribution, the regional distribution, the resource failure and other factors, the CDN central load node formulates a corresponding service execution algorithm and provides a corresponding execution strategy for the equipment nodes. In order to avoid affecting the normal use of the intelligent audio-visual equipment by a user, the intelligent audio-visual equipment in the network space provides load or cache service for the network space according to the execution strategy provided by the CDN central load node only in a software upgrading mode when the intelligent audio-visual equipment is in a standby state.
Because the storage space of the intelligent audio-visual device is limited, the device load node cannot know the cache positions of all the target resources, and the device cache node cannot cache all the target resources, therefore, if the node information of the device cache node corresponding to the target resource that the user wishes to acquire is not stored in the device load node closest to the user, the device load node does not send the node information to the user terminal, in order to ensure the timeliness of the user acquiring the target resource, the structural schematic diagram of the target resource acquiring device may also be as shown in fig. 4, the target resource acquiring device may further include a first detecting module 303, and the first detecting module 303 may detect whether the node information fed back by the device load node is received after the first sending module 301 sends the target resource request; if node information fed back by the equipment load node is received, a target resource request is sent to the corresponding equipment cache node according to the node information; if the node information fed back by the device load node is not received, the first sending module 301 sends a target resource obtaining request to a central load node of the CDN network. Further, when detecting whether the node information fed back by the equipment load node is received, the first detecting module 303 may set a preset time length, and in the preset time length, if the node information fed back by the equipment load node is not received, the user terminal may consider that the information of the target resource is not stored in the current equipment load node, that is, send a request to the central load node, where the preset time length may be set according to a network condition and a user requirement, and is not limited in this embodiment.
After the first sending module 301 sends the target resource obtaining request to the central load node of the CDN network, the first receiving module 302 receives server information of the central cache server sent by the central load node, the first sending module 301 sends the target resource obtaining request to the corresponding central cache server according to the server information, and finally, the first receiving module 302 receives the corresponding target resource sent by the corresponding central cache server. In actual use, the terminal can resend the target resource acquisition request to the equipment load node which is the second closest to the terminal if the terminal does not receive the reply after sending the target resource acquisition request to the equipment load node which is the closest to the terminal; if the fed-back node information has not been received, the target resource acquisition request may be sent to the device load node that is third closest to the user terminal, or may be sent to the central load node.
In this embodiment, the intelligent audio-visual device is modified into a device load node or a device cache node in the CDN network, so that a user does not need to request a resource from the central load node when desiring to obtain a target resource, but only needs to request the device load node closest to the central load node. The CDN service capability is improved under the condition of utilizing the existing equipment, the cost is relatively low, and meanwhile, the reliability of the CDN network with wide distribution area and increased node quantity scale in the case of dealing with the problems of network and equipment faults is also improved.
A fourth embodiment of the present invention provides a target resource providing apparatus, which is installed in a device load node in a CDN network, and a schematic structural diagram of the apparatus is shown in fig. 5, where the apparatus mainly includes: a second receiving module 501, configured to receive a target resource obtaining request sent by a terminal; a determining module 502, coupled to the second receiving module, configured to determine node information of a device cache node where the target resource is located according to the target resource obtaining request; a second sending module 503, coupled to the determining module, for sending the node information to the terminal.
In this embodiment, all the device cache nodes and the device load nodes are intelligent audio-visual devices connected to the CDN network and having contents of playing and storing online video and audio, such as a mobile phone, an intelligent television, a network sound box, and the target resource providing device is installed in all the device load nodes in the CDN network. After comprehensively considering the network connection rate of each equipment node, the size of the storage space of the equipment, the marking and fragmentation strategy of the storage resource, the access frequency, the time distribution, the regional distribution, the resource failure and other factors, the CDN central load node formulates a corresponding service execution algorithm and provides a corresponding execution strategy for the equipment nodes. In order to avoid affecting the normal use of the intelligent audio-visual equipment by a user, the intelligent audio-visual equipment in the network space provides load or cache service for the network space according to the execution strategy provided by the CDN central load node only in a software upgrading mode when the intelligent audio-visual equipment is in a standby state.
When a user terminal wants to acquire a target resource, a target resource acquisition request is sent to an equipment load node, after a second receiving module 501 in the equipment load node receives the target resource acquisition request, a determining module 502 determines node information of an equipment cache node where the target resource is located according to the target resource acquisition request, wherein the node information mainly comprises an IP (Internet protocol) address or an MAC (media access control) address and the like of the equipment cache node, and after the node information of the equipment cache node is acquired, the node information is sent to the user terminal by a second sending module 503, so that the user can access the corresponding equipment cache node according to the node information to acquire the target resource.
Since the storage space of the intelligent audio-visual device is limited, the device load node cannot know the cache positions of all the target resources, and the device cache node cannot cache all the target resources, the structural schematic diagram of the target resource providing apparatus may also be as shown in fig. 6, after receiving the target resource acquisition request, the device load node first detects, by the second detection module 504, whether the description information of the target resource requested in the target resource acquisition request is stored in its own information table, such as the size of the target resource stored in the device cache node; if the description information of the target resource is stored, the determining module 502 determines the node information of the device cache node where the target resource is located according to the description information of the target resource, and sends the node information to the user terminal; when the description information of the target resource is not saved, in order to update the resource, the second sending module 503 sends the target resource obtaining request to the central load node.
When receiving a target resource acquisition request sent by an equipment load node, a central load node sends synchronization information to the equipment load node, wherein the synchronization information at least comprises description information of a target resource corresponding to the target resource acquisition request and server information of a central cache server storing the target resource; after receiving the synchronization information, the second receiving module 501 instructs, through the instructing module 505, the predetermined device cache node to obtain the target resource from the corresponding central cache server according to the synchronization information and cache the target resource, so as to complete the update of the resource; finally, the storage module 506 stores the description information of the target resource and the node information of the cache node of the predetermined device. Preferably, when the device load node selects a predetermined device cache node for caching the target resource, the device load node may determine the size of the target resource, the network condition of the device cache node, and the storage size.
In the embodiment, the intelligent audition device in the standby state in the network is used as a load or a cache node, and the distributed cache service is constructed by the video network data in the network space by using relatively idle network resources, storage resources and computing resources, so that the network distance between the service provider and the user is reduced, the service efficiency and the network resource utilization rate of the CDN are improved, the cost of network expansion is reduced, the risk resistance of the CDN is improved, and the problem of large-area service failure caused by regional network faults is prevented.
A fifth embodiment of the present invention provides a storage medium having stored thereon a computer program for implementing a target resource acquisition method, the computer program, when executed by a processor, implementing the steps of:
s51, sending a target resource acquisition request to the equipment load node;
s52, receiving node information of the device cache node determined by the device load node according to the target resource acquisition request;
s53, according to the node information, sending a target resource acquisition request to the equipment cache node;
and S54, the receiving equipment cache node acquires the target resource sent by the request according to the target resource.
In this embodiment, the storage medium may be installed in a user terminal, and is mainly applied to the terminal to acquire a required target resource. Since the target resource obtaining method has been described in detail in the first embodiment, details are not described in this embodiment.
A sixth embodiment of the present invention provides a storage medium having stored thereon a computer program for implementing a target resource providing method, the computer program, when executed by a processor, implementing the steps of:
s61, receiving a target resource acquisition request sent by the terminal;
s62, determining node information of the device cache node where the target resource is located according to the target resource obtaining request;
and S63, sending the node information to the terminal.
In this embodiment, the storage medium may be installed in the device load node, and is mainly applied to provide the target resource required by the terminal acquisition. Since the target resource providing method has been described in detail in the second embodiment, details are not described in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
A seventh embodiment of the present invention provides a computer apparatus including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program realizing the following method steps when executed by the processor:
s71, sending a target resource acquisition request to the equipment load node;
s72, receiving node information of the device cache node determined by the device load node according to the target resource acquisition request;
s73, according to the node information, sending a target resource acquisition request to the equipment cache node;
and S74, the receiving equipment cache node acquires the target resource sent by the request according to the target resource.
In this embodiment, the computer device may be a terminal used by a user. Since the target resource obtaining method has been described in detail in the first embodiment, details are not described in this embodiment.
A seventh embodiment of the present invention provides a computer apparatus including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program realizing the following method steps when executed by the processor:
s81, receiving a target resource acquisition request sent by the terminal;
s82, determining node information of the device cache node where the target resource is located according to the target resource obtaining request;
and S83, sending the node information to the terminal.
In this embodiment, the computer device may be an intelligent audiovisual device used as a device load node. Since the target resource providing method has been described in detail in the first embodiment, details are not described in this embodiment.
The above embodiment is illustrated from a single operation execution subject side, and the following describes the solution of the embodiment of the present invention in more detail with reference to specific drawings and a specific interaction process of multiple subjects. It should be noted that the numerous technical details disclosed below are provided to explain the present invention and are not intended to limit the present invention solely.
Fig. 7 is a schematic diagram of a CDN network structure using an intelligent audio-visual device as a node, where a solid line in the diagram is connected to a connection mode of an original CDN network structure, each cache node is connected only to a CDN central load node, and a user first sends a target resource acquisition request to the central load node when acquiring a resource; the dotted line in the figure is connected with an improved CDN network structure, the improved network structure is additionally provided with intelligent audio-visual equipment load nodes on the original basis, and when a user acquires resources, a target resource acquisition request can be sent to the intelligent audio-visual equipment load nodes, so that the utilization rate of intelligent audio-visual equipment in the network is ensured, and the reliability of the whole CDN network is improved.
Fig. 8 is a schematic flowchart of a process for a user to obtain a target resource, which includes the following specific steps:
s1, the user sends a request through the terminal to request to obtain the target resource;
s2, the intelligent audio-visual equipment load node obtains the request sent by the terminal;
s3, the intelligent audio-visual equipment load node judges whether the intelligent audio-visual equipment load node contains the description information of the target resource, if yes, the step S4 is executed, and if not, the step S5 is executed;
s4, feeding back the node information of the intelligent audio-visual equipment cache node with the target resource cached to the terminal, sending a request to the intelligent audio-visual equipment cache node by the terminal to acquire the target resource, and ending the process;
s5, the intelligent audio-visual equipment load node sends a request to the central load node to obtain the target resource;
s6, the central load node updates the resource information of the intelligent audio-visual equipment load node and the cache server information stored with the target resource;
and S7, the intelligent audio-visual equipment load node indicates the intelligent audio-visual equipment cache node to acquire the target resource from the cache server in which the target resource is stored and cache the target resource in the intelligent audio-visual equipment cache node, and the process is finished.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.

Claims (12)

1. A target resource obtaining method is applied to sending end equipment and is characterized by comprising the following steps:
sending a target resource acquisition request to an equipment load node;
receiving node information of an equipment cache node determined by the equipment load node according to the target resource acquisition request;
sending the target resource acquisition request to the equipment cache node according to the node information;
receiving a target resource sent by the equipment cache node according to the target resource acquisition request;
the equipment load node is the equipment load node closest to the sending end equipment;
after sending the target resource acquisition request to the device load node, the method further includes:
detecting whether the node information sent by the equipment load node is received;
under the condition of receiving the node information, sending the target resource acquisition request to the equipment cache node according to the node information;
and sending the target resource acquisition request to a central load node under the condition that the node information is not received.
2. The method for target resource acquisition of claim 1, wherein after sending the target resource acquisition request to a central load node, further comprising:
receiving server information of a central cache server sent by the central load node;
sending the target resource acquisition request to the central cache server according to the server information;
and receiving the target resource sent by the central cache server.
3. A target resource providing method is applied to receiving end equipment, and is characterized by comprising the following steps:
receiving a target resource acquisition request sent by a terminal;
determining node information of an equipment cache node where the target resource is located according to the target resource acquisition request;
sending the node information to the terminal;
after receiving the target resource acquisition request sent by the terminal, the method further includes:
detecting whether the description information of the target resource requested in the target resource acquisition request is stored;
under the condition that the description information of the target resource is stored, determining node information of a device cache node where the target resource is located according to the description information of the target resource;
and sending the target resource acquisition request to a central load node under the condition that the description information of the target resource is not stored.
4. The method for providing target resources of claim 3, wherein after sending the target resource acquisition request to a central load node, further comprising:
receiving synchronization information sent by the central load node, wherein the synchronization information at least comprises: the description information of the target resource and the server information of the central cache server;
instructing a cache node of the preset equipment to acquire and cache the target resource from the central cache server according to the synchronization information;
and storing the description information of the target resource and the node information of the cache node of the predetermined equipment.
5. A target resource acquisition apparatus, comprising:
the first sending module is used for sending a target resource obtaining request to the equipment load node;
a first receiving module, configured to receive node information of an equipment cache node determined by the equipment load node according to the target resource acquisition request;
the first sending module is further configured to send the target resource obtaining request to the device cache node according to the node information;
the first receiving module is further configured to receive a target resource sent by the device cache node according to the target resource acquisition request;
the equipment load node is the equipment load node closest to the target resource acquisition device;
further comprising:
a first detection module, configured to detect whether the node information sent by the device load node is received;
under the condition of receiving the node information, the first sending module is further configured to send the target resource obtaining request to the device cache node according to the node information;
and under the condition that the node information is not received, the first sending module is further used for sending the target resource obtaining request to a central load node.
6. The apparatus according to claim 5, wherein in a case that the node information is not received, the first receiving module is further configured to receive server information of a central cache server sent by the central load node;
the first sending module is further configured to send the target resource acquisition request to the central cache server according to the server information;
the first receiving module is further configured to receive the target resource sent by the central cache server.
7. A target resource providing apparatus, comprising:
the second receiving module is used for receiving a target resource obtaining request sent by the terminal;
the determining module is used for determining node information of the equipment cache node where the target resource is located according to the target resource obtaining request;
the second sending module is used for sending the node information to the terminal;
further comprising:
a second detection module, configured to detect whether description information of the target resource requested in the target resource acquisition request is stored;
under the condition that the description information of the target resource is stored, the determining module is specifically configured to determine node information of a device cache node where the target resource is located according to the description information of the target resource;
and the second sending module is further configured to send the target resource acquisition request to a central load node under the condition that the description information of the target resource is not stored.
8. The target resource provisioning apparatus of claim 7 further comprising:
under the condition that the description information of the target resource is not stored, the second receiving module is further configured to receive synchronization information sent by the central load node, where the synchronization information at least includes: the description information of the target resource and the server information of the central cache server;
the indicating module is used for indicating a cache node of the preset equipment to acquire and cache the target resource from the central cache server according to the synchronization information;
and the storage module is used for storing the description information of the target resource and the node information of the cache node of the preset equipment.
9. A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of claims 1 to 2.
10. A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of claims 3 to 4.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 2 when executing the program.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 3 to 4 when executing the program.
CN201810359065.3A 2018-04-20 2018-04-20 Target resource obtaining and providing method and device, storage medium and computer equipment Active CN108737500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810359065.3A CN108737500B (en) 2018-04-20 2018-04-20 Target resource obtaining and providing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810359065.3A CN108737500B (en) 2018-04-20 2018-04-20 Target resource obtaining and providing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN108737500A CN108737500A (en) 2018-11-02
CN108737500B true CN108737500B (en) 2022-02-25

Family

ID=63939141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810359065.3A Active CN108737500B (en) 2018-04-20 2018-04-20 Target resource obtaining and providing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN108737500B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278490B (en) * 2019-05-08 2022-03-18 苏宁智能终端有限公司 Traffic sharing method and system for intelligent terminal
CN110321252B (en) * 2019-07-02 2022-02-08 思必驰科技股份有限公司 Skill service resource scheduling method and device
CN110769072A (en) * 2019-10-31 2020-02-07 北京达佳互联信息技术有限公司 Multimedia resource acquisition method, device and storage medium
CN111092956A (en) * 2019-12-25 2020-05-01 南京甄视智能科技有限公司 Resource synchronization method, device, storage medium and equipment
CN113709761B (en) * 2020-05-20 2023-12-12 清华大学 Content distribution method, system, device and storage medium based on dynamic position
CN113824750B (en) * 2020-06-19 2023-04-18 网宿科技股份有限公司 Data transmission method and data transmission system
CN112422342B (en) * 2020-11-18 2023-04-07 中国联合网络通信集团有限公司 Method and device for acquiring service data
CN116208556A (en) * 2021-11-30 2023-06-02 中兴通讯股份有限公司 Flow balancing method, electronic device, and computer-readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252588A (en) * 2008-02-22 2008-08-27 蓝汛网络科技(北京)有限公司 Apparatus, system and method for distributing stream medium content
CN103731398A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN103731404A (en) * 2012-10-12 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN104320410A (en) * 2014-11-11 2015-01-28 南京优速网络科技有限公司 All-service CDN system based on HTTP and working method thereof
CN104717304A (en) * 2015-03-31 2015-06-17 北京科技大学 CDN-P2P (Content Distribution Network-Peer-to-Peer) content optimizing selecting system
CN104756467A (en) * 2012-11-01 2015-07-01 微软公司 CDN traffic management in the cloud
CN107277092A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 Content distributing network and its data download method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8782236B1 (en) * 2009-06-16 2014-07-15 Amazon Technologies, Inc. Managing resources using resource expiration data
CN105227535B (en) * 2014-07-01 2019-12-06 思科技术公司 Apparatus and method for edge caching and client devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252588A (en) * 2008-02-22 2008-08-27 蓝汛网络科技(北京)有限公司 Apparatus, system and method for distributing stream medium content
CN103731398A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN103731404A (en) * 2012-10-12 2014-04-16 北京百度网讯科技有限公司 Data access method, system and device based on CDN
CN104756467A (en) * 2012-11-01 2015-07-01 微软公司 CDN traffic management in the cloud
CN104320410A (en) * 2014-11-11 2015-01-28 南京优速网络科技有限公司 All-service CDN system based on HTTP and working method thereof
CN104717304A (en) * 2015-03-31 2015-06-17 北京科技大学 CDN-P2P (Content Distribution Network-Peer-to-Peer) content optimizing selecting system
CN107277092A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 Content distributing network and its data download method

Also Published As

Publication number Publication date
CN108737500A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108737500B (en) Target resource obtaining and providing method and device, storage medium and computer equipment
US9912421B2 (en) Broadcast seeding for peer-to-peer networks
US9608957B2 (en) Request routing using network computing components
US20190044935A1 (en) System And Method For Providing A Content Delivery Network Via A Motor Vehicle
JP5325978B2 (en) Content map distribution system and method usable in a plurality of receivers
WO2017028779A1 (en) Configuration method and apparatus for internet of things protocol conversion function, nonvolatile computer storage medium and electronic device
CN101156407B (en) Method for supplying content through communication network
US8458342B2 (en) Method and apparatus resolving ENUM data collisions
CN110944220B (en) Video screen projection playing method, device, equipment and system
CN104185036A (en) Video file source returning method and device
CN101873354B (en) Method of data synchronization in a kind of interactive television and system
CN103312593B (en) A kind of message distributing system and method
CN104469394A (en) Video resource acquiring method, background server, video client and system
CN110392119B (en) Data transmission method and base station
CN113630457B (en) Task scheduling method and device, computer equipment and storage medium
US20150381721A1 (en) System and method for transferring and synchronizing content between electronic devices
CN102439946A (en) Data transmission method and device
US8996607B1 (en) Identity-based casting of network addresses
CN101958934B (en) Electronic program guide incremental content synchronization method, device and system
CN113873302B (en) Content distribution method, content distribution device, storage medium and electronic equipment
CN104602047A (en) Share method of EPG (error pattern generator) data, server, terminal and system
CN110677489B (en) Media resource processing method, device, system and storage medium
CN113934916A (en) CDN service implementation method, terminal device, node server and storage medium
CN110267107A (en) A kind of software upgrade package method for down loading, system and storage medium
CN112351109A (en) Accessory processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant