WO2014067126A1 - 传输数据包的方法和设备 - Google Patents

传输数据包的方法和设备 Download PDF

Info

Publication number
WO2014067126A1
WO2014067126A1 PCT/CN2012/083956 CN2012083956W WO2014067126A1 WO 2014067126 A1 WO2014067126 A1 WO 2014067126A1 CN 2012083956 W CN2012083956 W CN 2012083956W WO 2014067126 A1 WO2014067126 A1 WO 2014067126A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
retransmission rate
air interface
period
state
Prior art date
Application number
PCT/CN2012/083956
Other languages
English (en)
French (fr)
Inventor
聂广材
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280071128.6A priority Critical patent/CN104221424B/zh
Priority to PCT/CN2012/083956 priority patent/WO2014067126A1/zh
Publication of WO2014067126A1 publication Critical patent/WO2014067126A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1893Physical mapping arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for transmitting a data packet. Background technique
  • Air interface technology is a key technology in communication systems. For example, data packets can be transmitted through air interfaces during the transmission of data packets.
  • the specific process of transmitting a data packet by using the prior art is: the first terminal encodes the data packet to be sent according to the air interface modulation coding order, and sends the encoded data packet to the second terminal, if the data packet to be sent is sent. If the failure occurs, the first terminal will re-encode and send the data packet to be sent according to the air interface modulation coding order until the transmission is successful or the link is released.
  • embodiments of the present invention provide a method and device for transmitting data packets.
  • the technical solution is as follows.
  • a method of transmitting a data packet comprising:
  • the retransmission rate of the data packet is greater than or equal to a preset first retransmission rate, reducing an air interface modulation coding order
  • the data packet is transmitted according to the air interface modulation coding order in the second period, and the second period is the next period closest to the first period.
  • the reducing the air interface modulation coding order includes: If the stored adjustment state is a normal state, setting the adjustment state to a reduced-order state, and reducing an air interface modulation coding order;
  • the method further includes:
  • the air interface modulation coding order is reduced.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the data packet is a retransmission data packet, increase the number of times of retransmitting the data packet in the second period and the number of times the data packet is sent;
  • the number of times the data packet is transmitted in the second period is increased.
  • a second aspect a device for transmitting a data packet, where the device includes:
  • a calculating unit configured to calculate a retransmission rate of the data packet according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted;
  • a reducing unit configured to reduce an air interface modulation coding order if a retransmission rate of the data packet of the computing unit is greater than or equal to a preset first retransmission rate
  • a sending unit configured to send a data packet according to the air interface modulation coding order of the reducing unit in the second period, where the second period is the next period closest to the first period.
  • the reducing unit includes: a determining subunit, configured to: if a retransmission rate of the computing unit data packet is greater than or equal to a preset first retransmission rate, The stored adjustment status is judged;
  • a first reducing subunit configured to: if the judgment result of the determining subunit is a normal state, set Setting the adjustment state to a reduced order state, and reducing an air interface modulation coding order;
  • a second decreasing subunit configured to reduce the air interface modulation coding order if the judgment result of the determining subunit is a reduced order state.
  • the device further includes:
  • a determining unit configured to determine, if the retransmission rate of the data packet of the computing unit is smaller than the preset first retransmission rate and greater than a preset second retransmission rate, if the stored adjustment state is The adjustment state is a reduced order state, and H 'J reduces the air interface modulation coding order.
  • the device further includes:
  • a setting unit configured to determine, if the retransmission rate of the data packet of the computing unit is less than or equal to a preset second retransmission rate, if the stored adjustment state is a reduced order state, Set the adjustment state to the normal state.
  • the device further includes:
  • the clearing unit is configured to respectively clear the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted.
  • the device further includes:
  • a first adding unit configured to: if the data packet is a retransmitted data packet, increase a number of times of retransmitting the data packet in the second period and a number of times the data packet is sent;
  • a second adding unit configured to increase the number of times the data packet is sent in the second period if the data packet is a new data packet.
  • a third aspect is an apparatus for transmitting a data packet, the apparatus comprising a memory and a processor for performing the one method of transmitting a data packet.
  • the retransmission rate of the data packet is calculated according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted; if the retransmission rate of the calculated data packet is greater than or equal to the preset first weight
  • the transmission rate reduces the air-frequency modulation coding order; in the second period, the data packet is transmitted according to the reduced air-conditioning modulation coding order, wherein the second period is the next cycle closest to the first period.
  • the air-conditioning modulation coding order is high, the air-frequency modulation coding order is reduced according to the retransmission rate of the data packet of each cycle, and finally a suitable air-conditioning modulation coding order is obtained, and the data packet is transmitted according to the air-conditioning modulation coding order.
  • the probability of packet transmission failure can be reduced, thereby saving air interface resources and improving the efficiency of transmitting data packets.
  • FIG. 1 is a flowchart of a method for transmitting a data packet according to an embodiment of the present invention
  • 2 is a flowchart of another method for transmitting a data packet according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for transmitting a data packet according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another apparatus for transmitting a data packet according to an embodiment of the present invention. detailed description
  • Embodiments of the present invention provide a method for transmitting a data packet. Referring to Figure 1, the method includes the following.
  • the retransmission rate of the data packet is calculated according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted; if the retransmission rate of the calculated data packet is greater than or equal to the preset first weight
  • the transmission rate reduces the air-frequency modulation coding order; in the second period, the data packet is transmitted according to the reduced air-conditioning modulation coding order, wherein the second period is the next cycle closest to the first period.
  • an embodiment of the present invention provides a method of transmitting a data packet. Referring to Figure 2, the method includes the following.
  • the first terminal sends a data packet to the second terminal according to the air interface modulation coding order.
  • the first terminal starts counting the time of the first period.
  • the embodiment of the present invention is an Acknowledged Mode (AM) in a Radio Link Control (RLC) layer, that is, a mode in which a peer end retransmission mode is required, and a packet is sent in an AM mode. Unsuccessful packets need to be retransmitted until the transmission is successful or the link is released.
  • AM Acknowledged Mode
  • RLC Radio Link Control
  • the first terminal increases the number of times the data packet is sent in the first period. If the data packet is a retransmitted data packet, the first terminal increases the data packet sent in the first period. The number of times and the number of times the packet was retransmitted.
  • the first terminal When the data packet sent by the first terminal is a newly transmitted data packet, the first terminal encodes the data packet according to the air interface modulation coding order, and sends the encoded data packet to the second terminal, and responds to the data packet.
  • the waiting time is counted, and the number of times the data packet is sent in the first period is increased; if the second terminal returns a successful response to send the data packet before the response waiting time of the data packet exceeds the preset time, the first terminal
  • the next new data packet may be sent as described above; if the second terminal returns a failure response to send the data packet before the response waiting time of the data packet exceeds the preset time, the data packet is retransmitted data at this time.
  • the packet is re-encoded according to the air-conditioning modulation coding order, and the encoded data packet is sent to the second terminal, and the response waiting time of the data packet is re-timed, and the data packet is sent in the first cycle.
  • the number of times and the number of times the packet was retransmitted; if the response wait time of the packet exceeds the preset time
  • the second terminal does not receive the response to send the data packet, the data packet is re-encoded according to the air interface modulation coding order, and the encoded data packet is sent to the second terminal, and the response of the data packet is re-waited.
  • the time is counted, and the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted are increased.
  • the initial value of the number of times the data packet is sent may be 0, and the initial value of the number of times the data packet is retransmitted may also be 0.
  • the specific operation of increasing the number of times the data packet is sent in the first period may be: adding 1 to the number of times the data packet is sent in the first period.
  • the specific operation of increasing the number of retransmissions of the data packet in the first period may be: adding 1 to the number of retransmissions of the data packet in the first period.
  • the sending process of other data packets in the first cycle is also implemented according to the foregoing steps 201 and 202. If the time for counting the time of the first period reaches the length of the preset period, then the second period begins when the first period ends.
  • the first terminal calculates a retransmission rate of the data packet according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted.
  • the first terminal divides the number of times the data packet is retransmitted in the first period and the number of times the data packet is transmitted, to obtain a retransmission rate of the data packet in the first period.
  • the retransmission rate of the data packet in the first period is 1.
  • the number of times the data packet is sent in the first period is 10, and the number of times of retransmitting the data packet is 8, and the number of times of retransmitting the data packet 8 and the number of times the data packet is transmitted are 10, and the data packet in the first period is obtained.
  • the retransmission rate is 80%.
  • the first terminal determines, according to the retransmission rate of the calculated data packet, if the retransmission rate of the calculated data packet is greater than or equal to the preset first retransmission rate, step 205 is performed, if the calculated data packet is heavy. If the transmission rate is less than the preset first retransmission rate and is greater than the preset second retransmission rate, step 206 is performed. If the retransmission rate of the calculated data packet is less than or equal to the preset second retransmission rate, step 207 is performed. The preset first retransmission rate is greater than the preset second retransmission rate.
  • step 205 comparing the retransmission rate of the data packet with the preset first retransmission rate, if the retransmission rate of the data packet is greater than or equal to the preset first retransmission rate, step 205 is performed, otherwise, the weight of the data packet is The transmission rate is less than the preset first retransmission rate, and the retransmission rate of the data packet is compared with the preset second retransmission rate. If the retransmission rate of the data packet is greater than the preset second retransmission rate, then the data is The retransmission rate of the packet is smaller than the preset first retransmission rate and greater than the preset second retransmission rate. Step 206 is performed. If the retransmission rate of the calculated data packet is less than or equal to the preset second retransmission rate, the step is performed. 207. The preset first retransmission rate is greater than a preset second retransmission rate.
  • the first terminal determines, according to the stored adjustment state, if the adjustment state is a normal state, setting the adjustment state to a reduced-order state, and reducing an air interface modulation coding order. If the adjustment state is a reduced-order state, Reduce the air-frequency modulation coding order.
  • the first terminal determines the stored adjustment state. If the adjustment state is a normal state, the adjustment state is set to a reduced-order state and the air interface modulation coding order is reduced in the second period; if the adjustment state is For the reduced order state, the air interface modulation coding order is directly reduced in the second period.
  • the first terminal determines that the stored adjustment state is a normal state
  • the first terminal sets the adjustment state to a reduced-order state, and determines the adjustment state in the second period, and determines the The adjustment state is a reduced-order state, and the air-conditioning modulation coding order is reduced.
  • the adjustment state is determined, and the adjustment state is determined to be a reduced-order state, and the air-conditioning modulation coding order is reduced.
  • the first terminal determines that the stored adjustment state is a reduced-order state
  • the first terminal directly determines the adjustment state in the second period, and determines that the adjustment state is a reduced-order state, and reduces the air-conditioning modulation coding step. number.
  • the first terminal determines the adjustment state, determines that the adjustment state is a reduced-order state, and reduces the air-conditioning modulation coding order.
  • the air interface modulation coding order is reduced, which may be specifically: subtracting the air interface modulation coding order by one. If the first terminal determines that the adjustment state is a normal state in the second period, the first terminal does not perform an operation of reducing the air interface modulation coding order.
  • the air interface modulation coding order is determined before the first terminal reduces the air interface modulation coding order. If it is determined that the air interface modulation coding order is the minimum value of the preset air interface modulation coding order range, the reduction air interface is not performed. The operation of modulating the coding order.
  • the first terminal determines the stored adjustment state. If the adjustment state is a reduced state, the air interface modulation coding order is reduced.
  • the first terminal determines the stored adjustment state. If the adjustment state is a reduced-order state, the air interface modulation coding order is directly reduced in the second period.
  • the air interface modulation coding order is not reduced in the second period.
  • the first terminal determines that the stored adjustment state is a reduced-order state
  • the first terminal directly determines the adjustment state in the second period, and determines that the adjustment state is a reduced-order state, and reduces the air-conditioning modulation coding step. number.
  • the first terminal determines the adjustment state, and determines that the adjustment state is a reduced-order state, thereby reducing the air-conditioning modulation coding order.
  • the air interface modulation coding order is determined before the first terminal reduces the air interface modulation coding order. If it is determined that the air interface modulation coding order is the minimum value of the preset air interface modulation coding order range, the reduction air interface is not performed. The operation of modulating the coding order.
  • the first terminal determines the stored adjustment state. If the adjustment state is a reduced state, the adjustment state is set to a normal state.
  • the adjustment state is a normal state
  • no processing is performed on the adjustment state.
  • the first terminal sets the adjustment state to a normal state.
  • the preset first retransmission rate may be set in advance, and the preset second retransmission rate is not set.
  • the current The air interface modulation coding order is suitable, and the current air interface modulation coding order is not required to be reduced.
  • the data packet retransmission rate is greater than or equal to the preset first retransmission rate, the current air interface modulation coding order is reduced.
  • the one or more factors in the transmission of the data packet cause the air interface modulation coding order to be automatically increased.
  • the air interface modulation coding order is increased, the retransmission rate of the data packet is greater than or equal to the preset first retransmission rate, It is necessary to reduce the number of air interface modulation coding orders.
  • the preset first retransmission rate and the preset second retransmission rate may be set in advance, and when the air interface modulation coding order is increased, the retransmission rate of the data packet is also increased, when the data packet is When the retransmission rate is greater than or equal to the preset first retransmission rate, the air interface modulation coding order is reduced; when the retransmission rate of the data packet is less than the preset first retransmission rate and greater than the preset second retransmission rate, if If the adjustment state is the reduced state, the air interface modulation coding order is reduced.
  • the air interface modulation coding order is not reduced, so the data packet is retransmitted when only one retransmission threshold is preset.
  • the rate reaches the threshold, the air-frequency modulation coding order is reduced, and the preset two retransmission rate thresholds can reduce the frequency of adjusting the air-conditioning modulation coding order.
  • the first terminal respectively sends the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted.
  • the first terminal sends a data packet to the second terminal according to the air interface modulation coding order.
  • the data packet is sent to the second terminal according to the adjusted air interface modulation coding order in the second period; At the beginning of the second period, the air interface modulation coding order is not adjusted, and in the second period, the data packet is sent to the second terminal according to the unmodulated air interface modulation coding order.
  • the first terminal starts counting the time of the second period.
  • the first terminal increases the number of times the data packet is sent in the second period. If the data packet is a retransmitted data packet, the first terminal adds the data packet to be sent in the second period. The number of times and the number of times the packet was retransmitted.
  • the first terminal When the data packet sent by the first terminal is a newly transmitted data packet, the first terminal encodes the data packet according to the air interface modulation coding order, and sends the encoded data packet to the second terminal, where the data packet is sent.
  • the time of the response waiting is counted, and the number of times the data packet is sent in the second period is increased; if the second terminal returns a successful response to send the data packet before the response waiting time of the data packet exceeds the preset time, then A terminal may send the next new data packet according to the above method; if the second terminal returns a failure response to send the data packet before the response waiting time of the data packet exceeds the preset time, the data packet is heavy at this time.
  • Transmitting the data packet re-encoding the data packet according to the air interface modulation coding order, sending the encoded data packet to the second terminal, re-clocking the response waiting time of the data packet, and increasing the data transmission in the second cycle
  • the number of times of the packet and the number of times the packet is retransmitted; if the response of the packet is not received before the response time of the packet exceeds the preset time, the second terminal returns the response of the packet,
  • the data packet is encoded, and the encoded data packet is sent to the second terminal, and the data packet is re-transmitted. Waiting for timing the response time, while increasing the number of times the data packet and the retransmission data packet transmitted within the second period.
  • the specific operation of increasing the number of times the data packet is sent in the second period may be: adding 1 to the number of times the data packet is sent in the second period.
  • the specific operation of increasing the number of retransmissions of the data packet in the second period may be: adding 1 to the number of retransmissions of the data packet in the second period.
  • the sending process of other data packets in the second period is also implemented according to the foregoing steps 209 and 210.
  • the second period ends and the third period ends.
  • the first terminal calculates a retransmission rate of the data packet according to the number of times the data packet is sent in the second period and the number of times the data packet is retransmitted.
  • the first terminal divides the number of times the data packet is retransmitted in the second period and the number of times the data packet is transmitted, to obtain a retransmission rate of the data packet in the second period.
  • the retransmission rate of the data packet in the second period is 1.
  • the number of times the data packet is sent in the second period is 10
  • the number of times of retransmitting the data packet is 8
  • the number of retransmitted data packets 8 and the number of transmitted data packets 10 are divided to obtain a retransmission rate of the data packet in the second period. It is 80%.
  • the first terminal determines, according to the retransmission rate of the calculated data packet, if the retransmission rate of the calculated data packet is greater than or equal to the preset first retransmission rate, step 213 is performed, if the calculated data packet If the retransmission rate is less than the preset first retransmission rate and greater than the preset second retransmission rate, step 214 is performed. If the retransmission rate of the calculated data packet is less than or equal to the preset second retransmission rate, the step is performed. 215.
  • comparing the retransmission rate of the data packet with the preset first retransmission rate if the retransmission rate of the data packet is greater than or equal to the preset first retransmission rate, performing step 213, otherwise, the weight of the data packet The transmission rate is less than the preset first retransmission rate, and the retransmission rate of the data packet is compared with the preset second retransmission rate. If the retransmission rate of the data packet is greater than the preset second retransmission rate, then the data is The retransmission rate of the packet is smaller than the preset first retransmission rate and greater than the preset second retransmission rate. Step 214 is performed. If the retransmission rate of the calculated data packet is less than or equal to the preset second retransmission rate, the step is performed. 215.
  • the first terminal determines the stored adjustment state. If the adjustment state is a normal state, setting the adjustment state to a reduced-order state, and reducing the air-conditioning modulation coding order. If the adjustment state is a reduced-order state, Reduce the air-frequency modulation coding order.
  • the first terminal determines the stored adjustment state. If the adjustment state is a normal state, the adjustment state is set to a reduced-order state and the air interface modulation coding order is reduced in the third period; if the adjustment state is For the reduced order state, the air interface modulation coding order is directly reduced in the third period.
  • the first terminal determines that the stored adjustment state is a normal state
  • the first terminal sets the adjustment state to a reduced-order state, and determines the adjustment state in the third period, and determines that the adjustment state is Reduce the state of the air interface modulation coding order.
  • the adjustment state is determined, and the adjustment state is determined to be a reduced-order state, and the air-conditioning modulation coding order is reduced.
  • the first terminal When the first terminal determines that the stored adjustment state is a reduced-order state, the first terminal directly determines the adjustment state in the third period, and determines that the adjustment state is a reduced-order state, and reduces the air-conditioning modulation coding step. number.
  • the first terminal determines the adjustment state, determines that the adjustment state is a reduced-order state, and reduces the air-conditioning modulation coding order.
  • the first terminal determines that the adjustment state is a normal state in the third period, the first terminal does not perform an operation of reducing the air interface modulation coding order.
  • the air interface modulation coding order is determined before the first terminal reduces the air interface modulation coding order. If it is determined that the air interface modulation coding order is the minimum value of the preset air interface modulation coding order range, the reduction air interface is not performed. The operation of modulating the coding order.
  • the first terminal determines the stored adjustment state. If the adjustment state is a reduced-order state, the air interface modulation coding order is reduced. Specifically, the first terminal determines the stored adjustment state, and if the adjustment state is a reduced-order state, directly reduces the air interface modulation coding order in the third period.
  • the air interface modulation coding order is not reduced in the third period.
  • the first terminal When the first terminal determines that the stored adjustment state is a reduced-order state, the first terminal directly determines the adjustment state in the third period, and determines that the adjustment state is a reduced-order state, and reduces the air-conditioning modulation coding step. number.
  • the first terminal determines the adjustment state, and determines that the adjustment state is a reduced-order state, thereby reducing the air-conditioning modulation coding order.
  • the air interface modulation coding order is determined before the first terminal reduces the air interface modulation coding order. If it is determined that the air interface modulation coding order is the minimum value of the preset air interface modulation coding order range, the reduction air interface is not performed. The operation of modulating the coding order.
  • the first terminal determines the stored adjustment state. If the adjustment state is a reduced state, the adjustment state is set to a normal state.
  • the adjustment state is a normal state
  • no processing is performed on the adjustment state.
  • the adjustment state is set to a normal state.
  • the process of sending a data packet in the third period may be implemented according to the process of sending a data packet in the second period described in the foregoing steps 208 to 210.
  • the retransmission rate of the data packet is calculated according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted; if the retransmission rate of the calculated data packet is greater than or equal to the preset first weight
  • the transmission rate reduces the air-frequency modulation coding order; in the second period, the data packet is transmitted according to the reduced air-conditioning modulation coding order, wherein the second period is the next cycle closest to the first period.
  • the device includes: a calculating unit 301, configured to calculate a retransmission rate of the data packet according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted;
  • the reducing unit 302 is configured to: if the retransmission rate of the data packet calculated by the calculating unit 301 is greater than or equal to Presetting the first retransmission rate, reducing the air interface modulation coding order; and
  • the sending unit 303 is configured to send a data packet according to the air interface modulation coding order reduced by the reducing unit 302 in the second period, where the second period is the next period closest to the first period.
  • the reducing unit 302 includes:
  • a determining subunit configured to determine, if the retransmission rate of the data packet calculated by the calculating unit 301 is greater than or equal to the preset first retransmission rate, the stored adjustment state;
  • a first reducing subunit configured to: if the judgment result of the determining subunit is a normal state, set the adjustment state to a reduced order state, and reduce an air interface modulation coding order;
  • the second decreasing subunit is configured to reduce the air interface modulation coding order if the judgment result of the determining subunit is a reduced order state.
  • the device further includes:
  • a determining unit configured to: if the retransmission rate of the data packet calculated by the calculating unit 301 is less than a preset first retransmission rate and greater than a preset second retransmission rate, determine the stored adjustment state, if the stored adjustment state is For the reduced order state, the air interface modulation coding order is reduced.
  • the device further includes:
  • a setting unit configured to determine, if the retransmission rate of the data packet calculated by the calculating unit 301 is less than or equal to a preset second retransmission rate, to determine the stored adjustment state, if the stored adjustment state is a reduced-order state, set The adjustment state is a normal state.
  • the device further includes:
  • Clearing unit used to respectively send the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted
  • the device further includes:
  • a first adding unit configured to: if the sent data packet is a retransmitted data packet, increase a number of times of retransmitting the data packet in the second period and a number of times the data packet is sent;
  • a second adding unit configured to increase the number of times the data packet is sent in the second period if the sent data packet is a newly transmitted data packet.
  • the retransmission rate of the data packet is calculated according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted; if the retransmission rate of the calculated data packet is greater than or equal to the preset first weight
  • the transmission rate reduces the air-frequency modulation coding order; in the second period, the data packet is transmitted according to the reduced air-conditioning modulation coding order, wherein the second period is the next cycle closest to the first period.
  • the air interface modulation coding order is high, the air channel modulation coding order is reduced according to the retransmission rate of the data packet in each cycle.
  • Embodiments of the present invention provide an apparatus for transmitting a data packet.
  • the device includes: a memory 401 and a processor 402, configured to perform the following method of transmitting a data packet:
  • the retransmission rate of the data packet is greater than or equal to a preset first retransmission rate, reducing an air interface modulation coding order
  • the data packet is transmitted according to the air interface modulation coding order in the second period, and the second period is the next period closest to the first period.
  • the reducing the air-frequency modulation coding order includes:
  • the stored adjustment state is a normal state, setting the adjustment state to a reduced state, and reducing the air interface modulation coding order;
  • the air interface modulation coding order is reduced.
  • the method further includes:
  • the air interface modulation coding order is reduced.
  • the method further includes:
  • the method further includes:
  • the number of times the data packet is transmitted in the first period and the number of times the data packet is retransmitted are respectively cleared.
  • the method further includes:
  • the data packet is a retransmission data packet, increase the number of times of retransmitting the data packet in the second period and the number of times the data packet is sent;
  • the number of times the data packet is transmitted in the second period is increased.
  • the retransmission rate of the data packet is calculated according to the number of times the data packet is sent in the first period and the number of times the data packet is retransmitted; if the retransmission rate of the calculated data packet is greater than or equal to the preset first weight
  • the transmission rate reduces the air-frequency modulation coding order; in the second period, the data packet is transmitted according to the reduced air-conditioning modulation coding order, wherein the second period is the next cycle closest to the first period.
  • the air-conditioning modulation coding order is high, the air-frequency modulation coding order is reduced according to the retransmission rate of the data packet of each cycle, and finally a suitable air-conditioning modulation coding order is obtained, and the data packet is transmitted according to the air-conditioning modulation coding order.
  • the probability of packet transmission failure can be reduced, thereby saving air interface resources and improving the efficiency of transmitting data packets.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the scope of the present invention, should be included in the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

