CN105897383A - Method and system for realizing data transmission - Google Patents
Method and system for realizing data transmission Download PDFInfo
- Publication number
- CN105897383A CN105897383A CN201610201395.0A CN201610201395A CN105897383A CN 105897383 A CN105897383 A CN 105897383A CN 201610201395 A CN201610201395 A CN 201610201395A CN 105897383 A CN105897383 A CN 105897383A
- Authority
- CN
- China
- Prior art keywords
- data
- negative acknowledgement
- data receiver
- transmitting terminal
- unit
- 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.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 claims description 59
- 238000000034 method Methods 0.000 claims description 41
- 230000007246 mechanism Effects 0.000 claims description 33
- 238000013502 data validation Methods 0.000 claims description 11
- 238000012790 confirmation Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000000903 blocking effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000008034 disappearance Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/18—Automatic repetition systems, e.g. Van Duuren systems
- H04L1/1809—Selective-repeat protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The embodiments of the invention provide a method and system for realizing data transmission, wherein the method for realizing data transmission comprises the steps of: identifying negative confirmation fields in a data receiving feedback message; determining interrupted data segments corresponding to the negative confirmation fields in the data receiving feedback message; and sending the interrupted data segments to a data receiving end. The system for realizing the data transmission method is characterized in that a negative confirmation mechanism is added, and the interrupted data packets can be fed back, and the data transmission with higher efficiency is realized.
Description
Technical field
The present embodiments relate to technical field of data transmission, particularly relate to a kind of side realizing data transmission
Method and system.
Background technology
Classical Transmission Control Protocol have employed continuous (in-order) data receiving receiving terminal to be carried out really
Recognize, and the mechanism that other out of order (out-of-order) data are ignored.This mechanism is because sending out
Sending end often receives an ACK can only confirm that first " doubtful " loses data segment (Segment),
In the radio/mobile network that the bit error rate is higher, efficiency of transmission is low.
Summary of the invention
The embodiment of the present invention provides a kind of method and system realizing data transmission, in order to solve prior art
The low inferior problem of middle efficiency of transmission, it is achieved more efficient data transmission.
The embodiment of the present invention provides a kind of method realizing data transmission, including:
Identify the Negative Acknowledgement field in data receiver feedback message;
Determine the data segment of the interruption corresponding with the Negative Acknowledgement field in described data receiver feedback message;
The data segment of described interruption is sent to described data receiver.
The embodiment of the present invention provides a kind of method realizing data transmission, including:
Sending connection request to transmitting terminal, described connection request comprises described receiving terminal and supports Negative Acknowledgement machine
The information of system;
When set up with described transmitting terminal data transmission is connected after, receive described transmitting terminal transmission data;
According to the data received, determine the data segment interrupted in described data;
Data receiver feedback message, wherein, described data receiver feedback message bag is sent to described transmitting terminal
Include the Negative Acknowledgement field corresponding with the data segment of described interruption.
The embodiment of the present invention provides a kind of system realizing data transmission, including:
Recognition unit, is configured to identify the Negative Acknowledgement field in data receiver feedback message;
First interrupts determining unit, is configured to determine that the negative with described data receiver feedback message is true
The data segment of the interruption that the section of reading is corresponding;
First transmitting element, is configured to send the data segment of described interruption to described data receiver.
The embodiment of the present invention provides a kind of system realizing data transmission, including:
Connection request unit, is configured to send connection request to transmitting terminal, and described connection request comprises institute
State receiving terminal and support the information of Negative Acknowledgement mechanism;
Data receipt unit, be configured to when set up with described transmitting terminal data transmission is connected after, reception institute
State the data that transmitting terminal sends;
Second interrupts determining unit, is configured to, according to the data received, determine in described data and interrupt
Data segment;
Feedback unit, is configured to send data receiver feedback message to described transmitting terminal, wherein, described
Data receiver feedback message includes the Negative Acknowledgement field corresponding with the data segment of described interruption.
The system realizing data transmission method that the embodiment of the present invention provides, by increasing Negative Acknowledgement mechanism,
The packet of interruption can be fed back, it is achieved that more efficient data transmission.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under,
Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the connection of TCP and termination procedure figure in prior art;
Fig. 2 is the exemplary system architecture that can apply to the embodiment of the present invention;
Fig. 3 is the embodiment flow chart that the present invention realizes data transmission method;
Fig. 4 is another embodiment flow chart that the present invention realizes data transmission method;
Fig. 5 is another embodiment flow chart that the present invention realizes data transmission method;
Fig. 6 is the example structure schematic diagram that the present invention realizes data transmission system;
Fig. 7 is another example structure schematic diagram that the present invention realizes data transmission system;
Fig. 8 is the department of computer science of terminal unit or the server that can apply to realize the embodiment of the present invention
The structural representation of system.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Based on Transmission Control Protocol owing to the technical scheme is that, below, first introduce Transmission Control Protocol.
Transmission Control Protocol
1, TCP provides a kind of byte stream service connection-oriented, reliable.Towards connecting relatively good reason
Solve, it is simply that connecting both sides needs to pre-build a connection before communicating, and this is just as beating in real life
Phone.Help reliability, Transmission Control Protocol relate to all more rules to ensure the reliability of communication link,
Summary is got up, mainly have following some:
(1) application data be divided into TCP think be best suitable for send data block.This part is to pass through
" MSS " (maximum data packet length) option controls, and usual this mechanism also referred to as one is consulted
Mechanism, MSS defines the length that TCP gets forwarded to the maximum data block of the other end.It should be noted that
MSS can only appear in SYN message segment, if a side does not receive the MSS value from the opposing party, then
MSS is just set to 536 bytes.In general, in the case of occurring without segmentation, MSS value is the biggest
The best, so can improve the utilization rate of network.
(2) retransmission mechanism.Intervalometer is set, waits bag to be confirmed.
(3) stem and data are verified.
(4) data received are ranked up by TCP, then give application layer.
(5) receiving terminal of TCP abandons the data of repetition.
(6) TCP also provides for flow-control.(window size stated by every one end is provided)
2, the stem of TCP bag
The stem of table 1TCP packet
(1) if disregarding Option Field, the stem of TCP accounts for 20 bytes.
(2) source port number and destination slogan are made a start and the process of receiving terminal for finding, in general,
By port numbers and IP address, can uniquely determine that a TCP connects, in network programming, generally
It is referred to as a socket interface.
(3 sequence numbers are used to identify the data word made a start to the transmission of TCP receiving terminal from TCP and throttle.
(4) acknowledged sequence number comprises the Next Sequence received desired by one end that transmission confirms, therefore, really
Recognizing sequence number should be to have successfully received data byte sequence number last time to add 1.
(5) header length indicates the length value of TCP stem, if there is not option, then this value is
20 bytes.
(6) flag bit (flag):
URG: urgent pointer is effective
ACK: acknowledged sequence number is effective
This message segment should be given application layer by PSH: recipient as early as possible
RST: rebuild and connect
SYN: synchronize sequence number and be used for initiating a connection
FIN: transmission task of having made a start (is actively closed)
[explanation]
◆ TCP provides settling mode to be to make one end tell other end some " emergency data "
It is placed in common data stream, allows receiving terminal that emergency data does process especially.Now, URG position quilt
It is set to 1, and the emergency data of 16 is set to a positive side-play amount, by this side-play amount and TCP
Sequence number field in stem is added, it can be deduced that the sequence number of last byte of emergency data, common
Application has Transmission key (by telnet connection procedure).
◆ RST: reset field is used for being sent to certain socket interface when a message and mistake occur
Time, TCP then can send reset message segment.The situation of common appearance has following several: www.2cto.com
It is sent to the connection request of non-existent port: now the destination interface of the other side is not intercepted, right
In UDP, it will send the inaccessible error message of ICMP, and for TCP, it will send and arrange RST
The datagram of reseting mark position.Abnormal end one connection: under normal circumstances, just goes by sending FIN
The normally off close TCP and connect, but be also possible to go to midway to discharge one by sending a reset message segment
Individual connection.In socketAPI, go to close this abnormal close by arranging socket option SO_LINGER
Situation about closing.
3, the connection of TCP and termination procedure
(1) three-way handshake:
Connect as it is shown in figure 1, set up TCP, it is necessary to experience three-way handshake process, wherein send the
Execution is actively opened by one end of one SYN, receives this SYN and beams back another of next SYN
End performs passive open.
(2) four release:
Connecting as it is shown in figure 1, to discharge a TCP, need by 4-Way Handshake process, this is by TCP
Semi-closed characteristic cause, because full duplex when TCP connects, accordingly, it would be desirable to TCP two ends want single
Solely perform closedown.It should be noted that the one end actively closed, still can also be just after sending FIN
Often receiving the data of the other side, it has not had data to need to have sent, in like manner, passively simply to notify the other side
The one end closed, after receiving FIN, still can send data, until its own sends FIN equally
Afterwards, just stop sending data.
(3) timeout issue that TCP connects:
Completing a TCP to connect, centre relates to an overtime problem, most of Berkeley systems
Timeouts be the timeouts of 75s, Solaris9 be 240s, therefore, it is considered that be at 75-240
Between.
How [amplification], in concrete implementation, has been gone arranging socket by user oneself and has been connected time-out
Time?
[solution] realizes what the connection of socket time-out was mainly completed by select at present.Tool
Body step is as follows:
◆ set up socket
◆ socket is set to non-blocking mode (if blocking model, then set of time just has no
Meaning)
◆ call connect and go to be attached
◆ socket is the most writeable to use select to check, and judges why its result (is can simultaneously
Write?Since it is desired that whether detection socket receives ACK.)
◆ socket is converted into blocking model
(4) the semi-closed www.2cto.com of TCP
So-called " semi-closed ", refers to that the one end connected can also receive the other side after terminating its transmission and send out
The ability of the data come over.It is in particular in, when completing the both sides of three-way handshake, wherein have one end to send
FIN, now it will enter semi-closed state, and now it closes the sending function of self, but it is still
The data of the other side can be received, the ACK message sent such as the other side.So in actual development, it is
How to realize?
This involves the difference problem of shutdown and close function in system.
int shutdown(int s,int how) <sys/socket.h>
Shutdown is used to the socket interface specified by terminal parameter s, and parameter how mainly has following
Several situations:
How=0 terminates read operation
How=1 terminates write operation
How=2 terminates reading and write operation
The errorcode returned may have:
EBADF /*Bad file descriptor*/
ENOTSOCK /*Socket operation on non-socket*/
ENOTCONN /*Socket is not connected*/
It should be noted that in the case of not conflicting, the embodiment in the application and the spy in embodiment
Levy and can be mutually combined.Describe the application below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Fig. 2 shows the exemplary system architecture 200 that can apply the embodiment of the present application.
As in figure 2 it is shown, system architecture 200 can include terminal unit 201,202, network 203 and
Server 204.Network 203 is in order to provide logical between terminal unit 201,202 and server 204
The medium of letter link.Network 203 can include various connection type, the most wired, wireless communication link
Or fiber optic cables etc..
User 210 can use terminal unit 201,202 mutual with server 204 by network 203,
To receive or to send message etc..Can be provided with various telecommunication customer end on terminal unit 201,202 should
With, such as JICQ, mailbox client, social platform software, audio frequency and video software etc..
Terminal unit 201,202 can be various electronic equipment, includes but not limited to PC, intelligence
Energy mobile phone, panel computer, personal digital assistant, wearable device etc., terminal unit 201,202 is also
Can be intelligent appliance, router etc..
Server 204 can be to provide the server of various service.Server can be to the data received
Carry out storing, analysis etc. processes, and result is fed back to terminal unit.
It should be understood that the number of terminal unit, network and the server in Fig. 2 is only schematically.
According to realizing needs, can have any number of terminal unit, network and server.
With reference first to Fig. 3, it illustrates the present invention and realize an embodiment flow chart of data transmission method
300。
As it is shown on figure 3, in step 301, the Negative Acknowledgement field in data receiver feedback message is identified.
In the present embodiment, data sending terminal receives the data receiver feedback message that data receiver sends,
The data feedback message that wherein data receiver sends at least includes validating that field and Negative Acknowledgement field,
Transmitting terminal itself supports Negative Acknowledgement mechanism, so the Negative Acknowledgement field of receiving terminal can be entered by transmitting terminal
Row identifies.
In the present embodiment, Negative Acknowledgement field can be e.g. based on " option " (the i.e. TCP in table 1
Option) in field, owing to transmitting terminal itself supports Negative Acknowledgement mechanism, so transmitting terminal can identify no
Surely field is confirmed.In prior art the transmitting terminal of Transmission Control Protocol and receiving terminal due to " option " field uncertain
Justice, so other fields of stem can only be identified, such as " 32 sequence numbers " in table 1 and " 32 confirmations
Sequence number ", and for example " SYN " and " ACK " in table 1.Wherein, the realization of Negative Acknowledgement mechanism can
To be analogous to the realization of ACK, SACK mechanism, it is not described in detail in this.
In step 302, determine corresponding with the Negative Acknowledgement field in described data receiver feedback message
The data segment interrupted.
In the present embodiment, transmitting terminal is according to the Negative Acknowledgement in the data receiver feedback message identified before
Field, it may be determined that the interruption data segment corresponding with this field.Wherein, the data segment of interruption can be such as
Be a series of should the data segment of disappearance in continuous print data segment, it is also possible to be the data segment that actually receives with
The data segment of disappearance after the data segment contrast expecting to receive, such as receive serial number 1,2,3,4,5,
7, the data segment of 9, then expect that the data segment received should be 1,2,3,4,5,6,7,8,9,
It is believed that wherein the data segment of serial number 6,8 is the data segment of interruption, or can also by 6,8,
10 data segments being set to interruption, the application does not the most limit.
In some optional embodiments, confirm that the method interrupting data segment can be based on Negative Acknowledgement word
The sequence number interrupting data segment of write in Duan, it is also possible to being based on directly on interruption data segment, the application is at this
Aspect does not limit.It is sequence number due to what confirmation field in prior art write, so in order to be able to keep
Relative unification, can also write the sequence number interrupting data segment in the Negative Acknowledgement field in the application.
In step 303, the data segment of described interruption is sent to described data receiver.
In the present embodiment, transmitting terminal sends this interruption according to the interruption data segment determined before to receiving terminal
Data segment.Wherein, this interruption data segment can be based on sequence number.Such as, the data of receiving terminal before
Feedback message comprises Negative Acknowledgement field, and this Negative Acknowledgement field is written with the sequence interrupting data segment
Number such as 5,6,9, then transmitting terminal can determine according to sequence number send sequence number be 5,6,9 interruption data
Section.
In the present embodiment, owing to adding Negative Acknowledgement field, overcome and prior art often receives one
Individual ACK can only confirm that the content of the feedback of first " doubtful " loss data segment existence causes receipts very little
Send out the problem that efficiency is low, the highest to the utilization rate of network.
With further reference to Fig. 4, it illustrates the present invention and realize another embodiment stream of data transmission method
Journey Figure 40 0.
As shown in Figure 4, in step 401, resolve the connection request that data receiver sends, confirm institute
State data receiver and support Negative Acknowledgement mechanism.
In the present embodiment, transmitting terminal is before starting data transmission, in addition it is also necessary to carry out such as figure with receiving terminal
" three-way handshake " in 1 thus set up and connect reliably.When transmitting terminal receives the connection that receiving terminal sends
During request SYN, need to resolve this request, confirm that receiving terminal supports Negative Acknowledgement mechanism.
In step 402, when described transmitting terminal supports described Negative Acknowledgement mechanism equally, to described number
Data validation connection request is sent according to receiving terminal.
In the present embodiment, after confirming that transmitting terminal supports Negative Acknowledgement mechanism, if transmitting terminal itself is also
Support Negative Acknowledgement mechanism, then send " the in data validation connection request, i.e. TCP to data receiver
Secondary is shaken hands ", wherein, data validation connection request includes carrying expression " I supports Negative Acknowledgement mechanism "
Relevant information with inform data receiver can set up support Negative Acknowledgement mechanism connection.
In step 403, at least based on described data validation connection request, send out to described data receiver
Send data.
In the present embodiment, transmitting terminal is at least based on the data validation connection request sent before, Ke Yizhun
Standby to data receiver transmission data.Certainly, send and also need to receive that receiving terminal sends " the before data
Three-way handshake " information, the application does not the most limit.
In step 404, the data receiver feedback message of described data receiver is received.
In the present embodiment, when starting after receiving terminal sends data, after data receiver receives data
Can send a data receiver feedback message to transmitting terminal, transmitting terminal receives this feedback message anti-according to this
Feedback message determines that next step needs the data sent.
In step 405, the Negative Acknowledgement field in data receiver feedback message is identified.
In the present embodiment, can write confirmation field in feedback message ACK, wherein represent is first
Individual " doubtful " loses data segment, and can write in Negative Acknowledgement field in the data segment received and interrupt
Data segment.Such as transmitting terminal have sent serial number 1,2,3,4,5,6,7,8,9,10,11
Data segment, and receiving terminal only receives the data segment of 1,2,3,5,6,8,9,11, then receiving terminal
4 can be write in confirming field, and in Negative Acknowledgement field, write 4,7,10, thus inform and send out
All have received before sending end 4, did not receive 4,7,10 before 10, and transmitting terminal is according to this feedback
Message can learn that next step needs the data sent.
In a step 406, determine corresponding with the Negative Acknowledgement field in described data receiver feedback message
The data segment interrupted.
In the present embodiment, transmitting terminal determines Negative Acknowledgement field therein according to data receiver feedback message
The data segment of corresponding interruption.In some optional embodiments, can be based in Negative Acknowledgement field
The sequence number interrupting data segment recorded determines.
In step 407, the data segment of described interruption is sent to described data receiver.
In the present embodiment, based on the interruption data segment determined according to sequence number before, by the data of this interruption
Section is sent to receiving terminal.
In some optional embodiments, whole flow chart can illustrate by the example below.
The SYN receiving receiving terminal transmission carries the information supporting Negative Acknowledgement mechanism, sends one to receiving terminal
The SYN of the individual support information carrying Negative Acknowledgement mechanism, and shake hands at least based on above-mentioned twice, start
Data are transmitted to data receiver.Receive data feedback message ACK of data receiver afterwards, wherein
ACK at least includes validating that field and Negative Acknowledgement field.Identify the information in Negative Acknowledgement field, really
The fixed corresponding data segment interrupted, such as be written with sequence number 4,7,10, then send in Negative Acknowledgement field
Hold to receiving terminal send data time, can add sequence number 4,7,10 interruption data segment rather than from
The data segment of serial number 4 starts to send continuous print data segment.
According to the step 301-step 303 in above-mentioned steps 401-step 407, with flow chart 300 before
Except for the difference that can realize transmitting terminal and confirm that when carrying out three-way handshake with receiving terminal both sides support that negative is really
The section of reading.And then can be more efficient during transmission data, increase network utilization.
It should be noted that in above-mentioned steps 405, step 406 and step 407 and flow chart 300
Step 301-step 303 one_to_one corresponding, before explanation to step 301, step 302 and step 303
Illustrate and relevant technique effect is equally applicable to step 405, step 406 and step 407, at this not
Repeat again.
With reference to Fig. 5, realize another embodiment flow chart 500 of data transmission method for the present invention.
As it is shown in figure 5, in step 501, connection request, described connection request bag are sent to transmitting terminal
The information of Negative Acknowledgement mechanism is supported containing described receiving terminal.
In the present embodiment, receiving terminal sends connection request to transmitting terminal, can be i.e. in such as Fig. 1
" shake hands for the first time ", wherein, this connection request also comprises receiving terminal and represents support Negative Acknowledgement field
Information.
In step 502, when set up with described transmitting terminal data transmission be connected after, receive described transmitting terminal
The data sent.
In the present embodiment, when transmitting terminal and receiving terminal are after " three-way handshake ", transmitting terminal and reception
Data transmission, the data that receiving terminal receiving end/sending end sends are proceeded by between end.
In step 503, according to the data received, the data segment interrupted in described data is determined.
In the present embodiment, receiving terminal, according to the data received, determines the data segment wherein interrupted.As
There is not the data segment of interruption in fruit, then can be not written into information in Negative Acknowledgement field, it is also possible to for sky,
The application does not the most limit.
In step 504, data receiver feedback message, wherein, described data are sent to described transmitting terminal
Receive feedback message and include the Negative Acknowledgement field corresponding with the data segment of described interruption.
In the present embodiment, after receiving terminal determines the data segment of interruption, this information is write Negative Acknowledgement
In field, and the reception feedback message of Negative Acknowledgement field will be comprised, such as ACK, be sent to transmitting terminal.
Above-mentioned flow chart 500 illustrates the data transmission method of the application from the angle of receiving terminal.Receiving terminal
By establishing the connection with transmitting terminal, the most first twice " shaking hands " with " three-way handshake " of transmitting terminal
Time respectively inform support Negative Acknowledgement field, afterwards receiving terminal receive transmitting terminal send data after,
Being analyzed it, and form data feedback message, wherein data feedback message includes Negative Acknowledgement word
Section, Negative Acknowledgement field includes the data segment that write is interrupted, and can be the sequence of the data segment that write is interrupted
Number, and this data feedback message is sent to data sending terminal.Above scheme is owing to adding Negative Acknowledgement
Mechanism, it is possible to achieve more efficient data transmission feedback, and network is better profited from.
Refer to Fig. 6, it illustrates the present invention and realize unified example structure schematic diagram of data transmission system
600。
As shown in Figure 6, it is achieved data transmission system 600 includes recognition unit 605, and first interrupts determining
Unit 606 and the first transmitting element 607.Wherein, recognition unit 605, it is configured to identify data receiver
Negative Acknowledgement field in feedback message;First interrupts determining unit 606, is configured to determine with described
The data segment of the interruption that Negative Acknowledgement field in data receiver feedback message is corresponding;First transmitting element
607, it is configured to send the data segment of described interruption to described data receiver.
In the present embodiment, Negative Acknowledgement field is identified by transmitting terminal by recognition unit 605, it
Determine that unit 606 determines the data segment of interruption by the first interruption afterwards, then by the first transmitting element 607
The data segment interrupted is sent to receiving terminal.More efficient data can be realized by said units to transmit, with
And improve the utilization rate to network.
In some optional embodiments, it is achieved data transmission system 600 also includes resolution unit 601,
Confirmation request unit 602, the second transmitting element 603 and feedback reception unit 604.Wherein, resolution unit
601, it is configured to resolve the connection request that data receiver sends, confirms that described data receiver is supported no
Determine affirmation mechanism;Confirmation request unit 602, is configured to when described transmitting terminal supports described negative equally
During affirmation mechanism, send data validation connection request to described data receiver;Second transmitting element 603,
It is configured to the data validation connection request at least based on described connection request unit, to described data receiver
End sends data;Feedback reception unit 604, is configured to receive the data receiver of described data receiver
Feedback message.
In some optional embodiments, the first transmitting element 607 and the second transmitting element 603 can be
Same transmitting element, or can process by same processor, the application does not the most limit.
In the present embodiment, by adding resolution unit 601, confirmation request unit 602, second sends list
Unit 603 and feedback reception unit 604, it is achieved set up the connection supporting Negative Acknowledgement mechanism with receiving terminal,
And realize the more efficient transmission of data on this basis, increase network utilization.
Refer to Fig. 7, it illustrates the present invention and realize the signal of another example structure of data transmission system
Figure 70 0.
As shown in Figure 7, it is achieved data transmission system 700 includes connection request unit 701, data receiver
Unit 702, second interrupts determining unit 703 and feedback unit 704.Wherein, connection request unit 701,
Being configured to send connection request to transmitting terminal, described connection request comprises described receiving terminal support negative really
Recognize the information of mechanism;Data receipt unit 702, is configured to when setting up data transmission with described transmitting terminal
After connection, receive the data that described transmitting terminal sends;Second interrupts determining unit 703, is configured to root
According to the data received, determine the data segment interrupted in described data;Feedback unit 704, is configured to
To described transmitting terminal send data receiver feedback message, wherein, described data receiver feedback message include with
The Negative Acknowledgement field that the data segment of described interruption is corresponding.
In the present embodiment, receiving terminal pass through connection request unit 701, data receipt unit 702, second
Interrupt determining that unit 703 and feedback unit 704 realize setting up between transmitting terminal based on Negative Acknowledgement mechanism
Connection, and in data feedback message add Negative Acknowledgement field, thus formed the most more efficient
Data feedback information, is conducive to improving network transmission efficiency, and then increases network utilization.
Should be appreciated that all unit described in Fig. 6 and Fig. 7 and with reference in Fig. 3, Fig. 4 and Fig. 5
Each step in the method described is corresponding.Thus, above with respect to method describe operation and feature with
And all unit that technique effect is equally applicable in Fig. 6 and Fig. 7 accordingly, do not repeat them here.
It should be noted that the unit in embodiments of the invention is not limited to the solution of the present invention,
Such as feedback unit can be described as the unit for sending data receiver feedback message to described transmitting terminal.
Furthermore it is also possible to realize related function module by hardware processor, such as feedback unit can also be used
Processor realizes, and does not repeats them here.
Below with reference to Fig. 8, it illustrates the terminal unit or service be suitable to for realizing the embodiment of the present application
The structural representation of the computer system 800 of device.
As shown in Figure 8, computer system 800 includes CPU (CPU) 801, and it can root
It is loaded at random according to the program being stored in read only memory (ROM) 802 or from storage part 808
Access the program in memorizer (RAM) 803 and perform various suitable action and process.At RAM803
In, also storage has system 800 to operate required various programs and data.CPU 801, ROM 802 with
And RAM 803 is connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always
Line 804.
It is connected to I/O interface 805: include the importation 806 of keyboard, mouse etc. with lower component;Including
The such as output part of cathode ray tube (CRT), liquid crystal display (LCD) etc. and speaker etc.
807;Storage part 808 including hard disk etc.;And include such as LAN card, modem etc.
The communications portion 809 of NIC.Communications portion 809 performs communication via the network of such as the Internet
Process.Driver 810 is connected to I/O interface 805 also according to needs.Detachable media 811, such as magnetic
Dish, CD, magneto-optic disk, semiconductor memory etc., be arranged in driver 810 as required, with
The computer program being easy to read from it is mounted into storage part 808 as required.
Especially, according to embodiments of the invention, the process described above with reference to flow chart can be implemented
For computer software programs.Such as, embodiments of the invention include a kind of computer program, its bag
Including the computer program being tangibly embodied on machine readable media, described computer program comprises for holding
The program code of the method shown in row flow chart.In such embodiments, this computer program can lead to
Cross communications portion 809 to be downloaded and installed from network, and/or be mounted from detachable media 811.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (14)
1. the method realizing data transmission, including:
Identify the Negative Acknowledgement field in data receiver feedback message;
Determine the number of the interruption corresponding with the Negative Acknowledgement field in described data receiver feedback message
According to section;
The data segment of described interruption is sent to described data receiver.
Method the most according to claim 1, wherein, in identifying data receiver feedback message
Before Negative Acknowledgement field, including:
Resolve the connection request that data receiver sends, confirm described data receiver support negative really
Recognize mechanism;
When described transmitting terminal supports described Negative Acknowledgement mechanism equally, send out to described data receiver
Send data validation connection request;
At least based on described data validation connection request, send data to described data receiver;
Receive the data receiver feedback message of described data receiver.
Method the most according to claim 1, wherein, described determine feed back with described data receiver
The data segment of the interruption that Negative Acknowledgement field in message is corresponding includes:
Sequence number based on the data segment interrupted in described Negative Acknowledgement field determines.
4. according to the method according to any one of claim 1-3, wherein, described Negative Acknowledgement field
Realize including based on TCP option field.
5. the method realizing data transmission, including:
Sending connection request to transmitting terminal, described connection request comprises described receiving terminal support negative really
Recognize the information of mechanism;
When set up with described transmitting terminal data transmission is connected after, receive described transmitting terminal transmission number
According to;
According to the data received, determine the data segment interrupted in described data;
Sending data receiver feedback message to described transmitting terminal, wherein, described data receiver feedback disappears
Breath includes the Negative Acknowledgement field corresponding with the data segment of described interruption.
Method the most according to claim 5, wherein, the data that described basis receives, determine
The data segment interrupted in described data includes:
Sequence number based on the data segment interrupted in described Negative Acknowledgement field determines.
7. according to the method described in claim 5 or 6, wherein, described Negative Acknowledgement field includes base
Realize in TCP option field.
8. realize a system for data transmission, including:
Recognition unit, is configured to identify the Negative Acknowledgement field in data receiver feedback message;
First interrupts determining unit, and be configured to determine with described data receiver feedback message is no
Surely the data segment of the interruption that confirmation field is corresponding;
First transmitting element, is configured to send the data of described interruption to described data receiver
Section.
System the most according to claim 8, wherein, described system also includes:
Resolution unit, is configured to resolve the connection request that data receiver sends, confirms described number
Negative Acknowledgement mechanism is supported according to receiving terminal;
Confirmation request unit, is configured to when described transmitting terminal supports described Negative Acknowledgement mechanism equally
Time, send data validation connection request to described data receiver;
Second transmitting element, is configured to the data validation at least based on described connection request unit even
Connect request, send data to described data receiver;
Feedback reception unit, the data receiver feedback being configured to receive described data receiver disappears
Breath.
System the most according to claim 8, wherein, described first interrupts determining that unit includes joining
Put and determine with described for sequence number based on the data segment interrupted in described Negative Acknowledgement field
The data segment of the interruption that Negative Acknowledgement field in data receiver feedback message is corresponding.
11. systems according to claim 8, wherein, described Negative Acknowledgement field include based on
TCP option field realizes.
12. 1 kinds of systems realizing data transmission, including:
Connection request unit, is configured to send connection request, described connection request bag to transmitting terminal
The information of Negative Acknowledgement mechanism is supported containing described receiving terminal;
Data receipt unit, be configured to when set up with described transmitting terminal data transmission be connected after, connect
Receive the data that described transmitting terminal sends;
Second interrupts determining unit, is configured to, according to the data received, determine in described data
The data segment interrupted;
Feedback unit, is configured to described transmitting terminal transmission data receiver feedback message, wherein,
Described data receiver feedback message includes the Negative Acknowledgement word corresponding with the data segment of described interruption
Section.
13. systems according to claim 12, wherein, described second interrupts determining that unit includes
It is configured to sequence number based on the data segment interrupted in described Negative Acknowledgement field and determines described
The data segment interrupted in data.
14. according to the system described in claim 12 or 13, and wherein, described Negative Acknowledgement field includes
Realize based on TCP option field.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610201395.0A CN105897383A (en) | 2016-03-31 | 2016-03-31 | Method and system for realizing data transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610201395.0A CN105897383A (en) | 2016-03-31 | 2016-03-31 | Method and system for realizing data transmission |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105897383A true CN105897383A (en) | 2016-08-24 |
Family
ID=57011845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610201395.0A Pending CN105897383A (en) | 2016-03-31 | 2016-03-31 | Method and system for realizing data transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105897383A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112422820A (en) * | 2020-10-30 | 2021-02-26 | 西安万像电子科技有限公司 | Image processing method, device, server and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791106A (en) * | 2004-12-16 | 2006-06-21 | 国际商业机器公司 | Method and system for improving transmission control protocol performance in response to selective acknowledgement retransmissions |
CN102255972A (en) * | 2011-08-10 | 2011-11-23 | 北京邮电大学 | HTTP (hyper text transport protocol)-oriented TCP (transmission control protocol) header compression method in 6LoWAPN (IPv-over low-power wireless personal area network) |
-
2016
- 2016-03-31 CN CN201610201395.0A patent/CN105897383A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1791106A (en) * | 2004-12-16 | 2006-06-21 | 国际商业机器公司 | Method and system for improving transmission control protocol performance in response to selective acknowledgement retransmissions |
CN102255972A (en) * | 2011-08-10 | 2011-11-23 | 北京邮电大学 | HTTP (hyper text transport protocol)-oriented TCP (transmission control protocol) header compression method in 6LoWAPN (IPv-over low-power wireless personal area network) |
Non-Patent Citations (2)
Title |
---|
M.MATHIS: "《TCP Selective Acknowledgment Options》", 《NETWORK WORKING GROUP REQUEST FOR COMMENTS:2018》 * |
徐伟: "《TCP协议的性能建模研究》", 《万方在线出版》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112422820A (en) * | 2020-10-30 | 2021-02-26 | 西安万像电子科技有限公司 | Image processing method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11876880B2 (en) | TCP processing for devices | |
EP2574000B1 (en) | Message acceleration | |
US10873613B2 (en) | TCP processing for devices | |
CN104025525B (en) | For sending the method and apparatus and exchange apparatus of packet | |
US8069250B2 (en) | One-way proxy system | |
EP3361389B1 (en) | Tcp processing for devices | |
US20070025374A1 (en) | TCP normalization engine | |
US7031263B1 (en) | Method and apparatus for network management system | |
WO2007091758A1 (en) | Method and apparatus for updating anti-replay window in ipsec | |
US20130259040A1 (en) | Communication transport protocol for distributed information technology architectures | |
CN113489527B (en) | Architecture system of lightweight network middleware and satellite communication method | |
CN107104902B (en) | RDMA data transmission method, related device and system | |
JP2003513523A (en) | Data transmission using unreliable and reliable transport mechanisms | |
CN104025550A (en) | Obtaining information from data items | |
US20070061439A1 (en) | Signalling data reception | |
JP2006178961A (en) | Reliable one-way messaging with request-response transport protocol | |
CN105897383A (en) | Method and system for realizing data transmission | |
US7424741B1 (en) | Method and system for prevention of network denial-of-service attacks | |
US9261948B2 (en) | Image forming apparatus and control method for executing a proxy in response to a heartbeat | |
US20080307037A1 (en) | Client Notification Mechanism Over HTTP | |
CN108429700A (en) | A kind of method and device sending message | |
CN102752189B (en) | A kind of method and apparatus processing message | |
CN106385409B (en) | A kind of processing method and processing device of TCP message | |
EP1738552B1 (en) | Checking data integrity | |
CN115955271B (en) | Satellite data transmission method, device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |