CN104980482B - Document sending method and device, document receiving method and device - Google Patents
Document sending method and device, document receiving method and device Download PDFInfo
- Publication number
- CN104980482B CN104980482B CN201410815118.XA CN201410815118A CN104980482B CN 104980482 B CN104980482 B CN 104980482B CN 201410815118 A CN201410815118 A CN 201410815118A CN 104980482 B CN104980482 B CN 104980482B
- Authority
- CN
- China
- Prior art keywords
- distribution
- file
- data segment
- index value
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of document receiving methods, comprising: receives and sends the index value that terminal is sent, the index value is generated after receiving the file destination that the transmission terminal uploads by corresponding first remote Distributor of the transmission terminal;Extract the file identification data section and distribution address data segment in the index value;The downloading comprising the file identification data section is sent to the corresponding the distribution server of the distribution address data segment to request;Receive the file destination corresponding with the file identification data section that first remote Distributor issues.The invention also discloses a kind of file reception device and corresponding document sending methods and device.Using the present invention, the bandwidth availability ratio of content distributing network can be improved.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of document sending methods and device, document receiving method
And device.
Background technique
In social networking application, the files such as picture, music or video can be shared mutually between user by instant messaging.
For example, the picture file taken pictures is shared with good friend after camera can be used to take pictures by user or Mike can be used in user
The audio file that recording obtains is shared with good friend after wind recording.
In traditional technology between user when carrying out sharing files, the user as participator is generally not that file is straight
Good friend is given in sending and receiving, but file is first uploaded the distribution server, obtains store path of the file in the distribution server, then
The store path is sent to the terminal of good friend by the distribution server, by the terminal by the store path by the distribution server
Download this document.
However inventor is it has been investigated that at least there are the following problems in traditional sharing files method: when as participator
User with the good friend as recipient not in an area, when corresponding different the distribution servers, then need first by recipient
Corresponding the distribution server pulls file, is then handed down to the terminal as recipient again.That is, corresponding different distribution
The terminal of server can generate the data traffic (also known as flow is passed through in strange land) between the distribution server when transmitting file, thus
Cause the waste of bandwidth.
Summary of the invention
Based on this, the lower technical problem of bandwidth availability ratio in order to solve above content distribution network additionally provides one
Kind document receiving method.
A kind of document receiving method, comprising:
It receives and sends the index value that terminal is sent, the index value is taken by corresponding first remote distribution of the transmission terminal
Business device generates after receiving the file destination that the transmission terminal uploads;
Extract the file identification data section and distribution address data segment in the index value;
The downloading comprising the file identification data section is sent to the corresponding the distribution server of the distribution address data segment
Request;
Receive the file destination corresponding with the file identification data section that first remote Distributor issues.
In addition, additionally providing one kind to solve the lower technical problem of the bandwidth availability ratio of above content distribution network
File reception device.
A kind of file reception device, comprising:
Index value receiving module, for receiving the index value for sending terminal and sending, the index value is by the transmission terminal
Corresponding first remote Distributor generates after receiving the file destination that the transmission terminal uploads;
Index value parsing module, for extracting the file identification data section in the index value and distribution address data segment;
Request sending module is downloaded, for sending to the corresponding the distribution server of distribution address data segment comprising described
The downloading of file identification data section is requested;
File destination receiving module is issuing with the file identification number for receiving first remote Distributor
According to the corresponding file destination of section.
In addition, additionally providing one kind to solve the lower technical problem of the bandwidth availability ratio of above content distribution network
Document sending method.
A kind of document sending method, comprising:
File destination is obtained, the file destination is uploaded to the distribution server;
The index value corresponding with the file destination that the distribution server returns is received, the index value includes and institute
State the corresponding file identification data section of file destination and distribution address corresponding with the distribution server data segment;
The index value is sent to reception terminal, by after reception terminal parsing according to the file digest values and
The distribution address data segment downloads the file destination from the distribution server.
In addition, additionally providing one kind to solve the lower technical problem of the bandwidth availability ratio of above content distribution network
File sending device.
A kind of file sending device, comprising:
File destination obtains module and the file destination is uploaded to the distribution server for obtaining file destination
Index value receiving module, the index corresponding with the file destination returned for receiving the distribution server
Value, the index value include and the corresponding file identification data section of the file destination and corresponding with the distribution server
Distribute address data segment;
Index value sending module, for the index value to be sent to reception terminal, by root after reception terminal parsing
The file destination is downloaded from the distribution server according to the file digest values and the distribution address data segment.
Implement the embodiment of the present invention, will have the following beneficial effects:
After above-mentioned document sending method and device and document receiving method and device, transmission terminal, which is sent to, to be connect
It receives in the index value of terminal and not only contains file identification data section, further comprise the file destination that storage transmission terminal uploads
The distribution address data segment of the distribution server.Terminal is received after receiving the index value, can be got by the index value
The distribution server chained address of the distribution server of the file destination is stored, so as to directly access the distribution server downloading
File destination.It is compared with traditional technology, without passing through content distributing network by receiving the corresponding local distributor of terminal
File destination is grabbed, to reduce the data transfer throughput in content distributing network between each node, to improve bandwidth
Utilization rate.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Wherein:
Fig. 1 is the structural schematic diagram of the file sharing system based on content distributing network;
Fig. 2 is a kind of flow chart of document sending method in one embodiment;
Fig. 3 is a kind of structural schematic diagram of index value in one embodiment;
Fig. 4 is a kind of flow chart of document receiving method in one embodiment;
Fig. 5 is a kind of structure chart of file sending device in one embodiment;
Fig. 6 is a kind of structure chart of file reception device in one embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In traditional technology based on content distributing network (English: Content Delivery Network, referred to as: CDN)
File sharing system can refer to shown in Fig. 1.Including terminal 10, distribution node 20 and service server 30.Wherein, terminal 10 from
It can functionally be divided into and send terminal 12 and reception terminal 14.Distribution node is then since region overlay respectively corresponds different ends
End, for example, distribution node corresponding with terminal is sent is distribution node 22 in Fig. 1, distribution corresponding with terminal 14 is received is saved
Point is distribution node 24.
When file destination is sent to by transmission terminal 12 receives terminal 14, then first file is uploaded to by transmission terminal 12
Then the file identification of file destination is sent to by service server and receives terminal 14 by distribution node 22.Receive terminal 14
After receiving this document mark, downloading request is initiated to its corresponding distribution node 24, this is then contained in downloading request and connects
The file identification of receipts.Distribution node 24 then identifies according to this document and grabs the file destination by distribution node 22, is then handed down to
Receive terminal.
It can be seen that from above, in traditional sharing files mechanism based on content distributing network, if sending terminal and reception
When terminal is in different distribution node compasses of competency, additional data will be generated between the distribution node in content distributing network
Transmit flow causes the utilization rate of bandwidth not high to occupy the transmission bandwidth between distribution node.
To solve the problems, such as that above-mentioned bandwidth availability ratio is not high, in one embodiment, spy proposes a kind of new file point
Mechanism is enjoyed, which is made of two-part method and step, including runs on document sending method and corresponding file connects
Receiving method.As shown in Figure 1, Fig. 1 illustrates a kind of file sharing system based on content distributing network, which includes terminal
10, distribution node 20 and service server 30.Wherein, terminal 10, which can be functionally divided into, sends terminal 12 and reception terminal
14 (it should be noted that sending terminal 12 and receiving terminal 14 can be with same hardware structure and has same software ring
The terminal device in border, in the present invention, according only to its identity difference during sharing files be divided into send terminal and
Receive terminal).In Fig. 1, distribution node corresponding with terminal is sent is distribution node 22, distribution corresponding with terminal 14 is received
Node is distribution node 24.For opposite reception terminal 14, distribution node 24 is the local distribution node for receiving terminal 14, point
It sends out node 22 and distribution node 26 is the first remote distribution node and the second remote distribution node for being respectively reception terminal 14.Industry
Business server 30 is then for forwarding the message (forwarding without file stream) for sending terminal 12 and receiving terminal 14.Send terminal
12, which may each be smart phone, tablet computer, laptop or desktop computer etc. with reception terminal 14, is equipped with intelligent operation
The terminal device of system or desktop operating system.Distribution node then can be CDN node or have content distribution with similar CDN
Data memory node in the network system of function.Service server, which then can be, has sharing files function with what is run in terminal
The server apparatus of the instant messaging application of energy or content share application, can run instant messaging application thereon or content share is answered
Server program.
Aforementioned document sending method, which can run on, to be sent on terminal 12, and document receiving method above-mentioned can run on
It receives on terminal 14.And above-mentioned document sending method and document receiving method can be dependent on computer program, can run on
On the computer system of von Neumann system.
Specifically, in the present embodiment, document sending method is as shown in Figure 2, comprising:
Step S102: file destination is obtained, file destination is uploaded to the distribution server.
File destination is the file that the user of operation transmission terminal is shared with other people.For example, user is operating intelligent hand
When instant messaging application on machine, then the openable instant function of sharing picture is taken pictures using mobile phone camera and generates target text
Part is shared with good friend.Or the openable function of sending voice of user, it then speaks to microphone, to generate mesh by recording
Sharing files are marked to good friend.Alternatively, user can also click transmission file, then filesselected is made in the file marquee of pop-up
For file destination.
In above-mentioned application scenarios, user clicks " transmission " or " sharing " button, that the file destination is not direct
Be sent to reception terminal, also not over service server is sent to, reception terminal be forwarded to by service server, but first on
Reach corresponding the distribution server.Under normal conditions, it is corresponding with the distribution server by IP address to send terminal.Different
The distribution server corresponds to different IP sections, and (generally also related to geographic area, operator is the IP address of the distribution of areal
Generally fall into IP sections same), in the corresponding the distribution server of identical IP sections of terminal.Sending terminal can be to unification
CDN entrance domain name initiates file upload request, then by CDN portal server according to sending the IP address of terminal for the request weight
The distribution server corresponding with IP address is directed to be handled.
Step S104: receiving the index value corresponding with the file destination of the distribution server return, which includes
And the corresponding file identification data section of the file destination and distribution address corresponding with the distribution server data segment.
After the distribution server corresponding with terminal is sent receives the file destination, file destination is cached, is then counted
The abstract of file destination can be obtained in the cryptographic Hash for calculating file destination, using the abstract as the mark of file destination.Distribution service
Device can generate index value corresponding with file destination according to the mark.
In the present embodiment, the index value that the distribution server generates can be as shown in figure 3, include multiple data segments.Wherein, may be used
Including edition data section (i.e. version home block in Fig. 3), index length data section (i.e. length home block in Fig. 3), on
It passes time data segment (i.e. uptime home block in Fig. 3), file identification data section (i.e. filekey home block in Fig. 3), divide
Send out address date section (i.e. flag home block in Fig. 3) and verification and data segment (i.e. checksum home block in Fig. 3).
Edition data section can be used for identifying the version of the structure of the index value, if such as file hash algorithm upgrading or point
Hair address code mode upgrades or the structure of index value changes and is added to new data segment, then can be by changing version number
It is identified according to section.File identification data Duan Zeke adds the abstract of the file destination of aforementioned calculating, for identification target text
Part.Distribution address data segment then is encoded to obtain by the address to the distribution server.
In one embodiment, the distribution server can obtain its distribution server chained address, i.e. IP address or domain name
Character string is then added in index value by transcoding, coding transform at binary data segment.For example, if the IP of the distribution server
Location is 10.0.0.3 (the preferably virtual IP address of content distributing network distribution, can facilitate dilatation and capacity reducing), then can lead to the address
Cross transcoding, coding transform at:
0000101 00000000 00000000 00000011
Data segment, i.e., the network segment of one IPv4 of every 8 expressions (in IPv4, the value interval of a network segment be 0 to
255)。
In one embodiment, the distribution server is a child servers of Distribution Center, and address not only includes distribution
The domain name at center further includes the number of the child servers in Distribution Center, and distribution address data segment includes Distribution Center's data segment
And child servers number data segment.For example, being made of if sending the corresponding Distribution Center of terminal 20 servers, and in distribution
The IP address of the heart is 10.0.0.3, and the number of the distribution server of actual storage file destination is 14, then the distribution server
Actual access address may be expressed as:
10.0.0.3? SID=14;
It can be transformed by coding:
0000101 00,000,000 00,000,000 00,000,011 01110 (it is assumed that Distribution Center is at most taken by 32 distributions
Business device).
In another embodiment, the distribution server can also inquire to obtain distribution area according to preset storage address mapping table
Location data segment.Preset storage address mapping table can by CDN network building when or addition or delete the distribution server update,
Wherein contain the IP address of Distribution Center or the corresponding relationship of domain name and Distribution Center's number.In example as above, the distribution server
The preset storage address can be inquired according to the Distribution Center chained address (IP address or domain name) of the Distribution Center where it to reflect
The number of the Distribution Center where the distribution server can be obtained in firing table, which can be used as Distribution Center's data segment;So
Obtain server number of the distribution server in Distribution Center again afterwards, which can be used as child servers number data
Distribution address data segment can be obtained in Distribution Center's data segment and the splicing of child servers number data segment by section.
For example, can be distributed in index value 32 as distribution address data segments, wherein high 12 be extension bits, in 16
For Distribution Center's data segment, low 4 are child servers number data segment.
Step S106: being sent to reception terminal for the index value, according to this document digest value after being parsed by the reception terminal
And the distribution address data segment is from the distribution server downloading object file.
In the present embodiment, as shown in Figure 1, reception can be sent to for index value by service server 30 by sending terminal 12
Terminal 14.For example, the instant messaging can be passed through if what is run in transmission terminal 12 and reception terminal 14 is instant messaging application
The agreement of application encapsulates the index value, i.e., notice receives the index value rather than instant messaging that the terminal message is transmission file
Then message is forwarded by the server program for running the instant messaging application on service server 30.
That is, after user clicks the button of sharing files in the operation interface of instant messaging application, not
Reception terminal directly is sent the file to, but file destination is first uploaded to the index value that the distribution server is returned,
Then index value reception terminal has been sent to, then has gone the distribution server to download according to the index value by reception terminal, to save
The converting flow of service server is saved.
Correspondingly, as shown in figure 4, operating in the document receiving method received in terminal can include:
Step S202: receiving and send the index value that terminal is sent, and the index value is corresponding first long-range by the transmission terminal
The distribution server generates after the file destination for receiving transmission terminal upload.
Step S204: the file identification data section and distribution address data segment in the index value are extracted.
Step S206: it sends to the corresponding the distribution server of the distribution address data segment comprising this document mark data section
Downloading request.
Step S208: target corresponding with this document mark data section text that first remote Distributor issues is received
Part.
In the present embodiment, as shown in Figure 1, for receive the visual angle of terminal 14, distribution node 22 is i.e. corresponding to be received eventually
First remote Distributor at end 14, and distribution node 24 is the corresponding local distributor for receiving terminal 14.
Terminal 14 is received after receiving index value, index value is parsed first, obtains file identification data section
With distribution address data segment.As previously mentioned, resolution file mark data section is to get the mesh arrived to the upload of the first remote server
Mark the mark (such as abstract) of file;Parsing distribution address data segment is the first remote service for having obtained storing the file destination
The distribution server chained address of device.It, can be to solution after obtaining mark and the distribution server chained address of file destination
It analyses obtained the distribution server chained address and sends the downloading request comprising file identification data section.
In as in the previous example, if the file digest values that resolution file mark data section obtains are A, the distribution server chained address is
IP address, distribution address data segment are 2 system representations of direct IP address, and parse obtained distribution address data segment
Are as follows:
0000101 00000000 00000000 00000011;
Then indicate the corresponding IP address of the first remote Distributor of reception terminal 14 are as follows:
10.0.0.3;Http downloading request can be generated according to the IP address:
Http: // 10.0.0.3? fileID=A
Further, if the first remote Distributor is child servers, and obtained distribution address data segment is parsed are as follows:
0000101 00000000 00000000 00000011 01110;
Then indicate the corresponding IP address of the first remote Distributor of reception terminal 14 are as follows: 10.0.0.3;Server mark
Know is 14;Http downloading request can be generated according to the IP address:
Http: // 10.0.0.3? SID=14&fileID=A
In another embodiment, the step of parsing distribution address data segment further include: obtain preset storage address and reflect
Firing table searches Distribution Center chained address corresponding with the Distribution Center's data segment extracted according to storage address mapping table, according to
Distribution Center chained address and child servers number data segment generate the distribution server chained address.
That is, receiving the storage address mapping that can store same version in terminal 14 with the first remote Distributor
Table, which is handed down to corresponding terminal after being synchronized by the distribution node in CDN network, to guarantee
Receiving the storage address mapping table stored on terminal and the first remote Distributor is same version.
Again as in the previous example in, if the distribution address data segment in index value be as shown in figure 3, if can extract 16 in the data segment
The data segment of position obtains Distribution Center's data segment, extracts low 4 data segments and obtains child servers number data segment.Then basis
Extracting the obtained preset storage address mapping table of Distribution Center's data segment inquiry can be obtained Distribution Center chained address, according to
Preset protocol type (such as http agreement) splices Distribution Center chained address and child servers number, that is, produces distribution
Server chained address.
After reception terminal has obtained the distribution server chained address by parsing, it can be linked according to the distribution server
Address generates downloading request, is then sent to the first remote Distributor.First remote Distributor receives the downloading
After request, file identification wherein included is extracted, corresponding file destination can be found by inquiry and return to reception eventually
End.After reception terminal receives the file destination, this document can be opened in corresponding instant messaging application.
For example, if file destination is picture file, by the picture presentation in the chat window of instant messaging application, if
File destination is audio file, then can play the audio.
In the present embodiment, it obtains corresponding the distribution server chained address failure in parsing or receives file destination to lose
After losing, local distributor can be also obtained, this document mark data section is uploaded to the local distributor, receives this
Its target corresponding with this document mark data section grabbed by the second remote Distributor text that ground the distribution server returns
Part.
As previously mentioned, refering to what is shown in Fig. 1, receiving the corresponding local distributor of terminal 14 is distribution node 24, the
One remote Distributor is distribution node 22, and the second remote Distributor is to distribute contact 26.Receive terminal parsing
It obtains corresponding the distribution server chained address failure or receives file destination failure this means that file destination is no longer deposited
On the first remote Distributor.This is because in CDN network, for proof load equilibrium, data may be generated and moved
It moves, i.e., it will be on the Data Migration to another distribution node that cached on a distribution node.And at this point, receiving terminal can will parse
Obtained file identification data section is uploaded on local distributor (i.e. distribution node 24) corresponding with terminal is received, local
The distribution server is first locally searching whether file destination corresponding with this document mark data section, by this document if not
Mark data section is sent to other the distribution servers, and corresponding mesh is searched in the memory space of itself by other the distribution servers
Mark file.In the present embodiment, refering to what is shown in Fig. 1, if being stored with the mesh on the second remote distribution node 26 of reception terminal 14
Backup or the copy for marking file, then can be returned to the local distribution node 24 for receiving terminal 14, then locally be divided by this
Hair node 24, which is handed down to, receives terminal 14.
Preferably, if the second remote Distributor finds file destination, local distributor can also be only notified, so
The distribution server chained address of second remote Distributor is sent to reception by the local distributor for receiving terminal afterwards
Terminal, then be downloaded by reception terminal according to the distribution server chained address, to be further reduced wearing in CDN network
More flow.
Further, as previously mentioned, further including verification and data segment in index value.To corresponding point of address data segment of distribution
Verification sum number of the hair server before sending the step of including the downloading request of file identification data section in also extractable index value
According to section, judge whether the file identification data section extracted and/or distribution address data segment are legal according to verification and data segment, if
It is then to continue to execute to send the downloading request comprising file identification data section to the corresponding the distribution server of distribution address data segment
The step of.
That is, the verification and data segment in aforementioned index value, which can be used for receiving terminal, judges that the index value received is
It is no complete, if imperfect, can require to send terminal retransmission.
In one embodiment, as shown in figure 5, also accordingly proposing a kind of text corresponding with document sending method above-mentioned
Part sending device, including file destination obtain module 102, index value receiving module 104 and index value sending module 106,
In:
File destination obtains module 102 and the file destination is uploaded to the distribution server for obtaining file destination
Index value receiving module 104, the rope corresponding with the file destination returned for receiving the distribution server
Draw value, the index value includes file identification data section corresponding with the file destination and corresponding with the distribution server
Distribution address data segment;
Index value sending module 106, for the index value to be sent to reception terminal, after reception terminal parsing
The file destination is downloaded from the distribution server according to the file digest values and the distribution address data segment.
In one embodiment, as shown in fig. 6, also accordingly proposing a kind of text corresponding with document receiving method above-mentioned
Part reception device, including index value receiving module 202, index value parsing module 204, downloading request sending module 206 and target
File reception module 208, in which:
Index value receiving module 202, for receiving the index value for sending terminal and sending, the index value is whole by the transmission
Corresponding first remote Distributor is held to generate after receiving the file destination that the transmission terminal uploads.
Index value parsing module 204, for extracting the file identification data section in the index value and distribution address date
Section.
Request sending module 206 is downloaded, for including to the corresponding the distribution server transmission of distribution address data segment
The downloading of the file identification data section is requested.
File destination receiving module 208 is issuing with the files-designated for receiving first remote Distributor
Know the corresponding file destination of data segment.
In the present embodiment, index value parsing module 204 is also used to parse distribution address data segment, obtains corresponding
The distribution server chained address.
Downloading request sending module 206 is also used to send to the obtained the distribution server chained address that parses comprising institute
State the downloading request of file identification data section.
In the present embodiment, distribution address data segment includes Distribution Center's data segment and child servers number data segment;
In the present embodiment, index value parsing module 204 is also used to obtain preset storage address mapping table, according to described
Storage address mapping table searches Distribution Center chained address corresponding with Distribution Center's data segment of the extraction, according to described point
It sends out center link address and the child servers number data segment generates the distribution server chained address.
In the present embodiment, as shown in fig. 6, file reception device further includes local handling module 210, for parsing
To after the failure of corresponding the distribution server chained address or receiving the file destination failure, local distribution service is obtained
Device, Xiang Suoshu local distributor upload the file identification data section, receive the local distributor return its
The file destination corresponding with the file identification data section grabbed by the second remote Distributor.
It in the present embodiment, further include verification and data segment in index value.
In the present embodiment, as shown in fig. 6, file reception device further includes index value correction verification module 212, described in extraction
Verification and data segment in index value, according to it is described verification and data segment judge the extraction file identification data section and/or
Whether legal distribute address data segment.
In conclusion implementing the embodiment of the present invention, will have the following beneficial effects:
After above-mentioned document sending method and device and document receiving method and device, transmission terminal, which is sent to, to be connect
It receives in the index value of terminal and not only contains file identification data section, further comprise the file destination that storage transmission terminal uploads
The distribution address data segment of the distribution server.Terminal is received after receiving the index value, can be got by the index value
The distribution server chained address of the distribution server of the file destination is stored, so as to directly access the distribution server downloading
File destination.It is compared with traditional technology, without passing through content distributing network by receiving the corresponding local distributor of terminal
File destination is grabbed, to reduce the data transfer throughput in content distributing network between each node, to improve bandwidth
Utilization rate.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (12)
1. a kind of document receiving method, comprising:
It receives and sends the index value that terminal is sent, the index value is by corresponding first remote Distributor of the transmission terminal
It is generated after receiving the file destination that the transmission terminal uploads;
Extract the file identification data section and distribution address data segment in the index value;
It sends to corresponding first remote Distributor of the distribution address data segment comprising the file identification data section
Downloading request;
Receive the file destination corresponding with the file identification data section that first remote Distributor issues.
2. document receiving method according to claim 1, which is characterized in that the distribution area extracted in the index value
After the step of location data segment further include:
Distribution address data segment is parsed, corresponding the distribution server chained address is obtained;
Described send to corresponding first remote Distributor of distribution address data segment includes the file identification data
The step of downloading request of section are as follows:
The downloading request comprising the file identification data section is sent to the obtained the distribution server chained address that parses.
3. document receiving method according to claim 2, which is characterized in that the distribution address data segment includes in distribution
Heart data segment and child servers number data segment;
The step of parsing the distribution address data segment further include:
Preset storage address mapping table is obtained, Distribution Center's number with the extraction is searched according to the storage address mapping table
It is raw according to the Distribution Center chained address and the child servers number data segment according to the corresponding Distribution Center chained address of section
At the distribution server chained address.
4. document receiving method according to claim 2, which is characterized in that the method also includes:
After parsing obtains corresponding the distribution server chained address failure or receives the file destination failure, this is obtained
Ground the distribution server, Xiang Suoshu local distributor upload the file identification data section, receive the local distribution service
Its file destination corresponding with the file identification data section grabbed by the second remote Distributor that device returns.
5. document receiving method according to claim 1, which is characterized in that further include verification and data in the index value
Section;
It is described to send the downloading comprising the file identification data section to the corresponding the distribution server of the distribution address data segment
Before the step of request further include:
The verification in the index value and data segment are extracted, the file identification of the extraction is judged according to the verification and data segment
Whether data segment and/or distribution address data segment are legal, if so, continuing to execute to corresponding point of data segment of the distribution address
Hair server sends the step of including the downloading request of the file identification data section.
6. a kind of file reception device characterized by comprising
Index value receiving module, for receiving the index value for sending terminal and sending, the index value is corresponding by the transmission terminal
The first remote Distributor receive it is described transmission terminal upload file destination after generate;
Index value parsing module, for extracting the file identification data section in the index value and distribution address data segment;
Request sending module is downloaded, for including to the corresponding first remote Distributor transmission of distribution address data segment
The downloading of the file identification data section is requested;
File destination receiving module is issuing with the file identification data section for receiving first remote Distributor
Corresponding file destination.
7. file reception device according to claim 6, which is characterized in that the index value parsing module is also used to parse
Distribution address data segment, obtains corresponding the distribution server chained address;
The downloading request sending module is also used to send to the obtained the distribution server chained address that parses comprising described
The downloading of file identification data section is requested.
8. file reception device according to claim 7, which is characterized in that the distribution address data segment includes in distribution
Heart data segment and child servers number data segment;
The index value parsing module is also used to obtain preset storage address mapping table, is looked into according to the storage address mapping table
Look for Distribution Center chained address corresponding with Distribution Center's data segment of the extraction, according to the Distribution Center chained address and
The child servers number data segment generates the distribution server chained address.
9. file reception device according to claim 7, which is characterized in that described device further includes local handling module,
For obtaining this after parsing obtains corresponding the distribution server chained address failure or receives the file destination failure
Ground the distribution server, Xiang Suoshu local distributor upload the file identification data section, receive the local distribution service
Its file destination corresponding with the file identification data section grabbed by the second remote Distributor that device returns.
10. file reception device according to claim 6, which is characterized in that further include verification sum number in the index value
According to section;
Described device further includes index value correction verification module, with the verification and data segment extracted in the index value, according to the school
It tests and judges whether the file identification data section of the extraction and/or distribution address data segment are legal with data segment.
11. a kind of document sending method, comprising:
File destination is obtained, the file destination is uploaded to the distribution server;
The index value corresponding with the file destination that the distribution server returns is received, the index value includes and the mesh
Mark the corresponding file identification data section of file and distribution address corresponding with the distribution server data segment;
The index value is sent to reception terminal, by after reception terminal parsing according to file digest values and described
Distribute address data segment and downloads the file destination from the distribution server.
12. a kind of file sending device, comprising:
File destination obtains module and the file destination is uploaded to the distribution server for obtaining file destination;
Index value receiving module, the index value corresponding with the file destination returned for receiving the distribution server, institute
Stating index value includes and the corresponding file identification data section of the file destination and distribution corresponding with the distribution server
Address date section;
Index value sending module, for the index value to be sent to reception terminal, according to institute after being parsed by the reception terminal
It states file digest values and the distribution address data segment and downloads the file destination from the distribution server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410815118.XA CN104980482B (en) | 2014-12-24 | 2014-12-24 | Document sending method and device, document receiving method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410815118.XA CN104980482B (en) | 2014-12-24 | 2014-12-24 | Document sending method and device, document receiving method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104980482A CN104980482A (en) | 2015-10-14 |
CN104980482B true CN104980482B (en) | 2019-09-13 |
Family
ID=54276582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410815118.XA Active CN104980482B (en) | 2014-12-24 | 2014-12-24 | Document sending method and device, document receiving method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104980482B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105847397A (en) * | 2016-04-25 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device for providing network service for terminal device |
CN107547352A (en) * | 2016-06-24 | 2018-01-05 | 腾讯科技(深圳)有限公司 | Document sending method, apparatus and system |
CN107566321B (en) * | 2016-06-30 | 2021-06-15 | 中兴通讯股份有限公司 | File sending method, device and system |
CN108737482B (en) * | 2017-04-24 | 2020-11-27 | 腾讯科技(深圳)有限公司 | Document sharing method, device and system |
CN108880972B (en) * | 2017-05-09 | 2022-08-12 | 腾讯科技(深圳)有限公司 | Information processing method, server and terminal |
CN109150927B (en) * | 2017-06-15 | 2022-01-11 | 北京京东尚科信息技术有限公司 | File issuing method and device for file storage system |
CN109309651B (en) * | 2017-07-28 | 2021-12-28 | 斑马智行网络(香港)有限公司 | File transmission method, device, equipment and storage medium |
CN108270847A (en) * | 2017-12-28 | 2018-07-10 | 上海文广科技(集团)有限公司 | A kind of method that file sends and reissues packet |
CN108090370B (en) * | 2018-01-10 | 2021-03-16 | 河南芯盾网安科技发展有限公司 | Instant communication encryption method and system based on index |
CN110351222B (en) * | 2018-04-02 | 2022-01-28 | 腾讯科技(深圳)有限公司 | Data security processing method, device and system |
CN108718346B (en) * | 2018-04-08 | 2020-12-29 | 北京达佳互联信息技术有限公司 | Resource processing method and device |
CN108989428B (en) * | 2018-07-17 | 2021-09-21 | 深圳市联新移动医疗科技有限公司 | Bluetooth terminal upgrading method, server, computer readable storage medium and system |
CN109218447B (en) * | 2018-10-29 | 2021-09-17 | 中国建设银行股份有限公司 | Media file distribution method and file distribution platform |
CN112953984B (en) * | 2019-12-10 | 2023-07-28 | 贵州白山云科技股份有限公司 | Data processing method, device, medium and system |
CN112115103B (en) * | 2020-09-02 | 2023-08-01 | 北京奇艺世纪科技有限公司 | File address display method and device, electronic equipment and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101355591A (en) * | 2008-09-12 | 2009-01-28 | 中兴通讯股份有限公司 | P2P network and scheduling method thereof |
CN101889310A (en) * | 2007-12-07 | 2010-11-17 | 谷歌公司 | Organizing and publishing assets in UPnP networks |
CN101977243A (en) * | 2010-11-22 | 2011-02-16 | 杨文军 | Cloud data storage distribution (CDSD) |
CN102833293A (en) * | 2011-06-17 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Method for downloading resources in peer to server and peer (P2SP) network, and client |
CN103220308A (en) * | 2012-01-19 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Method, device and system for downloading files |
CN103399876A (en) * | 2013-07-11 | 2013-11-20 | 杭州瑞网广通信息技术有限公司 | Distributed file system and file positioning method thereof |
CN103581230A (en) * | 2012-07-26 | 2014-02-12 | 深圳市腾讯计算机系统有限公司 | File transmission system and method, receiving end and sending end |
CN103825916A (en) * | 2012-11-16 | 2014-05-28 | 腾讯科技(深圳)有限公司 | Resource downloading method and resource downloading system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101061899B1 (en) * | 2007-09-12 | 2011-09-02 | 삼성전자주식회사 | Fast Authentication Method and Device for Heterogeneous Network Handover |
US7916647B2 (en) * | 2007-11-07 | 2011-03-29 | Brocade Communications Systems, Inc. | Automatic adjustment of logical channels in a fibre channel network |
-
2014
- 2014-12-24 CN CN201410815118.XA patent/CN104980482B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101889310A (en) * | 2007-12-07 | 2010-11-17 | 谷歌公司 | Organizing and publishing assets in UPnP networks |
CN101355591A (en) * | 2008-09-12 | 2009-01-28 | 中兴通讯股份有限公司 | P2P network and scheduling method thereof |
CN101977243A (en) * | 2010-11-22 | 2011-02-16 | 杨文军 | Cloud data storage distribution (CDSD) |
CN102833293A (en) * | 2011-06-17 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Method for downloading resources in peer to server and peer (P2SP) network, and client |
CN103220308A (en) * | 2012-01-19 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Method, device and system for downloading files |
CN103581230A (en) * | 2012-07-26 | 2014-02-12 | 深圳市腾讯计算机系统有限公司 | File transmission system and method, receiving end and sending end |
CN103825916A (en) * | 2012-11-16 | 2014-05-28 | 腾讯科技(深圳)有限公司 | Resource downloading method and resource downloading system |
CN103399876A (en) * | 2013-07-11 | 2013-11-20 | 杭州瑞网广通信息技术有限公司 | Distributed file system and file positioning method thereof |
Non-Patent Citations (1)
Title |
---|
"基于对等网络的内容分发算法研究";刘永卫;《中国优秀硕士学位论文全文数据库信息科技辑》;20080313;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN104980482A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104980482B (en) | Document sending method and device, document receiving method and device | |
JP6316781B2 (en) | Network streaming of video data using byte range requests | |
US9727574B2 (en) | System and method for applying an efficient data compression scheme to URL parameters | |
CN102355426B (en) | Method for transmitting off-line file and system | |
CN104221003B (en) | Utilize data de-duplication based on stream of the asynchronous data dictionary in the infrastructure that multi-tenant is shared | |
JP4592749B2 (en) | Session description message extension | |
US8782168B2 (en) | Gateway-assisted file transfer | |
CN108259542B (en) | Resource transmission method and device | |
EP2773080A1 (en) | Sharing control system and method for network resources download information | |
US20170230320A1 (en) | Transmitting Media Content During Instant Messaging | |
CA2901674A1 (en) | Increased data transfer rate method and system for regular internet user | |
Johnson et al. | VillageShare: Facilitating content generation and sharing in rural networks | |
CN104094249B (en) | It is transmitted using the file of XML | |
CN105786952A (en) | Auto-configurable transport stack | |
CN103001964A (en) | Cache acceleration method under local area network environment | |
CN106411842B (en) | Transferring state in a content centric networking stack | |
CN104486327A (en) | Method and client side of communication between pages and long connection servers | |
CN102938775A (en) | Issuing method, system and client of video microblog | |
US8650313B2 (en) | Endpoint discriminator in network transport protocol startup packets | |
CN110519656B (en) | Self-adaptive streaming media playing method, system and server | |
CN100377522C (en) | OMA download realizing method in content distributing network | |
CN105281987B (en) | Router and data uploading method, device, system | |
CN105074688B (en) | Use the data deduplication based on stream of peer node figure | |
US20050055455A1 (en) | Development platform for peer-to-peer applications | |
WO2014072739A1 (en) | Video distribution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |