Method and apparatus for transmitting data, and communication system
First Claim
1. A method for transmitting data, comprising:
- receiving at a receiver a data unit sent by a sending end;
when it is determined that the data unit comprises a flag indicating that a retransmission is not needed, saving the data unit in a retransmission buffer of the receiving end;
when it is determined that the data unit does not comprise the flag indicating that the retransmission is not needed, judging whether the data unit is a new data unit;
if the data unit is the new data unit, saving the data unit in the retransmission buffer of the receiving end; and
if the data unit is not the new data unit, judging whether the data unit is incorrect;
if the data unit is incorrect, discarding the data unit;
if the data unit is not incorrect, further judging whether the data unit times out;
if the data unit times out, discarding the data unit; and
if the data unit does not time out, saving the data unit in the retransmission buffer of the receiving end;
marking the data unit in the retransmission buffer of the receiving end with an additional flag through monitoring a delay status, wherein the additional flag indicates a processing manner after an upper layer receives the data unit; and
submitting the data unit to the upper layer, so that the upper layer processes the data unit according to the additional flag.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a method for transmitting data. In the embodiments of the present invention, whether to send blocking information used to block low priority data sent by an upper layer is determined through monitoring a delay of data during transmission, so as to prevent data overflow in a retransmission buffer of the sending end, thus achieving higher INP protection for the low priority data. Meanwhile, only the low priority data is blocked at this time, therefore, a sending end may further continue receiving high priority data, and mark the high priority data with a flag indicating retransmission is not needed when encapsulating the high priority data, so that a receiving end does not apply for retransmission of the high priority data when receiving the high priority data, thus ensuring the short delay requirement of the high priority data.
-
Citations
9 Claims
-
1. A method for transmitting data, comprising:
- receiving at a receiver a data unit sent by a sending end;
when it is determined that the data unit comprises a flag indicating that a retransmission is not needed, saving the data unit in a retransmission buffer of the receiving end;
when it is determined that the data unit does not comprise the flag indicating that the retransmission is not needed, judging whether the data unit is a new data unit;
if the data unit is the new data unit, saving the data unit in the retransmission buffer of the receiving end; and
if the data unit is not the new data unit, judging whether the data unit is incorrect;
if the data unit is incorrect, discarding the data unit;
if the data unit is not incorrect, further judging whether the data unit times out;
if the data unit times out, discarding the data unit; and
if the data unit does not time out, saving the data unit in the retransmission buffer of the receiving end;
marking the data unit in the retransmission buffer of the receiving end with an additional flag through monitoring a delay status, wherein the additional flag indicates a processing manner after an upper layer receives the data unit; and
submitting the data unit to the upper layer, so that the upper layer processes the data unit according to the additional flag. - View Dependent Claims (2, 3)
- receiving at a receiver a data unit sent by a sending end;
-
4. A communication system, comprising:
- a sending end device, configured to monitor a delay of data during transmission;
if the delay is greater than a first delay threshold value, send blocking information used to block low priority data sent by an upper layer;
receive high priority data sent by the upper layer;
encapsulate the high priority data into a data unit;
mark the data unit with a flag indicating that a retransmission is not needed; and
send the data unit to a receiving end device; and
the receiving end device, configured to receive the data unit sent by the sending end device;
when it is determined that the data unit comprises the flag indicating that the retransmission is not needed, save the data unit in a retransmission buffer of the receiving end;
when it is determined that the data unit does not comprise the flag indicating that the retransmission is not needed, judge whether the data unit is a new data unit;
if the data unit is the new data unit, save the data unit in the retransmission buffer of the receiving end;
if the data unit is not the new data unit, judge whether the data unit is incorrect;
if the data unit is incorrect, discard the data unit;
if the data unit is not incorrect, further judge whether the data unit times out;
if the data unit times out, discard the data unit;
if the data unit does not time out, save the data unit in the retransmission buffer of the receiving end;
mark the data unit in the retransmission buffer of the receiving end with an additional flag through monitoring a delay status, wherein the additional flag indicates a processing manner after the upper layer receives the data unit; and
submit the data unit to the upper layer, so that the upper layer processes the data unit according to the additional flag. - View Dependent Claims (5, 6)
- a sending end device, configured to monitor a delay of data during transmission;
-
7. A receiving end device, comprising:
- a receiving unit, configured to receive a data unit sent by a sending end;
a flag identification unit, configured to determine whether the data unit received by the receiving unit comprises a flag indicating that a retransmission is not needed;
a newness and oldness judgment unit, configured to judge whether the data unit is a new data unit when the flag identification unit determines that the data unit does not comprise the flag indicating that the retransmission is not needed;
a storage unit, configured to save the data unit in a retransmission buffer of the receiving end when the flag identification unit determines that the data unit comprises the flag indicating that the retransmission is not needed, or when the newness and oldness judgment unit judges that the data unit is a new data unit;
a correctness judgment unit, configured to judge whether the data unit is incorrect when the newness and oldness judgment unit judges that the data unit is not a new data unit;
a time-out judgment unit, configured to judge whether the data unit times out when the correctness judgment unit judges that the data unit is not incorrect; and
a discarding unit, configured to discard the data unit when the correctness judgment unit judges that the data unit is incorrect;
or discard the data unit when the time-out judgment unit judges that the data unit times out;
an additional flag unit, configured to mark the data unit in the retransmission buffer of the receiving end with an additional flag through monitoring a delay status, wherein the additional flag indicates a processing manner after an upper layer receives the data unit; and
a submission unit, configured to submit the data unit marked by the additional flag unit to the upper layer, so that the upper layer processes the data unit according to the additional flag. - View Dependent Claims (8, 9)
- a receiving unit, configured to receive a data unit sent by a sending end;
Specification