CN114466000B - CDN gateway source returning method and device - Google Patents

CDN gateway source returning method and device Download PDF

Info

Publication number
CN114466000B
CN114466000B CN202111585038.6A CN202111585038A CN114466000B CN 114466000 B CN114466000 B CN 114466000B CN 202111585038 A CN202111585038 A CN 202111585038A CN 114466000 B CN114466000 B CN 114466000B
Authority
CN
China
Prior art keywords
source
resource file
resource
target
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111585038.6A
Other languages
Chinese (zh)
Other versions
CN114466000A (en
Inventor
周伟衢
唐海群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202111585038.6A priority Critical patent/CN114466000B/en
Publication of CN114466000A publication Critical patent/CN114466000A/en
Application granted granted Critical
Publication of CN114466000B publication Critical patent/CN114466000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The invention provides a CDN gateway source returning method and device, wherein the method comprises the following steps: acquiring a real resource file and a corresponding source returning requirement thereof; storing the real resource file and recording the corresponding storage position; setting a source returning rule of a real resource file based on the source returning requirement; establishing a mapping relation between a storage position and a source returning rule; acquiring a source returning request corresponding to a target resource file sent by a target CDN gateway; and extracting a target resource file based on the back source request and the mapping relation, and feeding back the target resource file to the target CDN gateway. Therefore, the method and the device set the back source rule by testing all actual back source requirements of the CDN gateway based on product research and development, realize the back source of the CDN gateway by storing the mapping relation between the position of the resource file and the back source rule, thereby reducing the time cost and the management cost of the back source file, being not influenced by a real source station and improving the development progress of the product test.

Description

CDN gateway source returning method and device
Technical Field
The invention relates to the technical field of test development, in particular to a CDN gateway source returning method and device.
Background
The CDN (Content Delivery Network ) is a layer of intelligent virtual network based on the existing internet by placing node servers throughout the network. When a server is responding to a user input instruction, if there is no file indicated by the user input instruction in the server, the server needs to go to another server for source return. In the prior art, a method for performing source-back on a server generally refers to performing source-back on another server according to a fixed source-back address configured in the server.
However, in the product test development process, the source-returning resource file needs to be managed for a long time and a great amount of time is needed to configure and find the real source file, and the problem of source-returning failure often occurs due to the lack of real source station resources or due to the timeliness characteristic of the real source station, so that the product test development progress is affected.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method and an apparatus for source returning of a CDN gateway, so as to solve the problems in the prior art that the source returning method of the CDN gateway requires high time cost and high management cost, and the product development progress is affected due to source returning failure.
The embodiment of the invention provides a CDN gateway source returning method, which comprises the following steps:
acquiring a real resource file and a corresponding source returning requirement thereof;
storing the real resource file and recording the corresponding storage position;
setting a source returning rule of the real resource file based on the source returning requirement;
establishing a mapping relation between the storage position and the source returning rule;
obtaining a source return request corresponding to a target resource file sent by a target CDN gateway, wherein the source return request comprises: a resource path conforming to the source return rule;
and extracting the target resource file based on the back source request and the mapping relation, and feeding back the target resource file to the target CDN gateway.
Optionally, the obtaining the real resource file includes:
and acquiring the real resource file from the real source station, or receiving the real resource file which is uploaded locally and used for source returning verification.
Optionally, the establishing a mapping relationship between the storage location and the back source rule includes:
establishing each resource path conforming to the source returning rule;
and respectively establishing a mapping relation between the storage position and each resource path.
Optionally, before receiving the source return request corresponding to the target resource file sent by the target CDN gateway, the method further includes:
and generating candidate resource access paths based on the mapping relation between the storage position and each resource path.
Optionally, before extracting the real resource file based on the back source request and the mapping relationship, the method further includes:
acquiring a current resource path in a source returning request sent by a target CDN gateway;
judging whether the current resource path belongs to the candidate resource access path or not;
and when the current resource path belongs to the candidate resource access path, determining that the current resource path is a resource path conforming to the source returning rule.
Optionally, after storing the real resource file and recording the corresponding storage location thereof, the method further includes:
acquiring a resource identifier corresponding to the real resource file;
and establishing a binding relation between the resource identifier and the storage position.
Optionally, the source return request further includes: the extracting the target resource file based on the source returning request and the mapping relation includes:
determining a storage position of the target resource file based on the resource path conforming to the source returning rule and the mapping relation;
and extracting the target resource file from the storage position based on the target resource identifier and the binding relation.
The embodiment of the invention also provides a CDN gateway source returning device, which comprises:
the acquisition module is used for acquiring the real resource file and the corresponding source returning requirement thereof;
the first processing module is used for storing the real resource file and recording the corresponding storage position of the real resource file;
the second processing module is used for setting the source returning rule of the real resource file based on the source returning requirement;
the third processing module is used for establishing a mapping relation between the storage position and the source returning rule;
the fourth processing module is configured to obtain a source return request corresponding to a target resource file sent by a target CDN gateway, where the source return request includes: a resource path conforming to the source return rule;
and the fifth processing module is used for extracting the target resource file based on the back source request and the mapping relation and feeding back the target resource file to the target CDN gateway.
The embodiment of the invention also provides electronic equipment, which comprises: the device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the method provided by the embodiment of the invention.
The embodiment of the invention also provides a computer readable storage medium, which stores computer instructions for causing a computer to execute the method provided by the embodiment of the invention.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a CDN gateway source returning method and device, which are implemented by acquiring a real resource file and a source returning requirement corresponding to the real resource file; storing the real resource file and recording the corresponding storage position; setting a source returning rule of a real resource file based on the source returning requirement; establishing a mapping relation between a storage position and a source returning rule; acquiring a source returning request corresponding to a real resource file sent by a target CDN gateway; and extracting a real resource file based on the back source request and the mapping relation, and feeding back to the target CDN gateway. Therefore, the method and the device set the back source rule by testing all actual back source requirements of the CDN gateway based on product research and development, realize the back source of the CDN gateway by storing the mapping relation between the position of the resource file and the back source rule, thereby reducing the time cost and the management cost of the back source file, being not influenced by a real source station and improving the development progress of the product test.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a CDN gateway source return method in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a CDN analog source station system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a working process of a CDN source station simulation system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a CDN gateway source return device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The technical features of the different embodiments of the invention described below may be combined with one another as long as they do not conflict with one another.
The CDN (Content Delivery Network ) is a layer of intelligent virtual network based on the existing internet by placing node servers throughout the network. When a server is responding to a user input instruction, if there is no file indicated by the user input instruction in the server, the server needs to go to another server for source return. In the prior art, a method for performing source-back on a server generally refers to performing source-back on another server according to a fixed source-back address configured in the server.
However, in the product test development process, the source-returning resource file needs to be managed for a long time and a great amount of time is needed to configure and find the real source file, and the problem of source-returning failure often occurs due to the lack of real source station resources or due to the timeliness characteristic of the real source station, so that the product test development progress is affected.
Based on the above problems, the embodiment of the present invention provides a CDN gateway source returning method, as shown in fig. 1, which specifically includes the following steps:
step S101: and acquiring the real resource file and the corresponding source-returning requirement thereof.
The obtaining the real resource file may be obtaining the real resource file from the real source station, or receiving the real resource file uploaded locally for source-back verification, which is not limited in the present invention.
Step S102: and storing the real resource file and recording the corresponding storage position.
Specifically, the real resource file is stored in the simulation service, the storage position is a simulation service address corresponding to the real resource file in the simulation service, and the address is a static address so as to search the real resource file according to the static address.
Step S103: and setting a source returning rule of the real resource file based on the source returning requirement.
The back source requirement is determined by research and development testers according to actual research and development test scenes, and setting rules of various back source paths can be defined according to the back source requirement, so that all access paths meeting the back source rule can realize back source processing of real resource files, the flexibility of back source is greatly improved, and the test requirements of different research and development test stages can be met.
Step S104: and establishing a mapping relation between the storage position and the back source rule.
Specifically, by establishing a mapping relation between the static address of the real resource file and the source returning rule, the storage position of the real resource can be found according to the mapping relation, and then the CDN source returning is realized.
Step S105: and acquiring a source returning request corresponding to the target resource file sent by the target CDN gateway.
The target resource file is a resource file that the user wants to request to access, and the source-returning request includes: resource paths conforming to the back-source rule.
Step S106: and extracting a target resource file based on the back source request and the mapping relation, and feeding back the target resource file to the target CDN gateway.
The target resource file is the real resource file already stored in the simulation service.
By executing the steps, the CDN gateway source returning method provided by the embodiment of the invention sets the source returning rule based on all actual source returning requirements of the product in research and development test of the CDN gateway, and realizes source returning of the CDN gateway through the mapping relation between the position of the storage resource file and the source returning rule, thereby reducing the time cost and the management cost of the source returning file, being not influenced by a real source station and improving the product test development progress.
Specifically, in an embodiment, the step S104 specifically includes the following steps:
step S201: and establishing each resource path conforming to the source returning rule.
Specifically, a corresponding resource path can be established according to the source-returning rule, so that whether the resource path is a resource path conforming to the source-returning rule can be judged by directly comparing the resource paths.
Step S202: and respectively establishing a mapping relation between the storage position and each resource path.
By establishing a mapping relation between each accessible resource path and the storage position of the real resource file, the real resource file can be found through the mapping relation.
Specifically, in an embodiment, before the step S105, the CDN gateway source returning method provided by the embodiment of the present invention further includes the following steps:
step S301: candidate resource access paths are generated based on the mapping relationship of the storage locations and each resource path.
Specifically, the candidate resource access path may be obtained by combining the storage location of the real resource file and the resource path, and illustratively, the candidate resource access path may be http: the/simulate service address/resource path.
Specifically, in an embodiment, before the step S106, the CDN gateway source returning method provided by the embodiment of the present invention further includes the following steps:
step S401: and acquiring the current resource path in the back source request sent by the target CDN gateway.
The current resource path is an access path input by the user through the CDN gateway.
Step S402: and judging whether the current resource path belongs to the candidate resource access path. And when the current resource path belongs to the candidate resource access path, determining that the current resource path is a resource path conforming to the source returning rule. If the resource path does not belong to the candidate resource access path, the resource path is not in accordance with the source returning rule, the resource access request of the CDN gateway is refused, and the resource access request is fed back to the CDN gateway resource path abnormality prompt.
Specifically, in an embodiment, after the step S102, the CDN gateway source returning method provided by the embodiment of the present invention further includes the following steps:
step S501: and obtaining the resource identification corresponding to the real resource file.
The resource identifier is a unique identification manner corresponding to the resource file, and for example, the resource identifier corresponding to each resource file may be determined by numbering the resource file or according to a name of the resource file, which is not limited in the present invention.
Step S502: and establishing a binding relation between the resource identifier and the storage position.
Thus, by establishing the binding relation between the resource identifier and the storage position, a plurality of different resource files can be stored in one storage position at the same time.
Specifically, in an embodiment, the source return request further includes: the step S106 specifically includes the following steps:
step S601: and determining the storage position of the target resource file based on the resource path and the mapping relation which accord with the source returning rule.
Step S602: and extracting the real resource file from the storage position based on the target resource identification and the binding relation.
Therefore, the resource files stored in the same position are distinguished through the resource identifiers, and the production verification function and the like are realized through configuring diversified access paths corresponding to each resource identifier.
By executing the steps, the CDN gateway source returning method provided by the embodiment of the invention sets the source returning rule based on all actual source returning requirements of the product in research and development test of the CDN gateway, and realizes source returning of the CDN gateway through the mapping relation between the position of the storage resource file and the source returning rule, thereby reducing the time cost and the management cost of the source returning file, being not influenced by a real source station and improving the product test development progress.
The CDN gateway source returning method provided by the embodiment of the present invention will be described in detail below with reference to a specific application example.
OSS (Object Storage Service), namely the object storage service, is a mass, safe, low-cost and highly reliable cloud storage service and is suitable for storing any type of files. Capacity and processing capacity are elastically expanded, multiple storage types are selected, and storage cost is comprehensively optimized.
Flash is a lightweight customizable framework, a lightweight Web application framework written in the Python language, which is more flexible, lightweight, secure and easy to handle than other frameworks of the same type. The method can well combine with an MVC mode (in a classical MVC mode, M refers to a service model, V refers to a user interface, C refers to a controller, and the purpose of using MVC is to separate implementation codes of M and V, so that the same program can use different expression forms) for development, developers work separately and cooperate, and a small team can complete the implementation of a medium-sized and small website or Web service with abundant functions in a short time. In addition, the flash has strong customization, and users can add corresponding functions according to own requirements.
Mock is the creation of a Mock object to simulate the behavior of an object during testing for some objects that are not easily constructed/obtained. The mock test is a test method which is created by using a virtual object for testing some objects which are not easy to construct or easy to obtain in the test process.
According to the CDN gateway source return method provided by the embodiment of the invention, the simulation source station which can support CDN cache to carry out diversified and complicated source return is realized through the combination of the flash framework and the OSS storage capacity and the Mock testing concept, and a CDN simulation source station system is established as shown in figure 2.
Illustratively, the specific process of the CDN simulation source system is shown in fig. 3.
1. The resource file is obtained from the real source station or the file needed for the source-return verification is uploaded locally.
2. The static address of the uploaded resource is obtained and configured in the simulation service.
3. Configuration requires modeling the resource path of the back source, including configuring relevant request parameters, back source rules, etc.
4. Directly accessing http after configuration is completed: the corresponding real resources can be obtained by simulating the service address/resource path.
5. And configuring the simulated service address in the back source configuration of the CDN cache, and performing simulated back source in the CDN gateway cache test.
According to the technical scheme provided by the invention, simulation service management background, simulation rules and forwarding rule services are realized based on a bottom layer framework such as flash, real source returning and simulation source returning definition rule isolation are realized, and meanwhile, source returning to different appointed source stations according to different request conditions has the capability of realizing source returning path diversity in a resource mapping mode, so that dynamic source returning is realized. The persistent storage of the static file is realized by the oss+nginx technology, unified management capability is provided for the source station resource timeliness problem and the resource decentralized management problem, and file resource management operations such as uploading, downloading, deleting and the like are supported.
The proposal provided by the embodiment of the invention can realize the self-definition of various source-returning paths, the differentiated source-returning according to different file types, request parameters and the like and the real-time effectiveness, and simultaneously provide the response of real resource files to real or simulation, thereby achieving the purpose of serving as a real source station and improving the coverage of the requirements of the butt-joint clients.
The embodiment of the invention also provides a CDN gateway source returning device, as shown in FIG. 4, which comprises:
the obtaining module 101 is configured to obtain the real resource file and the corresponding back source requirement. For details, refer to the related description of step S101 in the above method embodiment, and no further description is given here.
The first processing module 102 is configured to store the real resource file and record a corresponding storage location. For details, refer to the related description of step S102 in the above method embodiment, and no further description is given here.
The second processing module 103 is configured to set a source-returning rule of the real resource file based on the source-returning requirement. For details, see the description of step S103 in the above method embodiment, and the details are not repeated here.
And a third processing module 104, configured to establish a mapping relationship between the storage location and the back source rule. For details, refer to the related description of step S104 in the above method embodiment, and no further description is given here.
The fourth processing module 105 is configured to obtain a source return request corresponding to the target resource file sent by the target CDN gateway, where the source return request includes: resource paths conforming to the back-source rule. For details, see the description of step S105 in the above method embodiment, and the details are not repeated here.
And a fifth processing module 106, configured to extract the target resource file based on the back source request and the mapping relationship, and feed back the target resource file to the target CDN gateway. For details, refer to the related description of step S106 in the above method embodiment, and no further description is given here.
Through the cooperation of the above components, the CDN gateway source returning device provided by the embodiment of the invention sets the source returning rule by testing all actual source returning requirements of the CDN gateway based on product development, and realizes source returning of the CDN gateway through the mapping relation between the position of the storage resource file and the source returning rule, thereby reducing the time cost and the management cost of the source returning file, being not influenced by a real source station, and improving the product test development progress.
Further functional descriptions of the above respective modules are the same as those of the above corresponding method embodiments, and are not repeated here.
There is also provided in accordance with an embodiment of the present invention, an electronic device, as shown in fig. 5, which may include a processor 901 and a memory 902, wherein the processor 901 and the memory 902 may be connected via a bus or otherwise, as exemplified by the bus connection in fig. 5.
The processor 901 may be a central processing unit (Central Processing Unit, CPU). The processor 901 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory 902 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the method embodiments of the present invention. The processor 901 executes various functional applications of the processor and data processing, i.e., implements the methods in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an operating device, at least one application program required for a function; the storage data area may store data created by the processor 901, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 902 optionally includes memory remotely located relative to processor 901, which may be connected to processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902 that, when executed by the processor 901, perform the methods of the method embodiments described above.
The specific details of the electronic device may be correspondingly understood by referring to the corresponding related descriptions and effects in the above method embodiments, which are not repeated herein.
It will be appreciated by those skilled in the art that implementing all or part of the above-described methods in the embodiments may be implemented by a computer program for instructing relevant hardware, and the implemented program may be stored in a computer readable storage medium, and the program may include the steps of the embodiments of the above-described methods when executed. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.

Claims (8)

1. The CDN gateway source returning method is characterized by comprising the following steps:
acquiring a real resource file and a corresponding source returning requirement thereof;
storing the real resource file and recording the corresponding storage position;
setting a source returning rule of the real resource file based on the source returning requirement;
establishing a mapping relation between the storage position and the source returning rule;
obtaining a source return request corresponding to a target resource file sent by a target CDN gateway, wherein the source return request comprises: a resource path conforming to the source return rule;
extracting the target resource file based on the back source request and the mapping relation, and feeding back the target resource file to the target CDN gateway;
the establishing the mapping relation between the storage location and the source returning rule includes:
establishing each resource path conforming to the source returning rule;
respectively establishing a mapping relation between the storage position and each resource path;
before receiving the source-returning request corresponding to the target resource file sent by the target CDN gateway, the method further comprises:
and generating candidate resource access paths based on the mapping relation between the storage position and each resource path.
2. The method of claim 1, wherein the obtaining the real resource file comprises:
and acquiring the real resource file from the real source station, or receiving the real resource file which is uploaded locally and used for source returning verification.
3. The method of claim 1, wherein prior to extracting the real resource file based on the back source request and the mapping relationship, the method further comprises:
acquiring a current resource path in a source returning request sent by a target CDN gateway;
judging whether the current resource path belongs to the candidate resource access path or not;
and when the current resource path belongs to the candidate resource access path, determining that the current resource path is a resource path conforming to the source returning rule.
4. The method of claim 1, wherein after storing the real resource file and recording its corresponding storage location, the method further comprises:
acquiring a resource identifier corresponding to the real resource file;
and establishing a binding relation between the resource identifier and the storage position.
5. The method of claim 4, wherein the back source request further comprises: the extracting the target resource file based on the source returning request and the mapping relation includes:
determining a storage position of the target resource file based on the resource path conforming to the source returning rule and the mapping relation;
and extracting the target resource file from the storage position based on the target resource identifier and the binding relation.
6. A CDN gateway back source device, comprising:
the acquisition module is used for acquiring the real resource file and the corresponding source returning requirement thereof;
the first processing module is used for storing the real resource file and recording the corresponding storage position of the real resource file;
the second processing module is used for setting the source returning rule of the real resource file based on the source returning requirement;
the third processing module is used for establishing a mapping relation between the storage position and the source returning rule; the establishing the mapping relation between the storage location and the source returning rule includes: establishing each resource path conforming to the source returning rule; respectively establishing a mapping relation between the storage position and each resource path;
the fourth processing module is configured to obtain a source return request corresponding to a target resource file sent by a target CDN gateway, where the source return request includes: a resource path conforming to the source return rule; before receiving a source returning request corresponding to the target resource file sent by a target CDN gateway, the fourth processing module is further configured to generate a candidate resource access path based on the mapping relationship between the storage location and each resource path;
and the fifth processing module is used for extracting the target resource file based on the back source request and the mapping relation and feeding back the target resource file to the target CDN gateway.
7. An electronic device, comprising:
a memory and a processor, said memory and said processor being communicatively coupled to each other, said memory having stored therein computer instructions, said processor performing the method of any of claims 1-5 by executing said computer instructions.
8. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-5.
CN202111585038.6A 2021-12-22 2021-12-22 CDN gateway source returning method and device Active CN114466000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111585038.6A CN114466000B (en) 2021-12-22 2021-12-22 CDN gateway source returning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111585038.6A CN114466000B (en) 2021-12-22 2021-12-22 CDN gateway source returning method and device

Publications (2)

Publication Number Publication Date
CN114466000A CN114466000A (en) 2022-05-10
CN114466000B true CN114466000B (en) 2023-10-10

Family

ID=81406472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111585038.6A Active CN114466000B (en) 2021-12-22 2021-12-22 CDN gateway source returning method and device

Country Status (1)

Country Link
CN (1) CN114466000B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225490A (en) * 2022-07-20 2022-10-21 天翼云科技有限公司 Gateway configuration method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5367517A (en) * 1992-12-16 1994-11-22 International Business Machines Corporation Method and system of requesting resources in a packet-switched network with minimal latency
CN106161351A (en) * 2015-03-31 2016-11-23 中兴通讯股份有限公司 Method, device and the CDN server that streaming media service is merged with file download
CN109286957A (en) * 2018-08-15 2019-01-29 网宿科技股份有限公司 Switching method, device, electronic equipment and the storage medium of a kind of time source link
CN111181849A (en) * 2018-11-09 2020-05-19 北京嘀嘀无限科技发展有限公司 Return source path determining method, determining device, computer equipment and storage medium
CN112787986A (en) * 2019-11-11 2021-05-11 千寻位置网络有限公司 Multi-path bidirectional authentication method and device
CN112866310A (en) * 2019-11-12 2021-05-28 北京金山云网络技术有限公司 CDN back-to-source verification method and verification server, and CDN cluster

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004318743A (en) * 2003-04-21 2004-11-11 Hitachi Ltd File transfer device
CN104243425B (en) * 2013-06-19 2018-09-04 深圳市腾讯计算机系统有限公司 A kind of method, apparatus and system carrying out Content Management in content distributing network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5367517A (en) * 1992-12-16 1994-11-22 International Business Machines Corporation Method and system of requesting resources in a packet-switched network with minimal latency
CN106161351A (en) * 2015-03-31 2016-11-23 中兴通讯股份有限公司 Method, device and the CDN server that streaming media service is merged with file download
CN109286957A (en) * 2018-08-15 2019-01-29 网宿科技股份有限公司 Switching method, device, electronic equipment and the storage medium of a kind of time source link
CN111181849A (en) * 2018-11-09 2020-05-19 北京嘀嘀无限科技发展有限公司 Return source path determining method, determining device, computer equipment and storage medium
CN112787986A (en) * 2019-11-11 2021-05-11 千寻位置网络有限公司 Multi-path bidirectional authentication method and device
CN112866310A (en) * 2019-11-12 2021-05-28 北京金山云网络技术有限公司 CDN back-to-source verification method and verification server, and CDN cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于节点安全度的P2P网络分布式多路径中继路由协议;王浩云;徐焕良;任守纲;;计算机科学(10);全文 *

Also Published As

Publication number Publication date
CN114466000A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US11070488B2 (en) System and method to control a cross domain workflow based on a hierarchical engine framework
US10761873B2 (en) Evaluating distributed application performance in a new environment
CN106843828B (en) Interface display and loading method and device
CN109104467B (en) Development environment construction method and device, platform system and storage medium
CN103248535B (en) A kind of cloud system method of testing and device
CN106301829A (en) A kind of method and apparatus of Network dilatation
CN108306804A (en) A kind of Ethercat main station controllers and its communication means and system
CN111859832B (en) Chip simulation verification method and device and related equipment
US20220261275A1 (en) Self-evolving microservices
CN104978172A (en) Integrated management and control method, system and equipment of SDN (Software Defined Networking) applications
CN112988572A (en) Multi-environment multi-channel multi-version simulation test method and device
CN107800781A (en) A kind of configuration data processing method and device
CN109151025A (en) Load-balancing method, device, computer storage medium and equipment based on URL
CN114466000B (en) CDN gateway source returning method and device
CN110995545B (en) Cloud network configuration testing method and device
CN113268308A (en) Information processing method, device and storage medium
CN104135503B (en) Method, Apparatus and system that data are downloaded
CN112433953A (en) Embedded automatic testing method, device, equipment and medium based on network game client
CN111526028B (en) Data processing method, device and equipment
CN101969442A (en) Process running environment perception and migration based network analog framework implementation method
CN111294250B (en) Pressure testing method, device and system
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN113191733A (en) Project multi-party collaborative management system and method based on Internet
CN112217852A (en) Platform-as-a-service system and method based on workflow engine
KR102131000B1 (en) Method and apparatus for inscreasing the efficiency of a coding system using a plurlity of compiler

Legal Events

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