CN105721333B - A kind of data transmission device and method - Google Patents
A kind of data transmission device and method Download PDFInfo
- Publication number
- CN105721333B CN105721333B CN201610039213.4A CN201610039213A CN105721333B CN 105721333 B CN105721333 B CN 105721333B CN 201610039213 A CN201610039213 A CN 201610039213A CN 105721333 B CN105721333 B CN 105721333B
- Authority
- CN
- China
- Prior art keywords
- communication terminal
- data packet
- data
- round
- packet
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 132
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000008859 change Effects 0.000 claims abstract description 36
- 238000004891 communication Methods 0.000 claims description 180
- 238000001514 detection method Methods 0.000 claims description 27
- 230000001934 delay Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000007423 decrease Effects 0.000 claims description 4
- 230000009467 reduction Effects 0.000 claims description 2
- 238000007689 inspection Methods 0.000 claims 1
- 238000012546 transfer Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/25—Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
- H04L47/263—Rate modification at the source after receiving feedback
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Data transmission device provided in an embodiment of the present invention and method, are related to field of data transmission.During data transmission, the situation of change of round-trip delay is detected, estimates network state, flow control is carried out to the transmission of data packet.Congestion is avoided by estimating the shake of network, carrys out the efficiency of transmission of data in improve data transfer system.
Description
Technical field
The present invention relates to fields of communication technology, in particular to a kind of data transmission device and method.
Background technique
In current existing Internet multimedia communication technology, carried out data transmission mostly by TCP or UDP.User
When accessing internet, the factors such as access place, access device, data signal strength have an impact the efficiency of transmission.In TCP or
In person's UDP technology, most of is all to guarantee the reliability of information by way of feedback, but this form is to multimedia reality
For Shi Tongxin, real-time, efficiency of transmission are much lower.It is simple be difficult to meet real time flow medium by UDP, TCP technology answer
Use scene.Therefore, how under the premise of guaranteeing information reliability, real-time, the efficiency of transmission of improve data transfer are current
The big project of one faced.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of data transmission device and method.
A kind of data transmission device provided in an embodiment of the present invention is applied to the first communication terminal, and first communication is eventually
End is connect at least one second serial communication, and the data transmission device includes:
Data transmission blocks, for sending the first data packet to second communication terminal;
Feedback reception module, the band fed back after receiving first data packet for receiving second communication terminal
There is the second data packet of acknowledgement indicator;
Round-trip delay computing module, for according to the time and reception second data packet for sending first data packet
Time calculate round-trip delay;
Smooth roundtrip time-delay calculation module, for uniting to the multiple round-trip delays being calculated in the preset period
Meter calculates smooth roundtrip time delay according to the change rate of round-trip delay, to measure the network actual time delay situation in the period;
Network state estimation block, for network-like according to the round-trip delay and the smooth roundtrip delay estimation
State;
Transmitted traffic adjusts module, for adjusting the data transmission blocks to described the according to the network state that estimates
Two communication terminals send the uninterrupted of first data packet.
Preferably, the data transmission device further include:
Change rate detection module, for the change rate to the calculated round-trip delay and the smooth roundtrip time delay into
Row detection;
Round-trip delay mark sending module, for being more than when the change rate of the round-trip delay or the smooth roundtrip time delay
When preset change rate threshold value, the third data packet for having round-trip delay mark is sent to second communication terminal;
Transmitted traffic adjustment module is also used to receive that second communication terminal sends with round-trip delay mark
Third data packet, and when receiving the third data packet of the second communication terminal transmission, adjustment sends first data packet
Uninterrupted.
Preferably, the data transmission device further include:
Packet loss detection module, for detecting packet loss feelings when the first data packet for receiving the second communication terminal transmission
Condition, the 4th data packet when detecting packet loss, to second communication terminal feedback with mark unconfirmed;
The data transmission blocks are also used to receive the 4th with mark unconfirmed of the second communication terminal feedback
Data packet, and when receiving four data packet of the second communication terminal transmission, institute is sent to second communication terminal again
State the first data packet.
Preferably, the data transmission device further include:
Packet loss detection module is also used to detect when causing not communicating with second communication terminal due to packet loss, to institute
It states the second communication terminal and sends the 5th data packet for having end mark;
Connection resetting module, the 5th data packet with end mark sent for receiving second communication terminal,
And when receiving five data packet of the second communication terminal transmission, the communication link with second communication terminal is re-established
It connects.
Preferably, the transmitted traffic adjustment module sends first data packet according to the network state adjustment estimated
Uninterrupted mode are as follows:
Linearly increase according to the size that preset growth parameter controls transmission window to increase the uninterrupted;Or
Exponentially decline according to the size that preset reduction state modulator sends window to reduce the uninterrupted.
A kind of data transmission method provided in an embodiment of the present invention is applied to the first communication terminal, and first communication is eventually
End is connect at least one second serial communication, and the data transmission method includes:
The first data packet is sent to second serial communication;
Receive second with acknowledgement indicator that second communication terminal is fed back after receiving first data packet
Data packet;
Round-trip delay is calculated according to the time for sending first data packet and the time for receiving second data packet;
The multiple round-trip delays being calculated in the preset period are counted, according to the change rate meter of round-trip delay
Smooth roundtrip time delay is calculated, to measure the network actual time delay situation in the period;
According to the round-trip delay and the smooth roundtrip delay estimation network state;
The data transmission blocks, which are adjusted, according to the network state that estimates sends described the to second communication terminal
The uninterrupted of one data packet.
Preferably, the method also includes:
The change rate of the calculated round-trip delay and the smooth roundtrip time delay is detected;
When the round-trip delay or the change rate of the smooth roundtrip time delay are more than preset change rate threshold value, to described
Second communication terminal sends the third data packet for having round-trip delay mark;
The third data packet with round-trip delay mark that second communication terminal is sent is received, and is receiving second
When the third data packet that communication terminal is sent, adjustment sends the uninterrupted of first data packet.
Preferably, the method also includes:
Detection receives packet drop when the first data packet that second communication terminal is sent, when detecting packet loss, to
Fourth data packet of the second communication terminal feedback with mark unconfirmed;
The 4th data packet with mark unconfirmed of the second communication terminal feedback is received, and logical receiving second
When believing four data packet that terminal is sent, first data packet is sent to second communication terminal again.
Preferably, the method also includes:
It detects when causing not communicating with second communication terminal due to packet loss, is sent to second communication terminal
The 5th data packet with end mark;
The 5th data packet with end mark that second communication terminal is sent is received, and is receiving the second communication
When five data packet that terminal is sent, the communication connection with second communication terminal is re-established.
Preferably, the step of network state adjustment that the basis estimates sends the uninterrupted of first data packet
Include:
Linearly increase according to the size of the transmission window of preset growth parameter control data transmission device to increase
State uninterrupted;Or
Exponentially decline according to the size of the preset transmission window for reducing parameter control data transmitting device to reduce
State uninterrupted.
Compared with prior art, data transmission device provided in an embodiment of the present invention and method, in the process of data transmission
In, the situation of change of round-trip delay is detected, estimates network state, flow control is carried out to the transmission of data packet.By estimating net
The shake of network avoids congestion, carrys out the efficiency of transmission of data in improve data transfer system.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
What is interacted between the first communication terminal and the second communication terminal that Fig. 1 provides for present pre-ferred embodiments shows
It is intended to.
The block diagram of first communication terminal shown in Fig. 1 that Fig. 2 provides for present pre-ferred embodiments.
Fig. 3 is the functional block diagram for Fig. 2 data transmission device that present pre-ferred embodiments provide.
Fig. 4 is the flow chart for the data transmission method applied to data transmission device that present pre-ferred embodiments provide.
The method flow of transmitted traffic size is adjusted in the data transmission method that Fig. 5 provides for present pre-ferred embodiments
Figure.
The method flow of data is retransmitted in the data transmission method that Fig. 6 provides for present pre-ferred embodiments when packet loss
Figure.
The method flow of communication connection is re-established in the data transmission method that Fig. 7 provides for present pre-ferred embodiments
Figure.
Main element symbol description
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
As shown in Figure 1, being the first communication terminal 100 and second in the data transmission system of present pre-ferred embodiments offer
The schematic diagram interacted between communication terminal 200.First communication terminal 100 and one or more second communication terminals
It is communicatively coupled between 200 by network, to carry out data communication or interaction.First communication terminal 100 and second is logical
Letter terminal 200 can be PC (personal computer, PC), tablet computer, smart phone, personal digital assistant
(personal digital assistant, PDA) etc..In the present embodiment, first communication terminal 100 is sent out as data
Sending end, second communication terminal 200 are used as data receiver.But it should be understood that second communication terminal 200
Also it can be used as data sending terminal, and first communication terminal 100 accordingly can be used as data receiver.That is, described in the present embodiment
The first communication terminal 100 can be mutually isostructural communication terminal with the second communication terminal 200.It uses " first " and " second "
Term distinguish different communication terminals just for the sake of facilitating description, rather than to the structure or composition of particular communication terminal
There are any restrictions.
As shown in Fig. 2, being the box signal for the first communication terminal 100 shown in FIG. 1 that present pre-ferred embodiments provide
Figure.First communication terminal 100 includes data transmission device 10, memory 20 and processor 30.
The memory 20 and each element of processor 30 are directly or indirectly electrically connected between each other, to realize data
Transmission or interaction.Electrically connect for example, these elements can be realized between each other by one or more communication bus or signal wire
It connects.The data transmission device 10 includes that at least one can be stored in the storage in the form of software or firmware (firmware)
In device 20 or the software function that is solidificated in the operating system (operating system, OS) of first communication terminal 100
Module.The processor 30 is for executing the executable module stored in memory 20, such as the packet of the data transmission device 10
The software function module or computer program included.
Wherein, memory 20 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 20 is for storing program, and the processor 30 executes described program after receiving and executing instruction, and aforementioned
Method performed by the data transmission device 10 that the stream process that inventive embodiments any embodiment discloses defines can be applied to locate
It manages in device 30, or realized by processor 30.
Processor 30 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 30 can be with
It is general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit
(Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), specific integrated circuit (ASIC),
Ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard
Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor
It can be microprocessor or the processor be also possible to any conventional processor etc..
Referring to Fig. 3, the functional block diagram of Fig. 2 data transmission device 10 provided for present pre-ferred embodiments.
The data transmission device 10 includes data transmission blocks 101, feedback reception module 102, round-trip delay computing module 103, puts down
Sliding round-trip delay computing module 104, network state estimation block 105, change rate detection module 106, round-trip delay mark are sent
Module 107, packet loss detection module 108, transmitted traffic adjustment module 109 and connection resetting module 110.
The data transmission blocks 101 are used to send the first data packet to second communication terminal 200.
First data packet is the data portion of the intercommunication of communication terminal, as mutually sent in video conferencing system
Video data.In the present embodiment, data transmission device 10 can be to specified one or more second communication terminal 200
The first data packet is sent, the first data can also be sent to all second communication terminals 200 connecting with the first communication terminal 100
Packet.
The feedback reception module 102 is used to receive marking with confirmation from second communication terminal 200 feedback
After second data packet of will, second data packet is to receive first data packet from second communication terminal 200
It sends afterwards.
In the present embodiment, the first communication terminal 100 and the functional module having the same of the second communication terminal 200, can hold
The identical operation of row.
When the second communication terminal 200 is received from the first data packet that first communication terminal 100 is sent, need
The second data packet of acknowledgement indicator is had, to the first communication terminal 100 feedback for sending first data packet to indicate to receive
Its first data packet sent, and there is no packet losses.Equally, when the first communication terminal 100 receives the second communication terminal
When the first data packet of 200 transmissions, also feedback has the second data packet of acknowledgement indicator.
The number of the quantity for the first data packet that data transmission device 10 is issued by statistics and the second data packet received
Amount, can judge network state.The quantity of the quantity and the first data packet of the second data packet received is closer, just
Illustrate that network state is better.
The round-trip delay computing module 103 was used for according to the time and reception described second for sending first data packet
The time of data packet calculates round-trip delay.
The parameter for measuring network state goes back the time of bag data transmission other than the success rate of data transmission.From sending
The time of first data packet starts to calculate, and is terminated to receiving by the time of the second data packet of first data packet feedback, i.e.,
It is round-trip between the second communication terminal 200 to send the second data packet of the first communication terminal 100 and feedback of the first data packet
Time delay.In data transmission procedure, the first communication terminal 100 with it is other each be attached thereto the second communication terminal 200 it
Between, due to the difference of network state, calculated round-trip delay may be different.By calculating separately the first communication terminal
100 with the round-trip delays of other each the second communication terminals of number 200, available first communication terminal 100 and others are each
The network state of a second communication terminal 200.
The smooth roundtrip time-delay calculation module 104 is used for the multiple round-trip delays being calculated in the preset period
It is counted, smooth roundtrip time delay is calculated according to the change rate of round-trip delay, to measure the network actual time delay in the period
Situation.
During data transmission, each group of corresponding first data packet and the second data packet, all calculate one it is past
Time delay is returned, and the round-trip delay can only indicate the network state at some time point.In the present embodiment, more to what is be calculated
A round-trip delay is counted, according to the variation tendency of round-trip delay whithin a period of time, change rate, when obtaining smooth roundtrip
Prolong, smooth roundtrip time delay is assembly average, desired value or the estimated value of round-trip delay, to measure the network in the period
Actual time delay situation.What smooth roundtrip time delay indicated is the overall network state in a period of time.
The network state estimation block 105 is used for according to the round-trip delay and the smooth roundtrip delay estimation net
Network state.
In the present embodiment, network state includes current network bandwidth, network delay etc..When being calculated round-trip
Prolong and the smooth roundtrip time delay on the basis of, the network state in the following certain period of time can be estimated, in turn
The mode that can be sent to data is debugged in advance, to adapt to the variation that network state may occur.
The change rate detection module 106 is for the change to the calculated round-trip delay and the smooth roundtrip time delay
Rate is detected.
The round-trip delay mark sending module 107 is used for the variation when the round-trip delay or the smooth roundtrip time delay
When rate is more than preset change rate threshold value, the third data for having round-trip delay mark are sent to second communication terminal 200
Packet.
The degree of round-trip delay perhaps smooth roundtrip Delay Variation can also reflect the state of network when round-trip delay or flat
When sliding round-trip delay changes more violent, illustrate that the fluctuation of network is bigger.Pass through detection round-trip delay and the smooth roundtrip
The change rate of time delay can be handled for the emergent state of emergency in network.
Sending the third data packet with round-trip delay mark indicates to detect the state of emergency of burst.Pass through third number
According to packet, the first communication terminal 100 both can transmit information to the second communication terminal 200, make it to the side for sending the first data packet
Formula is adjusted.Also the information that can receive the transmitting of the second communication terminal 200 adjusts the mode for sending the first data packet
It is whole.
When the packet loss detection module 108 is used to detect the first data packet for receiving the transmission of the second communication terminal 200
Packet drop, the 4th data packet when detecting packet loss, to second communication terminal 200 feedback with mark unconfirmed;
When detecting packet loss, the first communication terminal 100 sends the 4th data packet with mark unconfirmed, to inform hair
Send the second communication terminal 200 of the first data packet.Equally, the first communication terminal 100 can also be by receiving the second communication terminal
200 the 4th data packets for having mark unconfirmed sent or the second communication terminal 200 receive its first data packet sent
When there is packet loss.
In data transmission system, some communication terminals only receive data or only send data.In such case
Under, the data of the second data packet of transmission are less, and the above-mentioned method by the second data packet estimation network state is caused to make
Used time, obtained result are not accurate enough.Packet loss is detected, informs the first data packet of transmission by sending the 4th data packet
Communication terminal retransmits it to the first data packet of packet loss.
In the present embodiment, if the data transmission system at 200 place of the first communication terminal 100 and the second communication terminal
In be multimedia conference system, loss a certain proportion of for data packet is acceptable, so in the feelings for having a small amount of packet loss
It under condition, can not retransmit, continue data transmission, guarantee efficiency of transmission.
The transmitted traffic adjustment module 109 is for adjusting the data transmission blocks 101 to second communication terminal
200 send the uninterrupted of first data packet.
The case where transmitted traffic adjustment adjustment of module 109 sends the uninterrupted of first data packet includes a variety of.It can
To be adjusted according to the network state estimated.During data transmission, the first communication terminal 100 constantly sends the
The second data packet of one data packet and reception, and round-trip delay and smooth roundtrip time delay are thus constantly calculated, based on round-trip
After time delay and smooth roundtrip time delay estimate network state, the uninterrupted for sending first data packet is adjusted
It is whole.When round-trip delay or smooth roundtrip time delay increase, the uninterrupted is reduced, when round-trip delay or smooth roundtrip time delay subtract
When few, increase the uninterrupted.It can be adjusted when receiving third data packet, when receiving third data packet, say
Occur biggish fluctuation in bright network, needs rapidly to be adjusted for the fluctuation.
In the present embodiment, the adjustment of transmitted traffic adjustment module 109 sends the uninterrupted mode of first data packet
Are as follows: linearly increase according to the size that preset growth parameter controls transmission window to increase the uninterrupted;Or according to
The preset size for reducing state modulator transmission window exponentially declines to reduce the uninterrupted.
Packet loss detection module 108 is also used to packet loss detection module and is also used to detect since packet loss causes to lead to described second
When letter terminal 200 can not communicate, the 5th data packet for having end mark is sent to second communication terminal 200.
When network state very severe, the severity of packet loss reaches the first communication terminal 100 and the second communication terminal
When can not be communicated between 200, the 5th data packet of end mark is had by sending, terminates current communication connection.
The connection resetting module 110 is used to receive that second communication terminal 200 to send with end mark the
Five data packets, and when receiving five data packet of the second communication terminal 200 transmission, it re-establishes and is communicated eventually with described second
The communication connection at end 200.
When network quality variation leads to not continue communication, the first communication terminal 100 and second is reset
Communication connection between communication terminal 200 guarantees the continuation of communication.
In the present embodiment, the first communication terminal 100 and the second communication terminal 200 all include above-mentioned data transmission
Device 10 and functional module.First communication terminal 100 and the second communication terminal 200 can be sent out by corresponding functional module
The first data packet, the second data packet, third data packet, the 4th data packet and the 5th data packet are sent, also can receive transmission
First data packet, the second data packet, third data packet, the 4th data packet and the 5th data packet, and pass through corresponding function mould
Block executes corresponding operation.
Referring to Fig. 4, being the soft data transmission method applied to data transmission device that present pre-ferred embodiments provide
Flow chart.Detailed process shown in Fig. 4 will be described in detail below.
Step S101 sends the first data packet to second communication terminal 200.
Step S101 can be executed by the data transmission blocks 101 of the data transmission device 10.About step S101
Description can specifically join to the above-mentioned description to data transmission blocks 101.
Step S102, what reception second communication terminal 200 was fed back after receiving first data packet has true
Recognize the second data packet of mark.
Step S102 can be executed by the feedback reception module 102 of the data transmission device 10.About step S102
Description can specifically join to the above-mentioned description to feedback reception module 102.
Step S103 is calculated past according to the time for sending first data packet and the time for receiving second data packet
Return time delay.
Step S103 can be executed by the round-trip delay computing module 103 of the data transmission device 10.About the step
The description of S103 can specifically be joined to the above-mentioned description to round-trip delay computing module 103.
Step S104 counts the multiple round-trip delays being calculated in the preset period, according to round-trip delay
Change rate calculate smooth roundtrip time delay, to measure the network actual time delay situation in the period.
Step S104 can be executed by the smooth roundtrip time-delay calculation module 104 of the data transmission device 10.About this
The description of step S104 can specifically be joined to the above-mentioned description to smooth roundtrip time-delay calculation module 104.
Step S105, according to the round-trip delay and the smooth roundtrip delay estimation network state.
Step S105 can be executed by 105 module of network state estimation block of the data transmission device 10.About this
The description of step S105 can specifically be joined to the above-mentioned description to network state estimation block 105.
Step S106 sends the uninterrupted of first data packet according to the network state adjustment estimated.
Step S106 can adjust module 109 by the transmitted traffic of the data transmission device 10 and execute.About the step
The description of S106 can specifically be joined to the above-mentioned description to transmitted traffic adjustment module 109.
Referring to Fig. 5, being the side for adjusting transmitted traffic size in the data transmission method of present pre-ferred embodiments offer
Method flow chart.Detailed process shown in fig. 5 will be described in detail below.On the basis of this method is method shown in Fig. 4
Implement.
Step S201 detects the change rate of the calculated round-trip delay and the smooth roundtrip time delay.
Step S201 can be executed by the change rate detection module 106 of the data transmission device 10.About the step
The description of S201 can specifically be joined to the above-mentioned description to change rate detection module 106.
Step S202, when the round-trip delay or the change rate of the smooth roundtrip time delay are more than preset change rate threshold value
When, the third data packet for having round-trip delay mark is sent to second communication terminal 200.
Step S202 can be executed by the round-trip delay mark sending module 107 of the data transmission device 10.About this
The description of step S202 can specifically be joined to the above-mentioned description to round-trip delay mark sending module 107.
Step S203 receives the third data packet with round-trip delay mark that second communication terminal 200 is sent, and
When receiving the third data packet of the second communication terminal 200 transmission, adjustment sends the uninterrupted of first data packet.
Step S203 can adjust module 109 by the transmitted traffic of the data transmission device 10 and execute.About the step
The description of S203 can specifically be joined to the above-mentioned description to transmitted traffic adjustment module 109.
It the present embodiment provides in method flow, is executing the round-trip delay mark sending module 107 of step S202 and is executing
The transmitted traffic of step S203 adjusts module 109, may belong to the first communication terminal 100, also may belong to the second communication terminal
200。
Referring to Fig. 6, data are retransmitted in the data transmission method provided for present pre-ferred embodiments when packet loss
Method flow diagram.Detailed process shown in fig. 6 will be described in detail below.This method is method basis shown in Fig. 4
Upper implementation.
Step S301, detection receive packet drop when the first data packet that second communication terminal 200 is sent, detection
The 4th data packet when to packet loss, to second communication terminal 200 feedback with mark unconfirmed.
Step S301 can be executed by the packet loss detection module 108 of the data transmission device 10.About step S301
Description can specifically join to the above-mentioned description to packet loss detection module 108.
Step S302, the 4th data packet with mark unconfirmed that reception second communication terminal 200 is fed back, and
When receiving four data packet of the second communication terminal 200 transmission, described first is sent to second communication terminal 200 again
Data packet.
Step S302 can be executed by the data transmission blocks 101 of the data transmission device 10.About step S302
Description can specifically join to the above-mentioned description to data transmission blocks 101.
It the present embodiment provides in method flow, is executing the packet loss detection module 108 of step S301 and is executing step S302
Data transmission blocks 101, may belong to the first communication terminal 100, also may belong to the second communication terminal 200.
Referring to Fig. 7, re-establishing data transmission device 10 in the data transmission method that present pre-ferred embodiments provide
The method flow diagram of communication connection.Detailed process shown in Fig. 7 will be described in detail below.This method is shown in Fig. 4
Method on the basis of implement.
Step S401 is measured when causing not communicating with second communication terminal 200 due to packet loss, logical to described second
Believe that terminal 200 sends the 5th data packet for having end mark.
Step S401 can be executed by the packet loss detection module 108 of the data transmission device 10.About step S401
Description can specifically join to the above-mentioned description to packet loss detection module 108.
Step S402 receives the 5th data packet with end mark that second communication terminal 200 is sent, and is connecing
When receiving five data packet of the second communication terminal 200 transmission, the communication link with second communication terminal 200 is re-established
It connects.
Step S402 can reset module 110 by the connection of the data transmission device 10 and execute.About step S402
Description can specifically join to it is above-mentioned to connection resetting module 110 description.
It the present embodiment provides in method flow, is executing the packet loss detection module 108 of step S401 and is executing step S402
Connection reset module 110, may belong to the first communication terminal 100, also may belong to the second communication terminal 200.
In conclusion data transmission device provided in an embodiment of the present invention and method, during data transmission, detection
The situation of change of round-trip delay estimates network state, carries out flow control to the transmission of data packet.By the shake for estimating network
Congestion is avoided, carrys out the efficiency of transmission of data in improve data transfer system.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code include it is one or more it is for implementing the specified logical function can
It executes instruction.It should also be noted that function marked in the box can also be with difference in some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can also execute in the opposite order, this depends on the function involved.It is also noted that in block diagram and or flow chart
The combination of box in each box and block diagram and or flow chart, can function or movement as defined in executing it is dedicated
Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of data transmission device, it is applied to the first communication terminal, first communication terminal second is communicated at least one
Terminal communication connection, which is characterized in that the data transmission device includes:
Data transmission blocks, for sending the first data packet to second communication terminal;
Feedback reception module, for receiving that second communication terminal feeds back after receiving first data packet with true
Recognize the second data packet of mark;
Round-trip delay computing module, for according to the time for sending first data packet and receive second data packet when
Between calculate round-trip delay;
Smooth roundtrip time-delay calculation module, for being counted to the multiple round-trip delays being calculated in the preset period,
Smooth roundtrip time delay is calculated according to the change rate of round-trip delay, to measure the network actual time delay situation in the period;
Network state estimation block, for according to the round-trip delay and the smooth roundtrip delay estimation network state;
Transmitted traffic adjusts module, logical to described second for adjusting the data transmission blocks according to the network state estimated
Letter terminal sends the uninterrupted of first data packet.
2. data transmission device according to claim 1, which is characterized in that the data transmission device further include:
Change rate detection module is examined for the change rate to the calculated round-trip delay and the smooth roundtrip time delay
It surveys;
Round-trip delay mark sending module is more than default for the change rate when the round-trip delay or the smooth roundtrip time delay
Change rate threshold value when, to second communication terminal send have round-trip delay mark third data packet;
Transmitted traffic adjustment module is also used to receive that second communication terminal sends with round-trip delay mark the
Three data packets, and when receiving the third data packet of the second communication terminal transmission, adjustment sends the stream of first data packet
Measure size.
3. data transmission device according to claim 1, which is characterized in that the data transmission device further include:
Packet loss detection module, for detecting packet drop when the first data packet for receiving the second communication terminal transmission, inspection
The 4th data packet when measuring packet loss, to second communication terminal feedback with mark unconfirmed;
The data transmission blocks are also used to receive the 4th data with mark unconfirmed of the second communication terminal feedback
Packet, and when receiving four data packet of the second communication terminal transmission, described the is sent to second communication terminal again
One data packet.
4. data transmission device according to claim 3, which is characterized in that the data transmission device further include:
Packet loss detection module is also used to detect when causing not communicating with second communication terminal due to packet loss, to described
Two communication terminals send the 5th data packet for having end mark;
Connection resetting module, the 5th data packet with end mark sent for receiving second communication terminal, and
When receiving five data packet of the second communication terminal transmission, the communication connection with second communication terminal is re-established.
5. data transmission device according to claim 1, which is characterized in that the transmitted traffic adjustment module is according to estimation
Network state adjustment out sends the uninterrupted mode of first data packet are as follows:
Linearly increase according to the size that preset growth parameter controls transmission window to increase the uninterrupted;Or
Exponentially decline according to the size that preset reduction state modulator sends window to reduce the uninterrupted.
6. a kind of data transmission method, it is applied to the first communication terminal, first communication terminal second is communicated at least one
Terminal communication connection, which is characterized in that the data transmission method includes:
The first data packet is sent to second serial communication;
Receive the second data with acknowledgement indicator that second communication terminal is fed back after receiving first data packet
Packet;
Round-trip delay is calculated according to the time for sending first data packet and the time for receiving second data packet;
The multiple round-trip delays being calculated in the preset period are counted, are calculated according to the change rate of round-trip delay flat
Sliding round-trip delay, to measure the network actual time delay situation in the period;
According to the round-trip delay and the smooth roundtrip delay estimation network state;
The data transmission blocks, which are adjusted, according to the network state estimated sends first number to second communication terminal
According to the uninterrupted of packet.
7. data transmission method according to claim 6, which is characterized in that the method also includes:
The change rate of the calculated round-trip delay and the smooth roundtrip time delay is detected;
When the round-trip delay or the change rate of the smooth roundtrip time delay are more than preset change rate threshold value, to described second
Communication terminal sends the third data packet for having round-trip delay mark;
The third data packet with round-trip delay mark that second communication terminal is sent is received, and is receiving the second communication
When the third data packet that terminal is sent, adjustment sends the uninterrupted of first data packet.
8. data transmission method according to claim 6, which is characterized in that the method also includes:
Detection receives packet drop when the first data packet that second communication terminal is sent, when detecting packet loss, to described
Fourth data packet of the second communication terminal feedback with mark unconfirmed;
The 4th data packet with mark unconfirmed of the second communication terminal feedback is received, and is receiving the second communication end
When holding four data packet sent, first data packet is sent to second communication terminal again.
9. data transmission method according to claim 8, which is characterized in that the method also includes:
It detects when causing not communicating with second communication terminal due to packet loss, is had to second communication terminal transmission
5th data packet of end mark;
The 5th data packet with end mark that second communication terminal is sent is received, and is receiving the second communication terminal
When five data packet sent, the communication connection with second communication terminal is re-established.
10. data transmission method according to claim 6, which is characterized in that the network state tune that the basis estimates
Haircut the uninterrupted for sending first data packet the step of include:
Linearly increase according to the size of the transmission window of preset growth parameter control data transmission device to increase the stream
Measure size;Or
Exponentially decline according to the size of the preset transmission window for reducing parameter control data transmitting device to reduce the stream
Measure size.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610039213.4A CN105721333B (en) | 2016-01-21 | 2016-01-21 | A kind of data transmission device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610039213.4A CN105721333B (en) | 2016-01-21 | 2016-01-21 | A kind of data transmission device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105721333A CN105721333A (en) | 2016-06-29 |
CN105721333B true CN105721333B (en) | 2019-02-15 |
Family
ID=56153640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610039213.4A Active CN105721333B (en) | 2016-01-21 | 2016-01-21 | A kind of data transmission device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105721333B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603432B (en) * | 2016-12-23 | 2019-09-17 | 浙江大华技术股份有限公司 | A kind of method for controlling network congestion and device of warning net |
CN107770814B (en) * | 2017-09-29 | 2021-06-15 | 努比亚技术有限公司 | Data link equalization method, mobile terminal and computer readable storage medium |
SE542531C2 (en) | 2017-12-22 | 2020-06-02 | Epiroc Rock Drills Ab | Controlling communication of a mining and / or construction machine |
CN110493298B (en) * | 2018-05-15 | 2021-10-08 | 阿里巴巴(中国)有限公司 | Information synchronization method and device |
CN109474538B (en) * | 2018-12-29 | 2021-07-30 | 北京达佳互联信息技术有限公司 | Data transmission method and device, terminal equipment and storage medium |
CN111601177B (en) * | 2020-04-13 | 2021-03-23 | 北京创享苑科技文化有限公司 | Online continuous inspection method based on data packet round-trip delay distribution |
CN111818231B (en) * | 2020-07-06 | 2021-02-09 | 全时云商务服务股份有限公司 | Packet loss compensation method, device, data message transmission system and storage medium |
CN111880952A (en) * | 2020-07-31 | 2020-11-03 | 全时云商务服务股份有限公司 | Application program jumping method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545277A (en) * | 2003-11-19 | 2004-11-10 | 北京邮电大学 | An End-to-End Network Bottleneck Bandwidth Measurement Method |
CN1725760A (en) * | 2004-07-22 | 2006-01-25 | Lg电子株式会社 | Apparatus and method for measuring round trip delay time of variable bit rate multimedia data |
CN102468941A (en) * | 2010-11-18 | 2012-05-23 | 华为技术有限公司 | Network packet loss processing method and device |
CN104584493A (en) * | 2012-08-27 | 2015-04-29 | 高通股份有限公司 | Device and method for adaptive rate multimedia communications on a wireless network |
CN105264843A (en) * | 2013-06-07 | 2016-01-20 | 苹果公司 | Managing pending acknowledgement packets in a communication device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005006665A1 (en) * | 2003-07-01 | 2005-01-20 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for setting the retransmission timeout period in a packet switched communication network |
US7760633B2 (en) * | 2005-11-30 | 2010-07-20 | Cisco Technology, Inc. | Transmission control protocol (TCP) congestion control using transmission delay components |
CN102388584B (en) * | 2011-09-22 | 2014-07-16 | 华为技术有限公司 | Method and device for controlling congestion |
CN103152278B (en) * | 2013-01-31 | 2016-03-30 | 北京星网锐捷网络技术有限公司 | Congested defining method, device and the network equipment |
CN103269260A (en) * | 2013-06-03 | 2013-08-28 | 腾讯科技(深圳)有限公司 | Data transmission method, data receiving terminal, data sending terminal and data transmission system |
CN104767591B (en) * | 2015-04-29 | 2018-09-28 | 北京奇艺世纪科技有限公司 | A kind of data transmission method for uplink and device |
CN105141542B (en) * | 2015-09-18 | 2019-04-02 | 北京百度网讯科技有限公司 | The control algolithm and system of congestion window based on TCP communication agreement |
-
2016
- 2016-01-21 CN CN201610039213.4A patent/CN105721333B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545277A (en) * | 2003-11-19 | 2004-11-10 | 北京邮电大学 | An End-to-End Network Bottleneck Bandwidth Measurement Method |
CN1725760A (en) * | 2004-07-22 | 2006-01-25 | Lg电子株式会社 | Apparatus and method for measuring round trip delay time of variable bit rate multimedia data |
CN102468941A (en) * | 2010-11-18 | 2012-05-23 | 华为技术有限公司 | Network packet loss processing method and device |
CN104584493A (en) * | 2012-08-27 | 2015-04-29 | 高通股份有限公司 | Device and method for adaptive rate multimedia communications on a wireless network |
CN105264843A (en) * | 2013-06-07 | 2016-01-20 | 苹果公司 | Managing pending acknowledgement packets in a communication device |
Also Published As
Publication number | Publication date |
---|---|
CN105721333A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105721333B (en) | A kind of data transmission device and method | |
CN112217686B (en) | System, method and device for evaluating round trip delay | |
US7436772B2 (en) | Available bandwidth estimation | |
US7945661B2 (en) | Real time monitoring of TCP flows | |
US7894367B2 (en) | Methods and systems for bandwidth protection | |
CN109286813A (en) | A kind of video communication quality detection method and device | |
EP2396943B1 (en) | Controlling bandwidth share | |
WO2011040006A1 (en) | Transmitter apparatus, receiver apparatus, transmission/reception system and transmission/reception method | |
EP2276202A1 (en) | Network transmission capacity measurement | |
CN103269260A (en) | Data transmission method, data receiving terminal, data sending terminal and data transmission system | |
CN103986548A (en) | A method and terminal for determining the cause of packet loss | |
CN105591843A (en) | Network performance detection method and system based on receiving end in TCP transmission stream | |
US10243825B2 (en) | Available bandwidth estimation system, available bandwidth estimation method, reception apparatus, and reception apparatus program storage medium | |
CN108390797A (en) | A method of active measurement agreement is realized based on chip | |
CN106656642A (en) | Round trip time measurement method, round trip time measurement device and round trip time measurement system | |
CN113472604A (en) | Method, device and system for realizing transmission performance detection | |
CN105406915A (en) | File transmission method facing satellite-to-earth link | |
CN104780117B (en) | A kind of acquisition methods and device of network congestion information | |
US20170064489A1 (en) | Network system, method for determining communication quality, and analysis apparatus | |
CN104506383A (en) | Method and system for measuring data processing efficiency of server in TCP (transmission control protocol) transmission | |
CN107864026B (en) | Aggregation link frame loss measuring device and method | |
JP2014138304A (en) | Analyzer, analytical method and analytical program | |
CN106341289B (en) | A kind of the packet loss ratio estimation method and device of network packet packet capturing process | |
CN114629826A (en) | Network maximum bandwidth estimation method and device, electronic equipment and storage medium | |
CN116723133B (en) | Data transmitting and receiving equipment, network state information extraction method and device |
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 203-35, 2 / F, building 2, No.1 and 3, Qinglong Hutong, Dongcheng District, Beijing Patentee after: G-NET CLOUD SERVICE Co.,Ltd. Address before: 100085 room 1102, 9th floor, Penghuan international building, building 4, yard 1, Shangdi East Road, Haidian District, Beijing Patentee before: G-NET CLOUD SERVICE Co.,Ltd. |