CN110213339B - Resource access method, device, storage medium and computer equipment - Google Patents

Resource access method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN110213339B
CN110213339B CN201910388309.5A CN201910388309A CN110213339B CN 110213339 B CN110213339 B CN 110213339B CN 201910388309 A CN201910388309 A CN 201910388309A CN 110213339 B CN110213339 B CN 110213339B
Authority
CN
China
Prior art keywords
resource
storage node
target
address
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910388309.5A
Other languages
Chinese (zh)
Other versions
CN110213339A (en
Inventor
林基宏
廖龙
周龄
蔡艺强
赵劲松
魏俊展
邓独
王琰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910388309.5A priority Critical patent/CN110213339B/en
Publication of CN110213339A publication Critical patent/CN110213339A/en
Application granted granted Critical
Publication of CN110213339B publication Critical patent/CN110213339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a resource access method, a device, a computer readable storage medium and a computer device, wherein the method comprises the following steps: obtaining a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed; analyzing the network domain name to obtain a target network address pointing to an internal storage node deployed in the public place; feeding back the target network address through the local area network, and triggering to request the pointed internal storage node to access the target resource according to the fed back target network address; and responding to the resource access request, and feeding back the target resource through the internal storage node. The scheme provided by the application can improve the resource access efficiency.

Description

Resource access method, device, storage medium and computer equipment
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a resource access method, an apparatus, a computer-readable storage medium, and a computer device.
Background
With the development of computer technology and network communication technology, a content Delivery network technology has appeared, in which a content Delivery network is also called CDN (content Delivery network), and the CDN is a content Delivery network constructed over an existing network, and by means of edge servers deployed in various places, a user can access an edge server nearby to obtain a desired content by scheduling through a central platform, so that network congestion can be reduced, and the access speed of the user is improved to a certain extent.
Although the conventional capacity distribution scheme can improve the access speed of the user to a certain extent, problems such as 'last kilometer' cannot be accelerated often due to unstable communication link between the user and the edge server or limited transmission resources of the communication link, resulting in low efficiency of the user to access the target resources.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a resource access method, apparatus, computer-readable storage medium, and computer device for solving the technical problem of inefficient resource access.
A resource access method is applied to a central node deployed in a public place, and comprises the following steps:
obtaining a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
analyzing the network domain name to obtain a target network address pointing to an internal storage node deployed in the public place;
feeding back the target network address through the local area network, and triggering to request the pointed internal storage node to access the target resource according to the fed back target network address;
and responding to the resource access request, and feeding back the target resource through the internal storage node.
An apparatus for accessing a resource, the apparatus comprising:
the acquisition module is used for acquiring a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
the analysis module is used for analyzing the network domain name to obtain a target network address pointing to an internal storage node deployed in the public place;
the feedback module is used for feeding back the target network address through the local area network and triggering to request the pointed internal storage node to access the target resource according to the fed back target network address;
the feedback module is further configured to feed back the target resource through the internal storage node in response to the resource access request.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
obtaining a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
analyzing the network domain name to obtain a target network address pointing to an internal storage node deployed in the public place;
feeding back the target network address through the local area network, and triggering to request the pointed internal storage node to access the target resource according to the fed back target network address;
and responding to the resource access request, and feeding back the target resource through the internal storage node.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
obtaining a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
analyzing the network domain name to obtain a target network address pointing to an internal storage node deployed in the public place;
feeding back the target network address through the local area network, and triggering to request the pointed internal storage node to access the target resource according to the fed back target network address;
and responding to the resource access request, and feeding back the target resource through the internal storage node.
According to the resource access method, the resource access device, the computer readable storage medium and the computer equipment, the central node and the internal storage node are deployed in the public place, and the central node accesses the local area network provided by the public place to acquire the resource access request. Wherein the resource access request includes a network domain name corresponding to a target resource to be accessed. The central node analyzes the network domain name to obtain a target network address pointing to the internal storage node, so that a resource access request initiator can access the internal storage node through the local area network to obtain a target resource. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved. In addition, the method has very strong expansibility, can be combined with various scenes to flexibly adjust and deploy the architecture to adapt to different requirements, can be implemented in various scenes, and has high flexibility.
A method of resource access, comprising:
initiating a resource access request through a local area network provided by a current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
receiving, by the local area network, a target network address fed back by a central node deployed in the public place and directed to an internal storage node deployed in the public place; the target network address is obtained by analyzing the network domain name through the central node;
according to the target network address, requesting the pointed internal storage node to access the target resource;
and receiving the target resource fed back by the internal storage node through the local area network.
A resource access device, comprising:
the initiating module is used for initiating a resource access request through a local area network provided by the current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
a receiving module, configured to receive, through the local area network, a target network address that is fed back by a central node deployed in the public place and points to an internal storage node deployed in the public place; the target network address is obtained by analyzing the network domain name through the central node;
the request access module is used for requesting the internal storage node pointed by the target network address to access the target resource;
the receiving module is further configured to receive, through the local area network, the target resource fed back by the internal storage node.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
initiating a resource access request through a local area network provided by a current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
receiving, by the local area network, a target network address fed back by a central node deployed in the public place and directed to an internal storage node deployed in the public place; the target network address is obtained by analyzing the network domain name through the central node;
according to the target network address, requesting the pointed internal storage node to access the target resource;
and receiving the target resource fed back by the internal storage node through the local area network.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
initiating a resource access request through a local area network provided by a current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed;
receiving, by the local area network, a target network address fed back by a central node deployed in the public place and directed to an internal storage node deployed in the public place; the target network address is obtained by analyzing the network domain name through the central node;
according to the target network address, requesting the pointed internal storage node to access the target resource;
and receiving the target resource fed back by the internal storage node through the local area network.
According to the resource access method, the resource access device, the computer-readable storage medium and the computer equipment, the resource access carrying request is initiated through the local area network provided by the current public place, and the target network address which is fed back by the central node deployed in the current public place and points to the internal storage node deployed in the public place is received through the connected local area network. Therefore, the target resource can be requested to be accessed from the internal storage node pointed by the target network address, so that the target resource can be quickly accessed through the local area network. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved.
Drawings
FIG. 1 is a diagram of an application environment of a resource access method in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for resource access in one embodiment;
FIG. 3 is a flowchart illustrating a method for accessing resources in an exemplary embodiment;
FIG. 4 is a schematic flow chart diagram illustrating the resource access step in one embodiment;
FIG. 5 is an architecture diagram of a resource access system in one embodiment;
FIG. 6 is an architecture diagram of a resource access system in an airplane scenario, under an embodiment;
FIG. 7 is a resource access system architecture diagram in a high-speed rail scenario, under an embodiment;
FIG. 8 is a hardware architecture diagram of "somersault cloud" in a high-speed rail scenario in an embodiment;
FIG. 9 is a flowchart illustrating a resource access method in accordance with another embodiment;
FIG. 10 is a block diagram showing the construction of a resource access device according to one embodiment;
FIG. 11 is a block diagram showing the construction of a resource access device in another embodiment;
FIG. 12 is a block diagram showing the construction of a resource access device according to one embodiment;
FIG. 13 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram of an application environment of a resource access method in one embodiment. Referring to fig. 1, the resource access method is applied to a resource access system. The resource access system includes a terminal 110, a central node 120, and an internal storage node 130. The terminal 110, the central node 120 and the internal storage node 130 are connected to each other through a local area network, respectively. The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The central node 120 and the internal storage node 130 may be implemented by separate servers or a server cluster composed of a plurality of servers. In one embodiment, the central node 120 and the internal storage node 130 may also be deployed on the same server, and implemented by the same server.
It should be noted that, in the solution provided in the present application, the central node has functions of load balancing, content distribution, scheduling, and the like; the internal storage node is used for providing space for resource caching. It can be understood that, in order to implement the scheme, a worker can deploy the central server and the cache server in public places in advance. The central node 120 may specifically be implemented by a deployed central server; the internal storage node 130 may be implemented by a deployed cache server. When the user is in the public place, the resource access method can be triggered and realized through the user terminal.
As shown in FIG. 2, in one embodiment, a method for resource access is provided. This embodiment is mainly illustrated by applying the method to the central node 120 in fig. 1. Referring to fig. 2, the resource access method specifically includes the following steps:
s202, accessing a local area network provided by a public place to acquire a resource access request; the resource access request carries a network domain name corresponding to a target resource to be accessed.
The public place is a place where any social member can freely come and go to and stay, or a place where the social member can freely go in and out only by ticket purchasing/identity authentication. Public places such as high-speed railways, airplanes, office buildings, schools, hotels, shopping malls and the like. A Local Area Network (LAN) is a computer communication Network formed by connecting various computer devices, external devices, databases, etc. to each other in a Local geographical Area (such as a high-speed rail, a school, or a hotel, etc.). In the embodiment of the present application, the local area network may also be referred to as an intranet.
The target resource is a resource that the user intends to access, and the target resource may be a web resource such as a web page, a document, a video, or music. The network domain name is a character identifier for identifying and positioning a computer hierarchical structure on the internet and corresponds to an internet protocol address of the computer. The network domain names are very rich in types, and are commonly represented by ". com", ". cn", ". top", ". net", ". edu", and the like.
Specifically, the central node may be implemented by a program deployed on a central server, and the central server may be pre-deployed in a public place. Thus, the central node can access the local area network provided by the public place in advance so as to receive the resource access request through the accessed local area network. It can be understood that a local area network can be built in public places through deployed network equipment, and the central node can access the local area network through a router.
In one embodiment, a user can connect to a local area network provided in a public place through a terminal and trigger a resource access request carrying a link address of a target resource to be accessed on the terminal, wherein the link address comprises a network domain name. The terminal can send the resource access request to the central node through the connected local area network. The central node receives the resource access request sent by the terminal by accessing a local area network provided by a public place.
In one embodiment, when a terminal connects to a local area network provided in a public place, a router automatically assigns an IP Address (Internet Protocol Address), also called an intranet Address, to the terminal. The terminal can realize interaction with other computer equipment through the allocated intranet address.
S204, the network domain name is analyzed to obtain a target network address pointing to the internal storage node deployed in the public place.
Wherein, the target network address refers to an IP address of an internal storage node. The internal storage node may be implemented by a cache server deployed inside a public place. The internal storage node refers to a storage node disposed in the common area, and may be referred to as an external storage node for a storage node disposed outside the common area.
Specifically, after receiving the resource access request, the central node may analyze the network domain name carried in the resource access request. And performing domain name resolution on the network domain name to obtain a target network address corresponding to the network domain name. Wherein the target network address points to an internal storage node deployed inside a public place.
In one embodiment, step S204 specifically includes: and analyzing the network domain name through an internal domain name service operated in the central node to obtain a target network address pointing to an internal storage node deployed in a public place.
The internal domain name service is a domain name service running on the central node, and may specifically be a service running on the central server. The Domain name service may also be called a DNS (Domain name resolution) service, where Domain name resolution is a process of pointing a network Domain name to a website space IP, and a service that allows a computer device to conveniently access a website through a pre-registered network Domain name.
It can be understood that when a terminal needs to access a server in the internet, it must do so by accessing an IP address corresponding to the server. And domain name resolution is the process of converting a network domain name into an IP address. One network domain name may correspond to one IP address; one IP address may correspond to multiple network domain names, and more than one different network domain names may be resolved to the same IP address at the same time.
In one embodiment, the central node may resolve the network domain name through an internal domain name service to obtain a target network address corresponding to the network domain name. It can be understood that the worker may preset a network address corresponding to the network domain name, and then when the internal domain name service performs resolution, the internal domain name service may resolve the network domain name according to a corresponding relationship between the network domain name and the network address to obtain a corresponding target network address. When the network domain name does not have a network address associated with the network domain name, the central node can feed back feedback information such as 'no access' or 'domain name does not exist' to the terminal.
For example, assume that the network domain name is: com, if a terminal wants to access a website corresponding to the network domain name, the internal domain name service needs to resolve the network domain name. The internal network domain name may be resolved to a fixed IP address, such as 211.214.1.XXX, corresponding to the internal storage node according to the correspondence between the network domain name and the network address. Com, then, maps the network domain name to the cache server corresponding to the internal storage node. Com, when the user inputs the domain name abc.com on the terminal and initiates a resource access request, the content of the website corresponding to the domain name can be accessed.
In the embodiment, the network domain name can be automatically analyzed through the internal domain name service running in the central node to obtain the target network address pointing to the internal storage node deployed in the public place, so that the resource access request initiator can access the internal storage node to quickly acquire the target resource, and the resource access efficiency is improved.
S206, feeding back the target network address through the local area network, and triggering to request the pointed internal storage node to access the target resource according to the fed back target network address.
Specifically, the central node may feed back the target network address to the resource access request initiator through the accessed local area network, and trigger the resource access request initiator to request access to the target resource from the internal storage node to which the target network address points.
In one embodiment, the resource access request initiator may initiate a resource acquisition request to the internal storage node according to the target network address and the resource index corresponding to the target resource. And the internal storage node searches corresponding target resources from the stored resources according to the resource index and feeds the target resources back to the resource access request initiator.
In one embodiment, the internal storage nodes may comprise a single level of storage nodes, or the internal storage nodes may comprise more than one level of storage nodes. For example, the internal storage nodes may specifically include only one level of storage nodes; or the internal storage nodes comprise primary storage nodes and secondary storage nodes; or the internal storage nodes comprise primary storage nodes, secondary storage nodes, other advanced storage nodes and the like. It is understood that the number of the storage nodes at the same level may be one or more, and the internal storage nodes at different levels correspond to different access rights. The number of the specific storage nodes at each level and the level of the storage nodes included in the internal storage nodes can be set according to the actual situation of the public place.
When the central node resolves the network domain name, the target network address pointing to the internal storage node of the low level can be preferentially fed back. When the target resource does not exist in the low-level internal storage node, the low-level internal storage node accesses the high-level internal storage node again to acquire the target resource and feeds the target resource back to the resource access request initiator.
For example, when the floor space of a public place is large, such as a high-speed rail, the internal storage nodes may be preset to include a primary storage node and a secondary storage node, wherein the storage right of the secondary storage node is higher than that of the primary storage node. For example, the staff member may deploy the corresponding primary storage nodes in different cars in advance, and deploy one secondary storage node on the whole high-speed rail. When the first-level storage node does not include the target resource, the first-level storage node can initiate a request to the second-level storage node, and the second-level storage node can search the target resource in the first-level storage node or other first-level storage nodes. When the secondary storage node finds the target resource, the target resource can be directly fed back to the resource access request initiator or the target resource can be transmitted to the primary storage node and fed back to the resource access request initiator through the primary storage node.
In one embodiment, step S206 specifically includes: feeding back the target network address to the resource access request initiator through the local area network; and the fed back target network address is used for indicating the resource access request initiator to request the internal storage node pointed by the target network address to access the target resource.
In one embodiment, the terminal may connect to a local area network provided in a public place, and a router corresponding to the public place allocates an intranet address to the terminal, where the intranet address may be used as an IP address for the terminal to receive the target resource. And the terminal generates a resource access request according to the intranet address and the network domain name and sends the resource access request to the central node through the router corresponding to the accessed local area network. After the central node performs domain name resolution on the network domain name to obtain a target network address, the target network address can be fed back to the resource access request initiator according to the intranet address. The resource access request initiator in this embodiment may specifically be a terminal or a router that forwards a resource access request for a terminal.
Further, the resource access request initiator may initiate a resource acquisition request, such as an HTTP (Hypertext transfer protocol) request, to the internal storage node pointed by the target network address according to the target network address. And after the target network address receives the resource acquisition request to the pointed internal storage node, searching the corresponding target resource in the stored resources.
In the above embodiment, the target network address is fed back to the resource access request initiator through the local area network, and the resource access request initiator can request the internal storage node to which the target network address points to access the corresponding target resource.
And S208, responding to the resource access request, and feeding back the target resource through the internal storage node.
Specifically, the central node may respond to the received resource access request, and feed back the found target resource to the resource access request initiator through the internal storage node. In one embodiment, the internal storage node may feed back the found target resource to the corresponding router through the local area network according to the intranet address corresponding to the terminal, and the router transfers the target resource to the terminal. The terminal receives and displays the target resource, and the user can browse or listen to the displayed target resource through the terminal.
In one embodiment, when the target resource is included in the internal storage node pointed to by the target network address, the internal storage node may directly feed back the target resource to the resource access request initiator.
In one embodiment, the central node may also provide a higher level of storage capability than the internal storage nodes. The internal storage node can be considered as a first-level cache; the storage provided by the central node is a level two cache. When the target resource is not included in the internal storage node, the central node can search the resources stored in the second-level cache, and when the target resource is searched, the target resource is transmitted to the internal storage node.
In an embodiment, when the internal storage node does not include the target resource, before step S208, the resource access method further includes a step of acquiring the target resource from the external storage node, where the step specifically includes: forwarding the resource access request to an external domain name service in an external network environment through a pre-allocated external network address, wherein the forwarded resource access request is used for indicating the external domain name service to analyze a network domain name to obtain an external network address pointing to an external storage node; accessing the pointed external storage node according to the external network address; acquiring target resources fed back by an external storage node; and transmitting the acquired target resource to the internal storage node.
Wherein the extranet address is a network address for communicating with a computer device in an extranet environment. An extranet environment such as the Internet (Internet) environment may also be referred to as a public network environment. The external domain name service may specifically be a domain name service deployed on an external server; the external storage node may specifically be a server in an internet environment; the external network address is a network address pointing to the external storage node. In one embodiment, the external storage node may specifically be a CDN edge node or a source site server.
Specifically, when the resource access request initiator requests the internal storage node to access the target resource according to the target network address, and the internal storage node does not include the target resource, the internal storage node may feed back to the central node, and the central node may connect to the external network (i.e., connect to the public network) according to the network device, and forward the resource access request to the external domain name service in the external network environment through the external network address pre-allocated by the network device. The central node is connected to the external network through a network device, and may specifically be connected to the cellular network through a Subscriber Identity Module (SIM) card.
Further, the external domain name service may resolve the network domain name after receiving the resource access request, to obtain an external network address pointing to the external storage node. The central node can initiate an HTTP request to the external storage node according to the external network address so as to access the external storage node pointed by the external network address, and therefore the target resource fed back by the external storage node is obtained. The central node can transmit the acquired target resource to the internal storage node and feed back the target resource to the resource access request initiator through the internal storage node. This process is not perceived by the resource access request initiator.
In the above embodiment, when the target resource is not included in the internal storage node, the target resource may be acquired from the external storage node. Therefore, the local area network preferentially accesses the internal storage node to obtain the target resource, and when the internal storage node does not successfully access the target resource, the target resource can be obtained through the external network, so that the public network outlet bandwidth cost can be saved to the maximum extent, the resource access efficiency is improved, the internal network and external network access mode can be flexibly adjusted, and the target resource can be obtained in time.
In one embodiment, when the internal storage nodes include more than one level of storage nodes, the central node may schedule the access order of the storage nodes of each level so that the resource access request initiator may quickly access the target resource. For example, when the internal storage nodes include a primary storage node and a secondary storage node, when the central node resolves the network domain name, a target network address pointing to the primary internal storage node may be resolved. Therefore, the resource access request initiates an HTTP request to the primary storage node, and when the target resource exists in the primary storage node, the target resource is directly fed back. When the target resource does not exist in the primary storage node, the primary storage node can initiate HTTP request check to the secondary storage node, and when the target resource exists in the secondary storage node, the target resource is fed back. When the target resource does not exist in the secondary storage node, the central node can search the resources stored in the central node, and when the target resource is searched, the target resource is transmitted to the primary storage node. When the target resource does not exist in the central node, the central node can initiate a request to the external storage node through the public network so as to acquire and store the target resource from the external storage node, and therefore the target resource can be fed back to the resource access request initiator.
It is understood that in the above scheduling order, the access level of the external storage node is higher than that of the internal storage node, that is, the internal storage node is accessed preferentially, and the external storage node is accessed when the internal storage node is not. The access level of the secondary storage node in the internal storage nodes is higher than that of the primary storage node, namely, the primary storage node is accessed preferentially, and the secondary storage node is accessed when the primary storage node is not available. It can be understood that the internal storage node may be configured with a single-level storage node, or may be configured with more than one-level storage nodes, and the access levels of the storage nodes of different levels may be set according to actual situations, for example, the access level of the first-level storage node may also be set to be higher than that of the second-level storage node, and the like, which is not limited herein in this embodiment of the application.
In one embodiment, considering that the storage capacity of the internal storage node is limited, the central node may rank the resources according to the access frequency from high to low, periodically delete the resources with ranking higher than the preset ranking, or delete the resources with access frequency lower than the preset frequency. Meanwhile, in consideration of the fact that the hot resources change continuously along with the change of time, the staff can store the current hot resources into each internal storage node regularly (or irregularly) so as to improve the access efficiency of the user for accessing the hot resources.
According to the resource access method, the central node and the internal storage node are deployed in the public place, and the central node accesses the local area network provided by the public place to acquire the resource access request. Wherein the resource access request includes a network domain name corresponding to a target resource to be accessed. The central node analyzes the network domain name to obtain a target network address pointing to the internal storage node, so that a resource access request initiator can access the internal storage node through the local area network to obtain a target resource. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved. In addition, the method has very strong expansibility, can be combined with various scenes to flexibly adjust and deploy the architecture to adapt to different requirements, can be implemented in various scenes, and has high flexibility.
In one embodiment, a public place is divided into more than one public area; the internal storage nodes comprise regional storage nodes deployed in each public region; the resource access request comprises an intranet address corresponding to a resource access request initiator; the intranet address corresponds to a public area where the resource access request initiator is located. Step S204, that is, the step of resolving the network domain name to obtain the target network address pointing to the internal storage node deployed in the public place includes: according to the intranet address, analyzing the network domain name to obtain a target network address; the target network address points to a regional storage node deployed in a public region where the resource access request initiator is located.
Specifically, when the area of the public place is large, the public place can be divided into more than one public area according to a preset rule, and each public area can be deployed with a corresponding area storage node. When a user is in a public area, the Access Point (AP) provided in the public area may be accessed through a terminal to Access a local area network in a public place. When the terminal accesses the APs provided by different public areas, the router may assign the terminal an intranet address corresponding to the public area. Therefore, when the terminal initiates a resource access request, the central node can guide the terminal to request to access the area storage node of the public area where the user is located according to the intranet address.
For example, when the public place is a high-speed rail place, different cars can be respectively used as a public area. Corresponding regional storage nodes are respectively deployed in the public regions, and the regional storage nodes can be realized through a bicycle server. When the central node analyzes the network domain name, the central node can analyze the network domain name according to the intranet address to obtain a single-car server corresponding to the carriage where the terminal is located. Therefore, the resource access request triggered by the user in the current carriage can access the corresponding bicycle server, and shunting management and control are realized.
In one embodiment, the resource access request method further includes a setting step of accessing a white list, and the step specifically includes: determining intranet address segments respectively configured with the public areas; and respectively setting the intranet addresses included in the intranet address segment corresponding to each public area as the access white list of the area storage nodes corresponding to each public area.
Specifically, each public area may provide an access point, and when a user accesses the access points provided in different areas through a terminal, the router may randomly allocate an intranet address in the intranet address segment corresponding to the access point to the terminal. The central node may predetermine intranet address segments respectively configured with each public area, and set the intranet addresses included in the intranet address segments corresponding to each public area as access white lists of the area storage nodes corresponding to the corresponding public areas respectively. Thus, when the terminal initiates a resource access request, the central node can determine the public area where the terminal is located according to the intranet address carried by the resource access request. Therefore, when the network domain name is analyzed, the region storage nodes corresponding to the public region are distributed to the network domain name, and shunt control is achieved.
In one embodiment, the central node may configure an access white list in advance in a code manner, where the access white list is also called a domain name white list, and may dynamically modify and adjust according to actual conditions at a later stage. By respectively setting the intranet addresses included in the intranet address segments corresponding to the public areas as the access white lists of the regional storage nodes corresponding to the corresponding public areas, the access to the corresponding regional storage nodes according to the resource access requests can be regulated and controlled according to the access white lists, and shunt control is achieved.
In the above embodiments, the public place is divided into more than one public area, and each public area is disposed with a corresponding area storage node. When a terminal initiates a resource access request, a central node can determine a public area where the terminal is located according to an intranet address carried by the resource access request, so that when a network domain name is analyzed, a region storage node corresponding to the public area is allocated to the terminal, shunt control is realized, and network resources are balanced.
In one embodiment, when the target resource is included in the regional storage node pointed to by the target network address, step S208, that is, in response to the resource access request, the step of feeding back the target resource through the internal storage node specifically includes: and responding to the resource access request, and directly feeding back the target resource searched from the resources stored in the regional storage nodes through the regional storage node pointed by the target network address.
Specifically, when a resource access request initiator initiates a resource acquisition request to a regional storage node pointed by a target network address, the regional storage node searches whether a target resource exists in the stored resources. When the regional storage node finds the target resource, the found target resource can be directly fed back to the resource access request initiator. In this way, the resource access request initiator can quickly access the target resource through the local area network.
In one embodiment, when the target resource is not included in the regional storage node pointed to by the target network address, the resource access method further includes: receiving a resource searching request initiated by a regional storage node; searching a target resource from a local or candidate storage node according to the resource searching request; the candidate storage nodes are deployed in other public areas except the public area corresponding to the intranet address in the public place; and transmitting the searched target resource to the regional storage node pointed by the target network address. Step S208, namely, the step of feeding back the target resource through the internal storage node in response to the resource access request, includes: and responding to the resource searching request, and feeding back the transmitted target resource through the regional storage node.
Specifically, when the target resource is not included in the regional storage node pointed to by the target network address, the regional storage node may initiate a resource search request to the central node. After receiving the resource searching request, the central node searches for the target resource from the local central node or the candidate storage nodes except the local storage node. The candidate storage nodes are deployed in other public areas except the public area corresponding to the intranet address in the public place. And the central node transmits the searched target resource to the regional storage node pointed by the target network address, so that the transmitted target resource is fed back through the regional storage node.
In one embodiment, when a higher-level storage node is deployed on a central server corresponding to a central node, a large amount of resources may be stored in the higher-level storage node. That is, the resources stored in the respective regional storage nodes are also stored on higher level storage nodes on the central server. Thus, when the region storage node corresponding to a certain public region does not find the target resource, the central node can find the target resource from the storage node of a higher level.
In one embodiment, the central node may provide the ability to store resources, i.e., a large amount of resources stored on the central node. It will be appreciated that the various regions store resources stored in the node, as well as being stored on the central node. Thus, when the region storage node corresponding to a certain public region does not find the target resource, the central node can search the target resource from the resources locally stored by the central node.
In one embodiment, the central node may search for the target resource from candidate storage nodes other than the regional storage node after receiving the resource search request. The central node plays a role in deployment. In one embodiment, the central node may store resource indexes corresponding to the regional storage nodes, so as to facilitate searching the target resource from the corresponding candidate storage node according to the resource indexes.
In one embodiment, when the central node finds the target resource, the target resource can be directly fed back to the resource access request initiator. Or, the central node may also transmit the found target resource to the regional storage node pointed by the target network address, and feed back the transmitted target resource through the regional storage node. The regional storage node, upon receiving the target resource, may store the target resource for subsequent use.
In an embodiment, when the target resource does not exist in the central node or the candidate storage node, that is, the target resource does not exist in the central node and the internal storage node, the central node may initiate a request to the external storage node through the public network to obtain the target resource from the external storage node and store the target resource, so that the target resource can be fed back to the resource access request initiator.
In the above embodiment, when the regional storage node to which the target network address points does not include the target resource, the target resource may be searched from the local or candidate storage node, so that the target resource is obtained in the intranet and fed back to the resource access request initiator, and the terminal user may quickly obtain the access content.
In a specific embodiment, the resource access method specifically includes the following steps:
s302, accessing a local area network provided by a public place to acquire a resource access request; the resource access request carries a network domain name corresponding to a target resource to be accessed and an intranet address corresponding to a resource access request initiator; a public place is divided into more than one public area; the intranet address corresponds to a public area where the resource access request initiator is located.
S304, analyzing the network domain name to obtain a target network address according to the intranet address through the internal domain name service operated in the central node; the target network address points to a regional storage node deployed in a public region where the resource access request initiator is located.
S306, feeding back the target network address to the resource access request initiator through the local area network; and the fed back target network address is used for indicating the resource access request initiating direction to request the target resource to be accessed by the regional storage node pointed by the target network address.
S308, when the regional storage node pointed by the target network address comprises the target resource, responding to the resource access request, and directly feeding back the target resource searched from the resources stored in the regional storage node through the regional storage node pointed by the target network address.
S310, when the target network address points to the regional storage node without the target resource, receiving a resource searching request initiated by the regional storage node.
S312, searching a target resource from a local or candidate storage node according to the resource searching request; the candidate storage nodes are deployed in other public areas except the public area corresponding to the internal network address in the public place.
And S314, transmitting the searched target resource to the regional storage node pointed by the target network address.
And S316, responding to the resource searching request, and feeding back the transmitted target resource through the regional storage node.
S318, when the target resource is not included in the internal storage node, the resource access request is forwarded to the external domain name service in the external network environment through the pre-allocated external network address, and the forwarded resource access request is used for indicating the external domain name service to analyze the network domain name to obtain the external network address pointing to the external storage node.
S320, accessing the pointed external storage node according to the external network address.
S322, obtaining the target resource fed back by the external storage node.
And S324, transmitting the acquired target resource to an internal storage node.
And S326, responding to the resource access request, and feeding back the target resource through the internal storage node.
According to the resource access method, the central node and the internal storage node are deployed in the public place, and the central node accesses the local area network provided by the public place to acquire the resource access request. Wherein the resource access request includes a network domain name corresponding to a target resource to be accessed. The central node analyzes the network domain name to obtain a target network address pointing to the internal storage node, so that a resource access request initiator can access the internal storage node through the local area network to obtain a target resource. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved. In addition, the method has very strong expansibility, can be combined with various scenes to flexibly adjust and deploy the architecture to adapt to different requirements, can be implemented in various scenes, and has high flexibility.
FIG. 3 is a flowchart illustrating a method for accessing resources according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in FIG. 4, in one embodiment, a method of resource access is provided. The embodiment is mainly illustrated by applying the method to the terminal 110 in fig. 1. Referring to fig. 4, the resource access method specifically includes the following steps:
s402, initiating a resource access request through a local area network provided by the current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed.
Specifically, a local area network can be established in a public place through pre-deployed network equipment, and a terminal can access the local area network by connecting a wireless network provided by the network equipment. The terminal can initiate a resource access request to the central node when detecting the preset operation, wherein the resource access request carries a network domain name corresponding to a target resource to be accessed.
In one embodiment, a user can connect to a local area network provided in a public place through a terminal and trigger a resource access request carrying a link address of a target resource to be accessed on the terminal, wherein the link address comprises a network domain name. The terminal can send the resource access request to the central node through the connected local area network. The central node receives the resource access request sent by the terminal by accessing a local area network provided by a public place.
In one embodiment, when a terminal connects to a local area network provided in a public place, the router automatically assigns an IP address, also called an intranet address, to the terminal. The terminal can realize interaction with other computer equipment through the allocated intranet address.
In an embodiment, step S402, namely, the step of initiating the resource access request through the local area network provided by the current public place, specifically includes: accessing a local area network provided by a current public place; displaying a content page, and displaying an access entry corresponding to a target resource to be accessed in the content page; when the trigger operation of the access entry occurs, determining a link address corresponding to the target resource; the link address includes a network domain name; and initiating a resource access request according to the link address through the accessed local area network.
The access entry is a trigger entry for jumping to a target resource display page, and the access entry may specifically be a title, a thumbnail, a preset entry, or the like of a target resource to be accessed. The trigger operation is a preset operation acting on the access entry, and the trigger operation may specifically be a touch operation, a cursor operation, a key operation, a voice operation, or the like. The touch operation can be touch click operation, touch press operation or touch slide operation, and the touch operation can be single-point touch operation or multi-point touch operation; the cursor operation can be an operation of controlling a cursor to click or an operation of controlling the cursor to press; the key operation may be a virtual key operation or a physical key operation, etc.
Specifically, the terminal may access a local area network provided in a public place where the terminal is currently located, and the terminal may display a content page and display an access entry corresponding to a target resource to be accessed in the content page. When the terminal detects the trigger operation of the access entrance, determining a link address corresponding to the target resource, wherein the link address comprises a network domain name. The terminal can initiate a resource access request to the central node through the accessed local area network according to the link address.
In the above embodiment, the access entry corresponding to the target resource to be accessed is displayed in the content page, and when the triggering operation for the access entry occurs, the link address corresponding to the target resource is determined, where the link address includes the network domain name, so that the resource access request can be initiated according to the link address corresponding to the target resource.
S404, receiving a target network address which is fed back by a central node deployed in a public place and points to an internal storage node deployed in the public place through a local area network; the target network address is obtained by analyzing the network domain name through the central node.
In one embodiment, after receiving the resource access request, the central node may perform domain name resolution on the network domain name carried by the resource network request through an internal domain name service running in the central node, so as to obtain a target network address corresponding to the network domain name. And feeds back the target network address to the terminal. Wherein the target network address points to an internal storage node deployed within a public place.
It can be understood that the worker may preset a network address corresponding to the network domain name, and then when the internal domain name service performs resolution, the internal domain name service may resolve the network domain name according to a corresponding relationship between the network domain name and the network address to obtain a corresponding target network address. When the network domain name does not have a network address associated with the network domain name, the central node can feed back feedback information such as 'no access' or 'domain name does not exist' to the terminal.
S406, according to the target network address, requesting the pointed internal storage node to access the target resource.
Specifically, the terminal may initiate a resource acquisition request, such as an HTTP request, to the internal storage node pointed to by the target network address according to the target network address. And after the target network address receives the resource acquisition request to the pointed internal storage node, searching the corresponding target resource in the stored resources.
In one embodiment, the step S406, namely, the step of requesting the internal storage node to which the target resource is directed to access the target resource according to the target network address specifically includes: initiating a resource acquisition request to an internal storage node according to a target network address and a resource index included by a link address; the resource obtaining request is used for indicating the internal storage node to search the corresponding target resource from the stored resources according to the resource index.
In one embodiment, the link address corresponding to the target resource to be accessed includes a resource index. The terminal can generate an HTTP request according to the target network address and the resource index, and send the HTTP request to the internal storage node corresponding to the target network address. And searching the corresponding target resource from the stored resources by the internal storage node according to the resource index.
It will be appreciated that an internal storage node may comprise a single level of storage nodes, or an internal storage node may comprise more than one level of storage nodes. The terminal can obtain the target resource according to the resource index. The way of acquiring the target resource by the terminal is different for different conditions. For different situations, for example, when the regional storage node pointed to by the target network address includes the target resource, when the regional storage node pointed to by the target network address does not include the target resource, and when the internal storage node does not include the target resource, and the like, the specific process of how the terminal acquires the target resource under different situations may refer to the specific description in the foregoing embodiments, and details are not described herein again.
In the above embodiment, the target resource can be accessed quickly and accurately according to the resource index included in the target network address and the link address.
S408, receiving the target resource fed back by the internal storage node through the local area network.
Specifically, the terminal may receive and display the target resource fed back by the internal storage node through the local area network. The user may browse or listen to the target resource. In one embodiment, when the terminal receives the target resource fed back by the internal storage node, the terminal may jump to a target resource presentation page to present the target resource.
According to the resource access method, the local area network provided by the current public place initiates the request for carrying the resource access, and the connected local area network receives the target network address which is fed back by the central node deployed in the current public place and points to the internal storage node deployed in the public place. Therefore, the target resource can be requested to be accessed from the internal storage node pointed by the target network address, so that the target resource can be quickly accessed through the local area network. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved.
In a specific application scenario, a public place is taken as a vehicle place for illustration, and referring to fig. 5, fig. 5 is an architecture diagram of a resource access system in one embodiment. The staff can deploy a central server, a cache server, relevant software and hardware settings and the like in the vehicle in advance (the software and hardware resources providing the resource access method can be collectively called 'somersault cloud'). When a user is in a vehicle, a local area network provided by the vehicle can be accessed through a user terminal (such as a mobile phone, a tablet computer, a notebook computer and the like shown in fig. 5), and a resource access method is triggered.
The 'wrestling cloud' enables the end user to quickly obtain the access content by sinking the CDN cache server to the local of the public place (i.e., introducing the content to be accessed to the local response of the public place). The 'somersault cloud' can also seamlessly access CDN edge nodes, other CDN nodes distributed all over the world and source station servers providing resources, so that high-speed transmission of the resources in a full link is guaranteed. Therefore, most of access requirements of users can be met through the local cache of the 'somersault cloud' and the CDN node cache. The 'somersault cloud' has very strong expansibility simultaneously, can combine all kinds of scene flexibility adjustment framework to adapt to the demand.
Taking a public place as an airplane place for example, referring to fig. 6, fig. 6 is an architecture diagram of a resource access system in an airplane scenario in one embodiment. As shown in fig. 6, a worker may deploy a "somersault cloud" in the vehicle in advance. When a user is in an airplane, the local area network provided by the airplane can be accessed through the vehicle-mounted terminal or the personal mobile terminal, and the resource access method is triggered. The 'wrestling cloud' enables the end user to quickly obtain the access content by sinking the CDN cache server to the local of the public place (i.e., introducing the content to be accessed to the local response of the public place). The 'somersault cloud' can also be connected with an Internet network access airport nearby node and a source station server (namely a content source) for providing resources through a satellite and a ground base station, and ensures high-speed transmission of the full link of the resources.
Taking a public place as a train place (such as a high-speed rail, train or subway place), referring to fig. 7, fig. 7 is a resource access system architecture diagram in a high-speed rail scenario in one embodiment. As shown in fig. 7, a train may provide a local area network in each car through a network device such as a router, and a single train server (which may be understood as an internal storage node as mentioned in the previous embodiments of the present application) is deployed in each car. A user may connect to the lan through a terminal, and when the terminal triggers a resource access request, the resource access request is received by a central server (the central server may be understood as a central node mentioned in the foregoing embodiments of the present application, and the central server may provide the capability of secondary caching and run with DNS service). And analyzing the network domain name carried in the resource access request through the DNS service to obtain a target network address pointing to the bicycle server corresponding to the carriage where the terminal is located. And the terminal accesses the bicycle server through the target network address. When the target resource does not exist in the first-level cache and the second-level cache provided by the 'somersault cloud', the 'somersault cloud' can also seamlessly access the CDN edge node and a source station server (namely a content source station) providing the resource, and the high-speed transmission of the full link of the resource is ensured.
With continued reference to fig. 8, fig. 8 is a hardware architecture diagram of "somersault cloud" in a high-speed rail scenario according to an embodiment. In which the hardware architecture diagram of each car is shown below fig. 8 (only 3 cars are shown). VSWs (Vehicular switches) of the respective cars are connected by GbE (Gigabit Ethernet) network lines. The LVS (Local vehicle Server, i.e., the bicycle Server mentioned in the previous embodiment of the present application) of each car is connected to the VSW of each car through a GbE network. Each car may provide an Access Point to a local area network through an AP (Access Point) connected to the LVS. Wherein, the LVS and the AP are connected through a PoE (Power Over Ethernet) network. For the Central car, a CVS (Central vehicle Server) may be deployed, and the CVS is connected to the LVS in the car through a GbE network cable. Meanwhile, the CVS is connected to the network device VMA through a radio frequency line, and is connected to an external GPS (Global Positioning System) satellite, a beidou satellite, a cellular network, a station AP, and the like through the VMA to connect to the internet. Continuing to refer to the upper right corner of fig. 8, the upper right corner of fig. 8 is a management background, and the operation and maintenance system, the service system, the portal system, and the like can be connected to the external network through the core switch and the firewall, and communicate with the train through the external network to acquire the resource access condition in the train network. The management background, the Operation and Maintenance system and the service system can specifically realize access through a VPN/AAA/OAM (VPN, Virtual Private Network; AAA, Authentication and Authorization Accounting, Authentication server; OAM, Operation and Authorization management server).
Referring to fig. 9, fig. 9 is a flowchart illustrating a resource access method in an embodiment. Referring to fig. 9, for a file that has been accessed by a user terminal in a current car, in a scene that passengers in other cars are to access, since the file exists in a secondary cache of a "somersault cloud" system, the user terminal may obtain the file inside a local area network. For the above scenario, the following is detailed:
first, referring to step 1 in fig. 9, the passenger may connect to WiFi (Wireless Fidelity, i.e., the local area network mentioned in the previous embodiment of the present application) on the train through the terminal to obtain the intranet IP address. Referring to step 2 in fig. 9, the passenger may request the file through the terminal, trigger the resource access request, and then request to access the central server, perform domain name resolution by using the DNS service on the central server, and guide the terminal to request to access the corresponding bicycle server according to the domain name white list. Referring to step 3 in fig. 9, the terminal initiates an HTTP request to the corresponding single car server, and if the file is cached in the current car, the current file is directly returned to complete transmission. And if the file is not cached in the current compartment through the 'somersault cloud', initiating HTTP request check to a secondary cache of the central server, finding that the file exists, and acquiring the file. Referring to step 4 in fig. 9, the document is transmitted to the passenger's terminal. In the process, all the processes are completed in the local area network, a request does not need to be initiated to a CDN edge node or a content source station, and no public network flow is generated. For a file that does not exist in the secondary cache, referring to step 5 in fig. 9, "the churn cloud" accesses the CDN edge node or the content source station through the public network to acquire the file and deliver the file to the passenger's terminal.
As shown in fig. 10, in one embodiment, a resource access device 1000 is provided that includes an acquisition module 1001, a parsing module 1002, and a feedback module 1003. Wherein:
an obtaining module 1001, configured to obtain a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed.
The analyzing module 1002 is configured to analyze a network domain name to obtain a target network address pointing to an internal storage node deployed in a public place.
The feedback module 1003 is configured to feed back a target network address through the local area network, and trigger to request the internal storage node to access the target resource according to the fed-back target network address.
The feedback module 1003 is further configured to feed back the target resource through the internal storage node in response to the resource access request.
In one embodiment, the resolution module 1002 is further configured to resolve the network domain name through an internal domain name service running in the central node, so as to obtain a target network address pointing to an internal storage node deployed in a public place.
In one embodiment, the feedback module 1003 is further configured to feed back the target network address to the resource access request initiator through the local area network; and the fed back target network address is used for indicating the resource access request initiator to request the internal storage node pointed by the target network address to access the target resource.
In one embodiment, a public place is divided into more than one public area; the internal storage nodes comprise regional storage nodes deployed in each public region; the resource access request comprises an intranet address corresponding to a resource access request initiator; the intranet address corresponds to a public area where the resource access request initiator is located. The resolution module 1002 is further configured to perform resolution on the network domain name according to the intranet address to obtain a target network address; the target network address points to a regional storage node deployed in a public region where the resource access request initiator is located.
In one embodiment, when the target resource is included in the regional storage node pointed to by the target network address, the feedback module 1003 is further configured to directly feed back, in response to the resource access request, the target resource found from the resources stored in the regional storage node through the regional storage node pointed to by the target network address.
In one embodiment, when the target resource is not included in the regional storage node pointed to by the target network address, the resource access apparatus 1000 further includes:
a receiving module 1004, configured to receive a resource lookup request initiated by a regional storage node.
A searching module 1005, configured to search for a target resource from a local or candidate storage node according to a resource search request; the candidate storage nodes are deployed in other public areas except the public area corresponding to the internal network address in the public place.
And a transferring module 1006, configured to transfer the found target resource to the regional storage node pointed by the target network address.
The feedback module 1003 is further configured to feed back the delivered target resource through the regional storage node in response to the resource search request.
In one embodiment, the resource access device 1000 further comprises a determination module 1007 and a setting module 1008, wherein,
a determining module 1007, configured to determine intranet address segments configured with each public area respectively.
A setting module 1008, configured to set the intranet addresses included in the intranet address segment corresponding to each public area as an access white list of the area storage nodes corresponding to the corresponding public area, respectively.
Referring to fig. 11, in one embodiment, when the target resource is not included in the internal storage node, the resource access apparatus further includes:
a forwarding module 1009, configured to forward the resource access request to an external domain name service in an external network environment through the pre-allocated external network address, where the forwarded resource access request is used to instruct the external domain name service to resolve a network domain name, so as to obtain an external network address pointing to an external storage node.
The accessing module 1010 is configured to access the external storage node to which the external storage node is directed according to the external network address.
The obtaining module 1001 is further configured to obtain a target resource fed back by the external storage node.
The transfer module 1006 is further configured to transfer the acquired target resource to an internal storage node.
The resource access device deploys a central node and an internal storage node in a public place, and the central node accesses a local area network provided by the public place to acquire a resource access request. Wherein the resource access request includes a network domain name corresponding to a target resource to be accessed. The central node analyzes the network domain name to obtain a target network address pointing to the internal storage node, so that a resource access request initiator can access the internal storage node through the local area network to obtain a target resource. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved. In addition, the method has very strong expansibility, can be combined with various scenes to flexibly adjust and deploy the architecture to adapt to different requirements, can be implemented in various scenes, and has high flexibility.
As shown in fig. 12, in one embodiment, a resource access apparatus 1200 is provided that includes an initiating module 1201, a receiving module 1202, and a request access module 1203. Wherein:
an initiating module 1201, configured to initiate a resource access request through a local area network provided in a current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed.
A receiving module 1202, configured to receive, through a local area network, a target network address that is fed back by a central node deployed in a public place and points to an internal storage node deployed in the public place; the target network address is obtained by analyzing the network domain name through the central node.
A request accessing module 1203, configured to request, according to the target network address, to access the target resource from the pointed internal storage node.
The receiving module 1202 is further configured to receive, through the local area network, a target resource fed back by the internal storage node.
In one embodiment, the initiating module 1201 is further configured to access a local area network provided by a current public place; displaying a content page, and displaying an access entry corresponding to a target resource to be accessed in the content page; when the trigger operation of the access entry occurs, determining a link address corresponding to the target resource; the link address includes a network domain name; and initiating a resource access request according to the link address through the accessed local area network.
In an embodiment, the request accessing module 1203 is further configured to initiate a resource obtaining request to the internal storage node according to a resource index included in the target network address and the link address; the resource obtaining request is used for indicating the internal storage node to search the corresponding target resource from the stored resources according to the resource index.
The resource access device initiates a request for carrying resource access through a local area network provided by the current public place, and receives a target network address which is fed back by a central node deployed in the current public place and points to an internal storage node deployed in the public place through the connected local area network. Therefore, the target resource can be requested to be accessed from the internal storage node pointed by the target network address, so that the target resource can be quickly accessed through the local area network. Therefore, by sinking the storage node to the public place where the actual user terminal is located, most hot spot resources can be stored in the internal storage node deployed in the public place, when the user needs to access the resources, a large amount of public network outlet bandwidth cost can be saved for the user, and the efficiency of resource access is greatly improved.
FIG. 13 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the terminal 110 or the central node 120 in fig. 1. As shown in fig. 13, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the resource access method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a resource access method.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the resource access apparatus provided in the present application may be implemented in the form of a computer program, which is executable on a computer device as shown in fig. 13. The memory of the computer device may store various program modules constituting the resource access apparatus, such as the acquisition module, the parsing module, and the feedback module shown in fig. 10. The computer program constituted by the respective program modules causes the processor to execute the steps in the resource access method of the respective embodiments of the present application described in the present specification. Also for example, the initiating module, receiving module, and request access module shown in FIG. 12. The computer program constituted by the respective program modules causes the processor to execute the steps in the resource access method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 13 may execute step S202 by an acquisition module in the resource access apparatus shown in fig. 10. The computer device may perform step S204 through the parsing module. The computer device may perform step S206 and step S208 through the feedback module.
For example, the computer device shown in fig. 13 may execute step S402 by an initiating module in the resource access apparatus shown in fig. 12. The computer device may perform step S404 and step S408 through the receiving module. The computer device may perform step S406 by requesting the access module.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described resource access method. The steps of the resource access method herein may be steps in the resource access methods of the various embodiments described above.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the above-described resource access method. The steps of the resource access method herein may be steps in the resource access methods of the various embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (22)

1. A resource access method is applied to a central node deployed in a public place, wherein the public place is divided into more than one public area, and the method comprises the following steps:
obtaining a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed and an intranet address corresponding to a public area where a resource access request initiator is located;
analyzing the network domain name according to the intranet address to obtain a target network address pointing to a regional storage node corresponding to an access white list where the intranet address is located; the access white list is obtained by correspondingly setting the intranet address included in the intranet address section configured in the corresponding public area and the area storage node deployed in the corresponding public area in advance;
feeding back the target network address through the local area network, and triggering to request the pointed regional storage node to access the target resource according to the fed back target network address;
and responding to the resource access request, and feeding back the target resource through the regional storage node.
2. The method according to claim 1, wherein the analyzing the network domain name to obtain a target network address pointing to a regional storage node corresponding to a visited white list where the intranet address is located comprises:
and analyzing the network domain name through an internal domain name service operated in the central node to obtain a target network address pointing to a regional storage node corresponding to an access white list of the intranet address.
3. The method of claim 1, wherein the feeding back the target network address through the local area network and triggering a request for accessing the target resource from a pointed regional storage node according to the fed back target network address comprises:
feeding back the target network address to a resource access request initiator through the local area network; and the fed back target network address is used for indicating the resource access request initiator to request the target resource to be accessed by the regional storage node pointed by the target network address.
4. The method of claim 1, wherein when the target resource is included in a local storage node pointed to by the target network address, the feeding back the target resource through the local storage node in response to the resource access request comprises:
and responding to the resource access request, and directly feeding back the target resource searched from the resources stored in the regional storage node through the regional storage node pointed by the target network address.
5. The method of claim 1, wherein when the target resource is not included in the regional storage node pointed to by the target network address, the method further comprises:
receiving a resource searching request initiated by the regional storage node;
searching the target resource from a local or candidate storage node according to the resource searching request; the candidate storage nodes are deployed in other public areas except the public area corresponding to the internal network address in the public place;
and transmitting the searched target resource to a regional storage node pointed by the target network address.
6. The method of claim 1, further comprising:
determining an internal network address segment configured with each public area respectively;
and respectively setting the intranet addresses included in the intranet address segment corresponding to each public area as the access white list of the area storage nodes corresponding to the corresponding public area.
7. The method according to any one of claims 1 to 6, wherein when the target resource is not included in the regional storage node, before the feeding back the target resource through the regional storage node in response to the resource access request, the method further comprises:
forwarding the resource access request to an external domain name service in an external network environment through a pre-allocated external network address, wherein the forwarded resource access request is used for indicating the external domain name service to analyze the network domain name to obtain an external network address pointing to an external storage node;
accessing the external storage node pointed by the external network address;
acquiring target resources fed back by the external storage nodes;
and transmitting the acquired target resource to the regional storage node.
8. A method of resource access, comprising:
initiating a resource access request through a local area network provided by a current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed and an intranet address corresponding to one public area in a current public place;
receiving a target network address which is fed back by a central node deployed in the public place and points to an area storage node corresponding to an access white list where the internal network address is located through the local area network; the target network address is obtained by analyzing the network domain name through the central node; the access white list is obtained by correspondingly setting the intranet address included in the intranet address section configured in the corresponding public area and the area storage node deployed in the corresponding public area in advance;
according to the target network address, requesting to access the target resource from the pointed regional storage node;
and receiving the target resource fed back by the regional storage node through the local area network.
9. The method of claim 8, wherein initiating the resource access request through a local area network provided by the current public location comprises:
accessing a local area network provided by a current public place;
displaying a content page, and displaying an access entry corresponding to a target resource to be accessed in the content page;
when the trigger operation of the access entry occurs, determining a link address corresponding to the target resource; the link address comprises a network domain name;
and initiating a resource access request according to the link address through the accessed local area network.
10. The method of claim 9, wherein requesting access to the target resource from the targeted local storage node according to the target network address comprises:
initiating a resource acquisition request to the regional storage node according to the target network address and the resource index included in the link address; and the resource acquisition request is used for indicating the regional storage node to search corresponding target resources from the stored resources according to the resource index.
11. A resource access apparatus for use in a central node deployed in a public space, the public space being divided into more than one public area, the apparatus comprising:
the acquisition module is used for acquiring a resource access request by accessing a local area network provided by a public place; the resource access request carries a network domain name corresponding to a target resource to be accessed and an intranet address corresponding to a public area where a resource access request initiator is located;
the analysis module is used for analyzing the network domain name according to the intranet address to obtain a target network address pointing to a regional storage node corresponding to an access white list of the intranet address; the access white list is obtained by correspondingly setting the intranet address included in the intranet address section configured in the corresponding public area and the area storage node deployed in the corresponding public area in advance;
the feedback module is used for feeding back the target network address through the local area network and triggering to request the pointed regional storage node to access the target resource according to the fed back target network address;
the feedback module is further configured to feed back the target resource through the regional storage node in response to the resource access request.
12. The apparatus according to claim 11, wherein the resolution module is further configured to perform resolution on the network domain name through an internal domain name service running in the central node, so as to obtain a target network address pointing to a regional storage node corresponding to a white list where the intranet address is located.
13. The apparatus of claim 11, wherein the feedback module is further configured to feed back the target network address to a resource access request initiator through the local area network; and the fed back target network address is used for indicating the resource access request initiator to request the target resource to be accessed by the regional storage node pointed by the target network address.
14. The apparatus according to claim 11, wherein when the target resource is included in the regional storage node pointed to by the target network address, the feedback module is further configured to directly feed back, in response to the resource access request, the target resource found from the resources stored in the regional storage node through the regional storage node pointed to by the target network address.
15. The apparatus of claim 11, wherein when the target resource is not included in the regional storage node pointed to by the target network address, the apparatus further comprises:
a receiving module, configured to receive a resource search request initiated by the area storage node;
the searching module is used for searching the target resource from a local or candidate storage node according to the resource searching request; the candidate storage nodes are deployed in other public areas except the public area corresponding to the internal network address in the public place;
and the transmission module is used for transmitting the searched target resource to the regional storage node pointed by the target network address.
16. The apparatus of claim 11, further comprising:
the determining module is used for determining the intranet address segments respectively configured with the public areas;
and the setting module is used for respectively setting the intranet addresses included in the intranet address section corresponding to each public area as the access white list of the area storage nodes corresponding to the corresponding public area.
17. The apparatus according to any of claims 11 to 16, wherein when the target resource is not included in the regional storage node, the apparatus further comprises:
the forwarding module is used for forwarding the resource access request to an external domain name service in an external network environment through a pre-allocated external network address, and the forwarded resource access request is used for indicating the external domain name service to analyze the network domain name to obtain an external network address pointing to an external storage node;
the access module is used for accessing the external storage node pointed by the external network address;
the acquisition module is further configured to acquire a target resource fed back by the external storage node;
and the transfer module is used for transferring the acquired target resource to the regional storage node.
18. A resource access device, comprising:
the initiating module is used for initiating a resource access request through a local area network provided by the current public place; the resource access request carries a network domain name corresponding to a target resource to be accessed and an intranet address corresponding to one public area in a current public place;
a receiving module, configured to receive, through the local area network, a target network address that is fed back by a central node deployed in the public place and points to an area storage node corresponding to an access white list where the intranet address is located; the target network address is obtained by analyzing the network domain name through the central node; the access white list is obtained by correspondingly setting the intranet address included in the intranet address section configured in the corresponding public area and the area storage node deployed in the corresponding public area in advance;
the request access module is used for requesting to access the target resource from the pointed regional storage node according to the target network address;
the receiving module is further configured to receive, through the local area network, the target resource fed back by the area storage node.
19. The apparatus of claim 18, wherein the initiating module is further configured to access a local area network provided by a current public place; displaying a content page, and displaying an access entry corresponding to a target resource to be accessed in the content page; when the trigger operation of the access entry occurs, determining a link address corresponding to the target resource; the link address comprises a network domain name; and initiating a resource access request according to the link address through the accessed local area network.
20. The apparatus according to claim 19, wherein the request access module is further configured to initiate a resource obtaining request to the local storage node according to a resource index included in the target network address and the link address; and the resource acquisition request is used for indicating the regional storage node to search corresponding target resources from the stored resources according to the resource index.
21. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 10.
22. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 10.
CN201910388309.5A 2019-05-10 2019-05-10 Resource access method, device, storage medium and computer equipment Active CN110213339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910388309.5A CN110213339B (en) 2019-05-10 2019-05-10 Resource access method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910388309.5A CN110213339B (en) 2019-05-10 2019-05-10 Resource access method, device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN110213339A CN110213339A (en) 2019-09-06
CN110213339B true CN110213339B (en) 2021-12-14

Family

ID=67785736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910388309.5A Active CN110213339B (en) 2019-05-10 2019-05-10 Resource access method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110213339B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110708402A (en) * 2019-09-30 2020-01-17 北京奇艺世纪科技有限公司 Accessible resource display method and device and resource access system
CN110971689B (en) * 2019-11-29 2022-10-11 广州市百果园信息技术有限公司 System installation method, device, system, equipment and storage medium
CN113315848B (en) * 2020-02-27 2023-04-21 阿里巴巴集团控股有限公司 Access control method, device and equipment
CN111355731B (en) * 2020-02-28 2022-09-30 北京奇艺世纪科技有限公司 Resource access method, device, resource access system, equipment and storage medium
CN111885063B (en) * 2020-07-23 2022-08-02 平安付科技服务有限公司 Open source system access control method, device, equipment and storage medium
CN112713924A (en) * 2021-03-23 2021-04-27 南通先进通信技术研究院有限公司 Working method of CDN network system based on satellite communication
CN114765580B (en) * 2020-12-30 2023-11-03 腾讯科技(深圳)有限公司 Network acceleration method, device, equipment and storage medium for off-domain network resources
CN113421557A (en) * 2021-06-22 2021-09-21 广州小鹏汽车科技有限公司 Voice interaction method, voice interaction system and storage medium
CN116887287B (en) * 2023-08-30 2023-12-08 荣耀终端有限公司 Communication method, medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581248A (en) * 2012-07-31 2014-02-12 中兴通讯股份有限公司 Method and device for providing content distribution network CDN service
CN104202360A (en) * 2014-08-13 2014-12-10 小米科技有限责任公司 Webpage access method, device and router
CN104935680A (en) * 2015-06-18 2015-09-23 中国互联网络信息中心 Recursive domain name service system and method of multi-level shared cache
CN105744373A (en) * 2016-02-23 2016-07-06 福建星网视易信息系统有限公司 Streaming media playing method and system based on Internet
CN106034344A (en) * 2015-03-12 2016-10-19 腾讯科技(深圳)有限公司 Method and device for data transmission
CN106453117A (en) * 2016-11-10 2017-02-22 珠海市魅族科技有限公司 Method and device for processing network resources
CN109688100A (en) * 2018-09-07 2019-04-26 平安科技(深圳)有限公司 NAT penetrating method, device, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427005B (en) * 2013-08-20 2018-01-02 阿里巴巴集团控股有限公司 The method and system that request is accurately dispatched are realized on CDN
EP2912830B1 (en) * 2014-01-08 2016-01-06 Telefonaktiebolaget L M Ericsson (publ) Method, node and distributed system for configuring a network of cdn caching nodes
US9137217B1 (en) * 2014-05-16 2015-09-15 Iboss, Inc. Manage encrypted network traffic using DNS responses
CN105141621A (en) * 2015-09-16 2015-12-09 北京星网锐捷网络技术有限公司 Network access monitoring method and device
CN105897942A (en) * 2015-09-17 2016-08-24 乐视云计算有限公司 Domain name resolution system and domain name resolution method
US10834449B2 (en) * 2016-12-31 2020-11-10 The Nielsen Company (Us), Llc Methods and apparatus to associate audience members with over-the-top device media impressions
CN108777709A (en) * 2018-05-31 2018-11-09 康键信息技术(深圳)有限公司 Website access method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581248A (en) * 2012-07-31 2014-02-12 中兴通讯股份有限公司 Method and device for providing content distribution network CDN service
CN104202360A (en) * 2014-08-13 2014-12-10 小米科技有限责任公司 Webpage access method, device and router
CN106034344A (en) * 2015-03-12 2016-10-19 腾讯科技(深圳)有限公司 Method and device for data transmission
CN104935680A (en) * 2015-06-18 2015-09-23 中国互联网络信息中心 Recursive domain name service system and method of multi-level shared cache
CN105744373A (en) * 2016-02-23 2016-07-06 福建星网视易信息系统有限公司 Streaming media playing method and system based on Internet
CN106453117A (en) * 2016-11-10 2017-02-22 珠海市魅族科技有限公司 Method and device for processing network resources
CN109688100A (en) * 2018-09-07 2019-04-26 平安科技(深圳)有限公司 NAT penetrating method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
采用Nginx远程访问图书馆内网数字资源;宿大东;《内蒙古科技与经济》;20131010(第13期);全文 *

Also Published As

Publication number Publication date
CN110213339A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110213339B (en) Resource access method, device, storage medium and computer equipment
US20210176226A1 (en) System and method for providing a content delivery network via a motor vehicle
JP2000276425A (en) Information distribution system, mobile computer, cache server device, manageing device, and cache control method
US11224078B2 (en) Multi-operator MEC sharing based on user equipment location
EP2618595A2 (en) Mobile WiFi network
CN103369527A (en) Method, device and system for WiFi (wireless fidelity) network sharing
KR20180098798A (en) Method for allocating resources to a mobile terminal in an edge cloud and apparatus thereof
EP3177041A1 (en) Method for transmitting content between terminals through service control device link
US20190268768A1 (en) System and method for creating and managing wireless networks
US20170201875A1 (en) Device-to-device content providing method
KR20160011304A (en) System and method for providing advertisement based on web using wifi network
KR20220048484A (en) A system for providing accurate communication delay guarantee of request response for distributed services
CN110336794B (en) Intranet access method, system and related device
CN111629078A (en) Server scheduling method and device and server scheduling system
CN111510491B (en) Resource access method, cache server, storage medium and electronic device
US20140293929A1 (en) Information pushing method, information pushing system and information transmitter
US9185556B2 (en) Method and system for forming a common network using shared private wireless networks
KR101559693B1 (en) Communication method and apparatus in vehicular ad-hoc network based on LTE-D2D
CN103379148A (en) Cloud calculator and method for processing files through cloud calculator
KR101361549B1 (en) System for delivering ip packet based on contents id and method thereof
CN110324826B (en) Intranet access method and related device
CN110336851B (en) Content access processing method and device, computer equipment and storage medium
CN104717309A (en) Network-service providing method, device and system
KR101093047B1 (en) System for supplying data using multi-channel of full browsing service and method thereof
CN115503783B (en) Information interaction system based on transparent display car window

Legal Events

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