CN101510898A - Method for uploading and downloading data, network node and communication system - Google Patents

Method for uploading and downloading data, network node and communication system Download PDF

Info

Publication number
CN101510898A
CN101510898A CNA2009101291408A CN200910129140A CN101510898A CN 101510898 A CN101510898 A CN 101510898A CN A2009101291408 A CNA2009101291408 A CN A2009101291408A CN 200910129140 A CN200910129140 A CN 200910129140A CN 101510898 A CN101510898 A CN 101510898A
Authority
CN
China
Prior art keywords
descriptor
catalogue
data
file
data flow
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
CNA2009101291408A
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 Zhuozhuang Network Technology Coltd
Original Assignee
Shenzhen Zhuozhuang Network Technology Coltd
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 Zhuozhuang Network Technology Coltd filed Critical Shenzhen Zhuozhuang Network Technology Coltd
Priority to CNA2009101291408A priority Critical patent/CN101510898A/en
Publication of CN101510898A publication Critical patent/CN101510898A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method, a network node and a communication system for realizing data downloading and uploading. In the technical scheme of the invention, through generating description of each file and/or catalog under a request catalog and combining description and file content of the file under the request catalog and/or description of the catalog into data stream, as well as data stream combined by direct transmission of two parties of communication, a receiver can directly retrieve the request catalog based on description of the data stream; the process of compressing and decompressing the request catalog can be left out on the two parties of communication, thus can effectively lower complexity of calculation, shorten waiting responsive time and promote user experience.

Description

