CN103001733A - Method and device for improving data packet transfer efficiency - Google Patents

Method and device for improving data packet transfer efficiency Download PDF

Info

Publication number
CN103001733A
CN103001733A CN2012103262948A CN201210326294A CN103001733A CN 103001733 A CN103001733 A CN 103001733A CN 2012103262948 A CN2012103262948 A CN 2012103262948A CN 201210326294 A CN201210326294 A CN 201210326294A CN 103001733 A CN103001733 A CN 103001733A
Authority
CN
China
Prior art keywords
packet
transmission
data
type
receiving terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103262948A
Other languages
Chinese (zh)
Other versions
CN103001733B (en
Inventor
张倬炫
许铭勋
谢登全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Etron Technology Inc
Original Assignee
Etron Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Etron Technology Inc filed Critical Etron Technology Inc
Priority to CN201210326294.8A priority Critical patent/CN103001733B/en
Publication of CN103001733A publication Critical patent/CN103001733A/en
Application granted granted Critical
Publication of CN103001733B publication Critical patent/CN103001733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for improving data packet transfer efficiency. The method includes that when receiving a retransfer signal corresponding to a first isochronous transfer type data packet from a receiving end, a transfer end sets a second header sequence number of a second isochronous transfer type data packet according to a first header sequence number of the first isochronous transfer type data packet; and the transfer end transfers the second isochronous transfer type data packet set with the second header sequence number to the receiving end.

Description

A kind of method and apparatus that promotes the efficient of the transmission of data bag
This case is application number: 201010569216.1, and the applying date: 2010-11-24, the dividing an application of the application for a patent for invention of denomination of invention " a kind of method and apparatus that promotes the efficient of the transmission of data bag ".
Technical field
The present invention relates to a kind of data transmission method, more particularly, relevant a kind of data transmission method that improves the efficiency of transmission of simultaneous type transport-type packet.
Background technology
At USB (Universal Serial Bus, USB) in the agreement 3.0 editions, comprise four kinds of transport-types: control type transport-type (control transfer type), interrupt-type transport-type (interrupt transfer type), flood tide type transport-type (bulk transfer type), and simultaneous type transport-type (isochronous transfer type).Generally speaking, the simultaneous type transport-type is the transmission that is applied to voice and video, and because the transmission of voice and video is required to be instantaneous transmission (real-time transfer), therefore, when the packet of transmission simultaneous type transport-type, need with stable speed and transmit constantly the packet of simultaneous type transport-type, with the phenomenon of avoiding causing voice that receiving terminal received or video to produce intermittent (discontinuous), the voice that perhaps transmit with transmission ends or the phenomenon of video asynchronous (delay).
Take USB 3.0 as example, please refer to Fig. 1, Fig. 1 is the schematic diagram of the data packet format of explanation one USB 3.0 packet DP.As shown in Figure 1, packet DP comprises one grade of head (header) H, and a data payload P.A shelves H comprises a kenel information TP, an end points information (end point) EP, a connection commands character (link command word) LW, and one grade of error checking code CRC HData payload P comprises a data segment D, and a data error check code CRC D
Kenel information TP can be used to judge the type of data packet of packet DP.Type of data packet for instance, can be shake hands (handshake), data (data) ... Deng.End points information EP can be used to judge the transport-type (such as the simultaneous type transport-type) under the packet DP.Connection commands character LW is used for representing the situation of data link, and connection commands character LW comprises a connection commands character error checking code CRC in addition LWith a shelves sequence parameter (Header Sequence Number) HSEQ.Connection commands character error checking code CRC LBe used for judging whether connection commands character LW is wrong.A shelves sequence parameter HSEQ is used for judging whether the packet sequence of packet DP is wrong.A shelves error checking code CRC HBe used for judging whether a shelves H is wrong.
The data that data segment D provides transmission end reality to transmit are such as speech data, video data ... Deng.Data error check code CRC DBe used for judging whether data segment D is wrong.In addition, data segment D can comprise N data SD 1~ SD N
Please refer to Fig. 2.Fig. 2 transmits the schematic diagram of simultaneous type transport-type packet in the prior art for explanation.In Fig. 2, transmission end T can be a main control end (host) or a device end (device), and receiving terminal R then is the device end of a correspondence or the main control end of a correspondence.And the processing of the data of transmission ends T and receiving terminal R sequentially is layered as physical layer (physical layer) PH, data link layer (data link layer) DL and protocol layer (protocol layer) PR from bottommost.As shown in Figure 2, the packet DP that comes from transmission end T when receiving terminal R reception one 1After, after the processing through physical layer PH, the data link layer DL of receiving terminal R can direct basis packet DP 1Connection commands character error checking code CRC L1With a shelves error checking code CRC H1, judge packet DP 1Shelves a H 1Whether correct.When judging packet DP 1Shelves a H 1After correct, receiving terminal R just can be according to packet DP 1Shelves a H 1, to packet DP 1Carry out subsequent treatment, as with packet DP 1Up be sent to the protocol layer PR of receiving terminal R with foundation packet DP 1Data payload P 1In data error check code CRC D1Judge packet DP 1Data payload P 1Whether correct, and judging DP 1Data payload P 1After correct, according to the defined event of agreement and data segment D 1Content (data SD 11~ SD 1N), produce corresponding action, as according to agreement and data segment D 1Content, output voice or video data.Yet, when the data link layer DL of receiving terminal R judges packet DP 1Shelves a H 1During mistake, the data link layer DL of receiving terminal R can directly send the signal S that retransfers RETRYTo transmission end T, and transmission end T is got retransfer again one time packet DP 1In other words, even packet DP 1Be to belong to simultaneous type transport-type packet, receiving terminal R still can be for the simultaneous type transport-type packet DP of shelves head mistake 1Send a retry signal S RETRYTo transmission end T, and so that transmission end T retransfers one time again simultaneous type transport-type packet DP 1Thus, when transferring voice or video, can produce unnecessary delay, for example allow the desultory situation of voice or video even more serious, perhaps and the synchronism between the transmission end poorer, and cause user's inconvenience.
Summary of the invention
In order to solve discontinuous and nonsynchronous problem of transmitting in the prior art simultaneous type transport-type packet, new transmission method and device have been proposed, with the efficient that is lifted at transmission simultaneous type transport-type packet and be reduced in transferring voice or produce discontinuous and nonsynchronous phenomenon during video.
The present invention provides a kind of method that promotes the efficient of the packet of transmission while sexual type transport-type in USB communications protocol version 3 .0 version in one embodiment.The method comprises and receives one first packet from a transmission end, one grade of head of this first packet is carried out the error code inspection, drawing a check result, and when this check result is expressed as mistake, ignores this first packet.
The present invention provides a kind of method that promotes the efficient of the packet of transmission simultaneous type transport-type in universal serial bus protocol 3.0 editions in another embodiment.The method comprises when a transmission end retransfers signal from receiving terminal reception corresponding to one of one first simultaneous type transport-type packet, this transmission end is according to one first grade of header sequence parameter of this first simultaneous type transport-type packet, set a second gear header sequence parameter of one second simultaneous type transport-type packet, and this second simultaneous type transport-type packet after this this second gear header sequence parameter of transmission end transmission setting is to this receiving terminal.
The present invention provides a kind of device for simultaneous type communications protocol transmission data in another embodiment, and this device comprises: a data link bed device, be used for according to a detection signal, and optionally transmit Camouflaged data bag data.
Utilize transmission method provided by the present invention, for vicious simultaneous type transport-type packet, receiving terminal can't send the signal that retransfers to the transmission end in the data link layer.In addition, the present invention provides a transmission method in addition, can make when the transmission end and receive representative the retransferring during signal of the last simultaneous type transport-type packet that transmits that require to retransfer, the transmission end last simultaneous type transport-type packet that transmits that do not retransfer, and directly transmit the simultaneous type transport-type packet that this will transmit, so that the transmission end can be transmitted follow-up simultaneous type transport-type packet more quickly, so just, can effectively solve the user and when receiving voice or vision signal, produce discontinuous or nonsynchronous phenomenon, offer the larger convenience of user.
Description of drawings
Fig. 1 is the schematic diagram of the data packet format of explanation one USB 3.0 packets;
Fig. 2 transmits the schematic diagram of simultaneous type transport-type packet in the prior art for explanation;
Fig. 3 is the flow chart that is lifted at the method for the efficient of the packet of transmission simultaneous type transport-type in the usb protocol 3.0 editions of the explanation first embodiment of the present invention;
Fig. 4 A is explanation the present invention at the same time in the shelves vicious situation of type transport-type packet, requires the retransfer schematic diagram of packet of transmission end;
Fig. 4 B is explanation the present invention at the same time in the shelves vicious situation of type transport-type packet, does not require the retransfer schematic diagram of packet of transmission end;
Fig. 5 is the flow chart that is lifted at the method for the efficient of the packet of transmission simultaneous type transport-type in the usb protocol 3.0 editions of the explanation second embodiment of the present invention;
Fig. 6 A for explanation the present invention in the situation of the simultaneous type transport-type packet that receiving terminal requires the transmission end to retransfer to transmit last time, the retransfer schematic diagram of the packet that transmitted last time of transmission end;
Fig. 6 B for explanation the present invention in the situation of the simultaneous type transport-type packet that receiving terminal requires the transmission end to retransfer to transmit last time, no longer the retransfer schematic diagram of the packet that transmitted last time of transmission end;
Fig. 7 is the schematic diagram of the explanation device for transmitting the simultaneous type transport-type of the present invention.
Wherein, Reference numeral
300 methods, 301 ~ 305 steps
ACK 0~ ACK 5Confirmation signal
CRC H, CRC D, CRC L, CRCD H1, CRC D1, CRC L1The error checking code
DP, DP 0~ DP 5Packet D, D 1Data segment
DL data link layer EP, EP 1The end points information
H, H 1Shelves a HSEQ, HSEQ 0~ HSEQ 4A shelves sequence parameter
It is correct that LBAD confirms that wrong LGOOD confirms
N RReceive data bag number N TTransmit number of data packets
P, P 1Data payload PH physical layer
PR protocol layer R receiving terminal
SD 1, SD 2, SD N, SD 11, SD 12, SD 1NData
S RETRYSignal T transmission end retransfers
TP, TP 1Kenel information LW, LW 1The connection commands character
700 are used for the device of transmission simultaneous type transport-type
711,712 data link bed devices 721,722 protocol layer devices
S D1, S D2Detection signal DP CRC, D PRETRYCamouflaged data bag data
Embodiment
In view of this, the present invention is in order to solve discontinuous and nonsynchronous problem of transmitting in the prior art simultaneous type transport-type packet, new transmission method has been proposed, with the efficient that is lifted at transmission simultaneous type transport-type packet and be reduced in transferring voice or produce discontinuous and nonsynchronous phenomenon during video.
Please refer to Fig. 3.Fig. 3 explanation is according to the flow chart that is lifted at the method 300 of the efficient of the packet of transmission simultaneous type transport-type in the usb protocol 3.0 editions of one first embodiment of the present invention.In method 300, suppose that transmission ends T tendency to develop fails two simultaneous type transport-type packet DP 1With DP 2, and packet DP 1With DP 2The order of transmitting is the transmission of data bag DP of transmission ends T elder generation 1To receiving terminal R, and then the transmission of data bag DP 2To receiving terminal R.Its step is described as follows:
Step 301: receiving terminal R receives the simultaneous type transport-type packet DP that sends from transmission end T 1
Step 302: according to simultaneous type transport-type packet DP 1Connection commands character error checking code CRC L1With a shelves error checking code CRC H1, to simultaneous type transport-type packet DP 1Shelves a H 1Carry out the error code inspection, to draw respectively connection commands character check result E L1With a shelves check result E H1
Step 303: according to connection commands character check result E L1With a shelves check result E H1, judge simultaneous type transport-type packet DP 1Shelves a H 1Whether correct; If correct, then continue step 304; If not, then jump to step 305;
Step 304: accept simultaneous type transport-type packet DP 1, to carry out subsequent treatment;
Step 305: ignore simultaneous type transport-type packet DP 1, and do not require the transmission end T simultaneous type transport-type packet DP that retransfers 1, so that transmission end T can directly transmit next simultaneous type transport-type packet DP 2
In addition, carry out in the data link layer DL of receiving terminal R above-mentioned step 301 ~ 305.
In step 301, from transmission end T receive data bag DP 1The time, according to packet DP 1In kenel information TP 1With end points information EP 1, can learn packet DP 1Packet for the simultaneous type transport-type.
In step 302, packet DP 1Shelves a H 1Error checking code CRC H1Can be 16 bits the Cyclical Redundancy Check code (Cyclic Redundancy Check 16, CRC-16), and error checking code CRC L1Can be the Cyclical Redundancy Check code (CRC-5) of 5 bits.And judgement packet DP 1Shelves a H 1Correct mode whether, for example, can be to packet DP 1Shelves a H 1With connection commands character LW 1Carry out respectively Cyclical Redundancy Check.For instance, a shelves H 1Whole Cyclical Redundancy Check is with packet DP 1Shelves a H 1(comprise error checking code CRC H1) divided by a predetermined divisor CRC DH, to get according to this remainder CRC of a correspondence RH1According to gained remainder CRC RH1, can get a shelves check result E H1And connection commands character check result E L1Can draw in a similar fashion.
In step 303, as remainder CRC RH1When equaling a predetermined value X, check result E H1Expression packet DP 1Shelves a H 1For correctly; As remainder CRC RH1When being not equal to predetermined value X, check result E H1Expression packet DP 1Shelves a H 1Be mistake.For example, establishing predetermined value X is 0, as remainder CRC RH1Equal at 0 o'clock, check result E H1Expression packet DP 1Shelves a H 1For correctly; As remainder CRC RH1Be not equal at 0 o'clock, check result E H1Expression packet DP 1Shelves a H 1Be mistake.And check result E L1Similarly mode is learnt connection commands character LW 1Be correct or mistake.In the present embodiment, as check result E L1With E H1Be all when correct, just judge a shelves H 1For correctly; As check result E L1With E H1In when having one to be mistake, then judge a shelves H 1Be mistake.
In step 304, determine to accept simultaneous type transport-type packet DP at receiving terminal R 1After, just can be with packet DP 1Be uploaded to protocol layer PR, to carry out subsequent treatment.And at protocol layer PR for packet DP 1Processing as aforementioned, repeat no more in this.
In step 305, receiving terminal R is by a shelves check result E H1With E L1Learn packet DP 1Wrong, therefore ignore packet DP 1Yet in order to promote efficiency of transmission, make the transmission end T can the follow-up packet DP of faster transmission 2, so receiving terminal R does not require the transmission end T packet DP that retransfers 1, meaning is that the data link layer DL of receiving terminal R can not send the signal S that retransfers RETRYTo transmission end T, come the requirement transmission end T packet DP that retransfers 1More particularly, the packet DP if transmission end T is required to retransfer 1, then transmission end T just again transmit packet DP 1, and therefore follow-up packet DP 2The time that is issued just can be delayed and be caused delay, and produce as prior art as problem when transmission voice or video.Yet, because the present invention can't require the transmission end T packet DP that retransfers in step 305 1, so follow-up packet DP 2Therefore can not wait for the transmission end T packet DP that retransfers 1Time, and can immediately be sent to receiving terminal R, so to promote efficiency of transmission and to improve discontinuous or nonsynchronous problem when transmitting voice or video.
Please refer to Fig. 4 A and Fig. 4 B.Fig. 4 B is explanation the present invention at the same time in the shelves vicious situation of type transport-type packet, does not require the retransfer schematic diagram of packet (step 305) of transmission end T.Fig. 4 A illustrates in the shelves vicious situation of type transport-type packet at the same time, requires the retransfer schematic diagram (prior art) of packet of transmission end T; Fig. 4 B illustrates in the shelves vicious situation of type transport-type packet at the same time, do not require the retransfer schematic diagram (step 305 of the present invention) of packet of transmission end T; Illustrate that in this way the present invention really can improve in the efficiency of transmission that transmits simultaneous type transport-type packet.In Fig. 4 A and Fig. 4 B, suppose that transmission end T wants sequentially to transmit simultaneous type transport-type packet DP 1, DP 2, DP 3, DP 4And DP 5Receiving terminal R is when receiving a packet, in the processing of data link layer DL, all can carry out to the shelves head of this packet error checking, to transmission end T, inform whether the packet that transmission end T transmits is correctly received with the affirmation signal ACK that sends according to this a correspondence.In Fig. 4 A, for instance, when confirmation signal ACK is expressed as " LGOOD ", represents then that data that transmission end T transmits are surrounded by to be correctly received, and need not retransfer; When confirmation signal ACK is expressed as " LBAD ", represent that then the packet that transmission end T transmits is not correctly received, and need transmission end T this packet that retransfers.That is to say, when confirmation signal ACK is expressed as " LBAD ", represent that then receiving terminal R sends the signal S that retransfers RETRY, to require transmission end T this packet that retransfers.And as can be seen from Figure 4B, packet DP 1In the processing of the data link layer DL of receiving terminal R, testedly find wrong.Yet, corresponding to packet DP 1Affirmation signal ACK 1Still be " LGOOD " that so transmission end T just is considered as successfully transmitting packet DP 1, and continue to transmit next packet DP 2In addition, receiving terminal R learns packet DP through error checking 1Wrong, so in fact can be to packet DP 1Carry out subsequent treatment, but directly ignore packet DP 1Review Fig. 4 A, packet DP 1In the processing of the data link layer DL of receiving terminal R, testedly find wrong.Therefore, corresponding to packet DP 1Affirmation signal ACK 1Just be " LBAD ", to inform the transmission end T packet DP that need retransfer 1And transmission end T is transmitting packet DP for the second time 1The time, the data link layer DL of receiving terminal R processing the packet DP that receives for the second time 1The time, still find wrong, corresponding to the packet DP that transmits for the second time 1Affirmation signal ACK 2Still be " LBAD ", to inform the transmission end T packet DP that need retransfer 1Until transmission end T transmits packet DP for the third time 1The time, receiving terminal R just correctly receives packet DP 1, and respond the affirmation signal ACK of " LGOOD " 3To transmission end T, so next packet DP just can be continued to transmit in the transmission end 2In this case, in the identical time, Fig. 4 B is with five packet DP 1~ DP 5Transmit complete; And Fig. 4 A has only transmitted three packet DP 1~ DP 3Although the packet DP that Fig. 4 B is received 1Be wrong, but such situation, when carrying out the transmission of voice or video, can be allowed to, and what bring is the lifting of efficiency of transmission.In comparison, the received packet of Fig. 4 A all is correct, but efficiency of transmission but descends because of the relation that retransfers.Such situation when carrying out the transmission of voice or video, might cause the voice of transmission ends T and receiving terminal R or vision signal synchronism difference to each other too large, and cause user's puzzlement.
In addition, when carrying out the transmission of usb protocol 3.0 editions, transmission end T has one to transmit packet counter C T, be used for counting transmission number of data packets N T, insert correct value with the shelves header sequence Parameter H SEQ in the packet that send in tendency to develop; Receiving terminal R has a receive data package counting facility C R, be used for counting receive data bag number N R, whether correct with the value of the shelves header sequence Parameter H SEQ that judges the packet DP received.Carry out before initialization links up the transmission number of data packets N that transmission end T can first synchronous driving end T at transmission end T and receiving terminal R TReceive data bag number N with receiving terminal R RMore particularly, carry out before initialization links up at transmission end T and receiving terminal R, transmission end T can will transmit packet counter C first TTransmission number of data packets N TReset to preset value N 1, and send synchronization sequence signals S SEQTo receiving terminal R, so that receiving terminal R is with receive data package counting facility C RReceive data bag number N RReset to preset value N 1, and notice receiving terminal R is behind each correct receive data bag, just with receive data bag number N RIncrease the step number N STEPThus, whenever transmission end T receives the affirmation signal ACK (meaning is correctly receive data bag of receiving terminal R) of the representative " LGOOD " that receiving terminal R responds, transmission end T will transmit number of data packets N TIncrease by a step number N STEPFor instance, to transmit first packet DP as transmission end T 0The time, transmission end T can be according to transmitting number of data packets N TValue (N 1), with packet DP 0Shelves header sequence Parameter H SEQ 0Value be made as N 1When receiving terminal R receives packet DP 0The time, receiving terminal R can comparing data bag DP 0Shelves header sequence Parameter H SEQ 0Value (N 1) and receive data bag number N RValue (N 1).If shelves header sequence Parameter H SEQ 0Value and receive data bag number N REquate (N 1), then receiving terminal R judges packet DP 0Packet sequence correct; Otherwise if unequal, then receiving terminal R judges packet DP 0Packet sequence incorrect.At the correct receive data bag of receiving terminal R DP 0Afterwards, receiving terminal R can be with receive data bag number N RValue increase the step number N STEPAt this moment, receive data bag number N RValue become (N 1+ N STEP), and the affirmation signal ACK that receiving terminal R can send representative " LGOOD " with notice transmission end T, will transmit number of data packets N to transmission end T TValue increase the step number N STEPThus, when will passing envelope, transmission end T send packet DP 0Next packet DP 1The time, transmission end T can be according to transmitting number of data packets N TValue, with packet DP 1Shelves header sequence Parameter H SEQ 1Value be made as (N 1+ N STEP).Therefore work as receiving terminal R and receive packet DP 1After, can compare receive data bag number N RValue and a shelves header sequence Parameter H SEQ 1Value, to judge packet DP 1Packet sequence whether correct.
Please refer to Fig. 5.Fig. 5 is the flow chart that be lifted in the usb protocol 3.0 edition method 500 of the efficient of the packet of transmission simultaneous type transport-type of explanation according to one second embodiment of the present invention.In method 500, suppose that transmission ends T tendency to develop fails two simultaneous type transport-type packet DP 0With DP 1That is to say that packet DP is arranged in the buffer storage of transmission ends T 0With packet DP 1Wait is transmitted.Packet DP 0With DP 1The order of transmitting is the transmission of data bag DP of transmission ends T elder generation 0To receiving terminal R, and then the transmission of data bag DP 1To receiving terminal R.In the present embodiment, when receiving terminal R at receive data bag DP 0After, receiving terminal R is according to simultaneous type transport-type packet DP 0Connection commands character error checking code CRC L0With a shelves error checking code CRC H0, judge the connection commands character LW that receives 0An or shelves H 0Wrong, and send the signal S that retransfers RETRYTo transmission end T, come requirement transmission end T to get to retransfer again one time simultaneous type transport-type packet DP 0Its step is described as follows:
Step 501: transmission end T receives from what receiving terminal R sent and requires the transmission end T simultaneous type transport-type packet DP that retransfers again a time 0The signal S that retransfers RETRY
Step 502: according to simultaneous type transport-type packet DP 0Shelves header sequence Parameter H SEQ 0Value, to set simultaneous type transport-type packet DP 1Shelves header sequence Parameter H SEQ 1Value;
Step 503: do not send simultaneous type transport-type packet DP 0, and directly transmit simultaneous type transport-type packet DP 1
In addition, carry out in the data link layer DL of transmission end T above-mentioned step 501 ~ 503.
In step 501, transmission end T is according to retransferring signal S RETRY, can learn that receiving terminal R does not successfully receive the packet that transmission end T transmitted last time and (is in the present embodiment packet DP 0), and according to the packet DP in the buffer storage of transmission end T 0In kenel information TP 0With end points information EP 0, transmission end T is packet DP as can be known 0Packet for the simultaneous type transport-type.
In step 502, because transmission end T does not receive the affirmation signal ACK of representative " LGOOD ".Therefore, the transmission number of data packets N of transmission end T TValue can not increase the step number N STEPMore particularly, at this moment, the transmission number of data packets N of transmission end T TValue equal packet DP 0Shelves header sequence Parameter H SEQ 0Value.Therefore, transmission end T is according to transmitting number of data packets N TValue (equal a grade header sequence Parameter H SEQ 0Value), with setting data bag DP 1Shelves header sequence Parameter H SEQ 1Value.For example, if packet DP 0Shelves header sequence Parameter H SEQ 0Value be 0, this moment transmission end T with the packet DP in the buffer storage 1Shelves header sequence Parameter H SEQ 1Value be set as 0.
In step 503, transmission end T directly transmits packet DP 1Because packet DP 1Shelves header sequence Parameter H SEQ 1Value be set as and equal packet DP 0Shelves header sequence Parameter H SEQ 0Value, and because the correct receive data bag DP of receiving terminal R 0, so the receive data bag number N of receiving terminal R RValue still keep and equal a grade header sequence Parameter H SEQ 0Value, therefore, when receiving terminal R receives packet DP 1The time, because packet DP 1Shelves header sequence Parameter H SEQ 1Value equal a grade header sequence Parameter H SEQ 0Value (meaning i.e. a shelves header sequence Parameter H SEQ 1Value and receive data bag number N RValue equate), so receiving terminal R can judge packet DP 1Packet sequence correct.
Please refer to Fig. 6 A and Fig. 6 B.Fig. 6 B requires transmission end T to get to retransfer at receiving terminal R in the situation of the simultaneous type transport-type packet that transmission end T transmitted last time for explanation the present invention again, no longer the retransfer schematic diagram of the packet (step 503) that transmitted last time of transmission end T.In Fig. 6 A and Fig. 6 B, establish transmission end T and sent sequence signal S SEQTo receiving terminal R.Transmission end T will transmit number of data packets N TReset to preset value N 1(in Fig. 6 A and Fig. 6 B, establish preset value N 1Be 0).Receiving terminal R is with receive data bag number N RAlso reset to preset value N 1(0).And establish the step number N STEPBe 1.To be explanation require transmission end T to get to retransfer in the situation of the simultaneous type transport-type packet that transmission end T transmitted last time at receiving terminal R Fig. 6 A again, retransfer the again schematic diagram (prior art) of the packet that transmitted last time of transmission end T; Fig. 6 B retransfers for explanation receiving terminal R requires transmission end T to get in the situation of the simultaneous type transport-type packet that transmission end T transmitted last time again, no longer the retransfer schematic diagram (step 503 of the present invention) of packet of transmission end T; Illustrate that in this way the present invention really can improve 3.0 editions efficiencies of transmission at transmission simultaneous type transport-type packet of USB.In Fig. 6 A and Fig. 6 B, suppose that transmission end T wants sequentially to transmit simultaneous type transport-type packet DP 0, DP 1, DP 2, DP 3And DP 4From Fig. 6 A, packet DP 1In the processing of the data link layer DL of receiving terminal R, testedly find wrong.Therefore, the receive data bag number N of receiving terminal R RStill keep and equal 1, and receiving terminal R can send corresponding to packet DP 1Affirmation signal ACK 1Be " LBAD ", to require the transmission end T packet DP that retransfers 1Therefore, the transmission number of data packets N of transmission end T TAlso keep and equal 1.At Fig. 6 A, the transmission end T packet DP that can retransfer 1Yet, in Fig. 6 B, the transmission end T packet DP that can not retransfer 1But according to transmitting number of data packets N this moment TValue (equal packet DP 1Shelves header sequence Parameter H SEQ 1) come setting data bag DP 2Shelves header sequence Parameter H SEQ 2, and with DP 2Be sent to receiving terminal R.Therefore, receive a grade header sequence Parameter H SEQ as receiving terminal R 2Being modified is 1 packet DP 2The time, receiving terminal R is according to receive data bag number N R(equaling 1) and shelves header sequence Parameter H SEQ 2(equaling 1) can judge packet DP 2Packet sequence be correct.If packet DP 2Shelves header sequence Parameter H SEQ 2Be not set to 1, then receiving terminal R is according to receive data bag number N R(equaling 1) and shelves header sequence Parameter H SEQ 2(be not equal to 1), can judge in the process of transmission, omitted shelves header sequence Parameter H SEQ and be 1 packet.At this moment, receiving terminal R can judge with transmission end T asynchronous, and sends a synchronous request signal S SYNTo transmission end T, to require transmission end T re-synchronization.In Fig. 6 B, transmission end T is transmitting packet DP 2After, the correct receive data bag of receiving terminal R DP 2, and with receive data bag number N R(equaling 1) increases the step number N STEP, and make receive data bag number N RBecome 2.Receiving terminal R can send corresponding to packet DP 2The affirmation signal ACK of " LGOOD " 2Therefore, transmission end T can will transmit number of data packets N TIncrease the step number N STEP, transmit number of data packets N and make TBecome 2.Thus, to transmit packet DP as transmission end T 3The time, owing to transmit number of data packets N TWith receive data bag number N REquate that therefore, transmission end T just can set correct shelves header sequence Parameter H SEQ 3, so that receiving terminal R judges that packet sequence is correct, and can not send synchronous request signal S SYNThus, in the identical time, Fig. 6 B is with five packet DP 0~ DP 4Transmit complete; And Fig. 6 A has only transmitted four packet DP 0~ DP 4Although the packet DP that Fig. 6 B is received 1Wrong, and the transmission end T DP that do not retransfer 1Yet above-mentioned situation when carrying out the transmission of voice or video, can be allowed to, and what bring is the lifting of efficiency of transmission.In comparison, the received packet of Fig. 6 A all is correct, but efficiency of transmission but descends because of the relation that retransfers.Such situation when carrying out the transmission of voice or video, might cause the voice of transmission ends T and receiving terminal R or vision signal synchronism difference to each other too large, and cause user's puzzlement.
Please refer to Fig. 7.Fig. 7 is the schematic diagram of the explanation device 700 for transmitting the simultaneous type transport-type of the present invention.Device 700 is used for transmitting data.Device 700 comprises the first data link bed device 711, the second data link layer 712, the first protocol layer device 721, and second protocol bed device 722.Device 700 is by being derived according to the first embodiment of the present invention and the second embodiment.As shown in Figure 7, when the first data link bed device 711 and the first protocol layer device 721 were the transmission end, the second data link bed device 712 was receiving terminal with the second protocol bed device; When the first data link bed device 711 and the first protocol layer device 721 were receiving terminal, the second data link bed device 712 was the transmission end with the second protocol bed device.The first data link bed device 711 and the second data link bed device 712 all can be detected the data transmitted each other to produce respectively according to this detection signal S D1With S D2For instance, establish the first data link bed device 711 and the first protocol layer device 721 and be the transmission end for receiving terminal, the second data link bed device 712 with second protocol bed device 722.When the data that detect transmission when the first data link bed device 711 are surrounded by a crc error, detection signal S D1Indicate this crc error, and the first data link bed device 711 just transmits a Camouflaged data bag data DP according to this CRCTo the second data link bed device 712, Camouflaged data bag data DP wherein CRCComprise the misdata bag data corresponding to this crc error.The second data link bed device 712 is with the Camouflaged data bag data DP that receives CRCProcess, be resent to second protocol bed device 722.When the second data link bed device 711 detects the re-transmitted signal that sends from the first data link bed device 712, detection signal S D2Expression needs to retransmit one first packet, and the second data link bed device 712 just transmits a Camouflaged data bag data DP according to this RETRYTo the first data link bed device 711, Camouflaged data bag data DP wherein RETRYComprise one second packet data that is different from this first packet.The first data link bed device 711 is with the Camouflaged data bag data DP that receives RETRYProcess, be resent to the first protocol layer device 721.In addition, the second packet can be the next one packet to be transmitted of the first packet.
In sum, utilize transmission method provided by the present invention, for vicious simultaneous type transport-type packet, receiving terminal can't send the signal that retransfers to the transmission end in the data link layer.In addition, the present invention provides a transmission method in addition, can make when the transmission end and receive representative the retransferring during signal of the last simultaneous type transport-type packet that transmits that require to retransfer, the transmission end last simultaneous type transport-type packet that transmits that do not retransfer, and directly transmit the simultaneous type transport-type packet that this will transmit, so that the transmission end can be transmitted follow-up simultaneous type transport-type packet more quickly, so just, can effectively solve the user and when receiving voice or vision signal, produce discontinuous or nonsynchronous phenomenon, offer the larger convenience of user.
Certainly; the present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (15)

1. the method for the efficient of a packet that promotes in universal serial bus protocol transmission simultaneous type transport-type is characterized in that the method comprises:
When a transmission end retransfers signal from receiving terminal reception corresponding to one of one first simultaneous type transport-type packet, a second gear header sequence parameter of one second simultaneous type transport-type packet is set according to one first grade of header sequence parameter of this first simultaneous type transport-type packet in this transmission end; And
This second simultaneous type transport-type packet after this this second gear header sequence parameter of transmission end transmission setting is to this receiving terminal.
2. method according to claim 1 is characterized in that, the order of packet is transmitted for after transmitting first this first simultaneous type transport-type packet in this transmission end, transmits this second simultaneous type transport-type packet again.
3. method according to claim 2 is characterized in that, this transmission end is according to this first grade of header sequence parameter of this first simultaneous type transport-type packet, and this second gear header sequence parameter of setting this second simultaneous type transport-type packet comprises:
The value that this second gear header sequence parameter of this second simultaneous type transport-type packet is set in this transmission end is the value of this first grade of header sequence parameter.
4. method according to claim 3 is characterized in that, other comprises:
Before this transmission ends was transmitted this first simultaneous type transport-type packet, this transmission ends is this transmission end and this receiving terminal synchronously.
5. method according to claim 4 is characterized in that, comprises in synchronous this transmission end of this transmission ends and this receiving terminal:
This transmission ends resets to a predetermined value with a count value that transmits the packet counter of this transmission ends; And
This transmission ends transmits a synchronizing sequence signal to this receiving terminal so that the count value of a receive data package counting facility of this receiving terminal resets to this predetermined value.
6. method according to claim 5 is characterized in that, other comprises:
This transmission ends is controlled this transmission packet counter behind each transmission one packet, and this transmits the count value Zeng Jia Yi Walk exponent number order of packet counter; And
This transmission ends notifies this receiving terminal to control this receive data package counting facility behind each correct reception one packet, and the count value of this receive data package counting facility increases Gai Walk exponent number order.
7. method according to claim 6 is characterized in that, other comprises:
When this transmission ends received this and retransfers signal from this receiving terminal, the count value that this transmission ends is controlled this transmission packet counter did not increase Gai Walk exponent number order.
8. method according to claim 7 is characterized in that, this first grade of count value that the header sequence parameter is this transmission of data package counting facility of this first simultaneous type transport-type packet.
9. method according to claim 1 is characterized in that, other comprises:
This transmission end is according to a kenel information and an end points information in this first simultaneous type transport-type packet, to judge that this first packet is as the packet of simultaneous type transport-type.
10. method according to claim 1 is characterized in that, when this transmission end was a main control end, this receiving terminal was a device end; When this receiving terminal was this main control end, this transmission end was this device end.
11. one kind is used for the device that the simultaneous type communications protocol transmits data, it is characterized in that, comprises:
One data link bed device is used for according to a detection signal, optionally transmits Camouflaged data bag data.
12. device according to claim 11, it is characterized in that, when this detection signal is a crc error signal, this data link bed device transmits and comprises this Camouflaged data bag data, wherein these Camouflaged data bag data comprise a pair of should be in the misdata bag data of this crc error signal.
13. device according to claim 12 is characterized in that, other comprises a protocol layer device, is used for receiving this Camouflaged data bag data.
14. device according to claim 11, it is characterized in that, when this detection signal is a re-transmitted signal and indicates one first packet data to need to retransmit, this data link bed device transmits this Camouflaged data bag data, and wherein these Camouflaged data bag data comprise second packet data that is different from this first packet data.
15. device according to claim 14 is characterized in that, other comprises a protocol layer device, is used for receiving this Camouflaged data bag data.
CN201210326294.8A 2010-11-24 2010-11-24 A kind of method promoting the efficiency of transmission packet Active CN103001733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210326294.8A CN103001733B (en) 2010-11-24 2010-11-24 A kind of method promoting the efficiency of transmission packet

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210326294.8A CN103001733B (en) 2010-11-24 2010-11-24 A kind of method promoting the efficiency of transmission packet
CN2010105692161A CN101997648A (en) 2010-11-24 2010-11-24 Method and device for improving efficiency of data packet transmission

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN2010105692161A Division CN101997648A (en) 2010-11-24 2010-11-24 Method and device for improving efficiency of data packet transmission

Publications (2)

Publication Number Publication Date
CN103001733A true CN103001733A (en) 2013-03-27
CN103001733B CN103001733B (en) 2015-08-12

Family

ID=43787311

Family Applications (2)

Application Number Title Priority Date Filing Date
CN2010105692161A Pending CN101997648A (en) 2010-11-24 2010-11-24 Method and device for improving efficiency of data packet transmission
CN201210326294.8A Active CN103001733B (en) 2010-11-24 2010-11-24 A kind of method promoting the efficiency of transmission packet

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN2010105692161A Pending CN101997648A (en) 2010-11-24 2010-11-24 Method and device for improving efficiency of data packet transmission

Country Status (1)

Country Link
CN (2) CN101997648A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9241632B2 (en) * 2011-07-20 2016-01-26 Biosense Webster (Israel) Ltd. Synchronization of wireless catheters

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094206A (en) * 2007-08-02 2007-12-26 中兴通讯股份有限公司 Data transmission device
CN101304362A (en) * 2007-05-11 2008-11-12 中芯国际集成电路制造(上海)有限公司 Retransmission buffering apparatus and data transmission method
CN101588600A (en) * 2008-05-20 2009-11-25 宏达国际电子股份有限公司 Method and related apparatus for enhancing transmission efficiency in a wireless communication system
CN101887403A (en) * 2010-06-25 2010-11-17 钰创科技股份有限公司 Data transmission method and device for saving space of memory used for accessing packet in universal serial bus protocol

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854241A (en) * 2009-03-30 2010-10-06 上海聚力传媒技术有限公司 Method and device for verifying data block transmitted in network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304362A (en) * 2007-05-11 2008-11-12 中芯国际集成电路制造(上海)有限公司 Retransmission buffering apparatus and data transmission method
CN101094206A (en) * 2007-08-02 2007-12-26 中兴通讯股份有限公司 Data transmission device
CN101588600A (en) * 2008-05-20 2009-11-25 宏达国际电子股份有限公司 Method and related apparatus for enhancing transmission efficiency in a wireless communication system
CN101887403A (en) * 2010-06-25 2010-11-17 钰创科技股份有限公司 Data transmission method and device for saving space of memory used for accessing packet in universal serial bus protocol

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
INTEL CORPORATION: "Universal Serial Bus3.0 Connectors and Cable Assemblies Specification", 《USB 3.0 CABCON WG CONFIDENTIAL》 *
刘妍秀: "usb3.0体系结构及发展前景", 《长春大学学报》 *
高振江: "USB3.0通用串行接口技术", 《电子元器件应用》 *

Also Published As

Publication number Publication date
CN101997648A (en) 2011-03-30
CN103001733B (en) 2015-08-12

Similar Documents

Publication Publication Date Title
US20210136126A1 (en) Transmitting common mode control data over audio return channel
US4646300A (en) Communications method
US9003089B2 (en) Synchronous serial data-exchange system
CN110990312B (en) Chip-level data communication method for detection while drilling
CN105786753A (en) Method and device for data transmission between master and slave devices on I2C bus
JP4541949B2 (en) Data transfer device
CN102904688A (en) Method and device for regulating baud rate
CN111641638A (en) Data transmission method and related device
CN103001733B (en) A kind of method promoting the efficiency of transmission packet
CN1988537A (en) Data transmission protocol
US8473801B2 (en) Method for increasing efficiency of transferring packet of isochronous transfer type and device thereof
CN104660374A (en) Device for transmitting data in isochronous communication protocol
US8880972B2 (en) Serial transmission apparatus, information processing apparatus, and serial transmission method
WO2017022463A1 (en) Data transmission device and data transmission method, reception device and reception method, program, and data transmission system
CN111327393A (en) Image detector parameter transmission method based on serial communication interface
CN101425877A (en) Method for inter-module communication
CN101887403A (en) Data transmission method and device for saving space of memory used for accessing packet in universal serial bus protocol
CN113794538A (en) High-efficiency dual-computer communication feedback method
JP2011071579A (en) PCI Express (R) COMMUNICATION SYSTEM
CN106095717A (en) A kind of dynamic retardation compensation method and device
US6442196B1 (en) Data communications system
JP2004072288A (en) Communication method and communication equipment
JPH0973373A (en) Parallel interface
JP3609701B2 (en) Error data notification method and notification system in unidirectional serial data communication system
JP2022182021A (en) Serial communication device and serial communication method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170103

Address after: Taipei City, Taiwan, China

Patentee after: ETRON TECHNOLOGY, INC.

Address before: Taiwan, China Hsinchu science and Technology Park, Hsinchu science and technology five road No. 6

Patentee before: Etron Technology, Inc.