CN116320032A - Content distribution system, method, electronic device, and storage medium - Google Patents

Content distribution system, method, electronic device, and storage medium Download PDF

Info

Publication number
CN116320032A
CN116320032A CN202310267440.2A CN202310267440A CN116320032A CN 116320032 A CN116320032 A CN 116320032A CN 202310267440 A CN202310267440 A CN 202310267440A CN 116320032 A CN116320032 A CN 116320032A
Authority
CN
China
Prior art keywords
edge node
domain name
name resolution
service instance
edge
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.)
Pending
Application number
CN202310267440.2A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202310267440.2A priority Critical patent/CN116320032A/en
Publication of CN116320032A publication Critical patent/CN116320032A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

In the embodiment of the application, the same edge node group is used as granularity to perform domain name resolution, so that the edge node can access the edge node in the same edge node group nearby to obtain required content resources, the nearby distribution of the content resources is realized, the bandwidth pressure is reduced, the bandwidth resources are saved, the occurrence probability of the situation that the content resources are accessed slowly or even cannot be accessed can be effectively reduced, and the access acceleration can be realized without building special lines or other more special network solutions particularly in the scene of a weak network environment or a unidirectional network. In addition, daily access traffic is basically between edge nodes, and the traffic cost of the technical scheme provided by the embodiment of the application in practical application is almost 0, so that very large bandwidth saving is brought.

Description

Content distribution system, method, electronic device, and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a content distribution system, a method, an electronic device, and a storage medium.
Background
At present, the more common content distribution modes are: all content resource acquisition requests at the edge side are directly sent to the content resource providing end at the center side through the public network so as to acquire the required content resources from the content resource providing end at the center side. However, as the content resource acquisition requests on the edge side increase, the bandwidth pressure between the edge side and the center side is larger and larger, and the consumed bandwidth resources are larger and larger, so that the problem that the content resources are slowly accessed or even cannot be accessed easily occurs, especially in a weak network environment or a network unidirectional visible scene.
Disclosure of Invention
Aspects of the present application provide a content distribution system, method, electronic device, and storage medium, which are used to alleviate bandwidth pressure of content resource access, and solve the problem that content resource access is slow, or even impossible.
The embodiment of the application provides a content distribution system, which comprises: a domain name resolution node and at least one edge node group, the edge node group comprising at least two edge nodes; the method comprises the steps that a first edge node in a first edge node group is used for sending a first domain name resolution request to a domain name resolution node through a first service instance deployed by the first edge node group, receiving an access address of a second service instance deployed on a second edge node returned by the domain name resolution node, and sending a content resource acquisition request to the second edge node through the first service instance according to the access address of the second service instance, wherein the second edge node is in the first edge node group; a domain name resolution node for performing domain name resolution according to the first domain name resolution request to determine an access address of a second service instance deployed on the second edge node from access addresses of service instances deployed on respective edge nodes of the first edge node group, except the first edge node; and the second edge node is used for responding to the content resource acquisition request through the second service instance to acquire the first content resource and returning the first content resource to the first edge node.
The embodiment of the application also provides a content distribution method which is applied to a first edge node in any first edge node group in a content distribution system, wherein the content distribution system comprises a domain name resolution node and at least one edge node group, and any edge node group comprises at least two edge nodes in the same local area network; the method comprises the following steps: sending a first domain name resolution request to a domain name resolution node through a first service instance deployed on a first edge node; receiving an access address of a second service instance deployed on a second edge node returned by the domain name resolution node, wherein the second edge node is in the first edge node group; and sending a content resource acquisition request to the second edge node according to the access address of the second service instance through the first service instance, and receiving the first content resource returned by the second edge node through the second service instance.
The embodiment of the application also provides a content distribution method, which is applied to a domain name resolution node in a content distribution system, and the content distribution system further comprises: at least one edge node group, any one edge node group comprising at least two edge nodes within the same local area network; the method comprises the following steps: receiving a first domain name resolution request sent by a first edge node in a first edge node group through a first service instance deployed by the first edge node group; performing domain name resolution according to the first domain name resolution request to determine an access address of a second service instance deployed on the second edge node from access addresses of service instances deployed on respective edge nodes of the first edge node group, except the first edge node.
The embodiment of the application also provides electronic equipment, which comprises: a memory and a processor; a memory for storing a computer program; the processor is coupled to the memory for executing the computer program for performing the steps in the content distribution method.
The present embodiments also provide a computer-readable storage medium storing a computer program, which when executed by a processor, causes the processor to implement steps in a content distribution method.
In the embodiment of the application, the same edge node group is used as granularity to carry out domain name resolution, so that the edge nodes can access the edge nodes in the same edge node group nearby to obtain the required content resources, the nearby distribution of the content resources is realized, the bandwidth pressure is reduced, the bandwidth resources are saved, the occurrence probability of situations that the content resources are accessed slowly or even cannot be accessed can be effectively reduced, and particularly, under the situation that a weak network environment or a network is visible in one direction, a special line or other more special network solutions are not required to be built, and the access acceleration can be realized. In addition, daily access traffic is basically between edge nodes, and the traffic cost of the technical scheme provided by the embodiment of the application in practical application is almost 0, so that very large bandwidth saving is brought.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a system architecture diagram of an exemplary content distribution system provided in an embodiment of the present application;
fig. 2 is a signaling interaction diagram of a content distribution method according to an embodiment of the present application;
fig. 3 is a signaling interaction diagram of another content distribution method according to an embodiment of the present application;
fig. 4 is a flowchart of a content distribution method according to an embodiment of the present application;
FIG. 5 is a flowchart of another content distribution method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another data processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
In embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or" describes the access relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may represent: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. In the text description of the present application, the character "/" generally indicates that the front-rear association object is an or relationship. In addition, the "first", "second", "third", etc. in the embodiments of the present application are only for distinguishing the content of different objects, and have no other special meaning.
One common way of content distribution is: all content resource acquisition requests at the edge side are directly sent to the content resource providing end at the center side through the public network so as to acquire the required content resources from the content resource providing end at the center side. However, as the content resource acquisition requests on the edge side increase, the bandwidth pressure between the edge side and the center side is larger and larger, and the consumed bandwidth resources are larger and larger, so that the problem that the content resources are slowly accessed or even cannot be accessed easily occurs, especially in a weak network environment or a network unidirectional visible scene.
Another common way of content distribution is: content delivery using a content delivery network (Content Delivery Network, CDN for short) is common. However, the operation of the CDN is based on the need to geographically widely distribute a plurality of edge nodes, and distribute content resources to the respective edge nodes through a distribution network of the CDN, and a user accesses the nearby edge nodes through a public network to obtain the required content resources. However, in a private cloud or a private cloud environment, the user does not necessarily have access capability of the public network, or even if the user has access capability of the public network, edge nodes of the CDN are not necessarily distributed around the user, so that a problem that access of content resources is slow or even impossible occurs.
Therefore, in the embodiment of the application, domain name resolution is performed by taking the same edge node group as granularity, so that the edge node can access the edge node in the same edge node group nearby to obtain the required content resource, the nearby distribution of the content resource is realized, the bandwidth pressure is reduced, the bandwidth resource is saved, the occurrence probability of the situation that the content resource is accessed slowly or even cannot be accessed can be effectively reduced, and particularly, under the situation that a weak network environment or a network is visible unidirectionally, special lines or other more special network solutions are not required to be set up, and the access acceleration can be realized. In addition, daily access traffic is basically between edge nodes, and the traffic cost of the technical scheme provided by the embodiment of the application in practical application is almost 0, so that very large bandwidth saving is brought.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a system architecture diagram of an exemplary content distribution system according to an embodiment of the present application. Referring to fig. 1, the content distribution system may include: at least one edge node group, such as edge node group 1 through edge node group 2 in fig. 1, any one edge node group may include at least two edge nodes, in fig. 1, edge node group 1 includes edge node 1-1 through edge node 1-3, edge node group 2 includes edge node 2-1 through edge node 2-3, service instances are deployed on at least some of the at least one edge nodes, edge node 1-1 in fig. 1 is deployed with service instance 1, edge node 1-2 is deployed with service instance 2 and service instance 3, edge node 1-2 is deployed with service instance 4, edge node 2-1 is deployed with service instance 1, edge node 2-2 is deployed with service instance 2 and service instance 3, and edge node 2-3 is deployed with service instance 4. It is noted that the same service instance may be deployed on a plurality of different edge nodes, without limitation.
In this embodiment, the network where the edge nodes in the same edge node group are located is not limited, as long as the network quality where the edge nodes in the same edge node group are located is good. Further optionally, the edge nodes in the same edge node group are in the same local area network, so that one edge node in the same edge node group can access another edge node through the local area network, and access to another edge node through a public network is not needed, thereby reducing bandwidth pressure and saving bandwidth resources. In addition, the network quality of the local area network is relatively good, the occurrence probability of situations that the access of content resources is slow or even the access cannot be realized can be effectively reduced, and particularly, the access acceleration can be realized under a weak network environment or a scene that the network is unidirectionally visible without setting up a special line or other more special network solutions.
In the present embodiment, the number of edge nodes included in the edge node group is not limited. Several service instances may be deployed in all or part of the edge nodes. Among them, service Instance (Instance) is the smallest unit that cloud service vendors provide cloud services. In practical applications, cloud service vendors provide multiple types of instances, for example, provide an instance of an AI (Artificial Intelligence ) model, various application scenario instances for performing prediction processing based on the AI (Artificial Intelligence ) model, a load balancing instance, a database instance, and a cloud server instance, where the application scenario instances include, for example, but are not limited to: citizens travel and take advantage of public transport prediction examples, advertisement click behavior prediction examples or user scoring prediction examples.
Further, referring to fig. 1, the content distribution system further includes a domain name resolution node responsible for domain name resolution. When any edge node needs to access a service instance of a certain edge node, the domain name resolution node needs to be requested to perform domain name resolution on the domain name of the service instance to be accessed, the access address of the service instance to be accessed is obtained, the corresponding service instance is accessed based on the access address of the service instance to be accessed, and the required content resource is obtained. Access addresses include, for example, but are not limited to: IP (Internet Protocol ) address and/or port number of the service instance to be accessed. Content resources include, for example, but are not limited to: video data, audio data, text data, image data, application installation packages, or data compression packages. Data compression packets include, for example, but are not limited to: data compression packet of AI model.
Further optionally, referring to fig. 1, the content distribution system may further include an access portal for accessing the content distribution system through the access portal to obtain the required content resources independent of an external access terminal external to the content distribution system.
In this embodiment, any edge node in any edge node group can locally cache corresponding content resources, so that the edge node can provide content distribution service for the outside, and thus, other edge nodes or external access terminals in the same edge node group can access nearby to obtain the required content resources, so that the frequency of obtaining the required content resources by a content resource providing terminal at a remote access center side is greatly reduced, bandwidth pressure is reduced, bandwidth resources are saved, the occurrence probability of situations that the content resources are accessed slowly or even cannot be accessed can be effectively reduced, and particularly, under a weak network environment or a network unidirectional visible scene, access acceleration can be realized without building special lines or other more special network solutions.
Further alternatively, the content distribution system may further include: and (5) central control node. The central management and control node can maintain and manage various content resources. For example, maintaining and managing the current version number of the content resource, and maintaining and managing the version number of the content resource that has been distributed to the various edge nodes, or maintaining and managing which edge nodes need to update the content resource, etc. In practical application, the provider of the content resources can store the content resources with the latest version numbers to the central control node, and the central control node can actively or passively trigger each edge node to download the content resources with the latest version numbers from the central control node, so that the cached content resources at the edge side are updated in time, the bandwidth cost is not increased or is increased very little, and the instantaneity of the externally distributed content resources can be improved.
It should be noted that the number and positional relationships of the edge node groups, edge nodes, domain name resolution nodes, central management nodes, etc. shown in fig. 1 are merely exemplary, and the embodiments of the present application are not limited thereto.
In addition, the domain name resolution node may belong to the content distribution system or be independent of the content distribution system, without limitation. The domain name resolution node can be respectively configured for each edge node group, and the same domain name resolution node can also be configured for a plurality of edge node groups; alternatively, domain name resolution nodes may be configured for each edge node, or the same domain name resolution node may be configured for a plurality of edge nodes, which is not limited thereto.
In this embodiment, the external access terminal, the edge node, the domain name resolution node, the central management node, and the like may be composed of software and/or hardware. In terms of implementation, the edge node, domain name resolution node, central management node, etc. may be a terminal device or a server. The terminal device or the server may be hardware or software. When the terminal device is hardware, the terminal device is, for example, a mobile phone, a tablet computer, a desktop computer, a wearable intelligent device, an intelligent home device, or the like. When the terminal device is software, it may be installed in the above-listed hardware device, and in this case, the terminal device is, for example, a plurality of software modules or a single software module, etc., the embodiment of the present application is not limited. The server may be hardware or software. When the server is hardware, the server is a single server or a distributed server cluster composed of a plurality of servers. When the server is software, it may be a plurality of software modules or a single software module, and the embodiment of the present application is not limited.
In order to better understand the technical solution provided by the embodiments of the present application, the following description is presented in connection with a signaling interaction diagram shown in fig. 2. Fig. 2 is a signaling interaction diagram of a content distribution method according to an embodiment of the present application. Referring to fig. 2, the method may include the steps of:
201. the first edge node in the first edge node group sends a first domain name resolution request comprising a domain name of the second service instance to the domain name resolution node through the self-deployed first service instance.
In this embodiment, the first edge node group is any one of at least one edge node group, the first edge node is any one of a plurality of edge nodes included in the first edge node group, and the first service instance is any one of a plurality of service instances deployed on the first edge node. When a content resource acquisition requirement occurs for the first service instance, a service instance that externally distributes the required content resource of the first service instance may be accessed. A service instance that externally distributes the required content resources of the first service instance is referred to herein as a second service instance. For example, if the first service instance is an application scenario instance that performs prediction processing based on an AI model, the first service instance needs to obtain a trained AI model and perform prediction processing based on the AI model. The second service instance is responsible for externally distributing the trained AI model, and the first service instance requests the second service instance to distribute the AI model.
In this embodiment, a domain name resolution request sent by the first service instance to the domain name resolution node is referred to as a first domain name resolution request. The first domain name resolution request includes a domain name of the second service instance. In order to realize that the first service instance successfully accesses the second service instance, the first service instance requests the domain name resolution node to conduct domain name resolution on the domain name of the second service instance through the first domain name resolution request so as to acquire an access address of the second service instance.
202. The domain name resolution node performs domain name resolution according to the first domain name resolution request to determine an access address of a second service instance deployed on the second edge node from access addresses of service instances deployed on respective edge nodes of the first edge node group, except the first edge node.
203. The domain name resolution node sends an access address of the second service instance to the first edge node.
In this embodiment, the service routing capability provided by the domain name resolution node can perform domain name resolution with the same edge node group as granularity, so that the edge node can access nearby to obtain the required content resource, in other words, the nearby distribution of the content resource is realized. Specifically, the domain name resolution node determines, when performing domain name resolution on the domain name of the second service instance in the first domain name resolution request, the access address of the second service instance deployed on the second edge node from among the access addresses of the service instances deployed on the respective edge nodes in the first edge node group except the first edge node. It will be appreciated that both the first edge node and the second edge node are in a first edge node group, i.e. the content resources provided by the second edge nodes in the first edge node group may be distributed in the same first edge node group. In practical applications, the first edge node and the second edge node may be the same or different edge nodes. For example, a first edge node deploys multiple service instances, where one service instance requests another service instance for content distribution, where the first edge node and the second edge node are the same edge node. For another example, the second service instance in the first edge node that needs to be accessed by the first service instance is not a service instance deployed in the first edge node, where the first edge node and the second edge node are different edge nodes.
Further optionally, in order to more accurately and efficiently control the nearby access of the edge nodes, a mapping relationship table is maintained in advance for each edge node group, where the mapping relationship table includes domain names and access addresses of service instances deployed on the edge nodes in the edge node group.
Based on this, when the domain name resolution node performs domain name resolution according to the first domain name resolution request, the domain name resolution node is specifically configured to: resolving the first domain name resolution request to obtain a domain name of the second service instance; inquiring the mapping relation table according to the domain name of the second service instance to determine an access address corresponding to the domain name of the second service instance; wherein the mapping table includes domain names and access addresses of service instances deployed on respective edge nodes in the first edge node group.
In practical application, if each edge node group has a specific domain name resolution node, the domain name resolution node specially maintains a mapping relation table of the edge node group. If the plurality of edge node groups share the domain name resolution node, the first edge node may also send an identifier of the first edge node group when sending the first domain name resolution request to the domain name resolution node, and the domain name resolution node determines a mapping relationship table of the first edge node group from the plurality of mapping relationship tables according to the identifier of the first edge node group. Or when the first edge node sends the first domain name resolution request to the domain name resolution node, the first edge node may also send the identifier of the first edge node, and the domain name resolution node determines the identifier of the first edge node group according to the identifier of the first edge node, and determines a mapping relationship table of the first edge node group from a plurality of mapping relationship tables, which is not limited.
Further optionally, in order to more accurately and efficiently control the nearby access of the edge node, a global mapping relationship table may be maintained, where the global mapping relationship table includes node group identifiers of at least one edge node group, and a domain name and an access address of a service instance on each edge node in the corresponding edge node group for each node group identifier. The domain name resolution node is specifically configured to: resolving the first domain name resolution request to obtain a domain name of a second service instance and a node group identifier of a first edge node group; and according to the domain name of the second service instance and the node group identification of the first edge node group, inquiring a global mapping relation table to obtain the access address of the second service instance.
204. The first edge node sends a content resource acquisition request to the second edge node according to the access address of the second service instance through the first service instance.
205. The second edge node responds to the content resource acquisition request through the second service instance to acquire the first content resource.
206. The second edge node returns the first content resource to the first edge node through the second service instance.
In this embodiment, the domain name resolution node sends the access address of the second service instance to the first edge node, so that the first service instance in the first edge node can access the second service instance deployed by the second edge node in the same edge node group according to the access address of the second service instance.
In this embodiment, the second edge node responds to the content resource obtaining request through the second service instance to obtain the content resource locally cached by the second edge node, and for understanding and distinguishing, the content resource locally cached by the second edge node obtained in response to the content resource obtaining request is referred to as a first content resource. The second edge node returns the first content resource to the first edge node through the second service instance, so that the process that the first edge node obtains the first content resource nearby is completed.
In practical applications, the protocol of the first content resource returned by the second service instance may not be the protocol supported by the first service instance. Protocols include, for example, but are not limited to: HTTP (HyperText Transfer Protocol ), TCP (transmission Control Protocol, transmission control protocol), or TCP/IP (transmission Control Protocol/Internet Protocol ), etc.
Further optionally, the second service instance may perform protocol conversion on the first content resource, so that the protocol of the first content resource is a protocol supported by the first service instance, and further, the first service instance does not need to perform protocol conversion, thereby improving a probability that the first content resource is successfully used by the first service instance.
Based on the first content resource, when the second edge node responds to the content resource acquisition request through the second service instance to acquire the first content resource, the second edge node responds to the content resource acquisition request through the second service instance to acquire the initial first content resource locally cached by the second edge node; and carrying out protocol conversion on the initial first content resource according to the protocol format of the content resource acquisition request to obtain the first content resource. It will be appreciated that the initial first content resource is converted to a first content resource via a protocol conversion.
Further alternatively, the content distribution system may further include: the center control node on the edge side or cloud side. In practical application, the central control node can provide the content resource with the latest version number, the second edge node interacts with the central control node, and the content resource locally cached by the second edge node is updated in time, so that the real-time performance of the content resource externally distributed by the second edge node is realized.
Illustratively, the central management node is configured to store at least one content resource and a current first version number for each content resource. The second edge node is further configured to send a content resource update request to the central management node through the second service instance, where the content resource update request includes a second version number of the first content resource locally cached by the second edge node; the central management node is further configured to respond to a content resource update request, and distribute the first content resource of the first version number to the second edge node according to the second version number and the first version number of the first content resource.
Specifically, when the second version number of the first content resource is smaller than the first version number, the first content resource locally cached by the second edge node is not the first content resource with the latest version number, and at this time, the central management and control node distributes the first content resource with the latest version number to the second edge node. When the second version number of the first content resource is equal to the first version number, the first content resource locally cached by the second edge node is the first content resource with the latest version number, and at this time, the central management and control node does not need to repeatedly distribute the first content resource with the latest version number to the second edge node.
According to the technical scheme provided by the embodiment of the application, the same edge node group is used as granularity to conduct domain name resolution, so that the edge nodes can access the edge nodes in the same edge node group nearby to obtain required content resources, the nearby distribution of the content resources is realized, the bandwidth pressure is reduced, the bandwidth resources are saved, the occurrence probability of situations that the content resources are slowly accessed or even cannot be accessed can be effectively reduced, and particularly, under the situation that a weak network environment or a network is unidirectional and visible, a private line or other more special network solutions are not required to be built, so that the access acceleration can be realized. In addition, daily access traffic is basically between edge nodes, and the traffic cost of the technical scheme provided by the embodiment of the application in practical application is almost 0, so that very large bandwidth saving is brought.
In practical application, besides the content resource acquisition requirement of the edge node, the content resource acquisition requirement of an external access terminal independent of the content distribution system can also exist, and the external access terminal can realize nearby access. For this reason, the embodiment of the application also passes through a signaling interaction process of the content distribution method.
Fig. 3 is a signaling interaction diagram of another content distribution method according to an embodiment of the present application. Referring to fig. 3, the method may include the steps of:
301. The external access terminal sends a second domain name resolution request comprising the domain name of the third service instance through the access portal.
302. The domain name resolution node performs domain name resolution according to the second domain name resolution request to determine an access address of a third service instance deployed on a third edge node from access addresses of service instances deployed on respective edge nodes in the second edge node group.
303. The domain name resolution node sends the access address of the third service instance to the external access terminal.
304. And the external access terminal sends a content resource acquisition request to the third edge node according to the access address of the third service instance.
305. The third edge node responds to the content resource acquisition request through the third service instance to acquire the second content resource.
306. The third edge node returns the second content resource to the external access terminal.
In this embodiment, the third service instance is a service instance that the external access terminal requests to access, the third edge node is an edge node deploying the third service instance, and the edge node group where the third edge node is located is referred to as a second edge node group, where the second edge node group and the external access terminal are located in the same local area network.
Specifically, the external access terminal receives a second domain name resolution request sent by the external access terminal through an access entry provided by the content distribution system to the domain name resolution node; and performing domain name resolution according to the second domain name resolution request to determine an access address of a third service instance and returning the access address to an external access terminal, wherein the external access terminal and the second edge node group are in the same local area network, and the third edge node where the third service instance is located is deployed in the second edge node group. It is understood that the domain name resolution node determines the access address of the third service instance deployed on the third edge node from the access addresses of the service instances deployed on the respective edge nodes in the second edge node group when performing domain name resolution on the domain name of the third service instance in the second domain name resolution request. For more description of domain name resolution, reference is made to the foregoing, and no further description is given here.
The external access terminal sends a content resource acquisition request to the third edge node according to the access address of the third service instance, and the third edge node acquires the locally cached content resource (which can be called as a second content resource) through the third service instance and returns the locally cached content resource to the external access terminal, so that the nearby access of the external access terminal is completed.
According to the technical scheme provided by the embodiment of the application, the external access terminal can access the edge node nearby to obtain the required content resources, so that the nearby distribution of the content resources is realized, the bandwidth pressure is reduced, the bandwidth resources are saved, the occurrence probability of the situation that the content resources are accessed slowly or even cannot be accessed can be effectively reduced, and particularly, under the situation that a weak network environment or a network is visible in one direction, a special line or other more special network solutions are not required to be set up, so that the access acceleration can be realized.
Fig. 4 is a flowchart of a content distribution method according to an embodiment of the present application. The method may be applied to a first edge node in any one of a first edge node group in a content distribution system, the content distribution system comprising a domain name resolution node and at least one edge node group, any one edge node group comprising at least two edge nodes within the same local area network, at least some of the at least one edge nodes having a service instance deployed thereon.
Referring to fig. 4, the method may include the steps of:
401. a first domain name resolution request is sent to a domain name resolution node through a first service instance deployed on a first edge node.
402. And receiving an access address of a second service instance which is returned by the domain name resolution node and is deployed on a second edge node, wherein the second edge node is in the first edge node group.
403. And sending a content resource acquisition request to the second edge node according to the access address of the second service instance through the first service instance.
404. And receiving the first content resource returned by the second edge node through the second service instance.
The detailed implementation process and technical effects of each step in the above method can be referred to the related description in the foregoing embodiments, and are not repeated here.
Fig. 5 is a flowchart of another content distribution method according to an embodiment of the present application. The method can be applied to a domain name resolution node in a content distribution system, and the content distribution system further comprises: at least one group of edge nodes, any one of the groups of edge nodes comprising at least two edge nodes within the same local area network.
Referring to fig. 5, the method may include the steps of:
501. a first domain name resolution request sent by a first edge node in a first edge node group through a first service instance deployed by the first edge node group is received.
502. Performing domain name resolution according to the first domain name resolution request to determine an access address of a second service instance deployed on the second edge node from access addresses of service instances deployed on respective edge nodes of the first edge node group, except the first edge node.
Further optionally, performing domain name resolution according to the first domain name resolution request includes: resolving the first domain name resolution request to obtain a domain name of the second service instance; inquiring the mapping relation table according to the domain name of the second service instance to determine an access address corresponding to the domain name of the second service instance; the mapping relation table comprises domain names of service instances deployed on all edge nodes in the first edge node group and corresponding access addresses.
Further optionally, performing domain name resolution according to the first domain name resolution request includes: resolving the first domain name resolution request to obtain a domain name of the second service instance and a node group identifier of the first edge node group; inquiring a global mapping relation table according to the domain name of the second service instance and the node group identification of the first edge node group to obtain an access address of the second service instance; the global mapping relation table comprises node group identifiers of at least one edge node group, and domain names and access addresses of service instances on all edge nodes in the corresponding edge node group.
Further optionally, the method further comprises: receiving a second domain name resolution request sent by an external access terminal through an access entrance; and performing domain name resolution according to the second domain name resolution request to determine an access address of a third service instance and returning the access address to an external access terminal, wherein the external access terminal and the second edge node group are in the same local area network, and the third edge node is deployed in the second edge node group.
The detailed implementation process and technical effects of each step in the above method can be referred to the related description in the foregoing embodiments, and are not repeated here.
Fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application. The apparatus may be arranged at a first edge node in any one of a first edge node group in a content distribution system comprising a domain name resolution node and at least one edge node group, any one edge node group comprising at least two edge nodes within the same local area network.
Referring to fig. 6, the apparatus may include:
the sending module 61 is configured to send a first domain name resolution request to a domain name resolution node through a first service instance deployed on a first edge node.
The first receiving module 62 is configured to receive an access address of a second service instance deployed on a second edge node returned by the domain name resolution node, where the second edge node is in the first edge node group.
The sending module 61 is further configured to send, by the first service instance, a content resource acquisition request to the second edge node according to the access address of the second service instance.
The first receiving module 62 is configured to receive a first content resource returned by the second edge node through the second service instance.
The apparatus shown in fig. 6 may perform the method shown in fig. 4, and its implementation principle and technical effects will not be described again. The specific manner in which the respective modules, units, and operations are performed in the above embodiment shown in fig. 4 has been described in detail in the above embodiment, and will not be described in detail here.
Fig. 7 is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application. The apparatus may be provided in a domain name resolution node in a content distribution system, the content distribution system further comprising: at least one group of edge nodes, any one of the groups of edge nodes comprising at least two edge nodes within the same local area network.
Referring to fig. 7, the apparatus may include:
the second receiving module 71 is configured to receive a first domain name resolution request sent by a first edge node in the first edge node group through a first service instance deployed by the first edge node.
The domain name resolution module 72 is configured to perform domain name resolution according to the first domain name resolution request, so as to determine an access address of a second service instance deployed on the second edge node from access addresses of service instances deployed on the edge nodes except the first edge node in the first edge node group.
Further optionally, when the domain name resolution module 72 performs domain name resolution according to the first domain name resolution request, the domain name resolution module is specifically configured to: resolving the first domain name resolution request to obtain a domain name of the second service instance; inquiring the mapping relation table according to the domain name of the second service instance to determine an access address corresponding to the domain name of the second service instance; the mapping relation table comprises domain names of service instances deployed on all edge nodes in the first edge node group and corresponding access addresses.
Further optionally, when the domain name resolution module 72 performs domain name resolution according to the first domain name resolution request, the domain name resolution module is specifically configured to: resolving the first domain name resolution request to obtain a domain name of the second service instance and a node group identifier of the first edge node group; inquiring a global mapping relation table according to the domain name of the second service instance and the node group identification of the first edge node group to obtain an access address of the second service instance; the global mapping relation table comprises node group identifiers of at least one edge node group, and domain names and access addresses of service instances on all edge nodes in the corresponding edge node group.
Further optionally, the second receiving module 71 is further configured to receive, through the access portal, a second domain name resolution request sent by the external access terminal; and performing domain name resolution according to the second domain name resolution request to determine an access address of the third service instance and returning the access address to the external access terminal, wherein a second edge node group where a third edge node of the third service instance is deployed is located in the same local area network as the external access terminal.
The apparatus shown in fig. 7 may perform the method shown in fig. 5, and its implementation principle and technical effects will not be described again. The specific manner in which the respective modules, units, and operations are performed in the above embodiment shown in fig. 7 has been described in detail in the above embodiment, and will not be described in detail here.
It should be noted that, the execution subjects of each step of the method provided in the above embodiment may be the same device, or the method may also be executed by different devices. For example, the execution subject of steps 401 to 404 may be device a; for another example, the execution bodies of steps 401 and 402 may be device a, and the execution bodies of steps 403 and 404 may be device B; etc.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations appearing in a specific order are included, but it should be clearly understood that the operations may be performed out of the order in which they appear herein or performed in parallel, the sequence numbers of the operations, such as 401, 402, etc., are merely used to distinguish between the various operations, and the sequence numbers themselves do not represent any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device includes: a memory 81 and a processor 82;
memory 81 is used to store computer programs and may be configured to store various other data to support operations on the computing platform. Examples of such data include instructions for any application or method operating on a computing platform, contact data, phonebook data, messages, pictures, videos, and the like.
The Memory 81 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as Static Random access Memory (Static Random-AccessMemory, SRAM), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read Only Memory, EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
A processor 82 coupled to the memory 81 for executing the computer program in the memory 81 for performing the steps in the content distribution method described above.
Further, as shown in fig. 8, the electronic device further includes: communication component 83, display 84, power component 85, audio component 86, and other components. Only some of the components are schematically shown in fig. 8, which does not mean that the electronic device only comprises the components shown in fig. 8. In addition, the components within the dashed box in fig. 8 are optional components, not necessarily optional components, depending on the product form of the electronic device. The electronic device in this embodiment may be implemented as a terminal device such as a desktop computer, a notebook computer, a smart phone, or an IOT (internet of things ) device, or may be a server device such as a conventional server, a cloud server, or a server array. If the electronic device of the embodiment is implemented as a terminal device such as a desktop computer, a notebook computer, or a smart phone, the electronic device may include components within the dashed-line frame in fig. 8; if the electronic device of the embodiment is implemented as a server device such as a conventional server, a cloud server, or a server array, the components within the dashed box in fig. 8 may not be included.
The detailed implementation process of each action performed by the processor may refer to the related description in the foregoing method embodiment or the apparatus embodiment, and will not be repeated herein.
Accordingly, the present application further provides a computer readable storage medium storing a computer program, where the computer program is executed to implement the steps executable by the electronic device in the above method embodiments.
Accordingly, embodiments of the present application also provide a computer program product comprising a computer program/instructions which, when executed by a processor, cause the processor to carry out the steps of the above-described method embodiments that are executable by an electronic device.
The communication component is configured to facilitate wired or wireless communication between the device in which the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as a mobile communication network of WiFi,2G, 3G, 4G/LTE, 5G, etc., or a combination thereof. In one exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a near field communication (Near Field Communication, NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on radio frequency identification (Radio Frequency Identification, RFID) technology, infrared data association (The Infrared Data Association, irDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
The display includes a screen, which may include a liquid crystal display (Liquid Crystal Display, LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation.
The power supply component provides power for various components of equipment where the power supply component is located. The power components may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the devices in which the power components are located.
The audio component described above may be configured to output and/or input an audio signal. For example, the audio component includes a Microphone (MIC) configured to receive external audio signals when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (central processing unit, CPUs), input/output interfaces, network interfaces, and memory.
The Memory may include non-volatile Memory in a computer readable medium, random access Memory (Random Access Memory, RAM) and/or non-volatile Memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase Change RAM (PRAM), static Random-Access Memory (SRAM), dynamic Random-Access Memory (Dynamic Random Access Memory, DRAM), other types of Random-Access Memory (Random Access Memory, RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash Memory or other Memory technology, compact disc Read Only Memory (CD-ROM), digital versatile disc (Digital versatile disc, DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, operable to store information that may be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (14)

1. A content distribution system, comprising: a domain name resolution node and at least one edge node group, the edge node group comprising at least two edge nodes;
a first edge node in a first edge node group is used for sending a first domain name resolution request to the domain name resolution node through a first service instance deployed by the first edge node group, receiving an access address of a second service instance deployed on a second edge node returned by the domain name resolution node, and sending a content resource acquisition request to the second edge node through the first service instance according to the access address of the second service instance, wherein the second edge node is in the first edge node group;
The domain name resolution node is used for performing domain name resolution according to the first domain name resolution request so as to determine the access address of the second service instance deployed on the second edge node from the access addresses of the service instances deployed on the edge nodes except the first edge node in the first edge node group;
the second edge node is configured to respond to the content resource acquisition request through the second service instance to acquire a first content resource, and return the first content resource to the first edge node.
2. The system according to claim 1, wherein when the domain name resolution node performs domain name resolution according to the first domain name resolution request, the domain name resolution node is specifically configured to:
resolving the first domain name resolution request to obtain a domain name of a second service instance;
inquiring a mapping relation table according to the domain name of the second service instance to obtain the access address of the second service instance;
the mapping relation table comprises domain names of service instances deployed on all edge nodes in the first edge node group and corresponding access addresses thereof.
3. The system according to claim 1, wherein when the domain name resolution node performs domain name resolution according to the first domain name resolution request, the domain name resolution node is specifically configured to:
Resolving the first domain name resolution request to obtain a domain name of a second service instance and a node group identifier of a first edge node group;
inquiring a global mapping relation table according to the domain name of the second service instance and the node group identification of the first edge node group to obtain an access address of the second service instance;
the global mapping relation table comprises node group identifiers of at least one edge node group, and domain names and access addresses of service instances on all edge nodes in the corresponding edge node group.
4. The system of claim 1, further comprising an access portal;
the domain name resolution node is further configured to: receiving a second domain name resolution request sent by an external access terminal through the access entrance; and performing domain name resolution according to the second domain name resolution request to determine and return an access address of a third service instance, wherein the external access terminal and the second edge node group are in the same local area network, and the third edge node where the third service instance is located is deployed in the second edge node group.
5. The system according to claim 1, wherein when the second edge node responds to the content resource acquisition request through the second service instance to acquire the first content resource, the second edge node is specifically configured to:
Responding to the content resource acquisition request through the second service instance to acquire an initial first content resource locally cached by the second edge node;
and carrying out protocol conversion on the initial first content resource according to the protocol format of the content resource acquisition request to obtain the first content resource.
6. The system of claim 1, further comprising: the central control node is used for storing at least one content resource and a current first version number of each content resource;
the second edge node is further configured to send a content resource update request to the central management node through the second service instance, where the content resource update request includes a second version number of the first content resource locally cached by the second edge node;
the central management node is further configured to respond to the content resource update request, and distribute, to the second edge node, the first content resource of the first version number according to the second version number and the first version number of the first content resource.
7. The system of claim 6, wherein the central management node is specifically configured to:
And responding to the content resource updating request, and if the second version number of the first content resource is smaller than the first version number, distributing the first content resource with the first version number to the second edge node.
8. The system of any of claims 1 to 7, wherein edge nodes within the same edge node group are within the same local area network.
9. A content distribution method, characterized by being applied to a first edge node in any one of a first edge node group in a content distribution system, the content distribution system comprising a domain name resolution node and at least one edge node group, any one edge node group comprising at least two edge nodes within the same local area network; the method comprises the following steps:
sending a first domain name resolution request to the domain name resolution node through a first service instance deployed on the first edge node;
receiving an access address of a second service instance deployed on a second edge node returned by the domain name resolution node, wherein the second edge node is in the first edge node group;
and sending a content resource acquisition request to the second edge node through the first service instance according to the access address of the second service instance, and receiving a first content resource returned by the second edge node through the second service instance.
10. A content distribution method, characterized by being applied to a domain name resolution node in a content distribution system, the content distribution system further comprising: at least one edge node group, any one edge node group comprising at least two edge nodes within the same local area network; the method comprises the following steps:
receiving a first domain name resolution request sent by a first edge node in a first edge node group through a first service instance deployed by the first edge node group;
performing domain name resolution according to the first domain name resolution request to determine an access address of a second service instance deployed on a second edge node from access addresses of service instances deployed on respective edge nodes of the first edge node group except the first edge node.
11. The method of claim 10, wherein performing domain name resolution based on the first domain name resolution request comprises:
resolving the first domain name resolution request to obtain a domain name of a second service instance;
inquiring a mapping relation table according to the domain name of the second service instance to determine the access address of the second service instance;
the mapping relation table comprises domain names of service instances deployed on all edge nodes in the first edge node group and corresponding access addresses thereof.
12. The method as recited in claim 11, further comprising:
receiving a second domain name resolution request sent by an external access terminal through an access entrance;
and performing domain name resolution according to the second domain name resolution request to determine an access address of a third service instance and returning the access address to the external access terminal, wherein the external access terminal and a second edge node group are in the same local area network, and a third edge node where the third service instance is located is deployed in the second edge node group.
13. An electronic device, comprising: a memory and a processor; the memory is used for storing a computer program; the processor is coupled to the memory for executing the computer program for performing the steps in the method of any of claims 9 to 12.
14. 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 of any one of claims 9 to 12.
CN202310267440.2A 2023-03-13 2023-03-13 Content distribution system, method, electronic device, and storage medium Pending CN116320032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310267440.2A CN116320032A (en) 2023-03-13 2023-03-13 Content distribution system, method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310267440.2A CN116320032A (en) 2023-03-13 2023-03-13 Content distribution system, method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN116320032A true CN116320032A (en) 2023-06-23

Family

ID=86812846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310267440.2A Pending CN116320032A (en) 2023-03-13 2023-03-13 Content distribution system, method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN116320032A (en)

Similar Documents

Publication Publication Date Title
JP7037511B2 (en) Base stations, access request response methods, equipment and systems
EP4027664A1 (en) Method and apparatus for providing network auxiliary information, electronic device, and computer-readable storage medium
KR20210065959A (en) Methods and devices for discovering analytical functions
US7844244B2 (en) Methods, apparatuses, and computer program products for providing dynamic assignment of slot cycle index for network nodes
US20140379835A1 (en) Predictive pre-caching of content
CN112261094B (en) Message processing method and proxy server
US20220103990A1 (en) Communication Method, Apparatus, and System
CN111586601A (en) Network auxiliary information providing method and related equipment
CN102291243A (en) Service processing server, system and method
CN114189885B (en) Network element information processing method, device and storage medium
CN104363507A (en) Video and audio recording and sharing method and system based on OTT set-top box
CN113133129A (en) Method, device and system for processing service
US20240056496A1 (en) Method and Apparatus for Selecting Edge Application Server
CN114064275A (en) Data processing method and device
CN112769671B (en) Message processing method, device and system
CN101925158A (en) System and method for obtaining number detail
CN110401731B (en) Method and apparatus for distributing content distribution nodes
CN110875947A (en) Data processing method and edge node equipment
CN112953992B (en) Network system, communication and networking method, device and storage medium
CN116320032A (en) Content distribution system, method, electronic device, and storage medium
KR101546387B1 (en) Content sharing server and method for performing content shaing process betweens a plurality of diveces
Ganchev et al. A cloud-based service recommendation system for use in UCWW
CN114172964B (en) Scheduling method, device, communication equipment and storage medium of content distribution network
CN116389773A (en) Content resource acquisition method, device and storage medium based on content distribution network
CN116405462B (en) Domain name resolution method, container service system, computing device and storage medium

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