Implementation method, network node and communication system that a kind of data are downloaded and uploaded
Technical field
The present invention relates to networking technology area, be specifically related to implementation method, network node and communication system that a kind of data are downloaded and uploaded.
Background technology
Under current network environment, carry out transfer of data mutually through regular meeting between each node on the network, to reach the purpose of data sharing.For example, user's (client) uploads text, picture file, audio-video document and program file or the like through regular meeting from the server download or to server.
At present, carry out transfer of data between node and have following situation: promptly (also can be described as: catalogue) b1 includes a plurality of files and/or catalogue to the file on node A (for example, client) the request download Node B (for example, server) among the file b1; After Node B receives the downloading request message of node A, earlier file b1 is compressed into a compressed file, again this compressed file is sent to node A; After node A received this compressed file, corresponding this compressed file of decompression obtained the content that file b1 comprises.
In realizing process of the present invention, the inventor finds that prior art is in the process that realizes the file transmission, and being requested node needs first compression request node request downloaded files folder, sends again; Requesting node is after download is finished, and also needing to decompress to obtain the content that this document clip pack contains.For the more situation of content that file comprises, communicating pair carries out the compression and decompression meeting to it and consumes the long time, and then causes the long wait-for-response time, may have influence on user experience.
Summary of the invention
Implementation method, network node and communication system that the embodiment of the invention provides a kind of data to download and upload can be omitted the process that communicating pair carries out compression and decompression to the request catalogue, shorten the wait-for-response time relatively.
For achieving the above object, embodiment of the invention specific implementation by the following technical programs:
The implementation method that the embodiment of the invention provides a kind of data to download comprises: receive the downloading request message that requesting node sends, described downloading request message carries the sign of the target directory of described request node request download; Travel through described target directory, generate the descriptor of each file under the described target directory and/or catalogue correspondence, described descriptor comprises the relative path information of its respective file or catalogue at least; According to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is combined into a data flow; Send described data flow to the described request node.
Preferably, the described transmission to the described request node also comprises before the described data flow: the data volume size of obtaining described data flow; Send the download request response message to the described request node, described download request response message carries the data volume size information of described data flow.
Preferably, described according to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is combined into a data flow, comprising: according to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue connects successively, is combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
Preferably, described description information of files also comprises the data volume size information of this document content.
In addition, the implementation method that the embodiment of the invention also provides a kind of data to download comprises: send downloading request message to destination node, the sign of the target directory that the request of carrying of described downloading request message is downloaded; The data flow that the receiving target node sends; According to the rule of setting, resolve described data flow, obtain each description information of files and file content under the described target directory, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least; According to each description information of files and file content under the described target directory, and/or the descriptor of catalogue, recover described target directory.
In addition, the embodiment of the invention also provides a kind of implementation method of data upload, comprising: send upload request message to destination node, the sign of the target directory that the request of carrying of described upload request message uploads to; The ergodic source catalogue generates the descriptor of each file under the described source directory and/or catalogue correspondence, and described descriptor comprises the relative path information of its respective file or catalogue at least; According to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is combined into a data flow; Send described data flow to described destination node.
Preferably, the described transmission to described destination node also comprises before the described data flow: obtain the data volume size of described data flow, described upload request message is also carried the data volume size information of described data flow.
Preferably, described according to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is combined into a data flow, comprise: according to the rule of combination of setting, with under the described source directory according to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
In addition, the embodiment of the invention also provides a kind of implementation method of data upload, comprising: receive the upload request message that requesting node sends, the sign of the target directory that the request of carrying of described upload request message uploads to; Receive the data flow that the described request node sends; According to the rule of setting, resolve described data flow, each description information of files and file content under the source directory that the request of acquisition is uploaded, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least; According to each description information of files and file content under the described source directory, and/or the descriptor of catalogue, described source directory is returned under the described target directory.
In addition, the embodiment of the invention also provides a kind of network node, comprising: receiver module, be used to receive the downloading request message that requesting node sends, and described downloading request message carries the sign of the target directory of described request node request download; The descriptor generation module is used to travel through described target directory, generates the descriptor of each file under the described target directory and/or catalogue correspondence, and described descriptor comprises the relative path information of its respective file or catalogue at least; The data combination module is used for according to the rule of combination of setting, and with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is combined into a data flow; First sending module is used for sending described data flow to the described request node.
Preferably, described network node also comprises: the data volume acquisition module is used to obtain the data volume size of described data flow; Second sending module is used for sending the download request response message to the described request node, and described download request response message carries the data volume size information of the described data flow that described data volume acquisition module obtains.
Preferably, described data combination module specifically is used for, according to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue connects successively, is combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
In addition, the embodiment of the invention also provides a kind of network node, comprising: sending module is used for sending downloading request message to destination node the sign of the target directory that the request of carrying of described downloading request message is downloaded; Receiver module is used for the data flow that the receiving target node sends; Data resolution module, be used for according to the rule of setting, resolve described receiver module and receive data flow, obtain each description information of files and file content under the described target directory, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least; Catalogue is recovered module, and each description information of files and file content under the described target directory that parses according to described data resolution module, and/or the descriptor of catalogue recover described target directory.
In addition, the embodiment of the invention also provides a kind of network node, comprising: first sending module is used for sending upload request message to destination node the sign of the target directory that the request of carrying of described upload request message uploads to; The descriptor generation module is used for the ergodic source catalogue, generates the descriptor of each file under the described source directory and/or catalogue correspondence, and described descriptor comprises the relative path information of its respective file or catalogue at least; The data combination module is used for according to the rule of combination of setting, and with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is combined into a data flow; Second sending module is used for sending the data flow that described data combination module combinations goes out to described destination node.
Preferably, described network node also comprises: the data volume acquisition module, be used to obtain the data volume size of described data flow, and the upload request message that described first sending module sends is also carried the data volume size information of described data flow.
Preferably, described data combination module specifically is used for, according to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue connects successively, is combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
In addition, the embodiment of the invention also provides a kind of network node, comprising: first receiver module is used to receive the upload request message that requesting node sends, the sign of the target directory that the request of carrying of described upload request message uploads to; Second receiver module is used to receive the data flow that the described request node sends; Data resolution module, be used for according to the rule of setting, resolve the data flow that second receiver module receives, each description information of files and file content under the source directory that the request of acquisition is uploaded, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least; Catalogue is recovered module, is used for according to each description information of files and file content under the described source directory, and/or the descriptor of catalogue, described source directory is returned under the described target directory.
In addition, the embodiment of the invention also provides a kind of communication system, comprising: as the described network node of above-mentioned embodiment.
By technique scheme as can be seen, descriptor by each file and/or catalogue under the generation request catalogue, and will ask description information of files and file content under the catalogue, and/or the data flow that is combined into of the descriptor of catalogue, communicating pair directly transmits the data flow that is combined into, the recipient can directly recover the request catalogue according to the descriptor in the data flow, communicating pair can omit the process of compression and decompression request catalogue, can effectively reduce the complexity of computing, shorten the time of wait-for-response, promote user experience.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the implementation method flow chart that a kind of data that the embodiment of the invention one provides are downloaded;
Fig. 2 is the implementation method flow chart that a kind of data that the embodiment of the invention two provides are downloaded;
Fig. 3 is the implementation method flow chart of a kind of data upload of providing of the embodiment of the invention three;
Fig. 4 is a kind of network node schematic diagram that the embodiment of the invention four provides;
Fig. 5 is a kind of network node schematic diagram that the embodiment of the invention five provides;
Fig. 6 is a kind of network node schematic diagram that the embodiment of the invention six provides;
Fig. 7 is a kind of network node schematic diagram that the embodiment of the invention seven provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment one,
Referring to Fig. 1, Fig. 1 is the implementation method flow chart that a kind of data that the embodiment of the invention one provides are downloaded, and the implementation method that these data are downloaded specifically can comprise:
The downloading request message that step 110, reception requesting node send, this downloading request message carries the sign of the target directory of requesting node request download;
Specifically, based on different communication protocol, the data format of downloading request message can be different, the embodiment of the invention carry out data upload or download based on communication protocol can be, HTML (Hypertext Markup Language) (HTTP, Hypertext Transfer Protocol), file transfer protocol (FTP) (FTP, File TransferProtocol), point-to-point protocol (PPP, and be not limited thereto Peer-Peer Protocol) etc..
For instance, (or claim: the sign request catalogue) can be above-mentioned target directory: the title of target directory, the relative path information of target directory in this end node, or this end node can be corresponding mutually with itself and target directory, and other identifies arbitrarily.
Step 120, travel through above-mentioned target directory, generate the descriptor of each file under the target directory and/or catalogue correspondence, foregoing description information comprises the relative path information of its respective file or catalogue at least;
Specifically, foregoing description information can comprise, but be not limited to: its respective file or catalogue be with respect to the relative path information of target directory, the data volume size information of the content of its respective file, with and the temporal information of respective file Last modification or the like.Requesting node utilizes the descriptor of file or catalogue, can recover its respective file or catalogue under target directory.
Step 130, according to the rule of combination of setting, with each description information of files and file content under the above-mentioned target directory, and/or the descriptor of catalogue is combined into a data flow;
Specifically, communicating pair can appointment data the rule of combination, and store the rule of the combination of this agreement respectively.For example, the data combination rule of communicating pair agreement can be, with each description information of files and file content under the target directory, and/or the descriptor of catalogue connects in a certain order, is combined into a data flow.
Step 140, send above-mentioned data flow to above-mentioned requesting node.
Specifically, data splitting stream on one side to requesting node transmission data flow, perhaps also can be finished the data flow combination earlier, and then send this data flow to requesting node on one side.
By technique scheme as can be seen, descriptor by each file and/or catalogue under the generation request catalogue, and will ask description information of files and file content under the catalogue, and/or the data flow that is combined into of the descriptor of catalogue, communicating pair directly transmits the data flow that is combined into, the recipient can directly recover the request catalogue according to the descriptor in the data flow, communicating pair can omit the process of compression and decompression request catalogue, can effectively reduce the complexity of computing, shorten the time of wait-for-response, promote user experience.
Embodiment two,
The scheme of present embodiment is downloaded corresponding to data.Referring to Fig. 2, Fig. 2 is the implementation method flow chart that a kind of data that the embodiment of the invention two provides are downloaded, and the implementation method that these data are downloaded specifically can comprise:
Step 201, first node send downloading request message to Section Point;
Wherein, the data format of downloading request message is corresponding to the communication protocol of carrying out transfer of data between first node and the Section Point.The information that above-mentioned downloading request message is carried comprises, but be not limited to: the sign of the target directory that the first node request is downloaded, the data format of this sign can be by first node and Section Point rule agreement and corresponding record, and Section Point can be corresponding mutually with identifying the target directory of downloading with the first node request.
The descriptor of each file and/or catalogue correspondence under step 202, the Section Point generation target directory;
Specifically, Section Point can travel through above-mentioned target directory, generates the descriptor of each file under this target directory and/or catalogue correspondence.
Wherein, description information of files can comprise, but be not limited to: this document is with respect to the length information of the relative path information of the relative path information of target directory, this document, the data volume size information of this document content, the temporal information that this document is modified for the last time, and the end of the descriptor of this document sign or the like.
The descriptor of catalogue can include, but are not limited to: this catalogue is with respect to end sign of the descriptor of the length information of the relative path information of the relative path information of target directory, this catalogue and this catalogue or the like.
For instance, comprise under the hypothetical target directory A: file B and subdirectory C.The data format of the descriptor of file B can be as follows, but be not limited to this:
Relative path length Relative path Modification time Amount of content data Finish sign
4 /A/B 1229904053 150000 /r/n/r/n
As implied above, the descriptor of file B can comprise 5 fields, and wherein, " relative path length " field is used for the length information of log file B with respect to the relative path of target directory A, the numerical value of its record can be unit with the byte, and the size of this field can be set to 2 bytes; " relative path " field is used for the relative path information of log file B with respect to target directory A, the size of this field can be the physical length of the relative path information of its record, be generally equal to the numerical value (being 4 bytes herein) of " relative path length " field record; " modification time " field is used for the time of log file B Last modification, and the time of its record can be world concordant time (UTC, Universal Time Coordinated), and unit is second, and the size of this field can be set to 8 bytes; " amount of content data " field is used for the data volume size information (can be unit with the byte, perhaps be unit with the piece, and wherein, every blocks of data comprises a plurality of bytes) of log file B content, and the size of this field can be set to 8 bytes; Field is used for the end sign of log file B descriptor " to finish sign ", indicates the end of file B descriptor, and the size of this field can be set to 4 bytes, finishes sign and can be used for integrality and the correctness that verification msg receives.
The data format of the descriptor of catalogue C can be as follows, but be not limited to this:
Relative path length Relative path Finish sign
5 /A/C/ /r/n/r/n
As implied above, the descriptor of catalogue C can comprise 3 fields, wherein, " relative path length " field is used to write down the length information of catalogue C with respect to the relative path of target directory A, the unit of the numerical value of its record can be unit with the byte, and the size of this field can be set to 2 bytes; " relative path " field is used to write down the relative path information of catalogue C with respect to target directory A, the size of this field can be the physical length of the relative path information of its record, the numerical value that is generally equal to " relative path length " field record (herein, be 5 bytes), the relative path of catalogue can finish with "/", with convenient it is distinguished mutually with description information of files; Field is used to write down the end sign of catalogue C descriptor " to finish sign ", indicates the end of catalogue C descriptor, and the size of this field can be set to 4 bytes.
Certainly, the data format of the descriptor of catalogue C can be as follows, but be not limited to this:
Relative path length Relative path Modification time Amount of content data Finish sign
5 /A/C/ 0 0 /r/n/r/n
As implied above, the structure of the descriptor of catalogue also can be identical with the structure of description information of files, and its " modification time " field and " amount of content data " can protocol failure information.
Be understandable that the end sign of the descriptor of file and catalogue can be identical, can certainly be different.The data format of the above-mentioned file and the descriptor of catalogue is only for illustrating, the size of each field of descriptor, the position can according to circumstances be adjusted flexibly, and can also comprise a plurality of fields that are used to write down other multiple information in catalogue and/or the description information of files.
Step 203, Section Point are according to the rule of combination of setting, and with each description information of files and file content under the target directory, and/or the descriptor of catalogue is combined into a data flow;
Specifically, can be according to the rule of combination of setting, with each description information of files and file content under the target directory, and/or the descriptor of catalogue connects successively, is combined into a data flow.
Wherein, between the descriptor, and/or separate by separating sign between descriptor and the file content, the end that this separations sign can be a descriptor identifies, or Section Point adds when carrying out data combination, is used to carry out other sign of marker space.
For instance, comprise under the hypothetical target catalogue F: subdirectory X, file Y, subdirectory Z, then Section Point is with the descriptor of the subdirectory X under the target directory F, file Y, subdirectory Z, and the content of file Y is connected, the form of the data flow that is combined into can be as follows, but be not limited to this:
The descriptor of subdirectory X The descriptor of file Y The content of file Y The descriptor of subdirectory Z
" amount of content data " field record in the file description information data volume size of file content, the recipient can fill file data according to the data volume size of this field record, carries out file and recovers.
Step 204, Section Point send the download request response message to first node;
Wherein, the above-mentioned download request response message information of carrying includes, but are not limited to: the data volume size information of the data flow that combinations thereof becomes, the data volume size of data flow can be to be unit with the byte, or be unit with the piece, every comprises a plurality of bytes, and is not limited to this.
Specifically, Section Point can be with each description information of files under the target directory and the data volume of file content, and/or the data volume of the descriptor of catalogue adds up, and obtains the data volume size of data flow; Perhaps, obtain the data volume size of data flow directly by the data flow of statistical combination one-tenth.
First node is behind the download request response message that receives the Section Point transmission, can resolve this download request response message, the data volume size of the data flow that the acquisition Section Point is ready for sending, and then can judge that whether the data flow of Section Point transmission is by whole, correct reception according to this data volume size.
Step 205, Section Point send this data flow to first node;
Specifically, Section Point is data splitting stream on one side, to first node send data flow on one side, also can be after the data flow combination is finished, send the data flow that combination is finished to Section Point again.
Step 206, first node are resolved this data flow;
Specifically, corresponding with the mode of Section Point data combination, first node can be resolved this data flow according to the rule of setting, and then obtains each description information of files and file content under the target directory, and/or the descriptor of catalogue.
Step 207, first node recover target directory.
Description information of files has comprised the relative path information of file, the data volume size of file content, time of file Last modification or the like; The descriptor of catalogue has comprised relative path information of catalogue or the like, and therefore, first node can be according to each description information of files and file content under the target directory, and/or the descriptor of catalogue, recovers target directory.
Further, first node is receiving and is resolving in the process of data flow, if find the data volume size and not of uniform size the causing of data volume that the download request response message carries of data flow, show that data flow is wrong, can ask Section Point to resend above-mentioned data flow.
Below by concrete application examples, the technical scheme of present embodiment is further described in detail.
For example, be client with the first node, Section Point is a server, carries out transfer of data based on http protocol between the client and server.
Target directory on the client-requested Download Server is catalogue D, and user end to server sends downloading request message, and this downloading request message is carried HTTP header field information.Suppose that the relative path of catalogue D on server is: comprise under the Tool/game/D, catalogue D: file E, subdirectory F, file G, wherein, file G is under subdirectory F.
The data format of the HTTP header field of above-mentioned downloading request message can be as follows, but be not limited to this:
Key Dest_addr Version Descriptor Content_Length End_flag
GET Tool/game/D/ HTTP/1.1 0 \r\n\r\n
Wherein, " Key " field is used to write down the identidication key of uploading or downloading, herein for downloading the keyword of identification; " Dest_addr " field is used to write down the relative path of the target directory that client-requested downloads, or the target directory sign, and what download with "/" ending expression request is catalogue; " Version " field is used to write down the version information of HTTP; " Descriptor " field is used for writing down other information of HTTP header field; " Content_Length " field is used for the recording messages transmit leg after having sent this message transmission, will send the data volume size information of data, the record value of this field of downloading request message is 0, and " End_flag " field is used to write down the end sign of HTTP header field.
Server is after receiving above-mentioned downloading request message, by resolving this downloading request message, know that the target directory that client-requested is downloaded is catalogue D, file E, subdirectory F, file G under the server traversal target directory D generate its corresponding descriptor.
Wherein, the descriptor of file E can be as follows:
Relative path length Relative path Modification time Amount of content data Finish sign
4 /D/E 1229904095 2500 /r/n/r/n
The descriptor of subdirectory F can be as follows:
Relative path length Relative path Modification time Amount of content data Finish sign
5 /D/F/ 0 0 /r/n/r/n
The relative path of catalogue can finish with "/", conveniently distinguishes mutually with description information of files.
The descriptor of file G can be as follows:
Relative path length Relative path Modification time Amount of content data Finish sign
6 /D/F/G 1229904053 1000 /r/n/r/n
Server is according to the rule of setting, and with the descriptor of file E, subdirectory F, file G, and the content of file E and file F connects successively, and the data flow that is combined into can be as follows:
The descriptor of file E The content of file E The descriptor of subdirectory F The descriptor of file G The content of file G
The descriptor data volume of server accumulation file E, subdirectory F, file G, and the data volume of file E and file F content, obtain the data volume size of its data flow that is ready for sending: 26+2500+27+28+1000=3581 herein, is a unit with the byte.
Server sends the download request response message to client, and this download request response message also carries HTTP header field information.
The data format of the HTTP header field of download request response message can be as follows, but be not limited to this:
HTTP/1.1200OK r the n note: non-200OK represents that this request is not allowed to;
Server:XXXX r the n note: " XXXX " is the title of server;
Content-Type:text r the n note: file type;
Content-Length:3581 r n r the n note: the data download amount
In the above-mentioned download request response message, " Content_Length " field record message sender in the HTTP header field is after having sent this message transmission, the data volume size information of the data flow that will send, after client receives the download request response message, can be according to the data volume size of " Content_Length " field record, whether decision data flows by whole, correct reception.
Server sends the data flow that is combined into to client, after client is received data flow, whether the data volume size of judging earlier the data flow that receives is consistent with the data volume size of carrying in the download request response message, if consistent, then resolves the data flow that receives; If inconsistent, it is wrong to show that data flow receives, and can resend by the request server end.
Client is resolved the data flow that receives, and obtains the descriptor of file E, subdirectory F, file G, and the content of file E and file F, and according to the descriptor of file E, subdirectory F, file G, and the content of file E and file F, recover target directory D, with and content.
By technique scheme as can be seen, descriptor by each file and/or catalogue under the generation target directory, and with description information of files under the target directory and file content, and/or the data flow that is combined into of the descriptor of catalogue, communicating pair directly transmits the data flow that is combined into, the recipient can directly recover target directory according to the descriptor in the data flow, communicating pair can omit the process of compression and decompression target directory, can effectively reduce the complexity of computing, shorten the wait-for-response time, promote user experience.
Embodiment three,
The scheme of present embodiment is corresponding to data upload.Referring to Fig. 3, Fig. 3 is the implementation method flow chart of a kind of data upload of providing of the embodiment of the invention three, and the implementation method of this data upload specifically can comprise:
The descriptor of each file and/or catalogue correspondence under step 301, the first node generation source directory;
Above-mentioned source directory can be thought the catalogue that the first node preparation is uploaded, and can comprise a plurality of files and/or catalogue under the source directory.
Specifically, first node can travel through above-mentioned source directory, generates the descriptor of each file under this source directory and/or catalogue correspondence.
Wherein, similarly, description information of files can comprise, but be not limited to: this document is with respect to the length information of the relative path information of the relative path information of source directory, this document, the data volume size information of this document content, the temporal information that this document is modified for the last time, and the end of the descriptor of this document sign or the like.
The descriptor of catalogue can include, but are not limited to: this catalogue is with respect to end sign of the descriptor of the length information of the relative path information of the relative path information of source directory, this catalogue and this catalogue or the like.
For instance, suppose to comprise under the source directory A: file B and subdirectory C.The data format of the descriptor of file B can be as follows, but be not limited to this:
Relative path length Relative path Modification time Amount of content data Finish sign
4 /A/B 1229904053 150000 /r/n/r/n
As implied above, the descriptor of file B can comprise 5 fields, and wherein, " relative path length " field is used for the length information of log file B with respect to the relative path of source directory A, the numerical value of its record can be unit with the byte, and the size of this field can be set to 2 bytes; " relative path " field is used for the relative path information of log file B with respect to source directory A, the size of this field can be the physical length of the relative path information of its record, be generally equal to the numerical value (being 4 bytes herein) of " relative path length " field record; " modification time " field is used for the time of log file B Last modification, and the time of its record can be world concordant time, and unit is second, and the size of this field can be set to 8 bytes; " amount of content data " field is used for the data volume size information (can be unit with the byte, perhaps be unit with the piece, and wherein, every blocks of data comprises a plurality of bytes) of log file B content, and the size of this field can be set to 8 bytes; Field is used for the end sign of log file B descriptor " to finish sign ", indicates the end of file B descriptor, and the size of this field can be set to 4 bytes, finishes sign and can be used for integrality and the correctness that verification msg receives.
The data format of the descriptor of catalogue C can be as follows, but be not limited to this:
Relative path length Relative path Finish sign
5 /A/C/ /r/n/r/n
As implied above, the descriptor of catalogue C can comprise 3 fields, and wherein, " relative path length " field is used to write down the length information of catalogue C with respect to the relative path of source directory A, the unit of the numerical value of its record can be unit with the byte, and the size of this field can be set to 2 bytes; " relative path " field is used to write down the relative path information of catalogue C with respect to source directory A, the size of this field can be the physical length of the relative path information of its record, the numerical value that is generally equal to " relative path length " field record (herein, be 5 bytes), the relative path of catalogue can finish with "/", with convenient it is distinguished mutually with description information of files; Field is used to write down the end sign of catalogue C descriptor " to finish sign ", indicates the end of catalogue C descriptor, and the size of this field can be set to 4 bytes.
Certainly, the data format of the descriptor of catalogue C can be as follows, but be not limited to this:
Relative path length Relative path Modification time Amount of content data Finish sign
5 /A/C/ 0 0 /r/n/r/n
As implied above, the descriptor of catalogue also can be identical with the structure of description information of files, and its " modification time " field and " amount of content data " can protocol failure information.
Be understandable that the end sign of the descriptor of file and catalogue can be identical, can certainly be different.The data format of the above-mentioned file and the descriptor of catalogue is only for illustrating, the size of each field of descriptor, the position can according to circumstances be adjusted flexibly, and can also comprise a plurality of fields that are used to write down other multiple information in catalogue and/or the description information of files.
Step 302, first node send upload request message to Section Point;
Wherein, the data format of upload request message is corresponding to the communication protocol of carrying out transfer of data between first node and the Section Point.The information that above-mentioned upload request message is carried comprises, but be not limited to: the first node request uploads to source directory the correspondence sign of the target directory of Section Point, the data format of this sign can be by first node and Section Point rule agreement and corresponding record, and Section Point can be corresponding mutually with the target directory that this sign and first node request upload to.
Further, first node can also be with each description information of files under the source directory and the data volume of file content, and/or the data volume of the descriptor of catalogue adds up, and obtains to prepare to upload the data volume size of data.Above-mentioned upload request message can also be carried, and first node prepares to upload the data volume size information of data.
Step 303, first node are according to the rule of combination of setting, and with each description information of files and file content under the source directory, and/or the descriptor of catalogue is combined into a data flow;
For instance, first node can be according to the rule of combination of setting, and with each description information of files and file content under the source directory, and/or the descriptor of catalogue connects successively, is combined into a data flow.
Wherein, between the descriptor, and/or separate by separating sign between descriptor and the file content, the end that this separations sign can be a descriptor identifies, or first node adds when carrying out data combination, is used to carry out other sign of marker space.
For instance, suppose to comprise under the source directory F: subdirectory X, file Y, subdirectory Z, then first node is the descriptor of the subdirectory X under the source directory F, file Y, subdirectory Z, and the content of file Y is connected, the form of the data flow that is combined into can be as follows, but be not limited to this:
The descriptor of subdirectory X The descriptor of file Y The content of file Y The descriptor of subdirectory Z
" amount of content data " field record in the file description information data volume size of file content, the recipient can fill file according to the data volume size of this field record, carries out file and recovers.
Step 304, first node send this data flow to Section Point;
Specifically, first node is data splitting stream on one side, to Section Point send data flow on one side, also can be after the data flow combination is finished, send the data flow that combination is finished to Section Point again.
Step 305, Section Point are resolved this data flow;
Specifically, corresponding with the mode of first node data combination, Section Point can be resolved this data flow according to the rule of setting, and then obtains each description information of files and file content under the source directory, and/or the descriptor of catalogue.
Step 306, Section Point return to source directory under the target directory.
Description information of files has comprised the relative path information of file, the data volume size of file content, time of file Last modification or the like; The descriptor of catalogue has comprised relative path information of catalogue or the like, and therefore, Section Point can be according to each description information of files and file content under the source directory, and/or the descriptor of catalogue, and source directory is returned under the target directory.
Step 307, Section Point send the upload request response message to first node;
Section Point is receiving and is resolving in the process of data flow, if not of uniform size the causing of data volume of carrying in the data volume size of discovery data flow and the upload request message, show that data flow is wrong, can send the upload request response message to first node, this upload request response message carries data flow and receives wrong indication information, and first node can resend above-mentioned data flow; If Section Point successfully recovers source directory, can send the upload request response message to first node, this upload request response message carries the indication information that success is uploaded.
Below by concrete application examples, the technical scheme of present embodiment is further described in detail.
For example, be client with the first node, Section Point is a server, carries out transfer of data based on http protocol between the client and server.
Under the target directory A on client-requested uploads onto the server source directory D, suppose that the relative path of target directory A on server is: Tool/game/A comprises under the source directory D: file E, subdirectory F, file G, wherein, file G is under subdirectory F.
File E, subdirectory F, file G under the client ergodic source catalogue D generate its corresponding descriptor.
Wherein, the descriptor of file E can be as follows:
Relative path length Relative path Modification time Amount of content data Finish sign
4 /D/E 1229904037 2500 /r/n/r/n
The descriptor of subdirectory F can be as follows:
Relative path length Relative path Modification time Amount of content data Finish sign
5 /D/F/ 0 0 /r/n/r/n
The descriptor of file G can be as follows:
Relative path length Relative path Modification time Amount of content data Finish sign
6 /D/F/G 1229904039 1000 /r/n/r/n
The descriptor of client accumulation file E, subdirectory F, file G, and the data volume of file E and file F content, obtain the data volume size that preparation is uploaded: 26+2500+27+28+1000=3581 is a unit with the byte.
User end to server sends upload request message, and this upload request message is carried HTTP header field information.The data format of the HTTP header field of above-mentioned upload request message can be as follows, but be not limited to this:
Key Dest_addr Version Descriptor Content_Length End_flag
PUT Tool/game/A/ HTTP/1.1 3581 \r\n\r\n
Wherein, " Key " field is used to write down the identidication key of uploading or downloading, herein for uploading the keyword of identification; " Dest_addr " field is used to write down the relative path of the target directory that client-requested uploads to, or the target directory sign, and what upload with "/" ending expression request is catalogue; " Version " field is used to write down the version information of HTTP; " Descriptor " field is used for writing down other information of HTTP header field; " Content_Length " field is used for the recording messages transmit leg after having sent this message transmission, will send the data volume size information of data; " End_flag " field is used to write down the end sign of HTTP header field.
Server by resolving this upload request message, knows that the target directory that client-requested uploads to is a directory A after receiving above-mentioned upload request message, and knows that it is 3581 bytes that client will be uploaded the data volume size of data.
Client is according to the rule of setting, and with the descriptor of file E, subdirectory F, file G, and the content of file E and file F connects successively, and the data flow that is combined into can be as follows:
The descriptor of file E The content of file E The descriptor of subdirectory F The descriptor of file G The content of file G
User end to server sends the data flow that is combined into.The data flow that server parses receives, obtain the descriptor of file E, subdirectory F, file G, and the content of file E and file F, and according to the descriptor of file E, subdirectory F, file G, and the content of file E and file F, with source directory D and content recovery thereof to target directory A.
After server is received data flow, whether the data volume size that can judge the data flow that receives earlier is consistent with the data volume size of carrying in the upload request message, if it is consistent, then resolve the data flow that receives, and can send the upload request response message that carries the 200OK sign to client; If inconsistent, it is wrong to show that data flow receives, and can send the upload request response message that carries non-200OK sign to client, and designation data receives wrong, and client can resend data flow.
By technique scheme as can be seen, descriptor by each file and/or catalogue under the generation source directory, and with description information of files under the source directory and file content, and/or the data flow that is combined into of the descriptor of catalogue, communicating pair directly transmits the data flow that is combined into, the recipient can directly recover source directory according to the descriptor in the data flow, communicating pair can omit the process of compression and decompression source directory, can effectively reduce the complexity of computing, shorten the wait-for-response time, promote user experience.
Embodiment four,
Referring to Fig. 4, Fig. 4 is the schematic diagram of a kind of network node of providing of the embodiment of the invention four, and this network node specifically can comprise:
Receiver module 410 is used to receive the downloading request message that requesting node sends, and this downloading request message carries the sign of the target directory of requesting node request download.
For instance, (or claim: the sign request catalogue) can be above-mentioned target directory: the title of target directory, the relative path information of target directory in this end node, or this end node can be corresponding mutually with itself and target directory, and other identifies arbitrarily.
Descriptor generation module 420 is used to travel through target directory, the descriptor of each file and/or catalogue correspondence under the generation target directory, and descriptor comprises the relative path information of its respective file or catalogue at least.
Specifically, the descriptor that descriptor generation module 420 generates can comprise, but be not limited to: its respective file or catalogue be with respect to the relative path information of target directory, the data volume size information of the content of its respective file, with and the temporal information of respective file Last modification or the like.
Requesting node utilizes the above-mentioned file or the descriptor of catalogue, can recover its respective file or catalogue under target directory.
Data combination module 430 is used for according to the rule of combination of setting, and with each description information of files and file content under the target directory, and/or the descriptor of catalogue is combined into a data flow.
For instance, data combination module 430 can be according to the rule of combination of setting, with each description information of files and file content under the target directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the descriptor, and/or separate by separating sign between descriptor and the file content.
First sending module 440 is used for sending the data flow that data combination module 430 is combined into to requesting node.
In addition, above-mentioned network node can also comprise:
Data volume acquisition module 450 is used to obtain the data volume size of the data flow that data combination module 430 is combined into.
Second sending module 460 is used for sending the download request response message to requesting node, and this download request response message carries the data volume size information of the data flow that data volume acquisition module 450 obtains.
Be understandable that, the described network node of present embodiment can be as the Section Point among the embodiment two, the described function of its each functional module can be according to being embodiment two described method specific implementations, and this concrete implementation procedure can be with reference to the associated description among the embodiment two.
Embodiment five,
Referring to Fig. 5, Fig. 5 is the schematic diagram of a kind of network node of providing of the embodiment of the invention five, and this network node specifically can comprise:
Sending module 510 is used for sending downloading request message to destination node, the sign of the target directory that the request of carrying of this downloading request message is downloaded.
Receiver module 520 is used for the data flow that the receiving target node sends.
Data resolution module 530 is used for according to the rule of setting, and resolves receiver module 520 and receives data flow, obtains each description information of files and file content under the target directory, and/or the descriptor of catalogue.
Foregoing description information can include, but are not limited to: its respective file or catalogue be with respect to the relative path information of target directory, the data volume size information of the content of its respective file, with and the temporal information of respective file Last modification or the like.
Catalogue is recovered module 540, and each description information of files and file content under the target directory that parses according to data resolution module 530, and/or the descriptor of catalogue recover target directory.
In addition, receiver module 520 can also be used for the receiving target node and send to the download request response message, can carry the data volume size information of the data flow that destination node is ready for sending etc. in this download request response message.The data volume size that receiver module 520 can carry according to the download request response message is judged data flow that destination node sends whether by all, correct reception.
Be understandable that, the described network node of present embodiment can be as the first node among the embodiment two, the described function of its each functional module can be according to being embodiment two described method specific implementations, and this concrete implementation procedure can be with reference to the associated description among the embodiment two.
Embodiment six,
Referring to Fig. 6, Fig. 6 is the schematic diagram of a kind of network node of providing of the embodiment of the invention six, and this network node specifically can comprise:
First sending module 610 is used for sending upload request message to destination node, the sign of the target directory that the request of carrying of this upload request message uploads to.
Descriptor generation module 620 is used for the ergodic source catalogue, the descriptor of each file and/or catalogue correspondence under the generation source directory.
Foregoing description information can include, but are not limited to: its respective file or catalogue be with respect to the relative path information of target directory, the data volume size information of the content of its respective file, with and the temporal information of respective file Last modification or the like.
Data combination module 630 is used for according to the rule of combination of setting, and with each description information of files and file content under the source directory, and/or the descriptor of catalogue is combined into a data flow.
For instance, data combination module 630 can be according to the rule of combination of setting, with each description information of files and file content under the source directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
Second sending module 640 is used for sending the data flow that data combination module 630 is combined into to destination node.
In addition, described network node can also comprise:
Data volume acquisition module 650 is used to obtain the data volume size of the data flow that data combination module 630 is combined into.
The upload request message that first sending module 610 sends can also be carried the data volume size information that data volume acquisition module 650 obtains, this data volume size also just equals the data volume of each description information of files and file content under the source directory, and/or the data volume sum of the descriptor of catalogue.
Be understandable that, the described network node of present embodiment can be as the first node among the embodiment three, the described function of its each functional module can be according to being embodiment three described method specific implementations, and this concrete implementation procedure can be with reference to the associated description among the embodiment three.
Embodiment seven,
Referring to Fig. 7, Fig. 7 is the schematic diagram of a kind of network node of providing of the embodiment of the invention seven, and this network node specifically can comprise:
First receiver module 710 is used to receive the upload request message that requesting node sends, the sign of the target directory that the request that carries of this upload request message uploads to source directory.
Second receiver module 720 is used to receive the data flow that this requesting node sends.
Data resolution module 730 is used for according to the rule of setting, and resolves the data flow that second receiver module 720 receives, each description information of files and file content under the source directory that the request of acquisition is uploaded, and/or the descriptor of catalogue.
The descriptor that data resolution module 730 parses can comprise, but be not limited to: its respective file or catalogue be with respect to the relative path information of target directory, the data volume size information of the content of its respective file, with and the temporal information of respective file Last modification or the like.
Catalogue is recovered module 740, and each description information of files and file content under the source directory that is used for parsing according to data resolution module 730, and/or the descriptor of catalogue return to source directory under the described target directory.
Be understandable that, the described network node of present embodiment can be as the Section Point among the embodiment three, the described function of its each functional module can be according to being embodiment three described method specific implementations, and this concrete implementation procedure can be with reference to the associated description among the embodiment three.
Accordingly, the embodiment of the invention also provides a kind of communication system, and this a kind of communication system can comprise: as embodiment four, five, six or embodiment seven described network nodes.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
In sum, in the technical scheme of the embodiment of the invention, descriptor by each file and/or catalogue under the generation request catalogue, and will ask description information of files and file content under the catalogue, and/or the data flow that is combined into of the descriptor of catalogue, communicating pair directly transmits the data flow that is combined into, the recipient can directly recover the request catalogue according to the descriptor in the data flow, communicating pair can omit the process of compression and decompression request catalogue, can effectively reduce the complexity of computing, shorten the wait-for-response time, promote user experience.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
More than a kind of data are downloaded and uploaded to the embodiment of the invention provided implementation method, network node and communication system be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (18)

