CN109660496A - Acquisition, resource checksum and the dissemination method of check information, device and electronic equipment - Google Patents

Acquisition, resource checksum and the dissemination method of check information, device and electronic equipment Download PDF

Info

Publication number
CN109660496A
CN109660496A CN201710947291.9A CN201710947291A CN109660496A CN 109660496 A CN109660496 A CN 109660496A CN 201710947291 A CN201710947291 A CN 201710947291A CN 109660496 A CN109660496 A CN 109660496A
Authority
CN
China
Prior art keywords
resource
information
piecemeal
check
downloaded
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
CN201710947291.9A
Other languages
Chinese (zh)
Other versions
CN109660496B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710947291.9A priority Critical patent/CN109660496B/en
Publication of CN109660496A publication Critical patent/CN109660496A/en
Application granted granted Critical
Publication of CN109660496B publication Critical patent/CN109660496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides acquisition, resource checksum and dissemination method, device and the electronic equipment of a kind of check information, wherein, the method of calibration of resource includes: the resource download request for receiving requesting node and sending, the interval range for each piecemeal resource that first interval information and the resources to be downloaded found in local storage unit in request are included is compared, it is determining with first interval information with the first piecemeal resource for being overlapped section;Verification calculating is carried out using preset checking algorithm to each first piecemeal resource respectively, obtains third check value;The corresponding check value of piecemeal resource same in the piecemeal check information stored in each third check value and local information library is compared, if identical, the corresponding resource part of first interval information in corresponding piecemeal resource is sent to requesting node.The scheme of the embodiment of the present invention can carry out piecemeal verification to the resource shared in P2P network, to improve the sharing rate of resource file.

Description

