Document handling method, apparatus and system
Technical field
The present invention relates to the communications field, in particular to the method, apparatus and system of a kind of file process.
Background technique
With the development of network communication technology, MAG (Mobile Access Gateway, Mobile Access Gateway) is obtained
It is widely applied, MAG is a kind of equipment for being connectable to network.It is set on the means of transportation such as bus, taxi or train
Be equipped with MAG, and MAG can with cache file data, client can on means of transportation by MAG be connected to network or
File data needed for being obtained on MAG.
In the prior art, when the file data needed for client needs to obtain on means of transportation, client is first to MAG
Access request is issued, MAG detects in MAG whether be cached with file data needed for client according to the access request of client, if
It is that file data needed for client is sent to client by MAG.If it is not, then MAG submits access request to server and carries out institute
Need the downloading of file data.It is biggish when being downloaded compared with multi-client by MAG due to the limitation of network bandwidth in practical application
When file data, biggish uplink network bandwidth can be occupied, to influence the transmission of lesser file data.In the prior art,
Uplink network bandwidth needed for being less than biggish file data transfer using the transmission setting to biggish file data, to limit
The uplink network bandwidth that biggish file data transfer occupies is made, reduces what biggish file data occupied during transmission
Uplink network bandwidth.
Due to the uplink network bandwidth of biggish file data transfer being limited, so that biggish when downloading file data
The transmission rate of file data reduces, and the download time of large file increases, and causes for a long time to account for uplink network bandwidth
With, not only the download efficiency of big file is lower, but also influences the downloading of small documents, so, the low efficiency of file data transfer is used
Family experience is poor.
Summary of the invention
In order to solve the problem of the low efficiency poor user experience of file data transfer, the present invention provides at a kind of file
The method, apparatus and system of reason.The technical solution is as follows:
In a first aspect, providing a kind of document handling method, it is applied to Mobile Access Gateway MAG, which comprises
In the upstream Interface congestion of the MAG, data volume is greater than the big file of the first data value according to the second data
Value is divided into the multiple small documents successively arranged, and the data volume of each small documents is less than or equal to second data value,
Second data value is less than or equal to first data value;
Download the corresponding file data of the multiple small documents;
According to the document order of the multiple small documents, the corresponding file data of the multiple small documents is formed into big file
Corresponding file data.
With reference to first aspect, the first can be in realization mode, the corresponding number of files of the multiple small documents of downloading
According to, comprising:
It detects in the preset range of the MAG with the presence or absence of adjacent equipment;
If there are adjacent equipments in the preset range of the MAG, the multiple small documents are divided into two groups of files, point
It Wei not a group of file and second group of file;
The corresponding file data of a group of file is downloaded by the MAG;
The corresponding file data of second group of file is downloaded by the adjacent equipment, the multiple small documents are corresponding
File data is made of the corresponding file data of a group of file and the corresponding file data of second group of file.
Mode can be realized in conjunction with the first, it is described that institute is downloaded by the adjacent equipment in second of achievable mode
State the corresponding file data of second group of file, comprising:
Solicited message is sent to the adjacent equipment, the solicited message is used to request the upstream Interface of the adjacent equipment
Status information;
Receive the upstream interface state information that the adjacent equipment is sent;
If the upstream interface state information indicates the non-congestion of the upstream Interface of the adjacent equipment, by described neighbouring
The corresponding file data of second group of file described in device downloads.
Mode can be realized in conjunction with the first, can be downloaded described by the adjacent equipment in realization mode at the third
After the corresponding file data of second group of file, the method also includes:
Detect the preset range whether adjacent equipment exceeds the MAG;
If the adjacent equipment exceeds the preset range of the MAG, the corresponding number of files of second group of file is detected
According to whether downloading completion;
If the corresponding file data of second group of file does not download completion, do not downloaded by the way that MAG downloading is described
The corresponding file data of file.
With reference to first aspect, in the 4th kind of achievable mode, in the document order according to the multiple small documents,
After the corresponding file data of the multiple small documents is formed the corresponding file data of big file, the method also includes:
The corresponding file data of the big file is buffered on the MAG.
With reference to first aspect, the first can realize mode, and second of achievable mode, the third can realize mode and the 4th
Any one in kind achievable mode can realize mode, and in the 5th kind of achievable mode, data volume is greater than the described
The big file of one data value is divided into after the multiple small documents successively arranged according to the second data value, the method also includes:
Listed files is established, the listed files is used to record the document order of the multiple small documents successively arranged;
The document order according to the multiple small documents forms the corresponding file data of the multiple small documents big
The corresponding file data of file, comprising:
According to the document order of the file list record, by the corresponding big text of file data composition of the multiple small documents
The corresponding file data of part.
Second aspect provides a kind of document handling apparatus, is applied to Mobile Access Gateway MAG, and described device includes:
Cutting unit, in the upstream Interface congestion of the MAG, data volume to be greater than to the big file of the first data value
The multiple small documents successively arranged are divided into according to the second data value, the data volume of each small documents is less than or equal to described
Second data value, second data value are less than or equal to first data value;
Download unit, for downloading the corresponding file data of the multiple small documents;
Component units, for the document order according to the multiple small documents, by the corresponding file of the multiple small documents
Data form the corresponding file data of big file.
In conjunction with second aspect, the first can be in realization mode, the download unit, comprising:
Detection module whether there is adjacent equipment in the preset range for detecting the MAG;
Division module, if divided the multiple small documents for there are adjacent equipments in the preset range of the MAG
For two groups of files, respectively a group of file and second group of file;
First download module, for downloading the corresponding file data of a group of file by the MAG;
Second download module, for downloading the corresponding file data of second group of file, institute by the adjacent equipment
It is corresponding by the corresponding file data of a group of file and second group of file to state the corresponding file data of multiple small documents
File data composition.
Mode can be realized in conjunction with the first, in second of achievable mode, second download module, comprising:
Sending submodule, for sending solicited message to the adjacent equipment, the solicited message is for requesting the neighbour
The upstream interface state information of nearly equipment;
Receiving submodule, the upstream interface state information sent for receiving the adjacent equipment;
Submodule is downloaded, if indicating that the upstream Interface of the adjacent equipment is not gathered around for the upstream interface state information
Plug downloads the corresponding file data of second group of file by the adjacent equipment.
Can realize mode in conjunction with the first, the third can be in realization mode, the download unit further include:
Whether first detection module exceeds the preset range of the MAG for detecting the adjacent equipment;
Second detection module detects described second group if exceeding the preset range of the MAG for the adjacent equipment
Whether the corresponding file data of file downloads completion;
Third download module, if completion is not downloaded for the corresponding file data of second group of file, by described
The MAG downloading corresponding file data of file that do not download.
In conjunction with second aspect, in the 4th kind of achievable mode, described device further include:
Cache unit, for the corresponding file data of the big file to be buffered in the MAG.
In conjunction with second aspect, the first can realize mode, and second of achievable mode, the third can realize mode and the 4th
Any one in the achievable mode of kind can realize mode, in the 5th kind of achievable mode, described device further include:
Unit is established, for establishing listed files, the listed files is used to record the multiple small texts successively arranged
The document order of part;
The component units, comprising:
Comprising modules, for the document order according to the file list record, by the corresponding text of the multiple small documents
Number of packages is according to the corresponding file data of the big file of composition.
The third aspect provides a kind of document handling system, the system comprises:
The document handling apparatus of any description above.
Technical solution provided by the invention has the benefit that
The present invention provides a kind of method, apparatus of file process and systems, by being successively to arrange by big file division
Multiple small documents, the corresponding file data of multiple small documents is downloaded, then by the corresponding text of multiple small documents
Number of packages is according to the corresponding file data of the big file of composition.Due to divide and download the big file, so that large file
Transmission rate improve, reduce the download time of file data, and reduce the occupancy to uplink network bandwidth, and ensure that
The normal transmission of small documents, so, the efficiency of file data transfer is improved, the user experience is improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the application environment schematic diagram of MAG provided in an embodiment of the present invention a kind of;
Fig. 2 is a kind of method flow diagram of document handling method provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram of another document handling method provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of listed files provided in an embodiment of the present invention;
Fig. 5 is a kind of method flow diagram for downloading file data provided in an embodiment of the present invention;
Fig. 6 is a kind of method flow diagram for downloading the second sets of document data provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of document handling apparatus provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of download unit provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of second download module provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another download unit provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of another document handling apparatus provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of another document handling apparatus provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of component units provided in an embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of document handling system provided in an embodiment of the present invention;
Figure 15 is the structural schematic diagram of another document handling apparatus provided in an embodiment of the present invention;
Figure 16 is the structural schematic diagram of another document handling system provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of application environment schematic diagram of MAG provided in an embodiment of the present invention, is provided with MAG on mobile tool 00,
The MAG is connectable to network, and when client 01 is located in the movement tool 00 or is located near the movement tool 00,
The client 01 can be connected to network by MAG.Multiple platforms 02 can be set on the mobile route M of mobile tool 00,
Network access device 021 can be set on platform 02.It can be between network access device 021 on MAG and the platform 02
The transmission of style of writing part.
As shown in Fig. 2, it is applied to MAG the embodiment of the invention provides a kind of document handling method, this method comprises:
Step 201, in the upstream Interface congestion of MAG, by data volume be greater than the first data value big file according to second
Data value is divided into the multiple small documents successively arranged, and the data volume of each small documents is less than or equal to the second data value, and second
Data value is less than or equal to the first data value.
Step 202, the corresponding file data of the multiple small documents of downloading.
Step 203, according to the document order of multiple small documents, the corresponding file data of multiple small documents is formed into big file
Corresponding file data.
In conclusion due in document handling method provided in an embodiment of the present invention, by being successively by big file division
Multiple small documents of arrangement, are downloaded the corresponding file data of multiple small documents, then that multiple small documents are corresponding
File data form the corresponding file data of big file.Due to divide and download the big file, so that big file
The transmission rate of data improves, and reduces the download time of file data, and reduce the occupancy to uplink network bandwidth, and protects
The normal transmission of small documents has been demonstrate,proved, so, the efficiency of file data transfer is improved, the user experience is improved.
Exemplary, step 202 may include:
It detects and whether there is adjacent equipment in the preset range of MAG;If there are adjacent equipment in the preset range of MAG,
Multiple small documents are divided into two groups of files, respectively a group of file and second group of file;A group of file is downloaded by MAG
Corresponding file data;The corresponding file data of second group of file is downloaded by adjacent equipment, the corresponding file of multiple small documents
Data are made of the corresponding file data of a group of file and the corresponding file data of second group of file.
Wherein, downloading the corresponding file data of second group of file by adjacent equipment may include:
Solicited message is sent to adjacent equipment, solicited message is used to request the upstream interface state information of adjacent equipment;It connects
Receive the upstream interface state information that adjacent equipment is sent;If upstream interface state information indicates the upstream Interface of adjacent equipment not
Congestion downloads the corresponding file data of second group of file by adjacent equipment.
It should be noted that after downloading the corresponding file data of second group of file by adjacent equipment, at this document
Reason method can also include: the preset range for detecting adjacent equipment and whether exceeding MAG;If adjacent equipment is beyond the default of MAG
Whether range, the corresponding file data of second group of file of detection download completion;If the corresponding file data of second group of file is not
Downloading is completed, and downloads the corresponding file data of file that do not download by MAG.
Exemplary, after step 203, this document processing method can also include: by the corresponding file data of big file
It is buffered on MAG.Specifically, after step 201, this document processing method can also include: to establish listed files, file column
Table is used to record the document order for the multiple small documents successively arranged.Exemplary, step 203 may include: according to listed files
The corresponding file data of multiple small documents is formed the corresponding file data of big file by the document order of record.
In conclusion due in document handling method provided in an embodiment of the present invention, by being successively by big file division
Multiple small documents of arrangement, are downloaded the corresponding file data of multiple small documents, then that multiple small documents are corresponding
File data form the corresponding file data of big file.Due to divide and download the big file, so that big file
The transmission rate of data improves, and reduces the download time of file data, and reduce the occupancy to uplink network bandwidth, and protects
The normal transmission of small documents has been demonstrate,proved, so, the efficiency of file data transfer is improved, the user experience is improved.
As shown in figure 3, being applied to MAG, the embodiment of the present invention the embodiment of the invention provides another document handling method
In by taking file A as an example, the processing method of alternative document be referred to file A processing method processing, this method comprises:
The file A that step 301, interception client are sent.Execute step 302.
When client needs to access server, client firstly generates the file A for demand file data, and to clothes
It is engaged in can wrap the IP address containing server in device transmission file A, file A, after MAG detects file A, file A can be cut
It takes, server is prevented to receive file A.
Step 302 establishes connection with client.Execute step 303.
Exemplary, after intercepting file A, MAG can be generated the IP address of virtual server, and by the virtual server
IP address is sent to client, and MAG and client is made to establish connection.
Step 303, detect MAG upstream Interface whether congestion.If so, executing step 305.If it is not, executing step 304.
Specifically, MAG can with the data of real-time detection MAG upstream Interface transmit in lost data packet number with it is transmitted
The quantity of data packet calculates the ratio of the quantity of lost data packet number and transmitted data packet in data transmission, obtains net
Packet loss in the transmission of road judges the upstream Interface congestion of MAG when the packet loss in network transmission is greater than default packet loss;
When packet loss is less than or equal to default packet loss in network, the upstream Interface of MAG not congestion is judged.The default packet loss can be with
It is 10%, which must be worth or other numerical value, and it is not limited in the embodiment of the present invention.
Step 304 downloads the corresponding file data of file A by MAG.Execute step 311.
Exemplary, MAG can send file A to server, and server is corresponding by file A according to the file information of file A
File data be sent to MAG, complete the downloading of the corresponding file data of file A.
Whether step 305, detection file A are big file.If so, executing step 306.If it is not, executing step 304.
It should be noted that the data volume of file A can be compared with the first data value, if the data volume of file A
Greater than first data value, then judge file A for big file;If the data volume of file A is less than or equal to first data value,
Judge file A for small documents.First data volume is exemplary for distinguishing big file and small documents, which can be with
For 10M (million), the value of first data volume may be other values, and it is not limited in the embodiment of the present invention.Specifically, when text
Part A be small documents when, need to judge the type of file A, if the data value of the corresponding file data of file A is relatively small, as html,
The file data of the types such as php, js, thens follow the steps 304, if the data value of the corresponding file data of file A is relatively large, such as
The file data of the types such as apk, mp4 then needs during executing step 304 to the biography of the corresponding file data of file A
Defeated rate is limited, it is preferred that the transmission rate that can limit the corresponding file data of file A is no more than 128Kbps (bit
Rate).
File A is divided into the multiple small documents successively arranged by step 306.Execute step 307.
Exemplary, when detecting the upstream Interface congestion of MAG, i.e., packet loss is greater than default packet loss in current network,
File A is then divided into the multiple small documents successively arranged according to the second data value.It should be noted that the big file is file
Data volume be greater than the first data value file.Further, should be divided into according to the second data value successively arrange it is multiple small
In file, the data volume of each small documents is less than or equal to the second data value, and second data value is less than or equal to the first number
According to value.Since second data value is less than or equal to the first data value, so that the data of multiple small documents after big file division
Amount is less than or equal to the first data value, i.e., without big file in the file transmitted in the upstream Interface of MAG after segmentation.
Specifically, multiple small texts when the data volume of the big file is the integral multiple of second data value, after the segmentation
The data volume of each small documents in part is equal to the second data value.For example, when the data volume of the big file is 100M, second number
It is 1M according to value, at this point, the data volume of the big file is the integral multiple of second data value, it can be the big of 100M by the data value
File division is the small documents that 100 data values successively arranged are 1M, i.e., in 100 small documents after the big file segmentation
Each small documents data volume be equal to 1M.When the data volume of the big file is not the integral multiple of second data value, this point
Multiple small texts in multiple small documents after cutting other than the data volume of a small documents is less than the second data value, after other segmentations
The data volume of part is equal to the second data value.For example, second data value is 3M when the data volume of the big file is 100M, at this point,
The data volume of the big file is not the integral multiple of second data value, can be by the data value 100M big file division be according to
34 small documents of secondary arrangement, which is respectively the small documents that 33 data values are 3M and a data value is 1M's
Small documents.In 34 small documents i.e. after the segmentation other than the data volume of a small documents is less than 3M, other 33 segmentations
The data volume of small documents afterwards is equal to 3M.
Step 307 establishes listed files a.Execute step 308.
It successively arranges specifically, being divided into the file A that data volume is greater than the first data value according to the second data value
After multiple small documents, MAG need to establish listed files a, and the file that listed files a is used to record the multiple small documents successively arranged is suitable
Sequence.It is assumed that the data volume of file A is 100M, it is assumed that the second data value is 1M at this time, is 100M by the data value
File A the small documents that 100 data values successively arranging are 1M are divided into according to the second data value, respectively No. 1 file is extremely
No. 100 files.At this point, listed files a need to be established, the numerical value in this document list B is successively arranged, and the corresponding segmentation of each numerical value
A small documents in file A afterwards, as shown in figure 4, exemplary, the file A after the corresponding segmentation of numerical value 1 in listed files a
In No. 1 file, No. 2 files in the file A after the corresponding segmentation of numerical value 2 in listed files a, the numerical value n in listed files a
The n file in file A after corresponding segmentation.
It should be noted that the document order of multiple small documents can also by multiple small documents mark and index into
Row instruction, specifically, after file A is divided into multiple small documents by step 306, it can be small for each of multiple small documents
Then file allocation identification and index establish the file of the mark and index for recording multiple small documents in step 307
List, it is 100M's by the data value that it is assumed that the data volume of file A is 100M, the second data value, which is 1M, at this time
File A is divided into the small documents that 100 data values are 1M, respectively No. 1 file to No. 100 files according to the second data value.Show
Example, the mark of No. 1 file can be that the index of 1, No. 1 file can be 0~1M, and the mark of No. 2 files can be 2, No. 2 texts
The index of part can be 1~2M, and the mark of No. 3 files can be that the index of 3, No. 3 files can be 2~3M.
Step 308, the corresponding file data of the multiple small documents of downloading.Execute step 309.
Specifically, as shown in figure 5, step 308 may include:
It whether there is adjacent equipment in step 3081, the preset range of MAG detection MAG.If so, executing step 3083.If
It is no, execute step 3082.
Exemplary, MAG can detecte in surrounding's preset range of MAG with the presence or absence of nearby device, it should be noted that should
Preset range can be 3m (rice), and the value of the preset range may be other values, and it is not limited in the embodiment of the present invention.It should
Nearby device can be the network access device of platform, or the MAG on other vehicles.
Step 3082 downloads the corresponding file data of multiple small documents by MAG.
It should be noted that when adjacent equipment is not present in the preset range of MAG, after being divided by MAG to file A
Multiple small documents are downloaded.MAG can send multiple small documents to server, and server is according to the texts of multiple small documents
The corresponding file data of multiple small documents is sent to MAG by part information, completes the downloading of the file data of multiple small documents.
Multiple small documents are divided into two groups of files, respectively a group of file and second group of file by step 3083, MAG.
Execute step 3084.
Specifically, if there are an adjacent equipments in the preset range of MAG, it is multiple small after file A being divided
File is divided into a group of file and second group of file, and the corresponding file data of multiple small documents after this document A segmentation is by first
The group corresponding file data of file and the corresponding file data composition of second group of file.The a group of file is downloaded by MAG, this
Two groups of files are downloaded by nearby device.It should be noted that when detect in the preset range of MAG there are multiple nearby devices,
The multiple small documents that file A can be divided are again divided into multiple groups file, wherein the group number of the file after division is equal to
The number of nearby device adds 1, and exemplary, 2 adjacent equipments, then the group number of the file after dividing are 3 if it exists.It is above-mentioned multiple small
The corresponding file data of file can be made of the corresponding file data of multiple groups file, appoint a group of file in the multiple groups file
It can be downloaded by MAG, other group of file is downloaded by multiple nearby devices respectively.Exist when in the preset range of MAG
Multiple nearby devices, the document transmission method of each nearby device can there are a neighbours in the preset range with reference to above-mentioned MAG
The document transmission method of nearly equipment, the embodiment of the present invention do not repeat them here this.
Exemplary, the ratio of the quantity of documents of a group of file and second group of file can be 1 or a group of file
Quantity of documents and second group of file quantity ratio can less than 1, the quantity of documents of a group of file with this second group
The sum of quantity of documents of file is the quantity of documents of multiple small documents after this document A segmentation, it should be noted that this first group
The ratio of the quantity of documents of the quantity of documents of file and second group of file may be other values, and the embodiment of the present invention does not do this
It limits.Preferably, when adjacent equipment existing in the preset range for detect MAG be platform on network access device, due to
The network bandwidth of the network access device of platform is greater than the network bandwidth of MAG, the i.e. speed of the network access device network of the platform
Rate is greater than the rate of MAG network, so the ratio of the quantity of the quantity of documents of a group of file and second group of file is less than 1,
That is quantity of documents of the quantity of documents of a group of file less than second group of file.
Step 3084 downloads the corresponding file data of a group of file by MAG, downloads second group of text by adjacent equipment
The corresponding file data of part.
Preferably, MAG can send a group of file to server, and server is believed according to the file of a group of file
The corresponding file data of a group of file is sent to MAG by breath, completes the downloading of the file data of a group of file.
Wherein, as shown in fig. 6, downloading the corresponding file data of second group of file by adjacent equipment, may include:
Step 30841, MAG send solicited message to adjacent equipment.Execute step 30842.
It should be noted that setting in the preset range for detecting MAG there are after adjacent equipment, MAG can be closed on to this
Preparation send solicited message, which is used to request the upstream interface state information of adjacent equipment, upstream interface state letter
Breath can be congestion and non-congestion.
Step 30842, MAG determine whether the upstream interface state information of adjacent equipment is congestion.If so, executing step
30843.If it is not, executing step 30844.
Exemplary, which can connect the uplink of the nearby device after the solicited message for receiving MAG transmission
The flow and rate of mouth are detected, and when packet loss is greater than default packet loss in network, judge that the uplink of the nearby device connects
Mouth congestion;When packet loss is less than or equal to default packet loss in network, the upstream Interface of the nearby device not congestion is judged.And
The upstream interface state information of the nearby device is sent to MAG, MAG is in the upstream Interface shape for receiving the adjacent equipment transmission
After state information, the upstream interface state information is detected, if the upstream interface state information indicates the upper of the adjacent equipment
Line interface congestion, thens follow the steps 30843;If the upstream interface state information indicates the upstream Interface of the adjacent equipment
Non- congestion, thens follow the steps 30844.
Step 30843 downloads the corresponding file data of second group of file by MAG.
Specifically, if MAG detects that the upstream interface state information of the nearby device is congestion, it should by MAG downloading
The corresponding file data of second group of file.
Step 30844 downloads the corresponding file data of second group of file by adjacent equipment.
Further, which can be sent to the nearby device by MAG, downloaded in the nearby device this
The corresponding file data of two groups of files.It should be noted that downloading the corresponding file of second group of file by nearby device
After data, since the vehicles where the MAG are likely to be in motion state, so MAG needs are to detect in real time
Whether the nearby device exceeds the preset range of the MAG with the distance between the MAG.
If detecting the preset range of the distance between the nearby device and the MAG without departing from the MAG, this is continued through
Nearby device downloads the corresponding file data of second group of file.If detecting, the distance between the nearby device and the MAG are super
The preset range of the MAG out then notifies the nearby device for second group of file and is somebody's turn to do this that downloaded by the nearby device
The corresponding file data of second group of file is sent to MAG, and whether MAG need to detect the corresponding file data of second group of file at this time
Downloading is completed, if detecting that the corresponding file data of second group of file does not download completion, downloads this second group by MAG
The corresponding file data of the file that do not downloaded in file.
Step 309, according to the document order for the multiple small documents recorded in listed files a, multiple small documents are corresponding
The corresponding file data of file data composing document A.Execute step 310.
It is exemplary, after the completion of by multiple small documents i.e. first group of document case, second group of file download, obtain this
The corresponding file data of a group of file file data corresponding with second group of file, i.e., the corresponding number of files of multiple small documents
According to specifically, the corresponding file data of multiple small documents is unordered at this time.It is exemplary, in step 307 due to the MAG
Establish the listed files a of the document order for recording the multiple small documents successively arranged.So can be by multiple small text
Numerical value in the corresponding file data of part and this document list corresponds, so that the corresponding file data of multiple small documents is pressed
According to the sequence arrangement of the multiple small documents recorded in this document list a, the corresponding file data of this document A is obtained.
In the prior art, the periodic buffer unit of MAG divides file data, and the period that file data updates is longer, number of files
According to renewal rate it is slower.In the embodiment of the present invention, MAG can be cached the obtained corresponding file data of this document A,
So that MAG can directly send the corresponding file data of file A after interception client again is to the request of this document A
To client.Correspondingly, can also be buffered on MAG by the corresponding file data of alternative document that MAG is downloaded, in order to
MAG can directly send out the corresponding file data of the alternative document after interception client again is to the request of alternative document
It send to client and therefore accelerates the renewal rate of file data in MAG, improve the efficiency that client obtains file data.
Step 310 deletes listed files a.Execute step 311.
Specifically, after obtaining the corresponding file data of file A and the corresponding file data of file A is buffered on MAG,
The listed files a of the document order for multiple small documents that record is successively arranged can be deleted.
The corresponding file data of file A is sent to client by step 311.
Specifically, after the file that MAG interception client is sent, MAG and client establish company due in step 302
It connects, so the corresponding file data of file A can be sent to client after MAG obtains the corresponding file data of file A.
In conclusion due in document handling method provided in an embodiment of the present invention, by being successively by big file division
Multiple small documents of arrangement, are downloaded the corresponding file data of multiple small documents, then that multiple small documents are corresponding
File data form the corresponding file data of big file.Due to divide and download the big file, so that big file
The transmission rate of data improves, and reduces the download time of file data, and reduce the occupancy to uplink network bandwidth, and protects
The normal transmission of small documents has been demonstrate,proved, so, the efficiency of file data transfer is improved, the user experience is improved.
As shown in fig. 7, being applied to MAG, this document processing dress the embodiment of the invention provides a kind of document handling apparatus 70
Setting 70 may include:
Cutting unit 701, in the upstream Interface congestion of MAG, data volume to be greater than to the big file of the first data value
The multiple small documents successively arranged are divided into according to the second data value, the data volume of each small documents is less than or equal to the second data
Value, the second data value are less than or equal to the first data value.
Download unit 702, for downloading the corresponding file data of multiple small documents.
Component units 703, for the document order according to multiple small documents, by the corresponding file data group of multiple small documents
At the corresponding file data of big file.
In conclusion big file is divided by cutting unit due in document handling apparatus provided in an embodiment of the present invention
The multiple small documents successively arranged are segmented into, download unit is downloaded the corresponding file data of multiple small documents, then group
The corresponding file data of multiple small documents is formed into the corresponding file data of big file at unit.Since the big file being carried out
Divide and download, so that the transmission rate of large file improves, reduce the download time of file data, and reduces pair
The occupancy of uplink network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, is mentioned
User experience is risen.
As shown in figure 8, download unit 702 may include:
Detection module 7021 whether there is adjacent equipment in the preset range for detecting MAG.
Division module 7022, if multiple small documents are divided into two for there are adjacent equipments in the preset range of MAG
Group file, respectively a group of file and second group of file.
First download module 7023, for downloading the corresponding file data of a group of file by MAG.
Second download module 7024, for downloading the corresponding file data of second group of file, Duo Ge little by adjacent equipment
The corresponding file data of file is made of the corresponding file data of a group of file and the corresponding file data of second group of file.
As shown in figure 9, the second download module 7024 may include:
Sending submodule 70241, for sending solicited message to adjacent equipment, solicited message is for requesting adjacent equipment
Upstream interface state information.
Receiving submodule 70242, for receiving the upstream interface state information of adjacent equipment transmission.
Submodule 70243 is downloaded, if the non-congestion of upstream Interface for upstream interface state information instruction adjacent equipment,
The corresponding file data of second group of file is downloaded by adjacent equipment.
As shown in Figure 10, the embodiment of the invention provides another download units 702, comprising:
Detection module 7021 whether there is adjacent equipment in the preset range for detecting MAG.
Division module 7022, if multiple small documents are divided into two for there are adjacent equipments in the preset range of MAG
Group file, respectively a group of file and second group of file.
First download module 7023, for downloading the corresponding file data of a group of file by MAG.
Second download module 7024, for downloading the corresponding file data of second group of file, Duo Ge little by adjacent equipment
The corresponding file data of file is made of the corresponding file data of a group of file and the corresponding file data of second group of file.
Whether first detection module 7025 exceeds the preset range of MAG for detecting adjacent equipment.
It is corresponding to detect second group of file if exceeding the preset range of MAG for adjacent equipment for second detection module 7026
File data whether download completion.
Third download module 7027, if completion is not downloaded for the corresponding file data of second group of file, by under MAG
Carry the corresponding file data of file that do not download.
In conclusion big file is divided by cutting unit due in document handling apparatus provided in an embodiment of the present invention
The multiple small documents successively arranged are segmented into, download unit is downloaded the corresponding file data of multiple small documents, then group
The corresponding file data of multiple small documents is formed into the corresponding file data of big file at unit.Since the big file being carried out
Divide and download, so that the transmission rate of large file improves, reduce the download time of file data, and reduces pair
The occupancy of uplink network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, is mentioned
User experience is risen.
As shown in figure 11, the embodiment of the invention provides another document handling apparatus 70, it is applied to MAG, at this document
Managing device 70 may include:
Cutting unit 701, in the upstream Interface congestion of MAG, data volume to be greater than to the big file of the first data value
The multiple small documents successively arranged are divided into according to the second data value, the data volume of each small documents is less than or equal to the second data
Value, the second data value are less than or equal to the first data value.
Download unit 702, for downloading the corresponding file data of multiple small documents.
Component units 703, for the document order according to multiple small documents, by the corresponding file data group of multiple small documents
At the corresponding file data of big file.
Cache unit 704, for the corresponding file data of big file to be buffered in MAG.
In conclusion big file is divided by cutting unit due in document handling apparatus provided in an embodiment of the present invention
The multiple small documents successively arranged are segmented into, download unit is downloaded the corresponding file data of multiple small documents, then group
The corresponding file data of multiple small documents is formed into the corresponding file data of big file at unit.Since the big file being carried out
Divide and download, so that the transmission rate of large file improves, reduce the download time of file data, and reduces pair
The occupancy of uplink network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, is mentioned
User experience is risen.
As shown in figure 12, the embodiment of the invention provides another document handling apparatus 70, it is applied to MAG, at this document
Managing device 70 may include:
Cutting unit 701, in the upstream Interface congestion of MAG, data volume to be greater than to the big file of the first data value
The multiple small documents successively arranged are divided into according to the second data value, the data volume of each small documents is less than or equal to the second data
Value, the second data value are less than or equal to the first data value.
Download unit 702, for downloading the corresponding file data of multiple small documents.
Component units 703, for the document order according to multiple small documents, by the corresponding file data group of multiple small documents
At the corresponding file data of big file.
Cache unit 704, for the corresponding file data of big file to be buffered in MAG.
Unit 705 is established, for establishing listed files, listed files is used to record the text for the multiple small documents successively arranged
Part sequence.
In conclusion big file is divided by cutting unit due in document handling apparatus provided in an embodiment of the present invention
The multiple small documents successively arranged are segmented into, download unit is downloaded the corresponding file data of multiple small documents, then group
The corresponding file data of multiple small documents is formed into the corresponding file data of big file at unit.Since the big file being carried out
Divide and download, so that the transmission rate of large file improves, reduce the download time of file data, and reduces pair
The occupancy of uplink network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, is mentioned
User experience is risen.
As shown in figure 13, component units 703, comprising:
Comprising modules 7031, for the document order according to file list record, by the corresponding number of files of multiple small documents
According to the corresponding file data of the big file of composition.
In conclusion big file is divided by cutting unit due in document handling apparatus provided in an embodiment of the present invention
The multiple small documents successively arranged are segmented into, download unit is downloaded the corresponding file data of multiple small documents, then group
The corresponding file data of multiple small documents is formed into the corresponding file data of big file at unit.Since the big file being carried out
Divide and download, so that the transmission rate of large file improves, reduce the download time of file data, and reduces pair
The occupancy of uplink network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, is mentioned
User experience is risen.
As shown in figure 14, the embodiment of the invention provides a kind of document handling systems 140, which may include: text
Part processing unit 1401, this document processing unit are applied to MAG, and this document processing unit 1401 can be Fig. 7, Figure 11 and Figure 12
Shown in document handling apparatus, in practical application, which can also include nearby device, which can be station
The MAG on network access device or the neighbouring vehicles on platform.
In conclusion due in document handling system provided in an embodiment of the present invention, by MAG by big file division be according to
Multiple small documents of secondary arrangement are downloaded the corresponding file data of multiple small documents, then by multiple small documents pair
The file data answered forms the corresponding file data of big file.Due to divide and download the big file, so that big text
The transmission rate of number of packages evidence improves, and reduces the download time of file data, and reduce the occupancy to uplink network bandwidth, and
It ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, the user experience is improved.
As shown in figure 15, the embodiment of the invention provides another document handling apparatus 150, comprising:
Processor 1501, in the upstream Interface congestion of MAG, the big file that data volume is greater than the first data value to be pressed
The multiple small documents successively arranged are divided into according to the second data value, the data volume of each small documents is less than or equal to the second data
Value, the second data value are less than or equal to the first data value.
The processor 1501 is also used to download the corresponding file data of multiple small documents.
The processor 1501 is also used to the document order according to multiple small documents, by the corresponding file data of multiple small documents
Form the corresponding file data of big file.
In conclusion due in document handling apparatus provided in an embodiment of the present invention, by processor by big file division
For the multiple small documents successively arranged, processor is downloaded the corresponding file data of multiple small documents, then processor
The corresponding file data of multiple small documents is formed into the corresponding file data of big file.Since the big file being divided
And download, so that the transmission rate of large file improves, the download time of file data is reduced, and reduce to uplink net
The occupancy of network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, use is improved
Family experience.
The processor 1501 is specifically used for: detecting in the preset range of MAG with the presence or absence of adjacent equipment;If MAG's is pre-
If there are adjacent equipments in range, multiple small documents are divided into two groups of files, respectively a group of file and second group of file;
The corresponding file data of a group of file is downloaded by MAG;The corresponding file data of second group of file is downloaded by adjacent equipment,
The corresponding file data of multiple small documents is by the corresponding file data of a group of file and the corresponding file data of second group of file
Composition.
The processor 1501 specifically can be used for sending solicited message to adjacent equipment, and solicited message is for requesting neighbouring set
Standby upstream interface state information;Receive the upstream interface state information that adjacent equipment is sent;If upstream interface state information
The non-congestion of upstream Interface for indicating adjacent equipment downloads the corresponding file data of second group of file by adjacent equipment.
The processor 1501 is specifically used for: detecting in the preset range of MAG with the presence or absence of adjacent equipment;If MAG's is pre-
If there are adjacent equipments in range, multiple small documents are divided into two groups of files, respectively a group of file and second group of file;
The corresponding file data of a group of file is downloaded by MAG;The corresponding file data of second group of file is downloaded by adjacent equipment,
The corresponding file data of multiple small documents is by the corresponding file data of a group of file and the corresponding file data of second group of file
Composition;The processor 1501 is also used to detect the preset range whether adjacent equipment exceeds MAG;If adjacent equipment exceeds MAG
Preset range, whether the corresponding file data of second group of file of detection download completion;If the corresponding file of second group of file
Data do not download completion, download the corresponding file data of file that do not download by MAG.
The processor 1501 is also used to for the corresponding file data of big file being buffered on MAG.
The processor 1501 is also used to establish listed files, and listed files is for recording the multiple small documents successively arranged
Document order.
The processor 1501 is specifically used for the document order according to file list record, by the corresponding file of multiple small documents
Data form the corresponding file data of big file.
In conclusion due in document handling apparatus provided in an embodiment of the present invention, by processor by big file division
For the multiple small documents successively arranged, processor is downloaded the corresponding file data of multiple small documents, then processor
The corresponding file data of multiple small documents is formed into the corresponding file data of big file.Since the big file being divided
And download, so that the transmission rate of large file improves, the download time of file data is reduced, and reduce to uplink net
The occupancy of network bandwidth, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, use is improved
Family experience.
As shown in figure 16, the embodiment of the invention provides another document handling system 160, which may include:
Document handling apparatus 1601, this document processing unit 1601 can be document handling apparatus shown in Figure 15.
In conclusion due in document handling system provided in an embodiment of the present invention, by processor by big file division
For the multiple small documents successively arranged, the corresponding file data of multiple small documents is downloaded, then by multiple small text
The corresponding file data of part forms the corresponding file data of big file.Since the big file divide and download, so that
The transmission rate of large file improves, and reduces the download time of file data, and reduce and account for uplink network bandwidth
With, and ensure that the normal transmission of small documents, so, the efficiency of file data transfer is improved, the user experience is improved.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.