1, a kind of implementation method of data download is characterized in that, comprising:
Receive the downloading request message that requesting node sends, described downloading request message carries the sign of the target directory of described request node request download;
Travel through described target directory, generate the descriptor of each file under the described target directory and/or catalogue correspondence, described descriptor comprises the relative path information of its respective file or catalogue at least;
According to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is combined into a data flow;
Send described data flow to the described request node.
2, the implementation method downloaded of data according to claim 1 is characterized in that, describedly also comprises before the described request node sends described data flow:
Obtain the data volume size of described data flow;
Send the download request response message to the described request node, described download request response message carries the data volume size information of described data flow.
3, the implementation method of data download according to claim 1 and 2, it is characterized in that, described according to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is combined into a data flow, comprising:
According to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
4, the implementation method of data download according to claim 3 is characterized in that described description information of files also comprises the data volume size information of this document content.
5, a kind of implementation method of data download is characterized in that, comprising:
Send downloading request message to destination node, the sign of the target directory that the request of carrying of described downloading request message is downloaded;
The data flow that the receiving target node sends;
According to the rule of setting, resolve described data flow, obtain each description information of files and file content under the described target directory, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least;
According to each description information of files and file content under the described target directory, and/or the descriptor of catalogue, recover described target directory.
6, a kind of implementation method of data upload is characterized in that, comprising:
Send upload request message to destination node, the sign of the target directory that the request of carrying of described upload request message uploads to;
The ergodic source catalogue generates the descriptor of each file under the described source directory and/or catalogue correspondence, and described descriptor comprises the relative path information of its respective file or catalogue at least;
According to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is combined into a data flow;
Send described data flow to described destination node.
7, the implementation method of data upload according to claim 6 is characterized in that, the described transmission to described destination node also comprises before the described data flow:
Obtain the data volume size of described data flow,
Described upload request message is also carried the data volume size information of described data flow.
8, according to the implementation method of claim 6 or 7 described data upload, it is characterized in that, described according to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is combined into a data flow, comprising:
According to the rule of combination of setting, with under the described source directory according to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
9, a kind of implementation method of data upload is characterized in that, comprising:
Receive the upload request message that requesting node sends, the sign of the target directory that the request of carrying of described upload request message uploads to;
Receive the data flow that the described request node sends;
According to the rule of setting, resolve described data flow, each description information of files and file content under the source directory that the request of acquisition is uploaded, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least;
According to each description information of files and file content under the described source directory, and/or the descriptor of catalogue, described source directory is returned under the described target directory.
10, a kind of network node is characterized in that, comprising:
Receiver module is used to receive the downloading request message that requesting node sends, and described downloading request message carries the sign of the target directory of described request node request download;
The descriptor generation module is used to travel through described target directory, generates the descriptor of each file under the described target directory and/or catalogue correspondence, and described descriptor comprises the relative path information of its respective file or catalogue at least;
The data combination module is used for according to the rule of combination of setting, and with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is combined into a data flow;
First sending module is used for sending described data flow to the described request node.
11, network node according to claim 10 is characterized in that, described network node also comprises:
The data volume acquisition module is used to obtain the data volume size of described data flow;
Second sending module is used for sending the download request response message to the described request node, and described download request response message carries the data volume size information of the described data flow that described data volume acquisition module obtains.
12, according to claim 10 or 11 described network nodes, it is characterized in that, described data combination module specifically is used for, according to the rule of combination of setting, with each description information of files and file content under the described target directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
13, a kind of network node is characterized in that, comprising:
Sending module is used for sending downloading request message to destination node, the sign of the target directory that the request of carrying of described downloading request message is downloaded;
Receiver module is used for the data flow that the receiving target node sends;
Data resolution module, be used for according to the rule of setting, resolve described receiver module and receive data flow, obtain each description information of files and file content under the described target directory, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least;
Catalogue is recovered module, and each description information of files and file content under the described target directory that parses according to described data resolution module, and/or the descriptor of catalogue recover described target directory.
14, a kind of network node is characterized in that, comprising:
First sending module is used for sending upload request message to destination node, the sign of the target directory that the request of carrying of described upload request message uploads to;
The descriptor generation module is used for the ergodic source catalogue, generates the descriptor of each file under the described source directory and/or catalogue correspondence, and described descriptor comprises the relative path information of its respective file or catalogue at least;
The data combination module is used for according to the rule of combination of setting, and with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is combined into a data flow;
Second sending module is used for sending the data flow that described data combination module combinations goes out to described destination node.
15, network node according to claim 14 is characterized in that, described network node also comprises:
The data volume acquisition module is used to obtain the data volume size of described data flow, and the upload request message that described first sending module sends is also carried the data volume size information of described data flow.
16, according to claim 14 or 15 described network nodes, it is characterized in that, described data combination module specifically is used for, according to the rule of combination of setting, with each description information of files and file content under the described source directory, and/or the descriptor of catalogue is connected successively, be combined into a data flow, wherein, between the described descriptor, and/or separate by separating sign between descriptor and the file content.
17, a kind of network node is characterized in that, comprising:
First receiver module is used to receive the upload request message that requesting node sends, the sign of the target directory that the request of carrying of described upload request message uploads to;
Second receiver module is used to receive the data flow that the described request node sends;
Data resolution module, be used for according to the rule of setting, resolve the data flow that second receiver module receives, each description information of files and file content under the source directory that the request of acquisition is uploaded, and/or the descriptor of catalogue, described descriptor comprises the relative path information of its respective file or catalogue at least;
Catalogue is recovered module, is used for according to each description information of files and file content under the described source directory, and/or the descriptor of catalogue, described source directory is returned under the described target directory.
18, a kind of communication system is characterized in that, comprising:
As, each described network node of claim 10 to 17.
CNA2009101291408A 2009-03-27 2009-03-27 Method for uploading and downloading data, network node and communication system Pending CN101510898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009101291408A CN101510898A (en) 2009-03-27 2009-03-27 Method for uploading and downloading data, network node and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009101291408A CN101510898A (en) 2009-03-27 2009-03-27 Method for uploading and downloading data, network node and communication system