本发明实施例提供了一种传输数据包的方法和设备,涉及通信领域,所述方法包括:根据第一周期内发送数据包的次数和重传数据包的次数,计算数据包的重传率;如果所述数据包的重传率大于或等于预设第一重传率,则减少空口调制编码阶数;在第二周期内根据所述空口调制编码阶数发送数据包,所述第二周期是与所述第一周期最近的下一个周期。所述设备包括:计算单元、减少单元和发送单元。本发明根据数据包的重传率得到一个合适的空口调制编码阶数,根据该空口调制编码阶数发送数据包可以减小数据包传输失败的概率,进而节约空口资源,提高发送数据包的效率。

Description

说 明 书 传输数据包的方法和设备 技术领域
本发明涉及通信领域, 特别涉及一种传输数据包的方法和设备。 背景技术
空口技术是通信系统中的关键技术, 例如, 在数据包的传输过程中可以通 过空口来传输数据包。
目前, 通过现有技术传输数据包的具体过程为: 第一终端根据空口调制编 码阶数对待发送的数据包进行编码, 将编码后的数据包发送给第二终端, 如果 待发送的数据包发送失败, 则第一终端将重新根据空口调制编码阶数对待发送 的数据包进行编码并发送, 直至发送成功或链路释放为止。
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 通过现有技术传输数据包时, 如果采用的空口调制编码阶数较高, 则导致 数据包传输失败的概率就较大, 如此会浪费空口资源, 并且发送数据包的效率 较低。 发明内容
为了节约空口资源, 提高发送数据包的效率, 本发明实施例提供了一种传 输数据包的方法和设备。 所述技术方案如下。
第一方面, 一种传输数据包的方法, 所述方法包括:
根据第一周期内发送数据包的次数和重传数据包的次数, 计算数据包的重 传率;
如果所述数据包的重传率大于或等于预设第一重传率, 则减少空口调制编 码阶数;
在第二周期内根据所述空口调制编码阶数发送数据包, 所述第二周期是与 所述第一周期最近的下一个周期。
在上述第一方面的第一种可能的实现方式中, 所述减少空口调制编码阶 数, 包括: 如果已存储的调整状态为正常状态, 则设置所述调整状态为降阶状态, 减 少空口调制编码阶数;
如果已存储的调整状态为降阶状态, 则减少所述空口调制编码阶数。 在上述第一方面的第二种可能的实现方式中, 所述计算数据包的重传率之 后, 还包括:
如果所述数据包的重传率小于所述预设第一重传率且大于预设第二重传 率, 并且已存储的调整状态为降阶状态, 则减少所述空口调制编码阶数。
在上述第一方面的第三种可能的实现方式中, 所述计算数据包的重传率之 后, 还包括:
如果所述数据包的重传率小于或等于预设第二重传率, 并且如果已存储的 调整状态为降阶状态, 则设置所述调整状态为正常状态。
在上述第一方面的第四种可能的实现方式中, 所述计算数据包的重传率之 后, 还包括:
分别将所述第一周期内发送数据包的次数和重传数据包的次数清零。 在上述第一方面的第五种可能的实现方式中, 所述在第二周期内根据所述 空口调制编码阶数发送数据包之后, 还包括:
如果所述数据包为重传数据包, 则增加所述第二周期内重传数据包的次数 和发送数据包的次数;
如果所述数据包为新传数据包, 则增加所述第二周期内发送数据包的次 数。
第二方面, 一种传输数据包的设备, 所述设备包括:
计算单元, 用于根据第一周期内发送数据包的次数和重传数据包的次数, 计算数据包的重传率;
减少单元, 用于如果所述计算单元的数据包的重传率大于或等于预设第一 重传率, 则减少空口调制编码阶数; 和
发送单元, 用于在第二周期内根据所述减少单元的空口调制编码阶数发送 数据包, 所述第二周期是与所述第一周期最近的下一个周期。
在上述第二方面的第一种可能的实现方式中, 所述减少单元包括: 判断子单元, 用于如果所述计算单元数据包的重传率大于或等于预设第一 重传率, 对已存储的调整状态进行判断;
第一减少子单元, 用于如果所述判断子单元的判断结果为正常状态, 则设 置所述调整状态为降阶状态, 减少空口调制编码阶数;
第二减少子单元, 用于如果所述判断子单元的判断结果为降阶状态, 则减 少所述空口调制编码阶数。
在上述第二方面的第二种可能的实现方式中, 所述设备还包括:
判断单元, 用于如果所述计算单元数据包的重传率小于所述预设第一重传 率且大于预设第二重传率, 对已存储的调整状态进行判断, 如果所述已存储的 调整状态为降阶状态, H 'J减少所述空口调制编码阶数。
在上述第二方面的第三种可能的实现方式中, 所述设备还包括:
设置单元, 用于如果所述计算单元数据包的重传率小于或等于预设第二重 传率,对已存储的调整状态进行判断,如果所述已存储的调整状态为降阶状态, 则设置所述调整状态为正常状态。
在上述第二方面的第四种可能的实现方式中, 所述设备还包括:
清零单元, 用于分别将所述第一周期内发送数据包的次数和重传数据包的 次数清零。
在上述第二方面的第五种可能的实现方式中, 所述设备还包括:
第一增加单元, 用于如果所述数据包为重传数据包, 则增加所述第二周期 内重传数据包的次数和发送数据包的次数;
第二增加单元, 用于如果所述数据包为新传数据包, 则增加所述第二周期 内发送数据包的次数。
第三方面, 一种传输数据包的设备, 所述设备包括存储器和处理器, 用于 执行所述一种传输数据包的方法。
在本发明实施例中,根据第一周期内发送数据包的次数和重传数据包的次 数, 计算数据包的重传率; 如果计算的数据包的重传率大于或等于预设第一重 传率, 则减少空口调制编码阶数; 在第二周期内根据减少的空口调制编码阶数 发送数据包, 其中, 第二周期是与第一周期最近的下一个周期。 如此当空口调 制编码阶数较高时, 根据每个周期的数据包的重传率减少空口调制编码阶数, 最终得到一个合适的空口调制编码阶数,根据该空口调制编码阶数发送数据包 可以减小数据包传输失败的概率,进而节约空口资源,提高发送数据包的效率。 附图说明
图 1是本发明实施例提供的一种传输数据包的方法流程图; 图 2是本发明实施例提供的另一种传输数据包的方法流程图; 图 3是本发明实施例提供的一种传输数据包的设备结构示意图;
图 4是本发明实施例提供的另一种传输数据包的设备结构示意图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。 本发明实施例提供了一种传输数据包的方法。 参见图 1 , 该方法包括以下 内容。
101 , 根据第一周期内发送数据包的次数和重传数据包的次数, 计算数据 包的重传率;
102, 如果计算的数据包的重传率大于或等于预设第一重传率, 则减少空 口调制编码阶数;
103 , 在第二周期内根据该空口调制编码阶数发送数据包, 第二周期是与 第一周期最近的下一个周期。
在本发明实施例中,根据第一周期内发送数据包的次数和重传数据包的次 数, 计算数据包的重传率; 如果计算的数据包的重传率大于或等于预设第一重 传率, 则减少空口调制编码阶数; 在第二周期内根据减少的空口调制编码阶数 发送数据包, 其中, 第二周期是与第一周期最近的下一个周期。 如此当空口调 制编码阶数较高时, 根据每个周期的数据包的重传率减少空口调制编码阶数, 最终得到一个合适的空口调制编码阶数,根据该空口调制编码阶数发送数据包 可以减小数据包传输失败的概率,进而节约空口资源,提高发送数据包的效率。 在图 1所述的实施例的基础上, 本发明实施例提供了一种传输数据包的方 法。 参见图 2, 该方法包括以下内容。
201 , 在第一周期内, 第一终端根据空口调制编码阶数发送数据包给第二 终端。
其中, 在第一周期开始时, 第一终端开始对第一周期的时间进行计时。 其中, 最初在发送数据包之前从预设空口调制编码阶数范围内选择空口调 制编码阶数, 在发送数据包时根据选择的空口调制编码阶数发送数据包, 如果 选择的空口调制编码阶数较高可能会导致发送数据包失败的概率较大, 通过本 发明实施例的方法减少该空口调制编码阶数, 获得一个合适的空口调制编码阶 数使发送数据包失败的概率减小。
其中, 本发明实施例是在无线链路控制 (Radio Link Control, RLC)层的确 认模式 (Acknowledged Mode, AM) , 即需要对端应答重传的模式下来发送数 据包, 在 AM模式下对于发送不成功的数据包需要一直重传, 直至发送成功或 者链路释放为止。
202, 如果该数据包为新传数据包, 则第一终端增加第一周期内发送数据 包的次数, 如果该数据包为重传数据包, 则第一终端增加第一周期内发送数据 包的次数和重传数据包的次数。
其中, 当第一终端发送的数据包为新传数据包时, 第一终端根据空口调制 编码阶数对该数据包进行编码, 发送编码后的数据包给第二终端, 对该数据包 的响应等待的时间进行计时, 同时增加第一周期内发送数据包的次数; 如果在 该数据包的响应等待时间超过预设时间之前,接收第二终端返回发送该数据包 的成功响应, 则第一终端可以按上述方法发送下一个新传数据包; 如果在该数 据包的响应等待时间超过预设时间之前,接收第二终端返回发送该数据包的失 败响应, 则此时该数据包为重传数据包, 根据空口调制编码阶数重新对该数据 包进行编码, 发送编码后的数据包给第二终端, 重新对该数据包的响应等待的 时间进行计时, 同时增加第一周期内发送数据包的次数和重传数据包的次数; 如果在该数据包的响应等待时间超过预设时间之前没有接收到第二终端返回 发送该数据包的响应, 则此时根据空口调制编码阶数重新对该数据包进行编 码, 发送编码后的数据包给第二终端, 重新对该数据包的响应等待的时间进行 计时, 同时增加第一周期内发送数据包的次数和重传数据包的次数。
其中, 发送数据包的次数的初值可以为 0, 重传数据包的次数的初值也可 以为 0。
其中, 增加第一周期内发送数据包的次数的具体操作可以为: 将第一周期 内发送数据包的次数加 1。
其中, 增加第一周期内重传数据包的次数的具体操作可以为: 将第一周期 内重传数据包的次数加 1。
其中, 对于第一周期内其他的数据包的发送过程也按照上述步骤 201和步 骤 202的流程来实现。 其中, 如果对第一周期的时间进行计时的时间达到预设周期的长度, 则此 时第一周期结束第二周期开始。
203 , 在第一周期结束第二周期开始时, 第一终端根据第一周期内发送数 据包的次数和重传数据包的次数, 计算数据包的重传率。
具体地, 在第一周期结束第二周期开始时, 第一终端将第一周期内重传数 据包的次数和发送数据包的次数做除法运算, 得到第一周期内数据包的重传 率。
进一步地, 如果第一周期内发送数据包的次数为 0, 则第一周期内数据包 的重传率为 1。
例如, 第一周期内发送数据包的次数为 10, 重传数据包的次数为 8, 则将 重传数据包的次数 8和发送数据包的次数 10做除法运算, 得到第一周期内数 据包的重传率为 80%。
204, 第一终端对计算获得的数据包的重传率进行判断, 如果计算的数据 包的重传率大于或等于预设第一重传率, 则执行步骤 205 , 如果计算的数据包 的重传率小于预设第一重传率且大于预设第二重传率, 则执行步骤 206, 如果 计算的数据包的重传率小于或等于预设第二重传率, 则执行步骤 207, 预设第 一重传率大于预设第二重传率。
具体地, 将数据包的重传率和预设第一重传率进行比较, 如果数据包的重 传率大于或等于预设第一重传率, 则执行步骤 205 , 否则, 数据包的重传率小 于预设第一重传率, 将数据包的重传率和预设的第二重传率进行比较, 如果数 据包的重传率大于预设第二重传率, 则此时数据包的重传率小于预设第一重传 率而大于预设第二重传率, 执行步骤 206, 如果计算的数据包的重传率小于或 等于预设第二重传率,则执行步骤 207,预设第一重传率大于预设第二重传率。
205 , 第一终端对已存储的调整状态进行判断, 如果该调整状态为正常状 态, 则设置该调整状态为降阶状态, 并减少空口调制编码阶数, 如果该调整状 态为降阶状态, 则减少空口调制编码阶数。
具体地, 第一终端对已存储的调整状态进行判断, 如果该调整状态为正常 状态, 则将该调整状态设置为降阶状态以及在第二周期内减少空口调制编码阶 数;如果该调整状态为降阶状态,则直接在第二周期内减少空口调制编码阶数。
其中, 当第一终端判断出已存储的调整状态为正常状态, 则第一终端将该 调整状态设置为降阶状态, 并在第二周期内对该调整状态进行判断, 判断出该 调整状态为降阶状态, 减少空口调制编码阶数。
优选地, 第一终端将该调整状态设置为降阶状态之后, 对该调整状态进行 判断, 判断出该调整状态为降阶状态, 减少空口调制编码阶数。
其中, 当第一终端判断出已存储的调整状态为降阶状态, 则第一终端直接 在第二周期内对该调整状态进行判断, 判断出该调整状态为降阶状态, 减少空 口调制编码阶数。
优选地, 在第二周期开始时, 第一终端对该调整状态进行判断, 判断出该 调整状态为降阶状态, 减少空口调制编码阶数。
优选地, 减少空口调制编码阶数, 可以具体为: 将空口调制编码阶数减 1。 其中, 如果在第二周期内第一终端判断出该调整状态为正常状态, 则第一 终端不执行减少空口调制编码阶数的操作。
优选地, 在第一终端减少空口调制编码阶数之前, 对空口调制编码阶数进 行判断, 如果判断出空口调制编码阶数为预设空口调制编码阶数范围的最小 值, 则不执行减少空口调制编码阶数的操作。
206, 第一终端对已存储的调整状态进行判断, 如果该调整状态为降阶状 态, 则减少空口调制编码阶数。
具体地, 第一终端对已存储的调整状态进行判断, 如果该调整状态为降阶 状态, 则直接在第二周期内减少空口调制编码阶数。
进一步地, 如果该调整状态为正常状态, 则不在第二周期内减少空口调制 编码阶数。
其中, 当第一终端判断出已存储的调整状态为降阶状态, 则第一终端直接 在第二周期内对该调整状态进行判断, 判断出该调整状态为降阶状态, 减少空 口调制编码阶数。
优选地, 在第二周期开始时, 第一终端对该调整状态进行判断, 判断出该 调整状态为降阶状态, 则减少空口调制编码阶数。
优选地, 在第一终端减少空口调制编码阶数之前, 对空口调制编码阶数进 行判断, 如果判断出空口调制编码阶数为预设空口调制编码阶数范围的最小 值, 则不执行减少空口调制编码阶数的操作。
207 , 第一终端对已存储的调整状态进行判断, 如果该调整状态为降阶状 态, 则设置该调整状态为正常状态。
进一步地, 如果该调整状态为正常状态, 则不对调整状态做任何处理。 优选地, 第一终端判断出该已存储的调整状态为降阶状态之后, 将该调整 状态设置为正常状态。
其中, 在本发明实施例中可以事先设置预设第一重传率, 而不设置预设第 二重传率, 当数据包的重传率小于预设第一重传率时, 则认为当前空口调制编 码阶数合适, 不需要减少当前空口调制编码阶数, 当数据包的重传率大于或等 于预设第一重传率时, 则减少当前空口调制编码阶数。
其中, 在传输数据包时存在一种或多种因素导致空口调制编码阶数自动增 加, 当空口调制编码阶数增加导致数据包的重传率大于或等于预设第一重传率 时, 就需要减少空口调制编码阶数。
其中, 在本发明实施例中可以事先设置预设第一重传率和预设第二重传 率, 当空口调制编码阶数增加导致数据包的重传率也随之增加, 当数据包的重 传率大于或等于预设第一重传率时, 减少空口调制编码阶数; 当数据包的重传 率小于预设第一重传率而大于预设第二重传率, 如果此时调整状态为降阶状 态, 则减少空口调制编码阶数, 如果此时调整状态为正常状态, 则不减少空口 调制编码阶数, 因此相比只预设一个重传率阈值时数据包的重传率一达到该阈 值就减少空口调制编码阶数,预设两个重传率阈值的方案可以减少对空口调制 编码阶数进行调整的频率。
208 , 第一终端分别将第一周期内发送数据包的次数和重传数据包的次数
、Ί骨
令。
209, 在第二周期内, 第一终端根据空口调制编码阶数发送数据包给第二 终端。
其中, 如果在第一周期结束第二周期开始时调整空口调制编码阶数, 则在 第二周期内根据调整后的空口调制编码阶数发送数据包给第二终端; 如果在第 一周期结束第二周期开始时没有调整空口调制编码阶数, 则在第二周期内根据 没有调整的空口调制编码阶数发送数据包给第二终端。
其中, 在第二周期开始时, 第一终端开始对第二周期的时间进行计时。
210, 如果该数据包为新传数据包, 则第一终端增加第二周期内发送数据 包的次数, 如果该数据包为重传数据包, 则第一终端增加第二周期内发送数据 包的次数和重传数据包的次数。
其中, 当第一终端发送的数据包为新传数据包时, 第一终端根据空口调制 编码阶数对该数据包进行编码, 发送编码后的数据包给第二终端, 对该数据包 的响应等待的时间进行计时, 同时增加第二周期内发送数据包的次数; 如果在 该数据包的响应等待时间超过预设时间之前,接收第二终端返回发送该数据包 的成功响应, 则第一终端可以按上述方法发送下一个新传数据包; 如果在该数 据包的响应等待时间超过预设时间之前,接收第二终端返回发送该数据包的失 败响应, 则此时该数据包为重传数据包, 根据空口调制编码阶数重新对该数据 包进行编码, 发送编码后的数据包给第二终端, 重新对该数据包的响应等待的 时间进行计时, 同时增加第二周期内发送数据包的次数和重传数据包的次数; 如果在该数据包的响应等待时间超过预设时间之前没有接收到第二终端返回 发送该数据包的响应, 则此时根据空口调制编码阶数重新对该数据包进行编 码, 发送编码后的数据包给第二终端, 重新对该数据包的响应等待的时间进行 计时, 同时增加第二周期内发送数据包的次数和重传数据包的次数。
其中, 增加第二周期内发送数据包的次数的具体操作可以为: 将第二周期 内发送数据包的次数加 1。
其中, 增加第二周期内重传数据包的次数的具体操作可以为: 将第二周期 内重传数据包的次数加 1。
其中, 对于第二周期内其他的数据包的发送过程也按照上述步骤 209和步 骤 210的流程来实现。
其中, 如果对第二周期的时间进行计时的时间达到预设周期的长度, 则此 时第二周期结束第三周期开始。
211 , 在第二周期结束第三周期开始时, 第一终端根据第二周期内发送数 据包的次数和重传数据包的次数, 计算数据包的重传率。
具体地, 在第二周期结束第三周期开始时, 第一终端将第二周期内重传数 据包的次数和发送数据包的次数做除法运算, 得到第二周期内数据包的重传 率。
进一步地, 如果第二周期内发送数据包的次数为 0, 则第二周期内数据包 的重传率为 1。
例如, 第二周期内发送数据包次数为 10, 重传数据包次数为 8, 则将重传 数据包次数 8和发送数据包次数 10做除法运算, 得到第二周期内数据包的重 传率为 80%。
212, 第一终端对计算获得的数据包的重传率进行判断, 如果计算的数据 包的重传率大于或等于预设第一重传率, 则执行步骤 213, 如果计算的数据包 的重传率小于预设第一重传率且大于预设第二重传率, 则执行步骤 214, 如果 计算的数据包的重传率小于或等于预设第二重传率, 则执行步骤 215。
具体地, 将数据包的重传率和预设第一重传率进行比较, 如果数据包的重 传率大于或等于预设第一重传率, 则执行步骤 213 , 否则, 数据包的重传率小 于预设第一重传率, 将数据包的重传率和预设的第二重传率进行比较, 如果数 据包的重传率大于预设第二重传率, 则此时数据包的重传率小于预设第一重传 率而大于预设第二重传率, 执行步骤 214, 如果计算的数据包的重传率小于或 等于预设第二重传率, 则执行步骤 215。
213 , 第一终端对已存储的调整状态进行判断, 如果该调整状态为正常状 态, 则设置该调整状态为降阶状态, 并减少空口调制编码阶数, 如果该调整状 态为降阶状态, 则减少空口调制编码阶数。
具体地, 第一终端对已存储的调整状态进行判断, 如果该调整状态为正常 状态, 则将该调整状态设置为降阶状态以及在第三周期内减少空口调制编码阶 数;如果该调整状态为降阶状态,则直接在第三周期内减少空口调制编码阶数。
其中, 当第一终端判断出已存储的调整状态为正常状态, 则第一终端将该 调整状态设置为降阶状态, 并在第三周期内对该调整状态进行判断, 判断出该 调整状态为降阶状态, 减少空口调制编码阶数。
优选地, 第一终端将该调整状态设置为降阶状态之后, 对该调整状态进行 判断, 判断出该调整状态为降阶状态, 则减少空口调制编码阶数。
其中, 当第一终端判断出已存储的调整状态为降阶状态, 则第一终端直接 在第三周期内对该调整状态进行判断, 判断出该调整状态为降阶状态, 减少空 口调制编码阶数。
优选地, 在第三周期开始时, 第一终端对该调整状态进行判断, 判断出该 调整状态为降阶状态, 减少空口调制编码阶数。
其中, 如果在第三周期内第一终端判断出该调整状态为正常状态, 则第一 终端不执行减少空口调制编码阶数的操作。
优选地, 在第一终端减少空口调制编码阶数之前, 对空口调制编码阶数进 行判断, 如果判断出空口调制编码阶数为预设空口调制编码阶数范围的最小 值, 则不执行减少空口调制编码阶数的操作。
214, 第一终端对已存储的调整状态进行判断, 如果该调整状态为降阶状 态, 则减少空口调制编码阶数。 具体地, 第一终端对已存储的调整状态进行判断, 如果该调整状态为降阶 状态, 则直接在第三周期内减少空口调制编码阶数。
进一步地, 如果该调整状态为正常状态, 则不在第三周期内减少空口调制 编码阶数。
其中, 当第一终端判断出已存储的调整状态为降阶状态, 则第一终端直接 在第三周期内对该调整状态进行判断, 判断出该调整状态为降阶状态, 减少空 口调制编码阶数。
优选地, 在第三周期开始时, 第一终端对该调整状态进行判断, 判断出该 调整状态为降阶状态, 则减少空口调制编码阶数。
优选地, 在第一终端减少空口调制编码阶数之前, 对空口调制编码阶数进 行判断, 如果判断出空口调制编码阶数为预设空口调制编码阶数范围的最小 值, 则不执行减少空口调制编码阶数的操作。
215 , 第一终端对已存储的调整状态进行判断, 如果该调整状态为降阶状 态, 则设置该调整状态为正常状态。
进一步地, 如果该调整状态为正常状态, 则不对调整状态做任何处理。 优选地, 第一终端判断出该已存储的调整状态为降阶状态之后, 将该调整 状态设置为正常状态。
其中, 在第三周期内发送数据包的流程可以按照上述步骤 208至步骤 210 所述的第二周期内发送数据包的流程来实现。
在本发明实施例中,根据第一周期内发送数据包的次数和重传数据包的次 数, 计算数据包的重传率; 如果计算的数据包的重传率大于或等于预设第一重 传率, 则减少空口调制编码阶数; 在第二周期内根据减少的空口调制编码阶数 发送数据包, 其中, 第二周期是与第一周期最近的下一个周期。 如此当空口调 制编码阶数较高时, 根据每个周期的数据包的重传率减少空口调制编码阶数, 最终得到一个合适的空口调制编码阶数,根据该空口调制编码阶数发送数据包 可以减小数据包传输失败的概率,进而节约空口资源,提高发送数据包的效率。 本发明实施例提供了一种传输数据包的设备。 参见图 3 , 该设备包括: 计算单元 301 , 用于根据第一周期内发送数据包的次数和重传数据包的次 数, 计算数据包的重传率;
减少单元 302, 用于如果计算单元 301计算的数据包的重传率大于或等于 预设第一重传率, 则减少空口调制编码阶数; 和
发送单元 303 , 用于在第二周期内根据减少单元 302减少的空口调制编码 阶数发送数据包, 第二周期是与第一周期最近的下一个周期。
其中, 减少单元 302包括:
判断子单元, 用于如果计算单元 301计算的数据包的重传率大于或等于预 设第一重传率, 对已存储的调整状态进行判断;
第一减少子单元, 用于如果判断子单元的判断结果为正常状态, 则设置该 调整状态为降阶状态, 减少空口调制编码阶数;
第二减少子单元, 用于如果判断子单元的判断结果为降阶状态, 则减少空 口调制编码阶数。
进一步地, 该设备还包括:
判断单元, 用于如果计算单元 301计算的数据包的重传率小于预设第一重 传率且大于预设第二重传率, 对已存储的调整状态进行判断, 如果已存储的调 整状态为降阶状态, 则减少空口调制编码阶数。
进一步地, 该设备还包括:
设置单元, 用于如果计算单元 301计算的数据包的重传率小于或等于预设 第二重传率, 对已存储的调整状态进行判断, 如果已存储的调整状态为降阶状 态, 则设置该调整状态为正常状态。
进一步地, 该设备还包括:
清零单元, 用于分别将第一周期内发送数据包的次数和重传数据包的次数Ί骨
令。
进一步地, 该设备还包括:
第一增加单元, 用于如果发送的数据包为重传数据包, 则增加第二周期内 重传数据包的次数和发送数据包的次数;
第二增加单元, 用于如果发送的数据包为新传数据包, 则增加第二周期内 发送数据包的次数。
在本发明实施例中,根据第一周期内发送数据包的次数和重传数据包的次 数, 计算数据包的重传率; 如果计算的数据包的重传率大于或等于预设第一重 传率, 则减少空口调制编码阶数; 在第二周期内根据减少的空口调制编码阶数 发送数据包, 其中, 第二周期是与第一周期最近的下一个周期。 如此当空口调 制编码阶数较高时, 根据每个周期的数据包的重传率减少空口调制编码阶数, 最终得到一个合适的空口调制编码阶数,根据该空口调制编码阶数发送数据包 可以减小数据包传输失败的概率,进而节约空口资源,提高发送数据包的效率。 本发明实施例提供了一种传输数据包的设备。 参见图 4, 该设备包括: 存储器 401和处理器 402, 用于执行如下传输数据包的方法:
根据第一周期内发送数据包的次数和重传数据包的次数, 计算数据包的重 传率;
如果所述数据包的重传率大于或等于预设第一重传率, 则减少空口调制编 码阶数;
在第二周期内根据所述空口调制编码阶数发送数据包, 所述第二周期是与 所述第一周期最近的下一个周期。
其中, 所述减少空口调制编码阶数, 包括:
如果已存储的调整状态为正常状态, 则设置所述调整状态为降阶状态, 减 少空口调制编码阶数;
如果已存储的调整状态为降阶状态, 则减少所述空口调制编码阶数。
进一步地, 所述计算数据包的重传率之后, 还包括:
如果所述数据包的重传率小于所述预设第一重传率且大于预设第二重传 率, 并且已存储的调整状态为降阶状态, 则减少所述空口调制编码阶数。
进一步地, 所述计算数据包的重传率之后, 还包括:
如果所述数据包的重传率小于或等于预设第二重传率, 并且如果已存储的 调整状态为降阶状态, 则设置所述调整状态为正常状态。
进一步地, 所述计算数据包的重传率之后, 还包括:
分别将所述第一周期内发送数据包的次数和重传数据包的次数清零。
进一步地, 所述在第二周期内根据所述空口调制编码阶数发送数据包之 后, 还包括:
如果所述数据包为重传数据包, 则增加所述第二周期内重传数据包的次数 和发送数据包的次数;
如果所述数据包为新传数据包, 则增加所述第二周期内发送数据包的次 数。
在本发明实施例中,根据第一周期内发送数据包的次数和重传数据包的次 数, 计算数据包的重传率; 如果计算的数据包的重传率大于或等于预设第一重 传率, 则减少空口调制编码阶数; 在第二周期内根据减少的空口调制编码阶数 发送数据包, 其中, 第二周期是与第一周期最近的下一个周期。 如此当空口调 制编码阶数较高时, 根据每个周期的数据包的重传率减少空口调制编码阶数, 最终得到一个合适的空口调制编码阶数,根据该空口调制编码阶数发送数据包 可以减小数据包传输失败的概率,进而节约空口资源,提高发送数据包的效率。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储 于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘 或光盘等。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范 围之内。

