CN109672756B - Data transmission method and related device, server and storage medium - Google Patents

Data transmission method and related device, server and storage medium Download PDF

Info

Publication number
CN109672756B
CN109672756B CN201910114106.7A CN201910114106A CN109672756B CN 109672756 B CN109672756 B CN 109672756B CN 201910114106 A CN201910114106 A CN 201910114106A CN 109672756 B CN109672756 B CN 109672756B
Authority
CN
China
Prior art keywords
file
identity
request
data transmission
cache
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
CN201910114106.7A
Other languages
Chinese (zh)
Other versions
CN109672756A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910114106.7A priority Critical patent/CN109672756B/en
Publication of CN109672756A publication Critical patent/CN109672756A/en
Application granted granted Critical
Publication of CN109672756B publication Critical patent/CN109672756B/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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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/123Applying verification of the received information received data contents, e.g. message integrity
    • 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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention relates to the technical field of data processing, and discloses a data transmission method, a related device, a server and a storage medium. The data transmission method is applied to a CDN node server and comprises the following steps: acquiring a data transmission request, wherein the data transmission request comprises address information and an identity identifier of a request file; determining a cache file according to the address information; verifying the cache file according to the identity of the request file, and determining the file to be transmitted according to a verification result; the identity identification of the file to be transmitted is the same as the identity identification of the request file; and transmitting the file to be transmitted to a terminal corresponding to the data transmission request. According to the invention, the cache data can be found to be tampered before data transmission, and the harm caused by transmission of the tampered cache data is avoided.

Description

