CN105245578B - Data uploading method, data uploading system and data uploading device - Google Patents
Data uploading method, data uploading system and data uploading device Download PDFInfo
- Publication number
- CN105245578B CN105245578B CN201510580659.3A CN201510580659A CN105245578B CN 105245578 B CN105245578 B CN 105245578B CN 201510580659 A CN201510580659 A CN 201510580659A CN 105245578 B CN105245578 B CN 105245578B
- Authority
- CN
- China
- Prior art keywords
- data
- slice
- client
- received
- server
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000009826 distribution Methods 0.000 claims abstract description 62
- 238000012795 verification Methods 0.000 claims description 50
- 230000005540 biological transmission Effects 0.000 claims description 43
- 238000013507 mapping Methods 0.000 claims description 23
- 238000004891 communication Methods 0.000 claims description 22
- 238000003860 storage Methods 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 17
- 238000005520 cutting process Methods 0.000 claims description 9
- 238000012360 testing method Methods 0.000 claims description 2
- 238000004364 calculation method Methods 0.000 claims 1
- 238000013500 data storage Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 18
- 238000007906 compression Methods 0.000 description 10
- 230000006835 compression Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000003825 pressing Methods 0.000 description 7
- 230000005611 electricity Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000010276 construction Methods 0.000 description 4
- 238000013478 data encryption standard Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013144 data compression Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000001965 increasing effect Effects 0.000 description 2
- 230000002045 lasting effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/564—Enhancement of application control based on intercepted application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
- H04L67/5651—Reducing the amount or size of exchanged application data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a method for uploading data, a data uploading system and a data uploading device. The method comprises the following steps: the method comprises the steps that a cloud server receives sliced data sent by a first content distribution network server, wherein the sliced data are obtained by slicing data to be uploaded by a client of the data to be uploaded, and the first content distribution network is a content distribution server which is determined by the client according to an internet protocol proximity principle and is closest to a base station to which the client belongs; and the cloud server merges the received slice data into the data to be uploaded according to a preset combination strategy. By applying the invention, the success rate of data uploading can be improved.
Description
Technical field
The present invention relates to data transfer of computer technology more particularly to a kind of methods for uploading data, data uploading system
And data uploading device.
Background technique
Currently, current common Mobile operating system such as Android (Android) operating system is easy to operate and conveniently with its
Efficiently characteristic is increasingly received by user, has been widely used in the work and life of user, as Android is grasped
The application program for making to install in system is more and more, and the data volume of generation is also increasing, in order to avoid client failure or different
The mass data often resulted in is irrecoverable or cannot normally use, and ensures the safety of mass data, alternatively, when a user gathers around
There is multiple client, for example, a user may possess one or more mobile phones, personal digital assistant, computer and put down
Plate computer, in order to enable user can be in the data sharing of multiple client, and also to prevent a number in client
According to loss, for example, user's private data such as contact data, note data and message registration data etc., need to client
The data stored in end carry out long-distance Log server, for example, cloud server is upload the data to, in replacement client or reparation visitor
After the failure or exception at family end, user can easily restore data from the upper crossing of cloud server.
Wherein, it upload the data to cloud and restores data from cloud, need to rely on the network environment of client, that is, need
It wants client-based network environment to execute data to upload, for example, mobile client is needed in stable network environment, for example,
Global system for mobile communications (GSM, Global System for Mobile Communication) network or Wireless Fidelity
Carry out data transmission in (WiFi, Wireless Fidelity) network, but since the network environment of mobile client is in continuous
Variation among, for example, network environment locating for mobile client may be from 2G in the lasting moving process of mobile client
Network environment enters 3G network environment, enters back into 4G network environment, alternatively, enter WiFi network environment from 2G network environment, then
Into 3G network environment.In this way, switching into 3G network environment from 2G network environment, alternatively, from 3G network environment changing into
Enter 4G network environment, alternatively, WiFi network environment is switched into from 2G network environment, it, can due to the lasting variation of network environment
Data can be will lead to and go out active in network transmission process, to reduce the success rate of data upload.Further, for
Unsuccessful data are uploaded, need to carry out the unsuccessful data again integrally to upload again based on certain strategy that retries,
Until uploading data success or abandoning uploading data, the network flow of mobile client is increased, to increase user's upload
The cost of data.
Summary of the invention
In view of this, method, data uploading system and data that the embodiment of the present invention provides a kind of upload data upload dress
It sets, improves the success rate that data upload.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of method for uploading data, comprising:
Cloud server receives the slice of data that first content distribution network server is sent, and the slice of data is to upper
The data to be uploaded are carried out the data that slicing treatment obtains by the client for passing data, and the first content distribution network is institute
State the content distributing server nearest with own base station that client is determined according to Internet protocol nearby principle;
The cloud server merges into received slice of data according to pre-set combined strategy described to be uploaded
Data.
Optionally, the combined strategy is the slice mark for including in the received each slice of data of extraction, if extract
Each slice mark is consistent with each slice mark in pre-set data word bank, identifies according to being sliced from as low as big suitable
Slice is identified corresponding slice of data and merged by sequence.
Optionally, received slice of data is merged into institute according to pre-set combined strategy in the cloud server
Before stating data to be uploaded, the method also includes:
The cloud server receives data slicer information, and the received data slicer letter is constructed in slip condition database
The data word bank of mapping is ceased, the data slicer information is the summary info that the data to be uploaded are carried out with slicing treatment, until
The slice including each slice of data identifies less, and the data slicer information is transmitted prior to the slice of data;
The cloud server receives slice of data, will according to the slice mark for including in the received slice of data
The slice of data is placed in the data word bank of the slice identity map;
The cloud server merges into received slice of data according to pre-set combined strategy described to be uploaded
Data, comprising:
The cloud server determine the slice mark that includes in the slice of data being placed in the data word bank with
Each slice stored in the data word bank identifies whether unanimously,, will according to slice mark from as low as big sequence when consistent
Slice identifies corresponding slice of data and merges.
Optionally, after the cloud server receives slice of data, the method also includes:
The cloud server carries out Message Digest Algorithm 5 verification to received slice of data content, if verification
Success executes described the step of identifying according to the slice for including in the received slice of data.
Optionally, the method also includes:
If cloud server verification is unsuccessful, retries strategy notice client according to pre-set or be cached with
The content distributing server of the unsuccessful slice of data of verification uploads the unsuccessful slice of data of verification again.
The method provided in an embodiment of the present invention for uploading data carries out slicing treatment to data to be uploaded by client,
It is multiple slice of data by data cutting to be uploaded, and slice of data is transmitted by setting dedicated network, in this way, can be with
The data volume transmitted every time is reduced, can be effectively reduced the phenomenon that data are lost in network transmission process, data is promoted and uploads
Success rate.
Second aspect, the embodiment of the present invention provide a kind of data uploading system, comprising: client, first content distribute net
Network server and cloud server, wherein
The client is used to carry out slicing treatment to data to be uploaded, the slice of data that progress slicing treatment is obtained
Base station belonging to the client is sent to according to Internet protocol nearby principle;
The first content distribution network server, for receiving the client by cutting described in own base station transmission
Sheet data caches the slice of data, and the received slice of data is transmitted by pre-set dedicated network
To the cloud server;
The cloud server, for the received slice of data to be merged into institute according to pre-set combined strategy
State data to be uploaded.
Optionally, the client includes: slice controller and data link, wherein
The slice controller, for carrying out slicing treatment to the data to be uploaded;
The data link, it is former nearby according to Internet protocol for the slice of data that slicing treatment obtains will to be carried out
Then it is sent to base station belonging to the client.
Optionally, the slice controller includes: signal strength detection unit, query unit and slice unit, wherein
The signal strength detection unit, for detecting network traffic conditions according to pre-set network detection cycle,
Obtain current network communication signal strength;
The query unit, the mapping for inquiring pre-set network communication signal intensity and slice of data threshold value are closed
Assembly obtains the slice of data threshold value of current network communication signal strength mapping;
The slice unit is sliced data to be uploaded according to obtained slice of data threshold value.
Optionally, the first content distribution network server include: receiver, content distributing network inverted cache device with
And transmitter, wherein
The receiver, the slice of data sent for receiving the client by own base station;
The content distributing network inverted cache device, for delaying the received slice of data of the receiver
It deposits;
The transmitter, for the slice of data of caching to be transmitted to the cloud by pre-set dedicated network
Hold server.
Optionally, the transmitter includes: associative cell, the first resolution unit, the first transmission unit, the second resolution unit
And second transmission unit, wherein
The associative cell obtains and the cloud for the domain name according to the cloud server for including in slice of data
The domain name of the associated multiple content delivery network service devices of server;
First resolution unit, for parsing the multiple content delivery network service according to global load balancing principle
The domain name of device therefrom obtains the IP address of first content distribution network server;
First transmission unit, for by content delivery network service device and first content distribution network server it
Between dedicated network, the IP address according to the first content distribution network server transmits received slice of data;
Second resolution unit passes through for the domain name according to the cloud server for including in received slice of data
The parsing of internal proprietary domain name resolution server is cached, the IP address of the cloud server is obtained;
Second transmission unit, the slice of data transmitted and received for the IP address according to obtained cloud server.
Optionally, the cloud server includes: data verifier, data buffer, data backup device and status number
According to library, wherein
The data verifier, slice information, exports to slip condition database, the data slicer information for receiving data
For the summary info that the data to be uploaded are carried out with slicing treatment, identified including at least the slice of each slice of data, the number
It is transmitted according to slice information prior to the slice of data;Slice of data is received, message is carried out to received slice of data content and is plucked
Algorithm the 5th edition verification is wanted, if examined successfully, received slice of data is exported to data buffer, and by the slice of data
Slice mark output to slip condition database;Otherwise, content of announcement the distribution server or client retransmit the slice of data;
The data buffer, for caching received slice of data;
The data backup device, for being cut to what is cached in data buffer after receiving the notice of slip condition database
Sheet data is merged according to pre-set combined strategy;
The slip condition database, slice information, constructs the number of the received data slicer information MAP for receiving data
According to buffer, the data slicer information includes at least slice mark;It receives slice to identify and recorded, compares the number of storage
According to the slice of slice information and record identify, determine slice of data whether end of transmission, if end of transmission, notification data is standby
Part device.
The third aspect, the embodiment of the present invention provide a kind of data uploading device, and described device is applied to cloud server, should
Device includes: slice of data receiving module and merging module, wherein
The slice of data receiving module, for receiving the slice of data of first content distribution network server transmission, institute
It states client that slice of data is data to be uploaded and the data to be uploaded is subjected to the data that slicing treatment obtains, described first
Content distributing network is the content distribution clothes nearest with own base station that the client is determined according to Internet protocol nearby principle
Business device;
The merging module, for according to pre-set combined strategy by received slice of data merge into it is described to
Pass data.
Optionally, the combined strategy is the slice mark for including in the received each slice of data of extraction, if extract
Each slice mark is consistent with each slice mark in pre-set data word bank, identifies according to being sliced from as low as big suitable
Slice is identified corresponding slice of data and merged by sequence.
Optionally, described device further include:
Data slicer information receiving module, slice information, constructs received institute in slip condition database for receiving data
The data word bank of data slicer information MAP is stated, the data slicer information is to carry out slicing treatment to the data to be uploaded
Summary info is identified including at least the slice of each slice of data, and the data slicer information is transmitted prior to the slice of data;
The slice of data receiving module also according to the slice mark for including in the received slice of data, is cut described
Sheet data is placed in the data word bank of the slice identity map;
The merging module determines the slice mark for including in the slice of data being placed in the data word bank and institute
It states each slice stored in data word bank to identify whether unanimously, when consistent, according to slice mark from as low as big sequence, will cut
Piece identifies corresponding slice of data and merges.
Optionally, described device further include:
Data check module, for carrying out Message Digest Algorithm 5 verification to received slice of data content, if
The step of verifying successfully, executing the mark according to the slice for including in the received slice of data.
Optionally, if to be also used to verification unsuccessful for the data check module, to retry strategy logical according to pre-set
Know client or be cached with the content distributing server of the unsuccessful slice of data of the verification, upload again the verification not at
The slice of data of function.
Data uploading device provided in an embodiment of the present invention and data uploading system, by client to data to be uploaded into
Data cutting to be uploaded is multiple slice of data, and passes through the dedicated of set content distribution network server by row slicing treatment
Network transmits slice of data, in this way, it is possible to reduce the data volume transmitted every time can be effectively reduced data and pass in network
The phenomenon that losing during defeated promotes the success rate that data upload.
Fourth aspect, the embodiment of the invention also provides a kind of electronic equipment, may include:
One or more processor;
Memory;
One or more module, one or more of modules store in the memory, when one
Or multiple processors proceed as follows when executing:
Cloud server receives the slice of data that first content distribution network server is sent, and the slice of data is to upper
The data to be uploaded are carried out the data that slicing treatment obtains by the client for passing data, and the first content distribution network is institute
State the content distributing server nearest with own base station that client is determined according to Internet protocol nearby principle;
The cloud server merges into received slice of data according to pre-set combined strategy described to be uploaded
Data.
5th aspect, the embodiment of the invention also provides a kind of storage mediums, described to apply journey for storing application program
Sequence is used to execute a kind of method for uploading data provided by the embodiment of the present invention.
6th aspect, the embodiment of the invention also provides a kind of application programs, are provided for executing the embodiment of the present invention
A kind of upload data method.
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
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the method overall procedure schematic diagram that the embodiment of the present invention uploads data;
Fig. 2 is the method idiographic flow schematic diagram that the embodiment of the present invention uploads data;
Fig. 3 is data of embodiment of the present invention uploading system structural schematic diagram;
Fig. 4 is client terminal structure of embodiment of the present invention schematic diagram;
Fig. 5 is first content of embodiment of the present invention distribution network server architecture schematic diagram;
Fig. 6 is cloud server of embodiment of the present invention structural schematic diagram;
Fig. 7 is data uploading device of embodiment of the present invention structural schematic diagram;
Fig. 8 is data uploading device of embodiment of the present invention concrete structure schematic diagram;
Fig. 9 is the electronic devices structure schematic diagram of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is the method overall procedure schematic diagram that the embodiment of the present invention uploads data.Referring to Fig. 1, this method comprises:
Step 11, cloud server receives the slice of data that first content distribution network server is sent, the number of slices
The data to be uploaded are subjected to the data that slicing treatment obtains, the first content distribution according to the client for data to be uploaded
Network is the content distributing server nearest with own base station that the client is determined according to Internet protocol nearby principle;
Step 12, the cloud server is merged into received slice of data according to pre-set combined strategy described
Data to be uploaded.
In this step, as an alternative embodiment, combined strategy can be the arrangement of logarithm evidence, specifically include extraction and receive
Each slice of data in include slice mark, if extract each slice identify and respectively cutting in pre-set data word bank
Piece mark is consistent, according to slice mark from as low as big sequence, slice is identified corresponding slice of data and is merged.Combination
Strategy further includes encryption and decryption, redundancy, verifying.Optionally, received slice of data is decrypted cloud server, to number of slices
According to being arranged, the data of redundancy are deleted, then carry out data union operation, the data after being then combined with are tested
Card.
As an alternative embodiment, in the cloud server according to pre-set combined strategy by received number of slices
According to before merging into the data to be uploaded, the method also includes:
The cloud server receives data slicer information, and the received data slicer letter is constructed in slip condition database
The data word bank of mapping is ceased, the data slicer information is the summary info that the data to be uploaded are carried out with slicing treatment, until
The slice including each slice of data identifies less, and the data slicer information is transmitted prior to the slice of data;
The cloud server receives slice of data, will according to the slice mark for including in the received slice of data
The slice of data is placed in the data word bank of the slice identity map;
The cloud server merges into received slice of data according to pre-set combined strategy described to be uploaded
Data, comprising:
The cloud server determine the slice mark that includes in the slice of data being placed in the data word bank with
Each slice stored in the data word bank identifies whether unanimously,, will according to slice mark from as low as big sequence when consistent
Slice identifies corresponding slice of data and merges.
As another alternative embodiment, after the cloud server receives slice of data, the method also includes:
The cloud server carries out Message Digest Algorithm 5 verification to received slice of data content, if verification
Success executes described the step of identifying according to the slice for including in the received slice of data.
As yet another alternative embodiment, the method also includes:
If cloud server verification is unsuccessful, retries strategy notice client according to pre-set or be cached with
The content distributing server of the unsuccessful slice of data of verification uploads the unsuccessful slice of data of verification again.
In this step, as an alternative embodiment, retrying strategy includes retrying strategy and consumption under access power supply status
Strategy is retried under electricity condition.Wherein, for access power supply status under retry strategy, can be for first time verification not at
The slice of data of function, the content distributing server that client is arranged or is cached with the unsuccessful slice of data of the verification can be
It executes after shorter reboot time and uploads again, then, with the increase for verifying unsuccessful number, the reboot time of setting is got over
More to grow.And for the strategy that retries under power consumption state, it accordingly verifies the reboot time under unsuccessful number and accesses power supply relatively
Strategy is retried under state, what be can be set is longer, to prevent from excessively consuming the electricity of client.
Fig. 2 is the method idiographic flow schematic diagram that the embodiment of the present invention uploads data.Referring to fig. 2, this method comprises:
Step 101, the slice of data that client is sent by own base station is received, the slice of data is the client
What slicing treatment obtained is carried out to data to be uploaded;
In this step, the slice of data is that the data to be uploaded are carried out slicing treatment by the client of data to be uploaded
Obtained data.Data cutting to be uploaded is multiple slice of data by carrying out slicing treatment to data to be uploaded by client,
In this way, it is possible to reduce the data volume transmitted every time, to can be effectively reduced data in network when network environment persistently changes
The phenomenon that losing in transmission process promotes the success rate that data upload.Further, since each data volume to be transmitted is small,
So that transmission success rate is high, it is then desired to which the data volume retransmitted accordingly reduces, the network flow of client is reduced, to save
About user's cost for uploading data.
In the embodiment of the present invention, slicing treatment can be carried out to data to be uploaded according to fixed data amount of capacity, so that
Each slice of data size that slicing treatment obtains is identical;Data to be uploaded can also be carried out according to dynamic data amount of capacity
Slicing treatment.Thus, as an alternative embodiment, carrying out slicing treatment to data to be uploaded includes:
Data to be uploaded are sliced according to pre-set data slicer threshold value.
In this step, data slicer threshold value can be size of data, can according to actual needs, for example, according to 50k,
The sizes such as 100k or 1M are sliced data to be uploaded.
As another alternative embodiment, carrying out slicing treatment to data to be uploaded also may include:
A11 detects network traffic conditions according to pre-set network detection cycle, it is strong to obtain current network signal of communication
Degree;
In this step, network detection cycle can be configured according to actual needs.For example, can be set to 10 seconds, 30
Second or 1 minute etc..
A12 inquires the mapping relations collection of pre-set network communication signal intensity Yu slice of data threshold value, obtains current
The slice of data threshold value of network communication signal intensity mapping;
In this step, corresponding slice of data threshold value can be arranged according to the network signal intensity of current network, for example,
In the higher situation of network signal intensity, the slice of data threshold value of setting is corresponding also higher, and lower in network signal intensity
In the case where, the slice of data threshold value of setting is accordingly relatively low, in order to adjust slice of data in real time according to network traffic conditions
Size.
A13 is sliced data to be uploaded according to obtained slice of data threshold value.
As an alternative embodiment, after obtaining data to be uploaded or slice of data, this method can also include:
According to the call format of cloud server storing data, format is carried out to the data to be uploaded or slice of data and is turned
It changes.
In this step, by Data Format Transform, the data to be uploaded in client can be converted into cloud server
The data format that can be compatible with improves the efficiency that data upload so as to promote the success rate of data upload.
As another alternative embodiment, this method can also include:
Compression processing is carried out to slice of data.
In this step, the compression algorithm of compression processing includes but is not limited to: Zip compression algorithm, WinRAR compression algorithm etc..
As yet another alternative embodiment, this method can also include:
Using Encryption Algorithm, the slice of data of compression processing is encrypted.
In this step, Encryption Algorithm be combined strategy in a part, comprising: enhancing data confidentiality agreement (AES,
Advanced Encryption Standard), data encryption algorithm (DEA, Data Encryption Algorithm), number
According to encryption standard (DES, Data Encryption Standard) and three layer of data encryption standards (3DES, Triple DES)
Deng.
As yet another alternative embodiment, this method can also include:
Each slice of data or the slice of data of encryption are mapped a task by A21, client, and building includes multiple tasks
Task list;
A22, according to the task list from gauge outfit to the sequence of table tail, the slice of data for successively carrying out duty mapping is long-range
It uploads, and after receiving the successful information of upload, the successful task of long-distance Log server is deleted in the task list.
In this step, in long-distance Log server data, choose task list in the corresponding slice of data of first task or
The slice of data of encryption is transmitted, after the slice of data or the success of the slice of data remote transmission of encryption, from task list
The successful task of middle deletion long-distance Log server.
In the embodiment of the present invention, when remote transmission uploads data, the client can also be carried in slice of data
Mark, client identification includes mobile client mark and fixed clients mark, for mobile client, client identification
It can be International Mobile Equipment Identity code (IMEI, International the Mobile Equipment of client
Identity), and/or, international mobile subscriber identity (IMSI, International Mobile Subscriber
Identification Number), so that in server beyond the clouds, creation has the upload file with client identification, it is used for
Store the data of client upload.For fixed clients, client identification can be the media access control of the client
The address (MAC, Media Access Control).
In the embodiment of the present invention, as an alternative embodiment, before carrying out slicing treatment to data to be uploaded, this method
Can also include:
A31 monitors that user, by the first hot key of key pressing, starts the data upload mould of the client by client
Formula;
In this step, user can preset the hot key of the arq mode in log-on data, set in advance when user presses
When the hot key set, indicate that user needs to start in the data of the client arq mode to carry out data upload.
A32 receives second hot key by key pressing of the user by the client, obtain the client to upper
Pass data.
In this step, can also by the way that the hot key for automatically obtaining data to be uploaded is arranged, when user presses the hot key,
Then client obtains the pre-set data for needing to upload of user automatically.Certainly, in practical application, client can also basis
Pre-set data upload condition, check that currently whether meeting data upload condition obtains the client when meeting
Data to be uploaded.In this way, after receiving user by the second hot key by key pressing of the client, described in acquisition
Before the data to be uploaded of client, this method can be with further include:
Check whether client currently meets pre-set data and upload condition, if so, executing described in the acquisition
The step of data to be uploaded of client, if not, terminating process.
In this step, as an alternative embodiment, data, which upload condition, can be whether client is in network environment,
If client is in network environment, for example, being in wireless fidelity network or GPRS network, it is determined that client currently meets
Pre-set data upload condition.
Preferably, as yet another alternative embodiment, this method can also include:
Received slice of data is cached.
Step 102, received slice of data is transmitted to cloud server so that cloud by pre-set dedicated network
After end server has received the slice of data, received slice of data is merged into data.
In this step, preferably, can be by pre-set first content distribution network (CDN, Content
Delivery Network) slice of data of the server reception from base station.First content distribution network server is client
According to the content distributing server nearest with own base station that Internet protocol nearby principle determines, first content distribution network service
Device needs the data uploaded to be transmitted to first content distribution network server by the preparatory negotiation with base station, by user, and first
Content delivery network service device passes through internal dedicated network again and slice of data is transmitted to destination, i.e. cloud server, from
And it can carry out data transmission to avoid using IP network.Certainly, it in practical application, can be by other pre-set private networks
Network server, for example, hot spot receives the slice of data from base station nearby.It should be noted that the heat in the embodiment of the present invention
Point refers not only to geographical location, also refer to network type.For example, if user is a mobile network user, when the user is moving
During dynamic, hot spot can be converted automatically in the 2g/3g/4g of mobile network and nearest wifi hotspot, that is to say, that
The hot spot of the embodiment of the present invention has deployment for networks of different protocol, and hot spot has dedicated data channel, by difference
Special deployment-specific data-interface in operator's different agreement computer room, and be allowed to be directed toward dedicated data channel.Wherein, for city
City wifi can have the hot spot of special data channel in each urban deployment by IP addressing technology.
In the embodiment of the present invention, user uploads data by IP network at present, generally requires by the road IP network Zhong Duotai
By the transmission of device, since IP network executes the principle done one's best, complex environment and hardware is unreliable in network link
Property, so that data upload out active, phenomena such as delay.And CDN (server) can avoid being possible to influence data on network
The bottleneck and link of transmission speed and stability, make content transmission faster, it is more stable.
In the embodiment of the present invention, it can be placed everywhere according to pre-set region dedicated network placement policies in network
CDN server, alternatively, using existing CDN server, on existing Internet basic, to construct one layer of intelligent virtual net
Network (content distributing network), so as in real time according to the connection of network flow and each server, load state and sound
The slice of data that user is transmitted is redirected into the content nearest from the destination address of slice of data by the integrated informations such as between seasonable
On distribution network server.
In the embodiment of the present invention, as an alternative embodiment, base station can according to IP address nearby principle, to base station most
Close content delivery network service device (upper point of heat transfer) sends slice of data.
In practical application, the slice of data from base station can be received by one or more content delivery network service devices,
And received slice of data difference (parallel) is transmitted to cloud server.
In the embodiment of the present invention, as an alternative embodiment, received slice of data is passed through into pre-set private network
Network is transmitted to cloud server
B11 is obtained associated with the cloud server according to the domain name for the cloud server for including in slice of data
The domain name of multiple content delivery network service devices;
B12 parses the domain name of the multiple content delivery network service device according to global load balancing principle, therefrom obtains
The IP address of first content distribution network server;
B13 passes through the dedicated network between content delivery network service device and first content distribution network server, foundation
The IP address of the first content distribution network server transmits received slice of data;
In this step, for content delivery network service device, dedicated network is content distributing network.
B14, it is internal specially by caching (Cache) according to the domain name for the cloud server for including in received slice of data
It is parsed with domain name resolution server, obtains the IP address of the cloud server;
B15, the slice of data that the IP address according to obtained cloud server transmits and receives.
As an alternative embodiment, in the cloud server according to pre-set combined strategy by received number of slices
According to before merging into the data to be uploaded, the method also includes:
C11, the cloud server receive data slicer information, the received data are constructed in slip condition database
The data word bank of slice information mapping, the data slicer information are that the summary for carrying out slicing treatment to the data to be uploaded is believed
Breath is identified including at least the slice of each slice of data, and the data slicer information is transmitted prior to the slice of data;
In this step, as an alternative embodiment, data slicer information includes: that number of sections, each slice of data are cut
The information such as piece mark and slice of data size.
In the embodiment of the present invention, by data cutting be multiple slice of data after, construct the corresponding data slicer of the data
Information includes the information such as the number of sections of the data, the slice mark of each slice of data and slice of data size, and excellent
It first transmits the data slicer information and constructs the data in slip condition database after cloud server receives the data slicer information
The data word bank of slice information mapping, in the corresponding data slicer of the received data of subsequent middle storage, in data word bank
In, initial storage data slicer information.
Preferably, data word bank can be distinguished with client identification.
C12, the cloud server receives slice of data, according to the slice mark for including in the received slice of data
Know, the slice of data is placed in the data word bank of the slice identity map;
In this step, after receiving a slice of data, eap-message digest can also be carried out to received slice of data content
Algorithm the 5th edition verification, if verified successfully, according to the slice mark for including in received slice of data, by the slice of data
Be placed in it is described slice identity map data word bank in, and record slice of data in data character library slice mark, and/or, tire out
The number of sections of meter.
Further, if verification is unsuccessful, this method further include:
It retries strategy notice client according to pre-set or is cached in the unsuccessful slice of data of the verification
Hold the distribution server, uploads the unsuccessful slice of data of verification again.
In this step, as an alternative embodiment, retrying strategy includes retrying strategy and consumption under access power supply status
Strategy is retried under electricity condition.Wherein, for access power supply status under retry strategy, can be for first time verification not at
The slice of data of function, the content distributing server that client is arranged or is cached with the unsuccessful slice of data of the verification can be
It executes after shorter reboot time and uploads again, then, with the increase for verifying unsuccessful number, the reboot time of setting is got over
More to grow.And for the strategy that retries under power consumption state, it accordingly verifies the reboot time under unsuccessful number and accesses power supply relatively
Strategy is retried under state, what be can be set is longer, to prevent from excessively consuming the electricity of client.
In the embodiment of the present invention, by compare storage data slicer information and record slice mark, and/or, tire out
The number of sections information of meter, available data mode difference, i.e. also how many slice of data do not receive, corresponding to be sliced
Mark is how many.
The cloud server merges into received slice of data according to pre-set combined strategy described to be uploaded
Data, comprising:
C13, the cloud server determine the slice mark for including in the slice of data being placed in the data word bank
Know and identified whether with each slice stored in the data word bank consistent, when consistent, identifies according to slice from as low as big suitable
Slice is identified corresponding slice of data and merged by sequence.
In this step, slice mark verification is a part in combined strategy, by extracting in received each slice of data
The slice mark for including, if each slice mark extracted is consistent with each slice mark in pre-set data word bank,
According to slice mark from as low as big sequence, slice is identified into corresponding slice of data and is merged.I.e. cloud server determines
The slice mark for including in the slice of data being placed in the data word bank and each slice stored in the data word bank
It identifies whether unanimously, when consistent, according to slice mark from as low as big sequence, slice is identified into corresponding slice of data progress
Merge.
As an alternative embodiment, if all slices mark in the data slicer information of storage is cut with storage respectively
The slice mark of sheet data matches, then can determine and receive the corresponding all slice of data of data in data word bank.
From the foregoing, it can be seen that the method that the embodiment of the present invention uploads data, is sliced data to be uploaded by client
Data cutting to be uploaded is multiple slice of data, in this way by processing, it is possible to reduce the data volume transmitted every time is further led to
It crosses set content distribution network server to transmit slice of data, due to the stability of content distributing network, thus in IP
When network environment persistently changes, the phenomenon that data are lost in network transmission process can be effectively reduced, promote what data uploaded
Success rate.Further, since each data volume to be transmitted is small, so that transmission success rate is high, it is then desired to the data retransmitted
Amount is corresponding to be reduced, and the network flow of client is reduced, to save the cost that user uploads data.
Fig. 3 is the data uploading system structural schematic diagram of the embodiment of the present invention.Referring to Fig. 3, which includes: client
201, first content distribution network server 202 and cloud server 203, wherein
Client 201, for carrying out slicing treatment to data to be uploaded, will carry out the obtained slice of data of slicing treatment according to
Base station belonging to the client is sent to according to Internet protocol nearby principle;
In the embodiment of the present invention, as an alternative embodiment, client 201 includes: slice controller and data transmission
Device, wherein
The slice controller, for carrying out slicing treatment to the data to be uploaded;
The data link, it is former nearby according to Internet protocol for the slice of data that slicing treatment obtains will to be carried out
Then it is sent to base station belonging to the client.
As an alternative embodiment, being sliced controller includes: signal strength detection unit, query unit and slice unit
(not shown), wherein
The signal strength detection unit, for detecting network traffic conditions according to pre-set network detection cycle,
Obtain current network communication signal strength;
The query unit, the mapping for inquiring pre-set network communication signal intensity and slice of data threshold value are closed
Assembly obtains the slice of data threshold value of current network communication signal strength mapping;
The slice unit is sliced data to be uploaded according to obtained slice of data threshold value.
In the embodiment of the present invention, slice controller can also include:
Format conversion unit, for the call format according to the cloud server storing data, to the number to be uploaded
According to or slice of data format.
As another alternative embodiment, being sliced controller can also include:
Data compression unit, for carrying out compression processing to slice of data.
As yet another alternative embodiment, being sliced controller can also include:
DEU data encryption unit encrypts the slice of data of compression processing for utilizing Encryption Algorithm.
As yet another alternative embodiment, being sliced controller can also include: that task list construction unit and task are deleted
Unit, wherein
Task list construction unit, for the slice of data of each slice of data or encryption to be mapped a task, building packet
Task list containing multiple tasks;
Task deletes unit, for, from gauge outfit to the sequence of table tail, successively carrying out duty mapping according to the task list
Slice of data long-distance Log server, and after receiving and uploading successful information, deleted in the task list long-distance Log server at
The task of function.
As another alternative embodiment, which can also include: the first monitor and the second monitor (figure
In be not shown), wherein
First monitor, for monitor user by client by the first hot key of key pressing after, start the visitor
Arq mode in the data at family end;
Second monitor, for obtaining after receiving user by the second hot key by key pressing of the client
The data to be uploaded of the client.
As yet another alternative embodiment, which can also include:
Condition detector (not shown) uploads item for checking whether client currently meets pre-set data
Part, if so, the second monitor is notified, if not, terminating process.
First content distribution network server 202, for receiving the client by cutting described in own base station transmission
Sheet data caches the slice of data, and the received slice of data is transmitted by pre-set dedicated network
To the cloud server;
In practical application, the quantity of first content distribution network server 202 is one or more.The embodiment of the present invention
In, it include a content distributing network inverted cache device in each content delivery network service device, for caching received slice
Data.
As an alternative embodiment, first content distribution network server 202 includes: that receiver, content distributing network are anti-
To buffer and transmitter (not shown), wherein
The receiver, the slice of data sent for receiving the client by own base station;
The content distributing network inverted cache device, for delaying the received slice of data of the receiver
It deposits;
The transmitter, for the slice of data of caching to be transmitted to the cloud by pre-set dedicated network
Hold server.
In the embodiment of the present invention, as an alternative embodiment, transmitter includes: associative cell, the first resolution unit, first
Transmission unit, the second resolution unit and the second transmission unit, wherein
The associative cell obtains and the cloud for the domain name according to the cloud server for including in slice of data
The domain name of the associated multiple content delivery network service devices of server;
First resolution unit, for parsing the multiple content delivery network service according to global load balancing principle
The domain name of device therefrom obtains the IP address of first content distribution network server;
First transmission unit, for by content delivery network service device and first content distribution network server it
Between dedicated network, the IP address according to the first content distribution network server transmits received slice of data;
Second resolution unit passes through for the domain name according to the cloud server for including in received slice of data
The parsing of internal proprietary domain name resolution server is cached, the IP address of the cloud server is obtained;
Second transmission unit, the slice of data transmitted and received for the IP address according to obtained cloud server.
Cloud server 203, for the received slice of data to be merged into institute according to pre-set combined strategy
State data to be uploaded.
In the embodiment of the present invention, as an alternative embodiment, cloud server 203 includes: data verifier, data buffer storage
Device, data backup device and slip condition database, wherein
The data verifier, slice information, exports to slip condition database, the data slicer information for receiving data
For the summary info that the data to be uploaded are carried out with slicing treatment, identified including at least the slice of each slice of data, the number
It is transmitted according to slice information prior to the slice of data;Slice of data is received, message is carried out to received slice of data content and is plucked
Algorithm the 5th edition verification is wanted, if examined successfully, received slice of data is exported to data buffer, and by the slice of data
Slice mark output to slip condition database;Otherwise, content of announcement the distribution server or client retransmit the slice of data;
The data buffer, for caching received slice of data;
The data backup device, for being cut to what is cached in data buffer after receiving the notice of slip condition database
Sheet data is merged according to pre-set combined strategy;
The slip condition database, slice information, constructs the number of the received data slicer information MAP for receiving data
According to buffer, the data slicer information includes at least slice mark;It receives slice to identify and recorded, compares the number of storage
According to the slice of slice information and record identify, determine slice of data whether end of transmission, if end of transmission, notification data is standby
Part device.
Fig. 4 is client terminal structure of embodiment of the present invention schematic diagram.Referring to fig. 4, which includes: slice controller 301
And data link 302, wherein
It is sliced controller 301, for carrying out slicing treatment to data to be uploaded;
Data link 302 is sent out for that will carry out the slice of data that slicing treatment obtains according to Internet protocol nearby principle
It send to base station belonging to the client.
As an alternative embodiment, being sliced controller 301 includes: signal strength detection unit, query unit and slice
Unit (not shown), wherein
The signal strength detection unit, for detecting network traffic conditions according to pre-set network detection cycle,
Obtain current network communication signal strength;
The query unit, the mapping for inquiring pre-set network communication signal intensity and slice of data threshold value are closed
Assembly obtains the slice of data threshold value of current network communication signal strength mapping;
The slice unit is sliced data to be uploaded according to obtained slice of data threshold value.
In the embodiment of the present invention, slice controller 301 can also include:
Format conversion unit, for the call format according to cloud server storing data, to the data to be uploaded or
Slice of data formats.
As another alternative embodiment, being sliced controller 301 can also include:
Data compression unit, for carrying out compression processing to slice of data.
As yet another alternative embodiment, being sliced controller 301 can also include:
DEU data encryption unit encrypts the slice of data of compression processing for utilizing Encryption Algorithm.
As yet another alternative embodiment, being sliced controller 301 can also include: that task list construction unit and task are deleted
Except unit, wherein
Task list construction unit, for the slice of data of each slice of data or encryption to be mapped a task, building packet
Task list containing multiple tasks;
Task deletes unit, for, from gauge outfit to the sequence of table tail, successively carrying out duty mapping according to the task list
Slice of data long-distance Log server, and after receiving and uploading successful information, deleted in the task list long-distance Log server at
The task of function.
As another alternative embodiment, the client can also include: the first monitor and the second monitor (in figure not
Show), wherein
First monitor, for monitor user by client by the first hot key of key pressing after, start the visitor
Arq mode in the data at family end;
Second monitor, for obtaining after receiving user by the second hot key by key pressing of the client
The data to be uploaded of the client.
As yet another alternative embodiment, which can also include:
Condition detector (not shown) uploads item for checking whether client currently meets pre-set data
Part, if so, the second monitor is notified, if not, terminating process.
Fig. 5 is first content of embodiment of the present invention distribution network server architecture schematic diagram.Referring to Fig. 5, the first content
Distribution network server includes: receiver 401, content distributing network inverted cache device 402 and transmitter 403, wherein
Receiver 401, the slice of data sent for receiving client by own base station;
Content distributing network inverted cache device 402, for caching the received slice of data of receiver;
Transmitter 403, for the slice of data of caching to be transmitted to cloud server by pre-set dedicated network.
In the embodiment of the present invention, as an alternative embodiment, transmitter 403 include: associative cell, the first resolution unit,
First transmission unit, the second resolution unit and the second transmission unit (not shown), wherein
The associative cell obtains and the cloud for the domain name according to the cloud server for including in slice of data
The domain name of the associated multiple content delivery network service devices of server;
First resolution unit, for parsing the multiple content delivery network service according to global load balancing principle
The domain name of device therefrom obtains the IP address of first content distribution network server;
First transmission unit, for by content delivery network service device and first content distribution network server it
Between dedicated network, the IP address according to the first content distribution network server transmits received slice of data;
Second resolution unit passes through for the domain name according to the cloud server for including in received slice of data
The parsing of internal proprietary domain name resolution server is cached, the IP address of the cloud server is obtained;
Second transmission unit, the slice of data transmitted and received for the IP address according to obtained cloud server.
Fig. 6 is cloud server of embodiment of the present invention structural schematic diagram.Referring to Fig. 6, which includes: data school
Test device 501, data buffer 502, data backup device 503 and slip condition database 504, wherein
Data verifier 501, slice information, exports to slip condition database 504 for receiving data;Slice of data is received,
Message Digest Algorithm 5 verification is carried out to received slice of data content, if examined successfully, by received slice of data
It exports to data buffer 502, and the slice of slice of data mark is exported to slip condition database 504;Otherwise, content of announcement
The distribution server or client retransmit the slice of data;
Data buffer 502, for caching received slice of data;
Data backup device 503, for after the notice for receiving slip condition database 504, to being cached in data buffer 502
Slice of data merged according to pre-set combined strategy;
Slip condition database 504, slice information, constructs the data of the received data slicer information MAP for receiving data
Buffer, the data slicer information include at least slice mark;It receives slice to identify and recorded, compares the data of storage
The slice of slice information and record mark, determine slice of data whether end of transmission, if end of transmission, notification data backup
Device 503.
Fig. 7 is data uploading device of embodiment of the present invention structural schematic diagram.Referring to Fig. 7, which is applied to cloud service
Device, comprising: slice of data receiving module 61 and merging module 62, wherein
The slice of data receiving module 61, for receiving the slice of data of first content distribution network server transmission,
The slice of data is that the data to be uploaded are carried out the data that slicing treatment obtains by the client of data to be uploaded, described the
One content distributing network is the content distribution nearest with own base station that the client is determined according to Internet protocol nearby principle
Server;
The merging module 62, for according to pre-set combined strategy by received slice of data merge into it is described to
Upload data.
In the embodiment of the present invention, the combined strategy is to extract the slice mark for including in received each slice of data, such as
Each slice mark that fruit is extracted is consistent with each slice mark in pre-set data word bank, according to slice mark from as low as
Slice is identified corresponding slice of data and merged by big sequence.
Fig. 8 is data uploading device of embodiment of the present invention concrete structure schematic diagram.Referring to Fig. 8, which is applied to cloud
Server, including slice of data receiving module 61 shown in Fig. 7 and merging module 62, wherein described device further include:
Data slicer information receiving module 63, slice information, constructs received in slip condition database for receiving data
The data word bank of the data slicer information MAP, the data slicer information are to carry out slicing treatment to the data to be uploaded
Summary info, identified including at least the slice of each slice of data, the data slicer information passes prior to the slice of data
It is defeated;
The slice of data receiving module also according to the slice mark for including in the received slice of data, is cut described
Sheet data is placed in the data word bank of the slice identity map;
The merging module determines the slice mark for including in the slice of data being placed in the data word bank and institute
It states each slice stored in data word bank to identify whether unanimously, when consistent, according to slice mark from as low as big sequence, will cut
Piece identifies corresponding slice of data and merges.
As another alternative embodiment, described device further include:
Data check module 64, for carrying out Message Digest Algorithm 5 verification to received slice of data content, such as
The step of fruit verifies successfully, executes the mark according to the slice for including in the received slice of data.
In the embodiment of the present invention, if to be also used to verification unsuccessful for the data check module, according to pre-set heavy
Examination strategy notice client or the content distributing server for being cached with the unsuccessful slice of data of verification, again described in upload
Verify unsuccessful slice of data.
The embodiment of the invention also provides a kind of electronic equipment, are the electronic equipment of the embodiment of the present invention referring to Fig. 9, Fig. 9
Structural schematic diagram may include:
One or more processor 71;
Memory 72;
One or more module 73, one or more of modules 73 are stored in the memory 72, when by institute
It states when one or more processor 71 executes and proceeds as follows:
Cloud server receives the slice of data that first content distribution network server is sent, and the slice of data is to upper
The data to be uploaded are carried out the data that slicing treatment obtains by the client for passing data, and the first content distribution network is institute
State the content distributing server nearest with own base station that client is determined according to Internet protocol nearby principle;
The cloud server merges into received slice of data according to pre-set combined strategy described to be uploaded
Data.
The embodiment of the invention also provides a kind of storage mediums, and for storing application program, the application program is for holding
A kind of method uploading data provided by the row embodiment of the present invention.
The embodiment of the invention also provides a kind of application programs, for executing a kind of upload provided by the embodiment of the present invention
The method of data.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist
Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention
Method described in part.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (11)
1. a kind of method for uploading data, which is characterized in that this method comprises:
Cloud server receives the slice of data that first content distribution network server is sent, and the slice of data is number to be uploaded
According to client according to pre-set network detection cycle detect network traffic conditions, it is strong to obtain current network signal of communication
Degree, and the mapping relations collection of pre-set network communication signal intensity Yu slice of data threshold value is inquired, it is logical to obtain current network
The slice of data threshold value for believing signal strength mapping, carries out the data to be uploaded at slice according to obtained slice of data threshold value
Manage obtained data, the first content distribution network be the client determined according to Internet protocol nearby principle with it is affiliated
The nearest content distributing server in base station;
The cloud server carries out Message Digest Algorithm 5 verification to received slice of data content;
If verified successfully, received slice of data is stored in slip condition database by the cloud server, and according to preparatory
Received slice of data is merged into the data to be uploaded by the combined strategy of setting;
If verification is unsuccessful, the cloud server retries strategy notice client or is cached with described according to pre-set
The content distributing server of unsuccessful slice of data is verified, uploads the unsuccessful slice of data of verification again;It is described heavy
Examination strategy includes that retrying under access power supply status retries strategy under tactful and power consumption state, wherein the access power supply
The strategy that retries under state is: for verifying unsuccessful slice of data for the first time, client is arranged or being cached with the verification
The content distributing server of unsuccessful slice of data is executed after shorter reboot time and is uploaded again, then, with verification
The increase of unsuccessful number, reboot time are increasingly longer;The strategy that retries under the power consumption state accordingly verifies unsuccessful time
Retrying under the opposite access power supply status of reboot time under several is tactful longer.
2. the method according to claim 1, wherein the combined strategy is to extract in received each slice of data
The slice mark for including, if each slice mark extracted is consistent with each slice mark in pre-set data word bank,
According to slice mark from as low as big sequence, slice is identified into corresponding slice of data and is merged.
3. according to the method described in claim 2, it is characterized in that, in the cloud server to received slice of data content
Before carrying out Message Digest Algorithm 5 verification, the method also includes:
The cloud server receives data slicer information, and the received data slicer information is constructed in slip condition database and is reflected
The data word bank penetrated, the data slicer information are the summary info that the data to be uploaded are carried out with slicing treatment, are at least wrapped
The slice mark of each slice of data is included, the data slicer information is transmitted prior to the slice of data;
The cloud server receives slice of data;
Received slice of data is stored in slip condition database by the cloud server, comprising:
According to the slice mark for including in the received slice of data, the slice of data is placed in the slice identity map
Data word bank in;
Received slice of data is merged into the data to be uploaded according to pre-set combined strategy by the cloud server,
Include:
The cloud server determine the slice mark that includes in the slice of data being placed in the data word bank with it is described
Each slice stored in data word bank identifies whether unanimously, when consistent, according to slice mark from as low as big sequence, will be sliced
Corresponding slice of data is identified to merge.
4. a kind of data uploading system, which is characterized in that the system include: client, first content distribution network server with
And cloud server, wherein
The client is used to carry out slicing treatment to data to be uploaded, the slice of data foundation that progress slicing treatment is obtained
Internet protocol nearby principle is sent to base station belonging to the client;
The first content distribution network server, the number of slices sent for receiving the client by own base station
According to the slice of data is cached, the received slice of data is transmitted to institute by pre-set dedicated network
State cloud server;
The cloud server, for carrying out Message Digest Algorithm 5 verification to received slice of data content;If school
Success is tested, the received slice of data is merged into the data to be uploaded according to pre-set combined strategy;If school
It tests unsuccessful, retries strategy notice client according to pre-set or be cached in the unsuccessful slice of data of the verification
Hold the distribution server, uploads the unsuccessful slice of data of verification again;The strategy that retries includes under access power supply status
Retry and retry strategy under strategy and power consumption state, wherein the strategy that retries under the access power supply status is: for the
Unsuccessful slice of data is once verified, client is set or is cached with the content distribution of the unsuccessful slice of data of verification
Server is executed after shorter reboot time and is uploaded again, then, with the increase for verifying unsuccessful number, reboot time
It is increasingly longer;The reboot time that strategy accordingly verifies under unsuccessful number that retries under the power consumption state accesses power supply shape relatively
Retrying under state is tactful longer;
Wherein, the client includes: slice controller and data link, wherein
The slice controller, for carrying out slicing treatment to the data to be uploaded;
The data link is sent out for that will carry out the slice of data that slicing treatment obtains according to Internet protocol nearby principle
It send to base station belonging to the client;
Wherein, the slice controller includes: signal strength detection unit, query unit and slice unit, wherein
The signal strength detection unit is obtained for detecting network traffic conditions according to pre-set network detection cycle
Current network communication signal strength;
The query unit, for inquiring the mapping relations of pre-set network communication signal intensity and slice of data threshold value
Collection obtains the slice of data threshold value of current network communication signal strength mapping;
The slice unit is sliced data to be uploaded according to obtained slice of data threshold value.
5. system according to claim 4, which is characterized in that the first content distribution network server includes: to receive
Device, content distributing network inverted cache device and transmitter, wherein
The receiver, the slice of data sent for receiving the client by own base station;
The content distributing network inverted cache device, for caching the received slice of data of the receiver;
The transmitter takes for the slice of data of caching to be transmitted to the cloud by pre-set dedicated network
Business device.
6. system according to claim 5, which is characterized in that the transmitter includes: associative cell, the first parsing list
Member, the first transmission unit, the second resolution unit and the second transmission unit, wherein
The associative cell obtains and the cloud service for the domain name according to the cloud server for including in slice of data
The domain name of the associated multiple content delivery network service devices of device;
First resolution unit, for parsing the multiple content delivery network service device according to global load balancing principle
Domain name therefrom obtains the IP address of the first content distribution network server;
First transmission unit, for by between content delivery network service device and first content distribution network server
Dedicated network, the IP address according to the first content distribution network server transmit received slice of data;
Second resolution unit passes through caching for the domain name according to the cloud server for including in received slice of data
The parsing of internal proprietary domain name resolution server, obtains the IP address of the cloud server;
Second transmission unit, the slice of data transmitted and received for the IP address according to obtained cloud server.
7. according to the described in any item systems of claim 4 to 6, which is characterized in that the cloud server includes: data check
Device, data buffer, data backup device and slip condition database, wherein
The data verifier, slice information, output to slip condition database, the data slicer information are pair for receiving data
The data to be uploaded carry out the summary info of slicing treatment, identify including at least the slice of each slice of data, the data are cut
Piece information is transmitted prior to the slice of data;Slice of data is received, eap-message digest calculation is carried out to received slice of data content
Method the 5th edition verification, if examined successfully, received slice of data is exported to data buffer, and cutting the slice of data
Piece mark is exported to slip condition database;Otherwise, content of announcement the distribution server or client retransmit the slice of data;
The data buffer, for caching received slice of data;
The data backup device, for after receiving the notice of slip condition database, to the number of slices cached in data buffer
It is merged according to according to pre-set combined strategy;
The slip condition database, slice information, the data for constructing the received data slicer information MAP are slow for receiving data
Storage, the data slicer information include at least slice mark;It receives slice to identify and recorded, the data for comparing storage are cut
The slice of piece information and record mark, determine slice of data whether end of transmission, if end of transmission, notification data backup
Device.
8. a kind of data uploading device, which is characterized in that described device is applied to cloud server, and described device includes: slice
Data reception module and data check module, merging module, wherein
The slice of data receiving module, it is described to cut for receiving the slice of data of first content distribution network server transmission
Sheet data is that the client of data to be uploaded detects network traffic conditions according to pre-set network detection cycle, is obtained current
Network communication signal intensity, and the mapping relations collection of pre-set network communication signal intensity Yu slice of data threshold value is inquired,
The slice of data threshold value of current network communication signal strength mapping is obtained, it will be described to be uploaded according to obtained slice of data threshold value
Data carry out the data that slicing treatment obtains, and the first content distribution network is that the client is former nearby according to Internet protocol
The content distributing server nearest with own base station then determined;
The data check module, for carrying out Message Digest Algorithm 5 verification to received slice of data content, if
It verifies successfully, received slice of data is stored in slip condition database by the slice of data receiving module;The data check
Module retries strategy notice client or is cached with the verification not if it is unsuccessful to be also used to verification according to pre-set
The content distributing server of successful slice of data uploads the unsuccessful slice of data of verification again;It is described to retry strategy
Strategy is retried under tactful and power consumption state including retrying under access power supply status, wherein under the access power supply status
The strategy that retries be: for verifying unsuccessful slice of data for the first time, client is set or to be cached with the verification unsuccessful
The content distributing server of slice of data execute after shorter reboot time and upload again, it is then, unsuccessful with verifying
Number increase, reboot time is increasingly longer;The strategy that retries under the power consumption state accordingly verifies under unsuccessful number
Retrying under the opposite access power supply status of reboot time is tactful longer;
The merging module, for received slice of data to be merged into the number to be uploaded according to pre-set combined strategy
According to.
9. device according to claim 8, which is characterized in that the combined strategy is to extract in received each slice of data
The slice mark for including, if each slice mark extracted is consistent with each slice mark in pre-set data word bank,
According to slice mark from as low as big sequence, slice is identified into corresponding slice of data and is merged.
10. device according to claim 9, which is characterized in that described device further include:
Data slicer information receiving module, slice information, constructs the received number in slip condition database for receiving data
According to the data word bank that slice information maps, the data slicer information is that the data to be uploaded are carried out with the summary of slicing treatment
Information is identified including at least the slice of each slice of data, and the data slicer information is transmitted prior to the slice of data;
The slice of data receiving module is also according to the slice mark for including in the received slice of data, by the number of slices
According to be placed in it is described slice identity map data word bank in;
The merging module determines the slice mark for including in the slice of data being placed in the data word bank and the number
It identifies whether unanimously according to each slice stored in word bank, when consistent, according to slice mark from as low as big sequence, slice is marked
Know corresponding slice of data to merge.
11. a kind of electronic equipment characterized by comprising
One or more processor;
Memory;
One or more module, the storage of one or more of modules in the memory, when by one or
Multiple processors proceed as follows when executing:
Cloud server receives the slice of data that first content distribution network server is sent, and the slice of data is number to be uploaded
According to client according to pre-set network detection cycle detect network traffic conditions, it is strong to obtain current network signal of communication
Degree, and the mapping relations collection of pre-set network communication signal intensity Yu slice of data threshold value is inquired, it is logical to obtain current network
The slice of data threshold value for believing signal strength mapping, carries out the data to be uploaded at slice according to obtained slice of data threshold value
Manage obtained data, the first content distribution network be the client determined according to Internet protocol nearby principle with it is affiliated
The nearest content distributing server in base station;
The cloud server carries out Message Digest Algorithm 5 verification to received slice of data content;
If verified successfully, received slice of data is stored in slip condition database by the cloud server, and according to preparatory
Received slice of data is merged into the data to be uploaded by the combined strategy of setting;
If cloud server verification is unsuccessful, retries strategy notice client according to pre-set or be cached with described
The content distributing server of unsuccessful slice of data is verified, uploads the unsuccessful slice of data of verification again;It is described heavy
Examination strategy includes that retrying under access power supply status retries strategy under tactful and power consumption state, wherein the access power supply
The strategy that retries under state is: for verifying unsuccessful slice of data for the first time, client is arranged or being cached with the verification
The content distributing server of unsuccessful slice of data is executed after shorter reboot time and is uploaded again, then, with verification
The increase of unsuccessful number, reboot time are increasingly longer;The strategy that retries under the power consumption state accordingly verifies unsuccessful time
Retrying under the opposite access power supply status of reboot time under several is tactful longer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510580659.3A CN105245578B (en) | 2015-09-11 | 2015-09-11 | Data uploading method, data uploading system and data uploading device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510580659.3A CN105245578B (en) | 2015-09-11 | 2015-09-11 | Data uploading method, data uploading system and data uploading device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105245578A CN105245578A (en) | 2016-01-13 |
CN105245578B true CN105245578B (en) | 2019-06-07 |
Family
ID=55043076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510580659.3A Expired - Fee Related CN105245578B (en) | 2015-09-11 | 2015-09-11 | Data uploading method, data uploading system and data uploading device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105245578B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3286946B1 (en) * | 2016-07-04 | 2020-02-19 | Apple Inc. | Network slice selection |
CN108024270B (en) * | 2016-11-03 | 2021-09-14 | 华为技术有限公司 | Information sending method, unit and system |
WO2018088026A1 (en) * | 2016-11-11 | 2018-05-17 | ソニー株式会社 | Transmission device, transmission method, and content distribution system |
CN107612972A (en) * | 2017-08-17 | 2018-01-19 | 深圳市优品壹电子有限公司 | Date storage method and device |
CN110213780A (en) * | 2018-02-28 | 2019-09-06 | 中兴通讯股份有限公司 | Management method, management and the layout entity and storage medium of network slice |
CN109982160A (en) * | 2019-04-09 | 2019-07-05 | 北京奇艺世纪科技有限公司 | A kind of method, apparatus, client device and server that video uploads |
CN110166457A (en) * | 2019-05-22 | 2019-08-23 | 泉后(深圳)科技有限公司 | A kind of advertisement machine information issuing method and its device |
CN110213623B (en) * | 2019-06-03 | 2021-08-06 | 上海哔哩哔哩科技有限公司 | Video uploading method, video uploading device and computer readable storage medium |
CN112769883A (en) * | 2019-11-01 | 2021-05-07 | 科美诊断技术股份有限公司 | Consumable data uploading method and device |
CN111147332B (en) * | 2019-12-29 | 2022-04-29 | 北京浪潮数据技术有限公司 | Method, system and related device for determining uploading progress of cloud backup of storage system |
CN111598267B (en) * | 2020-05-19 | 2023-09-29 | 徐州徐工挖掘机械有限公司 | Engineering machine, working data verification method, device and system thereof and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729586A (en) * | 2008-10-24 | 2010-06-09 | 中国移动通信集团广东有限公司 | Data uploading method and device, data downloading method and device as well as data transmission method and device |
CN102710630A (en) * | 2012-05-29 | 2012-10-03 | 新华网股份有限公司 | Cloud upload and download method and system of multi-threaded slice |
CN103188132A (en) * | 2011-12-29 | 2013-07-03 | 腾讯科技(深圳)有限公司 | Instant messaging method and system based on content distribution network (CDN) |
CN103873505A (en) * | 2012-12-12 | 2014-06-18 | 中国电信股份有限公司 | Method, system and device for offline uploading to cloud storage server |
-
2015
- 2015-09-11 CN CN201510580659.3A patent/CN105245578B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101729586A (en) * | 2008-10-24 | 2010-06-09 | 中国移动通信集团广东有限公司 | Data uploading method and device, data downloading method and device as well as data transmission method and device |
CN103188132A (en) * | 2011-12-29 | 2013-07-03 | 腾讯科技(深圳)有限公司 | Instant messaging method and system based on content distribution network (CDN) |
CN102710630A (en) * | 2012-05-29 | 2012-10-03 | 新华网股份有限公司 | Cloud upload and download method and system of multi-threaded slice |
CN103873505A (en) * | 2012-12-12 | 2014-06-18 | 中国电信股份有限公司 | Method, system and device for offline uploading to cloud storage server |
Also Published As
Publication number | Publication date |
---|---|
CN105245578A (en) | 2016-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105245578B (en) | Data uploading method, data uploading system and data uploading device | |
US20210036907A1 (en) | Methods and apparatuses for pushing a message | |
CN105120530B (en) | Method and device for acquiring data and data acquisition system | |
CN105095022B (en) | Data backup method and device | |
CN107743130B (en) | Fingerprint matching method, device and system | |
WO2016180182A1 (en) | Service package recommendation method and device | |
CN104852925A (en) | Method for leakproof, secure storage and backup of data of mobile smart terminal | |
CN104320410A (en) | All-service CDN system based on HTTP and working method thereof | |
WO2020028602A3 (en) | Method and system for a network presence platform with intelligent routing | |
CA2549973A1 (en) | Method and apparatus for personalization and identity management | |
CN102170479A (en) | Updating method of Web buffer and updating device of Web buffer | |
CN105515847A (en) | Terminal fault processing method, device and system | |
CN106101264B (en) | Content distributing network log method for pushing, device and system | |
CN104410692A (en) | Method and system for uploading duplicated files | |
CN105912422A (en) | Data backup method, backup client and data backup system | |
CN105391524B (en) | QAR datamation management method and system | |
CN108347463A (en) | A kind of terminal document method for uploading | |
CN109413219A (en) | A kind of domain name analytic method and device, server and storage medium | |
CN106899564B (en) | Login method and device | |
CN110022223A (en) | A kind of network slice configuration method, the first network element and the second network element | |
CN104954431A (en) | Network selection method, device and system | |
CN109525622A (en) | The generation method of fragment resource ID, resource sharing method, device and electronic equipment | |
AU2002307887A1 (en) | Method, system and device for service selection via a wireless local area network | |
CN105812833A (en) | File processing method and device | |
CN111355785A (en) | FTP (File transfer protocol) secure transmission system and method based on CMSP (China Mobile protocol service) |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190607 |
|
CF01 | Termination of patent right due to non-payment of annual fee |