WO2018184491A1 - 资源获取方法、装置及系统 - Google Patents
资源获取方法、装置及系统 Download PDFInfo
- Publication number
- WO2018184491A1 WO2018184491A1 PCT/CN2018/080763 CN2018080763W WO2018184491A1 WO 2018184491 A1 WO2018184491 A1 WO 2018184491A1 CN 2018080763 W CN2018080763 W CN 2018080763W WO 2018184491 A1 WO2018184491 A1 WO 2018184491A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- edge node
- resource
- node
- target resource
- identifier
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0278—Traffic management, e.g. flow control or congestion control using buffer status reports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/26—Resource reservation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/20—Control channels or signalling for resource management
- H04W72/27—Control channels or signalling for resource management between access points
Definitions
- the present application relates to the field of wireless communications, and in particular, to a resource acquisition method, apparatus, and system.
- the mobile communication network is mainly divided into two parts: a radio access network and a core network.
- the radio access network mainly includes at least one base station, and the core network mainly includes a gateway device.
- LTE Long-Term Evolution
- the at least one base station can communicate with the gateway device through the S1 interface, and any two of the at least one base station can communicate through the X2 interface.
- the gateway device may forward the resource acquisition request to the source site of the resource to be acquired to obtain resources from the source site.
- the base station receives the resource acquisition request, it needs to forward the resource acquisition request to the gateway device once, which causes the bandwidth of the S1 interface to be consumed.
- the gateway device When the terminal obtains the resource from the source site, the resource acquisition request is transmitted to the source site and waits for the round trip time (RTT) of the source site to respond to the resource acquisition request. Therefore, in order to reduce the terminal acquiring resources
- RTT round trip time
- the edge node can be deployed by bypass or serial connection for each base station, and the central node can be deployed by the gateway device by bypass or serial connection.
- the resource acquisition request may be sent to the edge node deployed in the base station that is in the area where the terminal is located, where the resource acquisition request carries the identifier of the requested resource.
- the edge node receives the resource acquisition request, the edge corresponding to the identifier may be searched from the local cache. If the resource corresponding to the identifier exists in the local cache of the edge node, the resource may be sent to the terminal. If the resource corresponding to the identifier does not exist in the local cache of the edge node, the edge node may request the central node or the source node to obtain the resource corresponding to the identifier, and increase the heat information such as the number of requests for the resource corresponding to the identifier.
- the edge node may obtain the obtained resource after obtaining the resource from the central node or the source site.
- the resource is sent to the terminal, and the obtained resource can also be stored in the local cache.
- each edge node separately counts the heat information requesting the same resource, and caches the resource locally when the heat information of the resource meets the preset cache condition, therefore, although through the gateway device to the central node or The hot information sent by the source station for requesting the same resource satisfies the preset cache condition, but for an edge node, the hot information of the same resource may not meet the preset cache condition, and the edge node does not use the resource. Cache to local. Therefore, when the terminal sends a resource acquisition request to the edge node, the edge node still needs to continuously obtain the resource from the central node or the source station through the S1 interface, and does not reduce the bandwidth consumption of the S1 interface.
- the present application provides a resource acquisition method, device and system.
- the technical solution is as follows:
- a first aspect provides a resource acquisition method, where the method is applied to a scenario where a first base station and a second base station access an external network by using the same gateway device, where the first edge node is deployed on the first base station.
- a second edge node is deployed on the second base station, and the method includes:
- the first edge node receives the first resource acquisition request sent by the second edge node, where the first resource acquisition request carries the resource identifier of the first target resource;
- the first target resource When the first target resource needs to be cached, the first target resource is obtained from a central node deployed in the gateway device or a source site of the first target resource; the first target resource is cached, and Transmitting the first target resource to the second edge node.
- the resource identifier is used to uniquely identify a resource, and the resource identifier may be an address of the resource, a name of the resource, and the like.
- the second edge node may be any edge node other than the first edge node deployed in the base station that accesses the external network through the gateway device.
- the external network is relative to the location of the gateway device, and all base stations connected to the gateway device and all terminals connected to these base stations constitute an internal network. Any base station or terminal in the internal network needs to communicate with devices in the external network through the gateway device.
- the shared heat information of the first target resource may be stored in the form of a corresponding relationship with the resource identifier of the first target resource, or may be stored in the form of a cache queue with the resource identifier of the first target resource.
- the shared heat information of the first target resource may also be stored in other forms.
- the shared heat information of the first target resource may be specifically received by the first edge node from an edge node (including the first edge node itself) deployed in a base station accessing the external network by using the gateway device.
- the number of acquisition requests for the first target resource is determined. When the number of times the request is obtained is greater than the preset number of times threshold, it is determined that the first target resource needs to be cached; otherwise, it is not required.
- the shared heat information of the first target resource may also be an edge node (including the first edge node) deployed by the first edge node from a base station accessing the external network through the gateway device in a preset time period.
- the number of times the received request for the first target resource is received for example, the number of times the request is acquired in the T-day is forwarded based on the current time, and when the number of times the acquired request is greater than the preset number of times, the determination is performed.
- the first target resource needs to be cached; otherwise, it is not needed.
- the first edge node when the first edge node receives the first resource acquisition request sent by the second edge node, and the first target resource is not cached locally, the first edge node may pass the shared heat information of the first target resource. Determine if you need to cache the first target resource. Since the shared heat information of the first target resource is determined by the number of times the first edge node receives the acquisition request for the first target resource from the edge edge node and other edge nodes, that is, the first edge The node may count the request for acquiring the first target resource sent by any edge node, thereby improving the heat of the first target resource in the first edge node. The shared heat information is used to determine whether the first target information needs to be cached, and the speed at which the first edge node caches the first target resource is accelerated.
- the method further includes:
- first prompt information Sending, to the second edge node, first prompt information, where the first prompt information is used to prompt the second edge node from the central node or the first
- the first target resource is obtained in a source site of the target resource.
- the first edge node does not need to cache the first target resource requested by the second edge node
- obtaining the first target resource by the second edge node itself to the central node or the source site of the first target resource may be avoided by the first
- the edge node de-centering node or the source site of the first target resource acquires the first target resource, and then forwards to the second edge node to cause a delay increase problem.
- the method after receiving the first resource acquisition request sent by the second edge node, the method further includes:
- the first edge node is used to share the first target resource with other edge nodes, other edge nodes (other than the first edge node deployed in the base station accessing the external network through the gateway device)
- the first resource acquisition request for the first target resource may be sent to the first edge node, so
- the first edge node caches the speed of the first target resource from the source node of the central node or the first target resource, and may further update the first target resource after receiving the first resource acquisition request sent by the second edge node by the first edge node.
- the shared heat information for example, each time an acquisition request is received, the heat corresponding to the resource is increased by one time.
- the method further includes:
- the first edge node receives the second resource acquisition request sent by the terminal, the second resource acquisition request carries the resource identifier of the second target resource, and determines that the second target resource corresponding to the resource identifier of the second target resource is not cached locally. Determining, according to the resource identifier of the second target resource and the stored hash table, a node identifier of the third edge node; wherein the hash table is included in a base station that accesses the external network through the gateway device a mapping relationship between the node identifier of the edge node and the corresponding hash value;
- the node identifier is used to uniquely identify a corresponding edge node, and the node identifier may be an Internet Protocol (IP) address, a media access control (MAC) address, or the like of the edge node. .
- IP Internet Protocol
- MAC media access control
- the first edge node when the first edge node receives the second resource acquisition request sent by the terminal, if the second target resource is not cached in the first edge node, the first edge node may be based on the second target resource.
- the resource identifier and the stored hash table determine the node identifier of the third edge node, and send a second resource acquisition request to the third edge node to obtain the second target resource from the third edge node, thereby eliminating the need to the central node or the
- the source site of the second target resource sends a second resource acquisition request, which reduces the bandwidth consumption of the interface between the base station and the gateway device.
- the determining, by the resource identifier and the stored hash table of the second target resource, the node identifier of the third edge node including:
- the hash value of the node identifier of the edge node deployed in the base station that accesses the external network through the gateway device may constitute a hash ring. Therefore, the logical distance recently refers to the edge in the hash ring. The ring is closest to the clockwise distance or counterclockwise along the ring in the hash ring.
- the first edge node determines the logic with the first hash value from the hash value of the node identifier of the edge node deployed in the base station that accesses the external network through the gateway device.
- the position of the first hash value in the hash ring may be determined first, and then the position of the first hash value in the hash ring is used as a starting point to determine the hash ring.
- the hash value adjacent to the first hash value in the clockwise direction is the hash value closest to the logical distance of the first hash value.
- the resources corresponding to the same resource identifier can be made to be the corresponding shared processing node by the same edge node, which ensures consistency and ensures load balancing, and avoids an edge node as the corresponding resource. Share the performance pressure of processing nodes.
- the method before determining the node identifier of the third edge node based on the resource identifier of the second target resource and the stored hash table, the method further includes:
- the hash table delivered by the deployment center node is received.
- the mapping relationship between the node identifier of the edge node and the corresponding hash value is included in the hash table.
- the gateway device can know any new base station accessing the gateway in real time and exiting the base station connected to the gateway. Therefore, generating a hash table by the central node on the gateway ensures that the hash table is updated in time.
- the method further includes:
- the first edge node acquires the second target resource from a source node of the central node or the second target resource;
- the first edge node may also obtain the second target resource from the source node of the central node or the second target resource, thereby ensuring the network coverage of the first edge node.
- the terminal that requests the acquisition of the second target resource can acquire the second target resource, which improves the reliability of the terminal acquiring the second target resource.
- a second aspect provides a resource acquisition method, where the method is applied to a scenario where a first base station and a second base station access an external network through a same gateway device, where a first edge node is deployed on the first base station.
- a second edge node is deployed on the second base station, and the method includes:
- the second edge node receives the first resource acquisition request sent by the terminal, where the first resource acquisition request carries the resource identifier of the first target resource;
- Determining, by the second edge node, that the first target resource is not cached locally determining, according to the resource identifier of the first target resource and the stored hash table, a node identifier of the first edge node, and to the first edge
- the first edge node corresponding to the node identifier of the node sends the first resource acquisition request, where the hash table includes the node identifier of the edge node deployed in the base station that accesses the external network by using the gateway device, and the corresponding The mapping relationship between the Greek values;
- the first edge node receives the first resource acquisition request, and determines that the first target resource corresponding to the resource identifier of the first target resource is not cached locally;
- the first edge node Determining, by the first edge node, whether the first target resource needs to be cached based on the shared heat information of the first target resource, where the shared heat information of the first target resource is from the edge node by the first edge node And determining, by the other edge nodes, the number of acquisition requests for the first target resource, where the other edge nodes are included in the base station that accesses the external network through the gateway device, except the first edge node Any edge node outside;
- the first edge node When the first edge node needs to cache the first target resource, send the first resource acquisition request to a central node deployed in the gateway device or a source site of the first target resource;
- the source node or the source site of the first target resource receives the first resource acquisition request, acquires a first target resource corresponding to the resource identifier of the first target resource, and sends the first target resource to The first edge node;
- the second edge node receives the first target resource sent by the first edge node, and sends the first target resource to the terminal.
- the method before determining the node identifier of the first edge node based on the resource identifier of the first target resource and the stored hash table, the method further includes:
- the central node performs a hash operation on the node identifiers of the multiple edge nodes to obtain a hash value of the node identifier of each edge node;
- the central node establishes a mapping relationship between a node identifier of an edge node deployed in a base station that accesses the external network by using the gateway device and a corresponding hash value, obtains the hash table, and obtains the hash
- the table is sent to an edge node deployed in a base station that accesses the external network through the gateway device.
- the central node may hash the node identifier of the edge node deployed in the base station that accesses the external network through the gateway device by using any hash algorithm, and the hash algorithm may be murmur. , CRC32, Adler32, etc.
- the hash algorithm may be murmur. , CRC32, Adler32, etc.
- the node identifier is added with a sequence number, and the node identifier with the sequence number is hashed to obtain multiple hash values corresponding to the node identifier.
- the central node performs preprocessing on the node identifier of multiple edge nodes (edge nodes deployed in the base station that accesses the external network through the gateway device), and obtains a hash table, because the hash
- the table includes the mapping relationship between the node identifiers of the multiple edge nodes and the corresponding hash values, so that the edge nodes can subsequently obtain the shared resources from other edge nodes that can share resources according to the hash table, without
- the edge device obtains the resource from the source node of the central node or the resource through the gateway device, thereby reducing the bandwidth consumption of the interface between the base station and the gateway device.
- a resource acquisition apparatus having a function of implementing the behavior of the resource acquisition method in the first aspect.
- the resource obtaining apparatus includes at least one module, and the at least one module is configured to implement the resource acquiring method provided by the foregoing first aspect.
- a resource acquisition system in a fourth aspect, is provided, and the resource acquisition system has a function of implementing the behavior of the resource acquisition method in the second aspect.
- the resource acquisition system includes at least one device, and the at least one device is configured to implement the resource acquisition method provided by the second aspect.
- a resource acquisition apparatus configured to store a program that supports the resource acquisition apparatus to perform the resource acquisition method provided by the first aspect, And storing data involved in implementing the resource acquisition method provided by the above first aspect.
- the processor is configured to execute a program stored in the memory.
- the operating device of the storage device may further include a communication bus for establishing a connection between the processor and the memory.
- a computer readable storage medium is provided, the instructions being stored in the computer readable storage medium, when executed on a computer, causing the computer to perform the resource acquisition method described in the first aspect above.
- a computer program product comprising instructions for causing a computer to perform the resource acquisition method of the first aspect described above when executed on a computer is provided.
- the first An edge node may determine whether the first target resource needs to be cached by using the shared heat information of the first target resource. Since the shared heat information of the first target resource is determined by the number of times the first edge node receives the acquisition request for the first target resource from the edge edge node and other edge nodes, thereby improving the first target resource The heat in the first edge node. The shared heat information is used to determine whether the first target information needs to be cached, and the speed at which the first edge node caches the first target resource is accelerated.
- the second edge node since the second edge node can obtain the first target resource from the first edge node, the second edge node does not need to send the first resource acquisition request to the central node or the source site of the first target resource through the gateway device, thereby reducing the Bandwidth consumption of the interface between the base station and the gateway device.
- FIG. 1A is a schematic diagram of an edge node deployment architecture according to an embodiment of the present invention.
- FIG. 1B is a schematic structural diagram of a resource acquisition system according to an embodiment of the present invention.
- FIG. 2 is a schematic structural diagram of a network device according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a method for determining a hash table by a central node according to an embodiment of the present invention
- FIG. 4 is a flowchart of a method for acquiring a first resource according to an embodiment of the present invention
- FIG. 5 is a flowchart of a second resource acquisition method according to an embodiment of the present invention.
- FIG. 6 is a flowchart of a third resource acquisition method according to an embodiment of the present invention.
- FIG. 7A is a schematic structural diagram of a first resource acquiring apparatus according to an embodiment of the present invention.
- FIG. 7B is a schematic structural diagram of a second resource acquiring apparatus according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a resource acquisition system according to an embodiment of the present invention.
- FIG. 1B is a schematic diagram of a resource acquisition system architecture according to an embodiment of the present invention.
- the system architecture includes a gateway device 1, a source station 2, and multiple base stations that access the external network through the gateway device 1.
- Each of the plurality of base stations provides an access service for a plurality of terminals in the coverage area, and the plurality of base stations can communicate with each other.
- an LTE network architecture is used as an example, and any of the multiple base stations is used.
- the two base stations can communicate through the X2 interface.
- each of the multiple base stations can also communicate with the gateway device 1 and continue to use the LTE network architecture as an example.
- Each base station can communicate with the gateway device through the S1 interface.
- the number of base stations under the same gateway device and the number of terminals in the coverage of each base station are not limited.
- three base stations and one base station under each base station are taken as an example for description.
- the three base stations are a base station 31, a base station 32, and a base station 33, respectively.
- the base station 31 corresponds to the terminal A
- the base station 32 corresponds to the terminal B
- the base station 33 corresponds to the terminal C.
- An edge node is deployed on each of the plurality of base stations, and the edge node may be deployed on the base station by means of a bypass or a serial connection, or the edge node may be a functional module in the base station, in the embodiment of the present invention.
- the deployment method of edge nodes is not limited.
- a central node is deployed in the gateway device 1.
- the central node may be deployed on the gateway device 1 by way of bypass or serial connection, or may be a functional module in the gateway device 1.
- the source site in the network is used to store resource content, and provides a resource download service for an edge node or a central node in the network.
- Each of the edge nodes may include a shared processing node determining module and a shared processing module
- the central node 4 may include a central node preprocessing module.
- the central node pre-processing module may perform a hash operation on the node identifiers of the multiple edge nodes, obtain a hash value corresponding to the node identifiers of the multiple edge nodes, and establish a node identifier and corresponding to the multiple edge nodes.
- the mapping relationship between the hash values thereby forming a hash table, and then sending the hash table to the plurality of edge nodes, so that the plurality of edge nodes store the hash table.
- the shared processing module may process the resource acquisition request sent by the terminal or other edge node, for example, when receiving the resource acquisition request sent by the terminal, update the heat information of the resource requested by the terminal; or receive other edges. When the resource acquisition request sent by the node is updated, the shared heat information of the resource requested by the other edge node is updated.
- the sharing processing module may further obtain the target resource from the central node or the source site of the target resource when the target resource meets the cache condition when the target resource meets the cache condition according to the request to obtain the shared heat information of the target resource. Cache.
- the target resource can be any resource.
- the shared processing node determining module may perform a hash operation on the resource identifier of the target resource by performing a hash operation on the resource identifier of the target resource, and obtain a hash value of the resource identifier, and pass the hash value and the central node of the resource identifier.
- the hash table sent determines the shared processing node identifier corresponding to the resource identifier.
- the edge node may forward the resource acquisition request to the determined shared processing node to obtain the resource corresponding to the resource identifier.
- any one of the plurality of edge nodes can process the resource acquisition request sent by the other edge node through the shared processing module, that is, the edge node can receive the request for acquiring the target resource sent by the other edge node.
- the shared processing module can update the shared heat information of the resources requested by the other edge nodes, thereby improving the heat of the target resource in the edge node.
- the shared processing module may further determine, by using the shared heat information, whether the target resource needs to be cached, and speed up the edge node to cache the target resource.
- the shared processing node determining module included in the edge node may determine the shared processing node identifier corresponding to the resource identifier by using the hash value of the resource identifier and the hash table sent by the central node, and identify the shared processing node identifier from the shared processing node.
- the resource corresponding to the resource identifier is obtained by the corresponding edge node, and the edge node does not need to obtain the resource from the source node of the central node or the resource through the gateway device, thereby reducing the interface between the base station and the gateway device. Bandwidth consumption.
- FIG. 2 is a schematic structural diagram of a network device according to an embodiment of the present invention.
- the resource acquisition system in FIG. 1B can be implemented by the network device shown in FIG. 2.
- the network device includes at least one processor 201, a communication bus 202, a memory 203, and at least one communication interface 204.
- the processor 201 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present application. integrated circuit.
- CPU general purpose central processing unit
- ASIC application-specific integrated circuit
- Communication bus 202 can include a path for communicating information between the components described above.
- the memory 203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM), or other information that can store information and instructions.
- ROM read-only memory
- RAM random access memory
- Type of dynamic storage device or Electro Scientific Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc Storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being Any other medium accessed by the computer, but is not limited thereto.
- Memory 203 may be present independently and coupled to processor 201 via communication bus 202.
- the memory 203 can also be integrated with the processor 201.
- the communication interface 204 uses devices such as any transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
- devices such as any transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
- the communication interface can receive the resource acquisition request sent by the terminal and other edge nodes, and the communication interface can also send the stored resources to other edge nodes or terminals.
- processor 201 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG.
- the network device can include multiple processors, such as processor 201 and processor 205 shown in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
- a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
- the processor 201 is a processor of an edge node
- the processor can process a resource acquisition request sent by a terminal or other edge node.
- the network device may further include an output device 206 and an input device 207.
- Output device 206 is in communication with processor 201 and can display information in a variety of ways.
- the output device 206 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector.
- Input device 207 is in communication with processor 201 and can receive user input in a variety of ways.
- input device 207 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
- the above network device may be a general network device or a dedicated network device.
- the network device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet, a wireless terminal device, a communication device, or an embedded device.
- PDA personal digital assistant
- the embodiment of the invention does not limit the type of the network device.
- the memory 203 is used to store program code for executing the solution of the present application, and is controlled by the processor 201 for execution.
- the processor 201 is configured to execute the program code 208 stored in the memory 203.
- One or more software modules may be included in the program code 208 (for example, when the memory 203 is a memory in an edge node, the software module included in the program code 208 may be a shared processing node determining module 2081, a shared processing module 2082, etc. ).
- the processor 201 is configured to execute the application code stored in the memory 203 to implement the logical function of the edge node in FIG. 1B.
- the shared processing node determining module 2081 is configured to determine, after obtaining the local uncached target resource, the resource identifier of the target resource by using the resource obtaining request, and determining the edge node identifier that shares the target resource (that is, the sharing processing corresponding to the target resource) The identifier of the node), and the target resource is obtained from the edge node corresponding to the determined edge node identifier.
- the sharing processing module 2082 is configured to update the heat information of the target resource requested by the terminal, or to update the shared heat information of the target resource requested by the other edge node, and the heat information or the shared heat information of the target resource satisfies the cache condition. , cache target resources.
- the hash table stored in the edge node is obtained by the central node by establishing a mapping relationship between the node identifier of the multiple edge nodes and the corresponding hash value.
- the operation of determining a hash table for the central node and transmitting the hash table to each edge node will be described below with reference to FIG. 3, which specifically includes the following steps.
- Step 301 The central node performs a hash operation on the node identifiers of the multiple edge nodes to obtain a hash value corresponding to the node identifier of each edge node.
- the multiple edge nodes include edge nodes deployed in a base station that accesses the external network through the gateway device.
- the node identifier is used to uniquely identify a corresponding edge node, and the node identifier may be an IP address, a MAC address, or the like of the edge node.
- the central node may identify the node identifiers of multiple edge nodes accessing the external network through the gateway device before the system shown in FIG. 1B is online, or when the number of base stations accessing the external network through the same gateway device changes.
- a hash operation is performed to obtain a hash value of the node identifier of each edge node.
- the central node hashes the node identifiers "192.168.1.2”, “192.168.1.10”, and "192.168.1.46” respectively, and obtains the hash value of "192.168.1.2” as "Jkdsaf832e2qfdwq", "192.168.1.10
- the hash value of "" is 023kjdsf8232kdjs
- the hash value of "192.168.1.46" is "Uh932dkawf32ndsa”.
- the central node may hash the node identifiers of the multiple edge nodes by using any hash algorithm, and the hash algorithm may be murmur, CRC32, Adler32, and the like.
- the hash algorithm may be murmur, CRC32, Adler32, and the like.
- the node identifier of each edge node is added with a sequence number, and the node identifier with the sequence number is hashed to obtain multiple hash values corresponding to the node identifier.
- the central node can select the most suitable hashing algorithm according to the resource characteristics, and the related art can be referred to.
- Step 302 The central node establishes a mapping relationship between the node identifiers of the multiple edge nodes and the corresponding hash values, and obtains a hash table.
- the central node gets the hash value of "192.168.1.2” as “Jkdsaf832e2qfdwq”
- the hash value of "192.168.1.10” is “023kjdsf8232kdjs”
- the hash value of "192.168.1.46” is "Uh932dkawf32ndsa”
- the central node The mapping relationship between the established node identifiers and the corresponding hash values can be as shown in Table 1.
- Step 303 The central node sends the hash table to the plurality of edge nodes.
- Step 304 Each of the plurality of edge nodes receives and stores a hash table sent by the central node.
- the node identifier of the multiple edge nodes is hashed to establish the hash.
- the hash table that is, the hash table received by the multiple edge nodes may be determined by the central node when the number of base stations changes. Before this, any of the multiple edge nodes may already be stored. A hash table sent by the central node. Therefore, when any one of the plurality of edge nodes receives the hash table sent by the central node again, the previously stored hash table can be replaced with the hash table received this time.
- first edge node and the second edge node are taken as an example of the plurality of edge nodes, and the embodiments of the present invention are not limited.
- any one of the plurality of edge nodes can not only share resources with other edge nodes, but also Resources shared by other edge nodes can be obtained from other edge nodes.
- the central node obtains a hash table by preprocessing a plurality of edge nodes, and the mapping relationship between the node identifiers of the plurality of edge nodes and the corresponding hash values in the hash table is Convenient for the edge node to subsequently obtain the shared resource from other edge nodes capable of sharing the resource according to the hash table, without acquiring the resource from the source node of the central node or the resource through the gateway device each time the edge node acquires the resource Resources, thereby reducing the bandwidth consumption of the interface between the base station and the gateway device.
- any one of the plurality of edge nodes may receive the resource acquisition request sent by the other edge node and share with other edge nodes.
- Resources The first edge node receives the resource acquisition request sent by the second edge node and shares the resource with the second edge node as an example for description.
- the first edge node is an edge node deployed on the first base station, and the second edge node is an edge node deployed on the second base station, and the first base station and the second base station access the external network through the same gateway device.
- a method for obtaining a resource includes:
- Step 401 The first edge node receives the first resource acquisition request sent by the second edge node, where the first resource acquisition request carries the resource identifier of the first target resource.
- the first edge node receives the first resource acquisition sent by the second edge node, because the first edge node receives the first resource node in the form of a data packet.
- the data packet may be parsed to obtain the resource identifier of the first target resource carried in the first resource acquisition request.
- the operation of the first edge node to parse the data packet may be referred to the related art.
- the resource identifier is used to uniquely identify the first target resource, and the resource identifier may be an address of the first target resource, a name of the first target resource, and the like.
- the second edge node may be any one of the plurality of edge nodes.
- the first resource acquisition request may be sent to the second edge node for the terminal in the network coverage of the second base station, and when the first target resource is not cached in the second edge node, the second edge node A resource acquisition request is sent to the first edge node.
- Step 402 The first edge node determines that the first target resource corresponding to the resource identifier of the first target resource is not cached locally.
- the first edge node may locally search for the corresponding first target resource based on the resource identifier of the first target resource, and determine that the first target resource is not cached locally when the first target resource is not found. When the first target resource is found, it is determined that the local cache has the first target resource.
- whether to cache a resource is determined according to the access heat information of the resource.
- the heat information of a resource is higher than a threshold, the resource is cached; otherwise, the resource is not cached. Therefore, the first edge node determines that the first target resource corresponding to the resource identifier of the first target resource is not cached locally, and the first edge node may further query the sharing of the first target resource based on the resource identifier of the first target resource. The heat information, and determining whether the first target resource is cached locally according to the shared heat information of the first target resource.
- Step 403 The first edge node determines, according to the shared heat information of the first target resource, whether the first target resource needs to be cached, and the shared heat information of the first target resource is received by the first edge node from the edge edge node and other edge nodes. Determining, for the number of times the first target resource acquisition request is reached, wherein the other edge node includes any edge node other than the first edge node deployed in a base station accessing the external network by the gateway device .
- the first edge node may determine whether the shared heat information of the first target resource meets the first cache condition, and when the shared heat information of the first target resource meets the first cache condition, determine that the first target resource needs to be cached; When the shared heat information of the first target resource does not satisfy the first cache condition, it is determined that the first target resource does not need to be cached.
- the shared heat information of the first target resource is determined by the number of times the first edge node receives the first target resource acquisition request from the edge edge node and other edge nodes. Therefore, the first cache condition is different according to the shared heat information of the first target resource.
- the first cache condition may be that the target resource is The number of times of the request is greater than or equal to the first preset number of times threshold; when the shared heat information of the first target resource includes the request frequency determined according to the number of times the target resource is requested, the first buffer condition may be that the request frequency is greater than or equal to the preset frequency Threshold.
- the operation of determining the request frequency according to the number of times the target resource is requested may be: determining the number of times the first target resource is requested in the preset time period, and dividing the number of times the target resource is requested by the duration of the preset time period, Get the frequency of the request.
- the first preset number threshold may be set in advance.
- the first preset number threshold may be 20 times, 25 times, and the like.
- the preset frequency threshold may also be set in advance.
- the preset frequency threshold may be 5 times/hour, 10 times/hour, and the like.
- the preset time period may be set in advance.
- the preset time period is that the current time is forwarded to the T day as a time period, and for example, the preset time period may be the system online time shown in FIG. 1B. The period of time until the time when the first resource acquisition request is currently received.
- step 402 and step 403 one possible example is that when a resource is requested more than or equal to N times, the edge node determines that the node needs to be cached.
- step 402 and step 403 may be implemented by the same operation.
- the first edge node acquires the first target resource according to the resource identifier of the first target resource.
- the shared cache heat is determined whether the shared cache heat of the first target resource is N.
- the shared heat information is N, it can be determined that the first edge node has the shared heat information of the first target resource before the current access is N-1, which is less than N, so the first target resource is not cached locally; If the shared heat information of a target resource has reached N times, it may be determined that the first target resource needs to be cached.
- the first edge node may send the first prompt information to the second edge node, where the first prompt information is used to prompt the second edge node from the central node or the first target resource. Get the first target resource in the source site.
- the second edge node may send a first resource acquisition request to the central node or the source site of the first target resource, when the central node or the first node
- the source site of the target resource may acquire the first target resource corresponding to the resource identifier of the first target resource, and send the first target resource to the second edge node
- the first target resource may be sent to the network coverage that is currently in the second base station and used to send the first resource. Get the requested terminal.
- the first edge node indicates that the second edge node directly returns to the source (requesting the first target resource to the central node or the source site of the first target resource), so as to avoid The delay caused by returning the source via the first edge node and then returning the first target resource to the second edge node increases.
- Step 404 When the first target resource needs to be cached, obtain the first target resource from the central node deployed in the gateway device or the source site of the first target resource; cache the first target resource, and the first target The resource is sent to the second edge node.
- the first edge node may send a first resource acquisition request to the central node or the source site of the first target resource.
- the source node of the central node or the first target resource acquires the first target resource corresponding to the resource identifier of the first target resource, and sends the first target resource to the first edge node.
- the first edge node receives the first target resource sent by the central node or the source site of the first target resource, caches the first target resource, and sends the first target resource to the second edge node.
- the first edge node when the first edge node receives the first resource acquisition request sent by the second edge node, and the first target resource is not cached locally, the first edge node may pass the shared heat information of the first target resource. Determine if you need to cache the first target resource.
- the first edge node can receive more information because the shared heat information of the first target resource is determined by the number of times that all edge nodes deployed in the base station accessing the external network through the gateway device access the first target resource.
- the request for acquiring the first target resource sent by any one of the edge nodes increases the shared heat information of the first target resource in the first edge node.
- determining whether the first target information needs to be cached by using the shared heat information accelerates the speed at which the first edge node caches the first target resource.
- the first edge node can not only share resources with other edge nodes according to the method shown in FIG. 4, of course, the first edge node can also obtain resources shared by other edge nodes from other edge nodes, and at this time, the first edge node is from other
- the specific operations include the following steps.
- Step 501 The first edge node receives the second resource acquisition request sent by the terminal, where the second resource acquisition request carries the resource identifier of the second target resource.
- the terminal refers to any terminal that is currently in the network coverage of the first base station.
- Step 502 The first edge node determines that the second target resource corresponding to the resource identifier of the second target resource is not locally cached.
- step 502 For the specific operation of the step 502, reference may be made to the specific operation of the foregoing step 402, which is not described in detail in the embodiment of the present invention.
- Step 503 The first edge node determines, according to the resource identifier of the second target resource and the stored hash table, the identifier of the shared processing node corresponding to the second target resource, for example, may be the node identifier of the third edge node, where The third edge node identifier may be any one of the plurality of edge nodes.
- the first edge node performs a hash operation on the resource identifier of the second target resource to obtain a first hash value, and determines a logical distance from the first hash value from the hash values of the node identifiers of the multiple edge nodes.
- the second hash value of the most recent; the node identifier corresponding to the second hash value is obtained from the hash table, and the obtained node identifier is determined as the node identifier of the third edge node.
- the first edge node determines a second hash value that is logically closest to the first hash value from the hash values of the node identifiers of the plurality of edge nodes
- the first hash value may be determined to be in the hash ring.
- the location in Taking the position of the first hash value in the hash ring as a starting point, determining a hash value of the hash ring adjacent to the first hash value in the clockwise direction is determined as the logic corresponding to the first hash value.
- the nearest second hash value is determined as the logic corresponding to the first hash value.
- the first edge node may perform a hash operation on the resource identifier ID1 of the second target resource to obtain a hash value akdsaf123ae2qfdwq corresponding to the resource identifier.
- the hash value closest to the logical value of the hash value corresponding to the resource identifier is Jkdsaf832e2qfdwq from the hash value of the node identifier of the plurality of edge nodes
- the hash value based on the logical distance may be from the above table. In the hash table shown in FIG.
- the node identifier corresponding to the hash value closest to the logical distance is 192.168.1.2
- the obtained node identifier is determined as the shared processing node corresponding to the resource identifier, that is, in this embodiment.
- the node ID of the third edge node is 192.168.1.2
- Step 504 The first edge node sends a second resource acquisition request to the third edge node corresponding to the node identifier of the third edge node.
- the third edge node may send the second prompt information to the first edge node, where the second prompt information is used to prompt the first edge node from the center.
- the second target resource is obtained in the source site of the node or the second target resource.
- the second target resource corresponding to the resource identifier of the second target resource may be acquired, and the second target resource is sent to the first edge node.
- the first edge node receives the second target resource sent by the source node or the source site of the second target resource, the second target resource is sent to the network coverage that is currently in the first base station and is used to send the second resource. The requested terminal.
- the first edge node when the first edge node receives the second resource acquisition request sent by the terminal, if the second target resource is not cached in the first edge node, the first edge node may be based on the second target resource.
- the resource identifier and the stored hash table determine the node identifier of the third edge node, and send a second resource acquisition request to the third edge node to acquire the second target resource from the third edge node, thereby eliminating the need for the gateway device to the center
- the source station of the node or the second target resource sends a second resource acquisition request, which reduces the bandwidth consumption of the interface between the base station and the gateway device.
- any one of the multiple edge nodes can share resources with other edge nodes, and can acquire resources that other edge nodes can share from other edge nodes. Therefore, the hotness information about the resource requested by the terminal may be stored in the plurality of edge nodes, and the shared heat information of the resource requested by the other edge node (including itself) may be stored. Wherein, when the first edge node is an edge node that shares resources with other edge nodes, any one of the other edge nodes may send the first edge node to the first edge node when the first target resource is not found locally.
- the shared heat information of the first target resource may also be updated, as follows.
- the manner in which the shared information of the first target resource is stored may include multiple modes, and different storage modes correspond to different update modes. Therefore, the manner in which the first edge node updates the shared information of the first target resource may also include multiple. The method is described in the following two ways.
- the first edge node may determine, according to the resource identifier of the first target resource, the shared heat information corresponding to the resource identifier of the first target resource from the corresponding relationship between the stored resource identifier and the shared heat information, and the first target resource The shared heat information corresponding to the resource identifier is updated.
- the sharing is performed.
- the popularity information may include the number of times requested, and the like.
- the update operation of the first edge node to the shared heat information of the first target resource may be an increase of the number of requests for the first target resource, and the increase of the number of requests may be Increase by one at a time.
- the shared heat information includes the requested number of times
- the correspondence between the resource identifier and the shared heat information is as shown in Table 2
- the first edge node receives the first resource acquisition request sent by the second edge node.
- the first edge node may be based on the resource identifier of the first target resource, and between the resource identifier and the shared heat information shown in Table 2 below, when the resource identifier of the first target resource in the first resource acquisition request is Content_sign_1
- it is determined that the number of requests corresponding to the current resource identifier is 9 times, and 1 is added on the basis of the number of requests 9 times to complete the update of the shared heat information of the first target resource.
- the shared hotness information in the shared cache queue may be updated based on the resource identifier of the first target resource, and then the shared cache queue is reordered, so that the resource identifier of the hottest resource is located at the forefront of the shared cache queue.
- the first edge node may also delete the resource identifier and the corresponding shared heat information at the end of the shared cache queue. .
- the shared cache queue may be a shared cache queue based on any cache update algorithm.
- the cache update algorithm may be a least frequently used (Least Frequently Used, LFU) algorithm, first in first out (FIFO). Algorithm, Least Recently Used (LRU) algorithm.
- the shared cache queue may further include a cache address link of the cached local resource.
- the cache address link can be a file path. Therefore, when the first edge node searches for the corresponding first target resource in the local area, it may determine, according to the resource identifier of the first target resource, whether the cache address link corresponding to the resource identifier of the first target resource exists in the shared cache queue, When the cache address link does not exist, it is determined that the first target resource is not cached locally. When the cache address link exists, it is determined that the local cache has the first target resource.
- the first edge node determines that the first target resource is cached locally, the first edge node may obtain the first target resource locally according to the cache address link, and send the first target resource to The second edge node.
- the second edge node receives the first target resource, the first target resource may be sent to the terminal.
- the first edge node can also receive the second resource acquisition request sent by the terminal, and store the heat information of the resource requested by the terminal. Therefore, the resource identifier of the resource requested by the terminal and the heat information can also be in a corresponding relationship.
- the form is stored in the form of a cache queue.
- the edge node caches the resource to the local only when the heat information of a certain resource meets the preset cache condition. Therefore, when the first edge node requests the acquired resource of the terminal, The resource identifier and the heat information are stored in the form of a cache queue, and when the second resource acquisition request sent by the terminal is received, in order to facilitate the subsequent terminal to quickly obtain the requested resource directly from the first edge node, the first edge The node can record each resource acquisition request sent by the received terminal. That is, after the first edge node receives the second resource acquisition request sent by the terminal currently in the network coverage of the first base station, the heat information of the second target resource at the first edge node may be updated.
- the corresponding heat information in the local cache queue may be updated based on the resource identifier of the second target resource, and then the local cache queue is reordered.
- the resource identifier of the hottest resource is located at the top of the local cache queue.
- the local cache queue and the shared cache queue of the first edge node may include the same resource identifier.
- the resource identifier of the resource recorded in the shared cache queue is shared.
- the hotness information must be greater than the hotness information of the resource identifier of the resource recorded in the local cache queue. Therefore, when the shared heat information of the resource identifier of the resource recorded in the shared cache queue satisfies the first cache condition, the first edge node This resource can be cached.
- the hot information of the resource identifier of the resource recorded in the local cache queue satisfies the condition that can be cached, the resource is already cached in the first edge node. In this case, in order to save the storage space of the first edge node, The resource is then cached, and the cached address link for the resource is stored in the local cache queue.
- FIG. 6 is a schematic diagram of a resource acquisition method according to an embodiment of the present invention. Referring to FIG. 6, the method includes the following steps.
- Step 601 The terminal sends a first resource acquisition request to the second edge node.
- the terminal refers to any terminal that is currently in the network coverage of the second base station, where the first resource acquisition request carries the resource identifier of the first target resource, and the second edge node is deployed on the edge of the second base station. node.
- Step 602 The second edge node receives the first resource acquisition request sent by the terminal.
- Step 603 When the second edge node determines that the first target resource is not cached locally, the node identifier of the first edge node is determined based on the resource identifier of the first target resource and the stored hash table.
- the second edge node may perform a hash operation on the resource identifier of the first target resource to obtain a hash value corresponding to the resource identifier, and determine the resource identifier from the hash value of the node identifier of the multiple edge nodes.
- the hash value of the corresponding hash value is the nearest hash value; the node identifier corresponding to the most recent hash value is the shared processing node identifier corresponding to the resource identifier.
- the resource is assumed.
- the shared processing node identifier corresponding to the identifier is the first edge node identifier.
- the second edge node may directly send the first target resource to the terminal.
- step 602 may be referred to the specific operations of the foregoing step 503.
- Step 604 The second edge node sends a first resource acquisition request to the first edge node corresponding to the node identifier of the first edge node.
- Step 605 The first edge node receives the first resource acquisition request sent by the second edge node, and determines that the first target resource corresponding to the resource identifier of the first target resource is not cached locally.
- step 605 can refer to the specific operation of the foregoing step 402.
- Step 606 The first edge node determines, according to the shared heat information of the first target resource, whether the first target resource needs to be cached.
- step 606 may refer to the specific operation of the foregoing step 403, which is not repeatedly described in the embodiment of the present invention.
- Step 607 When the first edge node needs to cache the first target resource, send a first resource acquisition request to the source node deployed by the gateway device or the source site of the first target resource.
- step 607 may refer to the specific operation of the foregoing step 404, which is not repeatedly described in the embodiment of the present invention.
- Step 608 The source node of the first target resource or the source resource of the first target resource acquires the first target resource corresponding to the resource identifier of the first target resource.
- the central node may further send the first resource acquisition request to the first target resource.
- the source site corresponding to the resource identifier of the first target resource is obtained when the source site of the first target resource receives the first resource acquisition request.
- Step 609 The central node or the source site of the first target resource sends the first target resource to the first edge node.
- Step 610 The first edge node receives the first target resource sent by the source node or the source site of the first target resource, and caches the first target resource.
- Step 611 The first edge node sends the first target resource to the second edge node.
- Step 612 The second edge node receives the first target resource sent by the first edge node, and sends the first target resource to the terminal.
- the first target resource may be sent to the terminal that is currently in the network coverage of the second base station and used to send the first resource acquisition request, and directly A target resource is cached.
- the second edge node when the second edge node receives the first resource acquisition request sent by the terminal, if the first target resource is not cached in the second edge node, the second edge node may be based on the first target resource.
- the resource identifier and the stored hash table determine the node identifier of the first edge node, and send a first resource acquisition request to the first edge node to obtain the first target resource from the first edge node, thereby eliminating the need for the gateway device to the center
- the source station of the node or the first target resource sends a first resource acquisition request, which reduces bandwidth consumption of the interface between the base station and the gateway device.
- the first edge node may determine whether the cache needs to be cached by using the shared heat information of the first target resource.
- a target resource The first edge node is determined because the shared heat information of the first target resource is determined by the number of times the first edge node receives the acquisition request for the first target resource from the edge edge node and other edge nodes, that is, the first edge node
- the request for acquiring the first target resource sent by any one of the plurality of edge nodes may be received, thereby improving the heat of the first target resource in the first edge node.
- determining whether the first target information needs to be cached by using the shared heat information accelerates the speed at which the first edge node caches the first target resource.
- FIG. 7A is a schematic structural diagram of a resource obtaining apparatus according to an embodiment of the present invention, which is provided by the embodiment of the present invention.
- the structure of the resource acquiring apparatus is used to execute the foregoing FIG. 4 and FIG.
- the function of the resource acquisition method in the method embodiment includes: a receiving unit 701, a determining unit 702, and a sending unit 703.
- the receiving unit 701 is configured to perform the operations of step 401 in the foregoing embodiment of FIG. 4;
- a determining unit 702 configured to perform the operations of step 402 in the foregoing embodiment of FIG. 4;
- the determining unit 702 is further configured to perform the operations of step 403 in the foregoing embodiment of FIG. 4;
- the sending unit 703 is configured to perform the operations of step 404 in the foregoing embodiment of FIG. 4.
- the sending unit 703 is further configured to:
- the first prompt information is sent to the second edge node, where the first prompt information is used to prompt the second edge node to obtain the first target resource from the source node or the source site of the first target resource.
- the apparatus further includes:
- the updating unit 704 is configured to update the shared heat information of the first target resource.
- the receiving unit 701 is further configured to perform the operations of step 501 in the foregoing embodiment of FIG. 5;
- the determining unit 702 is further configured to perform the operations of step 502 and step 503 in the foregoing embodiment of FIG. 5;
- the sending unit 703 is further configured to perform the operations of step 504 in the foregoing embodiment of FIG. 5.
- the determining unit 702 is further configured to determine, according to the resource identifier of the second target resource and the stored hash table, the node identifier of the third edge node, specifically:
- the receiving unit 701 is further configured to:
- the sending unit 703 is further configured to:
- the second edge node when the second edge node receives the first resource acquisition request sent by the terminal, if the first target resource is not cached in the second edge node, the second edge node may be based on the first target resource.
- the resource identifier and the stored hash table determine the node identifier of the first edge node, and send a first resource acquisition request to the first edge node to obtain the first target resource from the first edge node, thereby eliminating the need for the gateway device to the center
- the source station of the node or the first target resource sends a first resource acquisition request, which reduces bandwidth consumption of the interface between the base station and the gateway device.
- the first edge node may determine whether the cache needs to be cached by using the shared heat information of the first target resource.
- a target resource Since the shared heat information of the first target resource is determined by the number of times the first edge node receives the acquisition request for the first target resource from the edge edge node and other edge nodes, that is, the first edge The node may receive a request for acquiring the first target resource sent by any one of the plurality of edge nodes, thereby improving the heat of the first target resource in the first edge node.
- determining whether the first target information needs to be cached by using the shared heat information accelerates the speed at which the first edge node caches the first target resource.
- the resource obtaining device is presented in the form of a functional unit.
- a "unit” herein may refer to an application-specific integrated circuit (ASIC), circuitry, a processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other functions that provide the functionality described above.
- ASIC application-specific integrated circuit
- the resource acquisition device can take the form shown in FIG.
- the receiving unit 701, the determining unit 702, the sending unit 703, and the updating unit 704 can be implemented by using the processor and the memory of FIG. 2, in particular, the receiving unit 701 and the updating unit 704 can execute the sharing processing module 2081 by the processor.
- the determining unit 702 and the transmitting unit 703 can be implemented by the shared processing node module 2082 being executed by the processor.
- FIG. 8 is a schematic structural diagram of a resource acquisition system according to the same inventive concept as described in the embodiment of the present invention.
- the structure of the resource acquisition system is used to implement the method shown in FIG. 6 .
- the function of the resource acquisition method in the example includes: a first edge node 801, a second edge node 802, and a central node 803 or a source site 804 of the first target resource;
- a second edge node 802 configured to perform step 601 in the foregoing embodiment of FIG. 6;
- the second edge node 802 is further configured to perform step 602 in the foregoing embodiment of FIG. 6;
- a first edge node 801, configured to perform step 603 in the foregoing embodiment of FIG. 6;
- the first edge node 801 is further configured to perform step 604 in the foregoing embodiment of FIG. 6;
- the first edge node 801 is further configured to perform step 605 in the foregoing embodiment of FIG. 6;
- the central node 803 or the source site 804 of the first target resource is used to perform step 806 in the foregoing embodiment of FIG. 6;
- the first edge node 801 is further configured to perform step 607 in the foregoing embodiment of FIG. 6;
- the second edge node 802 is further configured to perform step 608 in the foregoing embodiment of FIG.
- the central node 803 is further configured to perform the function of the hash table determining method in the method embodiment shown in FIG. 3, specifically:
- a mapping relationship between the node identifiers of the plurality of edge nodes and the corresponding hash values is established, the hash table is obtained, and the hash table is sent to the plurality of edge nodes.
- the second edge node when the second edge node receives the first resource acquisition request sent by the terminal, if the first edge resource is not cached in the second edge node, the second edge node may be based on The resource identifier of the first target resource and the stored hash table determine the node identifier of the first edge node, and send a first resource acquisition request to the first edge node to obtain the first target resource from the first edge node, thereby eliminating The first resource acquisition request is sent to the central node or the source site of the first target resource by the gateway device, which reduces the bandwidth consumption of the interface between the base station and the gateway device.
- the first edge node may determine whether the cache needs to be cached by using the shared heat information of the first target resource.
- a target resource Since the shared heat information of the first target resource is determined by the number of times the first edge node receives the acquisition request for the first target resource from the edge edge node and other edge nodes, that is, the first edge The node may receive a request for acquiring the first target resource sent by any one of the plurality of edge nodes, thereby improving the heat of the first target resource in the first edge node.
- determining whether the first target information needs to be cached by using the shared heat information accelerates the speed at which the first edge node caches the first target resource.
- the embodiment of the present invention further provides a computer storage medium for storing computer software instructions for implementing the resource obtaining apparatus shown in FIG. 7A, which includes a program designed to execute the foregoing method embodiment. By executing the stored program, it is possible to obtain the business data required to develop the application.
- embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
- the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
- the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种资源获取方法、装置及系统,属于无线通信领域。所述方法包括:当第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,因此,通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。同时,第二边缘节点直接从第一边缘节点中获取第一目标资源,无需与网关设备进行交互,从而降低了基站与网关设备之间接口的带宽消耗。
Description
本申请要求于2017年4月7日提交中国专利局、申请号为201710225277.8、发明名称为“资源获取方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及无线通信领域,特别涉及一种资源获取方法、装置及系统。
随着无线通信技术的发展,终端通过移动通信网络获取资源的需求日益增多。移动通信网络主要分为无线接入网和核心网两个部分,无线接入网主要包括至少一个基站,核心网主要包括网关设备。以长期演进(Long-Term Evolution,LTE)网络架构为例,该至少一个基站可以通过S1接口与网关设备通信,该至少一个基站中任意两个基站之间可以通过X2接口通信。当终端通过移动通信网络获取资源时,需要向覆盖其所在区域的基站发送资源获取请求,从而由基站将该资源获取请求通过S1接口转发至网关设备。该网关设备在接收到该资源获取请求后,可以将该资源获取请求转发至待获取的资源的源站点,以从该源站点中获取资源。
由于基站每接收一次资源获取请求,就需要向网关设备转发一次该资源获取请求,从而造成S1接口带宽的消耗。同时,由于终端从源站点中获取资源时,将资源获取请求传递到源站点并等待源站点响应该资源获取请求的往返时间(Round Trip Time,RTT)较长,因此,为了降低终端在获取资源时,消息传送的RTT和S1接口的带宽消耗,参见图1A,通常可以为每个基站通过旁路或串联的方式部署边缘节点,并为网关设备通过旁路或者串联的方式部署中心节点。当终端获取资源时,可以向覆盖其所在区域的基站中部署的边缘节点发送资源获取请求,该资源获取请求中携带所请求资源的标识。当该边缘节点接收到该资源获取请求时,可以从本地缓存中查找该标识对应的资源。若该边缘节点的本地缓存中存在该标识对应的资源,则可以将该资源发送至该终端。若该边缘节点的本地缓存中不存在该标识对应的资源,则该边缘节点可以向中心节点或源站点请求获取该标识对应的资源,并增加该标识对应的资源的请求次数等热度信息。如果增加后该标识对应的资源的热度信息满足预设缓存条件,比如请求次数大于预设次数阈值,则当该边缘节点从中心节点或源站点获取到该资源后,不仅可以将该获取到的资源发送至终端,还可以将获取到的资源存储在本地缓存中。
按照上述方法,每个边缘节点是分别统计请求同一资源的热度信息,并在该资源的热度信息满足预设缓存条件时才会将该资源缓存在本地,因此,尽管通过网关设备向中心节点或源站点发送的关于请求同一资源的热度信息满足预设缓存条件,但是对于某个边缘节点来说,统计的同一资源的热度信息可能还未满足预设缓存条件,该边缘节点不会将该资源缓存到本地。因此,当终端向该边缘节点发送资源获取请求时,该边缘节点仍然需要通 过S1接口不断从中心节点或源站点获取该资源,并未降低S1接口的带宽消耗。
发明内容
为了降低了基站与网关设备之间接口的带宽消耗,提高边缘节点缓存资源的速度,本申请提供了一种资源获取方法、装置及系统。所述技术方案如下:
第一方面,提供了一种资源获取方法,该方法应用于第一基站和第二基站通过同一网关设备接入外部网络的情形,其中,所述第一基站上部署有第一边缘节点,所述第二基站上部署有第二边缘节点,所述方法包括:
第一边缘节点接收第二边缘节点发送的第一资源获取请求,所述第一资源获取请求中携带第一目标资源的资源标识;
第一边缘节点确定本地没有缓存所述第一目标资源的资源标识对应的第一目标资源;
基于所述第一目标资源的共享热度信息,所述第一边缘节点确定是否需要缓存所述第一目标资源,所述第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点;
当需要缓存所述第一目标资源时,从部署在所述网关设备中的中心节点或所述第一目标资源的源站点中获取所述第一目标资源;缓存所述第一目标资源,并将所述第一目标资源发送至所述第二边缘节点。
另外,该资源标识用于唯一标识一个资源,且该资源标识可以是资源的地址、资源的名称等等。
需要说明的是,第二边缘节点可以为在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点。另外,外部网络是相对于网关设备的位置而言的,连接到该网关设备的所有基站以及连接到这些基站上的所有终端构成了内部网络。内部网络中的任一基站或者终端需要通过网关设备与外部网络中的设备进行通信。
其中,第一目标资源的共享热度信息可以与第一目标资源的资源标识以对应关系的形式进行存储,也可以与第一目标资源的资源标识以缓存队列的形式进行存储。当然,在实际应用中,第一目标资源的共享热度信息还可以以其他形式进行存储。
另外,所述第一目标资源的共享热度信息具体可以是由所述第一边缘节点从在通过所述网关设备接入外部网络的基站中部署的边缘节点(含第一边缘节点本身)接收到的针对第一目标资源的获取请求的次数确定。当获取请求的次数大于预设次数阈值的时候,则确定需要缓存所述第一目标资源;反之,则不需要。所述第一目标资源的共享热度信息也可以是在预设时间段内由所述第一边缘节点从在通过所述网关设备接入外部网络的基站中部署的边缘节点(含第一边缘节点本身)接收到的针对第一目标资源的获取请求的次数确定,例如以当前时间为准往前推T天内被获取请求的次数,当被获取请求的次数大于预设次数阈值的时候,则确定需要缓存所述第一目标资源;反之,则不需要。
在本发明实施例中,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求, 且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定的,也即是,第一边缘节点可以统计到任一边缘节点发送的获取第一目标资源的请求,从而提高了第一目标资源在第一边缘节点中的热度。通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。
在一种可能的实现方式中,所述基于所述第一目标资源的共享热度信息,确定是否需要缓存所述第一目标资源之后,还包括:
当不需要缓存所述第一目标资源时,向所述第二边缘节点发送第一提示信息,所述第一提示信息用于提示所述第二边缘节点从所述中心节点或所述第一目标资源的源站点中获取所述第一目标资源。
当第一边缘节点不需要缓存第二边缘节点请求的第一目标资源时,由第二边缘节点自身去中心节点或者第一目标资源的源站点中获取该第一目标资源,可以避免由第一边缘节点去中心节点或者第一目标资源的源站点中获取该第一目标资源,然后再转发给第二边缘节点导致的时延增加问题。
在一种可能的实现方式中,所述接收第二边缘节点发送的第一资源获取请求之后,还包括:
更新所述第一目标资源的共享热度信息。
值得说明的是,由于第一边缘节点用于向其他边缘节点共享第一目标资源,其他边缘节点(在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点)中的任何一个边缘节点在其本地中未获取到第一目标资源时,都可能会向第一边缘节点发送关于第一目标资源的第一资源获取请求,因此,为了加快第一边缘节点从中心节点或第一目标资源的源站点缓存第一目标资源的速度,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求之后,还可以更新第一目标资源的共享热度信息,例如,每接收到一次获取请求,则该资源对应的热度增加1次。
在一种可能的实现方式中,所述方法还包括:
第一边缘节点接收终端发送的第二资源获取请求,所述第二资源获取请求中携带第二目标资源的资源标识;确定本地没有缓存所述第二目标资源的资源标识对应的第二目标资源;基于所述第二目标资源的资源标识和存储的哈希表,确定第三边缘节点的节点标识;其中所述哈希表中包括在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系;
向所述第三边缘节点的节点标识对应的第三边缘节点发送所述第二资源获取请求。
需要说明的是,节点标识用于唯一标识对应的边缘节点,该节点标识可以为该边缘节点的网际协议(Internet Protocol,IP)地址、媒体接入控制((Media Access Control,MAC)地址等等。
在本发明实施例中,由于第一边缘节点在接收到终端发送的第二资源获取请求时,如果第一边缘节点中没有缓存第二目标资源,则第一边缘节点可以基于第二目标资源的资源标识和存储的哈希表确定第三边缘节点的节点标识,并向第三边缘节点发送第二资源获取 请求,以从第三边缘节点中获取第二目标资源,从而无需向中心节点或第二目标资源的源站点发送第二资源获取请求,降低了基站与网关设备之间接口的带宽消耗。
在一种可能的实现方式中,所述基于所述第二目标资源的资源标识和存储的哈希表,确定第三边缘节点的节点标识,包括:
对所述第二目标资源的资源标识进行哈希运算,得到第一哈希值;
从所述在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识的哈希值中确定与所述第一哈希值逻辑距离最近的第二哈希值;
从所述哈希表中获取与所述第二哈希值对应的节点标识,并将获取的节点标识确定为所述第三边缘节点的节点标识。
其中,由于该在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识的哈希值可以构成一个哈希环,因此,该逻辑距离最近指的是在哈希环中沿着环顺时针距离最近或者在哈希环中沿着环逆时针距离最近。
例如,在一种可能的实现方式中,第一边缘节点从该在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识的哈希值中确定与第一哈希值逻辑距离最近的第二哈希值时,可以先确定第一哈希值在哈希环中的位置,然后以第一哈希值在该哈希环中的位置为起点,确定在该哈希环的顺时针方向上与第一哈希值相邻的哈希值为与第一哈希值逻辑距离最近的哈希值。
通过哈希运算,可以使得相同的资源标识对应的资源,由相同的边缘节点来作为对应的共享处理节点,既保证了一致性,又保证了负载均衡,避免某一个边缘节点作为所有资源对应的共享处理节点带来的性能压力。
在一种可能的实现方式中,所述基于所述第二目标资源的资源标识和存储的哈希表,确定第三边缘节点的节点标识之前,还包括:
接收部署中心节点下发的所述哈希表。
在本发明实施例中,由于该哈希表中包括边缘节点的节点标识和对应的哈希值之间的映射关系。网关设备能够实时获知任何新接入到网关中的基站以及退出与网关连接的基站,因此由网关上的中心节点生成哈希表可以确保及时更新哈希表。
在一种可能的实现方式中,所述向所述第三边缘节点的节点标识对应的第三边缘节点发送所述第二资源获取请求之后,还包括:
当接收到所述第三边缘节点发送的第二提示信息时,向所述中心节点或所述第二目标资源的源站点发送所述第二资源获取请求,所述第二提示信息用于提示所述第一边缘节点从所述中心节点或所述第二目标资源的源站点中获取所述第二目标资源;
接收所述中心节点或所述第二目标资源的源站点发送的所述第二目标资源,并将所述第二目标资源发送至所述终端。
值得说明的是,由于该第二提示信息用于提示第一边缘节点从中心节点或第二目标资源的源站点中获取第二目标资源,因此,当该第一边缘节点从该第三边缘节点中未获取到该第二目标资源时,该第一边缘节点同样可以从中心节点或第二目标资源的源站点中获取该第二目标资源,从而保证了处于第一边缘节点的网络覆盖范围内且请求获取该第二目标资源的终端能够获取到第二目标资源,提高了终端获取第二目标资源的可靠性。
第二方面,提供了一种资源获取方法,该方法应用于第一基站和第二基站通过同一网关设备接入外部网络的情形,其中,所述第一基站上部署有第一边缘节点,所述第二基站上部署有第二边缘节点,所述方法包括:
第二边缘节点接收终端发送的第一资源获取请求,所述第一资源获取请求中携带第一目标资源的资源标识;
所述第二边缘节点确定本地没有缓存所述第一目标资源,基于所述第一目标资源的资源标识和存储的哈希表,确定第一边缘节点的节点标识,并向所述第一边缘节点的节点标识对应的第一边缘节点发送所述第一资源获取请求,所述哈希表中包括在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系;
所述第一边缘节点接收所述第一资源获取请求,确定本地没有缓存所述第一目标资源的资源标识对应的第一目标资源;
所述第一边缘节基于所述第一目标资源的共享热度信息,确定是否需要缓存所述第一目标资源,所述第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点;
当所述第一边缘节点需要缓存所述第一目标资源时,向部署在所述网关设备中的中心节点或所述第一目标资源的源站点发送所述第一资源获取请求;
所述中心节点或所述第一目标资源的源站点接收所述第一资源获取请求,获取所述第一目标资源的资源标识对应的第一目标资源,并将所述第一目标资源发送给所述第一边缘节点;
所述第一边缘节点接收所述中心节点或所述第一目标资源的源站点发送的所述第一目标资源,缓存所述第一目标资源,并将所述第一目标资源发送至所述第二边缘节点;
所述第二边缘节点接收所述第一边缘节点发送的所述第一目标资源,并将所述第一目标资源发送给所述终端。
在一种可能的实现方式中,所述基于所述第一目标资源的资源标识和存储的哈希表,确定第一边缘节点的节点标识之前,还包括:
所述中心节点对所述多个边缘节点的节点标识进行哈希运算,得到每个边缘节点的节点标识的哈希值;
所述中心节点建立在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系,得到所述哈希表,并将所述哈希表发送至在通过所述网关设备接入外部网络的基站中部署的边缘节点。
值得说明的是,该中心节点可以通过任一种哈希算法对该在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识进行哈希运算,该哈希算法可以为murmur、CRC32、Adler32等。当然在实际应用中,为了尽可能的使中心节点或源站点中的资源均匀分配到边缘节点进行处理,通常还可以根据该资源的特性选择最合适的哈希算法;或者为每个边缘节点的节点标识加上序号,并对带有序号的节点标识进行哈希运算,得到该节点 标识对应的多个哈希值。
在本发明实施例中,中心节点通过对多个边缘节点(在通过所述网关设备接入外部网络的基站中部署的边缘节点)的节点标识进行预处理,得到哈希表,由于该哈希表中包括多个边缘节点的节点标识和对应的哈希值之间的映射关系,方便了边缘节点后续可以根据该哈希表从能够共享资源的其他边缘节点中获取共享的资源,而无需在边缘节点每一次获取资源时都通过网关设备从中心节点或资源的源站点中获取该资源,从而降低了基站与网关设备之间接口的带宽消耗。
第三方面,提供了一种资源获取装置,所述资源获取装置具有实现上述第一方面中资源获取方法行为的功能。所述资源获取装置包括至少一个模块,该至少一个模块用于实现上述第一方面所提供的资源获取方法。
第四方面,提供了一种资源获取系统,所述资源获取系统具有实现上述第二方面中资源获取方法行为的功能。所述资源获取系统包括至少一个装置,该至少一个装置用于实现上述第二方面所提供的资源获取方法。
第五方面,提供了一种资源获取装置,所述资源获取装置的结构中包括处理器和存储器,所述存储器用于存储支持资源获取装置执行上述第一方面所提供的资源获取方法的程序,以及存储用于实现上述第一方面所提供的资源获取方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。
第六方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的资源获取方法。
第七方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的资源获取方法。
上述第二方面、第三方面、第四方面、第五方面、第六方面和第七方面所获得的技术效果与第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。
本申请提供的技术方案带来的有益效果是:在本发明实施例中,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,从而提高了第一目标资源在第一边缘节点中的热度。通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。同时,由于第二边缘节点可以从第一边缘节点中获取到第一目标资源,无需第二边缘节点通过网关设备向中心节点或第一目标资源的源站点发送第一资源获取请求,从而降低了基站与网关设备之间接口的带宽消耗。
图1A是本发明实施例提供的一种边缘节点部署架构示意图;
图1B是本发明实施例提供的一种资源获取系统架构示意图;
图2是本发明实施例提供的一种网络设备的结构示意图;
图3是本发明实施例提供的一种中心节点确定哈希表的方法流程图;
图4是本发明实施例提供的第一种资源获取方法的流程图;
图5是本发明实施例提供的第二种资源获取方法的流程图;
图6是本发明实施例提供的第三种资源获取方法的流程图;
图7A是本发明实施例提供的第一种资源获取装置结构示意图;
图7B是本发明实施例提供的第二种资源获取装置结构示意图;
图8是本发明实施例提供的一种资源获取系统的结构示意图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在对本发明实施例进行详细地解释说明之前,先对本发明实施例的系统架构予以介绍。图1B是本发明实施例提供的一种资源获取系统架构示意图,参见图1B,该系统架构包括网关设备1、源站点2、通过网关设备1接入外部网络的多个基站。其中,该多个基站中每个基站为其覆盖范围内的多个终端提供接入服务,且该多个基站之间可相互进行通信,例如以LTE网络架构为例,该多个基站中任意两个基站之间可以通过X2接口进行通信。另外,该多个基站中的每个基站还可以与网关设备1进行通信,继续以LTE网络架构为例,每个基站可以通过S1接口与网关设备进行通信。
在本发明实施例中并不对同一网关设备下的基站数量,及每个基站覆盖范围内的终端的数量进行限定。为了方便进行说明,本发明实施例的附图中以3个基站及每个基站下覆盖一个终端为例进行说明,参见图1B,该3个基站分别为基站31、基站32和基站33,且基站31对应终端A,基站32对应终端B,基站33对应终端C。
另外,由于相关技术中,终端获取资源时会增加消息传输的传输时延,如RTT,和S1接口的带宽消耗,因此,为了降低终端在请求资源时,消息传送的RTT和S1接口的带宽消耗,在该多个基站中的每个基站上都部署有边缘节点,且边缘节点可以通过旁路或串联的方式部署在基站上,或者边缘节点可以是基站内的一个功能模块,本发明实施例对于边缘节点的部署方式不做限定。另外,在网关设备1中部署有中心节点,同样的,该中心节点可以通过旁路或者串联的方式部署在网关设备1上,也可以是网关设备1内的一个功能模块。需要说明的是,网络中的源站点用于存储资源内容,并为网络中的边缘节点或者中心节点提供资源下载服务。网络中的源站点可能有多个,不同的资源可能对应不同的源站点,本发明实施例中对源站点的数量不做限制。
其中,每个边缘节点中可以包括共享处理节点判断模块和共享处理模块,该中心节点4中可以包括中心节点预处理模块。
其中,该中心节点预处理模块可以对该多个边缘节点的节点标识进行哈希运算,得到该多个边缘节点的节点标识对应的哈希值,并建立该多个边缘节点的节点标识和对应的哈希值之间的映射关系,从而构成哈希表,之后将该哈希表发送至该多个边缘节点,以便于 该多个边缘节点存储该哈希表。
该共享处理模块可以对终端或其他边缘节点发送的资源获取请求进行处理,比如,在接收到终端发送的资源获取请求时,对终端所请求的资源的热度信息进行更新;或者在接收到其他边缘节点发送的资源获取请求时,对其他边缘节点所请求的资源的共享热度信息进行更新等。另外,该共享处理模块还可以在根据请求获取目标资源的共享热度信息,确定该目标资源满足缓存条件时,从中心节点或该目标资源的源站点中获取该目标资源,将获取的目标资源进行缓存。其中,该目标资源可以为任一资源。
该共享处理节点判断模块可以在确定本地未缓存目标资源时,通过对该目标资源的资源标识进行哈希运算,得到该资源标识的哈希值,并通过该资源标识的哈希值和中心节点发送的哈希表,确定该资源标识对应的共享处理节点标识。接下来,该边缘节点即可以将资源获取请求转发给确定的共享处理节点,以获取该资源标识对应的资源。
由于多个边缘节点中的任一边缘节点可以通过共享处理模块对其他边缘节点发送的资源获取请求进行处理,也即是,该任一边缘节点可以接收到其他边缘节点发送的获取目标资源的请求,且该共享处理模块可以对其他边缘节点所请求的资源的共享热度信息进行更新,从而提高了目标资源在该边缘节点中的热度。另外,该共享处理模块还可以通过该共享热度信息确定是否需要对目标资源进行缓存,加快了该边缘节点缓存该目标资源的速度。再者,边缘节点中包括的共享该共享处理节点判断模块可以通过资源标识的哈希值和中心节点发送的哈希表,确定该资源标识对应的共享处理节点标识,并从该共享处理节点标识对应的边缘节点中获取该资源标识对应的资源,无需边缘节点每一次获取资源时,都通过网关设备从中心节点或资源的源站点中获取该资源,从而降低了基站与网关设备之间接口的带宽消耗。
图2是本发明实施例提供的一种网络设备的结构示意图。图1B中的资源获取系统可以通过图2所示的网络设备来实现。参见图2,该网络设备包括至少一个处理器201,通信总线202,存储器203以及至少一个通信接口204。
处理器201可以是一个通用中央处理器(Central Processing Unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信总线202可包括一通路,在上述组件之间传送信息。
存储器203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM))或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器203可以是独立存在,通过通信总线202与处理器201相连接。存储器203也可以和处理器201集成在一起。
通信接口204,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。比如,当该通信接口为边缘节点的通信接口时,该通信接口可以接收终端和其他边缘节点发送的资源获取请求,同时该通信接口还可以向其他边缘节点或终端发送存储的资源等。
在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,例如图2中所示的CPU0和CPU1。
在具体实现中,作为一种实施例,网络设备可以包括多个处理器,例如图2中所示的处理器201和处理器205。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。比如,当该处理器201为边缘节点的处理器时,该处理器可以对终端或其他边缘节点发送的资源获取请求进行处理。
在具体实现中,作为一种实施例,网络设备还可以包括输出设备206和输入设备207。输出设备206和处理器201通信,可以以多种方式来显示信息。例如,输出设备206可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备207和处理器201通信,可以以多种方式接收用户的输入。例如,输入设备207可以是鼠标、键盘、触摸屏设备或传感设备等。
上述的网络设备可以是一个通用网络设备或者是一个专用网络设备。在具体实现中,网络设备可以是台式机、便携式电脑、网络服务器、掌上电脑(Personal Digital Assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或者嵌入式设备。本发明实施例不限定网络设备的类型。
其中,存储器203用于存储执行本申请方案的程序代码,并由处理器201来控制执行。处理器201用于执行存储器203中存储的程序代码208。程序代码208中可以包括一个或多个软件模块(例如:当该存储器203为边缘节点中的存储器时,该程序代码208中包括的软件模块可以为共享处理节点判断模块2081、共享处理模块2082等)。处理器201用于执行存储器203中存储的应用程序代码,从而实现图1B中边缘节点的逻辑功能。其中,共享处理节点判断模块2081用于在确定本地未缓存目标资源时,通过资源获取请求获取到目标资源的资源标识后,确定共享该目标资源的边缘节点标识(即该目标资源对应的共享处理节点的标识),并从确定的边缘节点标识对应的边缘节点中获取该目标资源。共享处理模块2082用于对终端请求的目标资源的热度信息进行更新,或者用于对其他边缘节点请求的目标资源的共享热度信息进行更新,并且目标资源的热度信息或者共享热度信息满足缓存条件时,缓存目标资源。
通过上述描述可知,边缘节点中存储的哈希表是中心节点通过建立多个边缘节点的节点标识和对应的哈希值之间的映射关系得到。以下结合附图3,对中心节点确定哈希表,并将该哈希表发送至各个边缘节点的操作进行说明,具体包括如下步骤。
步骤301:中心节点对该多个边缘节点的节点标识进行哈希运算,得到每个边缘节点的节点标识对应的哈希值。
需要说明的是,该多个边缘节点包括在通过该网关设备接入外部网络的基站中部署的边缘节点。节点标识用于唯一标识对应的边缘节点,该节点标识可以为该边缘节点的IP地址、MAC地址等等。
其中,中心节点可以在图1B所示的系统上线之前,或者,在通过同一网关设备接入外部网络的基站数量发生变化时,对通过该网关设备接入外部网络的多个边缘节点的节点标识进行哈希运算,得到每个边缘节点的节点标识的哈希值。
比如,该中心节点对节点标识“192.168.1.2”、“192.168.1.10”和“192.168.1.46”分别进行哈希运算,得到“192.168.1.2”的哈希值为“Jkdsaf832e2qfdwq”,“192.168.1.10”的哈希值为“023kjdsf8232kdjs”,“192.168.1.46”的哈希值为“Uh932dkawf32ndsa”。
值得说明的是,该中心节点可以通过任一种哈希算法对该多个边缘节点的节点标识进行哈希运算,该哈希算法可以为murmur、CRC32、Adler32等。当然在实际应用中,为了尽可能的使中心节点或源站点中的资源均匀分配到边缘节点进行处理,通常还可以根据该资源的特性选择最合适的哈希算法。或者,为每个边缘节点的节点标识加上序号,并对带有序号的节点标识进行哈希运算,得到该节点标识对应的多个哈希值。
其中,中心节点根据该资源特性选择最合适的哈希算法可以参考相关技术,本发明实施例对此不再进行一一赘述。
步骤302:中心节点建立多个边缘节点的节点标识和对应的哈希值之间的映射关系,得到哈希表。
比如,中心节点得到“192.168.1.2”的哈希值为“Jkdsaf832e2qfdwq”,“192.168.1.10”的哈希值为“023kjdsf8232kdjs”,“192.168.1.46”的哈希值为“Uh932dkawf32ndsa”时,中心节点建立的各个节点标识和对应的哈希值之间的映射关系可以如表1所示。
表1
| 节点标识 | 哈希值 |
| 192.168.1.2 | Jkdsaf832e2qfdwq |
| 192.168.1.10 | 023kjdsf8232kdjs |
| 192.168.1.46 | Uh932dkawf32ndsa |
| …… | …… |
需要说明的是,在本发明实施例中仅以上述表1所示的哈希表为例进行解释说明,并不对本发明实施例构成具体限定。
步骤303:中心节点将该哈希表发送至该多个边缘节点。
步骤304:该多个边缘节点中的每个边缘节点接收并存储中心节点发送的哈希表。
由于中心节点可以在图1B所示的系统上线之前,或者,在通过同一网关设备接入外部网络的基站数量发生变化时,通过对多个边缘节点的节点标识进行哈希运算从而建立得到该哈希表,也即是,该多个边缘节点接收到的哈希表可能是中心节点在基站数量发生变化时确定的,在此之前,多个边缘节点中的任一边缘节点中可能已经存储有该中心节点发送的哈希表。因此,当多个边缘节点中的任一边缘节点再一次接收到中心节点发送的哈希表时,可以用本次接收的哈希表替换之前存储的哈希表。
另外,在附图3中仅以第一边缘节点和第二边缘节点作为该多个边缘节点为例进行说明,并不对本发明实施例构成限定。
值得说明的是,由于该多个边缘节点中的每个边缘节点都可以接收到该哈希表,因此,该多个边缘节点中的任一边缘节点不仅可以向其他边缘节点共享资源,同时也可以从其他边缘节点中获取其他边缘节点共享的资源。
在本发明实施例中,中心节点通过对多个边缘节点进行预处理,得到哈希表,由于该哈希表中包括多个边缘节点的节点标识和对应的哈希值之间的映射关系,方便了边缘节点后续可以根据该哈希表从能够共享资源的其他边缘节点中获取共享的资源,而无需在边缘节点每一次获取资源时都通过网关设备从中心节点或资源的源站点中获取该资源,从而降低了基站与网关设备之间接口的带宽消耗。
当该多个边缘节点中的每个边缘节点存储中心节点发送的哈希表之后,该多个边缘节点中的任一边缘节点便可以接收其他边缘节点发送的资源获取请求并向其他边缘节点共享资源。以第一边缘节点接收第二边缘节点发送的资源获取请求并向第二边缘节点共享资源为例进行说明。其中,第一边缘节点是部署在第一基站上的边缘节点,第二边缘节点是部署在第二基站上的边缘节点,该第一基站和该第二基站通过同一网关设备接入外部网络。参见图4,为本发明实施例提供的一种资源获取方法,该方法包括:
步骤401:第一边缘节点接收第二边缘节点发送的第一资源获取请求,该第一资源获取请求中携带第一目标资源的资源标识。
其中,由于在通常情况下第一资源获取请求是第二边缘节点以数据包的形式发送给第一边缘节点的,因此,当第一边缘节点接收到该第二边缘节点发送的第一资源获取请求后,可以将该数据包进行解析,从而获取第一资源获取请求中携带的第一目标资源的资源标识。
需要说明的是,第一边缘节点对该数据包进行解析的操作可以参考相关技术,本发明实施例对此不再进行一一赘述。
另外,该资源标识用于唯一标识第一目标资源,且该资源标识可以是第一目标资源的地址、第一目标资源的名称等等。
还需要说明的是,第二边缘节点可以为多个边缘节点中的任一边缘节点。另外,第一资源获取请求可以为处于第二基站的网络覆盖范围内的终端发送给第二边缘节点的,并在第二边缘节点中未缓存第一目标资源时,由第二边缘节点将第一资源获取请求发送给第一边缘节点。
步骤402:第一边缘节点确定本地没有缓存该第一目标资源的资源标识对应的第一目 标资源。
具体地,第一边缘节点可以基于该第一目标资源的资源标识,在本地查找对应的第一目标资源,当未查找到第一目标资源时,确定本地没有缓存第一目标资源。当查找到第一目标资源时,确定本地缓存有第一目标资源。
由于现有技术中CDN系统中,是否缓存一个资源是根据该资源的访问热度信息来确定的,当一个资源的热度信息高于一个阈值时,缓存该资源,反之,则不缓存该资源。因此,第一边缘节点确定本地没有缓存该第一目标资源的资源标识对应的第一目标资源,具体也可以是:第一边缘节点基于该第一目标资源的资源标识查询第一目标资源的共享热度信息,并根据第一目标资源的共享热度信息,确定本地是否缓存有第一目标资源。
步骤403:第一边缘节点基于第一目标资源的共享热度信息,确定是否需要缓存第一目标资源,第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对第一目标资源获取请求的次数确定,其中,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点。
具体地,第一边缘节点可以确定第一目标资源的共享热度信息是否满足第一缓存条件,当第一目标资源的共享热度信息满足第一缓存条件时,确定需要对第一目标资源进行缓存;当第一目标资源的共享热度信息不满足第一缓存条件时,确定不需要对第一目标资源进行缓存。
其中,由于第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对第一目标资源获取请求的次数确定。因此,根据第一目标资源的共享热度信息的不同,第一缓存条件也不同,比如,当第一目标资源的共享热度信息包括目标资源被请求的次数时,第一缓存条件可以为目标资源被请求的次数大于或等于第一预设次数阈值;当第一目标资源的共享热度信息包括根据目标资源被请求的次数确定的请求频率时,第一缓存条件可以为请求频率大于或等于预设频率阈值。其中,根据目标资源被请求的次数确定请求频率的操作可以为:确定第一目标资源在预设时间段内被请求的次数,用目标资源被请求的次数除以该预设时间段的时长,得到该请求频率。
需要说明的是,第一预设次数阈值可以事先设置,比如,第一预设次数阈值可以为20次、25次等等。该预设频率阈值同样可以事先设置,比如,该预设频率阈值可以为5次/小时、10次/小时等等。该预设时间段可以事先设置,比如,该预设时间段为以当前时间为准往前推T天为一个时间段,再比如,该预设时间段可以为图1B所示的系统上线时间至当前接收到第一资源获取请求的时间之间时间段。
关于步骤402和403,一个可能的示例是:当一个资源被请求的次数大于等于N次时,边缘节点确定需要缓存该节点。针对于步骤402和步骤403,一种可能的实施方式中,步骤402和步骤403可能是通过同一个操作实现的,例如,第一边缘节点根据第一目标资源的资源标识,获取第一目标资源的共享缓存热度,确定该第一目标资源的共享缓存热度是否为N。因为共享热度信息为N,所以可以确定第一边缘节点在本次访问之前第一目标资源的共享热度信息为N-1,小于N,因此本地没有缓存该第一目标资源;同时,由于该第一目标资源的共享热度信息已经达到N次,则可以确定需要缓存所述第一目标资源。
另外,当不需要对第一目标资源进行缓存时,第一边缘节点可以向第二边缘节点发送 第一提示信息,第一提示信息用于提示第二边缘节点从该中心节点或第一目标资源的源站点中获取第一目标资源。当第二边缘节点接收到第一边缘节点发送的第一提示信息时,第二边缘节点可以向该中心节点或第一目标资源的源站点发送第一资源获取请求,当该中心节点或第一目标资源的源站点接收到第二边缘节点发送的第一资源获取请求时,可以获取第一目标资源的资源标识对应的第一目标资源,并将第一目标资源发送至第二边缘节点;当第二边缘节点接收到该中心节点或第一目标资源的源站点发送的第一目标资源时,可以将第一目标资源发送至当前处于第二基站的网络覆盖范围内且用于发送第一资源获取请求的终端。
需要说明的是,当不需要缓存该第一目标资源时,第一边缘节点指示第二边缘节点直接回源(向中心节点或者第一目标资源的源站点请求第一目标资源),这样可以避免经由第一边缘节点回源,然后再将第一目标资源返回给第二边缘节点导致的时延增加。
步骤404:当需要缓存第一目标资源时,从部署在所述网关设备中的中心节点或该第一目标资源的源站点中获取第一目标资源;缓存第一目标资源,并将第一目标资源发送至第二边缘节点。
具体地,该第一边缘节点可以向中心节点或第一目标资源的源站点发送第一资源获取请求。中心节点或第一目标资源的源站点接收到第一资源获取请求时,获取第一目标资源的资源标识对应的第一目标资源,并将第一目标资源发送给第一边缘节点。第一边缘节点接收该中心节点或第一目标资源的源站点发送的第一目标资源,缓存第一目标资源,并将第一目标资源发送至第二边缘节点。
在本发明实施例中,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由该通过该网关设备接入外部网络的基站中部署的所有边缘节点访问第一目标资源的次数确定的,也即是,第一边缘节点可以接收到多个边缘节点中任一边缘节点发送的获取第一目标资源的请求,从而提高了第一目标资源在第一边缘节点中的共享热度信息。另外,通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。
第一边缘节点不仅可以按照图4所示的方法向其他边缘节点共享资源,当然,第一边缘节点也可以从其他边缘节点中获取其他边缘节点共享的资源,此时,第一边缘节点从其他边缘节点中获取共享的资源的操作可以参见图5,具体操作包括如下步骤。
步骤501:第一边缘节点接收终端发送的第二资源获取请求,该第二资源获取请求中携带第二目标资源的资源标识。
其中,该终端是指当前处于第一基站的网络覆盖范围内的任一终端。
步骤502:第一边缘节点确定本地没有缓存第二目标资源的资源标识对应的第二目标资源。
其中,步骤502的具体操作可以参考上述步骤402的具体操作,本发明实施例对此不再进行一一赘述。
步骤503:第一边缘节点基于第二目标资源的资源标识和存储的哈希表,确定该第二 目标资源对应的共享处理节点的标识,例如,可以是第三边缘节点的节点标识,其中,所述第三边缘节点标识可以是所述多个边缘节点中的任一个。
具体地,第一边缘节点对第二目标资源的资源标识进行哈希运算,得到第一哈希值;从该多个边缘节点的节点标识的哈希值中确定与第一哈希值逻辑距离最近的第二哈希值;从该哈希表中获取与第二哈希值对应的节点标识,并将获取的节点标识确定为该第三边缘节点的节点标识。
由于该多个边缘节点的哈希值可以构成一个哈希环,因此,该逻辑距离最近指的是在哈希环中位置最近。具体地,第一边缘节点从该多个边缘节点的节点标识的哈希值中确定与第一哈希值逻辑距离最近的第二哈希值时,可以确定第一哈希值在哈希环中的位置。以第一哈希值在该哈希环中的位置为起点,将该哈希环的顺时针方向上与第一哈希值相邻的哈希值,确定为该与第一哈希值逻辑距离最近的第二哈希值。
比如,第一边缘节点可以对第二目标资源的资源标识ID1进行哈希运算,得到该资源标识对应的哈希值akdsaf123ae2qfdwq。从该多个边缘节点的节点标识的哈希值中确定与该资源标识对应的哈希值逻辑距离最近的哈希值为Jkdsaf832e2qfdwq时,基于该逻辑距离最近的哈希值,可以从如上述表1所示的哈希表中,获取的与该逻辑距离最近的哈希值对应的节点标识为192.168.1.2,并将获取的节点标识确定为该资源标识对应共享处理节点,即本实施例中的第三边缘节点的节点标识。
步骤504:第一边缘节点向第三边缘节点的节点标识对应的第三边缘节点发送第二资源获取请求。
进一步地,当第一边缘节点向第三边缘节点的节点标识对应的第三边缘节点发送第二资源获取请求之后,由于第三边缘节可能在接收到第二资源获取请求时,确定本地没有缓存第二目标资源,且不需要对第二目标资源进行缓存,此时,该第三边缘节点可以向第一边缘节点发送第二提示信息,第二提示信息用于提示第一边缘节点从该中心节点或第二目标资源的源站点中获取第二目标资源。当第一边缘节点接收到第三边缘节点发送的第二提示信息时,可以向中心节点或第二目标资源的源站点发送第二资源获取请求。当中心节点或第二目标资源的源站点接收到第二资源获取请求时,可以获取第二目标资源的资源标识对应的第二目标资源,并向第一边缘节点发送第二目标资源。当第一边缘节点接收到中心节点或第二目标资源的源站点发送的第二目标资源时,将第二目标资源发送至当前处于第一基站的网络覆盖范围内且用于发送第二资源获取请求的终端。
在本发明实施例中,由于第一边缘节点在接收到终端发送的第二资源获取请求时,如果第一边缘节点中没有缓存第二目标资源,则第一边缘节点可以基于第二目标资源的资源标识和存储的哈希表确定第三边缘节点的节点标识,并向第三边缘节点发送第二资源获取请求,以从第三边缘节点中获取第二目标资源,从而无需通过网关设备向中心节点或第二目标资源的源站点发送第二资源获取请求,降低了基站与网关设备之间接口的带宽消耗。
需要说明的是,在本发明实施例中,由于多个边缘节点中的任一边缘节点既可以向其他边缘节点进行资源的共享,又可以从其他边缘节点中获取其他边缘节点能够共享的资源,因此,在该多个边缘节点中可以存储关于终端所请求获取资源的热度信息,又可以存储其 他边缘节点(含自身)所请求获取的资源的共享热度信息。其中,当第一边缘节点为向其他边缘节点共享资源的边缘节点时,其他边缘节点中的任何一个边缘节点在其本地未查找到第一目标资源时,都可能会向第一边缘节点发送关于第一目标资源的第一资源获取请求,因此,为了加快第一边缘节点从中心节点或第一目标资源的源站点缓存第一目标资源的速度,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求之后,还可以更新第一目标资源的共享热度信息,具体操作如下。
由于第一目标资源的共享热度信息的存储方式的可以包括多种方式,不同的存储方式对应不同的更新方式,因此,第一边缘节点更新第一目标资源的共享信息的方式同样可以包括多种方式,现以下述两种方式为例进行说明。
(1)、当第一目标资源的共享热度信息与第一目标资源的资源标识以对应关系的形式进行存储时,如果第一边缘节点接收到第二边缘节点发送的第一资源获取请求,则第一边缘节点可以基于第一目标资源的资源标识,从存储的资源标识与共享热度信息之间的对应关系中,确定第一目标资源的资源标识对应的共享热度信息,对第一目标资源的资源标识对应的共享热度信息进行更新。
需要说明的是,由于第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,因此,该共享热度信息可以包括被请求的次数等等。当该共享热度信息包括被请求的次数时,第一边缘节点对第一目标资源的共享热度信息的更新操作可以是对第一目标资源的请求次数的增加,且对该请求次数的增加可以是一次增加1。
比如,当该共享热度信息包括被请求的次数,且资源标识与共享热度信息之间的对应关系如表2所示时,如果第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且第一资源获取请求中携带第一目标资源的资源标识为Content_sign_1时,第一边缘节点可以基于第一目标资源的资源标识,从如下表2所示的资源标识与共享热度信息之间的对应关系中,确定当前该资源标识对应的请求次数为9次,在该请求次数9次的基础上增加1,以完成对第一目标资源的共享热度信息的更新。
表2
| 资源标识 | 共享热度信息 |
| Content_sign_1 | 9次 |
| Content_sign_2 | 65次 |
| Content_sign_3 | 30次 |
| ...... | ...... |
需要说明的是,在本发明实施例中仅以上述表2所示的资源标识与共享热度信息之间的对应关系为例进行说明,并不对本发明实施例构成限定。
(2)、当第一目标资源的共享热度信息与第一目标资源的资源标识以缓存队列的形式进行存储时,如果第一边缘节点接收到第二边缘节点发送的第一资源获取请求,则可以基于第一目标资源的资源标识,对共享缓存队列中对应的共享热度信息进行更新,之后对该共享缓存队列重新排序,使热度最高的资源的资源标识位于该共享缓存队列的最前端。
需要说明的是,由于共享缓存队列的存储空间有限,因此,当该共享缓存队列的存储空间占满时,第一边缘节点还可以删除位于该共享缓存队列最后的资源标识及对应的共享热度信息。
另外,该共享缓存队列可以是基于任一缓存更新算法的共享缓存队列,比如,该缓存更新算法可以为最不经常使用(Least Frequently Used,LFU)算法、先进先出(First In First Out,FIFO)算法、最近最少使用(Least Recently Used,LRU)算法。
值得说明的是,当第一目标资源的共享热度信息与第一目标资源的资源标识以缓存队列的形式进行存储时,在该共享缓存队列中还可以包括缓存在本地的资源的缓存地址链接,且该缓存地址链接可以为一个文件路径。因此,当第一边缘节点在本地中查找对应的第一目标资源时,可以基于第一目标资源的资源标识,判断在该共享缓存队列是否存在第一目标资源的资源标识对应的缓存地址链接,当不存在该缓存地址链接时,确定本地没有缓存第一目标资源。当存在该缓存地址链接时,确定本地缓存有第一目标资源。
另外,当存在该缓存地址链接,第一边缘节点确定本地缓存有第一目标资源时,第一边缘节点可以根据该缓存地址链接,从本地获取第一目标资源,并将第一目标资源发送给第二边缘节点。当第二边缘节点接收到第一目标资源时,可以将第一目标资源发送给终端。
同理,由于第一边缘节点还可以接收终端发送的第二资源获取请求,并存储终端所请求资源的热度信息,因此,该终端所请求获取的资源的资源标识与热度信息同样可以以对应关系的形式或以缓存队列的形式进行存储。
其中,在通常情况下,边缘节点只有在对某个资源的热度信息满足预设缓存条件时,才会将该资源缓存到本地,因此,当第一边缘节点将该终端所请求获取的资源的资源标识与热度信息以缓存队列的形式进行存储,且接收到终端发送的第二资源获取请求时,为了方便后续终端能够直接从第一边缘节点中快速地获取到所请求的资源,第一边缘节点可以对接收到的终端发送的每一个资源获取请求进行记录。也即是,当第一边缘节点接收到当前处于第一基站的网络覆盖范围内的终端发送的第二资源获取请求之后,可以对第二目标资源在第一边缘节点的热度信息进行更新。
具体地,当第一边缘节点接收到终端发送的第二资源获取请求时,可以基于第二目标资源的资源标识,对本地缓存队列中对应的热度信息进行更新,之后对该本地缓存队列重新排序,使热度最高的资源的资源标识位于该本地缓存队列的最前端。
值得说明的是,在本发明实施例中,第一边缘节点的本地缓存队列和共享缓存队列中可能包括相同的资源标识,在通常情况下,共享缓存队列中记录的该资源的资源标识的共享热度信息一定大于本地缓存队列中记录的该资源的资源标识的热度信息,因此,当该共享缓存队列中记录的该资源的资源标识的共享热度信息满足第一缓存条件时,该第一边缘节点可以将该资源进行缓存。当本地缓存队列中记录的该资源的资源标识的热度信息满足能够缓存的条件时,由于该第一边缘节点中已缓存有该资源,此时,为了节省第一边缘节点的存储空间,可以不再将该资源进行缓存,而是将该资源的缓存地址链接存储到该本地缓存队列中。
为了进一步对本申请的实施方式进行说明,图6是本发明实施例提供的一种资源获取 方法的示意图,参加图6,该方法包括如下步骤。
步骤601:终端向第二边缘节点发送第一资源获取请求。
其中,该终端是指当前处于第二基站的网络覆盖范围内的任一终端,该第一资源获取请求中携带第一目标资源的资源标识,第二边缘节点是部署在第二基站上的边缘节点。
步骤602:第二边缘节点接收终端发送的第一资源获取请求。
步骤603:第二边缘节点确定本地没有缓存第一目标资源时,基于第一目标资源的资源标识和存储的哈希表,确定第一边缘节点的节点标识。
具体地,第二边缘节点可以对第一目标资源的资源标识进行哈希运算,得到该资源标识对应的哈希值;从该多个边缘节点的节点标识的哈希值中确定与该资源标识对应的哈希值逻辑距离最近的哈希值;该逻辑距离最近的哈希值对应的节点标识即为该资源标识对应的共享处理节点标识,示例性的,本发明实施例中,假设该资源标识对应的共享处理节点标识为第一边缘节点标识。第二边缘节点确定该资源标识对应的共享处理节点标识之后,即可执行下述步骤604的操作。
另外,当该第二边缘节点确定本地缓存有第一目标资源时,第二边缘节点可以直接将第一目标资源发送给终端。
需要说明的是,与步骤602相关的其他操作可以参考上述步骤503的具体操作,本发明实施例对此不再进行一一赘述。
步骤604:第二边缘节点向第一边缘节点的节点标识对应的第一边缘节点发送第一资源获取请求。
步骤605:第一边缘节点接收第二边缘节点发送的第一资源获取请求,确定本地没有缓存第一目标资源的资源标识对应的第一目标资源。
需要说明的是,步骤605的具体操作可以参考上述步骤402的具体操作,本发明实施例对此不再进行一一赘述。
步骤606:第一边缘节点基于第一目标资源的共享热度信息,确定是否需要缓存第一目标资源。
需要说明的是,步骤606的具体操作可以参考上述步骤403的具体操作,本发明实施例对此不再进行一一赘述。
步骤607:当第一边缘节点需要缓存第一目标资源时,向为该网关设备部署的中心节点或第一目标资源的源站点发送第一资源获取请求。
需要说明的是,步骤607的具体操作可以参考上述步骤404的具体操作,本发明实施例对此不再进行一一赘述。
步骤608:中心节点或第一目标资源的源站点接收到第一资源获取请求时,获取第一目标资源的资源标识对应的第一目标资源。
需要说明的是,当第一边缘节点向中心节点发送第一资源获取请求后,如果该中心节点无法获取第一目标资源,则该中心节点还可以将第一资源获取请求发送至第一目标资源的源站点;当第一目标资源的源站点接收到第一资源获取请求时,获取第一目标资源的资源标识对应的第一目标资源。
步骤609:中心节点或第一目标资源的源站点将第一目标资源发送给第一边缘节点。
步骤610:第一边缘节点接收该中心节点或第一目标资源的源站点发送的第一目标资源,缓存第一目标资源。
步骤611:第一边缘节点将第一目标资源发送至第二边缘节点。
步骤612:第二边缘节点接收第一边缘节点发送的第一目标资源,并将第一目标资源发送至该终端。
其中,当第二边缘节点接收到第一目标资源时,可以将第一目标资源发送至该当前处于第二基站的网络覆盖范围内且用于发送第一资源获取请求的终端,并直接将第一目标资源进行缓存。
在本发明实施例中,由于第二边缘节点在接收到终端发送的第一资源获取请求时,如果第二边缘节点中没有缓存第一目标资源,则第二边缘节点可以基于第一目标资源的资源标识和存储的哈希表确定第一边缘节点的节点标识,并向第一边缘节点发送第一资源获取请求,以从第一边缘节点中获取第一目标资源,从而无需通过网关设备向中心节点或第一目标资源的源站点发送第一资源获取请求,降低了基站与网关设备之间接口的带宽消耗。另外,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,也即是,第一边缘节点可以接收到多个边缘节点中任一边缘节点发送的获取第一目标资源的请求,从而提高了第一目标资源在第一边缘节点中的热度。另外,通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。
图7A是本发明实施例提供的一种与上述方法实施例属于同一发明构思下的资源获取装置的结构示意图,参见图7A,该资源获取装置的结构用于执行上述图4和图5所示的方法实施例中资源获取方法的功能,包括:接收单元701、确定单元702、和发送单元703。
接收单元701,用于执行上述图4实施例中的步骤401的操作;
确定单元702,用于执行上述图4实施例中的步骤402的操作;
确定单元702,还用于执行上述图4实施例中的步骤403的操作;
发送单元703,用于执行上述图4实施例中的步骤404的操作。
可选地,该发送单元703还用于:
当不需要缓存第一目标资源时,向第二边缘节点发送第一提示信息,第一提示信息用于提示第二边缘节点从该中心节点或第一目标资源的源站点中获取第一目标资源。
可选地,参见图7B,该装置还包括:
更新单元704,用于更新第一目标资源的共享热度信息。
可选地,
接收单元701,还用于执行上述图5实施例中的步骤501的操作;
确定单元702,还用于执行上述图5实施例中的步骤502和步骤503的操作;
发送单元703,还用于执行上述图5实施例中的步骤504的操作。
可选地,该确定单元702还用于基于第二目标资源的资源标识和存储的哈希表,确定 第三边缘节点的节点标识,具体为:
对第二目标资源的资源标识进行哈希运算,得到第一哈希值;
从该多个边缘节点的节点标识的哈希值中确定与第一哈希值逻辑距离最近的第二哈希值;
从该哈希表中获取与第二哈希值对应的节点标识,并将获取的节点标识确定为该第三边缘节点的节点标识。
可选地,接收单元701还用于:
接收部署在该网关设备上的中心节点下发的该哈希表。
可选地,发送单元703还用于:
当接收到该第三边缘节点发送的第二提示信息时,向该中心节点或第二目标资源的源站点发送第二资源获取请求,第二提示信息用于提示第一边缘节点从该中心节点或第二目标资源的源站点中获取第二目标资源;
接收该中心节点或第二目标资源的源站点发送的第二目标资源,并将第二目标资源发送至该终端。
在本发明实施例中,由于第二边缘节点在接收到终端发送的第一资源获取请求时,如果第二边缘节点中没有缓存第一目标资源,则第二边缘节点可以基于第一目标资源的资源标识和存储的哈希表确定第一边缘节点的节点标识,并向第一边缘节点发送第一资源获取请求,以从第一边缘节点中获取第一目标资源,从而无需通过网关设备向中心节点或第一目标资源的源站点发送第一资源获取请求,降低了基站与网关设备之间接口的带宽消耗。另外,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定的,也即是,第一边缘节点可以接收到多个边缘节点中任一边缘节点发送的获取第一目标资源的请求,从而提高了第一目标资源在第一边缘节点中的热度。另外,通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。
在本发明实施例中,资源获取装置是以功能单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application-specific integrated circuit,ASIC),电路,执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。在一个简单的实施例中,本领域的技术人员可以想到资源获取装置可以采用图2所示的形式。其中,接收单元701、确定单元702、发送单元703和更新单元704可以通过图2的处理器和存储器来实现,具体地,接收单元701、更新单元704可以通过由处理器来执行共享处理模块2081来实现,确定单元702和发送单元703可以通过由处理器来执行共享处理节点模块2082来实现。
图8是本发明实施例提供的一种与上述方法实施例属于同一发明构思下的资源获取系统的结构示意图,参见图8,该资源获取系统的结构用于执行上述图6所示的方法实施例中资源获取方法的功能,包括:第一边缘节点801、第二边缘节点802和中心节点803或 第一目标资源的源站点804;
第二边缘节点802,用于执行上述图6实施例中的步骤601;
第二边缘节点802,还用于执行上述图6实施例中的步骤602;
第一边缘节点801,用于执行上述图6实施例中的步骤603;
第一边缘节点801,还用于执行上述图6实施例中的步骤604;
第一边缘节点801,还用于执行上述图6实施例中的步骤605;
该中心节点803或第一目标资源的源站点804,用于执行上述图6实施例中的步骤806;
第一边缘节点801,还用于执行上述图6实施例中的步骤607;
第二边缘节点802,还用于执行上述图6实施例中的步骤608。
可选地,该中心节点803还用于执行上述图3所示的方法实施例中哈希表确定方法的功能,具体为:
对该多个边缘节点的节点标识进行哈希运算,得到每个边缘节点的节点标识的哈希值;
建立该多个边缘节点的节点标识和对应的哈希值之间的映射关系,得到该哈希表,并将该哈希表发送至该多个边缘节点。
综上所述,在本发明实施例中,由于第二边缘节点在接收到终端发送的第一资源获取请求时,如果第二边缘节点中没有缓存第一目标资源,则第二边缘节点可以基于第一目标资源的资源标识和存储的哈希表确定第一边缘节点的节点标识,并向第一边缘节点发送第一资源获取请求,以从第一边缘节点中获取第一目标资源,从而无需通过网关设备向中心节点或第一目标资源的源站点发送第一资源获取请求,降低了基站与网关设备之间接口的带宽消耗。另外,当第一边缘节点接收到第二边缘节点发送的第一资源获取请求,且本地没有缓存第一目标资源时,第一边缘节点可以通过第一目标资源的共享热度信息确定是否需要缓存第一目标资源。由于第一目标资源的共享热度信息是由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定的,也即是,第一边缘节点可以接收到多个边缘节点中任一边缘节点发送的获取第一目标资源的请求,从而提高了第一目标资源在第一边缘节点中的热度。另外,通过该共享热度信息确定是否需要对第一目标信息进行缓存,加快了第一边缘节点缓存第一目标资源的速度。
本发明实施例还提供了一种计算机存储介质,用于储存实现上述图7A所示的资源获取装置的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。通过执行存储的程序,可以实现获取开发应用所需的业务数据。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例所涉及的动作和模块并不一定是本申请所必须的。
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中 列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。
本申请是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (19)
- 一种资源获取方法,其特征在于,该方法应用于第一基站和第二基站通过同一网关设备接入外部网络的情形,其中,所述第一基站上部署有第一边缘节点,所述第二基站上部署有第二边缘节点,所述方法包括:所述第一边缘节点接收所述第二边缘节点发送的第一资源获取请求,所述第一资源获取请求中携带第一目标资源的资源标识;所述第一边缘节点确定本地没有缓存所述第一目标资源的资源标识对应的第一目标资源;基于所述第一目标资源的共享热度信息,所述第一边缘节点确定是否需要缓存所述第一目标资源,所述第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点;当需要缓存所述第一目标资源时,所述第一边缘节点从部署在所述网关设备中的中心节点或所述第一目标资源的源站点中获取所述第一目标资源;所述第一边缘节点缓存所述第一目标资源,并将所述第一目标资源发送至所述第二边缘节点。
- 根据权利要求1所述的方法,其特征在于,还包括:当不需要缓存所述第一目标资源时,所述第一边缘节点向所述第二边缘节点发送第一提示信息,所述第一提示信息用于提示所述第二边缘节点从所述中心节点或所述第一目标资源的源站点中获取所述第一目标资源。
- 根据权利要求1或2所述的方法,其特征在于,所述第一边缘节点接收第二边缘节点发送的第一资源获取请求之后,还包括:所述第一边缘节点更新所述第一目标资源的共享热度信息。
- 根据权利要求1-3任一所述的方法,其特征在于,所述方法还包括:所述第一边缘节点接收终端发送的第二资源获取请求,所述第二资源获取请求中携带第二目标资源的资源标识;所述第一边缘节点确定本地没有缓存所述第二目标资源的资源标识对应的第二目标资源;基于所述第二目标资源的资源标识和存储的哈希表,所述第一边缘节点确定第三边缘节点的节点标识;其中所述哈希表中包括在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系;所述第一边缘节点向所述第三边缘节点的节点标识对应的第三边缘节点发送所述第二资源获取请求。
- 根据权利要求4所述的方法,其特征在于,所述基于所述第二目标资源的资源标识和存储的哈希表,所述第一边缘节点确定第三边缘节点的节点标识,包括:所述第一边缘节点对所述第二目标资源的资源标识进行哈希运算,得到第一哈希值;所述第一边缘节点从所述在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识对应的哈希值中确定与所述第一哈希值逻辑距离最近的第二哈希值;所述第一边缘节点从所述哈希表中获取与所述第二哈希值对应的节点标识,并将获取的节点标识确定为所述第三边缘节点的节点标识。
- 根据权利要求4或5所述的方法,其特征在于,所述基于所述第二目标资源的资源标识和存储的哈希表,所述第一边缘节点确定第三边缘节点的节点标识之前,还包括:所述第一边缘节点接收所述中心节点下发的所述哈希表。
- 根据权利要求4-6任一所述的方法,其特征在于,所述第一边缘节点向所述第三边缘节点的节点标识对应的第三边缘节点发送所述第二资源获取请求之后,还包括:当接收到所述第三边缘节点发送的第二提示信息时,所述第一边缘节点向所述中心节点或所述第二目标资源的源站点发送所述第二资源获取请求,所述第二提示信息用于提示所述第一边缘节点从所述中心节点或所述第二目标资源的源站点中获取所述第二目标资源;所述第一边缘节点接收所述中心节点或所述第二目标资源的源站点发送的所述第二目标资源,并将所述第二目标资源发送至所述终端。
- 一种资源获取方法,其特征在于,该方法应用于第一基站和第二基站通过同一网关设备接入外部网络的情形,其中,所述第一基站上部署有第一边缘节点,所述第二基站上部署有第二边缘节点,所述方法包括:第二边缘节点接收终端发送的第一资源获取请求,所述第一资源获取请求中携带第一目标资源的资源标识;所述第二边缘节点确定本地没有缓存所述第一目标资源,基于所述第一目标资源的资源标识和存储的哈希表,确定第一边缘节点的节点标识,并向所述第一边缘节点的节点标识对应的第一边缘节点发送所述第一资源获取请求,所述哈希表中包括在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系;所述第一边缘节点接收所述第二边缘节点发送的所述第一资源获取请求,确定本地没有缓存所述第一目标资源的资源标识对应的第一目标资源;所述第一边缘节基于所述第一目标资源的共享热度信息,确定是否需要缓存所述第一目标资源,所述第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点;当所述第一边缘节点需要缓存所述第一目标资源时,所述第一边缘节点向为所述网关设备部署的中心节点或所述第一目标资源的源站点发送所述第一资源获取请求;所述中心节点或所述第一目标资源的源站点接收所述第一资源获取请求,获取所述第一目标资源的资源标识对应的第一目标资源,并将所述第一目标资源发送给所述第一边缘节点;所述第一边缘节点接收所述中心节点或所述第一目标资源的源站点发送的所述第一目标资源,缓存所述第一目标资源,并将所述第一目标资源发送至所述第二边缘节点;所述第二边缘节点接收所述第一边缘节点发送的所述第一目标资源,并将所述第一目标资源发送给所述终端。
- 根据权利要求8所述的方法,其特征在于,所述基于所述第一目标资源的资源标识和存储的哈希表,确定第一边缘节点的节点标识之前,还包括:所述中心节点对在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识进行哈希运算,得到每个边缘节点的节点标识的哈希值;所述中心节点建立所述在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系,得到所述哈希表,并将所述哈希表发送至所述在通过所述网关设备接入外部网络的基站中部署的边缘节点。
- 一种资源获取装置,其特征在于,所述装置是部署在第一基站上的第一边缘节点,所述第一基站和第二基站通过同一网关设备接入外部网络,所述第二基站上部署有第二边缘节点,所述装置包括:接收单元,用于接收第二边缘节点发送的第一资源获取请求,所述第一资源获取请求中携带第一目标资源的资源标识;确定单元,用于确定本地没有缓存所述第一目标资源的资源标识对应的第一目标资源;所述确定单元,还用于基于所述第一目标资源的共享热度信息,确定是否需要缓存所述第一目标资源,所述第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点;发送单元,用于当需要缓存所述第一目标资源时,从部署在所述网关设备中的中心节点或所述第一目标资源的源站点中获取所述第一目标资源;缓存所述第一目标资源,并将所述第一目标资源发送至所述第二边缘节点。
- 根据权利要求10所述的装置,其特征在于,所述发送单元还用于:当不需要缓存所述第一目标资源时,向所述第二边缘节点发送第一提示信息,所述第一提示信息用于提示所述第二边缘节点从所述中心节点或所述第一目标资源的源站点中获取所述第一目标资源。
- 根据权利要求10或11所述的装置,其特征在于,所述装置还包括:更新单元,用于更新所述第一目标资源的共享热度信息。
- 根据权利要求10-12任一所述的装置,其特征在于,所述接收单元,还用于接收终端发送的第二资源获取请求,所述第二资源获取请求中携带第二目标资源的资源标识;所述确定单元,还用于确定本地没有缓存所述第二目标资源的资源标识对应的第二目标资源;基于所述第二目标资源的资源标识和存储的哈希表,确定第三边缘节点的节点标识;其中所述哈希表中包括在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系;所述发送单元,还用于向所述第三边缘节点的节点标识对应的第三边缘节点发送所述第二资源获取请求。
- 根据权利要求13所述的装置,其特征在于,所述确定单元还用于基于所述第二目标资源的资源标识和存储的哈希表,确定第三边缘节点的节点标识,具体为:对所述第二目标资源的资源标识进行哈希运算,得到第一哈希值;从所在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识对应的哈希值中确定与所述第一哈希值逻辑距离最近的第二哈希值;从所述哈希表中获取与所述第二哈希值对应的节点标识,并将获取的节点标识确定为所述第三边缘节点的节点标识。
- 根据权利要求13所述的装置,其特征在于,所述接收单元还用于:接收所述中心节点下发的所述哈希表。
- 根据权利要求13-15任一所述的装置,其特征在于,所述发送单元还用于:当接收到所述第三边缘节点发送的第二提示信息时,向所述中心节点或所述第二目标资源的源站点发送所述第二资源获取请求,所述第二提示信息用于提示所述第一边缘节点从所述中心节点或所述第二目标资源的源站点中获取所述第二目标资源;所述接收单元,还用于接收所述中心节点或所述第二目标资源的源站点发送的所述第二目标资源,并将所述第二目标资源发送至所述终端。
- 一种资源获取系统,其特征在于,所述系统包括:第一边缘节点、第二边缘节点和中心节点或第一目标资源的源站点;其中,第一基站和第二基站通过同一网关设备接入外部网络,所述第一基站上部署有第一边缘节点,所述第二基站上部署有第二边缘节点;所述第二边缘节点,用于接收终端发送的第一资源获取请求,所述第一资源获取请求中携带第一目标资源的资源标识;所述第二边缘节点,还用于确定本地没有缓存所述第一目标资源,基于所述第一目标资源的资源标识和存储的哈希表,确定第一边缘节点的节点标识,并向所述第一边缘节点的节点标识对应的第一边缘节点发送所述第一资源获取请求,所述哈希表中包括在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系;所述第一边缘节点,用于接收所述第一资源获取请求,确定本地没有缓存所述第一目标资源的资源标识对应的第一目标资源;所述第一边缘节点,还用于基于所述第一目标资源的共享热度信息,确定是否需要缓存所述第一目标资源,所述第一目标资源的共享热度信息由所述第一边缘节点从本边缘节点以及其他边缘节点接收到的针对所述第一目标资源的获取请求的次数确定,所述其他边缘节点包括在通过所述网关设备接入外部网络的基站中部署的除所述第一边缘节点之外的任一边缘节点;所述第一边缘节点,还用于当需要缓存所述第一目标资源时,向部署在所述网关设备中的中心节点或所述第一目标资源的源站点发送所述第一资源获取请求;所述中心节点或所述第一目标资源的源站点,用于接收所述第一资源获取请求,获取所述第一目标资源的资源标识对应的第一目标资源,并将所述第一目标资源发送给所述第一边缘节点;所述第一边缘节点,还用于接收所述中心节点或所述第一目标资源的源站点发送的所述第一目标资源,缓存所述第一目标资源,并将所述第一目标资源发送至所述第二边缘节点;所述第二边缘节点,还用于接收所述第一边缘节点发送的所述第一目标资源,并将所述第一目标资源发送给所述终端。
- 根据权利要求17所述的系统,其特征在于,所述中心节点还用于:对所述在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识进行哈希运算,得到每个边缘节点的节点标识的哈希值;建立所述在通过所述网关设备接入外部网络的基站中部署的边缘节点的节点标识和对应的哈希值之间的映射关系,得到所述哈希表,并将所述哈希表发送至在通过所述网关设备接入外部网络的基站中部署的边缘节点。
- 一种资源获取装置,其特征在于,所述装置包括:处理器和存储器;其中,所述存储器中存有计算机可读程序;所述处理器通过运行所述存储器中的程序,以用于完成权利要求1-7任一所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP18780973.6A EP3595355B1 (en) | 2017-04-07 | 2018-03-28 | Resource obtaining method, apparatus and system |
| US16/595,083 US11012892B2 (en) | 2017-04-07 | 2019-10-07 | Resource obtaining method, apparatus, and system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710225277.8 | 2017-04-07 | ||
| CN201710225277.8A CN108696895B (zh) | 2017-04-07 | 2017-04-07 | 资源获取方法、装置及系统 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/595,083 Continuation US11012892B2 (en) | 2017-04-07 | 2019-10-07 | Resource obtaining method, apparatus, and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018184491A1 true WO2018184491A1 (zh) | 2018-10-11 |
Family
ID=63713178
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/080763 Ceased WO2018184491A1 (zh) | 2017-04-07 | 2018-03-28 | 资源获取方法、装置及系统 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US11012892B2 (zh) |
| EP (1) | EP3595355B1 (zh) |
| CN (1) | CN108696895B (zh) |
| WO (1) | WO2018184491A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111125580A (zh) * | 2019-12-09 | 2020-05-08 | 北京五八信息技术有限公司 | 网络资源获取方法、装置、电子设备及存储介质 |
| US20220272145A1 (en) * | 2021-02-20 | 2022-08-25 | Wangsu Science & Technology Co., Ltd. | Method for requesting resources and terminal |
Families Citing this family (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111327651A (zh) * | 2018-12-14 | 2020-06-23 | 华为技术有限公司 | 资源下载方法、装置、边缘节点及存储介质 |
| CN111372095B (zh) * | 2018-12-25 | 2023-06-23 | 深圳市茁壮网络股份有限公司 | 一种计算热度的方法及装置 |
| CN109951543A (zh) * | 2019-03-14 | 2019-06-28 | 网宿科技股份有限公司 | 一种cdn节点的数据查找方法、装置及网络设备 |
| CN110012106B (zh) * | 2019-04-15 | 2021-01-29 | 北京邮电大学 | 一种基于边缘计算的协调缓存方法、装置及系统 |
| CN112513830A (zh) * | 2019-07-15 | 2021-03-16 | 华为技术有限公司 | 内容分发网络中的回源方法及相关装置 |
| CN112448984A (zh) * | 2019-09-02 | 2021-03-05 | 北京新唐思创教育科技有限公司 | 资源传输方法、电子设备及计算机存储介质 |
| CN112839070B (zh) * | 2019-11-22 | 2023-08-22 | 北京金山云网络技术有限公司 | 数据处理方法、装置和cdn网络中的节点设备 |
| CN112929676A (zh) * | 2019-12-06 | 2021-06-08 | 北京金山云网络技术有限公司 | 一种直播数据流获取方法、装置、节点及系统 |
| CN113162779B (zh) | 2020-01-07 | 2024-03-05 | 华为云计算技术有限公司 | 一种多云互联的方法及设备 |
| CN113296924B (zh) * | 2020-04-28 | 2022-07-22 | 阿里巴巴集团控股有限公司 | 一种内容分发方法、设备、系统及存储介质 |
| CN112346871A (zh) * | 2020-11-24 | 2021-02-09 | 深圳前海微众银行股份有限公司 | 一种请求处理方法及微服务系统 |
| CN113760980B (zh) * | 2020-11-30 | 2024-08-20 | 北京京东乾石科技有限公司 | 一种数据缓存方法、数据提供端及数据使用端 |
| CN112866724B (zh) * | 2020-12-31 | 2022-07-29 | 山东远桥信息科技有限公司 | 一种基于软件定义网络和边缘计算技术的视频业务处理方法和系统 |
| CN115208955B (zh) * | 2021-03-29 | 2024-04-19 | 贵州白山云科技股份有限公司 | 一种资源请求处理的方法、装置、计算机设备及介质 |
| CN113098973B (zh) * | 2021-04-13 | 2022-05-20 | 鹏城实验室 | 包级别网内数据传输方法、系统、存储介质及终端设备 |
| CN113596079B (zh) * | 2021-06-17 | 2024-01-05 | 阿里巴巴新加坡控股有限公司 | 网络系统、回源容灾方法及设备 |
| CN113542420B (zh) * | 2021-07-19 | 2023-07-04 | 北京金山云网络技术有限公司 | 热点文件的处理方法、装置、电子设备和介质 |
| CN114398659A (zh) * | 2021-10-28 | 2022-04-26 | 上海哔哩哔哩科技有限公司 | 一种资源校验方法、装置、设备及存储介质 |
| CN116074790B (zh) * | 2021-11-02 | 2024-04-19 | 中国联合网络通信集团有限公司 | Mec业务调度方法、第一mec服务器及存储介质 |
| CN114501056A (zh) * | 2022-04-18 | 2022-05-13 | 深圳市华曦达科技股份有限公司 | 一种多源站频道自动回源的方法及装置 |
| CN116708455B (zh) * | 2023-02-03 | 2024-01-05 | 天翼云科技有限公司 | 资源获取方法及装置、可读存储介质及电子设备 |
| CN119690646B (zh) * | 2024-11-21 | 2025-12-09 | 网易(杭州)网络有限公司 | 一种资源缓存方法、装置、计算机设备及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101345690A (zh) * | 2007-07-12 | 2009-01-14 | 中国电信股份有限公司 | 电信级p2p网络的内容分级存储及传送方法 |
| CN101557499A (zh) * | 2008-04-09 | 2009-10-14 | 中兴通讯股份有限公司 | 媒体交付系统及方法、媒体交付系统资源更新方法 |
| CN101883012A (zh) * | 2010-07-09 | 2010-11-10 | 四川长虹电器股份有限公司 | 一种对网络边缘节点中存储资源的处理方法 |
| CN103312776A (zh) * | 2013-05-08 | 2013-09-18 | 青岛海信传媒网络技术有限公司 | 边缘节点服务器缓存视频的内容的方法和装置 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102244900B (zh) * | 2011-07-15 | 2014-01-22 | 上海华为技术有限公司 | 缓存数据热度值的同步方法、分布缓存方法、装置及系统 |
| US9603033B2 (en) * | 2011-12-31 | 2017-03-21 | International Business Machines Corporation | Online and distributed optimization framework for wireless analytics |
| US9119087B2 (en) * | 2012-09-28 | 2015-08-25 | Intel Corporation | Systems and methods for hybrid wireless content delivery |
| WO2014107208A1 (en) * | 2013-01-03 | 2014-07-10 | Intel Corporation | Apparatus, system and method of lawful interception (li) in a cellular network |
| US9756142B2 (en) * | 2013-03-14 | 2017-09-05 | The Regents Of The University Of California | System and method for delivering video data from a server in a wireless network by caching the video data |
| US10129356B2 (en) * | 2013-11-15 | 2018-11-13 | The Hong Kong University Of Science And Technology | Physical layer caching for flexible MIMO cooperation in wireless networks |
| CN104168317B (zh) * | 2014-08-12 | 2018-01-19 | 华为技术有限公司 | 缓存内容命中方法和通信系统 |
| US10313916B2 (en) * | 2014-11-11 | 2019-06-04 | Qualcomm Incorporated | Selected IP flow ultra low latency |
| US9936042B2 (en) * | 2015-08-28 | 2018-04-03 | Qualcomm Incorporated | Local retrieving and caching of content to small cells |
-
2017
- 2017-04-07 CN CN201710225277.8A patent/CN108696895B/zh active Active
-
2018
- 2018-03-28 EP EP18780973.6A patent/EP3595355B1/en active Active
- 2018-03-28 WO PCT/CN2018/080763 patent/WO2018184491A1/zh not_active Ceased
-
2019
- 2019-10-07 US US16/595,083 patent/US11012892B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101345690A (zh) * | 2007-07-12 | 2009-01-14 | 中国电信股份有限公司 | 电信级p2p网络的内容分级存储及传送方法 |
| CN101557499A (zh) * | 2008-04-09 | 2009-10-14 | 中兴通讯股份有限公司 | 媒体交付系统及方法、媒体交付系统资源更新方法 |
| CN101883012A (zh) * | 2010-07-09 | 2010-11-10 | 四川长虹电器股份有限公司 | 一种对网络边缘节点中存储资源的处理方法 |
| CN103312776A (zh) * | 2013-05-08 | 2013-09-18 | 青岛海信传媒网络技术有限公司 | 边缘节点服务器缓存视频的内容的方法和装置 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP3595355A4 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111125580A (zh) * | 2019-12-09 | 2020-05-08 | 北京五八信息技术有限公司 | 网络资源获取方法、装置、电子设备及存储介质 |
| CN111125580B (zh) * | 2019-12-09 | 2023-08-15 | 北京五八信息技术有限公司 | 网络资源获取方法、装置、电子设备及存储介质 |
| US20220272145A1 (en) * | 2021-02-20 | 2022-08-25 | Wangsu Science & Technology Co., Ltd. | Method for requesting resources and terminal |
| US11785075B2 (en) * | 2021-02-20 | 2023-10-10 | Wangsu Science & Technology Co., Ltd. | Method for requesting resources and terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108696895B (zh) | 2020-10-09 |
| EP3595355A1 (en) | 2020-01-15 |
| EP3595355B1 (en) | 2022-08-24 |
| EP3595355A4 (en) | 2020-03-04 |
| CN108696895A (zh) | 2018-10-23 |
| US20200045588A1 (en) | 2020-02-06 |
| US11012892B2 (en) | 2021-05-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108696895B (zh) | 资源获取方法、装置及系统 | |
| US11463550B2 (en) | Request management for hierarchical cache | |
| CN109788078B (zh) | 应用服务器切换方法、设备及系统 | |
| US10491657B2 (en) | Network acceleration method, apparatus and device based on router device | |
| CN104158755B (zh) | 传输报文的方法、装置和系统 | |
| US10225341B2 (en) | Implementing synchronization of state information between instances of an application as well as between different applications in an efficient, scalable manner | |
| US10951395B2 (en) | Data fetching in data exchange networks | |
| WO2019165665A1 (zh) | 一种域名解析方法、服务器及系统 | |
| WO2016023357A1 (zh) | 访问网页的方法、装置及路由器 | |
| WO2022127319A1 (zh) | 数据刷新的方法、装置、电子设备及计算机可读存储介质 | |
| CN110620802A (zh) | 一种负载均衡方法和装置 | |
| CN105978936A (zh) | Cdn服务器及其缓存数据的方法 | |
| CN109951543A (zh) | 一种cdn节点的数据查找方法、装置及网络设备 | |
| CN106028400A (zh) | 一种缓存内容的方法和基站 | |
| JP4755683B2 (ja) | ピア・ツー・ピア(p2p)・ネットワークを効率的に拡張するための方法、装置、およびプログラム | |
| CN105763607A (zh) | 一种订阅内容获取方法、设备及系统 | |
| CN114827159B (zh) | 网络请求路径优化方法、装置、设备和存储介质 | |
| US20220263759A1 (en) | Addressing method, addressing system, and addressing apparatus | |
| CN111367860A (zh) | 文件刷新方法及装置 | |
| JP2020194988A (ja) | 通信制御方法および通信システム | |
| WO2011157120A2 (zh) | 基站缓存的访问控制方法、装置及系统 | |
| CN115580532B (zh) | 一种网关缓存方法、装置、设备及存储介质 | |
| WO2017092356A1 (zh) | 用于提供服务数据的服务器、方法及系统 | |
| WO2016106557A1 (zh) | 一种用于视频发送的方法与装置 | |
| US20260003886A1 (en) | Data synchronization between endpoint devices in an edge network |
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: 18780973 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2018780973 Country of ref document: EP Effective date: 20191011 |