+

CN109672756A - A kind of data transmission method and relevant apparatus, server and storage medium - Google Patents

A kind of data transmission method and relevant apparatus, server and storage medium Download PDF

Info

Publication number
CN109672756A
CN109672756A CN201910114106.7A CN201910114106A CN109672756A CN 109672756 A CN109672756 A CN 109672756A CN 201910114106 A CN201910114106 A CN 201910114106A CN 109672756 A CN109672756 A CN 109672756A
Authority
CN
China
Prior art keywords
file
identity
transmitted
cache file
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.)
Granted
Application number
CN201910114106.7A
Other languages
Chinese (zh)
Other versions
CN109672756B (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

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 present embodiments relate to technical field of data processing, a kind of data transmission method and relevant apparatus, server and storage medium are disclosed.The data transmission method is applied to CDN node server, comprising: obtains data transfer request, wherein includes the address information and identity of demand file in data transfer request;Cache file is determined according to address information;Cache file is verified according to the identity of demand file, file to be transmitted is determined according to verification result;Wherein, the identity of identity with demand file of file to be transmitted is identical;File to be transmitted is transmitted to the corresponding terminal of data transfer request.In the present invention, make it possible to find the data cached data cached caused harm for being tampered, transmission being avoided to be tampered in time before data are transmitted.

Description

A kind of data transmission method and relevant apparatus, server and storage medium
Technical field
The present embodiments relate to technical field of data processing, in particular to a kind of data transmission method and relevant apparatus, Server and storage medium.
Background technique
Since being born with internet, surfing and effect of the user when using internet to website are paid attention to further, Netizen's quantity is also continuous therewith to increase sharply, and Internet service path constantly expands, in order to which the user of various regions can carry out The access of high quality, and reduce the expense generated therefrom and portal management pressure, CDN (Content Delivery to the greatest extent Network, content distributing network) technology comes into being, and more and more Internet services access CDN manufacturer all to provide acceleration Service.CDN is the total system disposed through tactic, and technically comprehensively solve is since network bandwidth is small, user's access The user that amount is big, network point distribution is uneven and generates accesses the slow-footed root problem of websites response.Its basic ideas is as far as possible The bottleneck and link for avoiding being possible to influencing data transmission bauds and stability on internet, make content transmission faster, it is more steady It is fixed.By placing one layer of intelligent virtual network that node server is formed on existing Internet basic everywhere in network, CDN system can in real time according to the connection of network flow and each node, load state and to the distance and response of user when Between etc. integrated informations the request of user is re-directed on the service node nearest from user.The purpose is to take user can nearby Content needed for obtaining solves the crowded situation of Internet network, improves the response speed that user accesses website.
However, it is found by the inventors that at least there are the following problems in the prior art: CDN manufacturer delivery acceleration content when It waits, the content of transmission is there is the possibility being maliciously tampered, such as malicious intercepted, hacker attack etc., if distorting content It relates to Huang Shebao or with reaction speech, finds and handle that serious severe social influence will be caused not in time.Therefore, CDN manufacturer When giving user's transferring content, the acceleration content for avoiding transmission is needed to be tampered.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Embodiment of the present invention be designed to provide a kind of data transmission method and relevant apparatus, server and storage are situated between Matter makes it possible to before data are transmitted so that CDN node server when carrying out data transmission, is verified to data cached The data cached data cached caused harm for being tampered, transmission being avoided to be tampered is found in time.
In order to solve the above technical problems, embodiments of the present invention provide a kind of data transmission method, it is applied to CDN and saves Point server, comprising:
Obtain data transfer request, wherein include the address information and identity of demand file in data transfer request;
Cache file is determined according to address information;
Cache file is verified according to the identity of demand file, text to be transmitted is determined according to verification result Part;Wherein, the identity of identity with demand file of file to be transmitted is identical;
File to be transmitted is transmitted to the corresponding terminal of data transfer request.
Embodiments of the present invention additionally provide a kind of data transmission device, comprising: obtain module, determining module, verifying Module and transmission module;
It obtains module to be used for, obtains data transfer request, wherein believe the address in data transfer request including demand file Breath and identity;
Determining module is used for, and determines cache file according to address information;
Authentication module is used for, and is verified according to the identity of demand file to cache file, true according to verification result Make file to be transmitted;Wherein, the identity of identity with demand file of file to be transmitted is identical;
Transmission module is used for, and file to be transmitted is transmitted to the corresponding terminal of data transfer request.
Embodiments of the present invention additionally provide a kind of server, comprising: at least one processor;And
The memory being connect at least one processor communication;
Wherein, memory is stored with the instruction that can be executed by least one processor, and instruction is held by least one processor Row, so that at least one processor is able to carry out above-mentioned data transmission method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, special Sign is, above-mentioned data transmission method is realized when computer program is executed by processor.
Embodiment of the present invention includes the ground of demand file in terms of existing technologies, in the data transfer request of acquisition Location information and identity determine cache file according to address information, and verified according to identity to cache file, if Any change occurs for cache file, then identity will change, by identity can determine cache file whether by It is tampered, accordingly, it is determined that going out file to be transmitted identical with demand file identity tag, it can guarantee that CDN node server is quasi- True response data transmission request, and ensure that file to be transmitted is the file being not tampered with, prevent CDN node server to number A possibility that according to transmission request end transmission illegal file, improve the safety of CDN node server info transmission.
In addition, verified according to the identity of demand file to file to be transmitted, according to verification result determine to File is transmitted, specifically includes: obtaining the identity of cache file;Judge the body of identity and the demand file of cache file Part identifies whether identical;If it is different, updating cache file, the identity and demand file of updated cache file are determined Identity is identical, and updated cache file is determined as file to be transmitted;If they are the same, determine that cache file is text to be transmitted Part.
In the embodiment, the identity of cache file is judged, text to be transmitted is determined according to cache file Part, determines whether the cache file on CDN node server is tampered, and improves the accuracy of response data.
In addition, updating cache file, specifically include: the request of transmission update cache file to source station;Obtain source station transmission Cache file original document;Original document is cached, the file of caching is updated cache file.
In addition, the identity of identity with demand file of original document is identical.
In addition, identity is the Message Digest 5 MD5 value of demand file.
In addition, obtaining the identity of cache file, specifically include: calculating the MD5 value for obtaining file to be transmitted.
In addition, before sending the request to source station for updating file to be transmitted, data transmission method further include: delete caching text Part.
In addition, authentication module specifically includes: acquisition submodule, judging submodule update submodule and determine submodule;
Acquisition submodule is used for, and obtains the identity of cache file;Judging submodule is used for, and judges the body of cache file Whether part mark is identical as the identity of demand file;It updates submodule to be used for, updates cache file, determine updated slow It is identical to deposit the identity of identity with demand file of file, updated cache file is determined as file to be transmitted; It determines that submodule is used for, determines that cache file is file to be transmitted.
It is specifically used in addition, updating submodule: the request of transmission update cache file to source station;Obtain the slow of source station transmission Deposit the original document of file;Original document is cached, the file of caching is updated cache file.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is the flow chart of data transmission method in first embodiment of the invention;
Fig. 2 is the flow chart of data transmission method in second embodiment of the invention;
Fig. 3 is the structure chart of data transmission device in third embodiment of the invention;
Fig. 4 is the structure chart of data transmission device in four embodiment of the invention;
Fig. 5 is the structure chart of server in fifth embodiment of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of data transmission methods, are applied to CDN node server, method stream Journey is as shown in Figure 1.Including following implementation steps, it should be noted that settable multiple CDN node servers in CDN network, Embodiments of the present invention can be applied to each CDN node server in CDN network.
Step 101: obtaining data transfer request.
It wherein, include the address information and identity of demand file in data transfer request.
In specific implementation, in CDN content distribution network, data transfer request is issued by request of data end, which asks It asks end to can be the mobile phone, tablet computer etc. that user uses, can be any electronics that can carry out data communication with CDN network Equipment is not particularly limited herein.
One specific implementation in, by taking the application program of news category as an example, user can check at the terminal news title and Associated summary needs to send data transfer request to CDN network, in CDN node if user wants to obtain specific news content After server gets the data transfer request of terminal transmission, corresponding data content is returned to according to data transfer request Terminal.It is only example herein, which can be applied particularly in a variety of application programs, not do specific limit herein System.
It is noted that including demand file in the data transfer request that terminal is sent to CDN node server Address information and identity, address information indicate storage location of the demand file in CDN node server, identity For verifying whether the particular content in CDN node server is that demand file in data transfer request is consistent.
Step 102: cache file is determined according to address information.
In specific implementation, the address information in data transfer request corresponds to the position of cache file in CDN node server; It should be noted that being stored with storage location of the demand file in CDN node server in data transfer request end.For example, In the application program of a news category, each news category title correspondence for being shown in user terminal is stored with the news and is buffered in CDN The storage location of node server, after data transfer request is sent to CDN network by terminal, CDN network can be passed according to data Address information in defeated request determines the position of the cache file.
Step 103: cache file is verified according to the identity of demand file, according to verification result determine to Transmit file.
Wherein, the identity of identity with demand file of file to be transmitted is identical.
It should be noted that file identity mark is used for the content of tab file, if the content of file changes, body Part mark will change, thus, can determine whether file is tampered by the identity of file, determines file to be transmitted Identity it is identical as the identity of demand file, then illustrate the content of file to be transmitted and the content one of demand file It causes.
In specific implementation, cache file is verified according to the identity of demand file, and is sentenced according to verification result Whether disconnected cache file is tampered, a specific implementation are as follows: obtain the identity of cache file;Judge the identity of cache file It identifies whether identical as the identity of demand file;If it is different, updating cache file, the body of updated cache file is determined Part mark is identical as the identity of demand file, and updated cache file is determined as file to be transmitted;If they are the same, it determines Cache file is file to be transmitted.
Wherein, judge whether the identity of identity and the demand file of cache file is identical, it can by comparing Method obtains comparing result for example, the identity of the identity of cache file and demand file is compared one by one, Judge that comparing result indicates whether that the identity of identity with demand file of cache file is identical.It is only that example is said herein It is bright, other modes specifically also may be selected, specifically with no restrictions.
In one specific implementation, identity is the Message Digest 5 MD5 value of demand file.Then according to application documents MD5 value verifies cache file, and the identity for obtaining cache file is embodied as, and calculates and obtains file to be transmitted MD5 value judges whether the MD5 value of cache file is identical as the MD5 value of application documents.For example, the MD5 value of application documents and caching The MD5 value of file judges whether cache file can be determined as file to be transmitted by making the difference method, according to the result for the method that makes the difference.It is real During border is implemented, it is only example herein that identity, which can also be the mark of other agreements, can also for specific judgment mode The adjustment of adaptability is only example herein, is not specifically limited.
Wherein, different from the identity of demand file in the identity for determining cache file, need to update caching text Part, it should be noted that during updating cache file, need to delete the caching being tampered in CDN node server File avoids occurring during updating cache file abnormal to store the cache file of update.
Step 104: file to be transmitted is transmitted to the corresponding terminal of data transfer request.
In specific implementation, cache file is carried out verifying determining cache file being the file being not tampered with, can determine CDN Cache file in node server is the demand file that terminal needs, and it is corresponding that file to be transmitted is transmitted to data transfer request Terminal.
The first embodiment of the present invention is related to a kind of data transmission method, the implementation steps of present embodiment, by obtaining Data transfer request is taken, and cache file is determined according to the address information in data transfer request, according to identity to caching File is verified and determines file to be transmitted, it is ensured that the content transmission being not tampered with is corresponding to data transfer request end Terminal.It should be noted that the specific implementation in present embodiment is a kind of possible implementation, or for convenience Understand that a certain implementation steps illustrate the implementation steps, is not necessary embodiment, by way of example only, not Technical solution of the present invention is constituted and is limited.
It in terms of existing technologies, include the address information and identity mark of demand file in the data transfer request of acquisition Know, cache file is determined according to address information, and verify to cache file according to identity, if cache file occurs to appoint What changes, then identity will change, and can determine whether cache file is tampered with by identity, therefore, really File to be transmitted identical with demand file identity tag is made, can guarantee the accurate response data transmission of CDN node server Request, and ensure that file to be transmitted is the file being not tampered with, prevent CDN node server and has been passed to data transfer request end A possibility that defeated illegal file, improves the safety of CDN node server info transmission.
Second embodiment of the present invention is related to a kind of data transmission method, and second embodiment is big with first embodiment It causes identical, is in place of the main distinction, specifically illustrates the embodiment for updating cache file in this second embodiment.Its side Method process is as shown in Fig. 2, include following implementation steps.
It should be noted that step 201, step 202 and step 210 in present embodiment respectively with the first embodiment party Step 101, step 202 and step 104 in formula is identical, and details are not described herein again, mainly introduces difference below:
Step 203: obtaining the identity of cache file.
In specific implementation, whether cache file is determined according to the identity of the identity of cache file and demand file It is modified, the type of identity of identity with demand file of cache file is identical, for example, the identity mark of demand file Knowledge is MD5 value, then the identity of cache file is also MD5 value, which is embodied as, and calculates and obtains file to be transmitted MD5 value.In addition, identity can also be other numerical value, identity be mainly used for judging cache file whether by It distorts, therefore, as long as identity can indicate the content of cache file, specifically without limitation.
Step 204: judging whether the identity of identity and the demand file of cache file is identical, if it is, holding Otherwise row step 205 executes step 206 to step 209.
Step 205: determining that cache file is file to be transmitted, turn to go to execute step 210.
In specific implementation, the identity of identity with demand file of cache file is identical, then illustrates cache file It is not tampered with, which can be transmitted to the corresponding terminal of data transfer request.
Step 206: the request of transmission update cache file to source station.
Step 207: obtaining the original document of the cache file of source station transmission.
Step 208: original document being cached, the file of caching is updated cache file.
Step 209: determining that the identity of identity with demand file of updated cache file is identical, will update Cache file afterwards is determined as file to be transmitted, continues to execute step 210.
It in specific implementation, determines that the identity of cache file is tampered, then needs to be updated according to the original document of source station Cache file.It should be noted that the cache file of source station is stored in CDN node server after CDN network is established, The identity of demand file in terminal and the identity of original document are identical, thus, pass through source when updating cache file Original document in standing is updated cache file, it is ensured that the body of identity and the demand file of updated cache file Part mark is identical.
In specific implementation, if the identity of demand file is MD5 value, the MD5 of the original document of source station response is extracted Value, compares, the MD5 value for determining original document is identical as the MD5 value of demand file, then updates with the MD5 value of demand file Cache file it is identical as the MD5 value of demand file, updated cache file is determined as file to be transmitted.
It should be noted that the above specific embodiment is by way of example only, technical solution of the present invention is not constituted It limits.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed Core design with process is all in the protection scope of the patent.
Third embodiment of the invention is related to a kind of data transmission device, as shown in Figure 3, comprising: obtain module 301, really Cover half block 302, authentication module 302 and transmission module 304.
It obtains module 301 to be used for, obtains data transfer request, wherein include the ground of demand file in data transfer request Location information and identity.
Determining module 302 is used for, and determines cache file according to address information.
Authentication module 303 is used for, and is verified according to the identity of demand file to cache file, according to verification result Determine file to be transmitted;Wherein, the identity of identity with demand file of file to be transmitted is identical.
Transmission module 304 is used for, and file to be transmitted is transmitted to the corresponding terminal of data transfer request.
It is not difficult to find that present embodiment is system embodiment corresponding with first embodiment, present embodiment can be with First embodiment is worked in coordination implementation.The relevant technical details mentioned in first embodiment still have in the present embodiment Effect, in order to reduce repetition, which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in In first embodiment.
It is noted that each module involved in present embodiment is logic module, and in practical applications, one A logic unit can be a physical unit, be also possible to a part of a physical unit, can also be with multiple physics lists The combination of member is realized.In addition, in order to protrude innovative part of the invention, it will not be with solution institute of the present invention in present embodiment The technical issues of proposition, the less close unit of relationship introduced, but this does not indicate that there is no other single in present embodiment Member.
Four embodiment of the invention is related to a kind of data transmission device.4th embodiment and third embodiment are substantially It is identical, in four embodiment of the invention, the concrete function of authentication module is specifically illustrated, structure is as shown in figure 4, packet Include: acquisition submodule 3031, judging submodule 3032 update submodule 3033 and determine submodule 3034.
Acquisition submodule 3031 is used for, and obtains the identity of cache file.
Judging submodule 3032 is used for, judge identity with the demand file of cache file identity whether phase Together.
It updates submodule 3033 to be used for, updates cache file, determine the identity and request of updated cache file The identity of file is identical, and updated cache file is determined as file to be transmitted.
It determines that submodule 3034 is used for, determines that cache file is file to be transmitted.
It in one specific implementation, updates submodule 3033 and is specifically used for, send the request for updating cache file to source station;It obtains The original document for the cache file for taking source station to transmit;Original document is cached, the file of caching is updated caching text Part.
Since second embodiment is corresponded to each other with present embodiment, present embodiment can be mutual with second embodiment Match implementation.The relevant technical details mentioned in second embodiment are still effective in the present embodiment, implement second The attainable technical effect of institute similarly may be implemented in the present embodiment in mode, no longer superfluous here in order to reduce repetition It states.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in second embodiment.
Fifth embodiment of the invention is related to a kind of server, including at least one processor 501;And at least one The memory 502 that a processor 501 communicates to connect, wherein memory 502, which is stored with, to be executed by least one processor 501 Instruction, instruction executed by least one processor 501 so that at least one processor 501 is able to carry out data transmission method.
In present embodiment, for processor 501 is with central processing unit (Central Processing Unit, CPU), For memory 502 is with readable and writable memory (Random Access Memory, RAM).Processor 501, memory 502 can be with It is connected by bus or other modes, in Fig. 5 for being connected by bus.Memory 502 is used as a kind of non-volatile meter Calculation machine readable storage medium storing program for executing can be used for storing non-volatile software program, non-volatile computer executable program and module, As realized in the application embodiment, the program of data transmission method is stored in memory 502.Processor 501 passes through operation Non-volatile software program, instruction and the module being stored in memory 502, thereby executing equipment various function application with And data processing, that is, realize above-mentioned data transmission method.
Memory 502 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;It storage data area can the Save option list etc..In addition, memory can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other non-volatile solid state memory parts.In some embodiments, it includes relative to processor that memory 502 is optional 501 remotely located memories, these remote memories can pass through network connection to external equipment.The example packet of above-mentioned network Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more program module is stored in memory 502, is executed when by one or more processor 501 When, execute the data transmission method in above-mentioned first or second method implementation.
Data transmission method provided by the application embodiment can be performed in the said goods, has the corresponding function of execution method Can module and beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to the application embodiment is mentioned The data transmission method of confession.
Sixth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer The data transmission method in above-mentioned first or second embodiment is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of data transmission method, which is characterized in that be applied to content distributing network CDN node server, comprising:
Obtain data transfer request, wherein include the address information and identity of demand file in the data transfer request;
Cache file is determined according to the address information;
The cache file is verified according to the identity of the demand file, is determined according to verification result to be transmitted File;Wherein, the identity of the file to be transmitted is identical as the identity of the demand file;
The file to be transmitted is transmitted to the corresponding terminal of the data transfer request.
2. data transmission method according to claim 1, which is characterized in that the identity mark according to the demand file The file to be transmitted is verified in knowledge, is determined file to be transmitted according to verification result, is specifically included:
Obtain the identity of the cache file;
Judge whether the identity of identity with the demand file of the cache file is identical;
If it is different, updating the cache file, the body of identity Yu the demand file of updated cache file is determined Part mark is identical, and updated cache file is determined as file to be transmitted;
If they are the same, determine that the cache file is file to be transmitted.
3. data transmission method according to claim 2, which is characterized in that described to update the cache file, specific packet It includes:
It sends and updates the request of the cache file to source station;
Obtain the original document of the cache file of the source station transmission;
The original document is cached, the file of caching is updated cache file.
4. data transmission method according to claim 3, which is characterized in that the identity of the original document with it is described The identity of demand file is identical.
5. data transmission method according to claim 1-4, which is characterized in that the identity is described asks Seek the Message Digest 5 MD5 value of file.
6. data transmission method according to claim 5, which is characterized in that the identity mark for obtaining the cache file Know, specifically include:
Calculate the MD5 value for obtaining the file to be transmitted.
7. a kind of data transmission device characterized by comprising obtain module, determining module, authentication module and transmission module;
The acquisition module is used for, and obtains data transfer request, wherein includes the ground of demand file in the data transfer request Location information and identity;
The determining module is used for, and determines cache file according to the address information;
The authentication module is used for, and is verified according to the identity of the demand file to the cache file, according to testing Card result determines file to be transmitted;Wherein, the identity of identity Yu the demand file of the file to be transmitted It is identical;
The transmission module is used for, and the file to be transmitted is transmitted to the corresponding terminal of the data transfer request.
8. data transmission device according to claim 7, which is characterized in that the authentication module specifically includes: obtaining son Module, judging submodule update submodule and determine submodule;
The acquisition submodule is used for, and obtains the identity of the cache file;
The judging submodule is used for, judge identity Yu the demand file of the cache file identity whether It is identical;
The update submodule is used for, and updates the cache file, determine the identity of updated cache file with it is described The identity of demand file is identical, and updated cache file is determined as file to be transmitted;
The determining submodule is used for, and determines that the cache file is file to be transmitted.
9. data transmission device according to claim 8, which is characterized in that the update submodule is specifically used for:
It sends and updates the request of the cache file to source station;
Obtain the original document of the cache file of the source station transmission;
The original document is cached, the file of caching is updated cache file.
10. a kind of server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;
Wherein, the memory be stored with can by least one described processor execute instruction, described instruction by it is described at least One processor executes, so that at least one described processor is able to carry out the transmission of the data as described in claim 1 to 7 is any Method.
CN201910114106.7A 2019-02-14 2019-02-14 A 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 A 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 A data transmission method and related device, server and storage medium

Publications (2)

Publication Number Publication Date
CN109672756A true CN109672756A (en) 2019-04-23
CN109672756B 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 A data transmission method and related device, server and storage medium

Country Status (1)

Country Link
CN (1) CN109672756B (en)

Cited By (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
CN116894014A (en) * 2023-09-08 2023-10-17 荣耀终端有限公司 Cache updating method, server, terminal equipment and chip system

Citations (11)

* 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
CN103036967A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 A download management device, method and data download system
CN104768079A (en) * 2014-01-03 2015-07-08 腾讯科技(深圳)有限公司 Multimedia resource distribution method, device and system
CN104836821A (en) * 2014-02-10 2015-08-12 腾讯科技(深圳)有限公司 Method, device and equipment for network acceleration based on router
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 data processing method and device
CN107181804A (en) * 2017-05-25 2017-09-19 腾讯科技(深圳)有限公司 The method for down loading and device of resource
CN107645543A (en) * 2017-09-04 2018-01-30 北京新流万联网络技术有限公司 Method and system applied to the non-80 caching miniport services of caching server HTTP
CN108234639A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of data access method and device based on content distributing network CDN
CN108667827A (en) * 2018-04-25 2018-10-16 北京白山耘科技有限公司 Cloud distribution network cache contents method of calibration, device, network, storage medium and computing device

Patent Citations (11)

* 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
CN103036967A (en) * 2012-12-10 2013-04-10 北京奇虎科技有限公司 A download management device, method and data download system
CN104768079A (en) * 2014-01-03 2015-07-08 腾讯科技(深圳)有限公司 Multimedia resource distribution method, device and system
CN104836821A (en) * 2014-02-10 2015-08-12 腾讯科技(深圳)有限公司 Method, device and equipment for network acceleration based on router
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 data processing method and device
CN107181804A (en) * 2017-05-25 2017-09-19 腾讯科技(深圳)有限公司 The method for down loading and device of resource
CN107645543A (en) * 2017-09-04 2018-01-30 北京新流万联网络技术有限公司 Method and system applied to the non-80 caching miniport services of caching server HTTP
CN108234639A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of data access method and device based on content distributing network CDN
CN108667827A (en) * 2018-04-25 2018-10-16 北京白山耘科技有限公司 Cloud distribution network cache contents method of calibration, device, network, storage medium and computing device

Cited By (3)

* 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
CN116894014A (en) * 2023-09-08 2023-10-17 荣耀终端有限公司 Cache updating method, server, terminal equipment and chip system
CN116894014B (en) * 2023-09-08 2024-02-27 荣耀终端有限公司 Cache updating method, server, terminal equipment and chip system

Also Published As

Publication number Publication date
CN109672756B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US7447755B1 (en) Method and apparatus for policy management in a network device
CN110086755B (en) Method for realizing service of Internet of things, application server, Internet of things equipment and medium
CN111263352A (en) OTA (over the air) upgrading method and system of vehicle-mounted equipment, storage medium and vehicle-mounted equipment
CN112131021A (en) Access request processing method and device
WO2019134494A1 (en) Verification information processing method, communication device, service platform, and storage medium
CN112311769B (en) Method, system, electronic device and medium for security authentication
CN105897663A (en) Method for determining access authority, device and equipment
GB2505730A (en) Cross-Origin Resource Sharing (CORS) with access control in a communications network
CN107888589A (en) A kind of method and its system for calling trusted application
US12425237B2 (en) Guarding device onboarding ownership vouchers against unauthorized ownership changes
US12021843B2 (en) Policy based personally identifiable information leakage prevention in cloud native environments
CN111614731A (en) Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium
CN109672756A (en) A kind of data transmission method and relevant apparatus, server and storage medium
CN111310233A (en) Application interface display method, device, equipment and storage medium
US20100106771A1 (en) Method and apparatus for communication based on certification using static and dynamic identifier
CN114125812A (en) A data synchronization method, device, server and storage medium
CN113709136A (en) Access request verification method and device
WO2025007511A1 (en) Method for allocating network slices, data processing method and system, and electronic device
CN117254969A (en) Registration authentication method for intelligent equipment accessing to Internet of things system
CN109379344B (en) Access request authentication method and authentication server
US11777742B2 (en) Network device authentication
CN114285845B (en) Networking authentication method and system in cloud environment, computer equipment and storage medium
CN117579325A (en) Digital certificate verification method and related device
CN110866827A (en) Method and device for processing general certificate, storage medium and server
CN113518124B (en) Internet of things equipment authentication method based on cellular block chain network

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载