Data transmission method and related device, server and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data transmission method, a related apparatus, a server, and a storage medium.
Background
With the advent of the internet, users pay more attention to the browsing speed and effect of websites when using the internet, the number of netizens is also increased rapidly, the internet service path is expanded continuously, in order to enable users in various regions to access with high quality and reduce the cost and website management pressure caused by the access, the Content Delivery Network (CDN) technology is developed, and more internet services are accessed to CDN manufacturers to provide acceleration services. The CDN is a strategically deployed overall system and technically and comprehensively solves the fundamental problem of low response speed of a user to visit a website, which is caused by small network bandwidth, large user visit amount and uneven website distribution. The basic idea is to avoid bottlenecks and links possibly influencing data transmission speed and stability on the Internet as far as possible, so that content transmission is faster and more stable. By placing node servers at each position of the network to form a layer of intelligent virtual network based on the existing Internet, the CDN system can redirect the request of a user to a service node closest to the user in real time according to the network flow, the connection of each node, the load condition, the distance to the user, the response time and other comprehensive information. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user for accessing the website.
However, the inventors found that at least the following problems exist in the prior art: when a CDN manufacturer transmits accelerated content, there is a possibility that the transmitted content is maliciously tampered, for example, maliciously intercepted, hacked, and the like, and if the tampered content relates to a yellow storm or has a reflexive statement, serious social impact is caused by timely discovering and processing the tampered content. Therefore, CDN vendors need to avoid tampering with the transmitted accelerated content when transmitting the content to the user.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a data transmission method, a related device, a server and a storage medium, so that a CDN node server verifies cache data when transmitting data, the cache data can be found to be tampered before the data is transmitted, and damage caused by transmission of the tampered cache data is avoided.
In order to solve the above technical problem, an embodiment of the present invention provides a data transmission method, which is applied to a CDN node server, and includes:
acquiring a data transmission request, wherein the data transmission request comprises address information and an identity identifier of a request file;
determining a cache file according to the address information;
verifying the cache file according to the identity of the request file, and determining the file to be transmitted according to a verification result; the identity identification of the file to be transmitted is the same as the identity identification of the request file;
and transmitting the file to be transmitted to a terminal corresponding to the data transmission request.
An embodiment of the present invention further provides a data transmission apparatus, including: the device comprises an acquisition module, a determination module, a verification module and a transmission module;
the acquisition module is used for acquiring a data transmission request, wherein the data transmission request comprises address information and an identity identifier of a request file;
the determining module is used for determining the cache file according to the address information;
the verification module is used for verifying the cache file according to the identity identifier of the request file and determining the file to be transmitted according to the verification result; the identity identification of the file to be transmitted is the same as the identity identification of the request file;
and the transmission module is used for transmitting the file to be transmitted to the terminal corresponding to the data transmission request.
An embodiment of the present invention further provides a server, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the data transmission method.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, wherein the computer program is used for realizing the data transmission method when being executed by a processor.
Compared with the prior art, the method and the device have the advantages that the acquired data transmission request comprises the address information and the identity identification of the request file, the cache file is determined according to the address information, the cache file is verified according to the identity identification, if the cache file is changed, the identity identification is changed, and whether the cache file is tampered or not can be determined through the identity identification, so that the file to be transmitted with the same identity mark as the request file is determined, the CDN node server can be ensured to accurately respond to the data transmission request, the file to be transmitted is ensured to be the file which is not tampered, the possibility that the CDN node server transmits the illegal file to the data transmission request end is eliminated, and the information transmission safety of the CDN node server is improved.
In addition, the method includes the steps of verifying the file to be transmitted according to the identity identifier of the request file, and determining the file to be transmitted according to the verification result, and specifically includes: acquiring an identity of a cache file; judging whether the identity of the cache file is the same as the identity of the request file; if the cached files are different, updating the cached files, determining that the identity identification of the updated cached files is the same as the identity identification of the request file, and determining the updated cached files as files to be transmitted; and if so, determining that the cache file is the file to be transmitted.
In the embodiment, the identity identification of the cache file is judged, the file to be transmitted is determined according to the cache file, whether the cache file on the CDN node server is tampered or not is determined, and the accuracy of response data is improved.
In addition, updating the cache file specifically includes: sending a request for updating the cache file to the source station; acquiring an original file of a cache file transmitted by a source station; and caching the original file, wherein the cached file is an updated cached file.
In addition, the identity of the original file is the same as the identity of the requested file.
Additionally, the identity is the message digest algorithm MD5 value of the requested file.
In addition, acquiring the identity of the cache file specifically includes: and calculating to obtain the MD5 value of the file to be transmitted.
In addition, before sending a request for updating a file to be transmitted to the source station, the data transmission method further includes: and deleting the cache file.
In addition, the verification module specifically includes: the method comprises the following steps of obtaining a submodule, a judging submodule, an updating submodule and a determining submodule;
the obtaining submodule is used for obtaining the identity of the cache file; the judgment submodule is used for judging whether the identity of the cache file is the same as the identity of the request file; the updating submodule is used for updating the cache file, determining that the identity of the updated cache file is the same as the identity of the request file, and determining the updated cache file as a file to be transmitted; the determining submodule is used for determining the cache file as a file to be transmitted.
In addition, the update submodule is specifically configured to: sending a request for updating the cache file to the source station; acquiring an original file of a cache file transmitted by a source station; and caching the original file, wherein the cached file is an updated cached file.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a data transmission method in a first embodiment of the present invention;
fig. 2 is a flowchart of a data transmission method in a second embodiment of the present invention;
FIG. 3 is a block diagram of a data transmission apparatus according to a third embodiment of the present invention;
FIG. 4 is a block diagram of a data transmission apparatus according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a server in a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a data transmission method, which is applied to a CDN node server, and a flow of the method is shown in fig. 1. The method includes the following implementation steps, it should be noted that a plurality of CDN node servers may be set in the CDN network, and the implementation of the present invention may be applied to each CDN node server in the CDN network.
Step 101: and acquiring a data transmission request.
The data transmission request comprises address information and an identity of a request file.
In a specific implementation, in the CDN content delivery network, the data transmission request is sent by a data request end, where the data request end may be a mobile phone, a tablet computer, or the like used by a user, and may be any electronic device capable of performing data communication with the CDN network, and the data request end is not specifically limited herein.
In a specific implementation, taking a news application as an example, a user may view a news title and a related profile on a terminal, and if the user wants to obtain specific news content, the user needs to send a data transmission request to the CDN network, and after the CDN node server obtains the data transmission request transmitted by the terminal, the corresponding data content is returned to the terminal according to the data transmission request. The data transmission method is only an example, and the data transmission method can be specifically applied to various applications, and is not particularly limited herein.
It should be noted that the data transmission request sent by the terminal to the CDN node server includes address information and an identity of the request file, where the address information indicates a storage location of the request file in the CDN node server, and the identity is used to verify whether specific content in the CDN node server is consistent with the request file in the data transmission request.
Step 102: and determining the cache file according to the address information.
In specific implementation, address information in the data transmission request corresponds to the position of a cache file in a CDN node server; it should be noted that the data transmission request end stores a storage location of the request file in the CDN node server. For example, in a news application program, each news title displayed at a user side is stored in a storage location of the CDN node server in a corresponding news cache, and after a terminal sends a data transmission request to the CDN network, the CDN network can determine the location of the cache file according to address information in the data transmission request.
Step 103: and verifying the cache file according to the identity of the request file, and determining the file to be transmitted according to a verification result.
The identity of the file to be transmitted is the same as the identity of the requested file.
It should be noted that the file identity is used to mark the content of the file, and if the content of the file changes, the identity will change, so that it can be determined whether the file is tampered with by the identity of the file, and it is determined that the identity of the file to be transmitted is the same as the identity of the requested file, which indicates that the content of the file to be transmitted is consistent with the content of the requested file.
In the specific implementation, the cache file is verified according to the identity identifier of the request file, and whether the cache file is tampered is judged according to the verification result, one specific implementation is as follows: acquiring an identity of a cache file; judging whether the identity of the cache file is the same as the identity of the request file; if the cached files are different, updating the cached files, determining that the identity identification of the updated cached files is the same as the identity identification of the request file, and determining the updated cached files as files to be transmitted; and if so, determining that the cache file is the file to be transmitted.
The identity of the cache file and the identity of the request file are determined to be the same or not by a comparison method, for example, the identities of the cache file and the request file are compared one by one to obtain a comparison result, and whether the comparison result indicates that the identities of the cache file and the request file are the same or not is determined. The above embodiments are merely examples, and other embodiments may be selected, and are not limited.
In one implementation, the identity is the message digest algorithm MD5 value of the requested file. Verifying the cache file according to the MD5 value of the application file, and acquiring the identity of the cache file is specifically implemented by calculating to acquire the MD5 value of the file to be transmitted, and judging whether the MD5 value of the cache file is the same as the MD5 value of the application file. For example, the MD5 value of the application file and the MD5 value of the cache file are differentiated, and whether the cache file can be determined as the file to be transmitted is determined according to the differentiated result. In practical implementation, the identity identifier may also be an identifier of other conventions, which is only an example here, and the specific determination method may also be adaptively adjusted, which is only an example here, and is not specifically limited.
The cache file needs to be updated when the identity identifier of the cache file is determined to be different from the identity identifier of the request file, and it should be noted that in the process of updating the cache file, the tampered cache file in the CDN node server needs to be deleted, so that the updated cache file is stored, and an exception is avoided in the process of updating the cache file.
Step 104: and transmitting the file to be transmitted to a terminal corresponding to the data transmission request.
In specific implementation, the cache file is verified to determine that the cache file is a file which is not tampered, the cache file in the CDN node server can be determined to be a request file required by the terminal, and the file to be transmitted is transmitted to the terminal corresponding to the data transmission request.
The first embodiment of the invention relates to a data transmission method, which comprises the implementation steps of obtaining a data transmission request, determining a cache file according to address information in the data transmission request, verifying the cache file according to an identity and determining a file to be transmitted, and ensuring that the content which is not tampered is transmitted to a terminal corresponding to a data transmission request end. It should be noted that the specific implementation in the present embodiment is one possible implementation, or the specific description of a certain implementation step is for convenience of understanding, and the present invention is not necessarily an embodiment, and is only an example and does not limit the technical solution of the present invention.
Compared with the prior art, the acquired data transmission request comprises the address information and the identity identification of the request file, the cache file is determined according to the address information, the cache file is verified according to the identity identification, if the cache file is changed, the identity identification is changed, and whether the cache file is tampered or not can be determined through the identity identification.
A second embodiment of the present invention relates to a data transmission method, and is substantially the same as the first embodiment, and is mainly different in that the second embodiment specifically describes an embodiment of updating a cache file. The method flow is shown in fig. 2, and includes the following implementation steps.
It should be noted that step 201, step 202, and step 210 in this embodiment are respectively the same as step 101, step 202, and step 104 in the first embodiment, and are not repeated here, and differences are mainly introduced below:
step 203: and acquiring the identity of the cache file.
In a specific implementation, whether the cached file is modified is determined according to the identity of the cached file and the identity of the requested file, the identity of the cached file is the same as the type of the identity of the requested file, for example, if the identity of the requested file is an MD5 value, the identity of the cached file is also an MD5 value, and the step is specifically implemented by calculating and obtaining an MD5 value of the file to be transmitted. In addition, the identity may also be other numerical values, and the identity is mainly used for judging whether the cache file is tampered, so long as the identity can represent the content of the cache file, and the details are not limited.
Step 204: determining whether the identifier of the cached file is the same as the identifier of the requested file, if so, performing step 205, otherwise, performing steps 206 to 209.
Step 205: and determining that the cached file is a file to be transmitted, and executing the step 210.
In specific implementation, if the identity of the cache file is the same as the identity of the request file, it indicates that the cache file is not tampered, and the cache file can be transmitted to the terminal corresponding to the data transmission request.
Step 206: and sending a request for updating the cache file to the source station.
Step 207: and acquiring an original file of the cache file transmitted by the source station.
Step 208: and caching the original file, wherein the cached file is an updated cached file.
Step 209: and determining that the identity of the updated cache file is the same as the identity of the request file, determining the updated cache file as the file to be transmitted, and continuing to execute the step 210.
In specific implementation, if it is determined that the identity of the cached file is tampered, the cached file needs to be updated according to the original file of the source station. It should be noted that after the CDN network is established, a cache file of the source station is stored in the CDN node server, and an identity of the request file on the terminal is the same as an identity of the original file, so that when the cache file is updated, the cache file is updated by the original file in the source station, and it is ensured that the identity of the updated cache file is the same as the identity of the request file.
In a specific implementation, if the identity of the request file is an MD5 value, extracting an MD5 value of the original file responded by the source station, comparing the MD5 value with an MD5 value of the request file, determining that the MD5 value of the original file is the same as the MD5 value of the request file, and determining that the updated cache file is the same as the MD5 value of the request file, and determining the updated cache file as a file to be transmitted.
The above embodiments are merely examples, and do not limit the technical aspects of the present invention.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a data transmission device, as shown in fig. 3, including: an acquisition module 301, a determination module 302, a verification module 302, and a transmission module 304.
The obtaining module 301 is configured to obtain a data transmission request, where the data transmission request includes address information and an identity of a request file.
The determining module 302 is configured to determine a cache file according to the address information.
The verification module 303 is configured to verify the cached file according to the identity identifier of the requested file, and determine the file to be transmitted according to a verification result; the identity of the file to be transmitted is the same as the identity of the requested file.
The transmission module 304 is configured to transmit the file to be transmitted to the terminal corresponding to the data transmission request.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a data transmission device. The fourth embodiment is substantially the same as the third embodiment, and the fourth embodiment of the present invention specifically describes the specific functions of the verification module, and has a configuration as shown in fig. 4, including: an acquisition sub-module 3031, a judgment sub-module 3032, an update sub-module 3033 and a determination sub-module 3034.
The obtaining submodule 3031 is configured to obtain an identity of the cache file.
The determining submodule 3032 is configured to determine whether the identity of the cache file is the same as the identity of the request file.
The updating submodule 3033 is configured to update the cache file, determine that the identity of the updated cache file is the same as the identity of the request file, and determine the updated cache file as a file to be transmitted.
The determining submodule 3034 is configured to determine that the cached file is a file to be transmitted.
In one specific implementation, the update submodule 3033 is specifically configured to send a request for updating the cache file to the source station; acquiring an original file of a cache file transmitted by a source station; and caching the original file, wherein the cached file is an updated cached file.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A fifth embodiment of the present invention relates to a server including at least one processor 501; and a memory 502 communicatively coupled to the at least one processor 501, wherein the memory 502 stores instructions executable by the at least one processor 501, the instructions being executable by the at least one processor 501 to enable the at least one processor 501 to perform a data transfer method.
In this embodiment, the processor 501 is a Central Processing Unit (CPU), and the Memory 502 is a Random Access Memory (RAM). The processor 501 and the memory 502 may be connected by a bus or other means, and fig. 5 illustrates the connection by the bus as an example. The memory 502 is a non-volatile computer-readable storage medium for storing non-volatile software programs, non-volatile computer-executable programs, and modules, and the programs for implementing the data transmission method according to the embodiments of the present application are stored in the memory 502. The processor 501 executes various functional applications of the device and data processing by executing nonvolatile software programs, instructions, and modules stored in the memory 502, that is, implements the above-described data transmission method.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected to an external device 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 program modules are stored in the memory 502 and, when executed by the one or more processors 501, perform the data transfer method of the first or second method embodiments described above.
The product can execute the data transmission method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, does not describe the technical details in the embodiment in detail, and can refer to the data transmission method provided by the embodiment of the application.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the data transmission method in the first or second embodiment described above.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (8)

1. A data transmission method is applied to a CDN node server of a content delivery network, and comprises the following steps:
acquiring a data transmission request, wherein the data transmission request comprises address information and an identity of a request file;
determining a cache file according to the address information;
verifying the cache file according to the identity of the request file, and determining a file to be transmitted according to a verification result; the identity identification of the file to be transmitted is the same as the identity identification of the request file;
transmitting the file to be transmitted to a terminal corresponding to the data transmission request;
the verifying the file to be transmitted according to the identity of the request file, and determining the file to be transmitted according to a verification result specifically include:
acquiring the identity of the cache file;
judging whether the identity of the cache file is the same as the identity of the request file;
if the cached file is different from the requested file, updating the cached file, determining that the identity of the updated cached file is the same as the identity of the requested file, and determining the updated cached file as a file to be transmitted;
and if so, determining the cache file as the file to be transmitted.
2. The data transmission method according to claim 1, wherein the updating the cache file comprises:
sending a request for updating the cache file to a source station;
acquiring an original file of the cache file transmitted by the source station;
and caching the original file, wherein the cached file is an updated cached file.
3. The data transmission method according to claim 2, wherein the identity of the original file is the same as the identity of the requested file.
4. A data transmission method according to any one of claims 1 to 3, wherein the identity is a message digest algorithm MD5 value of the requested file.
5. The data transmission method according to claim 4, wherein the obtaining the identity of the cache file specifically includes:
and calculating to obtain the MD5 value of the file to be transmitted.
6. A data transmission apparatus, comprising: the device comprises an acquisition module, a determination module, a verification module and a transmission module;
the acquisition module is used for acquiring a data transmission request, wherein the data transmission request comprises address information and an identity identifier of a request file;
the determining module is used for determining a cache file according to the address information;
the verification module is used for verifying the cache file according to the identity of the request file and determining a file to be transmitted according to a verification result; the identity identification of the file to be transmitted is the same as the identity identification of the request file;
the transmission module is used for transmitting the file to be transmitted to a terminal corresponding to the data transmission request;
the verification module specifically comprises: the method comprises the following steps of obtaining a submodule, a judging submodule, an updating submodule and a determining submodule;
the obtaining submodule is used for obtaining the identity of the cache file;
the judging submodule is used for judging whether the identity of the cache file is the same as the identity of the request file;
the updating submodule is used for updating the cache file when the judging submodule judges that the identity identifier of the cache file is different from the identity identifier of the request file, determining that the identity identifier of the updated cache file is the same as the identity identifier of the request file, and determining the updated cache file as a file to be transmitted;
the determining submodule is used for determining the cache file as a file to be transmitted when the judging submodule judges that the identity identification of the cache file is the same as the identity identification of the request file.
7. The data transmission apparatus according to claim 6, wherein the update submodule is specifically configured to:
sending a request for updating the cache file to a source station;
acquiring an original file of the cache file transmitted by the source station;
and caching the original file, wherein the cached file is an updated cached file.
8. A server, comprising: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data transfer method of any one of claims 1 to 5.
CN201910114106.7A 2019-02-14 2019-02-14 Data transmission method and related device, server and storage medium Active CN109672756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910114106.7A CN109672756B (en) 2019-02-14 2019-02-14 Data transmission method and related device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910114106.7A CN109672756B (en) 2019-02-14 2019-02-14 Data transmission method and related device, server and storage medium

Publications (2)

Publication Number Publication Date
CN109672756A CN109672756A (en) 2019-04-23
CN109672756B true CN109672756B (en) 2022-04-19

Family

ID=66151542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910114106.7A Active CN109672756B (en) 2019-02-14 2019-02-14 Data transmission method and related device, server and storage medium

Country Status (1)

Country Link
CN (1) CN109672756B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955728A (en) * 2019-11-28 2020-04-03 深圳市恒泰能源科技有限公司 Power consumption data transmission method, server and storage medium
CN116894014B (en) * 2023-09-08 2024-02-27 荣耀终端有限公司 Cache updating method, server, terminal equipment and chip system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2173077A1 (en) * 2008-10-06 2010-04-07 Alcatel, Lucent Shared content addressing protocol
CN106453195A (en) * 2015-08-04 2017-02-22 腾讯科技(深圳)有限公司 Resource request processing, authentication request processing and authentication method, system and device
CN106815734A (en) * 2015-11-27 2017-06-09 方正国际软件(北京)有限公司 A kind of information transferring method and device
CN106878265A (en) * 2016-12-21 2017-06-20 重庆华龙艾迪信息技术有限公司 A kind of data processing method and device
CN107181804A (en) * 2017-05-25 2017-09-19 腾讯科技(深圳)有限公司 The method for down loading and device of resource

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036967B (en) * 2012-12-10 2017-03-15 北京奇虎科技有限公司 A kind of download management equipment, method and data downloading system
CN104768079B (en) * 2014-01-03 2018-10-02 腾讯科技(深圳)有限公司 Multimedia resource distribution method, apparatus and system
CN104836821B (en) * 2014-02-10 2019-03-19 腾讯科技(深圳)有限公司 A kind of network accelerating method based on router device, device and equipment
CN107645543B (en) * 2017-09-04 2020-12-29 北京新流万联网络技术有限公司 Method and system applied to cache server HTTP non-80 cache port service
CN108234639A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of data access method and device based on content distributing network CDN
CN108667827B (en) * 2018-04-25 2019-07-26 北京白山耘科技有限公司 Cloud distribution network cache contents method of calibration, device, network, storage medium and calculating equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2173077A1 (en) * 2008-10-06 2010-04-07 Alcatel, Lucent Shared content addressing protocol
CN106453195A (en) * 2015-08-04 2017-02-22 腾讯科技(深圳)有限公司 Resource request processing, authentication request processing and authentication method, system and device
CN106815734A (en) * 2015-11-27 2017-06-09 方正国际软件(北京)有限公司 A kind of information transferring method and device
CN106878265A (en) * 2016-12-21 2017-06-20 重庆华龙艾迪信息技术有限公司 A kind of data processing method and device
CN107181804A (en) * 2017-05-25 2017-09-19 腾讯科技(深圳)有限公司 The method for down loading and device of resource

