CN104010032B - A kind of data transmission method and device - Google Patents
A kind of data transmission method and device Download PDFInfo
- Publication number
- CN104010032B CN104010032B CN201410216867.0A CN201410216867A CN104010032B CN 104010032 B CN104010032 B CN 104010032B CN 201410216867 A CN201410216867 A CN 201410216867A CN 104010032 B CN104010032 B CN 104010032B
- Authority
- CN
- China
- Prior art keywords
- terminal
- transmission
- server
- data
- multicast
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides a kind of data transmission method, it is by multiplexer channel to multiple terminal transmission datas, and the multiple terminal is dynamically divided into the different multiple sub- multicast groups of grade of transmission by server according to the transmission performance and data transfer performance of the terminal, and a group hierarchical transmission data are broadcast to the subgroup according to the grade of transmission.The data transfer means transfers efficiency high.The present invention also provides a kind of data transmission device.
Description
Technical field
The invention belongs to multimedia Broadcast Control technical field, is related to one kind and is based on local net network, one arrives more data transfers
Technology, specific design.
Background technology
LAN data transmission technology includes FTP transmission, HTTP transmission and third party's scheme transmission, these transmission at present
Technology is all man-to-man transmission technology.But in multimedia Broadcast Control field, often there is one-to-many status transmission, i.e. a text
Part needs to be transferred to each playback terminal repeatedly from server.The efficiency of transmission of existing one-to-one transmission technology is poor, can not
Meets the needs of quickly transmitting.If necessary to be by 1000Mbits data transfer to 10 playback terminals, transmission rate
2Mbits/s, transmission 83.3 minutes are needed using existing transmission technology.
The content of the invention
In order to solve the above technical problems, the present invention provides a kind of data transmission method and device, it can improve server
Efficiency of transmission.
The used technical scheme for solving above-mentioned technical problem is to provide a kind of data transmission method, passes through multiplexing
Passage to multiple terminal transmission datas, and server according to the transmission performance of the terminal and data transfer performance by institute
State multiple terminals and be dynamically divided into the different multiple sub- multicast groups of grade of transmission, and broadcast according to the grade of transmission to the subgroup
Group hierarchical transmission data.
Wherein, comprise the following steps:
The server creates multicast group, and ordered multicast is sent to each terminal to the multicast group;
The terminal starts multicast client program after receiving the ordered multicast;
The server sends multicast initiation command to the terminal, then starts to the terminal transmission data;
The server is according to the transmission performance of the terminal and the performance of transmission by described in the multicast group
Terminal is dynamically divided into the different multiple sub- multicast groups of grade of transmission, and broadcasts component level to the subgroup according to the grade of transmission
Transmit the data;
After the data transfer ends, the server sends multicast to the terminal and terminates order, and the terminal receives institute
State multicast and terminate multicast group described in order backed off after random.
Wherein, in addition to:
The server each terminal into the sub- multicast group sends error checking order;
The terminal receives the frame loss condition that its data received is checked after the error checking order, and by frame loss condition
Send to the server;
If each terminal has frame loss condition in the sub- multicast group, the frame loss condition of each terminal of server statistics is simultaneously
Frame losing set is formed, the frame losing set is then sent into the sub- multicast group;
If frame loss condition is not present in each server in the sub- multicast group, the server sends the subgroup and broadcasts end
Order.
Wherein, during transmission data are propagated, the server sends to the terminal in the absence of frame loss condition and kept
Communication command, to prevent the terminal from being exited because of time-out;If the quantity of the frame losing of terminal sends out loss file again less than default
Minimum, then the server to the terminal send frame losing set;If the frame losing quantity of terminal, which is more than default send out again, loses text
Part minimum, then the server terminal is kicked out of to the sub- multicast group where it.
Wherein, the server by more than it is default reissue number and still suffer from the terminal of frame loss condition kick out of subgroup where it
Broadcast group.
Wherein, in the transmitting procedure of data, the server sends error checking order, the terminal to the terminal
Error checking result is fed back into the server.
Wherein, the server is carried out data transmission and error checking simultaneously using multiple buffer.
Wherein, the client-side program includes command channel, data transmission channel and progress feedback channel.
Wherein, in transmitting procedure, the terminal sends transmission progress percentage to the server, and makes end of transmission
Terminal exit sub- multicast group where its immediately.
Wherein, the file to be transmitted and/or bitmap are divided into multiple data blocks by the server, each data block
With equal byte number, then it is transmitted.
The present invention also provides a kind of data transmission device, for the data transfer between server and terminal, the service
Device is included by multiplexer channel to the terminal transmission data, the server:
Multicast group creating unit, it is transmitted situation for the transmission performance according to terminal and data and is divided into the terminal
The different multiple sub- multicast groups of grade of transmission;
Control unit, for sending control command to the terminal, and component level is broadcast to the subgroup according to grade of transmission
Transmit data.
Wherein, in addition to error checking unit, it is used for the frame loss condition for checking the terminal, and frame loss condition is fed back
Described control unit.
Wherein, described control unit counts the frame loss condition of each terminal in the sub- multicast group, and forms frame losing set;
Described control unit sends the frame losing set to the sub- multicast group that frame loss condition be present;Described control unit in the absence of
The sub- multicast group of frame loss condition sends end order.
Wherein, during propagation data, described control unit periodically sends to the terminal in the absence of frame loss condition and protected
Communication command is held, to prevent the terminal from being exited because of time-out;If the quantity of the frame losing of terminal sends out loss file again less than default
Minimum, then described control unit to the terminal send frame losing set;If the frame losing quantity of terminal sends out loss again more than default
File minimum, then described control unit is no longer sent to the error checking order, and the terminal is kicked out of into its place
The subgroup broadcast.
Wherein, described control unit is carried out data transmission and error checking simultaneously using multiple buffer.
Wherein, the file to be transmitted and/or bitmap are divided into multiple data blocks by described control unit, each data
Block has equal byte number.
Wherein, in addition to error checking unit, it is used for the error situation for checking that the terminal receives data.
Wherein, in addition to follow-up unit, it is used to obtain the progress percentage that the terminal receives data.
The invention has the advantages that:
Data transmission method provided by the invention, server use multiplexer channel to multiple terminal transmission datas, can
To improve the efficiency of transmission of server, such as 1000Mbits data transfer is played to 10 according to 1Mbits transmission rate
Device only needs to complete for 16.7 minutes.Terminal is divided into grade of transmission by the data transmission method according to the transmission performance of different terminals
Different multiple sub- multicast groups, and a group hierarchical transmission data are broadcast to the subgroup according to the grade of transmission, can further significantly
The efficiency of transmission of server is lifted, 1000Mbits data transfer to 100 players is only such as needed 16.7 minutes i.e. in theory
It can complete.
As a preferred embodiment of the present invention, during data are transmitted, server is each into sub- multicast group
The terminal sends error checking order, i.e. increase error checking step (verification scheme), in the sub- multicast group of server statistics
The frame loss condition of each terminal, frame losing set is formed, and frame losing set is sent into sub- multicast group, that is, reissued, accomplish what is had
Arrow is put, so as to improve the reliability of server.Although error checking and the mechanism of reissuing can reduce the transmission effect of data transmission method
Rate, but only need to complete within 24 minutes to 100 players 1000Mbits data transfer, its efficiency of transmission is much larger than the back of the body
The prior art referred in scape technology.
As another preferred embodiment of the present invention, server sends order of keeping in communication to the terminal, to prevent terminal
Exited because of time-out;If the quantity of the frame losing of terminal is less than default send out again and loses file minimum, server is to the terminal
Send frame losing set;If the frame losing quantity of terminal, which is more than default send out again, loses file minimum, server is no longer sent out to it
Error checking order is sent, and the subgroup where terminal to be kicked out of to it is broadcast, i.e., server passes according to the frame loss condition of terminal to change
Defeated mode, so as to improve efficiency of transmission.
As the further embodiment of the present invention, when server exceedes default reissue time to the number of reissuing of certain terminal
During number, the subgroup where the terminal is kicked out of into it is broadcast, to improve the efficiency of transmission of server.
As the another preferred embodiment of the present invention, error checking is carried out after file is sent, between file
Incidence relation carry out full text verification, with improve file transmission accuracy rate.
As another preferred embodiment of the present invention, server carries out data transmission examining with mistake simultaneously using multiple buffer
Look into, so as to improve the efficiency of transmission of server.
As the further embodiment of the present invention, in transmitting procedure, terminal periodically sends transmission progress to server
Percentage, with the progress of monitoring transmission, when some terminal transmission finishes, subgroup where exiting it immediately is broadcast.
As the another preferred embodiment of the present invention, the file to be transmitted and bitmap are divided into multiple data blocks, each
Data block has equal byte number, is so advantageous to search frame loss condition, while reduce the data reissued.
Data transmission device of the present invention is completed terminal according to transmission performance and data transfer by multicast group creating unit
Situation is divided into the different multiple sub- multicast groups of grade of transmission, then according to corresponding grade of transmission by multiplexer channel to not
Data are transmitted with sub- multicast group, so as to improve efficiency of transmission.
Brief description of the drawings
Fig. 1 is the flow chart of data transmission method of the embodiment of the present invention;
The schematic diagram that Fig. 2 carries out data transmission between server and terminal;
Fig. 3 is the flow chart of error checking mechanism of the embodiment of the present invention;
Fig. 4 is the theory diagram of data transmission device of the embodiment of the present invention.
Embodiment
To make those skilled in the art more fully understand technical scheme, the present invention is carried below in conjunction with the accompanying drawings
What is supplied is described in detail for data transmission method and device.
The data transmission method that the present embodiment provides is based on the transmission means based on IP multicasts, by analyzing contrast eventually
The data of running environment are held, the Transmission Control Strategy when not timing powers off is proposed, the efficiency of whole transformation task is substantially improved.
As depicted in figs. 1 and 2, data transmission method comprises the following steps:
Step S1, server creates multicast group, and ordered multicast is sent to each terminal in multicast group.
User initiates the request that multifile is transferred to multiple terminals, and each terminal is formed a multicast group by server, and to every
Individual terminal sends multicast transmission instruction.Wherein, the quantity of terminal and the quantity of file waiting for transmission and/or bitmap are according to terminal
Actual request determine.Data are transmitted in a manner of UDP.
Step S2, terminal start multicast client program after receiving ordered multicast.
After each terminal receives the ordered multicast that server is sent in multicast group, reply server and add multicast group, and start
The multicast client program to set within it.Client-side program includes command channel, data transmission channel and progress feedback channel.
Wherein, the order of the reception server is responsible in command channel, such as transmits initiation command, end of transmission order and frame losing feedback command.
Step S3, server send multicast initiation command to terminal, then started to terminal transmission data.
Server sends multicast initiation command by each terminal of the multiplexer channel into multicast, and terminal reads interim
(temp) file, resumed with checking whether, if not resuming, server starts to the number such as terminal transmission file and/or bitmap
According to.If resuming, terminal sends frame losing information and gives server (this part is described below).
Step S4, server according to the transmission performance of terminal and the performance of transmission by the terminal in multicast group dynamically
It is divided into the different multiple sub- multicast groups of grade of transmission, and a group hierarchical transmission data is broadcast to subgroup according to grade of transmission.
During data are transmitted, server the speed of such as network speed, lacks frame condition according to the transmission performance of terminal,
And the terminal in multicast group is divided into the different multiple sub- multicast groups of grade of transmission by the performance of transmission.Due to multichannel be present
Transmission channel, therefore server can broadcast a group hierarchical transmission data according to grade of transmission to subgroup.Server appoints a multicast
Business splits into several small multicast tasks, and prioritised transmission network condition is good, and the fast small multicast task of terminal transmission, i.e. classification pass
Defeated, to improve efficiency of transmission, terminal quantity is more, and file waiting for transmission is more, and the efficiency of transmission of this hierarchical transmission method carries
What is risen is more obvious.
It should be noted that the grade of transmission that the present embodiment refers to is the concept of broad sense, it is not limited to terminal and receives number
According to speed, additionally depend on the situation of frame losing, if frame losing is more, grade of transmission is relatively low, conversely, grade of transmission is higher.
Step S5, after the data transfer ends, server sends multicast to terminal and terminates order, and terminal receives multicast and terminated
Terminate to exit sub- multicast group after order, and end of transmission is fed back into server.
After the data transfer ends, server sends multicast to terminal and terminates order, and terminal exits multicast group.
As a preferred embodiment, data transmission method adds error checking mechanism, i.e. data transmission method also wraps
Error checking step is included, as shown in Fig. 3 and Fig. 2, is specifically comprised the following steps:
Step S21, server each terminal into sub- multicast group send error checking order.
Step S22, terminal receive the frame loss condition that its data received is checked after error checking order, and by frame loss condition
Send to server.
Step S23, if frame loss condition be present in sub- multicast group, the frame losing feelings of each terminal in the sub- multicast group of server statistics
Condition forms frame losing set, and frame losing set is sent into sub- multicast group;If frame loss condition, server hair is not present in sub- multicast group
Go out multicast and terminate order.
If frame loss condition is not present in sub- multicast group, server sends multicast and terminates order.If there is frame losing in sub- multicast group
Situation, server need to be reissued, and the frame loss condition of each terminal and form frame losing set in the sub- multicast group of server statistics, so
Frame losing set is sent into the sub- multicast group afterwards.Frame losing set described herein is a minimum frame losing set.Preferably, in number
According in transmitting procedure, server by more than it is default reissue number still suffer from frame loss condition terminal kick out of it where subgroup broadcast
Group, the terminal are no longer participate in this sub- multicast group, can so improve the efficiency of transmission of file.
If subgroup, which broadcasts interior not every terminal, has frame loss condition, i.e. frame loss condition be present in some terminals, some
Frame loss condition is not present in terminal.Preferred server sends order of keeping in communication to the terminal in the absence of frame loss condition, to prevent end
End is exited because of time-out.Server only reissues frame losing set to those terminals that frame loss condition be present, can more effectively utilize
Bandwidth, so as to improve efficiency of transmission.If frame loss condition also be present after multiple frame losing set is reissued in some terminals, that is,
Say, if the frame losing quantity of terminal is more than default reissue and loses file minimum, server thinks that the terminal can not obtain completely
Data, server are no longer sent to error checking order, and the terminal is kicked out of to the sub- multicast group where it.
After file is sent, the frame losing (or skipping leaf) that server carries out in the range of full text checks that each terminal is by frame losing
Situation feedback server, server are flexibly reissued according to the frame loss condition of each terminal, and such as individually some terminal can be mended
Hair, reissued after can also several terminals be sorted out, certain close several terminal of frame loss condition are such as formed into sub- multicast group, by frame losing
Situation forms frame losing set, and frame losing set is reissued into the sub- multicast group.
Preferably, the file to be transmitted and/or bitmap are divided into multiple data blocks by server, each data block tool
There is equal byte number, the position of frame losing can so be precisely located and data volume that reduction is reissued, so as to improve data
Efficiency of transmission.
Increase error checking and reissue frame losing set feedback mechanism cause terminal not timing power off in the case of
The efficiency of whole transformation task can be substantially improved, there is stable, safe and reliable advantage.
For example, by A1-A10Ten files are transmitted to t1-t3030 station terminals, because each terminal transmission performance is different,
Find that situations below often occurs in this 30 station terminal in transmission or test, wherein, there are ten station terminals (assuming that t1-t10) transfer
Finish, ten station terminals are (assuming that t11-t20) eight files are transferred, another ten station terminal is (assuming that t21-t30) only transfer five files.
If not Optimal Control Strategy, efficiency of transmission is relatively low, and the data for reissuing frame losing set are still udp broadcast, have now been transferred
Complete terminal t1-t10Data also are being received, are necessarily causing the waste of transfer resource.In addition, also have some terminals reissuing repeatedly,
Frame loss condition is still suffered from, if uncontrolled, then server will be reissued ceaselessly, reduce efficiency of transmission.But according to the present embodiment
The data transmission method of offer, change control strategy, the terminal of end of transmission is stopped immediately, by unfinished transformation task
Terminal is classified, i.e. changes the member of sub- multicast group according to the transmission performance of terminal and the performance of transmission, this is also contemplated as
It is to have re-created multicast, big multicast is decomposed into small multicast, reduces the complexity of server.If server is according to being transmitted
Situation, the first multicast is re-created, by file A9-A10Transmit to terminal t11-t30;The second multicast is re-created, by file A6-A8
Transmit to terminal t21-t30.The file for the multicast transmission for making newly to create is reduced, and the quantity of terminal is reduced, and reduces the complexity of server
Degree, such as frame losing feedback calculating etc., so as to improve efficiency of transmission.
Preferably, data transmission method also includes error checking order, i.e. in the transmitting procedure of data, server to
Terminal sends error checking order, and terminal receives and after error checking order the data that receive are carried out with error checking, and by difference
Wrong inspection result feedback server.If the terminal in sub- multicast group has mistake, as the incidence relation between file whether there is
Mistake, then server the file to go wrong is reissued to the terminal.
During data are transmitted, server is managed to sub- multicast group.After some terminal is being reissued repeatedly still
During in the presence of scarce frame condition, then the terminal is kicked out of to the sub- multicast group where it.That is, the member in sub- multicast group is dynamic
Change.In addition, when reissuing frame losing data, server can be according to the parameters of configuration for different frame loss condition spirits
Living reissues frame losing data.As server can carry out reissuing frame losing data to some terminal, after frame losing set can also be formed
All terminals in sub- multicast group are reissued.Server only reissues the data of loss, no longer resends the number that terminal has had
According to only the data of transmission lost terminal, improve and reissue efficiency, so as to improve the efficiency of data transfer.
Preferably, in transmitting procedure, terminal to server sends transmission progress percentage, and makes the terminal of end of transmission
Immediately sub- multicast group where exiting it.Terminal sends the progress of file transmission according to time interval set in advance to server,
Enable the server to understand in real time the progress of transmission, to better control over terminal.
In the above-described embodiments, the file to be transmitted and bitmap are divided into multiple data blocks, each data block by server
With equal byte number.As server splits the file into multiple data blocks, each data block is 1024k;For another example in temp texts
In the bitmap of part, each bit positions represent 1024k data.When terminal to server feeds back frame loss condition, each frame losing
Position represents 1024k data.
Below with one more specifically example to frame losing, reissue and be described in detail.
1) when, it is necessary to when inquiring about the frame losing information of all terminals, server initially sets up one after a file end of transmission
Individual countdown CountDownLatch, coordinates each player, synchronously to reissue frame losing set.
If 2) content that a terminal lacks when receiving and being transmitted file has exceeded threshold value set in advance
ResendFileIfLostBelowRate, no longer reissue frame losing set;When present terminal frame losing is less than ratio, frame losing collection is reissued
Close.Give tacit consent to this value and be set as 0.67 (can be changed in Advanced Options).
Terminal is divided into three classes according to different frame loss condition servers:
A) without the terminal of any frame losing, it is only necessary to periodically send keepAlive and ensure that multicast will not be exited because of time-out.
B) terminal of the frame loss condition less than ResendFileIfLostBelowRate is, it is necessary to carry out reissuing operation.
C) frame loss condition is more than ResendFileIfLostBelowRate terminal, temporarily without reissuing, does not retransmit
Frame losing query statement.
3) all terminals are all fed back within the stand-by period, start statistics and the decision-making of next step.
If 4) have received the frame losing information of all terminals in this multicast, ignoredMap is judged<playerId,
status>Terminal account for the ratios of all terminals in whole multicast, system configuration has individual threshold value
ResendFileIfLostPlayerBelowRate:When frame losing is more than ResendFileIfLostBelowRate terminal quantity
Just continue to reissue during less than ResendFileIfLostPlayerBelowRate ratios, give tacit consent to this value be set as 0.67. if
Terminal frame losing more than 67% then terminates the transmission of this file all more than 67%, opens the transmission of next file.
If 5) CountDownLatch time-out WaitLostFrameFeedBackTime, default timeout is 30 seconds, is not had also
There is the feedback for receiving some terminals, then these terminals can be counted into ignoredMap<playerId,status>, as failure
Terminal processes.
6) Resend FileIf Lost Player Below Rate threshold values are counted after CountDownLatch terminates
After reissue number, it is necessary to limit when can reissue scarce frame data, prevent due to certain station terminal breaks down and caused by file without
Limit time reissues the problem of cannot stop.ResendFileCountIfLost is set:When the setting for thering is frame losing to retransmit how many times, write from memory
Recognize is 8.
The data transmission method that the present embodiment provides, server using multiplexer channel to multiple terminal transmission datas,
The efficiency of transmission of server can be improved, such as broadcasts 1000Mbits data transfer to 10 according to 1Mbits transmission rate
Putting device only needs to complete for 16.7 minutes.Terminal is divided into transmission etc. by the data transmission method according to the transmission performance of different terminals
The different multiple sub- multicast groups of level, and a group hierarchical transmission data are broadcast to the subgroup according to the grade of transmission, can be further big
Width lifts the efficiency of transmission of server, such as only needs 1000Mbits data transfer 16.7 minutes in theory to 100 players
It can complete.
The present embodiment also provides a kind of data transmission device, for the data transfer between server and terminal, such as Fig. 4 institutes
Show, data transmission device includes multicast group creating unit 41, control unit 42, error checking unit 43, error checking unit 44
With follow-up unit 45.Wherein, multicast group creates single 41 yuan and is used to be transmitted feelings according to the transmission performance and data of terminal
Terminal is divided into the different multiple sub- multicast groups of grade of transmission by condition.Control unit 42 is used to send control command, and root to terminal
According to grade of transmission a group hierarchical transmission data are broadcast to subgroup.Error checking unit 43 is used for the frame loss condition for checking terminal, and will lose
Frame condition feedback control unit 42.Error checking unit 44 is used for the error situation for checking that terminal receives data.Follow-up list
Member 45 is used to obtain the progress percentage that terminal receives data.
Control unit 42 is carried out data transmission simultaneously using multiple buffer and error checking, to improve efficiency of transmission.Control
Unit 42 sends end order to the sub- multicast group in the absence of frame loss condition;And statistics is present in the sub- multicast group of frame loss condition
Each terminal frame loss condition to form frame losing set, and send frame losing set to the sub- multicast group that frame loss condition be present.
Control unit 42 periodically sends order of keeping in communication to the terminal in the absence of frame loss condition, to prevent the terminal because super
When and exit.Control unit 42 is less than the default terminal for sending out loss file minimum (reissuing number) again to frame losing quantity and sent
Frame losing set.Frame losing quantity is more than the son where the default terminal for sending out loss file minimum again kicks out of it by control unit 42
Multicast.
The file to be transmitted and/or bitmap are divided into multiple data blocks by control unit 42, and each data block has
Equal byte number, it can so be easier to find out the position of frame losing, and minimum limitation ground reduces the data reissued.
The carrying out practically mode of the present embodiment data transmission device is identical with the method for operation referred in data transmission method,
It will not be repeated here.
The present embodiment data transmission device is complete according to transmission performance and data transfer by terminal by multicast group creating unit
It is divided into the different multiple sub- multicast groups of grade of transmission into situation, then passes through multiplexer channel pair according to corresponding grade of transmission
Different sub- multicast groups are transmitted data, so as to improve efficiency of transmission.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses
Mode, but the invention is not limited in this.For those skilled in the art, the essence of the present invention is not being departed from
In the case of refreshing and essence, various changes and modifications can be made therein, and these variations and modifications are also considered as protection scope of the present invention.
Claims (7)
1. a kind of data transmission method, it is characterised in that it to multiple terminal transmission datas, and is taken by multiplexer channel
The multiple terminal is dynamically divided into grade of transmission by business device according to the transmission performance and data transfer performance of the terminal
Different multiple sub- multicast groups, and a group hierarchical transmission data are broadcast to the subgroup according to the grade of transmission,
Comprise the following steps:
The server creates multicast group, and ordered multicast is sent to each terminal to the multicast group;
The terminal starts multicast client program after receiving the ordered multicast;
The server sends multicast initiation command to the terminal, then starts to the terminal transmission data;
The server is according to the transmission performance of the terminal and the performance of transmission by the terminal in the multicast group
Dynamically it is divided into the different multiple sub- multicast groups of grade of transmission, and a group hierarchical transmission is broadcast to the subgroup according to the grade of transmission
The data;
After the data transfer ends, the server sends multicast to the terminal and terminates order, and the terminal receives described group
Broadcast and terminate multicast group described in order backed off after random,
Wherein, the transmission performance includes terminal frame loss condition, if the terminal frame losing is more, grade of transmission is relatively low, if institute
State that terminal frame losing is less, then grade of transmission is higher;
Methods described also includes:
The server each terminal into the sub- multicast group sends error checking order;
The terminal checks the frame loss condition of its data received after receiving the error checking order, and frame loss condition is sent
To the server;
If in the sub- multicast group there is frame loss condition, the frame loss condition of each terminal of server statistics and formation in each terminal
Frame losing set, the frame losing set is then sent into the sub- multicast group;
If frame loss condition is not present in each server in the sub- multicast group, the server sends the subgroup and broadcasts end life
Order;
During transmission data are propagated, the server sends order of keeping in communication to the terminal in the absence of frame loss condition,
To prevent the terminal from being exited because of time-out;If the quantity of the frame losing of terminal, which is less than default send out again, loses file minimum,
The server sends frame losing set to the terminal;
If the frame losing quantity of terminal, which is more than default send out again, loses file minimum, the terminal is kicked out of it by the server
The sub- multicast group at place;
The server by more than it is default reissue number and still suffer from the terminal of frame loss condition kick out of sub- multicast group where it.
2. data transmission method according to claim 1, it is characterised in that in the transmitting procedure of data, the service
Device sends error checking order to the terminal, and error checking result is fed back the server by the terminal.
3. data transmission method according to claim 1, it is characterised in that the server is entered simultaneously using multiple buffer
Row data transfer and error checking.
4. data transmission method according to claim 1, it is characterised in that the client-side program include command channel,
Data transmission channel and progress feedback channel.
5. data transmission method according to claim 1, it is characterised in that in transmitting procedure, the terminal is to described
Server sends transmission progress percentage, and the terminal of end of transmission is exited sub- multicast group where it immediately.
6. data transmission method according to claim 1, it is characterised in that the server file that will be transmitted
And/or bitmap is divided into multiple data blocks, each data block has equal byte number, is then transmitted.
7. a kind of data transmission device, for the data transfer between server and terminal, it is characterised in that the server leads to
Cross multiplexer channel includes to the terminal transmission data, the server:
Multicast group creating unit, it is transmitted situation for the transmission performance according to terminal and data and the terminal is divided into transmission
The different multiple sub- multicast groups of grade;
Control unit, for sending control command to the terminal, and a group hierarchical transmission is broadcast to the subgroup according to grade of transmission
Data;
Wherein, the transmission performance includes terminal frame loss condition, if the terminal frame losing is more, grade of transmission is relatively low, if institute
State that terminal frame losing is less, then grade of transmission is higher;
Error checking unit, feed back to described control unit for checking the frame loss condition of the terminal, and by frame loss condition;
Described control unit counts the frame loss condition of each terminal in the sub- multicast group, and forms frame losing set;The control
Unit sends the frame losing set to the sub- multicast group that frame loss condition be present;Described control unit is in the absence of frame loss condition
Sub- multicast group send end order;
During propagation data, described control unit periodically sends life of keeping in communication to the terminal in the absence of frame loss condition
Order, to prevent the terminal from being exited because of time-out;If the quantity of the frame losing of terminal, which is less than default send out again, loses file minimum,
Described control unit sends frame losing set to the terminal;If the frame losing quantity of terminal be more than it is default send out again lose file it is minimum
Value, then described control unit is no longer sent to the error checking order, and the terminal is kicked out of to the son where it
Multicast.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216867.0A CN104010032B (en) | 2014-05-21 | 2014-05-21 | A kind of data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216867.0A CN104010032B (en) | 2014-05-21 | 2014-05-21 | A kind of data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104010032A CN104010032A (en) | 2014-08-27 |
CN104010032B true CN104010032B (en) | 2018-04-10 |
Family
ID=51370523
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410216867.0A Active CN104010032B (en) | 2014-05-21 | 2014-05-21 | A kind of data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104010032B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871509A (en) * | 2016-03-25 | 2016-08-17 | 乐视控股(北京)有限公司 | Data transmission method and device |
CN106302780B (en) * | 2016-08-25 | 2020-07-31 | 北京京东尚科信息技术有限公司 | Method, device and system for batch data transmission of cluster equipment and server |
CN114567796A (en) * | 2022-03-04 | 2022-05-31 | 北京字节跳动网络技术有限公司 | Frame loss method, device, server and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852249A (en) * | 2005-12-01 | 2006-10-25 | 华为技术有限公司 | Multi-cast broadcasting business realizing method |
CN101360054A (en) * | 2008-09-26 | 2009-02-04 | 腾讯科技(深圳)有限公司 | Data transmission system and method |
WO2013123654A1 (en) * | 2012-02-22 | 2013-08-29 | 北京大学深圳研究生院 | Method and system for layered distribution of ip multicast data |
-
2014
- 2014-05-21 CN CN201410216867.0A patent/CN104010032B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1852249A (en) * | 2005-12-01 | 2006-10-25 | 华为技术有限公司 | Multi-cast broadcasting business realizing method |
CN101360054A (en) * | 2008-09-26 | 2009-02-04 | 腾讯科技(深圳)有限公司 | Data transmission system and method |
WO2013123654A1 (en) * | 2012-02-22 | 2013-08-29 | 北京大学深圳研究生院 | Method and system for layered distribution of ip multicast data |
Non-Patent Citations (1)
Title |
---|
"多网网关管理软件与可靠IP组播研究";王邦彪;《中国优秀硕士学位论文全文数据库 信息科技辑》;20130415;I136-200 * |
Also Published As
Publication number | Publication date |
---|---|
CN104010032A (en) | 2014-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Bhat et al. | Not so QUIC: A performance study of DASH over QUIC | |
CN106656784B (en) | Data stream propagation system and method for block chain network | |
CN110166366A (en) | Method for controlling network congestion, device and system | |
CN104010032B (en) | A kind of data transmission method and device | |
Tajbakhsh et al. | A generalized model for cost and fairness analysis in coded cooperative data exchange | |
JP2007522750A (en) | Data recovery method in a system capable of handling multicast and broadcast transmissions | |
MXPA06000670A (en) | Method and system for providing a transmission link for streaming traffic. | |
CN105262836A (en) | Information push method of server and push information reception method of client | |
EP2878098B1 (en) | User equipment node, server node and methods performed in such nodes for performing file repair procedure | |
CN115277806A (en) | Cloud desktop connection method, device and equipment | |
CN112866338B (en) | Server state detection method and device | |
CN107995201B (en) | Data transmission method and device, server and storage medium | |
WO2016029697A1 (en) | Data transmission method, device and storage medium | |
US9232468B2 (en) | Delivering a plurality of simultaneous sessions to a client via a radio access network | |
DE112014006061T5 (en) | Connection control method by a communication terminal | |
CN105119968A (en) | Picture transmission method and device | |
US20170331894A1 (en) | Slave device control method | |
CN1316783C (en) | Data restoring method for application layer group broadcast | |
Xu | A device‐to‐device multicast scheme for delay‐constraint content delivery | |
JP2006304067A (en) | Data receiving apparatus, data transmitting apparatus, and data receiving method | |
WO2014066600A4 (en) | Systems and methods for sharing bandwidth across multiple video streams | |
CN101741586B (en) | Network multicast data packet re-receiving processing method | |
Kİraz et al. | ALORT: a transport layer protocol using adaptive loss recovery method for WSN | |
CN102714630A (en) | Communication device, communication system and communication method | |
CN105682168A (en) | Compressible wireless multi-hop data transmission method |
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 |