CN103905145A - Data transmission method and apparatus based on data partition - Google Patents

Data transmission method and apparatus based on data partition Download PDF

Info

Publication number
CN103905145A
CN103905145A CN201210581230.2A CN201210581230A CN103905145A CN 103905145 A CN103905145 A CN 103905145A CN 201210581230 A CN201210581230 A CN 201210581230A CN 103905145 A CN103905145 A CN 103905145A
Authority
CN
China
Prior art keywords
data
data block
transmission
transmitted
piece index
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.)
Granted
Application number
CN201210581230.2A
Other languages
Chinese (zh)
Other versions
CN103905145B (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

Images

Landscapes

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

Abstract

The invention discloses a data transmission method and apparatus based on data partition, and belongs to the technical field of communications. The method comprises: a terminal device, according to the block index and the storage address information of a data block included in data to be transmitted, obtaining at least one data block; the terminal device sending a transmission request message to the server, the transmission request message carrying the at least one data block and the block index of the at least one data block; the terminal device receiving a transmission response message returned by the server; the terminal device, according to the transmission response message, determining the transmission state of the at least one data block; and the terminal device, according to the transmission state of the at least one data block, continuing transmitting the data block of the data to be transmitted. According to the invention, the transmission of the data block is carried out according to the block index and the storage address information, and data is transmitted according to the transmission state of the data block so that the completeness of the transmitted data is guaranteed.

Description

Data transmission method based on deblocking and device
Technical field
The present invention relates to communication technique field, particularly a kind of data transmission method and device based on deblocking.
Background technology
Along with the development of the Internet, the transfer of data between terminal equipment and server is also more and more general.Transfer of data is exactly according to certain rule, through one or more link, transmits the process of data between data source and data sink, also represents by the signal on channel data from an operation of being sent to another place.As, user carries out transfer of data by email, various forum, chat software, all data can be transferred to server or from server downloading data to terminal equipment from terminal equipment.
In the prior art; in data transmission procedure, conventionally large data can be divided into a lot of little data blocks; a small data piece of each transmission; avoid the once larger file of transmission; and this transmission can cause client to be known nothing the progress of current transfer files; therefore, the Design and implementation of file block transmission method just becomes more and more important.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
The data transport service pattern of internet arena main flow is the disposable transmission of terminal equipment at present, if occur extremely, causing transmitting procedure to stop in transmitting procedure, so all data of having transmitted also can be lost completely, can not guarantee data integrity.
Summary of the invention
In order to solve the problem of data integrity in transfer of data, the embodiment of the present invention provides a kind of data transmission method and device based on deblocking.Described technical scheme is as follows:
On the one hand, a kind of data transmission method based on deblocking, described method comprises:
Piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, obtain at least one data block;
Described terminal equipment sends transfer request message to server, and described transfer request message is carried the piece index of described at least one data block and described at least one data block;
Described terminal equipment receives the transmission response message that described server returns;
Described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block;
Described terminal equipment, according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.
Piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, before obtaining at least one data block, comprising:
Data to be transmitted is carried out to piecemeal, obtain the piece index of storage address information and each data block of each data block.
Data to be transmitted is carried out to piecemeal, after obtaining the storage address information of each data block and the piece index of each data block, piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, before obtaining at least one data block, described method also comprises:
Send the data message of described data to be transmitted to described server, the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted.
Described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block, comprising:
In the time that described transmission response message is carried the piece index of the first data block in described at least one data block, determine that in described at least one data block, the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described at least one transmission of data blocks success.
Described terminal equipment continues the data block of the described data to be transmitted of transmission according to the transmission state of described at least one data block, comprising:
When determining that in described at least one data block, the first transmission of data blocks is unsuccessful, the piece index entrained according to described transmission response message, determine the storage address information of the data block that the entrained piece index of described transmission response message is corresponding, obtain described the first data block, described the first data block of new transmission of laying equal stress on;
When determining described at least one transmission of data blocks success, determine according to the piece index of described at least one data block whether described data to be transmitted is all transmitted, if described data to be transmitted is not all transmitted, according to the piece index of described at least one data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block; If described data to be transmitted is all transmitted, finish transmission.
On the other hand, a kind of data transmission device based on deblocking, described device comprises:
Data block acquisition module, for piece index and the storage address information of the data block that comprises according to data to be transmitted, obtains at least one data block;
Transport module, for sending transfer request message to server, described transfer request message is carried the piece index of described at least one data block and described at least one data block;
Receiver module, the transmission response message of returning for receiving described server;
Transmission state determination module, for according to described transmission response message, determines the transmission state of described at least one data block;
Described transport module, also, for according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.
Described device also comprises:
Piecemeal module, for data to be transmitted is carried out to piecemeal, obtains the piece index of storage address information and each data block of each data block.
Described transport module is also for send the data message of described data to be transmitted to described server, and the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted.
Described transmission state determination module when carry the piece index of the first data block in described at least one data block when described transmission response message, determines that in described at least one data block, the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described at least one transmission of data blocks success.
Described transport module also determines that specifically for working as in described at least one data block, the first transmission of data blocks is unsuccessful, the piece index entrained according to described transmission response message, determine the storage address information of the data block that the entrained piece index of described transmission response message is corresponding, obtain described the first data block, described the first data block of new transmission of laying equal stress on; When determining described at least one transmission of data blocks success, determine according to the piece index of described at least one data block whether described data to be transmitted is all transmitted, if described data to be transmitted is not all transmitted, according to the piece index of described at least one data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block; If described data to be transmitted is all transmitted, finish transmission.
A kind of data transmission method and device based on deblocking that the embodiment of the present invention provides, the storage address information of the data block comprising according to data to be transmitted by terminal equipment, obtains at least one data block; Described terminal equipment sends transfer request message to server, and described transfer request message is carried the piece index of described at least one data block and described at least one data block; Described terminal equipment receives the transmission response message that described server returns; Described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block; Described terminal equipment, according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.The technical scheme that adopts the embodiment of the present invention to provide, carries out the transmission of data block according to piece index and storage address information, and according to the transmission state transmission data of data block, has guaranteed the integrality of the data of transmission.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of a kind of data transmission method based on deblocking of providing of the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of data transmission method based on deblocking of providing of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of data transmission device based on deblocking of providing of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
In the embodiment of the present invention, terminal equipment points to user provides the equipment of voice and/or data connectivity, comprises wireless terminal or catv terminal.Wireless terminal can be other treatment facilities that have the portable equipment of wireless connecting function or be connected to radio modem, the mobile terminal communicating through wireless access network and one or more core net.For example, wireless terminal can be mobile phone (or being called " honeycomb " phone) and the computer with mobile terminal.And for example, wireless terminal can be also portable, pocket, hand-hold type, mobile device built-in computer or vehicle-mounted.For another example, wireless terminal can be mobile radio station (Mobile Station, hereinafter to be referred as MS), access point (Access Point, hereinafter to be referred as AP) or subscriber's installation (User Equipment, hereinafter to be referred as UE) etc.
Fig. 1 is the flow chart of a kind of data transmission method based on deblocking of providing of the embodiment of the present invention, and referring to Fig. 1, the method comprises:
102: piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, obtain at least one data block;
Wherein, data to be transmitted refers to the current data of transmitting or preparing transmission, wherein, this data to be transmitted comprises at least one data block, and each data block all has its corresponding memory address, be that each data block is all to there being storage address information, and each data block all has corresponding piece index, this piece index can be regular governed any mark, if piece index can be 0 ~ N, or 001 ~ 00N, N is positive integer.
Wherein, this at least one data block can be one or more data blocks of not transmitting in data to be transmitted piece.For obtain at every turn, can only obtain a data block, that is to say and in follow-up transmission, only transmit a data block at every turn, if and terminal equipment and network state allow, can once obtain two or more data blocks, that is to say and in follow-up transmission, all transmit two or more data blocks at every turn, to shorten the required time of transmission.These two or more data blocks can be that order is obtained, and can be also to obtain at random.
104: described terminal equipment sends transfer request message to server, described transfer request message is carried the piece index of described at least one data block and described at least one data block;
Wherein, piece index is for representing the relative position relation of data block in whole data to be transmitted, and data block is corresponding one by one with piece index, and each data block has the piece index of unique correspondence.
106: described terminal equipment receives the transmission response message that described server returns;
Due in data transmission procedure, network interferences and equipment fault often make data produce mistake, occur transfer of data interruption and failed phenomenon, interrupt or failure for integrality and this transmission of data blocks of prompt terminal equipment of guaranteeing data, server can return to transmission response message.Particularly, in the time that server receives the data block of terminal equipment transmission and the piece index of data block, when stored data block with and piece index, return to the transmission response message of not carrying any index to terminal equipment, in the time determining that according to data block size server does not receive whole data block completely, return to the transmission response message of the piece index that carries this data block to terminal equipment, so that terminal equipment is known the transmission state of this data block.
108: described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block;
Wherein, transmission state refers in this at least one data block whether transmission success of each data block.
In the time that described transmission response message is carried described index, determine that described transmission response message is carried the transmission of data blocks that described index is corresponding unsuccessful; In the time that described transmission response message is not carried any index, specified data piece transmission success.
110: described terminal equipment, according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.
Further, when data block is while transmitting according to piece indexed sequential, server determines that according to the data message of having known the data block receiving is last data block in data to be transmitted, determine the end of transmission, and when data block be while transmitting at random, server can be according to the data message of having known, whether the piece number of the data block that judgement receives comprises the data block in all data to be transmitted, if not, obtain the not piece index of the data block of transmission according to data message, and send the piece index of this data block of not transmitting to terminal, make terminal transmit according to this piece index the data block that this does not transmit, if, determine the end of transmission.
The storage address information of the data block that the present invention comprises according to data to be transmitted by terminal equipment, obtains at least one data block; Described terminal equipment sends transfer request message to server, and described transfer request message is carried the piece index of described at least one data block and described at least one data block; Described terminal equipment receives the transmission response message that described server returns; Described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block; Described terminal equipment, according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.The technical scheme that adopts the embodiment of the present invention to provide, carries out the transmission of data block according to piece index and storage address information, and according to the transmission state transmission data of data block, has guaranteed the integrality of the data of transmission.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, this step 102 " storage address information of the data block that terminal equipment comprises according to data to be transmitted is obtained at least one data block " before, comprises step 100:
100: data to be transmitted is carried out to piecemeal, obtain the piece index of storage address information and each data block of each data block.
Particularly, according to preset data block size, data to be transmitted is carried out to piecemeal, obtain the piece index of storage address information and each data block of each data block.In order to guarantee the data integrity of data transmission procedure, before data to be transmitted is transmitted, data to be transmitted is carried out to piecemeal.
Wherein, the size of preset data piece can be given tacit consent to by terminal equipment, also can be arranged according to the size of data to be transmitted by user.The time of again transmitting due to bust this in transmitting procedure in order to reduce data block, preferably, the size of preset data piece should be less than 64kb.Further preferably, preset data block size can be 4kb.For example, the size of data to be transmitted is that length(unit is byte), when the size of preset data piece is k, the integer-bit that the piece number of data block can be got lengthk adds 1.
In order to guarantee the integrality of transfer of data, can in blocking process, show the relative position relation of data block in whole data to be transmitted with piece concordance list, as, this piece index can be numeral, in to the blocking process of data to be transmitted, relative position relation according to each data block in data to be transmitted, for each data block allocation block index, as from 0 to n, simultaneously, the piece index that each data block is distributed and the first address corresponding stored of data block, so that follow-up according to piece index and its corresponding first address, in storage medium, find at least one data block, make terminal equipment send this data block to server.Preferably, the first address of this piece index and data block can corresponding stored in a mapping table.
Further alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, in this step 100 " this carries out piecemeal to data to be transmitted; obtain the piece index of storage address information and each data block of each data block " afterwards, before, described method also comprises step 101 to this step 102 " piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted; obtain at least one data block ":
101: send the data message of described data to be transmitted to described server, the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted.
In order to guarantee that server can be the data to be transmitted memory allocated address of terminal equipment, and the integrality of assurance transfer of data, carrying out before transfer of data, terminal equipment need to send to server by the data message of this data to be transmitted, the data message of data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted, can also comprise file name, the transmission path etc. of data to be transmitted, the embodiment of the present invention is not done concrete restriction to this.
Because the speed of each data block in transmitting procedure may be inconsistent, the order of the data block that server receives is also just inconsistent, is receiving after each data block, and server will be according to piece index, each data block receiving is sorted, to obtain complete data.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, this step 108 " described terminal equipment is according to described transmission response message; determine the transmission state of described at least one data block ", comprise: in the time that described transmission response message is carried the piece index of the first data block in described at least one data block, determine that in described at least one data block, the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described at least one transmission of data blocks success.
In embodiments of the present invention, in order to know in time the transmission state of data block, can judge whether transmission response message carries piece index, if do not carried, think transmission success, if carried, will according to the piece index carrying to this not the data block of transmission success again transmit.
Alternatively, on the basis of technical scheme embodiment illustrated in fig. 1, this step 110 " described terminal equipment continues the data block of the described data to be transmitted of transmission according to the transmission state of described at least one data block ", comprises 110a and 110b:
110a: when determining that in described at least one data block, the first transmission of data blocks is unsuccessful, the piece index entrained according to described transmission response message, determine the storage address information of the data block that the entrained piece index of described transmission response message is corresponding, obtain described the first data block, described the first data block of new transmission of laying equal stress on;
In embodiments of the present invention, for convenience, the data block of unsuccessful transmission is called to the first data block, and this first data block can be the arbitrary data piece in data to be transmitted piece.Terminal equipment transmits again for the data block that there is no successfully transmission, because data block is compared with whole data to be transmitted, byte number is less, what time of consuming of transmission will be relatively few again is many, greatly reduce the time of transfer of data, meanwhile, guaranteed the integrality of data by the transmission again of data block.
110b: when determining described at least one transmission of data blocks success, determine according to the piece index of described at least one data block whether described data to be transmitted is all transmitted, if described data to be transmitted is not all transmitted, according to the piece index of described at least one data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block; If described data to be transmitted is all transmitted, finish transmission.
Particularly, in the time not carrying any index in the transmission response message that server returns, show the first transmission of data blocks success, now, terminal equipment compares the piece index of the first data block and the block count of data to be transmitted.In the time that the piece index of the first data block is less than the block count of data to be transmitted, illustrate that data to be transmitted is not all transmitted, terminal equipment will obtain the piece index of the second data block, on the basis by the piece index in the first data block, add a piece index that obtains the second data block, obtaining after the piece index of the second data block, according to the storage address information of the second data block corresponding to the piece index of the second data block, obtain the second data block, carry out the second transmission of data blocks, until the whole transmission success of all data blocks in data to be transmitted, end data transmission.
Because the transmission response message that can return according to server is determined transmission progress, what make that terminal equipment can be real-time retransmits or continues transmission according to transmission progress, has not only reduced the time of transfer of data, and has reduced and again transmit the required time of data.
Fig. 2 is the flow chart of a kind of data transmission method based on deblocking of providing of the embodiment of the present invention, and the executive agent in the embodiment of the present invention is terminal equipment, and referring to Fig. 2, the method comprises:
201: terminal equipment carries out piecemeal to data to be transmitted, obtain the piece index of storage address information and each data block of each data block;
202: terminal equipment sends the data message of described data to be transmitted to described server, the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted;
It should be noted that, according to the difference of Data Transport Protocol, this terminal equipment and server can be through repeatedly shaking hands, and set up data and connect, thereby connect the transmission of carrying out step 203 by these data, the concrete process of establishing in the embodiment of the present invention, data being connected repeats no more.
203: piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, obtain the first data block of described data to be transmitted piece;
For the whole transmitting procedure of complete description, this step 203 is described the obtaining of the first data block in this data to be transmitted, particularly, piece index and the storage address information of the first data block that terminal equipment comprises according to data to be transmitted, obtain the first data block of described data to be transmitted piece.
For the ease of confirming the progress of transfer of data, this data block of transmitting first can be first data block in data to be transmitted piece, and the piece index of this first data block is 0.
204: described terminal equipment sends the piece index of this first data block and this first data block to server;
In the present embodiment, terminal equipment obtains after the first data block, send the first data block of getting and the piece index of the first data block to server, make server know the relative position of the first data block in whole data to be transmitted, also just know data transmission schedule, and returned to corresponding transmission response message according to transmission state.
In the time that server receives the first data block of terminal equipment transmission and the piece index of the first data block, when stored the first data block with and piece index, return to the transmission response message of not carrying any index to terminal equipment, in the time determining that according to data block size server does not receive whole the first data block completely, return to the transmission response message of the piece index that carries this first data block to terminal equipment, so that terminal equipment is known the transmission state of this first data block.
205: server receives the first data block and piece index, determine the transmission state of this first data block according to data message, and send transmission response message to described terminal equipment;
In this step 205, this transmission response message is for whether transmission success of this first data block of notification terminal equipment.The transmission response message that terminal equipment reception server returns, terminal equipment will be determined whether transmission success of this first data block according to this transmission response message.
Server can judge whether end of transmission of this first data block according to the data message receiving, as judged, whether this first data block is the included data block size of data message, and if so, end of transmission, if not, transmits unsuccessful.
For example, in the time that the piece index carrying in this transmission response message is 3, show that piece index is the transmission of data blocks failure of 3 correspondences.
Alternatively, transmission response message can also be carried multiple index, for example, in the time that the piece index carrying in this transmission response message is 3,5,7, shows that piece index is the transmission of data blocks failure of 3,5,7 correspondences.
206: described terminal equipment is in the time receiving the transmission response message that described server returns, according to described transmission response message, determine the transmission state of described the first data block, when terminal equipment is according to transmission response message, determine that the first transmission of data blocks is when unsuccessful, execution step 204; When terminal equipment is according to transmission response message, while determining the first transmission of data blocks success, execution step 207;
In the time that described transmission response message is carried the piece index of described the first data block, determine that described the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described the first transmission of data blocks success.
And because data block is compared with whole data to be transmitted, byte number is less, what the time that transmission consumes again will be relatively few is many, greatly reduces the time of transfer of data, meanwhile, has guaranteed the integrality of data by the transmission again of data block.
207: when terminal equipment is according to transmission response message, while determining the first transmission of data blocks success, terminal equipment is according to the piece index of the first data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block.
This data transmission procedure comprises the serial transmission of multiple data blocks, for each data block, all need the process of the definite transmission state that carries out step 206, and according to definite result again transmit or continue transmission other data blocks, wherein, the detailed process of transmission is identical with step 204 again, and its difference is only each data block of transmission again, and the detailed process that continues transmission is identical with step 207, its difference is only the data block difference of each transmission.
If the piece index of the first data block is N, first address corresponding to piece index N corresponding to the first data block is add, the first data block is to be that add is to the data add+N from address, along with the increase of data to be transmitted progress, the value of the piece index transmitting is also in continuous increase, last data block that to the last data block of transmission is data to be transmitted.
And in the time that data transmission procedure comprises each parallel transmission to multiple data blocks, can be after at least one data block of transmission, according to its transmission state, determine in this at least one data block whether transmission success of each data block, when equal transmission success, obtaining according to the piece index of this at least one data block at least one data block of next time transmitting transmits, if and have any transmission unsuccessful, again transmit the unsuccessful data block of this transmission, after success to be transmitted, obtaining according to the piece index of this at least one data block at least one data block of next time transmitting transmits.By the parallel transmission to data block, accelerate data transmission bauds.
The storage address information of at least one data block that the present invention comprises according to data to be transmitted by terminal equipment, obtains the first data block; Described terminal equipment sends transfer request message to server, and described transfer request message is carried the piece index of described the first data block and described the first data block; Described terminal equipment receives the transmission response message that described server returns; Described terminal equipment, according to described transmission response message, is determined the transmission state of described the first data block; Described terminal equipment continues the data block of the described data to be transmitted of transmission according to the transmission state of described the first data block.The technical scheme that adopts the embodiment of the present invention to provide, carries out the transmission of data block according to piece index and storage address information, and according to the transmission state transmission data of data block, has guaranteed the integrality of the data of transmission.Further, because the transmission response message that can return according to server is determined transmission progress, what make that terminal equipment can be real-time retransmits or continues transmission according to transmission progress, has not only reduced the time of transfer of data, and has reduced and again transmit the required time of data.
Fig. 3 is the structural representation of a kind of data transmission device based on deblocking of providing of the embodiment of the present invention.Referring to Fig. 3, described device comprises:
Data block acquisition module 31, for piece index and the storage address information of the data block that comprises according to data to be transmitted, obtains at least one data block;
Transport module 32, for sending transfer request message to server, described transfer request message is carried the piece index of described at least one data block and described at least one data block;
Receiver module 33, the transmission response message of returning for receiving described server;
Transmission state determination module 34, for according to described transmission response message, determines the transmission state of described at least one data block;
Described transport module 32, also, for according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.
Described device also comprises:
Piecemeal module 35, for data to be transmitted is carried out to piecemeal, obtains the piece index of storage address information and each data block of each data block.
Described transport module 32 is also for send the data message of described data to be transmitted to described server, and the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted.
Described transmission state determination module 34 when carry the piece index of the first data block in described at least one data block when described transmission response message, determines that in described at least one data block, the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described at least one transmission of data blocks success.
Described transport module 32 also determines that specifically for working as in described at least one data block, the first transmission of data blocks is unsuccessful, the piece index entrained according to described transmission response message, determine the storage address information of the data block that the entrained piece index of described transmission response message is corresponding, obtain described the first data block, described the first data block of new transmission of laying equal stress on; When determining described at least one transmission of data blocks success, determine according to the piece index of described at least one data block whether described data to be transmitted is all transmitted, if described data to be transmitted is not all transmitted, according to the piece index of described at least one data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block; If described data to be transmitted is all transmitted, finish transmission.
It should be noted that: the data transmission device based on deblocking that above-described embodiment provides is in the time of transfer of data, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of equipment, to complete all or part of function described above.In addition, the data transmission device based on deblocking that above-described embodiment provides belongs to same design with the data transmission method embodiment based on deblocking, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the data transmission method based on deblocking, is characterized in that, described method comprises:
Piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, obtain at least one data block;
Described terminal equipment sends transfer request message to server, and described transfer request message is carried the piece index of described at least one data block and described at least one data block;
Described terminal equipment receives the transmission response message that described server returns;
Described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block;
Described terminal equipment, according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.
2. method according to claim 1, is characterized in that, piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, before obtaining at least one data block, comprising:
Data to be transmitted is carried out to piecemeal, obtain the piece index of storage address information and each data block of each data block.
3. method according to claim 2, it is characterized in that, data to be transmitted is carried out to piecemeal, after obtaining the storage address information of each data block and the piece index of each data block, piece index and the storage address information of the data block that terminal equipment comprises according to data to be transmitted, before obtaining at least one data block, described method also comprises:
Send the data message of described data to be transmitted to described server, the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted.
4. method according to claim 1, is characterized in that, described terminal equipment, according to described transmission response message, is determined the transmission state of described at least one data block, comprising:
In the time that described transmission response message is carried the piece index of the first data block in described at least one data block, determine that in described at least one data block, the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described at least one transmission of data blocks success.
5. according to the method described in claim 1-4 any one, it is characterized in that, described terminal equipment continues the data block of the described data to be transmitted of transmission according to the transmission state of described at least one data block, comprising:
When determining that in described at least one data block, the first transmission of data blocks is unsuccessful, the piece index entrained according to described transmission response message, determine the storage address information of the data block that the entrained piece index of described transmission response message is corresponding, obtain described the first data block, described the first data block of new transmission of laying equal stress on;
When determining described at least one transmission of data blocks success, determine according to the piece index of described at least one data block whether described data to be transmitted is all transmitted, if described data to be transmitted is not all transmitted, according to the piece index of described at least one data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block; If described data to be transmitted is all transmitted, finish transmission.
6. the data transmission device based on deblocking, is characterized in that, described device comprises:
Data block acquisition module, for piece index and the storage address information of the data block that comprises according to data to be transmitted, obtains at least one data block;
Transport module, for sending transfer request message to server, described transfer request message is carried the piece index of described at least one data block and described at least one data block;
Receiver module, the transmission response message of returning for receiving described server;
Transmission state determination module, for according to described transmission response message, determines the transmission state of described at least one data block;
Described transport module, also, for according to the transmission state of described at least one data block, continues the data block of the described data to be transmitted of transmission.
7. device according to claim 6, is characterized in that, described device also comprises:
Piecemeal module, for data to be transmitted is carried out to piecemeal, obtains the piece index of storage address information and each data block of each data block.
8. device according to claim 7, it is characterized in that, described transport module is also for send the data message of described data to be transmitted to described server, and the data message of described data to be transmitted at least comprises described data to be transmitted is carried out to the piece index of each data block that piecemeal obtains and the file size of described data to be transmitted.
9. device according to claim 6, it is characterized in that, described transmission state determination module when carry the piece index of the first data block in described at least one data block when described transmission response message, determines that in described at least one data block, the first transmission of data blocks is unsuccessful; In the time that described transmission response message is not carried any index, determine described at least one transmission of data blocks success.
10. according to the device described in claim 6-9 any one, it is characterized in that, described transport module also determines that specifically for working as in described at least one data block, the first transmission of data blocks is unsuccessful, the piece index entrained according to described transmission response message, determine the storage address information of the data block that the entrained piece index of described transmission response message is corresponding, obtain described the first data block, described the first data block of new transmission of laying equal stress on; When determining described at least one transmission of data blocks success, determine according to the piece index of described at least one data block whether described data to be transmitted is all transmitted, if described data to be transmitted is not all transmitted, according to the piece index of described at least one data block, determine the piece index of the second data block, obtain the storage address information of the second data block that the piece index of described the second data block is corresponding, obtain the second data block, and transmit described the second data block; If described data to be transmitted is all transmitted, finish transmission.
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 true CN103905145A (en) 2014-07-02
CN103905145B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197456A (en) * 2018-01-16 2018-06-22 飞天诚信科技股份有限公司 The caching method and device of a kind of device data
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197456A (en) * 2018-01-16 2018-06-22 飞天诚信科技股份有限公司 The caching method and device of a kind of device data
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

Also Published As

Publication number Publication date
CN103905145B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN111836329B (en) Data transmission method and related device
CN111278035B (en) Measurement interval configuration method, device, equipment, terminal, system and storage medium
CN107155204B (en) Bluetooth and Wifi switching method and system
CN109889499A (en) File transmitting method and relevant apparatus
CN104159306B (en) A kind of method, equipment and system for controlling interface-free resources
CN102891802B (en) Data distribution method, mobile terminal and data distribution system
CN103338488B (en) Method for switching network, terminal, controller, gateway and system
JP2017526291A (en) Wireless network access control method, apparatus, and system
CN104137574A (en) Method, base station and user equipment for data transmission and acquisition
CN109361762A (en) A kind of document transmission method, apparatus and system
CN109889312A (en) Multilink data transmission method, device and computer readable storage medium
CN111565098B (en) Method, device and system for determining HARQ feedback resources
CN104380644B (en) A kind of method for transmitting information, base station and user equipment
CN108418696B (en) Gateway charging method and gateway
CN108055172B (en) Bidirectional forwarding detection method and device
CN103905145A (en) Data transmission method and apparatus based on data partition
CN103634877B (en) Without the management method of access point in the network of access controller and access point apparatus
CN103441931B (en) A kind of file transmitting method and device
CN102917370B (en) Method, device and system for determining corresponding near-end unit of far-end unit and far-end unit
CN102917386B (en) Device and method for consistency protocol verification of interfaces S1 of LTE (Long Term Evolution) wireless network
CN103999406A (en) Communication path processing method and apparatus
CN110505648A (en) A kind of anti-lost line method of wireless device
CN111526542A (en) Method and device for remapping QoS flow and computer storage medium
CN105471598A (en) Dynamic allocating method and dynamic allocating system for single boards affiliated to virtual Ethernet ports
CN111510949B (en) Data transmission method, device and storage medium

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
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.