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

CDN gateway source returning method and device Download PDF

Info

Publication number
CN114466000A
CN114466000A CN202111585038.6A CN202111585038A CN114466000A CN 114466000 A CN114466000 A CN 114466000A CN 202111585038 A CN202111585038 A CN 202111585038A CN 114466000 A CN114466000 A CN 114466000A
Authority
CN
China
Prior art keywords
source
resource file
resource
real
target
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.)
Granted
Application number
CN202111585038.6A
Other languages
Chinese (zh)
Other versions
CN114466000B (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

Images

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 a device, wherein the method comprises the following steps: acquiring a real resource file and a corresponding source return requirement; storing the real resource file and recording the corresponding storage position; setting a source returning rule of a real resource file based on a source returning requirement; establishing a mapping relation between a storage position and a back source rule; acquiring a source return request corresponding to a target resource file sent by a target CDN gateway; 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. Therefore, all actual source returning requirements of the CDN gateway are tested based on product research and development, source returning rules are set, the source returning of the CDN gateway is achieved through the mapping relation of the positions of the storage resource files and the source returning rules, the time cost and the management cost of the source returning files are reduced, the influence of a real source station is avoided, and the product testing development progress is improved.

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
A CDN (Content Delivery Network) is a layer of intelligent virtual Network on top of the existing internet, which is formed by placing node servers throughout the Network. When the server responds to the instruction input by the user, if the server does not have the file indicated by the instruction input by the user, the server generally needs to go to another server to return to the source. In the prior art, a method for returning from a server is to return from another server according to a fixed return address configured inside the server.
However, in the process of product test development, the source-returning resource files need to be managed for a long time and a large amount of time is needed to configure and find the real source files, and due to the lack of real source station resources or due to the timeliness characteristic of the real source stations, the problem of source-returning failure often occurs, and the product test development progress is affected.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for CDN gateway source returning, so as to overcome the problems in the prior art that a CDN gateway source returning manner requires high time cost and management cost, and a source returning failure often occurs to affect the product development progress.
The embodiment of the invention provides a CDN gateway back-source method, which comprises the following steps:
acquiring a real resource file and a corresponding return source requirement;
storing the real resource file and recording the corresponding storage position of the real resource file;
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 back-to-source request corresponding to a target resource file sent by a target CDN gateway, wherein the back-to-source request comprises: resource paths conforming to the back source rule;
and extracting the target resource file based on the source returning 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 a real source station, or receiving a locally uploaded real resource file for returning to the source verification.
Optionally, the establishing a mapping relationship between the storage location and the back-source rule includes:
establishing each resource path according with the back source rule;
and respectively establishing the mapping relation between the storage position and each resource path.
Optionally, before receiving a back-to-source request corresponding to the target resource file sent by the target CDN gateway, the method further includes:
and generating a candidate resource access path 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 the current resource path as a resource path according with the back source rule.
Optionally, after storing the real resource file and recording a corresponding storage location thereof, the method further includes:
acquiring a resource identifier corresponding to the real resource file;
and establishing a binding relationship between the resource identifier and the storage position.
Optionally, the back source request further includes: extracting the target resource file based on the source return request and the mapping relation by using the target resource identifier corresponding to the target resource file comprises the following steps:
determining the storage position of the target resource file based on the resource path conforming to the back source 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 present invention further provides a CDN gateway back-source device, including:
the acquisition module is used for acquiring the real resource file and the corresponding return source requirement;
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 a source returning rule of the real resource file based on the source returning requirement;
the third processing module is used for establishing the mapping relation between the storage position and the source returning rule;
a fourth processing module, configured to obtain a source returning request corresponding to a target resource file sent by a target CDN gateway, where the source returning request includes: resource paths conforming to the back source 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 the target resource file back to the target CDN gateway.
An embodiment of the present invention further provides an electronic device, including: the device comprises a memory and a processor, wherein the memory and the processor are connected with each other in a communication mode, 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.
Embodiments of the present invention also provide a computer-readable storage medium, which stores computer instructions for causing a computer to execute the method provided by the embodiments of the present invention.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a CDN gateway source returning method and a device, which are used for obtaining 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 of the real resource file; setting a source returning rule of a real resource file based on a 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 the real resource file based on the back source request and the mapping relation, and feeding back the real resource file to the target CDN gateway. Therefore, all actual source returning requirements of the CDN gateway are tested based on product research and development, source returning rules are set, the source returning of the CDN gateway is achieved through the mapping relation of the positions of the storage resource files and the source returning rules, the time cost and the management cost of the source returning files are reduced, the influence of a real source station is avoided, and the product testing development progress is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a CDN gateway back-source method in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a CDN simulation source station system in an embodiment of the present invention;
fig. 3 is a schematic diagram of a working process of the CDN simulation source station system in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a CDN gateway back-source device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
A CDN (Content Delivery Network) is a layer of intelligent virtual Network on top of the existing internet, which is formed by placing node servers throughout the Network. When the server responds to the instruction input by the user, if the server does not have the file indicated by the instruction input by the user, the server generally needs to go to another server to return to the source. In the prior art, a method for returning from a server is to return from another server according to a fixed return address configured inside the server.
However, in the process of product test development, the source-returning resource files need to be managed for a long time and a large amount of time is needed to configure and find the real source files, and due to the lack of real source station resources or due to the timeliness characteristic of the real source stations, the problem of source-returning failure often occurs, and the product test development progress is affected.
Based on the above problem, an embodiment of the present invention provides a CDN gateway back-source method, as shown in fig. 1, where the CDN gateway back-source method specifically includes the following steps:
step S101: and acquiring the real resource file and the corresponding return source requirement.
The obtaining of the real resource file may be obtaining the real resource file from a real source station, or receiving a locally uploaded real resource file for source return verification, which is not limited in the present invention.
Step S102: and storing the real resource file and recording the corresponding storage position of the real resource file.
Specifically, the real resource file is stored in the simulation service, the storage location is a real resource file corresponding to a simulation service address in the simulation service, and the address is a static address, so that the real resource file can be conveniently searched 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 source returning requirement is determined by research and development testers according to actual research and development test scenes, and setting rules of various source returning paths can be customized according to the source returning requirement, so that all access paths meeting the source returning rules can realize source returning processing of real resource files, the flexibility of source returning is greatly improved, and the test requirements in 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 relationship between a static address of a real resource file and a back-to-source rule, a storage location of a real resource can be found according to the mapping relationship, and therefore the CDN back-to-source is realized.
Step S105: and acquiring a source returning request corresponding to the target resource file sent by the target CDN gateway.
Wherein, the target resource file is a resource file which the user wishes to request to access, and the source returning request comprises: and (4) resource paths conforming to the back source rule.
Step S106: 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.
The target resource file is the real resource file already stored in the simulation service.
By executing the steps, the CDN gateway back-sourcing method provided by the embodiment of the present invention sets back-sourcing rules by testing all actual back-sourcing requirements of the CDN gateway based on product development, and realizes back sourcing of the CDN gateway by storing a mapping relationship between the location of the resource file and the back-sourcing rules, thereby reducing time cost and management cost of back-sourcing files, being unaffected by a real source station, and improving product test development progress.
Specifically, in an embodiment, the step S104 specifically includes the following steps:
step S201: and establishing each resource path according with the back source rule.
Specifically, the corresponding resource path may be established according to the back-source rule, so that whether the resource path is a resource path that meets the back-source rule or not may be determined by directly comparing the resource paths subsequently.
Step S202: and respectively establishing a mapping relation between the storage position and each resource path.
The real resource file can be found through the mapping relation by establishing the mapping relation between each accessible resource path and the storage position of the real resource file.
Specifically, in an embodiment, before the step S105, the CDN gateway back-source method provided in the embodiment of the present invention further includes the following steps:
step S301: and generating candidate resource access paths based on the mapping relation between the storage positions and each resource path.
Specifically, the candidate resource access path may be obtained by combining a storage location of the real resource file and a resource path, and exemplarily, the candidate resource access path may be http: // simulate service address/resource path.
Specifically, in an embodiment, before the step S106, the CDN gateway back-source method provided in the embodiment of the present invention further includes the following steps:
step S401: and acquiring a current resource path in a source returning request sent by the target CDN gateway.
And 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 the current resource path as the resource path according with the back source rule. And if the resource path does not belong to the candidate resource access path, the resource access request of the CDN gateway is rejected and an abnormal prompt of the resource path of the CDN gateway is fed back.
Specifically, in an embodiment, after the step S102, the CDN gateway back-source method provided in the embodiment of the present invention further includes the following steps:
step S501: and acquiring a resource identifier 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 files or by a name of the resource file, which is not limited in the present invention.
Step S502: and establishing a binding relationship between the resource identifier and the storage position.
Therefore, by establishing the binding relationship 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 back-source request further includes: the step S106 is specifically configured to include a target resource identifier corresponding to the target resource file, and 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 back source rule.
Step S602: and extracting the real resource file from the storage position based on the target resource identifier 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 by configuring diversified access paths corresponding to each resource identifier.
By executing the steps, the CDN gateway back-sourcing method provided by the embodiment of the present invention sets back-sourcing rules by testing all actual back-sourcing requirements of the CDN gateway based on product development, and realizes back sourcing of the CDN gateway by storing a mapping relationship between the location of the resource file and the back-sourcing rules, thereby reducing time cost and management cost of back-sourcing files, being unaffected by a real source station, and improving product test development progress.
The CDN gateway back-source method provided by the embodiment of the present invention is described in detail with reference to specific application examples.
The object Storage service (oss) is a cloud Storage service with high volume, safety, low cost and high reliability, and is suitable for storing any type of files. The capacity and the processing capacity are flexibly expanded, a plurality of storage types are selected, and the storage cost is comprehensively optimized.
The flash is a lightweight customizable framework, and a lightweight Web application framework written by using Python language is more flexible, portable, safe and easy to use than other similar frameworks. The method can be well combined with an MVC mode (in a classic MVC mode, M refers to a business model, V refers to a user interface, C refers to a controller, MVC is used for separating implementation codes of M and V, so that the same program can use different expression forms), developers work in a distributed mode, and small-sized teams can complete the implementation of medium-sized and small-sized websites or Web services with rich functions in a short time. In addition, the flash has strong customization, and the user can add corresponding functions according to the requirement of the user.
Mock is the creation of a Mock object to simulate the behavior of an object for some objects that are not easily constructed/obtained during the testing process. 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 obtain in the test process.
According to the CDN gateway source returning method provided by the embodiment of the invention, the simulated source station capable of supporting the CDN cache to perform diversified and complicated source returning is realized by combining the capabilities of the flash frame and the OSS storage with the test concept of Mock, and a CDN simulated source station system is established as shown in FIG. 2.
Illustratively, the specific process of the CDN simulating the source station system is shown in fig. 3.
1. And acquiring resource files from a real source station or locally uploading files required for source return verification.
2. And acquiring the static address of the uploaded resource and configuring in the simulation service.
3. And configuring a resource path needing to be simulated back to the source, wherein the resource path comprises configuration of related request parameters, back to the source rules and the like.
4. Directly accessing http after configuration is completed: the corresponding real resource can be obtained by simulating the service address/resource path.
5. And configuring the simulation service address in the back-source configuration of the CDN cache, and simulating back-source in the test of the CDN gateway cache.
The technical scheme provided by the invention realizes the services of a simulation service management background, simulation rules and forwarding rules through a bottom layer framework based on flash and the like, realizes the isolation of real source return and simulation source return self-defining rules, and simultaneously returns the source to appointed different source stations according to different request conditions, thereby having the capability of realizing the diversification of source return paths in a resource mapping mode, and further realizing the dynamic source return. The persistent storage of the static files is realized through the oss + nginx technology, the capability of unified management is provided for the source station resource timeliness problem and the resource dispersion management problem, and file resource management operations such as uploading, downloading, deleting and the like are supported.
The scheme provided by the embodiment of the invention can realize self-defining of various source returning paths, differentiation source returning and real-time effect taking according to different file types, request parameters and the like, and provides real resource files for real or simulated response, so that the aim of using as a real source station is fulfilled, and the coverage of customer requirements can be improved.
An embodiment of the present invention further provides a CDN gateway source returning device, where as shown in fig. 4, the CDN gateway source returning device includes:
the obtaining module 101 is configured to obtain a real resource file and a source return requirement corresponding to the real resource file. For details, refer to the related description of step S101 in the above method embodiment, and no further description is provided here.
The first processing module 102 is configured to store the real resource file, and record a storage location corresponding to the real resource file. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided 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, refer to the related description of step S103 in the above method embodiment, and no further description is provided here.
And the third processing module 104 is 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 provided here.
A fourth processing module 105, configured to obtain a source returning request corresponding to the target resource file sent by the target CDN gateway, where the source returning request includes: and (4) resource paths conforming to the back source rule. For details, refer to the related description of step S105 in the above method embodiment, and no further description is provided 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 provided here.
Through the cooperative cooperation of the above components, the CDN gateway back-source device provided by the embodiment of the present invention tests all actual back-source requirements of the CDN gateway based on product research and development, sets back-source rules, and realizes back-source of the CDN gateway through a mapping relationship between the location of the storage resource file and the back-source rules, thereby reducing the time cost and the management cost of the back-source file, being not affected by a real source station, and improving the product test development progress.
Further functional descriptions of the modules are the same as those of the corresponding method embodiments, and are not repeated herein.
There is also provided an electronic device according to an embodiment of the present invention, as shown in fig. 5, the electronic device may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 5 takes the example of being connected by a bus as an example.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used 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 and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an application program required for operating the device, at least one function; the storage data area may store data created by the processor 901, and the like. Further, 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, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the 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, which when executed by the processor 901 performs the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention 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 invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A CDN gateway back-to-source method is characterized by comprising the following steps:
acquiring a real resource file and a corresponding return source requirement;
storing the real resource file and recording the corresponding storage position of the real resource file;
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 back-to-source request corresponding to a target resource file sent by a target CDN gateway, wherein the back-to-source request comprises: resource paths conforming to the back source rule;
and extracting the target resource file based on the source returning request and the mapping relation, and feeding back the target resource file to the target CDN gateway.
2. The method of claim 1, wherein the obtaining the real resource file comprises:
and acquiring the real resource file from a real source station, or receiving a locally uploaded real resource file for returning to the source verification.
3. The method of claim 1, wherein the establishing a mapping relationship between the storage location and the back-source rule comprises:
establishing each resource path according with the back source rule;
and respectively establishing the mapping relation between the storage position and each resource path.
4. The method of claim 3, wherein before receiving a back-to-source request corresponding to the target resource file sent by a target CDN gateway, the method further comprises:
and generating a candidate resource access path based on the mapping relation between the storage position and each resource path.
5. The method of claim 4, wherein prior to extracting the real resource file based on the back-to-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 the current resource path as a resource path according with the back source rule.
6. 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 relationship between the resource identifier and the storage position.
7. The method of claim 6, wherein the back source request further comprises: extracting the target resource file based on the source return request and the mapping relation by using the target resource identifier corresponding to the target resource file comprises the following steps:
determining the storage position of the target resource file based on the resource path conforming to the back source 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.
8. A CDN gateway back-source device, comprising:
the acquisition module is used for acquiring the real resource file and the corresponding source return requirement;
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 a source returning rule of the real resource file based on the source returning requirement;
the third processing module is used for establishing the mapping relation between the storage position and the source returning rule;
a fourth processing module, configured to obtain a source returning request corresponding to a target resource file sent by a target CDN gateway, where the source returning request includes: resource paths conforming to the back source 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 the target resource file back to the target CDN gateway.
9. An electronic device, comprising:
a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the method of any one of claims 1-7 by executing the computer instructions.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
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 true CN114466000A (en) 2022-05-10
CN114466000B 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)