Also Published As

Publication number Publication date
CN109672756A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
US9930132B2 (en) Content specific router caching
CN109391673B (en) Method, system and terminal equipment for managing update file
CN102035815B (en) Data acquisition method, access node and system
US20140082154A1 (en) File sharing method, terminal and relay server
CN110460584B (en) Access request processing method and device, electronic equipment and computer readable medium
CN105812435A (en) Application upgrading data package processing method and device, electronic equipment, and system
CN113709530B (en) Resource downloading method, system, electronic equipment and storage medium
CN112468540B (en) Cloud platform-based data distribution method, equipment and medium
CN109672756B (en) Data transmission method and related device, server and storage medium
CN110661673B (en) Heartbeat detection method and device
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
US20240259215A1 (en) Dynamic loading method and apparatus for signature algorithm, and device and storage medium
CN110347955B (en) Resource detection method and device
CN114125812A (en) Data synchronization method, device, server and storage medium
CN114116898A (en) Method, apparatus, and storage medium for content acquisition at edge clouds
CN110460486B (en) Service node monitoring method and system
CN113709136B (en) Access request verification method and device
CN113342275B (en) Method, apparatus and computer readable storage medium for accessing data at block link points
CN109379344A (en) The method for authenticating and authentication server of access request
CN110941805B (en) Identity authentication method and device
CN106534300B (en) Data-updating method, user equipment, server and system
CN108306859B (en) Method, apparatus and computer-readable storage medium for limiting server access volume
WO2018188073A1 (en) Content deployment method and distribution controller
CN113055254A (en) Address configuration method, device, access server and storage medium
CN113468188A (en) SELinux policy base updating method and device

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