Publications (1)

Publication Number Publication Date
CN101510898A true CN101510898A (en) 2009-08-19

Family

ID=41003161

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009101291408A Pending CN101510898A (en) 2009-03-27 2009-03-27 Method for uploading and downloading data, network node and communication system

Country Status (1)

Country Link
CN (1) CN101510898A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997853A (en) * 2009-08-31 2011-03-30 中兴通讯股份有限公司 Data downloading method and terminal
CN102075287A (en) * 2010-11-22 2011-05-25 浪潮(北京)电子信息产业有限公司 Data processing method and device
CN102222112A (en) * 2011-07-12 2011-10-19 宇龙计算机通信科技(深圳)有限公司 Resource management device and resource management method
WO2011134410A1 (en) * 2010-04-28 2011-11-03 华为技术有限公司 Method for uploading data, method for downloading data, and data system
WO2013123870A1 (en) * 2012-02-24 2013-08-29 腾讯科技(深圳)有限公司 Method and device for achieving data roaming
CN103888513A (en) * 2014-02-25 2014-06-25 世纪龙信息网络有限责任公司 Server-side multifile downloading method and system
CN103957256A (en) * 2014-04-30 2014-07-30 梁鸿才 Law enforcement meter data reading system, data transmission method and related method thereof
CN105306523A (en) * 2015-08-17 2016-02-03 成都飞机设计研究所 Method for sending file from browser to server
CN105407167A (en) * 2015-12-01 2016-03-16 深圳市永兴元科技有限公司 Data transmission method and server
CN107609072A (en) * 2017-09-01 2018-01-19 联想(北京)有限公司 A kind of data processing method and device
CN111314478A (en) * 2020-02-24 2020-06-19 腾讯科技(深圳)有限公司 File transmission method and device and computer equipment
CN113452608A (en) * 2020-03-25 2021-09-28 阿里巴巴集团控股有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN114465972A (en) * 2021-06-11 2022-05-10 北京字跳网络技术有限公司 Method, device and equipment for transmitting folder and computer readable storage medium

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997853A (en) * 2009-08-31 2011-03-30 中兴通讯股份有限公司 Data downloading method and terminal
WO2011134410A1 (en) * 2010-04-28 2011-11-03 华为技术有限公司 Method for uploading data, method for downloading data, and data system
CN102075287A (en) * 2010-11-22 2011-05-25 浪潮(北京)电子信息产业有限公司 Data processing method and device
CN102075287B (en) * 2010-11-22 2014-04-02 浪潮(北京)电子信息产业有限公司 Data processing method and device
CN102222112A (en) * 2011-07-12 2011-10-19 宇龙计算机通信科技(深圳)有限公司 Resource management device and resource management method
WO2013123870A1 (en) * 2012-02-24 2013-08-29 腾讯科技(深圳)有限公司 Method and device for achieving data roaming
CN103888513B (en) * 2014-02-25 2017-05-31 世纪龙信息网络有限责任公司 Server end multifile method for down loading and system
CN103888513A (en) * 2014-02-25 2014-06-25 世纪龙信息网络有限责任公司 Server-side multifile downloading method and system
CN103957256A (en) * 2014-04-30 2014-07-30 梁鸿才 Law enforcement meter data reading system, data transmission method and related method thereof
CN105306523A (en) * 2015-08-17 2016-02-03 成都飞机设计研究所 Method for sending file from browser to server
CN105407167A (en) * 2015-12-01 2016-03-16 深圳市永兴元科技有限公司 Data transmission method and server
CN107609072A (en) * 2017-09-01 2018-01-19 联想(北京)有限公司 A kind of data processing method and device
CN107609072B (en) * 2017-09-01 2020-11-20 联想(北京)有限公司 Data processing method and device
CN111314478A (en) * 2020-02-24 2020-06-19 腾讯科技(深圳)有限公司 File transmission method and device and computer equipment
CN113452608A (en) * 2020-03-25 2021-09-28 阿里巴巴集团控股有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN114465972A (en) * 2021-06-11 2022-05-10 北京字跳网络技术有限公司 Method, device and equipment for transmitting folder and computer readable storage medium
CN114465972B (en) * 2021-06-11 2023-11-21 北京字跳网络技术有限公司 Method, apparatus, device and computer readable storage medium for folder transmission