Claims

权 利 要 求 书
1、 一种传输数据包的方法, 其特征在于, 所述方法包括:
根据第一周期内发送数据包的次数和重传数据包的次数, 计算数据包的重 传率;
如果所述数据包的重传率大于或等于预设第一重传率, 则减少空口调制编 码阶数;
在第二周期内根据所述空口调制编码阶数发送数据包, 所述第二周期是与 所述第一周期最近的下一个周期。
2、 如权利要求 1所述的方法, 其特征在于, 所述减少空口调制编码阶数, 包括:
如果已存储的调整状态为正常状态, 则设置所述调整状态为降阶状态, 减 少空口调制编码阶数;
如果已存储的调整状态为降阶状态, 则减少所述空口调制编码阶数。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述计算数据包的重传率 之后, 还包括:
如果所述数据包的重传率小于所述预设第一重传率且大于预设第二重传 率, 并且已存储的调整状态为降阶状态, 则减少所述空口调制编码阶数。
4、 如权利要求 1至 3任一项权利要求所述的方法, 其特征在于, 所述计算 数据包的重传率之后, 还包括:
如果所述数据包的重传率小于或等于预设第二重传率, 并且如果已存储的 调整状态为降阶状态, 则设置所述调整状态为正常状态。
5、 如权利要求 1至 4任一项权利要求所述的方法, 其特征在于, 所述计算 数据包的重传率之后, 还包括:
分别将所述第一周期内发送数据包的次数和重传数据包的次数清零。
6、 如权利要求 1至 5任一项权利要求所述的方法, 其特征在于, 所述在第 二周期内根据所述空口调制编码阶数发送数据包之后, 还包括:
如果所述数据包为重传数据包, 则增加所述第二周期内重传数据包的次数 和发送数据包的次数;
如果所述数据包为新传数据包, 则增加所述第二周期内发送数据包的次数。
7、 一种传输数据包的设备, 其特征在于, 所述设备包括:
计算单元, 用于根据第一周期内发送数据包的次数和重传数据包的次数, 计算数据包的重传率;
减少单元, 用于如果所述计算单元的数据包的重传率大于或等于预设第一 重传率, 则减少空口调制编码阶数; 和
发送单元, 用于在第二周期内根据所述减少单元的空口调制编码阶数发送 数据包, 所述第二周期是与所述第一周期最近的下一个周期。
8、 如权利要求 7所述的设备, 其特征在于, 所述减少单元包括:
判断子单元, 用于如果所述计算单元数据包的重传率大于或等于预设第一 重传率, 对已存储的调整状态进行判断;
第一减少子单元, 用于如果所述判断子单元的判断结果为正常状态, 则设 置所述调整状态为降阶状态, 减少空口调制编码阶数;
第二减少子单元, 用于如果所述判断子单元的判断结果为降阶状态, 则减 少所述空口调制编码阶数。
9、 如权利要求 7或 8所述的设备, 其特征在于, 所述设备还包括: 判断单元, 用于如果所述计算单元数据包的重传率小于所述预设第一重传 率且大于预设第二重传率, 对已存储的调整状态进行判断, 如果所述已存储的 调整状态为降阶状态, 则减少所述空口调制编码阶数。
10、 如权利要求 7至 9任一项权利要求所述的设备, 其特征在于, 所述设 备还包括:
设置单元, 用于如果所述计算单元数据包的重传率小于或等于预设第二重 传率, 对已存储的调整状态进行判断, 如果所述已存储的调整状态为降阶状态, 则设置所述调整状态为正常状态。
11、 如权利要求 7至 10任一项权利要求所述的设备, 其特征在于, 所述设 备还包括:
清零单元, 用于分别将所述第一周期内发送数据包的次数和重传数据包的 次数清零。
12、 如权利要求 7至 11任一项权利要求所述的设备, 其特征在于, 所述设 备还包括:
第一增加单元, 用于如果所述数据包为重传数据包, 则增加所述第二周期 内重传数据包的次数和发送数据包的次数;
第二增加单元, 用于如果所述数据包为新传数据包, 则增加所述第二周期 内发送数据包的次数。
13、 一种传输数据包的设备, 其特征在于, 所述设备包括存储器和处理器, 用于执行如权利要求 1至 6任一项权利要求所述的一种传输数据包的方法。
PCT/CN2012/083956 2012-11-02 2012-11-02 传输数据包的方法和设备 WO2014067126A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280071128.6A CN104221424B (zh) 2012-11-02 2012-11-02 传输数据包的方法和设备
PCT/CN2012/083956 WO2014067126A1 (zh) 2012-11-02 2012-11-02 传输数据包的方法和设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/083956 WO2014067126A1 (zh) 2012-11-02 2012-11-02 传输数据包的方法和设备

