CN103905145B - Data transmission method and device based on deblocking - Google Patents

Data transmission method and device based on deblocking Download PDF

Info

Publication number
CN103905145B
CN103905145B CN201210581230.2A CN201210581230A CN103905145B CN 103905145 B CN103905145 B CN 103905145B CN 201210581230 A CN201210581230 A CN 201210581230A CN 103905145 B CN103905145 B CN 103905145B
Authority
CN
China
Prior art keywords
data
block
data block
transmitted
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210581230.2A
Other languages
Chinese (zh)
Other versions
CN103905145A (en
Inventor
马永生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201210581230.2A priority Critical patent/CN103905145B/en
Publication of CN103905145A publication Critical patent/CN103905145A/en
Application granted granted Critical
Publication of CN103905145B publication Critical patent/CN103905145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of data transmission method and device based on deblocking, belong to communication technique field.The described method includes:The block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain at least one data block;The terminal device sends transfer request message to server, and the transfer request message carries the block index of at least one data block and at least one data block;The terminal device receives the transmission response message that the server returns;The terminal device determines the transmission state of at least one data block according to the transmission response message;The terminal device continues to transmit the data block of the data to be transmitted according to the transmission state of at least one data block.The present invention transmits data by carrying out the transmission of data block according to block index and storage address information according to the transmission state of data block, ensure that the integrality of the data of transmission.

Description

Data transmission method and device based on deblocking
Technical field
The present invention relates to communication technique field, more particularly to a kind of data transmission method and device based on deblocking.
Background technology
With the continuous development of internet, the data transfer between terminal device and server is also more and more common.Data Transmission be exactly according to certain rule, by one or more link, the process of transmission data between data source and data sink, Also illustrate that the operation that data are sent to another place by the signal on channel at one.Such as, user by email, various forums, Chat software carries out data transmission, and all data can be transferred to server from terminal device or download the data to end from server End equipment.
In the prior art, big data would generally be divided into many small data blocks, every time transmission in data transmission procedure One small data block, avoids and once transmits larger file, and this transmission can cause client to current transmission file Progress is known nothing, and therefore, the design and realization of file block transmission method just become more and more important.
In the implementation of the present invention, inventor has found that the prior art has at least the following problems:
The data transport service pattern of internet arena mainstream is disposably transmitted for terminal device at present, if be transmitted across Occur exception in journey, cause transmitting procedure to terminate, then all data transmitted can also lose completely, it is impossible to ensure that data are complete Whole property.
The content of the invention
In order to solve the problems, such as data integrity in data transfer, an embodiment of the present invention provides one kind to be based on deblocking Data transmission method and device.The technical solution is as follows:
On the one hand, a kind of data transmission method based on deblocking, the described method includes:
The block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain at least one A data block;
The terminal device sends transfer request message to server, and the transfer request message carries described at least one The block of data block and at least one data block indexes;
The terminal device receives the transmission response message that the server returns;
The terminal device determines the transmission state of at least one data block according to the transmission response message;
The terminal device continues to transmit the data to be transmitted according to the transmission state of at least one data block Data block.
The block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain at least one Before a data block, including:
Piecemeal is carried out to data to be transmitted, obtains the storage address information of each data block and the block rope of each data block Draw.
Piecemeal is carried out to data to be transmitted, obtains the storage address information of each data block and the block rope of each data block After drawing, the block index and storage address information of the data block that terminal device is included according to data to be transmitted, obtain at least one Before a data block, the method further includes:
The data message of the data to be transmitted is sent to the server, the data message of the data to be transmitted is at least Including carrying out the block index of the obtained each data block of piecemeal and the file of the data to be transmitted to the data to be transmitted Size.
The terminal device determines the transmission state of at least one data block, wraps according to the transmission response message Include:
When the transmission response message carries the block index of the first data block at least one data block, it is determined that The first transmission of data blocks is unsuccessful at least one data block;When the transmission response message does not carry any piece of index When, it is determined that at least one transmission of data blocks success.
The terminal device continues to transmit the data to be transmitted according to the transmission state of at least one data block Data block, including:
When determining that the first transmission of data blocks is unsuccessful at least one data block, then according to the transmission response message Entrained block index, determines that the block entrained by the transmission response message indexes the storage address information of corresponding data block, First data block is obtained, lays equal stress on and newly transmits first data block;
When determining at least one transmission of data blocks success, then indexed and determined according to the block of at least one data block Whether the data to be transmitted is all transmitted, if the data to be transmitted is not transmitted all, according to extremely The block index of a few data block, determines the block index of the second data block, and the block index for obtaining second data block is corresponding The storage address information of second data block, obtains the second data block, and transmits second data block;If the number to be transmitted According to being all transmitted, then terminate to transmit.
On the other hand, a kind of data transmission device based on deblocking, described device include:
Data block acquisition module, for the block index and storage address letter of the data block included according to data to be transmitted Breath, obtains at least one data block;
Transport module, for sending transfer request message to server, the transfer request message carry described at least one The block of a data block and at least one data block indexes;
Receiving module, the transmission response message returned for receiving the server;
Transmission state determining module, for according to the transmission response message, determining the biography of at least one data block Defeated state;
The transport module, is additionally operable to the transmission state according at least one data block, continues to transmit described to be passed The data block of transmission of data.
Described device further includes:
Piecemeal module, for carrying out piecemeal to data to be transmitted, obtains the storage address information of each data block and every The block index of a data block.
The transport module is additionally operable to send the data message of the data to be transmitted to the server, described to be transmitted The data message of data includes at least the block index that the obtained each data block of piecemeal is carried out to the data to be transmitted and institute State the file size of data to be transmitted.
The transmission state determining module is specifically used for when the transmission response message carries at least one data block In the first data block block index when, it is determined that the first transmission of data blocks is unsuccessful at least one data block;When described When transmission response message does not carry any piece of index, it is determined that at least one transmission of data blocks success.
The transport module is unsuccessful also particularly useful for the first transmission of data blocks in definite at least one data block is worked as, The then block index according to entrained by the transmission response message, determines that the block index entrained by the transmission response message is corresponding The storage address information of data block, obtains first data block, lays equal stress on and newly transmit first data block;When determine it is described extremely A few data block transmission success, then index according to the block of at least one data block and determine whether the data to be transmitted is complete Portion is transmitted, if the data to be transmitted is not transmitted all, is indexed according to the block of at least one data block, Determine the block index of the second data block, the block for obtaining second data block indexes the storage address letter of corresponding second data block Breath, obtains the second data block, and transmits second data block;If the data to be transmitted is all transmitted, terminate Transmission.
A kind of data transmission method and device based on deblocking provided in an embodiment of the present invention, pass through terminal device root The storage address information of the data block included according to data to be transmitted, obtains at least one data block;The terminal device is to clothes Business device sends transfer request message, and the transfer request message carries at least one data block and at least one data The block index of block;The terminal device receives the transmission response message that the server returns;The terminal device is according to Transmission response message, determines the transmission state of at least one data block;The terminal device is according at least one number According to the transmission state of block, continue to transmit the data block of the data to be transmitted.Using technical solution provided in an embodiment of the present invention, The transmission of data block is carried out according to block index and storage address information, and data are transmitted according to the transmission state of data block, is ensured The integrality of the data of transmission.
Brief description of the drawings
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 present invention, for For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of flow chart of data transmission method based on deblocking provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of data transmission method based on deblocking provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of data transmission device based on deblocking provided in an embodiment of the present invention.
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.
In the embodiment of the present invention, terminal device refers to the equipment for providing a user voice and/or data connectivity, including wireless Terminal or catv terminal.Wireless terminal can be had the portable equipment of wireless connecting function or be connected to wireless-modulated solution Other processing equipments of device are adjusted, the mobile terminal to communicate through wireless access network with one or more core nets.It is for example, wireless Terminal can be mobile phone(Or it is " honeycomb " phone)With the computer with mobile terminal.And for example, wireless terminal also may be used To be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device.For another example, wireless terminal can be to move Dynamic station(Mobile Station, hereinafter referred to as MS), access point(Access Point, hereinafter referred to as AP)Or subscriber's installation (User Equipment, hereinafter referred to as UE)Deng.
Fig. 1 is a kind of flow chart of data transmission method based on deblocking provided in an embodiment of the present invention, referring to figure 1, this method includes:
102:The block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain extremely A few data block;
Wherein, data to be transmitted refers to the data for currently transmitting or preparing transmission, wherein, the data to be transmitted bag At least one data block is included, each data block has its corresponding storage address, i.e., each data block is corresponding with storage address Information, and each data block is respectively provided with corresponding piece of index, block index can be regular governed any mark, such as block rope It can be 0 ~ N to draw, or 001 ~ 00N, N are positive integer.
Wherein, which can be the one or more data blocks do not transmitted in data to be transmitted block.It is right For each obtain, a data block can be only obtained, that is to say and only transmit a data block every time in follow-up transmission, And if terminal device and network state allow, two or more data blocks can be once obtained, that is to say rear Two or more data blocks are transmitted every time in continuous transmission, to shorten the time needed for transmission.This two or two Data block above can be that order is obtained or obtained at random.
104:The terminal device sends transfer request message to server, the transfer request message carry described at least The block of one data block and at least one data block indexes;
Wherein, block index is used to represent relative position relation of the data block in whole data to be transmitted, data block and block Index corresponds, and each data block has unique corresponding piece of index.
106:The terminal device receives the transmission response message that the server returns;
Since in data transmission procedure, network interferences and equipment fault often make data produce mistake, data transfer occur The phenomenon interrupted and failed, in order to ensure the integrality of data and the interruption of the prompt terminal equipment transmission of data blocks or failure, Server can return to transmission response message.Specifically, when server receives the data block and data block of terminal device transmission When block indexes, when storing data block and its block index, the transmission response for not carrying any piece of index is returned to terminal device Message, when determining that server does not receive whole data block completely according to data block size, returns to terminal device and carries the number The transmission response message indexed according to the block of block, so that terminal device knows the transmission state of the data block.
108:The terminal device determines the transmission shape of at least one data block according to the transmission response message State;
Wherein, transmission state refer at least one data block each data block whether transmission success.
When the transmission response message carries described piece of index, it is determined that the transmission response message carries described piece of rope It is unsuccessful to draw corresponding transmission of data blocks;When the transmission response message does not carry any piece of index, it is determined that data block passes Defeated success.
110:The terminal device continues to transmit the number to be transmitted according to the transmission state of at least one data block According to data block.
Further, when data block is transmitted according to block indexed sequential, server is true according to the data message known Surely the data block received be data to be transmitted in last data block, it is determined that the end of transmission, and when data block be with When machine transmits, server can be according to the data message known, whether the block number for the data block for judging to receive includes being needed The data block in data is transmitted, if it is not, then the block that the data block do not transmitted is obtained according to data message indexes, and is sent out to terminal The block of the data block do not transmitted is given to index so that the terminal data block that this is not transmitted according to the transmission of block index, if it is, Determine the end of transmission.
The storage address information for the data block that the present invention is included by terminal device according to data to be transmitted, obtains at least One data block;The terminal device sends transfer request message to server, the transfer request message carry described at least The block of one data block and at least one data block indexes;The terminal device receives the transmission that the server returns and rings Answer message;The terminal device determines the transmission state of at least one data block according to the transmission response message;It is described Terminal device continues to transmit the data block of the data to be transmitted according to the transmission state of at least one data block.Using Technical solution provided in an embodiment of the present invention, the transmission of data block is carried out according to block index and storage address information, and according to number Data are transmitted according to the transmission state of block, ensure that the integrality of the data of transmission.
Alternatively, on the basis of embodiment illustrated in fig. 1 technical solution, " terminal device is according to number to be transmitted for the step 102 According to the storage address information of the data block included, at least one data block is obtained " before, including step 100:
100:Piecemeal is carried out to data to be transmitted, obtains the storage address information of each data block and each data block Block indexes.
Specifically, according to preset data block size, piecemeal is carried out to data to be transmitted, obtains the storage of each data block The block of location information and each data block indexes.In order to ensure the data integrity of data transmission procedure, data to be transmitted into Before row transmission, piecemeal is carried out to data to be transmitted.
Wherein, the size of preset data block can be given tacit consent to by terminal device, can also be by user according to data to be transmitted Size is configured.In order to reduce the time that data block is transmitted again in transmitting procedure due to bust this, it is preferable that pre- If the size of data block should be less than 64kb.It is further preferred that preset data block size can be 4kb.For example, data to be transmitted Size be length(Unit is byte), when the size of preset data block is k, then the block number of data block can take lengthk Integer-bit add 1.
In order to ensure the integrality of data transfer, with block concordance list data block can be shown whole to be passed in blocking process Relative position relation in transmission of data, e.g., block index can be numeral, in the blocking process to data to be transmitted, according to Each relative position relation of the data block in data to be transmitted, block index is distributed for each data block, such as from 0 to n, meanwhile, The block index storage corresponding with the first address of data block that each data block is distributed, so as to subsequently according to block index and its correspondence First address, at least one data block is found in storage medium, terminal device is sent the data block to server.It is preferred that The first address of ground, block index and data block, which can correspond to, to be stored in a mapping table.
Still optionally further, on the basis of embodiment illustrated in fig. 1 technical solution, in the step 100, " this is to number to be transmitted According to piecemeal is carried out, the storage address information of each data block and the block index of each data block are obtained " after, the step 102 " the block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain at least one data Before block ", the method further includes step 101:
101:The data message of the data to be transmitted, the data message of the data to be transmitted are sent to the server Including at least the block index and the data to be transmitted that the obtained each data block of piecemeal is carried out to the data to be transmitted File size.
In order to ensure that server can be the data to be transmitted distribution storage address of terminal device, and ensure data transfer Integrality, before carrying out data transmission, terminal device needs the data message of this data to be transmitted being sent to server, The data message of data to be transmitted includes at least the block rope that the obtained each data block of piecemeal is carried out to the data to be transmitted Draw the file size with the data to be transmitted, file name, transmission path of data to be transmitted etc., the present invention can also be included Embodiment is not especially limited this.
Since speed of each data block in transmitting procedure may inconsistent, the order for the data block that server receives Also just inconsistent, after each data block has been received, server will be indexed according to block, be docked received each data block and be arranged Sequence, to obtain complete data.
Alternatively, on the basis of embodiment illustrated in fig. 1 technical solution, " terminal device is according to for the step 108 Transmission response message, determines the transmission state of at least one data block ", including:When the transmission response message carries institute When stating the block index of the first data block at least one data block, it is determined that the first data block passes at least one data block It is defeated unsuccessful;When the transmission response message do not carry any piece index when, it is determined that at least one transmission of data blocks into Work(.
In embodiments of the present invention, in order to know the transmission state of data block in time, whether can determine whether transmission response message Block index is carried, if do not carried, then it is assumed that transmission success, if carried, will index according to the block of carrying and this is not transmitted Successful data block is transmitted again.
Alternatively, on the basis of embodiment illustrated in fig. 1 technical solution, " terminal device is according to for the step 110 The transmission state of at least one data block continues to transmit the data block of the data to be transmitted ", including 110a and 110b:
110a:When determining that the first transmission of data blocks is unsuccessful at least one data block, then rung according to the transmission Answer the block entrained by message to index, determine that the block entrained by the transmission response message indexes the storage address of corresponding data block Information, obtains first data block, lays equal stress on and newly transmit first data block;
In embodiments of the present invention, for convenience, the data block of unsuccessful transmission is known as the first data block, and be somebody's turn to do First data block can be data to be transmitted arbitrary data block in the block.Terminal device for no Successful transmissions data block into Row transmits again, and since data block is compared with whole data to be transmitted, byte number is smaller, and transmitting the consumed time again will It is relatively little of more, the time of data transfer is greatly reduced, meanwhile, the complete of data ensure that by the transmission again of data block Property.
110b:When determining at least one transmission of data blocks success, then according to the block rope of at least one data block Draw whether the definite data to be transmitted is all transmitted, if the data to be transmitted is not transmitted all, basis The block index of at least one data block, determines the block index of the second data block, obtains the block index of second data block The storage address information of corresponding second data block, obtains the second data block, and transmits second data block;If described treat Transmission data are all transmitted, then terminate to transmit.
Specifically, when not carrying any piece of index in the transmission response message that server returns, the first data block is shown Transmission success, at this time, terminal device compare the block index of the first data block and the block count of data to be transmitted.When the first data block Block index less than data to be transmitted block count when, illustrate that data to be transmitted is not transmitted all, terminal device will acquisition The block index of second data block, i.e., by adding one to obtain the block rope of the second data block on the basis of the block of the first data block index Draw, after the block index of the second data block is obtained, the storage of corresponding second data block is indexed according to the block of the second data block Location information, obtains the second data block, carries out the second transmission of data blocks, until all data blocks in data to be transmitted are all transmitted Success, terminates data transfer.
Due to that can determine transmission progress according to the transmission response message that server returns so that terminal device can be real-time Retransmitted according to transmission progress or continue to transmit, not only reduce the time of data transfer, and reduce and transmit number again According to the required time.
Fig. 2 is a kind of flow chart of data transmission method based on deblocking provided in an embodiment of the present invention, the present invention Executive agent in embodiment is terminal device, and referring to Fig. 2, this method includes:
201:Terminal device carries out piecemeal to data to be transmitted, obtains the storage address information of each data block and each The block index of data block;
202:Terminal device sends the data message of the data to be transmitted to the server, the data to be transmitted Data message includes at least block index that the obtained each data block of piecemeal is carried out to the data to be transmitted and described to be passed The file size of transmission of data;
It should be noted that according to the difference of Data Transport Protocol, which can pass through with server repeatedly shakes hands, Data connection is established, so that the transmission of step 203 is carried out by the data connection, to the tool of data connection in the embodiment of the present invention Body is established process and is repeated no more.
203:The block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain institute State the first data block of data to be transmitted block;
In order to completely describe whole transmitting procedure, acquisition of the step 203 to the first data block in the data to be transmitted It is described, specifically, the block index and storage address of the first data block that terminal device is included according to data to be transmitted Information, obtains the first data block of the data to be transmitted block.
For the ease of confirming the progress of data transfer, which can be data to be transmitted in the block the One data block, the block index of first data block is 0.
204:The block that the terminal device sends first data block and first data block to server indexes;
In the present embodiment, after terminal device obtains the first data block, the first data block got is sent to server Being indexed with the block of the first data block so that server knows relative position of first data block in whole data to be transmitted, Data transmission schedule is just known, and corresponding transmission response message is returned to according to transmission state.
When server receive terminal device transmission the first data block and the first data block block index when, when storing First data block and its block index, the transmission response message for not carrying any piece of index are returned to terminal device, when according to number When determining that server does not receive whole first data block completely according to block size, returned to terminal device and carry first data block The transmission response message of block index, so that terminal device knows the transmission state of first data block.
205:Server receives the first data block and block index, and the transmission of first data block is determined according to data message State, and send transmission response message to the terminal device;
In the step 205, the transmission response message be used to notifying terminal device first data block whether transmission success. Terminal device receives the transmission response message that server returns, and terminal device will determine first number according to the transmission response message According to block whether transmission success.
Server can be judged according to the data message received first data block whether end of transmission, such as judge this first Whether data block is data block size included by data message, if it is, end of transmission, if it is not, then transmission is failed.
For example, when the block index carried in the transmission response message is 3, show that block index passes for 3 corresponding data blocks Defeated failure.
Alternatively, transmission response message can also carry multiple pieces of indexes, for example, when being carried in the transmission response message When block index is 3,5,7, it is 3,5,7 corresponding transmission of data blocks failures to show block index.
206:The terminal device is rung when receiving the transmission response message that the server returns according to the transmission Message is answered, determines the transmission state of first data block, when terminal device is according to transmission response message, determines the first data block During unsuccessful transmission, step 204 is performed;When terminal device is according to transmission response message, determines the success of the first transmission of data blocks, Perform step 207;
When the transmission response message carries the block index of first data block, it is determined that first data block passes It is defeated unsuccessful;When the transmission response message does not carry any piece of index, it is determined that the first transmission of data blocks success.
And since data block is compared with whole data to be transmitted, byte number is smaller, and transmitting the consumed time again will It is relatively little of more, the time of data transfer is greatly reduced, meanwhile, the complete of data ensure that by the transmission again of data block Property.
207:When terminal device is according to transmission response message, determines the success of the first transmission of data blocks, terminal device according to The block index of first data block, determines the block index of the second data block, obtains the block index corresponding the of second data block The storage address information of two data blocks, obtains the second data block, and transmits second data block.
The data transmission procedure includes the serial transmission of multiple data blocks, for each data block, is both needed to carry out The process of the definite transmission state of step 206, and transmitted again according to definite result or continue to transmit other data blocks, its In, the detailed process transmitted again is identical with step 204, it differs only in the data block transmitted again every time, and after resuming Defeated detailed process is identical with step 207, and it is different that it differs only in the data block transmitted every time.
Block index such as the first data block be N, and it is add that corresponding piece of the first data block, which indexes the corresponding first address of N, then the One data block is the data between being add to add+N from address, with the increase of data to be transmitted progress, the block rope transmitted The value drawn also is being continuously increased, and the data block to the last transmitted is last data block of data to be transmitted.
And when data transmission procedure includes parallel transmission to multiple data blocks every time, can transmit it is at least one After data block, according to its transmission state, determine at least one data block each data block whether transmission success, when passing Defeated success, then obtain at least one data block transmitted next time according to the block of at least one data block index and be transmitted, And if any one transmission is failed, then the failed data block of the transmission is transmitted again, and after success to be transmitted, then basis should The block index of at least one data block obtains at least one data block transmitted next time and is transmitted.By to data block and Row transmission, accelerates data transmission bauds.
The storage address information at least one data block that the present invention is included by terminal device according to data to be transmitted, Obtain the first data block;The terminal device sends transfer request message to server, described in the transfer request message carries The block of first data block and first data block indexes;The terminal device receives the transmission response that the server returns and disappears Breath;The terminal device determines the transmission state of first data block according to the transmission response message;The terminal device Continued to transmit the data block of the data to be transmitted according to the transmission state of first data block.Carried using the embodiment of the present invention The technical solution of confession, the transmission of data block is carried out according to block index and storage address information, and according to the transmission state of data block Data are transmitted, ensure that the integrality of the data of transmission.Further, due to can be disappeared according to the transmission response that server returns Breath determines transmission progress so that terminal device can be retransmitted according to transmission progress or continue to transmit in real time, not only be reduced Time of data transfer, and reduce the time transmitted again needed for data.
Fig. 3 is a kind of structure diagram of data transmission device based on deblocking provided in an embodiment of the present invention.Ginseng See Fig. 3, described device includes:
Data block acquisition module 31, for the block index and storage address letter of the data block included according to data to be transmitted Breath, obtains at least one data block;
Transport module 32, for sending transfer request message to server, the transfer request message carry described at least The block of one data block and at least one data block indexes;
Receiving module 33, the transmission response message returned for receiving the server;
Transmission state determining module 34, for according to the transmission response message, determining at least one data block Transmission state;
The transport module 32, is additionally operable to the transmission state according at least one data block, continues to treat described in transmission Transmit the data block of data.
Described device further includes:
Piecemeal module 35, for data to be transmitted carry out piecemeal, obtain each data block storage address information and The block index of each data block.
The transport module 32 is additionally operable to send the data message of the data to be transmitted to the server, described to be passed The data message of transmission of data include at least block index that the obtained each data block of piecemeal is carried out to the data to be transmitted and The file size of the data to be transmitted.
The transmission state determining module 34 is specifically used for when the transmission response message carries at least one data In block during the block index of the first data block, it is determined that the first transmission of data blocks is unsuccessful at least one data block;Work as institute When stating transmission response message and not carrying any piece of index, it is determined that at least one transmission of data blocks success.
The transport module 32 also particularly useful for when determine at least one data block in the first transmission of data blocks not into Work(, then the block index according to entrained by the transmission response message, determines the block index pair entrained by the transmission response message The storage address information for the data block answered, obtains first data block, lays equal stress on and newly transmit first data block;When definite institute At least one transmission of data blocks success is stated, then is indexed according to the block of at least one data block and determines that the data to be transmitted is No whole is transmitted, if the data to be transmitted is not transmitted all, according to the block of at least one data block Index, determines the block index of the second data block, and the block for obtaining second data block indexes the storage of corresponding second data block Address information, obtains the second data block, and transmits second data block;If the data to be transmitted is all transmitted, Then terminate to transmit.
It should be noted that:Above-described embodiment provide based on the data transmission device of deblocking in data transfer, , can be as needed and by above-mentioned function distribution only with the division progress of above-mentioned each function module for example, in practical application Completed by different function modules, i.e., the internal structure of equipment is divided into different function modules, it is described above to complete All or part of function.In addition, the data transmission device based on deblocking that above-described embodiment provides based on data with being divided The data transmission method embodiment of block belongs to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.

Claims (2)

  1. A kind of 1. data transmission method based on deblocking, it is characterised in that the described method includes:
    The block index and storage address information for the data block that terminal device is included according to data to be transmitted, obtain at least one number According to block;
    The terminal device sends transfer request message to server, and the transfer request message carries at least one data Block and the block of at least one data block index;
    The terminal device receives the transmission response message that the server returns;
    When the transmission response message carries the block index of the first data block at least one data block, it is determined that described The first transmission of data blocks is unsuccessful at least one data block;When the transmission response message does not carry any piece of index, then Determine at least one transmission of data blocks success, first data block is the data block of unsuccessful transmission;
    When determine at least one data block in the first transmission of data blocks it is unsuccessful, then taken according to the transmission response message The block index of band, determines that the block entrained by the transmission response message indexes the storage address information of corresponding data block, obtains First data block, lays equal stress on and newly transmits first data block;
    When determining at least one transmission of data blocks success, then indexed according to the block of at least one data block described in determining Whether data to be transmitted is all transmitted, if the block index of at least one data block is less than the data to be transmitted Block count, it is determined that the data to be transmitted is not transmitted all, is indexed according to the block of at least one data block, is determined The block index of second data block, the block for obtaining second data block index the storage address information of corresponding second data block, The second data block is obtained, and transmits second data block;If the block index of at least one data block is equal to described treat Transmit the block count of data, it is determined that the data to be transmitted is all transmitted, and terminates transmission;
    The block index and storage address information for the data block that the terminal device is included according to data to be transmitted, obtain at least one Before a data block, including:
    Piecemeal is carried out to data to be transmitted, obtains the storage address information of each data block and the block index of each data block;
    It is described that piecemeal is carried out to data to be transmitted, obtain the storage address information of each data block and the block rope of each data block After drawing, the block index and storage address information of the data block that terminal device is included according to data to be transmitted, obtain at least one Before a data block, the method further includes:
    The data message of the data to be transmitted is sent to the server, so that the server is according to the data to be transmitted Data message, determine whether the data to be transmitted is transmitted, the data message of the data to be transmitted includes at least pair The data to be transmitted carries out the block index of the obtained each data block of piecemeal and the file size of the data to be transmitted.
  2. 2. a kind of data transmission device based on deblocking, it is characterised in that described device includes:
    Data block acquisition module, for the block index and storage address information of the data block included according to data to be transmitted, is obtained Take at least one data block;
    Transport module, for sending transfer request message to server, the transfer request message carries at least one number Indexed according to block and the block of at least one data block;
    Receiving module, the transmission response message returned for receiving the server;
    Transmission state determining module, for carrying the first data block at least one data block when the transmission response message Block index when, it is determined that the first transmission of data blocks is unsuccessful at least one data block;When the transmission response message When not carrying any piece of index, it is determined that at least one transmission of data blocks success, first data block for transmission not into The data block of work(;
    The transport module, is additionally operable to when determining that the first transmission of data blocks is unsuccessful at least one data block, then basis Block index entrained by the transmission response message, determines that the block entrained by the transmission response message indexes corresponding data block Storage address information, obtain first data block, lay equal stress on and newly transmit first data block;It is described at least one when determining Transmission of data blocks success, then index according to the block of at least one data block and determine whether the data to be transmitted is all transmitted Complete, if the block index of at least one data block is less than the block count of the data to be transmitted, it is determined that described to be passed Transmission of data is not transmitted all, is indexed according to the block of at least one data block, is determined the block index of the second data block, is obtained Take the block of second data block to index the storage address information of corresponding second data block, obtain the second data block, and transmit Second data block;If the block index of at least one data block is equal to the block count of the data to be transmitted, really The fixed data to be transmitted is all transmitted, and terminates transmission;
    Described device further includes:
    Piecemeal module, for carrying out piecemeal to data to be transmitted, obtains the storage address information of each data block and per number Indexed according to the block of block;
    The transport module is additionally operable to send the data message of the data to be transmitted to the server, so that the server According to the data message of the data to be transmitted, determine whether the data to be transmitted is transmitted, the data to be transmitted Data message includes at least block index that the obtained each data block of piecemeal is carried out to the data to be transmitted and described to be passed The file size of transmission of data.
CN201210581230.2A 2012-12-27 2012-12-27 Data transmission method and device based on deblocking Active CN103905145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210581230.2A CN103905145B (en) 2012-12-27 2012-12-27 Data transmission method and device based on deblocking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210581230.2A CN103905145B (en) 2012-12-27 2012-12-27 Data transmission method and device based on deblocking

Publications (2)

Publication Number Publication Date
CN103905145A CN103905145A (en) 2014-07-02
CN103905145B true CN103905145B (en) 2018-05-15

Family

ID=50996312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210581230.2A Active CN103905145B (en) 2012-12-27 2012-12-27 Data transmission method and device based on deblocking

Country Status (1)

Country Link
CN (1) CN103905145B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197456B (en) * 2018-01-16 2020-05-19 飞天诚信科技股份有限公司 Equipment data caching method and device
CN108614753A (en) * 2018-05-15 2018-10-02 郑州云海信息技术有限公司 A kind of method and device acquiring mainboard information by mainboard CPLD

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155144A (en) * 2006-09-29 2008-04-02 富士通株式会社 Method and apparatus for communicating data and program thereof
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
CN101267383A (en) * 2007-03-14 2008-09-17 中国移动通信集团公司 Data transmission method and system
WO2011040850A1 (en) * 2009-10-02 2011-04-07 Telefonaktiebolaget Lm Ericsson (Publ) Method for retransmission using checksums for identifying lost data packets

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155144A (en) * 2006-09-29 2008-04-02 富士通株式会社 Method and apparatus for communicating data and program thereof
CN101267383A (en) * 2007-03-14 2008-09-17 中国移动通信集团公司 Data transmission method and system
CN101202604A (en) * 2007-08-14 2008-06-18 深圳市同洲电子股份有限公司 Method, system and equipment for transmitting and receiving network data
WO2011040850A1 (en) * 2009-10-02 2011-04-07 Telefonaktiebolaget Lm Ericsson (Publ) Method for retransmission using checksums for identifying lost data packets

Also Published As

Publication number Publication date
CN103905145A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN111836329B (en) Data transmission method and related device
CN103547342B (en) Message method, message read notification method, message receival method and device
CN106793090B (en) The selection method and system of D2D direct communication resources
CN109995553B (en) Communication method, equipment and system thereof
CN109618372A (en) Data transmission method and relevant apparatus
CN109041262A (en) Data transmission method and relevant apparatus
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
CN104159306B (en) A kind of method, equipment and system for controlling interface-free resources
CN108616532A (en) Ballot processing method, apparatus and terminal device
CN107820325A (en) Wireless communications method and system, computer-readable storage medium and equipment
CN109274596A (en) Data transmission method and relevant apparatus
CN105264931A (en) Data transmission method, user equipment, base station, and system
CN109526020A (en) Data transmission method and Related product
CN104426758A (en) Transmission control system, device and method
CN102123110B (en) Data transmission method for gateway system, and gateway system
CN107529186A (en) The method and system of channel transmission upstream data, client, server
CN106254410A (en) Network system and method for establishing data connection
US10164776B1 (en) System and method for private and point-to-point communication between computing devices
CN109889312A (en) Multilink data transmission method, device and computer readable storage medium
CN103905145B (en) Data transmission method and device based on deblocking
CN110167169A (en) A kind of method and relevant apparatus of data transmission
CN105376800B (en) A kind of group-net communication method, system and the common control equipment of micro-base station
CN107018088B (en) Transmission link selection method and device
CN104254062B (en) A kind of direct connected link communication means and relevant device, system
CN107666667A (en) A kind of data transmission method, the first equipment and the second equipment

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
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder