Content delivery network back-to-source method and device, electronic equipment and readable storage medium
Through the CDN return method, IP resources are obtained and transformed, dedicated IPs are allocated and whitelisted, which solves the problem of smooth transition of IP access methods in the transition from IPv4 to IPv6, realizes the stability and controllability of IP resources, and ensures the normal operation of services and data security.
Patent Information
- Application Number
- CN202411785068.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-04-18
AI Technical Summary
During the transition and upgrading of IPv4 to IPv6, there are technical difficulties in how to smoothly transition IP access from IPv4 to IPv6 to avoid affecting the normal operation of current services, especially in large websites or Internet applications.
Through the content distribution network (CDN) return method, candidate IP resources are obtained and transformation tags are added to them, transform IP resources are formed, transform IP resources are responded to the allocation request of the target user, assigned special IP resources and configured user tags, and set a whitelist to ensure the permissions of the IP resources to return to the target server.
It realizes the CDN platform running dual-stacks of IPv4 and IPv6 to ensure that the IP back to the user's source station is stable and controllable, avoids the problems of IP address dispersion and frequent changes, and ensures smooth service transition and data security.
Smart Images

Figure CN119854259A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security technology, and in particular to a content distribution network source return method, device, electronic device and readable storage medium. Background Art
[0002] Currently, some websites and Internet applications have the demand to transform the IP (Internet Protocol) access mode from IPv4 (Internet Protocol version 4) to IPv6 (Internet Protocol version 6).
[0003] Traditional IP address transformation solutions require replacement of the entire chain of business system hardware, network equipment, network architecture, etc., which is difficult to transform and has high one-time investment costs, and cannot quickly achieve the goal of supporting IPv6 access. Therefore, during the transition from IPv4 to IPv6, many users with limited budgets usually choose to transform IPv6 by software, so as to quickly meet the transition upgrade requirements without changing the source station architecture.
[0004] However, for some large websites or Internet applications, how to ensure that the current business is not affected and smoothly transition the IP access mode from IPv4 to IPv6 is still a technical difficulty. Some CDN (Content Delivery Network) platforms can support dual-stack operation of IPv4 and IPv6, but it is easy to have the problem of too scattered IPs returning to the user's source station through CDN nodes. Summary of the invention
[0005] In view of this, one or more embodiments of the present disclosure provide a content distribution network back-to-source method, device, electronic device and readable storage medium, which can utilize the content distribution network to be compatible with different versions of Internet interconnection protocols and ensure the stability of the Internet interconnection protocol address back-to-source.
[0006] In a first aspect, the present disclosure provides a content distribution network retrieval method, the method comprising: obtaining a candidate IP resource, and adding a transformation tag to the candidate IP resource to form a transformed IP resource; in response to an allocation request of a target user, allocating a dedicated IP resource to the target user from the transformed IP resource, and configuring a user tag for the dedicated IP resource; in response to a permission configuration request of the target user, configuring a whitelist for the dedicated IP resource, so that the target user retrievals to a source target server according to the dedicated IP resource with the whitelist configured.
[0007] By modifying the label, you can mark the candidate IP resources, limit the IP resources used by customers to access the target server, and limit the range of IP address changes. Through customer labels, you can mark the dedicated IP resources allocated to the target user. Dedicated IP resources can not only ensure the efficiency of resource use, but also prevent frequent changes in IP addresses. Since dedicated IP resources are small in quantity and stable, it is easy to set a whitelist for them to ensure the permission of dedicated IP resources to return to the source target server, making it easier for users to access the target server through dedicated IP resources.
[0008] Optionally, the obtaining of candidate IP resources and adding a transformation tag to the candidate IP resources to form a transformed IP resource includes: obtaining a node IP resource of a target content distribution network; extracting the candidate IP resource according to node area characteristics of the node IP resource; and adding the transformation tag to the candidate IP resource to form the transformed IP resource.
[0009] By utilizing the node area characteristics, some commonly used or highly important node IP resources can be screened out from all the node IP resources of the target content distribution network as candidate IP resources to ensure the service quality of the transformed IP resources.
[0010] Optionally, configuring a user tag for the dedicated IP resource includes at least one of the following: binding the association relationship between the user tag and the dedicated IP resource; changing the association relationship between the user tag and the dedicated IP resource; and unbinding the association relationship between the user tag and the dedicated IP resource.
[0011] For the dedicated IP resources allocated to the target user, you can bind, change, and unbind the user tag, so that the dedicated IP resources can be locked and used by the target user, and can also be reused by other users after the target user unbinds them. In this way, the flexible scheduling capability of the dedicated IP resources under the control of the user can be improved.
[0012] Optionally, configuring a user tag for the dedicated IP resource includes: determining a first tag based on a user identity identifier included in the allocation request; determining a second tag based on a product ordering identifier included in the allocation request; determining the user tag based on the first tag and the second tag; and configuring the user tag for the dedicated IP resource.
[0013] The user tag is determined according to the two dimensions of user identity identification and product ordering identification, so that the indication information of the user tag is more flexible and accurate.
[0014] Optionally, the method further includes: monitoring the transformed IP resources to determine the active IP resources of the transformed IP resources; calculating the quantity ratio of the active IP resources to the transformed IP resources; if the quantity ratio is lower than a preset threshold, generating an early warning message to alert the management user.
[0015] By monitoring the transformed IP resources, we can know the proportion of active IP resources and avoid insufficient active IP resources, which makes it difficult for users to apply for transformed IP resources. Early warning information can promptly remind management users to take targeted measures, such as replenishing IP resources.
[0016] Optionally, the method also includes: pushing the newly added IP resources to the console and sending a resource addition reminder to the target user; receiving a resource configuration request sent by the target user; configuring the standard name record of the newly added IP resources according to the resource configuration request; determining whether the standard name record of the newly added IP resources is configured successfully; if the standard name record of the newly added IP resources is configured successfully, adding the transformation tag to the newly added IP resources.
[0017] Actively push new IP resources and send reminder information to target users, which is conducive to users to timely and conveniently pass resource configuration requests and add IP resources to the transformed IP resource pool. Only after the standard name record is successfully configured, the transformation tag is added to the new IP resources, ensuring the reliability of the newly added transformed IP resources.
[0018] Optionally, configuring the canonical name record of the newly added IP resource according to the resource configuration request includes: configuring the domain name system record of the newly added IP resource in the domain name setting area of the canonical name record according to the resource configuration request; checking whether the canonical name record is configured successfully; if the canonical name record configuration fails, reconfiguring the domain name system record of the newly added IP resource.
[0019] Configuring the DNS records for the newly added IP resources can ensure that the newly added IP resources are accurately resolved in the content delivery network. By verifying whether the canonical name record is successfully configured, you can ensure that the DNS records for the newly added IP resources are accurate and valid.
[0020] In a second aspect, the present disclosure provides a content distribution network back-to-source device, the device comprising: a transformation unit, used to obtain candidate IP resources, and add transformation tags to the candidate IP resources to form transformed IP resources; an allocation unit, used to respond to an allocation request of a target user, allocate dedicated IP resources to the target user from the transformed IP resources, and configure user tags for the dedicated IP resources; a permission configuration unit, used to respond to a permission configuration request of the target user, configure a whitelist for the dedicated IP resources, so that the target user can return to the source target server according to the dedicated IP resources with the whitelist configured.
[0021] In a third aspect, the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned content distribution network back-to-source method is implemented.
[0022] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above-mentioned content distribution network back-to-source method is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The features and advantages of the embodiments of the present disclosure may be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way. In the accompanying drawings:
[0024] Figure 1 A schematic diagram showing the steps of a content distribution network back-to-source method in one embodiment of the present disclosure is shown;
[0025] Figure 2 A schematic diagram of a process for allocating dedicated network protocol resources in one embodiment of the present disclosure is shown;
[0026] Figure 3 A schematic diagram of a process of returning to a source target server in one embodiment of the present disclosure is shown;
[0027] Figure 4 A schematic diagram of a process for configuring newly added network protocol resources in one embodiment of the present disclosure is shown;
[0028] Figure 5 A schematic diagram showing a flow chart of a content distribution network back-to-source method in one embodiment of the present disclosure is shown;
[0029] Figure 6 A schematic diagram of functional units of a content distribution network back-to-source device in one embodiment of the present disclosure is shown;
[0030] Figure 7 A schematic structural diagram of an electronic device in one embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0032] In related technologies, IPv4 has only 32 bits of address space, which can theoretically address 16 million networks and 4 billion hosts. However, with the advent of the era of the Internet of Everything, there are tens of billions of IoT devices in the world, and the IP resources that IPv4 can provide for networking are no longer sufficient. Although technologies such as dynamic IP and NAT (Network Address Translation) can solve some IP needs, more network address resources are still needed to allocate IP addresses to each device.
[0033] In related technologies, the length of an IPv6 address is 128 bits, and its address space is 2^128 bits, which can effectively solve the current problem of address space exhaustion and meet the explosive demand for network addresses in emerging technology fields such as the Internet of Things, Industrial Internet, Big Data, and the Metaverse in the future.
[0034] In the related technology, for large websites or Internet applications, some CDN (Content Delivery Network) platforms can support dual-stack operation of IPv4 and IPv6, and can communicate with both IPv4 and IPv6 networks, thereby smoothly transitioning the IP access mode from IPv4 to IPv6. These CDN platforms can support both IPv6 and IPv4, and can support IPv6 without making any changes to the user's source station. IPv6 and IPv4 users can share cache resources to ensure the CDN acceleration effect of IPv6. Through the deployed skylight transformation device, the CDN platform can rewrite the website's external links to solve the skylight problem that exists when users access external links in a pure IPv6 environment.
[0035] However, in the related art, the IP addresses returned to the user's source station through the CDN node are usually too scattered. In addition, the source station firewall generally needs to configure a large number of blacklists and whitelists based on the requested CDN node IP addresses. Due to the CDN's automatic load balancing mechanism, the blacklists and whitelists are prone to frequent changes, which may affect the normal operation of user services.
[0036] In view of this, a content distribution network back-to-source method provided in one embodiment of the present disclosure can support dual-stack operation of IPv4 and IPv6, and can ensure that the IP back-to-source to the user's source station is stable and controllable.
[0037] See also Figure 1 A content distribution network back-to-source method provided by an embodiment of the present disclosure may include the following multiple steps.
[0038] S1: Acquire a candidate IP resource, and add a transformation tag to the candidate IP resource to form a transformed IP resource.
[0039] In this embodiment, a resource tag field can be added to the resource scheduling system of the content distribution network, so that the CDN node IP resources can be aggregated and classified by resource tags. Candidate IP resources can be some preferred IP resources among all node IP resources, which can be determined based on some prior information. For example, it can be ensured that there is at least one candidate IP resource in each preset area; it can be ensured that there are at least a certain number of candidate IP resources in some key areas or high-traffic areas.
[0040] In some embodiments, the obtaining of candidate IP resources and adding a transformation tag to the candidate IP resources to form a transformed IP resource includes: obtaining a node IP resource of a target content distribution network; extracting the candidate IP resource according to node area characteristics of the node IP resource; and adding the transformation tag to the candidate IP resource to form the transformed IP resource.
[0041] Specifically, after evaluating the historical demand of users, candidate IP resources can be extracted for some commonly used areas and marked as dedicated resources for IPv6 transformation.
[0042] By utilizing the node area characteristics, some commonly used or highly important node IP resources can be screened out from all the node IP resources of the target content distribution network as candidate IP resources, thereby ensuring the service quality of the transformed IP resources.
[0043] S2: In response to an allocation request from a target user, a dedicated IP resource is allocated to the target user from the transformed IP resources, and a user tag is configured for the dedicated IP resource.
[0044] In this embodiment, the dedicated IP resource can ensure that the IP resource only serves the target user and will not be affected by other users or other services. The scheduling system of the content distribution network can support dedicated IP resources marked with user tags, and only reduce the IP from the resources without making any adjustments to increase the IP.
[0045] On the one hand, because these IP resources are used for specific projects (such as IPv6 upgrade) or transformation (such as IPv6 transformation), the scheduling system will only reduce the use of these dedicated IP resources when processing them, and will not actively increase the use of these IP resources. In this way, the use scope of dedicated IP resources can be controlled to avoid affecting other ordinary CDN services.
[0046] On the other hand, the scheduling system will not expand or increase these dedicated IP resources in any form, which can ensure that these dedicated IP resources can be focused on specific purposes (IPv6 transformation) and avoid instability or incompatibility issues of these dedicated IP resources during the IPv6 transformation process.
[0047] In some embodiments, see Figure 2 , after responding to the allocation request of the target user, the IP resources required by the user can be identified. Subsequently, it can be determined whether the IP resources required by the user exist in the dedicated IP resources marked by the user tag. If the IP resources required by the user exist in the dedicated IP resources marked by the user tag, the required IP resources are allocated to the user in the dedicated IP resources. If the IP resources required by the user are not in the dedicated IP resources marked by the user tag, the required IP resources are newly allocated to the target user from the general transformed IP resources, and the user tag is configured for the newly allocated required IP resources, which are recorded as dedicated IP resources.
[0048] In some embodiments, configuring a user tag for the dedicated IP resource includes at least one of the following: binding the association relationship between the user tag and the dedicated IP resource; changing the association relationship between the user tag and the dedicated IP resource; and unbinding the association relationship between the user tag and the dedicated IP resource.
[0049] For the dedicated IP resources allocated to the target user, you can bind, change, and unbind the user tag, so that the dedicated IP resources can be locked and used by the target user, and can also be reused by other users after the target user unbinds them. In this way, the flexible scheduling capability of the dedicated IP resources under the control of the user can be improved.
[0050] In some embodiments, configuring a user tag for the dedicated IP resource includes: determining a first tag based on a user identity identifier included in the allocation request; determining a second tag based on a product ordering identifier included in the allocation request; determining the user tag based on the first tag and the second tag; and configuring the user tag for the dedicated IP resource.
[0051] Based on the two dimensions of user identity and product ordering, user tags are determined, making the indication information of user tags more flexible and accurate. On this basis, the association between customers and user tags can realize a one-to-many relationship table, supporting customers to configure different user tags according to different products.
[0052] S3: In response to the target user's permission configuration request, a whitelist is configured for the dedicated IP resource, so that the target user returns to the source target server according to the dedicated IP resource with the whitelist configured.
[0053] In this embodiment, the target server may be an original server that provides data content. In a content distribution network, the target server may pre-cache a portion of the data on an edge node. Users may obtain cached data by accessing the edge node. However, when the cached data of the edge node does not contain the content required by the user, it is still necessary to obtain the content from the original server, and this process may be called back-to-source.
[0054] In this embodiment, the setting of the whitelist can ensure the authority of the dedicated IP resources to return to the source target server, making it easier for users to access the target server through dedicated IP resources; it can also prevent IP resources that are no longer on the whitelist from invalidly or illegally accessing the target server, thereby increasing the data security of the target server.
[0055] For a practical example, see Figure 3 , when a user request reaches the CDN network, the IP load balancing strategy can be executed first. This means that the CDN will distribute the request to the most suitable edge node based on the current load situation. This helps to disperse traffic, improve response speed, and reduce the load on a single node. Once the request reaches the edge node, the CDN needs to determine whether the request is a static content request or a dynamic content request. Static content usually refers to content that does not change frequently, such as pictures, CSS files, JavaScript files, etc. Dynamic content usually refers to content that needs to be generated in real time, such as based on user behavior or database query results.
[0056] If it is a static request, CDN can check whether the requested content exists in the cache of the edge node. If it exists in the cache, the response is directly returned to the client from the cache. If it does not exist in the cache, the back-to-origin process is entered.
[0057] If it is a dynamic request, CDN can determine the optimal path to obtain content from the source server. This may involve considering factors such as network latency, server load, and geographic location. CDN initiates a request to the source server through the determined optimal path, and this process can be called back-to-source.
[0058] The CDN network continuously monitors the performance of request processing and optimizes load balancing and back-to-origin strategies based on actual usage. The advantage of this strategy is that it can dynamically adjust the processing method based on the nature of the request (static or dynamic) and network conditions, thereby ensuring the freshness of the content while maximizing the response speed and system efficiency.
[0059] In some embodiments, the content distribution network back-to-source method further includes: monitoring the modified IP resources to determine the active IP resources of the modified IP resources; calculating the quantity ratio of the active IP resources to the modified IP resources; if the quantity ratio is lower than a preset threshold, generating an early warning message to alert the management user.
[0060] Specifically, by monitoring the transformed IP resources, we can know the proportion of active IP resources, and avoid insufficient active IP resources, which makes it difficult for users to apply for transformed IP resources. Early warning information can timely remind management users to take targeted measures, such as replenishing IP resources.
[0061] In a practical application example, all label resources dedicated to IPv6 transformation can be monitored in real time, and the proportion of active IPs in the total number of IPs can be counted. When the proportion is less than 50%, an alarm can be sent to the relevant operation personnel in the form of an email, and the operation personnel will determine whether to increase label resources.
[0062] In some embodiments, the content distribution network back-to-source method also includes: pushing the newly added IP resources to the console and sending a resource addition reminder to the target user; receiving a resource configuration request sent by the target user; configuring the standard name record of the newly added IP resource according to the resource configuration request; determining whether the standard name record of the newly added IP resource is successfully configured; if the standard name record of the newly added IP resource is successfully configured, adding the transformation tag to the newly added IP resource.
[0063] Specifically, the newly added IP resources are actively pushed and reminder information is sent to the target users, which is conducive to users to timely and conveniently pass resource configuration requests and add IP resources to the transformed IP resource pool. Only after the standard name record is successfully configured, the transformation tag is added to the newly added IP resources, ensuring the reliability of the newly added transformed IP resources.
[0064] In an actual application example, if the operator decides to add label resources, the latest IP resources will be pushed to the console and the customer will be notified by email, SMS, network message, etc. After the customer has configured the latest IP resources, he needs to confirm on the platform. After receiving the confirmation reminder, the operator will determine the latest IP resources as label resources. In this way, the situation of no response when the newly added IP is returned to the source can be avoided, which affects the customer's business.
[0065] In some embodiments, configuring the canonical name record of the newly added IP resource according to the resource configuration request includes: configuring the domain name system record of the newly added IP resource in the domain name setting area of the canonical name record according to the resource configuration request; checking whether the canonical name record is configured successfully; if the canonical name record configuration fails, reconfiguring the domain name system record of the newly added IP resource.
[0066] Specifically, configuring the domain name system record of the newly added IP resource can ensure that the newly added IP resource is accurately resolved in the content distribution network. By verifying whether the canonical name record is successfully configured, it can be ensured that the domain name system record of the newly added IP resource is accurate and valid.
[0067] For a practical example, see Figure 4 , users can go to the domain name registrar or DNS (Domain Name System) management platform to obtain a CNAME (Canonical Name) record. In the DNS management interface, users can find the setting area for CNAME records. A CNAME record is a DNS record used to map a domain name (called an alias) to another domain name (called a canonical name). In the CNAME record, users can specify the alias (usually the target domain name you want to point to) and the canonical name (that is, the domain name of the target server). For example, if you want to point domain A to domain B, then domain A is the alias and domain B is the canonical name. Users can confirm that the updated CNAME record has been saved. It may take some time for the update of DNS records to take effect globally. This process can be called DNS propagation, which usually takes from a few minutes to a few hours. Through the command line tool, users can use the ping command or the dig command to verify whether the CNAME configuration is successful. If the ping or dig command displays the correct canonical name, then the CNAME configuration is successful; if the displayed result is incorrect or the canonical name is not displayed, then the CNAME configuration may have failed. If the CNAME configuration fails, the user needs to return to the DNS management interface, check and reconfigure the CNAME record, and ensure that the alias and canonical names are correct and there are no spelling errors. After reconfiguration, the user can use the ping or dig command again to verify whether the CNAME configuration is successful.
[0068] See also Figure 5 , a content distribution network back-to-source method provided by an embodiment of the present disclosure can be implemented through the following process.
[0069] First, the management and scheduling system of the content distribution network will pre-allocate a fixed edge node IP pool and mark it with a special label for IPv6 transformation. When users have IPv6 transformation needs, they can access the management platform of the content distribution network through CNAME. The management and scheduling system can identify the current customer's need for IPv6 transformation special label resources through customer identification, product identification, and function identification, and automatically allocate exclusive label resources to customers according to the idle allocation principle. After the customer accesses the management platform, he can directly view the fixed IP segment of the current allocated resources, and can configure the black and white list for the current allocated resources on the firewall of the source station. The management and scheduling system can identify resources with IPv6 transformation special labels as exclusive resources, and will no longer modify the service IP in the current resources, but will monitor the availability of IP in real time. When the overall availability of IP in the IPv6 transformation special label resources is less than 50%, an alarm can be sent to the relevant operation personnel in the form of email, and the operation personnel will determine whether resource adjustments are needed. When it is confirmed that adjustments are needed, the new IP resources can be updated to the console in real time, and the customer can be notified to configure new IP resources by email / SMS.
[0070] The technical solution provided by one or more embodiments of the present disclosure can mark candidate IP resources by modifying labels, and can limit the IP resources used by customers to access the target server and restrict the change range of IP addresses. Through customer labels, dedicated IP resources allocated to target users can be marked. Dedicated IP resources can not only ensure resource utilization efficiency, but also prevent frequent changes in IP addresses. Since dedicated IP resources are small in quantity and stable, it is easy to set a whitelist for them to ensure the authority of dedicated IP resources to return to the source target server, making it convenient for users to access the target server through dedicated IP resources.
[0071] Compared with the return-to-source method in the related art, the technical solution provided by one or more embodiments of the present disclosure can meet the customer's needs for insufficient upper limits of blacklist and whitelist configuration or untimely configuration to the greatest extent, and avoid the situation where the customer's business cannot be accessed due to dynamic changes in resources. In some embodiments, the link of updating IP resources after customer confirmation is added, which can realize the closed loop of the entire process.
[0072] See also Figure 6 The present disclosure also provides a content distribution network back-to-source device, the device comprising:
[0073] The transformation unit 100 is used to obtain a candidate IP resource and add a transformation tag to the candidate IP resource to form a transformed IP resource;
[0074] The allocation unit 200 is used to allocate a dedicated IP resource to the target user from the transformed IP resource in response to an allocation request of the target user, and configure a user tag for the dedicated IP resource;
[0075] The authority configuration unit 300 is used to configure a whitelist for the dedicated IP resource in response to the authority configuration request of the target user, so that the target user returns to the source target server according to the dedicated IP resource with the whitelist configured.
[0076] In one embodiment, the transformation unit 100 is specifically used to obtain the node IP resources of the target content distribution network; for the node IP resources, extract the candidate IP resources according to the node area characteristics; add the transformation label to the candidate IP resources to form the transformed IP resources.
[0077] In one embodiment, the allocating unit 200 includes a first allocating subunit, which is used to bind the association relationship between the user tag and the dedicated IP resource.
[0078] In one embodiment, the allocating unit 200 includes a second allocating subunit, which is used to change the association relationship between the user tag and the dedicated IP resource.
[0079] In one embodiment, the allocating unit 200 includes a third allocating subunit, which is used to unbind the association between the user tag and the dedicated IP resource.
[0080] In one embodiment, the allocation unit 200 is specifically used to determine a first tag based on a user identity identifier included in the allocation request; determine a second tag based on a product ordering identifier included in the allocation request; determine the user tag based on the first tag and the second tag; and configure the user tag for the dedicated IP resource.
[0081] In one embodiment, the content distribution network back-to-source device also includes an early warning unit 400, which is used to monitor the modified IP resources, determine the active IP resources of the modified IP resources; calculate the quantity ratio of the active IP resources to the modified IP resources; if the quantity ratio is lower than a preset threshold, generate an early warning message to remind the management user.
[0082] In one embodiment, the content distribution network back-to-source device also includes an adding unit 500, which is used to push the newly added IP resources to the console and send a resource addition reminder to the target user; receive a resource configuration request sent by the target user; configure the standard name record of the newly added IP resource according to the resource configuration request; determine whether the standard name record of the newly added IP resource is successfully configured; if the standard name record of the newly added IP resource is successfully configured, add the transformation tag to the newly added IP resource.
[0083] In one embodiment, the adding unit 500 includes a name record sub-unit 501, which is used to configure the domain name system record of the newly added IP resource in the domain name setting area of the canonical name record according to the resource configuration request; check whether the canonical name record is configured successfully; if the canonical name record configuration fails, reconfigure the domain name system record of the newly added IP resource.
[0084] Each unit described in the above embodiments may be implemented by a computer chip or a product having a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0085] For the convenience of description, the above devices are described in terms of functions and are described separately in various units. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0086] See also Figure 7 The present disclosure also provides an electronic device, which includes a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned content distribution network back-to-source method is implemented.
[0087] The present disclosure also provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a processor, the above-mentioned content distribution network back-to-source method is implemented.
[0088] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0089] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.
[0090] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0092] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, equipment, and storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0093] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
[0094] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A content distribution network back-to-source method, characterized in that: The method comprises: Acquire a candidate IP resource, and add a transformation tag to the candidate IP resource to form a transformed IP resource; In response to an allocation request from a target user, allocating a dedicated IP resource to the target user from the transformed IP resource, and configuring a user tag for the dedicated IP resource; In response to the target user's permission configuration request, a whitelist is configured for the dedicated IP resource, so that the target user returns to the source target server according to the dedicated IP resource with the whitelist configured.
2. The method according to claim 1, characterized in that The step of obtaining a candidate IP resource and adding a transformation tag to the candidate IP resource to form a transformed IP resource includes: Obtain the node IP resources of the target content distribution network; For the node IP resources, extract the candidate IP resources according to the node area characteristics; The transformation tag is added to the candidate IP resource to form the transformed IP resource.
3. The method according to claim 1, characterized in that The configuring a user tag for the dedicated IP resource includes at least one of the following: Binding the association relationship between the user tag and the dedicated IP resource; Changing the association between the user tag and the dedicated IP resource; Unbind the association between the user tag and the dedicated IP resource.
4. The method according to claim 1 or 3, characterized in that: The configuring a user tag for the dedicated IP resource includes: Determining a first tag according to a user identity included in the allocation request; Determining a second tag according to a product ordering identifier included in the allocation request; Determine the user tag according to the first tag and the second tag; The user tag is configured for the dedicated IP resource.
5. The method according to claim 1, characterized in that: The method further comprises: Monitoring the transformed IP resources to determine active IP resources of the transformed IP resources; Calculating the quantity ratio of the active IP resources to the transformed IP resources; If the quantity ratio is lower than a preset threshold, an early warning message is generated to alert the management user.
6. The method according to claim 1 or 5, characterized in that: The method further comprises: Push the newly added IP resources to the console and send a resource addition reminder to the target user; Receiving a resource configuration request sent by the target user; According to the resource configuration request, configure a canonical name record of the newly added IP resource; Determine whether the canonical name record of the newly added IP resource is configured successfully; If the canonical name record of the newly added IP resource is configured successfully, the transformation tag is added to the newly added IP resource.
7. The method according to claim 6, characterized in that The configuring the canonical name record of the newly added IP resource according to the resource configuration request includes: According to the resource configuration request, in the domain name setting area of the canonical name record, configure a domain name system record of the newly added IP resource; Verify whether the canonical name record is configured successfully; If the canonical name record configuration fails, the domain name system record of the newly added IP resource is reconfigured.
8. A content distribution network back-to-source device, characterized in that: The device comprises: A transformation unit, used to obtain a candidate IP resource and add a transformation tag to the candidate IP resource to form a transformed IP resource; an allocation unit, configured to allocate dedicated IP resources to the target user from the transformed IP resources in response to an allocation request of the target user, and configure a user tag for the dedicated IP resources; The authority configuration unit is used to configure a whitelist for the dedicated IP resource in response to the authority configuration request of the target user, so that the target user returns to the source target server according to the dedicated IP resource with the whitelist configured.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.