Similar Documents

Publication Publication Date Title
CN101510898A (en) Method for uploading and downloading data, network node and communication system
CN102355426B (en) Method for transmitting off-line file and system
JP5792850B2 (en) File folder transmission over the network
CN104980486A (en) Collection synchronization using equality matched network names
EP2574004B1 (en) Method, apparatus and system for improving synchronization efficiency of really simple syndication service
US20160164966A1 (en) Peer-to-Peer Communication of Non-Common Data
CN101123568B (en) An instant communication system and transmission method of self-defined information
CN1988535A (en) Synchronous method, system for file storage and customer terminal
CN103841180B (en) A kind of network data synchronizing method, apparatus, terminal device and server based on operational order
CN113254233A (en) Data transmission method, device, equipment and readable storage medium
CN103532984A (en) Data transmission method, device and system of websocket protocol
US10237075B2 (en) Reconstructable content objects
CN103634203A (en) Message asynchronous transmission method, device and system
CN102708192A (en) Method, system and device for sharing documents
CN108134811B (en) Method, device and system for distributing or downloading target file
CN105338421A (en) HLS streaming media transmission method and device
CN104469401A (en) HLS based on-demand playing system and method
CN103095549A (en) Method and system for messaging between instant messaging tools
CN105100230A (en) File transmission method and device
CN102185611A (en) Efficient extraction and compression of data
CN105163171A (en) File transmission method between set top box and mobile terminal and system
CN105227514A (en) Based on document transmission processing method and the browser of browser
CN105227661A (en) Sharing files method and system, server
CN104852955A (en) Data processing method and system
JP2014016758A (en) Log data decompression device, log data compression device, log data decompression program, and log data compression 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

Open date: 20090819