CN102546783A - Course resource downloading method, course resource clients, server and system - Google Patents

Course resource downloading method, course resource clients, server and system Download PDF

Info

Publication number
CN102546783A
CN102546783A CN2011104483197A CN201110448319A CN102546783A CN 102546783 A CN102546783 A CN 102546783A CN 2011104483197 A CN2011104483197 A CN 2011104483197A CN 201110448319 A CN201110448319 A CN 201110448319A CN 102546783 A CN102546783 A CN 102546783A
Authority
CN
China
Prior art keywords
course
file
check value
piecemeal
resources
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.)
Pending
Application number
CN2011104483197A
Other languages
Chinese (zh)
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.)
SHENZHEN NEWV SOFTWARE CO Ltd
Original Assignee
SHENZHEN NEWV SOFTWARE CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN NEWV SOFTWARE CO Ltd filed Critical SHENZHEN NEWV SOFTWARE CO Ltd
Priority to CN2011104483197A priority Critical patent/CN102546783A/en
Publication of CN102546783A publication Critical patent/CN102546783A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a course resource downloading method, a course resource server, clients and a system. According to the course resource downloading method provided by the invention, as a downloaded base unit is course blocks, the course blocks not only can be stored on the server but also can be stored on other clients, one client only requests resource downloading information to the server during downloading course resources first, and the client can request the course blocks to other clients to realize the subsequent downloading process. Thus, the burden of the server is reduced. In addition, the course resource downloading process does not depend on a browser, the downloaded course blocks can be directly stored in local cache, and the stability of cache is also increased.

Description