Publications (1)

Publication Number Publication Date
WO2014067126A1 true WO2014067126A1 (zh) 2014-05-08

Family

ID=50626348

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083956 WO2014067126A1 (zh) 2012-11-02 2012-11-02 传输数据包的方法和设备

Country Status (2)

Country Link
CN (1) CN104221424B (zh)
WO (1) WO2014067126A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016138669A1 (zh) * 2015-03-03 2016-09-09 友达光电股份有限公司 服务器及其运算方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311494B (zh) * 2019-07-23 2023-12-08 华为技术有限公司 一种报文传输方法、装置及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741408A (zh) * 2004-08-23 2006-03-01 华为技术有限公司 调整自动重传请求系统的发射功率的方法
CN1859065A (zh) * 2006-02-27 2006-11-08 华为技术有限公司 Hsdpa数据传输速率的控制方法及其系统
CN102111807A (zh) * 2009-12-23 2011-06-29 北京中电华大电子设计有限责任公司 一种用于wlan系统中的发送速率自动调节方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100736082B1 (ko) * 2005-11-16 2007-07-06 삼성전자주식회사 무선 네트워크에서의 패킷 전송 장치 및 방법
CN101222730B (zh) * 2007-01-12 2012-04-18 华为技术有限公司 Csit收集方法、跨层调度算法及其系统和设备
CN101516104B (zh) * 2009-04-01 2011-01-19 华为技术有限公司 控制信令传输方法及系统、基站和用户设备
CN101711054B (zh) * 2009-12-21 2012-05-02 北京北方烽火科技有限公司 一种lte上行功率控制方法及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741408A (zh) * 2004-08-23 2006-03-01 华为技术有限公司 调整自动重传请求系统的发射功率的方法
CN1859065A (zh) * 2006-02-27 2006-11-08 华为技术有限公司 Hsdpa数据传输速率的控制方法及其系统
CN102111807A (zh) * 2009-12-23 2011-06-29 北京中电华大电子设计有限责任公司 一种用于wlan系统中的发送速率自动调节方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016138669A1 (zh) * 2015-03-03 2016-09-09 友达光电股份有限公司 服务器及其运算方法