Acquisition, resource checksum and the dissemination method of check information, device and electronic equipment
Technical field
This application involves field of computer technology more particularly to a kind of acquisitions of check information, resource checksum and publisher Method, device and electronic equipment.
Background technique
Peer-to-peer computer network (Peer to Peer, P2P) system is made of numerous P2P nodes, and each node can Resource can also be published on Resource Server after downloading complete resource by P2P network download resource, saved to other Point provides upload service.
In P2P network system, since network data abduction is distorted, small operator is redirected, and the bad card of disk leads to local The various problems such as data corruption, cause to will appear wrong data in data transmission procedure.If there is error number in video resource According to, will lead to user and occur Caton during playing video, various broadcasting such as flower screen extremely, strong influence user's body It tests.
In addition, P2P network is a divergence form network, once the wrong data of P2P node, it will be in a short time Rapidly throughout whole network, entire P2P network system is caused to be paralysed.
In order to guarantee that the correctness of resource data, general solution are after resource downloading completion, to entire text Part does a MD5 verification, judges whether there is wrong data, detailed process is as follows for scheme:
Before starting to download resource, the MD5 value A of the resource is first requested to Resource Server, after downloading completes, to whole A resource file calculates a MD5 value B.Judge whether A and B is equal, if unequal, illustrates that current file and original document have Difference, there may be wrong data for the inside.Resource can neither be supplied to player use in this case, it can not be by resource Other nodes are uploaded to, need to delete entire resource at this time, then re-download.If check results are that two MD5 values are consistent, say Bright the inside does not have wrong data, and this document can be used normally.
But existing solution, entire resource is needed all to delete after there is wrong data.This For big resource file (such as: video, generally for several MB to several GB etc.), because the wrong data of part, causes The deletion of entire file, then re-download, it will result in the huge wasting of resources.
In addition, existing solution can not solve the case where local data is destroyed.For example, after downloading completes, Passed through using MD5 verification, but file data is destroyed during being locally stored, when uploading resource, directly to right Side provides data, still can introduce wrong data to network.
Summary of the invention
The present invention provides a kind of acquisition of check information, resource checksum and dissemination method, device and electronic equipments, can be right The resource shared in P2P network carries out piecemeal verification, to improve the sharing rate of resource file.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of acquisition methods of resource checksum information, comprising:
Resource information request is sent to server, to obtain the resource information of resources to be downloaded;
The resource information that the server returns is received, the resource information includes: piecemeal check information and resource node Information;The piecemeal check information is for verifying multiple piecemeal resources of the resources to be downloaded, the resource node The position of node where information indicates the resources to be downloaded.
Second aspect provides the acquisition methods of another resource checksum information, comprising:
Resource information request is sent to server, obtains the resource information of resources to be downloaded, the resource information includes: point The first check value and resource node information of block checking information;The piecemeal check information is used for the more of the resources to be downloaded A piecemeal resource is verified;First check value is for verifying the piecemeal check information, the resource node The position of node where information indicates the resources to be downloaded;
According to the resource node information, Xiang Suoshu resource node sends the request of piecemeal check information, obtains described under The piecemeal check information of resource is carried, includes first check value in the piecemeal check information request,
The piecemeal check information is that the resource node searches acquisition in local information library, and uses first school It tests after value verification passes through and issues.
The third aspect provides a kind of method of calibration of piecemeal resource, comprising:
The resource download request that requesting node is sent is received, includes the first of resources to be downloaded in the resource download request Block information;
By the first interval information included with the resources to be downloaded found in local storage unit it is each The interval range of piecemeal resource is compared, determining to have the first piecemeal resource for being overlapped section with the first interval information;
Verification calculating is carried out using preset checking algorithm to each first piecemeal resource respectively, obtains third verification Value;
Same piecemeal resource in the piecemeal check information stored in each third check value and local information library is corresponding Check value be compared, if identical, by the corresponding resource part of first interval information described in corresponding piecemeal resource It is sent to the requesting node.
Fourth aspect provides the method for calibration of another piecemeal resource, comprising:
Resource download request is sent to resource node, obtains the number of resources being located in first interval information in resources to be downloaded According to;
All first interval information of the received resources to be downloaded are spliced to form second interval information, and Second interval information interval range corresponding with each piecemeal resource that the resources to be downloaded are included is compared, is determined There is the first piecemeal resource for being overlapped section with the second interval information;
To the resource part being located in each first piecemeal resource in the received resources to be downloaded using default Checking algorithm carry out verification calculating respectively, obtain the 4th check value;
By each 4th check value and same piecemeal in the piecemeal check information for the resources to be downloaded being locally stored The corresponding check value of resource is compared, if identical, will be had in corresponding piecemeal resource with the second interval information The resource part for being overlapped section is saved to local.
5th aspect, provides a kind of dissemination method of resource, comprising:
Resource publication request is sent to server, includes the piecemeal verification letter of resource to be released in the resource publication request Breath;
The resource publication result information that the server is sent is received,
The publication result information is that the server local is already present and the publication resource is same resource pair After the piecemeal check information answered is compared, the transmitted publication success message when comparison result is identical, alternatively, comparing Transmitted publication failed message when being as a result different;
Alternatively,
The publication result information is that there is no be that same resource is corresponding with the publication resource for the server local Transmitted publication success message when piecemeal check information.
6th aspect, provides the dissemination method of another resource, comprising:
Resource publication request is sent to server, includes the piecemeal verification letter of resource to be released in the resource publication request First check value of breath;
The resource publication result information that the server is sent is received,
The publication result information is that the server local is already present and the publication resource is same resource pair After first check value of the piecemeal check information answered is compared, when comparison result is identical, transmitted publication successfully disappears Breath, alternatively, the publication failed message transmitted when comparison result is different;
Alternatively,
The publication result information is that there is no be that same resource is corresponding with the publication resource for the server local Transmitted publication success message when the first check value of piecemeal check information.
7th aspect, provides a kind of acquisition device of resource checksum information, comprising:
First resource information request module, for sending resource information request to server, to obtain resources to be downloaded Resource information;
First resource information receiving module, the resource information returned for receiving the server, the resource information packet It includes: piecemeal check information and resource node information;The piecemeal check information is used for multiple piecemeals to the resources to be downloaded Resource is verified, the position of node where the resource node information indicates the resources to be downloaded.
Eighth aspect provides the acquisition device of another resource checksum information, comprising:
Secondary resource information request module obtains the money of resources to be downloaded for sending resource information request to server Source information, the resource information include: the first check value and resource node information of piecemeal check information;The piecemeal verification letter Breath is verified for multiple piecemeal resources to the resources to be downloaded;First check value is used to verify the piecemeal Information is verified, the position of node where the resource node information indicates the resources to be downloaded;
Check information request module, for according to the resource node information, Xiang Suoshu resource node to send piecemeal verification Information request obtains the piecemeal check information of the resources to be downloaded, includes described first in the piecemeal check information request Check value,
The piecemeal check information is that the resource node searches acquisition in local information library, and uses first school It tests after value verification passes through and issues.
9th aspect, provides a kind of calibration equipment of piecemeal resource, comprising:
Request receiving module is downloaded, for receiving the resource download request of requesting node transmission, the resource download request In include resources to be downloaded first interval information;
First resource comparison module, described in being found by the first interval information and in local storage unit The interval range for each piecemeal resource that resources to be downloaded are included is compared, and determination has with the first interval information to be overlapped The first piecemeal resource in section;
First verification computing module, for carrying out school respectively using preset checking algorithm to each first piecemeal resource Calculating is tested, third check value is obtained;
Resource sending module, in the piecemeal check information for that will store in each third check value and local information library The corresponding check value of same piecemeal resource is compared, if identical, first interval described in corresponding piecemeal resource is believed It ceases corresponding resource part and is sent to the requesting node.
Tenth aspect, provides the calibration equipment of another piecemeal resource, comprising:
Request module is downloaded, for sending resource download request to resource node, obtains and is located at first in resources to be downloaded Resource data in block information;
Secondary resource comparison module, for spelling all first interval information of the received resources to be downloaded It connects to form second interval information, and by second interval information area corresponding with each piecemeal resource that the resources to be downloaded are included Between range be compared, determine to have with the second interval information and be overlapped the first piecemeal resource in section;
Second verification computing module, for in the received resources to be downloaded be located at each first piecemeal resource In resource part verification calculating is carried out using preset checking algorithm respectively, obtain the 4th check value;
Resource processing module, for by each 4th check value and the piecemeal school of the resources to be downloaded that is locally stored The corresponding check value of same piecemeal resource in information is tested to be compared, if identical, by corresponding piecemeal resource with it is described There is second interval information the resource part for being overlapped section to save to local.
On the one hand tenth, provides a kind of distributing device of resource, comprising:
First posting request sending module, for sending resource publication request to server, in the resource publication request Piecemeal check information including resource to be released;
First publication result receiving module issues result information for receiving the resource that the server is sent,
The publication result information is that the server local is already present and the publication resource is same resource pair After the piecemeal check information answered is compared, the transmitted publication success message when comparison result is identical, alternatively, comparing Transmitted publication failed message when being as a result different;
Alternatively,
The publication result information is that there is no be that same resource is corresponding with the publication resource for the server local Transmitted publication success message when piecemeal check information.
12nd aspect, provides the distributing device of another resource, comprising:
Second posting request sending module, for sending resource publication request to server, in the resource publication request First check value of the piecemeal check information including resource to be released;
Second publication result receiving module issues result information for receiving the resource that the server is sent,
The publication result information is that the server local is already present and the publication resource is same resource pair After first check value of the piecemeal check information answered is compared, when comparison result is identical, transmitted publication successfully disappears Breath, alternatively, the publication failed message transmitted when comparison result is different;
Alternatively,
The publication result information is that there is no be that same resource is corresponding with the publication resource for the server local Transmitted publication success message when the first check value of piecemeal check information.
13rd aspect, provides a kind of electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource information request is sent to server, to obtain the resource information of resources to be downloaded;
The resource information that the server returns is received, the resource information includes: piecemeal check information and resource node Information;The piecemeal check information is for verifying multiple piecemeal resources of the resources to be downloaded, the resource node The position of node where information indicates the resources to be downloaded.
Fourteenth aspect provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource information request is sent to server, obtains the resource information of resources to be downloaded, the resource information includes: point The first check value and resource node information of block checking information;The piecemeal check information is used for the more of the resources to be downloaded A piecemeal resource is verified;First check value is for verifying the piecemeal check information, the resource node The position of node where information indicates the resources to be downloaded;
According to the resource node information, Xiang Suoshu resource node sends the request of piecemeal check information, obtains described under The piecemeal check information of resource is carried, includes first check value in the piecemeal check information request,
The piecemeal check information is that the resource node searches acquisition in local information library, and uses first school It tests after value verification passes through and issues.
15th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The resource download request that requesting node is sent is received, includes the first of resources to be downloaded in the resource download request Block information;
By the first interval information included with the resources to be downloaded found in local storage unit it is each The interval range of piecemeal resource is compared, determining to have the first piecemeal resource for being overlapped section with the first interval information;
Verification calculating is carried out using preset checking algorithm to each first piecemeal resource respectively, obtains third verification Value;
Same piecemeal resource in the piecemeal check information stored in each third check value and local information library is corresponding Check value be compared, if identical, by the corresponding resource part of first interval information described in corresponding piecemeal resource It is sent to the requesting node.
16th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource download request is sent to resource node, obtains the number of resources being located in first interval information in resources to be downloaded According to;
All first interval information of the received resources to be downloaded are spliced to form second interval information, and Second interval information interval range corresponding with each piecemeal resource that the resources to be downloaded are included is compared, is determined There is the first piecemeal resource for being overlapped section with the second interval information;
To the resource part being located in each first piecemeal resource in the received resources to be downloaded using default Checking algorithm carry out verification calculating respectively, obtain the 4th check value;
By each 4th check value and same piecemeal in the piecemeal check information for the resources to be downloaded being locally stored The corresponding check value of resource is compared, if identical, will be had in corresponding piecemeal resource with the second interval information The resource part for being overlapped section is saved to local.
17th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource publication request is sent to server, includes the piecemeal verification letter of resource to be released in the resource publication request Breath;
The resource publication result information that the server is sent is received,
The publication result information is that the server local is already present and the publication resource is same resource pair After the piecemeal check information answered is compared, the transmitted publication success message when comparison result is identical, alternatively, comparing Transmitted publication failed message when being as a result different;
Alternatively,
The publication result information is that there is no be that same resource is corresponding with the publication resource for the server local Transmitted publication success message when piecemeal check information.
18th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource publication request is sent to server, includes the piecemeal verification letter of resource to be released in the resource publication request First check value of breath;
The resource publication result information that the server is sent is received,
The publication result information is that the server local is already present and the publication resource is same resource pair After first check value of the piecemeal check information answered is compared, when comparison result is identical, transmitted publication successfully disappears Breath, alternatively, the publication failed message transmitted when comparison result is different;
Alternatively,
The publication result information is that there is no be that same resource is corresponding with the publication resource for the server local Transmitted publication success message when the first check value of piecemeal check information.
Acquisition, resource checksum and the dissemination method of check information provided by the invention, device and electronic equipment, in P2P net When carrying out resource file sharing (such as resource downloading, resource are issued) in network, the resource of sharing is carried out in the form of piecemeal resource Verification downloads node after the piecemeal resource downloaded is verified and succeeded, and downloading node just can be reserved for the piecemeal resource, To improve the sharing rate of resource.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the application can It is clearer and more comprehensible, below the special specific embodiment for lifting the application.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the logical architecture figure of traditional resource sharing scheme;
Fig. 2 is the logical architecture figure of the resource sharing scheme of the embodiment of the present invention;
Fig. 3 is the acquisition methods flow chart one of the resource checksum information of the embodiment of the present invention;
Fig. 4 is the acquisition methods flowchart 2 of the resource checksum information of the embodiment of the present invention;
Fig. 5 is the method for calibration flow chart one of the piecemeal resource of the embodiment of the present invention;
Fig. 6 is the method for calibration flowchart 2 of the piecemeal resource of the embodiment of the present invention;
Fig. 7 is the dissemination method flow chart one of the resource of the embodiment of the present invention;
Fig. 8 is the dissemination method flowchart 2 of the resource of the embodiment of the present invention;
Fig. 9 is the acquisition device structure chart one of the resource checksum information of the embodiment of the present invention;
Figure 10 is the acquisition device structure chart two of the resource checksum information of the embodiment of the present invention;
Figure 11 is the calibration equipment structure chart one of the piecemeal resource of the embodiment of the present invention;
Figure 12 is the calibration equipment structure chart two of the piecemeal resource of the embodiment of the present invention;
Figure 13 is the distributing device structure chart one of the resource of the embodiment of the present invention;
Figure 14 is the distributing device structure chart two of the resource of the embodiment of the present invention;
Figure 15 is the structural schematic diagram one of the electronic equipment of the embodiment of the present invention;
Figure 16 is the structural schematic diagram two of the electronic equipment of the embodiment of the present invention;
Figure 17 is the structural schematic diagram three of the electronic equipment of the embodiment of the present invention;
Figure 18 is the structural schematic diagram four of the electronic equipment of the embodiment of the present invention;
Figure 19 is the structural schematic diagram five of the electronic equipment of the embodiment of the present invention;
Figure 20 is the structural schematic diagram six of the electronic equipment of the embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The scheme of traditional resource sharing, mainly using complete resource file as the resource object shared, in P2P net Resource downloading or resource publication are carried out in network.As shown in Figure 1, being the logical architecture figure of traditional resource sharing scheme.Such as Fig. 1 Shown, the main body in traditional P2P network mainly includes server 110, CDN (content distributing network) 120 and P2P node 130, Wherein:
Server 110, for storing the resource information that each P2P node 130 is issued in P2P network, it should be noted that only The resource information can just be issued to server by having the P2P node for the complete content for possessing a certain resource;The resource being published It include: the resource ID for being published resource, resource size information, MD5 value and the resource node information structure for issuing the resource in information At resource node list;
CDN120, the networked storage units of the complete content for storing a certain resource, uniquely being specified by resource URL should The storage location of CDN120;
P2P node can be illustrated as logging in the terminal device (can be multiple) in P2P network, each P2P from the angle of broad sense Resource sharing can be carried out between node, wherein request the P2P node of resource downloading to can be described as requesting node, downloading resource is provided P2P node can be described as resource node, to server 110 issue resource information P2P node can be described as publisher node, each P2P node can switch role according to behavior during resource sharing.Each P2P node may include two parts, client App and accelerator, client App is mainly used for responding the resource playing request of user, and is downloaded from P2P network by accelerator Requested resource in playing request, therefore a P2P can be illustrated as from the accelerator in the angle of narrow sense, each terminal device Node.
Specifically, when requesting node is intended to download a certain resource, can first in local according to unified resource ID create-rule, And the resource URL of requested resource generates the corresponding resource ID of the resource (the corresponding unique resource ID of each resource). Then the resource ID is sent to server 110, whether to store the information of the resource comprising the resource ID on query service device; If it is not, downloading the resource from CDN120 (if requesting node thinks that publication should according to the resource URL of requested resource Resource need to download complete resource from CDN120), if so, then obtaining the corresponding resource information of requested resource;From acquisition Resource information in take issue the resource resource node, and to the resource node send resource download request, the request In include resource ID and resource MD5 value, to download the resource from resource node.
After resource node receives the resource download request of requesting node, found from local information bank according to resource ID Corresponding resource information entry, and the MD5 value carried in the MD5 value of resource therein and request is compared, if identical Requested resource is then extracted from local storage unit, verification then is carried out to resource, check value is calculated, and again will The MD5 value of resource is compared to realize and verify to the integrality of the resource with the check value, if two values are identical, Determination verifies successfully and sends resource to requesting node.
After the completion of requesting node downloads a certain resource, for the integrality of Support Resource, master gage can be carried out to resource Calculation obtains check value, and is compared to the MD5 value of resource and the check value to realize the integrality progress to the resource again Verification, if two values are identical, it is determined that verify successfully, and retain the resource to local storage unit.
It, can be first right when requesting node changing role is intended to issue the information of the resource to server 110 as publisher node Resource carries out verification and check value is calculated, and is compared to realize to the money by the MD5 value of resource and the check value again The integrality in source is verified, if two values are identical, it is determined that is verified successfully and is disappeared to the transmission resource publication of server 110 Breath, completes the publication of resource;If verification failure does not send resource to server 110 for Current resource and gives out information.
It can be learned from Fig. 1, share the behavior of resource between each P2P node 130, P2P node 130 is obtained from server 110 The behavior of the resource information taken is premised on the resource of publisher node publication is complete resource.It is downloaded in requesting node Resource requires the MD5 value pair using resource during resource node provides resource and publisher node publication resource information Corresponding resource carries out completeness check, to guarantee the integrality for the resource propagated in P2P network.But requesting node Complete resource is downloaded from resource node, the especially biggish full resource of file is highly difficult, and reason is to download node The resource requested every time may not be inherently complete resource, or in downloading and during storage resource it is possible that Wrong data, and these situations may cause resource and not passed through when carrying out completeness check, and once verify and do not pass through, Requesting node can not just judge the correctness of resource data, even if there are mistakes for the data content of only small part, also will Entire resource is deleted, and from newly downloaded, to reduce resource, the P2P of especially big file resource shares efficiency.
Logical architecture of this programme based on the sharing scheme in traditional P2P network introduces new to resource file Checkschema.As shown in Fig. 2, the logical architecture based on the sharing scheme in traditional P2P network, in the present solution, being saved in each P2P Unified resource segmentation rules are increased in point, so as to the piecemeal resource after same resource file cutting on each P2P node Content is identical.Meanwhile the checking algorithm of built-in identical piecemeal resource, guarantee that the corresponding check value of identical piecemeal resource is identical, To guarantee that the corresponding piecemeal check information of same resource is identical.After so-called piecemeal check information is carries out cutting to resource, Each piecemeal resource of formation is carried out that check value is calculated respectively by default checking algorithm, and will be after the splicing of these check values It is formed by character string.
This programme is when verifying resource file, by the way of piecemeal resource checksum.Resource node is providing money During source, during downloading resource, only piecemeal resource checksum to be shared passes through requesting node, so that it may share or Store corresponding sub-block resource.But there is still a need for when issuing message related to resources to server 110 with publisher node local for publisher node It is stored with premised on complete resource.It include resource ID, piecemeal check information (or piecemeal in the resource information of publisher node publication The MD5 value of check information, piecemeal check information is stored on resource node at this time, and requesting node need to pass through the piecemeal check information MD5 value obtain piecemeal check information from resource node), resource node list and other resource informations such as: resource size, MD5 value of resource etc..
This programme can be related to following side when verifying to resource file by the way of piecemeal resource checksum The problem of face: the problem of resource that the acquisition problem of piecemeal check information, resource node treat sharing is verified, requesting node The problem of the problem of resource downloaded is verified, publisher node publication resource information.
Firstly, the acquisition problem of piecemeal check information, refers to how requesting node gets the piecemeal school of resources to be downloaded Testing information, (resource node has locally been stored with the piecemeal check information of resource when issuing resource information, therefore this problem relates to And main body is requesting node) the problem of.
In the present solution, requesting node can go to obtain the piecemeal check information of resources to be downloaded by two kinds of approach, it is a kind of It is to be obtained from server, one is obtain from the resource node for providing resource.It is obtained from server, needs resource node When issuing resource information, the piecemeal check information of resource is sent to server and is saved.From the resource node that resource is provided It obtains, needs resource node when issuing resource information, the corresponding check value of piecemeal check information of resource is sent to service Device saves, so that resource node can get piecemeal check information by the check value from resource node.
Secondly, the problem of resource that resource node treats sharing is verified, refer to how resource node asks to being supplied to The problem of asking the resource part of node to be verified.
In the present solution, the full resource file that resource node by unified resource segmentation rules, can treat sharing carries out Cutting forms multiple piecemeal resources, then by requesting node request resource part be mapped in these piecemeal resources, and to The resource part of request has the piecemeal resource of coincidence to be verified using piecemeal check information.If verification passes through, to request Node sends corresponding resource.
Again, the problem of requesting node verifies the resource downloaded refers to requesting node how to from resource section The problem of resource part downloaded at point is verified.
In the present solution, requesting node can carry out full resource file to be downloaded by unified resource segmentation rules Cutting forms multiple piecemeal resources, then by actual request download resource part be mapped in these piecemeal resources, and to Piecemeal resource has the resource part of the request of coincidence to be verified using piecemeal check information.If verification passes through, phase is saved The resource answered is to local.
Finally, publisher node issues the problem of resource information, refer to that downloading node is downloaded to from resource node or from CDN After complete resource file, if the resource information of these resources is published on server.
In the present solution, publisher node can cut local full resource file by unified resource segmentation rules Divide and form multiple piecemeal resources, the check value of each piecemeal resource is then calculated separately using preset checking algorithm, then by this A little check value splicings, form the piecemeal check information of resource.Publisher node, can be by piecemeal when issuing resource information to server Check information is directly published on server, can directly be obtained from server side so as to call request and download the requesting node of the resource Get the piecemeal check information;Verification can also be carried out to piecemeal check information, check value is calculated, then send out the check value On cloth to server, it can be got by the check value from resource node side so as to call request and download the requesting node of the resource The piecemeal check information.
The technical solution of the application is further illustrated below by multiple embodiments.
Embodiment one
Based on the logical thought of resource sharing scheme shown in Fig. 2, as shown in figure 3, it is shown in the embodiment of the present invention The acquisition methods flow chart one of resource checksum information, the main request section in P2P node shown in Fig. 2 of the execution of this method Point.As shown in figure 3, the acquisition methods of the resource checksum information include the following steps:
S310 sends resource information request to server, to obtain the resource information of resources to be downloaded;
For example, when user's one video file (resources to be downloaded) of click play on client App, client App can be to Accelerator sends the playing request of file, and the form of playing request can be hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) request, such as http: // 127.0.0.1:7878/www.youku.com/xxxxxx.flv.HTTP's In header, fooled corresponding block information in requested resource part of meeting band, such as [15MB, 25MB), that is, it requests requested Data in resource between 15MB to 25MB.
Above-mentioned HTTP request is to be used to download existence anduniquess in the resource URL, each resource URL of requested resource The critical field information an of resource is identified, such as " xxxxxx.flv " in above-mentioned resource URL.Requesting node is being connected to client App send for downloading the resource URL of requested resource after, extracted from resource URL it includes critical field information.
Accelerator is to the keyword extracted from the resource URL parsed in the HTPP request that client App is sent Segment information does MD5 operation, generates a MD5 value.On the basis of MD5 value, some auxiliary informations are added, such as resources to be downloaded Description information (this refers to type, the media content names of the particular content of resource, such as media content), and provide under The customer information of resource is carried (if provide resource is youku.com, then can be using youku.com's title or specified character string identification as visitor Family information) spliced, ultimately form a resource ID such as the character string with 40 bytes as resources to be downloaded, form It can be as follows:
20010211AAAAAAAAAAAAAAAAAAAAAAAAAAAA。
The request of the resource information of resource ID comprising above-mentioned resources to be downloaded is sent to server by requesting node, with from clothes Business device obtains the resource information of resources to be downloaded, and the resource information obtained here is primarily referred to as the piecemeal verification letter of resources to be downloaded The resource node information of breath and offer resources to be downloaded.
S320 receives the resource information that server returns, which includes: the piecemeal check information of resources to be downloaded And resource node information;
Wherein, piecemeal check information is after carrying out cutting to resources to be downloaded, to press respectively to each piecemeal resource of formation Default checking algorithm carries out that check value is calculated, and will be formed by character string after the splicing of these check values;Piecemeal verification letter Breath is that server searches acquisition according to resource ID in local information library, each piecemeal resource for being included to resources to be downloaded It is verified;The position of node where resource node information indicates resources to be downloaded, such as resources to be downloaded can be to provide Resource node IP address list.
Wherein, it is identical, such as right for carrying out segmentation rules used by cutting to same resource file on each P2P node Video resource can carry out resource cutting according to dimensions such as play time, data flow length when carrying out cutting, to be formed multiple Piecemeal resource.What needs to be explained here is that the resource being split must be complete resource file, complete resource is cut Divide the size for being formed by each piecemeal resource may be the same or different, but is advised for same resource file using the cutting When then carrying out cutting, the size of each piecemeal resource formed every time is corresponding identical.
For example, when carrying out cutting using fixed-length data stream mode, the length of each piecemeal resource be it is identical, walked with cutting For a length of 10MB, then carrying out the length of each piecemeal resource that cutting obtains to some resource file is 10MB, and each point The corresponding length of interval of block resource be respectively [0MB, 10MB], (10MB, 20MB], (20MB, 30MB] ... ....
Publisher node is published the resource of resource may include into the resource information for the full resource that server is issued ID, piecemeal check information and resource node information (public network address of such as resource node, the public network port of node, node The address Relay, the port Relay of node, address of node type etc.).Therefore, requesting node can be got from server side to Download the piecemeal check information of resource.
Certainly, if the resources to be downloaded of requesting node current request are not published on the server, server is returned Resource information back to resource node is sky.At this point, requesting node can be according to the resource URL of resources to be downloaded from providing resource CDN downloads respective resources content.
Further, it may also include the whole check information of resources to be downloaded in above-mentioned resource information, for to be downloaded Resource carries out whole verification.
Whole verification is carried out for the ease of resource of the requesting node to downloading or requesting node requests to provide to resource node When source, resource node checks requesting node requested resource, in resource node as publisher node publication resource letter When breath, the whole check information for the resource currently issued is also added in the resource information of publication, which uses In the whole verification of resource progress to publication.
The acquisition methods of the resource checksum information of the embodiment of the present invention, requesting node is by sending resource information to server Request, to obtain the piecemeal check information of resources to be downloaded, and then using the piecemeal check information to locally downloading later Resource is verified respectively by each piecemeal resource, to improve the sharing rate of resource.
Embodiment two
Based on the logical thought of resource sharing scheme shown in Fig. 2, as shown in figure 4, it is shown in the embodiment of the present invention The acquisition methods flowchart 2 of resource checksum information, the main request section in P2P node shown in Fig. 2 of the execution of this method Point.As shown in figure 4, the acquisition methods of the resource checksum information include the following steps:
S410 sends resource information request to server, obtains the resource information of resources to be downloaded, the resource information packet It includes: the first check value and resource node information of piecemeal check information;Piecemeal check information is used for the multiple of resources to be downloaded Piecemeal resource is verified;For first check value for verifying to piecemeal check information, resource node information instruction is to be downloaded It may also include the resource ID of resources to be downloaded where resource in the location resource information request of node;
Wherein, the generating process of the resource ID of resources to be downloaded can be found in the corresponding contents in step S310.
The request of the resource information of resource ID comprising above-mentioned resources to be downloaded is sent to server by requesting node, with from clothes Business device obtains the resource information of resources to be downloaded, and the resource information obtained here is primarily referred to as the piecemeal verification letter of resources to be downloaded First check value of breath and the resource node information of offer resources to be downloaded.
Received server return resource information in include: resources to be downloaded piecemeal check information first verification The resource node information of value and offer resources to be downloaded;
Wherein, piecemeal check information is after carrying out cutting to resources to be downloaded, to press respectively to each piecemeal resource of formation Default checking algorithm carries out that check value is calculated, and will be formed by character string after the splicing of these check values;First check value For the check value that character string is calculated by default checking algorithm, first check value can for server according to resource ID at this It searches and obtains in ground information bank, each piecemeal resource that piecemeal check information is used to be included to resources to be downloaded verifies.
Wherein, cutting is carried out to a full resource to be formed used by process and the dicing process of multiple piecemeal resources Segmentation rules are detailed in the corresponding contents in step S320.
Publisher node is published the resource of resource may include into the resource information for the full resource that server is issued Information (public network address of such as resource node, the section of ID, the first check value (such as MD5 value) of piecemeal check information and resource node The public network port of point, the address Relay of node, the port Relay of node, address of node type etc.).Therefore, requesting node The first check value of the piecemeal check information of resources to be downloaded can be got from server side.
Certainly, if the resources to be downloaded of requesting node current request are not published on the server, server is returned Resource information back to resource node is sky.At this point, requesting node can be according to the resource URL of resources to be downloaded from providing resource CDN downloads respective resources content.
S420 sends the request of piecemeal check information to resource node, obtains resources to be downloaded according to resource node information Piecemeal check information, the piecemeal check information request in include: the first check value;
Requesting node extracts resource node information from receiving in the resource information sent by server, and to money Source node initiates the connection request, establishes network connection.Requesting node sends piecemeal verification letter to the resource node that connection has been established Breath is requested, the first check value obtained from server before including in the request, can also include the resource of resources to be downloaded ID。
Later, requesting node can receive the piecemeal check information of the resources to be downloaded of resource node return, the piecemeal school Testing information can search in local information library for resource node according to resource ID, and send out after being verified using the first check value Out.
After resource node receives the piecemeal check information request of requesting node transmission, respective resources pair can be found from local Second check value of the piecemeal check information answered, and second check value is compared with above-mentioned first check value, if the One check value is identical as the second check value, then shows the piecemeal resource checksum information that resource node is locally stored for resource node institute The piecemeal check information of request.At this point, the piecemeal check information being locally stored can be sent to requesting node by resource node.
Wherein, the second check value is after resource node carries out cutting to the full resource being locally stored, to each of formation Piecemeal resource is carried out that check value is calculated respectively by above-mentioned default checking algorithm, and will be formed by after the splicing of these check values Character string.
Specifically, resource node is searched in local information library, and using the first check value verifying piecemeal check information Step specifically may include following content:
Resource node can search whether there is the resource comprising the resource ID according to resource ID in local resource information library Data entries may include resource ID, the piecemeal check information of the announced resource of resource node in each resource information entry The store path of second check value and piecemeal check information;
If there is the resource information entry comprising resource ID, then resource node is by the first check value and the resource information item The second check value is compared in mesh, if identical, it is determined that issues the piecemeal check information under store path.
For example, resource node from the piecemeal check information request that requesting node is sent, parses resource ID, piecemeal verification After first check value of information, searched whether from local information bank in the presence of the resource information entry for including the resource ID. Wherein, resource node, can be using the resource information of publication as resource when issuing resource information value server as publisher node Data entries are stored in local information bank, i.e., a plurality of similar this resource letter is stored in the local information library of resource node Cease entry.The second verification of the resource ID, piecemeal check information of announced resource is contained in every resource information entry The store path of value and piecemeal check information.
If resource node does not find the resource information comprising the resource ID from local information bank according to resource ID Entry then returns to the local feedback information that institute's request content is not present to requesting node.
If resource node finds the resource information item comprising the resource ID from local information bank according to resource ID Mesh, then resource node further extracts the second check value in the resource information entry, then by above-mentioned piecemeal check information The first check value in request is compared with second check value, if two values are identical, according in the resource information entry The store path of the piecemeal check information of record reads out corresponding piecemeal check information and is sent to requesting node;If two Value is not identical, then returns to the local feedback information that institute's request content is not present to requesting node.
After requesting node receives the piecemeal check information of the resources to be downloaded of resource node return, so that it may under subsequent It is downloaded to the verification that local resource carries out piecemeal resource.
It further, further include the whole check information of resources to be downloaded in above-mentioned resource information, for money to be downloaded Source carries out whole verification.
Whole verification is carried out for the ease of resource of the requesting node to downloading or requesting node requests to provide to resource node When source, resource node checks requesting node requested resource, in resource node as publisher node publication resource letter When breath, also add the whole check information for the resource currently issued in the resource information of publication, the check information for pair The resource of publication carries out whole verification.
The acquisition methods of the resource checksum information of the embodiment of the present invention, requesting node first send resource information to server and ask Ask, to obtain the first check value of the piecemeal check information of resources to be downloaded, then, using first check value to provide resource Resource node send the request of piecemeal check information, to get resources to be downloaded corresponding piecemeal verification letter from resource node Breath, and then resource locally downloading later is verified respectively by each piecemeal resource using the piecemeal check information, to mention The sharing rate of high resource.
Embodiment three
Based on the logical thought of resource sharing scheme shown in Fig. 2, as shown in figure 5, it is shown in the embodiment of the present invention The method of calibration flow chart one of piecemeal resource, the main resource node in P2P node shown in Fig. 2 of the execution of this method.Such as Shown in Fig. 5, the method for calibration of the piecemeal resource includes the following steps:
S510, receives the resource download request that requesting node is sent, and includes the of resources to be downloaded in resource download request One block information;
Wherein, first interval information is part resource in the resources to be downloaded requested every time of requesting node entirely under Carry the corresponding range information of resource.
Requesting node can be by whole resources of request point in multiple P2P tasks, then to resource as unit of P2P task The request of resource is downloaded in node starting, contains the resource ID for the resources to be downloaded that this subtask is downloaded in each P2P task, First interval information corresponding with the resource part that this needs is downloaded.If client APP is being sent to the HTTP of accelerator In header, fooled corresponding block information in requested resource part of meeting band, such as [15MB, 25MB), that is, it requests requested Data in resource between 15MB to 25MB.Accelerator can to block information [15MB, 25MB) corresponding resource downloading appoints Business is further decomposed, and is generated multiple P2P tasks, and form a P2P task pool, is stored in local memory.Each P2P The content information of task can include: the resource ID of resources to be downloaded, the initial position of data block of this request, data block it is big It is small etc..
Accelerator successively extracts a P2P task from task pool, and is sent and provided to resource node according to task definition Source downloading is requested, and includes the resource ID and first interval information of resources to be downloaded in the resource download request.Wherein firstth area Between information be the initial position of data block for corresponding to this request, the size of data block.For example, the data block of current request Initial position be 8KB, data block size be 9KB, then corresponding first interval be [8KB, 17KB).
S520, each piecemeal for being included with the resources to be downloaded found in local storage unit by first interval information The corresponding interval range of resource is compared, determining to have the first piecemeal resource for being overlapped section with first interval information;
For example, being 8KB, data when the first interval information in the received resource download request of resource node is initial position Block size is 9KB, then corresponding first interval be [8KB, 17KB).If forming the corresponding segmentation rules of piecemeal resource is to complete After resource file sequence cutting, each piecemeal resource size is 10KB, then this requested data block, fall in [0KB, 10KB) [10KB, 20KB) in two piecemeal resources.Wherein, [0KB, 10KB), [10KB, 20KB) corresponding to piecemeal resource be One piecemeal resource.
S530 carries out verification calculating using preset checking algorithm to each first piecemeal resource respectively, obtains third verification Value;
For example, to it is above-mentioned [0KB, 10KB), [10KB, 20KB) corresponding resource part using preset checking algorithm (such as MD5 algorithm) it carries out that two third check values (MD5 value) is calculated.
S540, same piecemeal resource in the piecemeal check information stored in each third check value and local information library is corresponding Check value be compared, if identical, the corresponding resource part of first interval information in corresponding piecemeal resource is sent To requesting node;
Wherein, the piecemeal check information is after carrying out cutting to resources to be downloaded, to each piecemeal resource point of formation It does not carry out that check value is calculated by above-mentioned default checking algorithm, and character string will be formed by after the splicing of these check values.
In the corresponding piecemeal check information of announced each resource stored in resource node local information library, comprising should The corresponding check value of the corresponding whole piecemeal resource of resource, and the check value is also using above-mentioned preset checking algorithm to each point What block resource generated after being calculated.
After the corresponding third check value of above-mentioned each first piecemeal resource is calculated, can by these third check values, with The corresponding verification of same piecemeal resource in the corresponding piecemeal check information of the same resource stored in resource node local information library Value is compared, if third check value is identical as the check value size of same piecemeal resource affiliated in piecemeal check information, Show the content intact of the first piecemeal resource, resource node can be corresponding by first interval information in corresponding piecemeal resource at this time Resource part be sent to requesting node.For example, resource node to [0KB, 10KB), [10KB, 20KB) corresponding piecemeal provides After source verifies successfully, can by it is above-mentioned [0KB, 10KB) piecemeal resource in [8KB, 10B), it is above-mentioned [10KB, 20KB) piecemeal In resource [10,17KB) resource part be respectively sent to requesting node.
Further, it may also include money to be downloaded in the resource download request that above-mentioned requesting node is sent to resource node The whole check information in source, the entirety check information are used to carry out resources to be downloaded whole verification;
Corresponding, the above method may also include the steps of:
The whole check information there are resources to be downloaded is searched whether in local resource information library;
It, then will be in the entirety check information and resource download request if there is the whole check information of resources to be downloaded Whole check information is compared, if identical, it is determined that executes the operation of step S520.
Specifically, the resource ID that resource node can based on the received in resource download request, is first looked into from local information library It looks for the presence or absence of the resource information entry comprising the resource ID.It include the announced money of resource node in each resource information entry The resource ID in source and the whole check information of resource.If it is present resource node parses the resource in resource download request Whole check information (check value that such as entire resource is generated by above-mentioned default checking algorithm, such as MD5 value) with find The check information of whole resource in resource information entry is compared, if identical, resource node determines again executes step S520.If comparing resource there is no resource information entry or resource node comprising above-mentioned resource ID in local information library When the complete checks information of the complete checks information of the resource in downloading request and the resource in the resource information entry found, Two values are unequal, then resource node returns to the local message that resource node requested resource is not present to requesting node.
The method of calibration of the piecemeal resource of the embodiment of the present invention, resource node reflect requesting node requested resource data It is mapped in each piecemeal resource segmented in advance, then to the piecemeal resource of mapping hit using corresponding in piecemeal check information Check value is verified, and by corresponding sub-block resource if verifying successfully, requesting node requested resource data portion is distributed Requesting node is given, to realize in the case where not needing to carry out completeness check to entire resource, so that it may to each piecemeal Resource is verified and is shared, and the sharing rate of resource is improved.
Example IV
Based on the logical thought of resource sharing scheme shown in Fig. 2, as shown in fig. 6, it is shown in the embodiment of the present invention The method of calibration flowchart 2 of piecemeal resource, the main requesting node in P2P node shown in Fig. 2 of the execution of this method.Such as Shown in Fig. 6, the method for calibration of the piecemeal resource includes the following steps:
S610 sends resource download request to resource node, obtains in resources to be downloaded and be located in first interval information Resource data.
Wherein, it may also include the resource of resources to be downloaded other than including first interval information in the resource download request ID;The content of this step can be found in the content of step S510.
All first interval information of received resources to be downloaded are spliced to form second interval information by S620, and will Second interval information interval range corresponding with each piecemeal resource that resources to be downloaded are included is compared, and is determined and second Block information has the first piecemeal resource for being overlapped section;
When the playing request that requesting node is sent according to client App obtains resource from P2P network, it will usually under entire Load task is divided into multiple P2P tasks to complete the downloading of resource data.The data area downloaded every time, that is, correspond to said one Resource data in first interval information.The resource data for the first interval information that requesting node is downloaded each secondary P2P task Spliced, to complete the client App resource content to be played.Requesting node will be in each received first interval information Resource data spliced, so as to form resource data corresponding to a larger range of second interval information.Request Second interval information interval range corresponding with each piecemeal resource that resources to be downloaded are included is compared by node, and from Determine that there is the first piecemeal resource for being overlapped section with second interval information in each piecemeal resource.
For example, second interval information be [8KB, 25KB), the size of each piecemeal resource is 10K, then [8KB, 25KB) just Fallen in [0KB, 10KB), [10KB, 20KB), [20KB, 30KB) in piecemeal resource corresponding to these three interval ranges.This three A piecemeal resource is designated as the first piecemeal resource.
S630 uses preset school to the resource part being located in each first piecemeal resource in received resources to be downloaded Checking method carries out verification calculating respectively, obtains the 4th check value;
By in the corresponding resource data of second interval information, the resource part in each first piecemeal resource is mentioned It takes, such as in above-mentioned example [8KB, 10KB), [10KB, 20KB), [20KB, 25KB) the corresponding resource data of this three parts. Preset checking algorithm is respectively adopted in this three parts resource data and carries out verification calculating, obtains three check values, each school It tests value and is denoted as the 4th check value.
S640, by each 4th check value and same piecemeal resource in the piecemeal check information for the resources to be downloaded being locally stored Corresponding check value is compared, if identical, is overlapped section for having in corresponding piecemeal resource with second interval information Resource part save to local.
Wherein, piecemeal check information is after carrying out cutting to resources to be downloaded, to press respectively to each piecemeal resource of formation The default checking algorithm carries out that check value is calculated, and will be formed by character string after the splicing of these check values.
Wherein, cutting is carried out to a full resource to be formed used by process and the dicing process of multiple piecemeal resources Segmentation rules are detailed in the corresponding contents in step S320, and this will not be repeated here.
By each 4th check value obtained above and same point in the piecemeal check information for the resources to be downloaded being locally stored The corresponding check value of block resource is compared, such as will [8KB, 10KB) corresponding 4th check value, in piecemeal check information [0KB, 10KB) the check value of piecemeal resource be compared;Will [10KB, 20KB) corresponding 4th check value, it is verified with piecemeal In information [10KB, 20KB) the check value of piecemeal resource be compared;Will [20KB, 25KB) corresponding 4th check value, with In piecemeal check information [20KB, 30KB) the check value of piecemeal resource be compared.If two values compared are identical, recognize It is complete for the resource data currently downloaded, and will have the resource for being overlapped section in corresponding piecemeal resource with second interval information Part is saved to local.If two values compared are different, then it is assumed that the resource data currently downloaded is imperfect, and will be corresponding With second interval information there is the resource part for being overlapped section to abandon in piecemeal resource.
In practical application scene, the resource data that requesting node request plays is usually continuous, but data start bit It sets and is not necessarily just fallen in data end position on the boundary of a piecemeal resource, therefore in second interval range of information Resource data when being verified, the resource data of initial and end part is likely to cannot be by the verification of piecemeal check information.Therefore Can resource data to initial and end part without verification.The corresponding resource data of the 4th check value are calculated, can be broadcast from requested It puts in resource data, the initial data point in first complete piecemeal scope of resource starts, and complete being located at the last one The data point of piecemeal scope of resource end terminates.For example, for it is above-mentioned [8KB, 25KB) resource data in range, only calculate it In [10KB, 20KB) resource data in range the 4th check value, and to [8KB, 10KB), [20KB, 25KB) range Verification of the interior resource data without piecemeal check information.
In addition, can successively download number of resources from front to back by Data flow direction when requesting node downloads resource data According to after the partial data that one piecemeal resource of every downloading is included in this way, so that it may be verified to the part resource data using piecemeal Information is verified.
The method of calibration of the piecemeal resource of the embodiment of the present invention, requesting node provide the whole of same resource belonging to downloading Source data is mapped in each piecemeal resource segmented in advance, is then come out the piecemeal Resource Access of mapping hit and is used as first Piecemeal resource, and preset checking algorithm is used to the resource part being located in each first piecemeal resource in the resource data of downloading Verification calculating is carried out respectively, and is verified using the corresponding check value of piecemeal resource same in piecemeal check information, if school Testing successfully then will accordingly download resource conservation in local, not need to carry out completeness check to entire resource to realize In the case of, so that it may storage is verified and downloaded to each piecemeal resource, improves the sharing rate of resource.
Embodiment five
Based on the logical thought of resource sharing scheme shown in Fig. 2, as shown in fig. 7, it is shown in the embodiment of the present invention The dissemination method flow chart one of resource, the main publisher node in P2P node shown in Fig. 2 of the execution of this method.Such as Fig. 7 institute Show, the dissemination method of the resource includes the following steps:
S710 sends resource publication request to server, includes the piecemeal verification of resource to be released in resource publication request Information;
Wherein, piecemeal check information is after carrying out cutting to resource to be released, to press respectively to each piecemeal resource of formation Default checking algorithm carries out that check value is calculated, and will be formed by character string after the splicing of these check values.To a complete money Source carry out cutting formed multiple piecemeal resources process and dicing process used by segmentation rules be detailed in step S320 Corresponding contents, this will not be repeated here.
The resource of publisher node publication must be complete resource, which can be from other and provide the resource of the resource Node downloading obtains, or obtains from the CDN for storing the resource.
Resource node is needed to carry out verification calculating to full resource to be released, be somebody's turn to do before issuing resource information The corresponding piecemeal check information of resource.
S720 receives the resource that server is sent and issues result information;
Wherein, publication result information be by server local it is already present with to issue resource be the corresponding piecemeal of same resource After check information is compared, the transmitted publication success message when comparison result is identical, alternatively, being not in comparison result Transmitted publication failed message simultaneously;
Alternatively,
It is the corresponding piecemeal check information of same resource that publication result information, which is that server local is not present with publication resource, When transmitted publication success message.
Further, the whole check information that may also include resource to be released in above-mentioned resource publication request, for treating It issues resource and carries out whole verification.
The dissemination method of the resource of the embodiment of the present invention, publisher node can will be used for when issuing resource information to publication The piecemeal check information that each piecemeal resource that resource is included is verified is published to server together, to make each in network Each piecemeal resource that P2P node can be included by the piecemeal check information, the resource to publication is verified and is divided respectively It enjoys, to improve the sharing rate of resource.
Embodiment six
Based on the logical thought of resource sharing scheme shown in Fig. 2, as shown in figure 8, it is shown in the embodiment of the present invention The dissemination method flowchart 2 of resource, the main publisher node in P2P node shown in Fig. 2 of the execution of this method.Such as Fig. 8 institute Show, the dissemination method of the resource includes the following steps:
S810 sends resource publication request to server, includes the piecemeal verification of resource to be released in resource publication request First check value of information;
Wherein, piecemeal check information is after carrying out cutting to resource to be released, to press respectively to each piecemeal resource of formation Default checking algorithm carries out that check value is calculated, and will be formed by character string, the first check value after the splicing of these check values For the check value that character string is calculated by default checking algorithm;
The resource of publisher node publication must be complete resource, which can be from other and provide the resource of the resource Node downloading obtains, or obtains from the CDN for storing the resource.
Resource node is needed to carry out verification calculating to full resource to be released, be somebody's turn to do before issuing resource information The corresponding piecemeal check information of resource, then carries out verification calculating to the piecemeal check information again, obtains piecemeal verification letter First check value of breath.
S820 receives the resource that server is sent and issues result information;
Wherein, publication result information be by server local it is already present with to issue resource be the corresponding piecemeal of same resource After first check value of check information is compared, the transmitted publication success message when comparison result is identical, alternatively, Comparison result publication failed message transmitted when being different;
Alternatively,
It is the corresponding piecemeal check information of same resource that publication result information, which is that server local is not present with publication resource, The first check value when transmitted publication success message.
Further, the whole check information that may also include resource to be released in above-mentioned resource publication request, for treating It issues resource and carries out whole verification.
The dissemination method of the resource of the embodiment of the present invention, publisher node can will be used for when issuing resource information to publication First check value of the piecemeal check information that each piecemeal resource that resource is included is verified is published to server together, thus Allow each P2P node in network by the first check value of the piecemeal check information, is got from publisher node corresponding Piecemeal check information, so that each piecemeal resource for being included to the resource of publication is verified and shared respectively, to improve The sharing rate of resource.
In addition, it is necessary to illustrate, in above-mentioned all embodiments, in addition to including that piecemeal verifies in the resource information of each resource Outside the first check value of information/piecemeal check information, it may also include resource ID, the entirety check information (such as MD5 value) of resource, money The resource description informations such as store path of the size in source, the store path of resource, piecemeal check information.
Embodiment seven
As shown in figure 9, the acquisition device structure chart one of the resource checksum information for the embodiment of the present invention, resource checksum letter The acquisition device of breath can be used for executing method and step as shown in Figure 3 comprising:
First resource information request module 910, for sending resource information request to server, to obtain resources to be downloaded Resource information;
First resource information receiving module 920, for receiving the resource information of server return, resource information includes: point Block checking information and resource node information;Piecemeal check information is used to verify multiple piecemeal resources of resources to be downloaded, The position of node where resource node information indicates resources to be downloaded.
It further, further include the complete checks information of resources to be downloaded in above-mentioned resource information, for money to be downloaded Source carries out whole verification.
The acquisition device of the resource checksum information of the embodiment of the present invention, by sending resource information request to server, with The piecemeal check information of resources to be downloaded is obtained, and then resource locally downloading later is pressed respectively using the piecemeal check information Piecemeal resource is verified respectively, to improve the sharing rate of resource.
Embodiment eight
It as shown in Figure 10, is the acquisition device structure chart two of the resource checksum information of the embodiment of the present invention, the resource checksum The acquisition device of information can be used for executing method and step as shown in Figure 4 comprising:
Secondary resource information request module 101 obtains resources to be downloaded for sending resource information request to server Resource information, resource information include: the first check value and resource node information of piecemeal check information;Piecemeal check information is used for Multiple piecemeal resources of resources to be downloaded are verified;First check value is for verifying piecemeal check information, resource The position of node where nodal information indicates resources to be downloaded;
Check information request module 102, for sending piecemeal check information to resource node and asking according to resource node information It asks, obtains the piecemeal check information of resources to be downloaded, include the first check value, piecemeal check information in the request of piecemeal check information Acquisition is searched in local information library for resource node, and is issued after being passed through using the verification of the first check value.
It further, further include the complete checks information of resources to be downloaded in above-mentioned resource information, for money to be downloaded Source carries out whole verification.
Further, above-mentioned resource node is searched in local information library, and using the verification piecemeal verification of the first check value Information includes:
Resource node searches whether the resource information entry there are resources to be downloaded, each resource letter in local information library Cease the second check value of piecemeal check information in entry including the announced resource of resource node and depositing for piecemeal check information Store up path;
If there is the resource information entry of resources to be downloaded, then resource node is by the first check value and the resource information item The second check value is compared in mesh, if identical, it is determined that issues the piecemeal check information under store path.
The acquisition device of the resource checksum information of the embodiment of the present invention first sends resource information request to server, to obtain Take the first check value of the piecemeal check information of resources to be downloaded, then, using first check value to provide resource resource Node sends the request of piecemeal check information, to get the corresponding piecemeal check information of resources to be downloaded from resource node, in turn Resource locally downloading later is verified respectively by each piecemeal resource using the piecemeal check information, to improve resource Sharing rate.
Embodiment nine
It as shown in figure 11, is the calibration equipment structure chart one of the piecemeal resource of the embodiment of the present invention, the school of the piecemeal resource Experiment device can be used for executing method and step as shown in Figure 5 comprising:
Request receiving module 111 is downloaded, for receiving the resource download request of requesting node transmission, the resource download request In include resources to be downloaded first interval information;
First resource comparison module 112, for by first interval information with find in local storage unit under The interval range for carrying resource each piecemeal resource for being included is compared, it is determining with first interval information with being overlapped the of section One piecemeal resource;
First verification computing module 113, for carrying out school respectively using preset checking algorithm to each first piecemeal resource Calculating is tested, third check value is obtained;
Resource sending module 114, in the piecemeal check information for that will store in each third check value and local information library The corresponding check value of same piecemeal resource is compared, if identical, by first interval information pair in corresponding piecemeal resource The resource part answered is sent to requesting node.
It further, further include the whole check information of resources to be downloaded in above-mentioned resource download request, for treating down It carries resource and carries out whole verification;
On this basis, may also include that in Figure 11 shown device
Information searching module, for searching whether the whole check information there are resources to be downloaded in local information library;
Message processing module, for the whole check information if there is resources to be downloaded, then by the entirety check information It is compared with the whole check information in resource download request, if identical, triggering is by first interval information and in local The interval range for each piecemeal resource that the resources to be downloaded found in storage unit are included is compared, determining and the firstth area Between information have be overlapped section the first piecemeal resource operation.
Requesting node requested resource data are mapped in advance by the calibration equipment of the piecemeal resource of the embodiment of the present invention In each piecemeal resource segmented, then to the piecemeal resource of mapping hit using check value corresponding in piecemeal check information into Row verification, by corresponding sub-block resource if verifying successfully, requesting node requested resource data portion is sent to request Node, to realize in the case where not needing to carry out completeness check to entire resource, so that it may be carried out to each piecemeal resource It verifies and shares, improve the sharing rate of resource.
Embodiment ten
It as shown in figure 12, is the calibration equipment structure chart two of the piecemeal resource of the embodiment of the present invention, the school of the piecemeal resource Experiment device can be used for executing method and step as shown in FIG. 6 comprising:
Request module 121 is downloaded, for sending resource download request to resource node, obtains and is located at the in resources to be downloaded Resource data in one block information;
Secondary resource comparison module 122, for all first interval information of received resources to be downloaded to be spliced shape At second interval information, and by second interval information interval range corresponding with each piecemeal resource that resources to be downloaded are included into Row compares, and determines there is the first piecemeal resource for being overlapped section with second interval information;
Second verification computing module 123, for being located in each first piecemeal resource in received resources to be downloaded Resource part carries out verification calculating using preset checking algorithm respectively, obtains the 4th check value;
Resource processing module 124, for believing the piecemeal verification of each 4th check value and the resources to be downloaded being locally stored The corresponding check value of same piecemeal resource is compared in breath, if identical, by corresponding piecemeal resource with second interval There is information the resource part for being overlapped section to save to local.
The calibration equipment of the piecemeal resource of the embodiment of the present invention reflects whole resource datas of same resource belonging to downloading It is mapped in each piecemeal resource segmented in advance, then the piecemeal Resource Access of mapping hit is come out, the first piecemeal is used as to provide Source, and in the resource data of downloading be located at each first piecemeal resource in resource part using preset checking algorithm respectively into Row verification calculates, and is verified using the corresponding check value of piecemeal resource same in piecemeal check information, if verified successfully Resource conservation then will accordingly have been downloaded in local, do not needed the case where completeness check is carried out to entire resource to realize Under, so that it may storage is verified and downloaded to each piecemeal resource, improves the sharing rate of resource.
Embodiment 11
It as shown in figure 13, is the distributing device structure chart one of the resource of the embodiment of the present invention, the distributing device of the resource can For executing method and step as shown in Figure 7 comprising:
First posting request sending module 131 wraps in resource publication request for sending resource publication request to server Include the piecemeal check information of resource to be released;
First publication result receiving module 132, the resource for receiving server transmission issue result information,
Publication result information be by server local it is already present with publication resource be the corresponding piecemeal verification of same resource After information is compared, the transmitted publication success message when comparison result is identical, alternatively, when comparison result is different Transmitted publication failed message;
Alternatively,
It is the corresponding piecemeal check information of same resource that publication result information, which is that server local is not present with publication resource, When transmitted publication success message.
Further, the whole check information that may also include resource to be released in above-mentioned resource publication request, for treating It issues resource and carries out whole verification.
The distributing device of the resource of the embodiment of the present invention can will be used to wrap publication resource when issuing resource information The piecemeal check information that each piecemeal resource contained is verified is published to server together, to make each P2P node in network Each piecemeal resource that can included by the piecemeal check information, the resource to publication is verified and is shared respectively, thus Improve the sharing rate of resource.
Embodiment 12
It as shown in figure 14, is the distributing device structure chart two of the resource of the embodiment of the present invention, the distributing device of the resource can For executing method and step as shown in Figure 8 comprising:
Second posting request sending module 141 wraps in resource publication request for sending resource publication request to server Include the first check value of the piecemeal check information of resource to be released;
Second publication result receiving module 142, the resource for receiving server transmission issue result information,
Publication result information be by server local it is already present with publication resource be the corresponding piecemeal verification of same resource After first check value of information is compared, the transmitted publication success message when comparison result is identical, alternatively, comparing Transmitted publication failed message when being as a result different;
Alternatively,
It is the corresponding piecemeal verification of same resource that publication result information, which is that server local is not present with the publication resource, Transmitted publication success message when the first check value of information.
It further, further include the whole check information of resource to be released in above-mentioned resource publication request, for pending Cloth resource carries out whole verification.
The distributing device of the resource of the embodiment of the present invention can will be used to wrap publication resource when issuing resource information First check value of the piecemeal check information that each piecemeal resource contained is verified is published to server together, to make in network Each P2P node corresponding piecemeal verification can be got from publisher node by the first check value of the piecemeal check information Information, so that each piecemeal resource for being included to the resource of publication is verified and shared respectively, to improve point of resource Enjoy rate.
Embodiment 13
It disclosed the overall architecture of the acquisition device of resource checksum information, the function of the device can be by a kind of electronics Equipment, which is realized, to be completed, and as shown in figure 15, is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, is specifically included: storage Device 151 and processor 152.
Memory 151, for storing program.
In addition to above procedure, memory 151 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 151 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 152 is coupled to memory 151, for executing the program in memory 151, to be used for:
Resource information request is sent to server, to obtain the resource information of resources to be downloaded;
The resource information that server returns is received, resource information includes: piecemeal check information and resource node information;Piecemeal For verifying to multiple piecemeal resources of resources to be downloaded, resource node information indicates where resources to be downloaded check information The position of node.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 15, electronic equipment can also include: communication component 153, power supply module 154, audio component 155, other components such as display 156.Members are only schematically provided in Figure 15, are not meant to that electronic equipment only includes figure Component shown in 15.
Communication component 153 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 153 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 153 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 154 provides electric power for the various assemblies of electronic equipment.Power supply module 154 may include power management System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 155 is configured as output and/or input audio signal.For example, audio component 155 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 151 or via communication set Part 153 is sent.In some embodiments, audio component 155 further includes a loudspeaker, is used for output audio signal.
Display 156 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 14
It disclosed the overall architecture of the acquisition device of resource checksum information, the function of the device can be by a kind of electronics Equipment, which is realized, to be completed, and as shown in figure 16, is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, is specifically included: storage Device 161 and processor 162.
Memory 161, for storing program.
In addition to above procedure, memory 161 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 161 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 162 is coupled to memory 161, for executing the program in memory 161, to be used for:
Resource information request is sent to server, obtains the resource information of resources to be downloaded, resource information includes: piecemeal school Test the first check value and resource node information of information;Piecemeal check information be used for multiple piecemeal resources of resources to be downloaded into Row verification;For first check value for verifying to piecemeal check information, resource node information indicates section where resources to be downloaded The position of point;
According to resource node information, the request of piecemeal check information is sent to resource node, obtains the piecemeal of resources to be downloaded Check information, piecemeal check information request in include the first check value,
Piecemeal check information is that resource node searches acquisition in local information library, and is passed through using the verification of the first check value After issue.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 16, electronic equipment can also include: communication component 163, power supply module 164, audio component 165, other components such as display 166.Members are only schematically provided in Figure 16, are not meant to that electronic equipment only includes figure Component shown in 16.
Communication component 163 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 163 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 163 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 164 provides electric power for the various assemblies of electronic equipment.Power supply module 164 may include power management System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 165 is configured as output and/or input audio signal.For example, audio component 165 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 161 or via communication set Part 163 is sent.In some embodiments, audio component 165 further includes a loudspeaker, is used for output audio signal.
Display 166 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 15
It disclosed the overall architecture of the download apparatus of resource, the function of the device can be realized by a kind of electronic equipment It completes, as shown in figure 17, is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically includes: memory 171 and place Manage device 172.
Memory 171, for storing program.
In addition to above procedure, memory 171 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 171 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 172 is coupled to memory 171, for executing the program in memory 171, to be used for:
The resource download request that requesting node is sent is received, includes the first interval of resources to be downloaded in resource download request Information;
Each piecemeal resource for being included with the resources to be downloaded found in local storage unit by first interval information Interval range be compared, it is determining with first interval information with the first piecemeal resource for being overlapped section;
Verification calculating is carried out using preset checking algorithm to each first piecemeal resource respectively, obtains third check value;
By the corresponding school of piecemeal resource same in the piecemeal check information stored in each third check value and local information library It tests value to be compared, if identical, the corresponding resource part of first interval information in corresponding piecemeal resource is sent to and is asked Seek node.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 17, electronic equipment can also include: communication component 173, power supply module 174, audio component 175, other components such as display 176.Members are only schematically provided in Figure 17, are not meant to that electronic equipment only includes figure Component shown in 17.
Communication component 173 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 173 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 173 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 174 provides electric power for the various assemblies of electronic equipment.Power supply module 174 may include power management System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 175 is configured as output and/or input audio signal.For example, audio component 175 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 171 or via communication set Part 173 is sent.In some embodiments, audio component 175 further includes a loudspeaker, is used for output audio signal.
Display 176 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 16
It disclosed the overall architecture of the download apparatus of resource, the function of the device can be realized by a kind of electronic equipment It completes, as shown in figure 18, is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically includes: memory 181 and place Manage device 182.
Memory 181, for storing program.
In addition to above procedure, memory 181 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 181 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 182 is coupled to memory 181, for executing the program in memory 181, to be used for:
Resource download request is sent to resource node, obtains the number of resources being located in first interval information in resources to be downloaded According to;
All first interval information of received resources to be downloaded are spliced to form second interval information, and by the secondth area Between information interval range corresponding with each piecemeal resource that resources to be downloaded are included be compared, determine and second interval believe Ceasing has the first piecemeal resource for being overlapped section;
The resource part being located in each first piecemeal resource in received resources to be downloaded is calculated using preset verification Method carries out verification calculating respectively, obtains the 4th check value;
Each 4th check value is corresponding with same piecemeal resource in the piecemeal check information for the resources to be downloaded being locally stored Check value be compared, if identical, will have in corresponding piecemeal resource with second interval information and be overlapped the money in section Source part is saved to local.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 18, electronic equipment can also include: communication component 183, power supply module 184, audio component 185, other components such as display 186.Members are only schematically provided in Figure 18, are not meant to that electronic equipment only includes figure Component shown in 18.
Communication component 183 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 183 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 183 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 184 provides electric power for the various assemblies of electronic equipment.Power supply module 184 may include power management System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 185 is configured as output and/or input audio signal.For example, audio component 185 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 181 or via communication set Part 183 is sent.In some embodiments, audio component 185 further includes a loudspeaker, is used for output audio signal.
Display 186 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 17
It disclosed the overall architecture of the distributing device of resource, the function of the device can be realized by a kind of electronic equipment It completes, as shown in figure 19, is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically includes: memory 191 and place Manage device 192.
Memory 191, for storing program.
In addition to above procedure, memory 191 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 191 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 192 is coupled to memory 191, for executing the program in memory 191, to be used for:
Resource publication request is sent to server, includes the piecemeal check information of resource to be released in resource publication request;
It receives the resource that server is sent and issues result information,
Publication result information be by server local it is already present with publication resource be the corresponding piecemeal verification of same resource After information is compared, the transmitted publication success message when comparison result is identical, alternatively, when comparison result is different Transmitted publication failed message;
Alternatively,
It is the corresponding piecemeal check information of same resource that publication result information, which is that server local is not present with publication resource, When transmitted publication success message.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 19, electronic equipment can also include: communication component 193, power supply module 194, audio component 195, other components such as display 196.Members are only schematically provided in Figure 19, are not meant to that electronic equipment only includes figure Component shown in 19.
Communication component 193 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 193 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 193 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 194 provides electric power for the various assemblies of electronic equipment.Power supply module 194 may include power management System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 195 is configured as output and/or input audio signal.For example, audio component 195 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 191 or via communication set Part 193 is sent.In some embodiments, audio component 195 further includes a loudspeaker, is used for output audio signal.
Display 196 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 18
It disclosed the overall architecture of the distributing device of resource, the function of the device can be realized by a kind of electronic equipment It completes, as shown in figure 20, is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically includes: memory 201 and place Manage device 202.
Memory 201, for storing program.
In addition to above procedure, memory 201 is also configured to store various other data to support in electronic equipment On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection It is personal data, telephone book data, message, picture, video etc..
Memory 201 can realize by any kind of volatibility or non-volatile memory device or their combination, Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk Or CD.
Processor 202 is coupled to memory 201, for executing the program in memory 201, to be used for:
Resource publication request is sent to server, includes the piecemeal check information of resource to be released in resource publication request First check value;
It receives the resource that server is sent and issues result information,
Publication result information be by server local it is already present with publication resource be the corresponding piecemeal verification of same resource After first check value of information is compared, the transmitted publication success message when comparison result is identical, alternatively, comparing Transmitted publication failed message when being as a result different;
Alternatively,
It is the corresponding piecemeal check information of same resource that publication result information, which is that server local is not present with publication resource, The first check value when transmitted publication success message.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 20, electronic equipment can also include: communication component 203, power supply module 204, audio component 205, other components such as display 206.Members are only schematically provided in Figure 20, are not meant to that electronic equipment only includes figure Component shown in 20.
Communication component 203 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one In embodiment, communication component 203 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 203 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 204 provides electric power for the various assemblies of electronic equipment.Power supply module 204 may include power management System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 205 is configured as output and/or input audio signal.For example, audio component 205 includes a Mike Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 201 or via communication set Part 203 is sent.In some embodiments, audio component 205 further includes a loudspeaker, is used for output audio signal.
Display 206 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (30)

1. a kind of acquisition methods of resource checksum information characterized by comprising
Resource information request is sent to server, to obtain the resource information of resources to be downloaded;
The resource information that the server returns is received, the resource information includes: piecemeal check information and resource node information; For verifying to multiple piecemeal resources of the resources to be downloaded, the resource node information refers to the piecemeal check information The position of node where showing the resources to be downloaded.
2. the method according to claim 1, wherein further including the resources to be downloaded in the resource information Whole check information, for carrying out whole verification to the resources to be downloaded.
3. a kind of acquisition methods of resource checksum information characterized by comprising
Resource information request is sent to server, obtains the resource information of resources to be downloaded, the resource information includes: piecemeal school Test the first check value and resource node information of information;The piecemeal check information is used for multiple points to the resources to be downloaded Block resource is verified;First check value is for verifying the piecemeal check information, the resource node information The position of node where indicating the resources to be downloaded;
According to the resource node information, Xiang Suoshu resource node sends the request of piecemeal check information, obtains the money to be downloaded The piecemeal check information in source includes first check value in piecemeal check information request,
The piecemeal check information is that the resource node searches acquisition in local information library, and uses first check value Verification issues after passing through.
4. according to the method described in claim 3, it is characterized in that, further including the resources to be downloaded in the resource information Whole check information, for carrying out whole verification to the resources to be downloaded.
5. according to the method described in claim 3, it is characterized in that, the resource node is searched in local information library, and adopting Verifying the piecemeal check information with first check value includes:
The resource node searches whether the resource information entry there are the resources to be downloaded, Mei Gesuo in local information library State the second check value and piecemeal of the piecemeal check information in resource information entry including the announced resource of the resource node The store path of check information;
If there is the resource information entry of the resources to be downloaded, then the resource node is by first check value and the money Second check value described in source information entry is compared, if identical, it is determined that by the piecemeal under the store path Check information issues.
6. a kind of method of calibration of piecemeal resource characterized by comprising
The resource download request that requesting node is sent is received, includes the first interval of resources to be downloaded in the resource download request Information;
Each piecemeal for being included with the resources to be downloaded found in local storage unit by the first interval information The interval range of resource is compared, determining to have the first piecemeal resource for being overlapped section with the first interval information;
Verification calculating is carried out using preset checking algorithm to each first piecemeal resource respectively, obtains third check value;
By the corresponding school of piecemeal resource same in the piecemeal check information stored in each third check value and local information library It tests value to be compared, if identical, the corresponding resource part of first interval information described in corresponding piecemeal resource is sent To the requesting node.
7. according to the method described in claim 6, it is characterized in that, further including the money to be downloaded in the resource download request The whole check information in source, for carrying out whole verification to the resources to be downloaded;
The method also includes:
The whole check information there are the resources to be downloaded is searched whether in local information library;
If there is the whole check information of the resources to be downloaded, then by the entirety check information and the resource download request In the whole check information be compared, if identical, trigger and described deposit the first interval information with local The interval range for each piecemeal resource that the resources to be downloaded found in storage unit are included is compared, it is determining with it is described First interval information has the operation for the first piecemeal resource for being overlapped section.
8. a kind of method of calibration of piecemeal resource characterized by comprising
Resource download request is sent to resource node, obtains the resource data being located in first interval information in resources to be downloaded;
All first interval information of the received resources to be downloaded are spliced to form second interval information, and by Two block informations interval range corresponding with each piecemeal resource that the resources to be downloaded are included is compared, and is determined and institute Stating second interval information has the first piecemeal resource for being overlapped section;
Preset school is used to the resource part being located in each first piecemeal resource in the received resources to be downloaded Checking method carries out verification calculating respectively, obtains the 4th check value;
By each 4th check value and same piecemeal resource in the piecemeal check information for the resources to be downloaded being locally stored Corresponding check value is compared, if identical, is overlapped having in corresponding piecemeal resource with the second interval information The resource part in section is saved to local.
9. a kind of dissemination method of resource characterized by comprising
Resource publication request is sent to server, includes the piecemeal check information of resource to be released in the resource publication request;
The resource publication result information that the server is sent is received,
The publication result information be by the server local it is already present with the publication resource be that same resource is corresponding After piecemeal check information is compared, the transmitted publication success message when comparison result is identical, alternatively, in comparison result Transmitted publication failed message when being different;
Alternatively,
It is the corresponding piecemeal of same resource that the publication result information, which is that the server local is not present with the publication resource, Transmitted publication success message when check information.
10. according to the method described in claim 9, it is characterized in that, further including described to be released in the resource publication request The whole check information of resource, for carrying out whole verification to the resource to be released.
11. a kind of dissemination method of resource characterized by comprising
Resource publication request is sent to server, includes the piecemeal check information of resource to be released in the resource publication request First check value;
The resource publication result information that the server is sent is received,
The publication result information be by the server local it is already present with the publication resource be that same resource is corresponding After first check value of piecemeal check information is compared, the transmitted publication success message when comparison result is identical, or Person, the transmitted publication failed message when comparison result is different;
Alternatively,
It is the corresponding piecemeal of same resource that the publication result information, which is that the server local is not present with the publication resource, Transmitted publication success message when the first check value of check information.
12. according to the method for claim 11, which is characterized in that further include described to be released in the resource publication request The whole check information of resource, for carrying out whole verification to the resource to be released.
13. a kind of acquisition device of resource checksum information characterized by comprising
First resource information request module, for sending resource information request to server, to obtain the resource of resources to be downloaded Information;
First resource information receiving module, the resource information returned for receiving the server, the resource information includes: point Block checking information and resource node information;The piecemeal check information be used for multiple piecemeal resources of the resources to be downloaded into Row verification, the position of node where the resource node information indicates the resources to be downloaded.
14. device according to claim 13, which is characterized in that further include the resources to be downloaded in the resource information Whole check information, for carrying out whole verification to the resources to be downloaded.
15. a kind of acquisition device of resource checksum information characterized by comprising
Secondary resource information request module obtains the resource letter of resources to be downloaded for sending resource information request to server Breath, the resource information includes: the first check value and resource node information of piecemeal check information;The piecemeal check information is used It is verified in multiple piecemeal resources to the resources to be downloaded;First check value is used for the piecemeal check information It is verified, the position of node where the resource node information indicates the resources to be downloaded;
Check information request module, for according to the resource node information, Xiang Suoshu resource node to send piecemeal check information Request obtains the piecemeal check information of the resources to be downloaded, includes first verification in the piecemeal check information request Value,
The piecemeal check information is that the resource node searches acquisition in local information library, and uses first check value Verification issues after passing through.
16. device according to claim 15, which is characterized in that further include the resources to be downloaded in the resource information Whole check information, for carrying out whole verification to the resources to be downloaded.
17. device according to claim 15, which is characterized in that the resource node is searched in local information library, and Verifying the piecemeal check information using first check value includes:
The resource node searches whether the resource information entry there are the resources to be downloaded, Mei Gesuo in local information library State the second check value and piecemeal of the piecemeal check information in resource information entry including the announced resource of the resource node The store path of check information;
If there is the resource information entry of the resources to be downloaded, then the resource node is by first check value and the money Second check value described in source information entry is compared, if identical, it is determined that by the piecemeal under the store path Check information issues.
18. a kind of calibration equipment of piecemeal resource characterized by comprising
Request receiving module is downloaded, for receiving the resource download request of requesting node transmission, is wrapped in the resource download request Include the first interval information of resources to be downloaded;
First resource comparison module, for by the first interval information with find in local storage unit described under The interval range for carrying each piecemeal resource that resource is included is compared, and determination has with the first interval information is overlapped section The first piecemeal resource;
First verification computing module, for carrying out master gage respectively using preset checking algorithm to each first piecemeal resource It calculates, obtains third check value;
Resource sending module, it is same in the piecemeal check information for will be stored in each third check value and local information library The corresponding check value of piecemeal resource is compared, if identical, by first interval information pair described in corresponding piecemeal resource The resource part answered is sent to the requesting node.
19. device according to claim 18, which is characterized in that further include described to be downloaded in the resource download request The whole check information of resource, for carrying out whole verification to the resources to be downloaded;
Described device further include:
Information searching module, for searching whether the whole check information there are the resources to be downloaded in local information library;
Message processing module, for the whole check information if there is the resources to be downloaded, then by the entirety check information It is compared with the whole check information in the resource download request, if identical, triggers described by described first The interval range for each piecemeal resource that block information and the resources to be downloaded found in local storage unit are included It is compared, the determining operation with the first interval information with the first piecemeal resource for being overlapped section.
20. a kind of calibration equipment of piecemeal resource characterized by comprising
Request module is downloaded, for sending resource download request to resource node, obtains and is located at first interval in resources to be downloaded Resource data in information;
Secondary resource comparison module, for all first interval information of the received resources to be downloaded to be spliced shape At second interval information, and by second interval information section model corresponding with each piecemeal resource that the resources to be downloaded are included It encloses and is compared, determine that there is the first piecemeal resource for being overlapped section with the second interval information;
Second verification computing module, for being located in each first piecemeal resource in the received resources to be downloaded Resource part carries out verification calculating using preset checking algorithm respectively, obtains the 4th check value;
Resource processing module, for believing the piecemeal verification of each 4th check value and the resources to be downloaded being locally stored The corresponding check value of same piecemeal resource is compared in breath, if identical, by corresponding piecemeal resource with described second There is block information the resource part for being overlapped section to save to local.
21. a kind of distributing device of resource characterized by comprising
First posting request sending module is used to send resource publication request to server, includes in the resource publication request The piecemeal check information of resource to be released;
First publication result receiving module issues result information for receiving the resource that the server is sent,
The publication result information be by the server local it is already present with the publication resource be that same resource is corresponding After piecemeal check information is compared, the transmitted publication success message when comparison result is identical, alternatively, in comparison result Transmitted publication failed message when being different;
Alternatively,
It is the corresponding piecemeal of same resource that the publication result information, which is that the server local is not present with the publication resource, Transmitted publication success message when check information.
22. device according to claim 21, which is characterized in that further include described to be released in the resource publication request The whole check information of resource, for carrying out whole verification to the resource to be released.
23. a kind of distributing device of resource characterized by comprising
Second posting request sending module is used to send resource publication request to server, includes in the resource publication request First check value of the piecemeal check information of resource to be released;
Second publication result receiving module issues result information for receiving the resource that the server is sent,
The publication result information be by the server local it is already present with the publication resource be that same resource is corresponding After first check value of piecemeal check information is compared, the transmitted publication success message when comparison result is identical, or Person, the transmitted publication failed message when comparison result is different;
Alternatively,
It is the corresponding piecemeal of same resource that the publication result information, which is that the server local is not present with the publication resource, Transmitted publication success message when the first check value of check information.
24. device according to claim 23, which is characterized in that further include described to be released in the resource publication request The whole check information of resource, for carrying out whole verification to the resource to be released.
25. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource information request is sent to server, to obtain the resource information of resources to be downloaded;
The resource information that the server returns is received, the resource information includes: piecemeal check information and resource node information; For verifying to multiple piecemeal resources of the resources to be downloaded, the resource node information refers to the piecemeal check information The position of node where showing the resources to be downloaded.
26. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource information request is sent to server, obtains the resource information of resources to be downloaded, the resource information includes: piecemeal school Test the first check value and resource node information of information;The piecemeal check information is used for multiple points to the resources to be downloaded Block resource is verified;First check value is for verifying the piecemeal check information, the resource node information The position of node where indicating the resources to be downloaded;
According to the resource node information, Xiang Suoshu resource node sends the request of piecemeal check information, obtains the money to be downloaded The piecemeal check information in source includes first check value in piecemeal check information request,
The piecemeal check information is that the resource node searches acquisition in local information library, and uses first check value Verification issues after passing through.
27. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The resource download request that requesting node is sent is received, includes the first interval of resources to be downloaded in the resource download request Information;
Each piecemeal for being included with the resources to be downloaded found in local storage unit by the first interval information The interval range of resource is compared, determining to have the first piecemeal resource for being overlapped section with the first interval information;
Verification calculating is carried out using preset checking algorithm to each first piecemeal resource respectively, obtains third check value;
By the corresponding school of piecemeal resource same in the piecemeal check information stored in each third check value and local information library It tests value to be compared, if identical, the corresponding resource part of first interval information described in corresponding piecemeal resource is sent To the requesting node.
28. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource download request is sent to resource node, obtains the resource data being located in first interval information in resources to be downloaded;
All first interval information of the received resources to be downloaded are spliced to form second interval information, and by Two block informations interval range corresponding with each piecemeal resource that the resources to be downloaded are included is compared, and is determined and institute Stating second interval information has the first piecemeal resource for being overlapped section;
Preset school is used to the resource part being located in each first piecemeal resource in the received resources to be downloaded Checking method carries out verification calculating respectively, obtains the 4th check value;
By each 4th check value and same piecemeal resource in the piecemeal check information for the resources to be downloaded being locally stored Corresponding check value is compared, if identical, is overlapped having in corresponding piecemeal resource with the second interval information The resource part in section is saved to local.
29. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource publication request is sent to server, includes the piecemeal check information of resource to be released in the resource publication request;
The resource publication result information that the server is sent is received,
The publication result information be by the server local it is already present with the publication resource be that same resource is corresponding After piecemeal check information is compared, the transmitted publication success message when comparison result is identical, alternatively, in comparison result Transmitted publication failed message when being different;
Alternatively,
It is the corresponding piecemeal of same resource that the publication result information, which is that the server local is not present with the publication resource, Transmitted publication success message when check information.
30. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
Resource publication request is sent to server, includes the piecemeal check information of resource to be released in the resource publication request First check value;
The resource publication result information that the server is sent is received,
The publication result information be by the server local it is already present with the publication resource be that same resource is corresponding After first check value of piecemeal check information is compared, the transmitted publication success message when comparison result is identical, or Person, the transmitted publication failed message when comparison result is different;
Alternatively,
It is the corresponding piecemeal of same resource that the publication result information, which is that the server local is not present with the publication resource, Transmitted publication success message when the first check value of check information.
CN201710947291.9A 2017-10-12 2017-10-12 Method and device for acquiring verification information, method and device for verifying and releasing resources and electronic equipment Active CN109660496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710947291.9A CN109660496B (en) 2017-10-12 2017-10-12 Method and device for acquiring verification information, method and device for verifying and releasing resources and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710947291.9A CN109660496B (en) 2017-10-12 2017-10-12 Method and device for acquiring verification information, method and device for verifying and releasing resources and electronic equipment

Publications (2)

Publication Number Publication Date
CN109660496A true CN109660496A (en) 2019-04-19
CN109660496B CN109660496B (en) 2021-09-03

Family

ID=66109244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710947291.9A Active CN109660496B (en) 2017-10-12 2017-10-12 Method and device for acquiring verification information, method and device for verifying and releasing resources and electronic equipment

Country Status (1)

Country Link
CN (1) CN109660496B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764815A (en) * 2019-09-26 2020-02-07 北京网聘咨询有限公司 Web API project issuing method and device
CN111093110A (en) * 2019-12-03 2020-05-01 华为技术有限公司 HTTP request transmission method and equipment
CN114398659A (en) * 2021-10-28 2022-04-26 上海哔哩哔哩科技有限公司 Resource checking method, device, equipment and storage medium
SE2150527A1 (en) * 2021-04-26 2022-10-27 Hive Streaming Ab Cipher text validation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
US20080133666A1 (en) * 2006-12-05 2008-06-05 Chavez Timothy R Moving File Fragments from Background File Sharing to Foreground File Sharing and Preventing Duplicate Downloads
CN101848188A (en) * 2009-03-25 2010-09-29 上海聚力传媒技术有限公司 Method and device for updating data block checking information
CN102025444A (en) * 2009-09-09 2011-04-20 腾讯科技(深圳)有限公司 Resource publishing method, resource downloading method and data verification system
CN102546731A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Subchunk integrity checking method and system of peer-to-peer streaming media system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
US20080133666A1 (en) * 2006-12-05 2008-06-05 Chavez Timothy R Moving File Fragments from Background File Sharing to Foreground File Sharing and Preventing Duplicate Downloads
CN101848188A (en) * 2009-03-25 2010-09-29 上海聚力传媒技术有限公司 Method and device for updating data block checking information
CN102025444A (en) * 2009-09-09 2011-04-20 腾讯科技(深圳)有限公司 Resource publishing method, resource downloading method and data verification system
CN102546731A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Subchunk integrity checking method and system of peer-to-peer streaming media system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764815A (en) * 2019-09-26 2020-02-07 北京网聘咨询有限公司 Web API project issuing method and device
CN111093110A (en) * 2019-12-03 2020-05-01 华为技术有限公司 HTTP request transmission method and equipment
CN111093110B (en) * 2019-12-03 2021-02-12 华为技术有限公司 HTTP request transmission method and equipment
US11997328B2 (en) 2019-12-03 2024-05-28 Huawei Technologies Co., Ltd. HTTP request transmission method and device
SE2150527A1 (en) * 2021-04-26 2022-10-27 Hive Streaming Ab Cipher text validation
CN114398659A (en) * 2021-10-28 2022-04-26 上海哔哩哔哩科技有限公司 Resource checking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109660496B (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
CN108681965B (en) Block chain network transaction processing method and device for offline node
CN104731516B (en) A kind of method, apparatus and distributed memory system of accessing file
CN109660496A (en) Acquisition, resource checksum and the dissemination method of check information, device and electronic equipment
US20200259879A1 (en) Interaction method and device for mobile terminal and cloud platform of unmanned aerial vehicle
CN108897691A (en) Data processing method, device, server and medium based on interface analog service
CN102761623B (en) Resource self-adaptive joins method for down loading, system, data storage server and communication system
CN104468395A (en) Direct-broadcasting-room channel access method and system
RU2538911C2 (en) Method and system for efficient download of data packet
WO2017107542A1 (en) Video program obtaining method, device and system
CN107113520A (en) The system and method for the media device used in media environment for test and certification connection
CN103078881A (en) Sharing control system and method for network resource downloading information
US20150058937A1 (en) Streaming video to cellular phones
CN104410660A (en) Method and device of downloading multimedia resources as well as router and server
CN109565518A (en) Interchangeable content retrieval
CN109525622B (en) Fragment resource ID generation method, resource sharing method, device and electronic equipment
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN111200622B (en) Resource transmission method and device and storage medium
CN110263579A (en) A kind of data processing method, system and relevant device
CN101883079B (en) For the method and apparatus of accelerating to request multimedia contents in the Internet
CN106210032A (en) The method and device reported based on terminal data batch
CN106203179B (en) A kind of completeness check system and method for pair of file
CN109726545A (en) A kind of information display method, equipment, computer readable storage medium and device
CN111353177A (en) Block chain-based privacy large file storage system
CN110297812A (en) File memory method, the method for file synchronization, computer equipment and storage medium

Legal Events

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