Course resources method for down loading and course resources client, server and system
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of course resources method for down loading and course resources client, server and system.
Background technology
Along with the development of information technology, e-learning (E-Learning) comes into vogue as a kind of new mode of learning gradually.E-learning be unable to do without the brand-new Network Study Environment that is made up of multi-media network education resource, online learning community and network technology platform.In Network Study Environment, compiled course resources such as mass data, archives material, program, teaching software, courseware, formed a resources bank that high integrity is integrated.
In traditional E-Learning process, course resources leaves in the server usually, and the visit course resources need realize through browser.The user is through the browser access study website, and course resources downloads in the buffer memory of browser.
In existing e-learning process, course resources relies on the buffer memory of browser, but the common capacity of the buffer memory of browser is less, and the buffer memory poor stability, causes each study all to need browser from the server data download, and server is caused great pressure.
In addition, because the file in the browser rs cache is not encrypted,, and then cause course resources supplier's loss easily by disabled user's copy.
Summary of the invention
Main purpose of the present invention is to provide a kind of course resources method for down loading and course resources client, server and system that does not rely on the buffer memory of browser, and can prevent that the disabled user from copying local course resources.
In order to achieve the above object, the present invention proposes a kind of course resources method for down loading, comprising:
The course resources that reception is uploaded is carried out piecemeal to each file of said course resources, obtains the course piecemeal;
To calculation check value and the skew respectively of each course piecemeal;
The check value of all course piecemeals of said each file is merged, calculate the check value and the skew of said each file;
The check value of said each file is merged, calculate the check value and the skew of each file of course resources;
The check value of the All Files of course resources folder is merged, calculate the check value of said course resources;
Receive the download request of client to said course resources; Send resource downloading information to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
The embodiment of the invention also provides a kind of course resources method for down loading, comprising:
Send the course resources download request to server;
Receive the resource downloading information that said server sends, comprise check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in the said resource downloading information;
Course piecemeal to said server and/or the said course resources of other client downloads;
According to the check value of said course piecemeal the course piecemeal of downloading is carried out verification, and according to the skew of said course piecemeal the course piecemeal of verification succeeds is made up and to obtain file;
Carry out verification according to the check value of the file file after to combination, and according to the skew of said file the file of verification succeeds is made up and to obtain file;
Check value according to said file carries out verification to the file after making up, and obtains course resources according to the skew of said file to checking successful file to make up;
Check value according to said course resources carries out verification to the course resources after making up, and preserves the successful course resources of check.
The embodiment of the invention also provides a kind of course resources server, comprising:
Last transmit/receive unit is used to receive the course resources of uploading, and each file of said course resources is carried out piecemeal, obtains the course piecemeal;
The piecemeal processing unit is used for calculation check value and the skew respectively of each course piecemeal;
The file process unit is used for the check value of all course piecemeals of said each file is merged, and calculates the check value and the skew of said each file;
The file processing unit is used for the check value of the file of each file of said course resources is merged, and calculates the check value and the skew of said each file;
The course resources processing unit is used for the check value of the All Files of course resources folder is merged, and calculates the check value of said course resources;
The download request processing unit; Be used to receive the download request of client to said course resources; Send resource downloading information to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
The embodiment of the invention also provides a kind of course resources client, comprising:
The download request transmitting element is used for sending the course resources download request to server;
The download message receiving element; Be used to receive the resource downloading information that said server sends, comprise check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in the said resource downloading information;
Course piecemeal download unit is used for the course piecemeal to said server and/or the said course resources of other client downloads;
Course piecemeal assembled unit, the user carries out verification according to the check value of said course piecemeal to the course piecemeal of downloading, and according to the skew of said course piecemeal the course piecemeal of verification succeeds is made up and to obtain file;
The combination of files unit is used for carrying out verification according to the check value of the file file after to combination, and according to the skew of said file the file of verification succeeds is made up and to obtain file;
The file assembled unit is used for according to the check value of said file the file after making up being carried out verification, and obtains course resources according to the skew of said file to checking successful file to make up;
The course resources verification unit is used for according to the check value of said course resources the course resources after making up being carried out verification, preserves the successful course resources of check.
The embodiment of the invention also provides a kind of course resources download system, comprises aforesaid course resources server, and aforesaid course resources client.
Propose in the course resources method for down loading in the present invention; The course resources user end to server sends the course resources download request; Server sends resource downloading information according to this request, comprises check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.Client according to this resource downloading information from server or other client downloads course piecemeals; And the course piecemeal of downloading is combined into file; With file group composite document folder, file is combined into course resources, and then course resources play or carry out other operation.In the present invention; Because the base unit of downloading is the course piecemeal; The course piecemeal not only can exist with server on, can also be present in other the client, thereby client only need be to server requests resource downloading information when downloading course resources first; Follow-up downloading process can realize to other client-requested course piecemeal, alleviate load of server.In addition, the course resources downloading process does not rely on browser, and the course piecemeal of download can directly be kept at local cache, has improved the stability of buffer memory yet.
At last, get in touch owing to existing between course piecemeal, file and file in the present embodiment, the course resources, but be again independently on data, thereby can realize breakpoint transmission, the effects such as transmission of jumping have improved the stability of downloading.
Description of drawings
Fig. 1 is the flow chart of the course resources method for down loading that provides of the embodiment of the invention one.
Fig. 2 is the flow chart of the course resources method for down loading that provides of the embodiment of the invention two.
Fig. 3 is the building-block of logic of course resources in the course resources method for down loading that provides of the embodiment of the invention two.
Fig. 4 is the flow chart of the course resources method for down loading that provides of the embodiment of the invention three.
Fig. 5 is the sketch map of piece exchange in the course resources method for down loading that provides of the embodiment of the invention three.
Fig. 6 is the structural representation of the course resources server that provides of the embodiment of the invention four.
Fig. 7 is the structural representation of the course resources client that provides of the embodiment of the invention five.
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Below from server one side the course resources method for down loading that the embodiment of the invention provides is described, with reference to figure 1, Fig. 1 is the flow chart of the course resources method for down loading that provides of the embodiment of the invention one.
In the present embodiment, the course resources method for down loading specifically comprises:
Step S101, receive the course resources upload, each file of said course resources is carried out piecemeal, obtain the course piecemeal.
In the present embodiment; Server can receive the course resources that courseware provider uploads, and server will be carried out scanning process to this course resources, and scanning process at first need be carried out piecemeal to each file of course resources; Obtain the course piecemeal, then execution in step S102.
Step S102, to calculation check value and the skew respectively of each course piecemeal.
Concrete, server can come each course piecemeal calculation check value and skew according to preset checking algorithm, and check value can be used for verification course piecemeal, and the check value of each course piecemeal all is unique with skew.
Step S103, the check value of all course piecemeals of each file is merged, calculate the check value and the skew of said each file.
Concrete, server merges the check value of the course piecemeal in each file, calculates the check value and the skew of each file then according to preset checking algorithm, and this check value can be used for verification file.
Step S104, the check value of the file in each file of said course resources is merged, calculate the check value and the skew of each file.
Concrete, server merges the check value of each file in the file of course resources, calculates the check value and the skew of each file of course resources then according to preset checking algorithm, and this check value can be used for the verification file folder.
Step S105, the check value of the All Files of course resources folder is merged, calculate the check value of said course resources.
Concrete, server merges the check value of the All Files folder of course resources, calculates the check value of the course resources that comprises the All Files folder then according to preset checking algorithm, and this check value can be used for this course resources of verification.
After server is accomplished the scanning of course resources (after promptly calculating the check value of course resources), can receive the course resources download request that the user sends through client, the course resources of asking this to upload.
Step S106, receive the download request of client to said course resources; Send resource downloading information to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
Concrete; Server can receive the download request of client to said course resources; And according to the resource downloading information of this request to this course resources correspondence of client transmission; Comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in this resource downloading information, this resource downloading information is used for this course resources of client downloads, and the course resources of downloading is carried out verification; If client verification failure is then downloaded again.In the present embodiment, client can guarantee that the course piecemeal of downloading is correct according to check value.
Propose in the course resources method for down loading in the present invention; The course resources user end to server sends the course resources download request; Server sends resource downloading information according to this request, comprises check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.Client according to this resource downloading information from server or other client downloads course piecemeals; And the course piecemeal of downloading is combined into file; With file group composite document folder, file is combined into course resources, and then course resources play or carry out other operation.In the present invention; Because the base unit of downloading is the course piecemeal; The course piecemeal not only can exist with server on, can also be present in other the client, thereby client only need be to server requests resource downloading information when downloading course resources first; Follow-up downloading process can realize to other client-requested course piecemeal, alleviate load of server.In addition, the course resources downloading process does not rely on browser, and the course piecemeal of download can directly be kept at local cache, has improved the stability of buffer memory yet.
At last, get in touch owing to existing between course piecemeal, file and file in the present embodiment, the course resources, but be again independently on data, thereby can realize breakpoint transmission, the effects such as transmission of jumping have improved the stability of downloading.
Referring to Fig. 2, Fig. 2 is the flow chart of the course resources method for down loading that provides of the embodiment of the invention two.
The course resources method for down loading that present embodiment two provides specifically comprises:
Step S201, receive the course resources upload, each file of course resources is carried out piecemeal obtain bulk, bulk is carried out piecemeal obtain fritter.
Server can receive the course resources that courseware provider uploads, and course resources can be used the binary mode storage.Server will be carried out scanning process to this course resources, and scanning process specifically comprises: each file to course resources carries out piecemeal, obtains the course piecemeal.
Wherein, server can be divided into bulk to each file earlier, and then with each bulk morsel, the size of fritter can be 180Kb.In the present embodiment, bulk further is divided into fritter, can after download make mistakes, in time deletes, can accelerate the speed of download of client.
Step S202, to each bulk and fritter calculation check value and offset address respectively.
Concrete, server each bulk after to piecemeal is distinguished calculation check value and offset address with fritter, and check value can be used for verification bulk or fritter.
Wherein, server can use hash algorithm that bulk and fritter are calculated check value respectively, and this moment, check value was specially Hash (HASH) value.
Step S203, the check value of all course piecemeals of said each file is merged, calculate the check value and the skew of said each file.
Step S204, the check value of the file in each file of said course resources is merged the check value of each file and skew.
Step S205, the check value of the All Files of course resources folder is merged, calculate the check value of said course resources.
In the present embodiment, the implementation of step S203-S205 is identical with step S103-S105 in the foregoing description one, no longer is repeated in this description at this.
The logical construction of the course resources after wherein, scanning is accomplished can be as shown in Figure 3.Among Fig. 3; " courseware 1 " comprises a file " file 1 ", and a file is arranged under " file 1 ", and file is called " file 1 "; And " file 1 " is made up of two bulks; Be respectively " bulk 1 ", " bulk 2 ", wherein " bulk 1 " is made up of four fritters, and the size of fritter all is 180K.
The embodiment of the invention has been carried out piecemeal in logic to courseware; Be divided into from top to down into 5 grades (course resources-files-file-bulk-fritter); Become a logic tree generally; Each node on the tree all has coding and the check value of oneself, and this check value is to calculate according to the courseware data content, so check value is relevant with courseware content.Because each node on the logic tree all has check value, so can guarantee the integrality transmitted.
Step S206, receive the download request of client to said course resources; Send the course fritter of resource downloading information and course resources to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
In the present embodiment; Server not only sends resource downloading information to client after receiving the download request of client to course resources, also send the fritter of course resources to client; So that client is preserved course resources, accelerate the speed of download of client.
Below from client one side the course resources method for down loading that the embodiment of the invention provides is described.Referring to Fig. 4, Fig. 4 is the flow chart of the course resources method for down loading that provides of the embodiment of the invention three.
The course resources method for down loading that the embodiment of the invention three provides mainly comprises:
Step S301, send the course resources download request to server.
Concrete, the user can send the course resources download request through user end to server, carry the sign of the course resources that needs download in this request, for example course name etc.
Step S302, receive the resource downloading information that said server sends, comprise check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in the said resource downloading information.
In the present embodiment, the resource downloading information that the client reception server returns comprises check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in this resource downloading information.
Further, the course piecemeal comprises bulk and fritter, specifically comprises the check value and the skew of check value and the skew and the fritter of bulk in the resource downloading information that client receives.
Step S303, to the course piecemeal of server and/or the said course resources of other client downloads.
In the present embodiment, client can have other client or the server of course piecemeal according to this resource downloading information search buffer memory in the network.Client can be according to the course piecemeal of resource downloading information to server and/or other client downloads course resources, for example fritter or bulk.
Step S304, the course piecemeal of downloading is carried out verification, and according to the skew of said course piecemeal the course piecemeal of verification succeeds is made up and to obtain file according to the check value of said course piecemeal.
Concrete, client is carried out verification according to the check value of course piecemeal to the course piecemeal of downloading, if check successfully, then makes up according to the skew of the course piecemeal course piecemeal to verification succeeds, obtains the file of course resources.If this course piecemeal is then downloaded in the verification failure again.
It is pointed out that since the skew of course piecemeal in the unified scanning of server end, thereby the relativity shift in logic of all clients all is the same, can obtain the file of course resources according to the offset storage relevant position of course piecemeal.
Further; If the course piecemeal comprises bulk and fritter; Then the combinations thereof process specifically can comprise: client is carried out verification according to the check value of fritter to the fritter of downloading, if verification succeeds, then according to the offset address of fritter the fritter of verification succeeds is made up and obtains bulk; If this fritter is then downloaded in the verification failure again.After fritter combination is obtained bulk, according to the check value of this bulk the bulk of combination is carried out verification, if verification succeeds, then the bulk of verification succeeds is made up and obtain file according to the offset address of bulk.If the fritter in this bulk is then downloaded in the verification failure again.
Step S305, carry out verification, and according to the skew of said file the file of verification succeeds is made up and to obtain file according to the check value of the file file after to combination.
In the present embodiment, client is carried out verification according to the check value of the file file after to combination, if verification succeeds, then makes up according to the skew of the file file to verification succeeds, obtains file.If verification is failed, then download the course piecemeal of this document again.
Step S306, carry out verification, and obtain course resources to checking successful file to make up according to the skew of said file according to the check value of the said file file after to combination.
In the present embodiment, client is carried out verification according to the check value of file to the file after making up, if verification succeeds, then the skew according to this document folder obtains course resources to checking successful file to make up.If the course piecemeal (course fritter or bulk) in this document folder is then downloaded in the verification failure again.
Step S307, carry out verification, preserve the successful course resources of check according to the check value of the said course resources course resources after to combination.
In the present embodiment, client is carried out verification according to the check value of course resources to the course resources after making up, if verification succeeds is then preserved the successful course resources of check.If verification is failed, then download the course piecemeal of this course resources again.
Further, present embodiment can also be carried out following steps after to the course resources verification succeeds:
The exchange algorithm that step S308, basis are preset exchanges the course piecemeal of identical size in the file of the course resources after making up.
In the present embodiment, client can exchange according to bulk or the fritter of preset exchange algorithm to identical size in the file of the course resources after making up.As shown in Figure 5, Fig. 5 shows the sketch map of the 3rd and the 5th exchange in the file, and the 3rd and the 5th has been not continuous file physically after the exchange.
In the course resources method for down loading that present embodiment provides, the resource downloading message that client is sent according to server is to server and/or other client downloads course resources.Downloading process is based on that the course piecemeal realizes, client has just developed into a data node after downloading to part course piecemeal, and it has local cache; Be used for depositing a certain amount of data, only when learning for the first time, need to download, follow-up study need not to download; Take out and directly go out local cache; Except offer oneself use, it can also send to the client that other needs these data to these data, thereby realizes the distributed effect of courseware data; Reduce server stress, reduce operation cost.
In addition; Client makes course resources whether sequenced on physical store through the identical piece of size is exchanged, and has played privacy functions through the local course of obscuring like this; Thereby can prevent effectively that the disabled user from copying use, avoids course resources supplier's loss.
The embodiment of the invention can also obtain course off-line bag according to lesson file.Course off-line bag combines several courses, and the use AES is encrypted, and convenient copy and transfer are gathered with the course that single file mode exists.
In the present embodiment, data have all been done a large amount of compression optimizations before the transmission, and compression had both occurred in user end to server and sent when asking; Also occur in server when client is sent data; Also occur in client when the client exchange data, efficiency of transmission is high, and occupied bandwidth is little.When transmission, under the various network environment, can switch different transport protocols, such as in the transmission courseware-related information; Require safe and complete; So (Transmission Control Protocol TCP), and transmits data to the high employing of real-time transmission control protocol under ad hoc mode; For based traversal network address conversion (Network Address Translation; NAT) equipment, (User Datagram Protocol, UDP) the Intranet penetrability is relatively good for UDP.So adopt UDP, in order to be effective optimum.
Referring to Fig. 6, Fig. 6 is the structural representation of the course resources server that provides of the embodiment of the invention four.
The course resources server that present embodiment four provides comprises:
Last transmit/receive unit 11 is used to receive the course resources of uploading, and each file of said course resources is carried out piecemeal, obtains the course piecemeal;
Piecemeal processing unit 12 is used for calculation check value and the skew respectively of each course piecemeal;
File process unit 13 is used for the check value of all course piecemeals of said each file is merged, and calculates the check value and the skew of said each file;
File processing unit 14 is used for the check value of the file of each file of said course resources is merged, and calculates the check value and the skew of said each file;
Course resources processing unit 15 is used for the check value of the All Files of course resources folder is merged, and calculates the check value of said course resources;
Download request processing unit 16; Be used to receive the download request of client to said course resources; Send resource downloading information to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
Further, download request processing unit 16 also is used for sending to said client the course piecemeal of said course resources.
The course resources server that present embodiment provides can use in first and second embodiment of course resources method for down loading of aforementioned correspondence, and details no longer repeat at this referring to the description of method embodiment.
In the course resources server that present embodiment provides; The course resources user end to server sends the course resources download request; Server sends resource downloading information according to this request, comprises check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.Client according to this resource downloading information from server or other client downloads course piecemeals; And the course piecemeal of downloading is combined into file; With file group composite document folder, file is combined into course resources, and then course resources play or carry out other operation.In the present invention; Because the base unit of downloading is the course piecemeal; The course piecemeal not only can exist with server on, can also be present in other the client, thereby client only need be to server requests resource downloading information when downloading course resources first; Follow-up downloading process can realize to other client-requested course piecemeal, alleviate load of server.In addition, the course resources downloading process does not rely on browser, and the course piecemeal of download can directly be kept at local cache, has improved the stability of buffer memory yet.
At last, get in touch owing to existing between course piecemeal, file and file in the present embodiment, the course resources, but be again independently on data, thereby can realize breakpoint transmission, the effects such as transmission of jumping have improved the stability of downloading.
Referring to Fig. 7, Fig. 7 is the structural representation of the course resources client that provides of the embodiment of the invention five.
In present embodiment five, the course resources client mainly comprises:
Download request transmitting element 21 is used for sending the course resources download request to server;
Download message receiving element 22; Be used to receive the resource downloading information that said server sends, comprise check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in the said resource downloading information;
Course piecemeal download unit 23 is used for the course piecemeal to said server and/or the said course resources of other client downloads;
Course piecemeal assembled unit 24, the user carries out verification according to the check value of said course piecemeal to the course piecemeal of downloading, and according to the skew of said course piecemeal the course piecemeal of verification succeeds is made up and to obtain file;
Combination of files unit 25 is used for carrying out verification according to the check value of the file file after to combination, and according to the skew of said file the file of verification succeeds is made up and to obtain file;
File assembled unit 26 is used for according to the check value of said file the file after making up being carried out verification, and obtains course resources according to the skew of said file to checking successful file to make up;
Course resources verification unit 27 is used for according to the check value of said course resources the course resources after making up being carried out verification, preserves the successful course resources of check.
Further, the course resources client that provides of present embodiment can also comprise:
Crosspoint 28 is used for exchanging according to the course piecemeal of preset exchange algorithm to the identical size of file of the course resources after making up.
The course resources client that present embodiment provides can be used in course resources method for down loading the 3rd embodiment of aforementioned correspondence, and details no longer repeat at this referring to the description of method embodiment.
In the course resources client that present embodiment provides, the resource downloading message that client is sent according to server is to server and/or other client downloads course resources.Downloading process is based on that the course piecemeal realizes, client has just developed into a data node after downloading to part course piecemeal, and it has local cache; Be used for depositing a certain amount of data, only when learning for the first time, need to download, follow-up study need not to download; Take out and directly go out local cache; Except offer oneself use, it can also send to the client that other needs these data to these data, thereby realizes the distributed effect of courseware data; Reduce server stress, reduce operation cost.
In addition; Client makes course resources whether sequenced on physical store through the identical piece of size is exchanged, and has played privacy functions through the local course of obscuring like this; Thereby can prevent effectively that the disabled user from copying use, avoids course resources supplier's loss.
The embodiment of the invention can also obtain course off-line bag according to lesson file.Course off-line bag combines several courses, and the use AES is encrypted, and convenient copy and transfer are gathered with the course that single file mode exists.
The embodiment of the invention also provides a kind of course resources download system at last, and this system comprises course resources server and course resources client.Wherein, the course resources server that the structure of course resources server provides referring to the foregoing description four, the course resources client no longer is repeated in this description at this referring to the course resources client that the foregoing description five provides.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be in being stored in a computer read/write memory medium, and described storage medium is ROM/RAM, disk, CD etc. for example.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.