Also Published As

Publication number Publication date
CN104221424B (zh) 2018-08-21
CN104221424A (zh) 2014-12-17

Similar Documents

Publication Publication Date Title
US10542064B2 (en) Method, server side and system for computing bandwidth of network transmission of streaming media
CN104159166B (zh) 基于移动网络丢包状态的直播视频数据传输差错控制方法
US20150117468A1 (en) Apparatus and method for transmitting data
EP2493105A1 (en) Method and system for recovering lost media data packets
WO2012155821A1 (zh) 差错控制的方法、接收端、发送端和系统
WO2013135196A1 (zh) 数据包传输方法及系统、发送端设备与接收端设备
US9485186B2 (en) Network congestion control with awareness of random packet losses
CN106105141A (zh) 实现扩展传输控制功能的传输加速器
JP2007089174A (ja) 無線通信システムにおける信号の伝送速度を改善する方法及び装置
CN102694731B (zh) 速率调整方法、装置和网络设备
WO2014187114A1 (zh) 一种文件传输方法、装置及存储介质
CN103686446A (zh) 视频数据传输的丢包重传方法和系统
CN111478826A (zh) 丢包率确定方法、数据传输控制方法和数据传输系统
WO2013159516A1 (zh) 无线侧tcp数据重传的方法和设备
JP4834013B2 (ja) 送信装置、送信プログラム、受信装置及び受信プログラム
JP2002135357A (ja) 通信システムにおけるデータ流れの制御方法
KR102002939B1 (ko) 주문형 파일 복구 방법 및 시스템
WO2019144802A1 (zh) 一种数据的传输方法及其相关设备
CN103916208A (zh) 去抖动、抗丢包处理方法及装置
WO2014067126A1 (zh) 传输数据包的方法和设备
CN107801200B (zh) 状态报告的发送方法及装置
CN114401208B (zh) 数据传输方法、装置、电子设备和存储介质
CN109005011B (zh) 一种用于水声网络的数据传输方法、系统及可读存储介质
WO2010115367A1 (zh) 数据传输方法及数据处理装置
JP2003338809A (ja) データ通信システム及び基地局制御装置及びデータ通信方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12887842

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12887842

Country of ref document: EP

Kind code of ref document: A1