CN101997648A - Method and device for improving efficiency of data packet transmission - Google Patents
Method and device for improving efficiency of data packet transmission Download PDFInfo
- Publication number
- CN101997648A CN101997648A CN2010105692161A CN201010569216A CN101997648A CN 101997648 A CN101997648 A CN 101997648A CN 2010105692161 A CN2010105692161 A CN 2010105692161A CN 201010569216 A CN201010569216 A CN 201010569216A CN 101997648 A CN101997648 A CN 101997648A
- Authority
- CN
- China
- Prior art keywords
- packet
- type
- check result
- simultaneous
- transmission
- 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 title claims abstract description 197
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012546 transfer Methods 0.000 claims description 32
- 238000001514 detection method Methods 0.000 claims description 8
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 238000007689 inspection Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 15
- 230000000875 corresponding effect Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 7
- 238000012790 confirmation Methods 0.000 description 4
- 240000001439 Opuntia Species 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
Images
Abstract
The invention discloses a method and device for improving the efficiency of data packet transmission. The method comprises the step of ignoring isochronoustransfer type data packets with faulty handers. When a receiving end receives the isochronoustransfer type data packets with faulty handers, the receiving end does not send a retransfer signal to a transmitting end, and therefore, the transmitting end can transmit subsequent isochronoustransfer type data packets more quickly.
Description
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 transfertype), flood tide type transport-type (bulk transfer type), and simultaneous type transport-type (isochronoustransfer 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 the packet of simultaneous type transport-type constantly, with the phenomenon of avoiding causing voice that receiving terminal received or video to produce intermittent (discontinuous), the perhaps voice that transmitted with transmission ends or the phenomenon of video asynchronous (delay).
With USB 3.0 is example, please refer to Fig. 1, and 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 sign indicating number CRC
HData payload P comprises a data segment D, and a data error check sign indicating number CRC
D
Kenel information TP can be used to the type of data packet of judgment data bag DP.Type of data packet for instance, can be shake hands (handshake), data (data) ... etc.End points information EP can be used to the transport-type (as the simultaneous type transport-type) under the judgment data bag 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 sign indicating number CRC in addition
LWith a shelves sequence parameter (Header Sequence Number) HSEQ.Connection commands character error checking sign indicating number CRC
LBe used for judging whether connection commands character LW is wrong.Whether a shelves sequence parameter HSEQ is used for the packet sequence of judgment data bag DP wrong.A shelves error checking sign indicating number CRC
HBe used for judging whether a shelves H is wrong.
Data segment D provides the transmission end data that reality is transmitted, as speech data, video data ... etc.Data error check sign indicating number CRC
DWhether be used for judgment data section D 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 data processing of transmission ends T and receiving terminal R is layered as physical layer (physical layer) PH, data link layer (data link layer) DL and protocol layer (protocol layer) PR in regular turn 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 be directly according to packet DP
1Connection commands character error checking sign indicating number CRC
L1With a shelves error checking sign indicating number CRC
H1, judgment data bag DP
1Shelves a H
1Whether correct.As judgment data bag 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
1The protocol layer PR that up is sent to receiving terminal R is with foundation packet DP
1Data payload P
1In data error check sign indicating number CRC
D1Come judgment data bag DP
1Data payload P
1Whether correct, and judging DP
1Data payload P
1After correct, according to defined incident 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, as the data link layer DL of receiving terminal R judgment data bag 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 at the simultaneous type transport-type packet DP of shelves head mistake
1Send a retry signal S
RETRYTo transmission end T, and make the transmission end T simultaneous type transport-type packet DP that retransfers again a time
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 simultaneous type transport-type packet in the prior art, 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.This 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.This method comprises when a transmission end and receives when retransferring signal corresponding to one of one first simultaneous type transport-type packet from a receiving terminal, this transmission end is according to one first grade of header sequence parameter of this first simultaneous type transport-type packet, set one second grade of header sequence parameter of one second simultaneous type transport-type packet, and this second simultaneous type transport-type packet after this this second grade of header sequence parameter of transmission end transmission setting is to this receiving terminal.
The present invention provides a kind of device that the simultaneous type communications protocol transmits data that is used in another embodiment, and this device comprises: a data link bed device, be used for according to a detection signal, and optionally transmit a camouflage packet 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 is transmitted that require to retransfer, the transmission end last simultaneous type transport-type packet that is transmitted 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 bigger 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 under 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 under 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 under 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 institute's data packets for transmission last time of transmission end;
Fig. 6 B for explanation the present invention under 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 institute's data packets for transmission last time of transmission end;
Fig. 7 is the explanation schematic representation of apparatus that is used 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 sign indicating number
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 number of data packets N
TThe transfer data packets number
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 transmitting the device of simultaneous type transport-type
711,712 data link bed devices, 721,722 protocol layer devices
S
D1, S
D2Detection signal DP
CRC, DP
RETRYThe camouflage packet data
Embodiment
In view of this, the present invention is in order to solve discontinuous and nonsynchronous problem of transmitting simultaneous type transport-type packet in the prior art, 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 being transmitted is the transmits data packets DP of transmission ends T elder generation
1To receiving terminal R, and then transmits data packets 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 sign indicating number CRC
L1With a shelves error checking sign indicating number CRC
H1, to simultaneous type transport-type packet DP
1Shelves a H
1Carry out the error code inspection, to draw connection commands character check result E respectively
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, receive packet DP from transmission end T
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 sign indicating number CRC
H1Can be 16 bits the Cyclical Redundancy Check sign indicating number (Cyclic Redundancy Check 16, CRC-16), and error checking sign indicating number CRC
L1Can be the Cyclical Redundancy Check sign indicating number (CRC-5) of 5 bits.And judgment data bag DP
1Shelves a H
1Whether correct mode, for example, can be to packet DP
1Shelves a H
1With connection commands character LW
1Carry out Cyclical Redundancy Check respectively.For instance, a shelves H
1Whole Cyclical Redundancy Check is with packet DP
1Shelves a H
1(comprise error checking sign indicating number CRC
H1) divided by a predetermined divisor CRC
DH, to get the remainder CRC of a correspondence according to this
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 have one when wrong, 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, make the transmission end T can the follow-up packet DP of faster transmission in order to promote efficiency of 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 transfer data packets DP once more
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 under 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 under 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 under 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 desires to transmit in regular turn 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 error checking, to transmission end T, inform whether packet that transmission end T is transmitted has correctly to be received with the affirmation signal ACK that sends a correspondence according to this to the shelves head of this packet.In Fig. 4 A, for instance, when confirmation signal ACK is expressed as " LGOOD ", represents then that data that transmission end T is transmitted are surrounded by correctly to be received, and need not retransfer; When confirmation signal ACK is expressed as " LBAD ", represent that then the packet that transmission end T is transmitted 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 transfer data packets 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 handling 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
1Up to transmission end T transfer data packets 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
5Transmission finishes; And Fig. 4 A has only transmitted three packet DP
1~DP
3Though 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 big, and cause user's puzzlement.
In addition, when carrying out the transmission of usb protocol 3.0 editions, transmission end T has a transfer data packets counter C
T, be used for counting the transfer data packets number 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 one to receive packet counter C
R, be used for counting reception number of data packets 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 transfer data packets number N that transmission end T can first synchronous driving end T at transmission end T and receiving terminal R
TReception number of data packets 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 be earlier with transfer data packets counter C
TThe transfer data packets number N
TReset to preset value N
1, and send synchronization sequence signals S
SEQTo receiving terminal R, so that receiving terminal R will receive packet counter C
RReception number of data packets N
RReset to preset value N
1, and notice receiving terminal R just will receive number of data packets N behind each correct reception packet
RIncrease the step number N
STEPThus, whenever transmission end T receives the affirmation signal ACK (meaning is that receiving terminal R correctly receives packet) of the representative " LGOOD " that receiving terminal R responded, transmission end T will be with the transfer data packets number 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 the transfer data packets number 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 number of data packets N
RValue (N
1).If shelves header sequence Parameter H SEQ
0Value with receive number of data packets N
REquate (N
1), receiving terminal R judgment data bag DP then
0Packet sequence correct; Otherwise, if unequal, receiving terminal R judgment data bag DP then
0Packet sequence incorrect.Correctly receive packet DP at receiving terminal R
0Afterwards, receiving terminal R can will receive number of data packets N
RValue increase the step number N
STEPAt this moment, receive number of data packets N
RValue become (N
1+ N
STEP), and the affirmation signal ACK that receiving terminal R can send representative " LGOOD " is to transmission end T, with notice transmission end T, with the transfer data packets number N
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 the transfer data packets number 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 relatively receive number of data packets N
RA value and a shelves header sequence Parameter H SEQ
1Value, with judgment data bag 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 being transmitted is the transmits data packets DP of transmission ends T elder generation
0To receiving terminal R, and then transmits data packets DP
1To receiving terminal R.In the present embodiment, receiving packet DP as receiving terminal R
0After, receiving terminal R is according to simultaneous type transport-type packet DP
0Connection commands character error checking sign indicating number CRC
L0With a shelves error checking sign indicating number CRC
H0, judge the connection commands character LW that is received
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 packet DP in the present embodiment
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 transfer data packets number N of transmission end T
TValue can not increase the step number N
STEPMore particularly, at this moment, the transfer data packets number N of transmission end T
TValue equal packet DP
0Shelves header sequence Parameter H SEQ
0Value.Therefore, transmission end T is according to the transfer data packets number 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 at 0.
In step 503, the direct transfer data packets DP of transmission end T
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 since receiving terminal R correctly do not receive packet DP
0, so the reception number of data packets 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 with receive number of data packets N
RValue equate), so receiving terminal R can judgment data bag 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 under 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 institute's data packets for transmission last time (step 503) 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 is with the transfer data packets number N
TReset to preset value N
1(in Fig. 6 A and Fig. 6 B, establish preset value N
1Be 0).Receiving terminal R will receive number of data packets 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 under 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 institute's data packets for transmission last time of transmission end T; Fig. 6 B retransfers for explanation receiving terminal R requires transmission end T to get under 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 desires to transmit in regular turn 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 reception number of data packets 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 transfer data packets number 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 transfer data packets number 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 receiving number of data packets N
R(equaling 1) and shelves header sequence Parameter H SEQ
2(equaling 1) can judgment data bag 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 receiving number of data packets 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, it is asynchronous with transmission end T that receiving terminal R can judge, and send a synchronous request signal S
SYNTo transmission end T, synchronous again to require transmission end T.In Fig. 6 B, transmission end T is transmitting packet DP
2After, receiving terminal R correctly receives packet DP
2, and will receive number of data packets N
R(equaling 1) increases the step number N
STEP, receive number of data packets N and make
RBecome 2.Receiving terminal R can send corresponding to packet DP
2The affirmation signal ACK of " LGOOD "
2Therefore, transmission end T can be with the transfer data packets number N
TIncrease the step number N
STEP, and make the transfer data packets number N
TBecome 2.Thus, want transfer data packets DP as transmission end T
3The time, because the transfer data packets number N
TWith reception number of data packets N
REquate that therefore, transmission end T just can set correct shelves header sequence Parameter H SEQ
3,, and can not send synchronous request signal S so that receiving terminal R judgment data bag order is correct
SYNThus, in the identical time, Fig. 6 B is with five packet DP
0~DP
4Transmission finishes; And Fig. 6 A has only transmitted four packet DP
0~DP
4Though the packet DP that Fig. 6 B is received
1Be wrong, 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 big, and cause user's puzzlement.
Please refer to Fig. 7.Fig. 7 is the explanation schematic diagram that is used for transmitting the device 700 of 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 the second protocol layer device 722.Device 700 is by being derived according to the first embodiment of the present invention and 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 and the second protocol layer device were receiving terminal; 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 and the second protocol layer device were the transmission end.The data that the first data link bed device 711 and the second data link bed device 712 all can be detected each other to be transmitted are to produce detection signal S according to this respectively
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 and the second protocol layer device 722.When the first data link bed device 711 detects data packets for transmission when one crc error is arranged, detection signal S
D1Indicate this crc error, and the first data link bed device 711 just transmits a camouflage packet data DP according to this
CRCTo the second data link bed device 712, wherein pretend packet data DP
CRCComprise misdata bag data corresponding to this crc error.The second data link bed device 712 is with the camouflage packet data DP that is received
CRCHandle, be resent to the second protocol layer device 722.When the second data link bed device 711 detects from re-transmitted signal that the first data link bed device 712 is sent, detection signal S
D2Expression needs to retransmit one first packet, and the second data link bed device 712 just transmits a camouflage packet data DP according to this
RETRYTo the first data link bed device 711, wherein pretend packet data DP
RETRYComprise one second packet data that is different from this first packet.The first data link bed device 711 is with the camouflage packet data DP that is received
RETRYHandle, be resent to the first protocol layer device 721.In addition, second packet can be the next one packet to be transmitted of 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 is transmitted that require to retransfer, the transmission end last simultaneous type transport-type packet that is transmitted 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 bigger convenience of user.
Certainly; the present invention also can have other various embodiments; under 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 various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (29)
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 this method comprises:
Receive one first simultaneous type transport-type packet from a transmission end;
One grade of head to this first simultaneous type transport-type packet carries out the error code inspection, to draw a check result; And
When this check result is expressed as mistake, ignore this first simultaneous type transport-type packet.
2. method according to claim 1 is characterized in that other comprises:
When this check result is expressed as when correct, receive this first simultaneous type transport-type packet to carry out subsequent treatment.
3. method according to claim 1 is characterized in that, when this check result is expressed as mistake, ignores this first simultaneous type transport-type packet and comprises:
When this check result is expressed as mistake, do not require this transmission end this first simultaneous type transport-type packet that retransfers.
4. method according to claim 3 is characterized in that, when this check result is expressed as mistake, does not require that this transmission end this first simultaneous type transport-type packet that retransfers comprises:
One second simultaneous type transport-type packet do not require this transmission end this first simultaneous type transport-type packet that retransfers, so that can directly be transmitted in this transmission end.
5. method according to claim 1 is characterized in that, this transmission end is a main control end or a device end.
6. method according to claim 1 is characterized in that, this grade head of this first simultaneous type transport-type packet is carried out the error code inspection, comprises to draw this check result:
One grade of error checking sign indicating number to this grade head of this first simultaneous type transport-type packet carries out Cyclical Redundancy Check, to draw one grade of check result;
Connection commands character error checking sign indicating number to this grade head of this first simultaneous type transport-type packet carries out Cyclical Redundancy Check, to draw a connection commands character check result; And
According to these shelves check result and this connection commands character check result, draw this check result.
7. method according to claim 6 is characterized in that, according to these shelves check result and this connection commands character check result, draws this check result and comprises:
When these shelves check result and this connection commands character check result are all when correct, this check result is correct; And
When having one to be wrong in these shelves check result and this connection commands character check result, this check result is a mistake.
8. method according to claim 6 is characterized in that, this grade error checking sign indicating number is the Cyclical Redundancy Check sign indicating number of 16 bits; This connection commands character error checking sign indicating number is the Cyclical Redundancy Check sign indicating number of five bits.
9. method according to claim 8 is characterized in that, these shelves error checking sign indicating number of this grade head of this first simultaneous type transport-type packet is carried out Cyclical Redundancy Check, comprises to draw these shelves check result:
This grade head of this first simultaneous type transport-type packet is scheduled to divisor to draw a remainder divided by one; And
According to this remainder, draw these shelves check result.
10. method according to claim 9 is characterized in that, when this remainder equaled a predetermined value, these shelves check result was correct; When this remainder was not equal to this predetermined value, these shelves check result was a mistake.
11. method according to claim 10, wherein this predetermined value is zero.
12. method according to claim 8, wherein this connection commands character error checking sign indicating number to this grade head of this first simultaneous type transport-type packet carries out Cyclical Redundancy Check, comprises to draw this connection commands character check result:
This connection commands character of this first simultaneous type transport-type packet is scheduled to divisor to draw a remainder divided by one; And
According to this remainder, draw this connection commands character check result.
13. method according to claim 12 is characterized in that, when this remainder equaled a predetermined value, this connection commands character check result was correct; When this remainder was not equal to this predetermined value, this connection commands character check result was a mistake.
14. method according to claim 13 is characterized in that, this predetermined value is zero.
15. a method that promotes the efficient of the packet of transmission simultaneous type transport-type in universal serial bus protocol is characterized in that this method comprises:
When a transmission end receives when retransferring signal corresponding to one of one first simultaneous type transport-type packet from a receiving terminal, one second grade of 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 grade of header sequence parameter of transmission end transmission setting is to this receiving terminal.
16. method according to claim 15 is characterized in that, the order of this transmission end transfer data packets is after transmitting this first simultaneous type transport-type packet earlier, to transmit this second simultaneous type transport-type packet again.
17. method according to claim 16 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 grade of header sequence parameter of setting this second simultaneous type transport-type packet comprises:
The value that this second grade of header sequence parameter of this second simultaneous type transport-type packet set in this transmission end is the value of this first grade of header sequence parameter.
18. method according to claim 17 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.
19. method according to claim 18 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 the count value of a transfer data packets counter of this transmission ends; And
This transmission ends transmit a synchronizing sequence signal to this receiving terminal so that a count value that receives the packet counter of this receiving terminal resets to this predetermined value.
20. method according to claim 19 is characterized in that, other comprises:
This transmission ends is controlled this transfer data packets counter behind each transmission one packet, and the count value of this transfer data packets counter increases by a step number; And
This transmission ends notifies this receiving terminal to control this reception packet counter behind each correct reception one packet, and the count value of this reception packet counter increases this step number.
21. method according to claim 20 is characterized in that, other comprises:
When this transmission ends receives this when retransferring signal from this receiving terminal, the count value that this transmission ends is controlled this transfer data packets counter does not increase this step number.
22. method according to claim 21 is characterized in that, this first grade of count value that the header sequence parameter is this transmits data packets counter of this first simultaneous type transport-type packet.
23. method according to claim 15 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, with the packet of judging that this first packet is the simultaneous type transport-type.
24. method according to claim 15 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.
25. 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 a camouflage packet data.
26. device according to claim 25, it is characterized in that, when this detection signal is a crc error signal, this data link bed device transmits and comprises this camouflage packet data, and wherein this camouflage packet data comprises the misdata bag data corresponding to this crc error signal.
27. device according to claim 26 is characterized in that, other comprises a protocol layer device, is used for receiving this camouflage packet data.
28. device according to claim 25, 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 camouflage packet data, and wherein this camouflage packet data comprises second packet data that is different from this first packet data.
29. device according to claim 28 is characterized in that, other comprises a protocol layer device, is used for receiving this camouflage packet data.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105692161A CN101997648A (en) | 2010-11-24 | 2010-11-24 | Method and device for improving efficiency of data packet transmission |
CN201210326294.8A CN103001733B (en) | 2010-11-24 | 2010-11-24 | A kind of method promoting the efficiency of transmission packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105692161A CN101997648A (en) | 2010-11-24 | 2010-11-24 | Method and device for improving efficiency of data packet transmission |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210326294.8A Division CN103001733B (en) | 2010-11-24 | 2010-11-24 | A kind of method promoting the efficiency of transmission packet |
CN201510099897.2A Division CN104660374A (en) | 2010-11-24 | 2010-11-24 | Device for transmitting data in isochronous communication protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101997648A true CN101997648A (en) | 2011-03-30 |
Family
ID=43787311
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210326294.8A Active CN103001733B (en) | 2010-11-24 | 2010-11-24 | A kind of method promoting the efficiency of transmission packet |
CN2010105692161A Pending CN101997648A (en) | 2010-11-24 | 2010-11-24 | Method and device for improving efficiency of data packet transmission |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210326294.8A Active CN103001733B (en) | 2010-11-24 | 2010-11-24 | A kind of method promoting the efficiency of transmission packet |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN103001733B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102885614A (en) * | 2011-07-20 | 2013-01-23 | 韦伯斯特生物官能(以色列)有限公司 | Synchronization of wireless catheters |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094206A (en) * | 2007-08-02 | 2007-12-26 | 中兴通讯股份有限公司 | Data transmission device |
CN101854241A (en) * | 2009-03-30 | 2010-10-06 | 上海聚力传媒技术有限公司 | Method and device for verifying data block transmitted in network |
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101304362B (en) * | 2007-05-11 | 2011-05-11 | 中芯国际集成电路制造(上海)有限公司 | Retransmission buffering apparatus and data transmission method |
US8085753B2 (en) * | 2008-05-20 | 2011-12-27 | Htc Corporation | Method and relate apparatus for enhancing transmission efficiency in a transmitter of a wireless communication system |
-
2010
- 2010-11-24 CN CN201210326294.8A patent/CN103001733B/en active Active
- 2010-11-24 CN CN2010105692161A patent/CN101997648A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094206A (en) * | 2007-08-02 | 2007-12-26 | 中兴通讯股份有限公司 | Data transmission device |
CN101854241A (en) * | 2009-03-30 | 2010-10-06 | 上海聚力传媒技术有限公司 | Method and device for verifying data block transmitted in network |
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 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102885614A (en) * | 2011-07-20 | 2013-01-23 | 韦伯斯特生物官能(以色列)有限公司 | Synchronization of wireless catheters |
US9241633B2 (en) | 2011-07-20 | 2016-01-26 | Biosense Webster (Israel) Ltd. | Synchronization of wireless catheters |
US9241632B2 (en) | 2011-07-20 | 2016-01-26 | Biosense Webster (Israel) Ltd. | Synchronization of wireless catheters |
Also Published As
Publication number | Publication date |
---|---|
CN103001733A (en) | 2013-03-27 |
CN103001733B (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11258833B2 (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 | |
CN112910856A (en) | Communication protocol design method based on serial port communication | |
JP4541949B2 (en) | Data transfer device | |
CN101605128A (en) | The method that the LINUX master-slave equipment communicates by Ethernet interface | |
US7760655B2 (en) | Method and device for transfer of data over a data connection from a sender to a receiver by means of packets | |
CN101997648A (en) | Method and device for improving efficiency of data packet transmission | |
US8473801B2 (en) | Method for increasing efficiency of transferring packet of isochronous transfer type and device thereof | |
CN101887403B (en) | Data transmission method and device for saving space of memory used for accessing packet in universal serial bus protocol | |
CN104660374A (en) | Device for transmitting data in isochronous communication protocol | |
CN111327393A (en) | Image detector parameter transmission method based on serial communication interface | |
CN113794538A (en) | High-efficiency dual-computer communication feedback method | |
JP3736642B2 (en) | Data transfer control device and electronic device | |
CN116055009A (en) | Data transmission method and related device | |
JP2004072288A (en) | Communication method and communication equipment | |
JPH0973373A (en) | Parallel interface | |
JP2022182021A (en) | Serial communication device and serial communication method | |
EP2405627B1 (en) | Method for operating a remote procedure call handler in a client and a server and computer system comprising the same | |
JP2002368834A (en) | Communication device and communication method | |
CN1937468B (en) | Method for processing noise interference | |
JPS6373740A (en) | Data transfer control system | |
JPH0231535A (en) | Data communication equipment | |
JP2001189714A (en) | Data transmission system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110330 |