Claims (10)

1. a course resources method for down loading is characterized in that, comprising:
The course resources that reception is uploaded is carried out piecemeal to each file of said course resources, obtains the course piecemeal;
To calculation check value and the skew respectively of each course piecemeal;
The check value of all course piecemeals of said each file is merged, calculate the check value and the skew of said each file;
The check value of said each file is merged, calculate the check value and the skew of each file of course resources;
The check value of the All Files of course resources folder is merged, calculate the check value of said course resources;
Receive the download request of client to said course resources; Send resource downloading information to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
2. course resources method for down loading according to claim 1 is characterized in that, said server also comprises after receiving the course resources download request of client:
Send the course piecemeal of said course resources to said client.
3. course resources method for down loading according to claim 1 and 2 is characterized in that, said each file to course resources carries out piecemeal and obtains the course piecemeal, comprising:
Each file of course resources is carried out piecemeal obtain bulk, said bulk is carried out piecemeal obtain fritter;
Said to each course piecemeal respectively calculation check value and skew comprise:
To each bulk and fritter difference calculation check value and offset address.
4. a course resources method for down loading is characterized in that, comprising:
Send the course resources download request to server;
Receive the resource downloading information that said server sends, comprise check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in the said resource downloading information;
Course piecemeal to said server and/or the said course resources of other client downloads;
According to the check value of said course piecemeal the course piecemeal of downloading is carried out verification, and according to the skew of said course piecemeal the course piecemeal of verification succeeds is made up and to obtain file;
Carry out verification according to the check value of the file file after to combination, and according to the skew of said file the file of verification succeeds is made up and to obtain file;
Check value according to said file carries out verification to the file after making up, and obtains course resources according to the skew of said file to checking successful file to make up;
Check value according to said course resources carries out verification to the course resources after making up, and preserves the successful course resources of check.
5. course resources method for down loading according to claim 4 is characterized in that, also comprises:
Exchange according to the course piecemeal of preset exchange algorithm identical size in the file of the course resources after making up.
6. according to claim 4 or 5 described course resources method for down loading, it is characterized in that,
Said course piecemeal comprises bulk and fritter, comprises the check value and the offset address of check value, offset address and the fritter of bulk in the said resource downloading information;
Said skew according to the course piecemeal is made up the course piecemeal of verification succeeds and is obtained file and comprise:
According to the offset address of fritter the fritter of verification succeeds is made up and to obtain bulk;
According to the offset address of bulk the bulk of verification succeeds is made up and to obtain file.
7. a course resources server is characterized in that, comprising:
Last transmit/receive unit is used to receive the course resources of uploading, and each file of said course resources is carried out piecemeal, obtains the course piecemeal;
The piecemeal processing unit is used for calculation check value and the skew respectively of each course piecemeal;
The file process unit is used for the check value of all course piecemeals of said each file is merged, and calculates the check value and the skew of said each file;
The file processing unit is used for the check value of the file of each file of said course resources is merged, and calculates the check value and the skew of said each file;
The course resources processing unit is used for the check value of the All Files of course resources folder is merged, and calculates the check value of said course resources;
The download request processing unit; Be used to receive the download request of client to said course resources; Send resource downloading information to said client, comprise check value and the skew of said course piecemeal, check value and skew, the check value of file and the check value of skew and said course resources of file in the said resource downloading information.
8. course resources server according to claim 7 is characterized in that, said download request processing unit also is used for sending to said client the course piecemeal of said course resources.
9. a course resources client is characterized in that, comprising:
The download request transmitting element is used for sending the course resources download request to server;
The download message receiving element; Be used to receive the resource downloading information that said server sends, comprise check value and the skew of course piecemeal, check value and skew, the check value of file and the check value of skew and course resources of file in the said resource downloading information;
Course piecemeal download unit is used for the course piecemeal to said server and/or the said course resources of other client downloads;
Course piecemeal assembled unit, the user carries out verification according to the check value of said course piecemeal to the course piecemeal of downloading, and according to the skew of said course piecemeal the course piecemeal of verification succeeds is made up and to obtain file;
The combination of files unit is used for carrying out verification according to the check value of the file file after to combination, and according to the skew of said file the file of verification succeeds is made up and to obtain file;
The file assembled unit is used for according to the check value of said file the file after making up being carried out verification, and obtains course resources according to the skew of said file to checking successful file to make up;
The course resources verification unit is used for according to the check value of said course resources the course resources after making up being carried out verification, preserves the successful course resources of check.
10. client according to claim 9 is characterized in that, also comprises:
Crosspoint is used for exchanging according to the course piecemeal of preset exchange algorithm to the identical size of file of the course resources after making up.
CN2011104483197A 2011-12-28 2011-12-28 Course resource downloading method, course resource clients, server and system Pending CN102546783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104483197A CN102546783A (en) 2011-12-28 2011-12-28 Course resource downloading method, course resource clients, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104483197A CN102546783A (en) 2011-12-28 2011-12-28 Course resource downloading method, course resource clients, server and system