Cited By (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 (8)

* 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
US20040210583A1 (en) * 2003-04-21 2004-10-21 Hitachi, Ltd. File migration device
US20150242397A1 (en) * 2013-06-19 2015-08-27 Tencent Technology (Shenzhen) Company Limited Method, server and system for managing content in content delivery network
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

Patent Citations (8)

* 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
US20040210583A1 (en) * 2003-04-21 2004-10-21 Hitachi, Ltd. File migration device
US20150242397A1 (en) * 2013-06-19 2015-08-27 Tencent Technology (Shenzhen) Company Limited Method, server and system for managing content in content delivery network
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网络分布式多路径中继路由协议", 计算机科学, no. 10 *

Cited By (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

Also Published As

Publication number Publication date
CN114466000B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
US9645910B1 (en) Cross platform mobile HTML debugging
US9652364B1 (en) Cloud service for mobile testing and debugging
CN112165532B (en) Node access method, device, equipment and computer readable storage medium
US9934129B1 (en) Determining application test results using screenshot metadata
CN110442524B (en) Method and device for testing web service interface with authentication authorization
US9274843B2 (en) Multi-redundant switchable process pooling for cloud it services delivery
CN109302522A (en) Test method, device and computer system and medium
CN111177618A (en) Website building method, device, equipment and computer readable storage medium
CN110995545B (en) Cloud network configuration testing method and device
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN112732572A (en) Service testing method, device and system, storage medium and electronic device
CN112615759B (en) Full link voltage measurement assembly, full link voltage measurement method and device
CN109151025A (en) Load-balancing method, device, computer storage medium and equipment based on URL
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN114466000A (en) CDN gateway source returning method and device
CN116627849B (en) System test method, device, equipment and storage medium
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN111526028B (en) Data processing method, device and equipment
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN113268308A (en) Information processing method, device and storage medium
US20220164168A1 (en) Generating mock services based on log entries
CN114745749A (en) Virtual network element testing method and device, electronic equipment and readable storage medium
CN113704120A (en) Data transmission method, device, equipment and storage medium
CN109543122B (en) Content synchronization method, device, storage medium and electronic device
CN114428723A (en) Test system, system test method, related 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
GR01 Patent grant
GR01 Patent grant