Publications (1)

Publication Number Publication Date
CN102546783A true CN102546783A (en) 2012-07-04

Family

ID=46352729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104483197A Pending CN102546783A (en) 2011-12-28 2011-12-28 Course resource downloading method, course resource clients, server and system

Country Status (1)

Country Link
CN (1) CN102546783A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172174A (en) * 2017-06-01 2017-09-15 重庆高略启达智慧城市信息技术有限公司 The quick upload of file is realized between clients and servers
CN108243203A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of data sharing method in cloud system
CN108924581A (en) * 2018-07-06 2018-11-30 合肥明高软件技术有限公司 A kind of on-line study system based on distributed stream processing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079709A (en) * 2006-06-15 2007-11-28 腾讯科技(深圳)有限公司 Single-node-to-multi-node concurrent download system and method
CN101542559A (en) * 2006-11-24 2009-09-23 拜尔创新有限责任公司 Coding method, decoding method, codec and data storage medium for holographic storage
CN101616181A (en) * 2009-07-27 2009-12-30 腾讯科技(深圳)有限公司 A kind of method, system and equipment of uploading with the downloaded subtitle file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079709A (en) * 2006-06-15 2007-11-28 腾讯科技(深圳)有限公司 Single-node-to-multi-node concurrent download system and method
CN101542559A (en) * 2006-11-24 2009-09-23 拜尔创新有限责任公司 Coding method, decoding method, codec and data storage medium for holographic storage
CN101616181A (en) * 2009-07-27 2009-12-30 腾讯科技(深圳)有限公司 A kind of method, system and equipment of uploading with the downloaded subtitle file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243203A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of data sharing method in cloud system
CN107172174A (en) * 2017-06-01 2017-09-15 重庆高略启达智慧城市信息技术有限公司 The quick upload of file is realized between clients and servers
CN108924581A (en) * 2018-07-06 2018-11-30 合肥明高软件技术有限公司 A kind of on-line study system based on distributed stream processing

Similar Documents

Publication Publication Date Title
CN104902009B (en) A kind of distributed memory system based on erasable coding and chain type backup
CN113572618B (en) Fabric and IPFS combined decentralized storage system and data storage method thereof
CN101894081B (en) The serialization of media transfer communications
CN105049504B (en) A kind of big data transfer transmission is synchronous and storage method
CN106462605A (en) Distributed secure data storage and transmission of streaming media content
CN107294729A (en) Communication means and device in block chain between different nodes
CN102662992A (en) Method and device for storing and accessing massive small files
US20110246763A1 (en) Parallel method, machine, and computer program product for data transmission and reception over a network
CN105359105A (en) Efficient programmatic memory access over network file access protocols
CN103916483A (en) Self-adaptation data storage and reconstruction method for coding redundancy storage system
CN103561033B (en) User remotely accesses the device and method of HDFS cluster
CN103605630A (en) Virtual server system and data reading-writing method thereof
CN104184789A (en) File downloading method and device
CN105408871A (en) Method and apparatus for providing redundant data access
CN102546783A (en) Course resource downloading method, course resource clients, server and system
CN102255866A (en) Method and device for downloading data
CN102542858B (en) Course playing method and system
CN103281362A (en) File transfer protocol
CN103281382A (en) Method and node for file transfer based on p2p
CN105391570A (en) System and method for a reliable content exchange of a CCN pipeline stream
CN104113562A (en) Distributed data storage and recovery system based on network coding and method thereof
CN108389449A (en) Interactive teaching platform based on high in the clouds
CN103890750A (en) High performance virtual converged enhanced ethernet with persistent state flow control
CN101645805B (en) P2P streaming media system simulation platform based on NS2
JP6284395B2 (en) Data storage control device, data storage control method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120704