CN103607261A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN103607261A
CN103607261A CN201310598328.3A CN201310598328A CN103607261A CN 103607261 A CN103607261 A CN 103607261A CN 201310598328 A CN201310598328 A CN 201310598328A CN 103607261 A CN103607261 A CN 103607261A
Authority
CN
China
Prior art keywords
packet
hyper frame
upset
initial value
advance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310598328.3A
Other languages
Chinese (zh)
Other versions
CN103607261B (en
Inventor
唐洪川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201310598328.3A priority Critical patent/CN103607261B/en
Publication of CN103607261A publication Critical patent/CN103607261A/en
Application granted granted Critical
Publication of CN103607261B publication Critical patent/CN103607261B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a data transmission method and device. The data transmission method and device are used for achieving that a transmitting terminal and a receiving terminal can still maintain consistency of superframe numbers of data packages with the same serial number under the condition that multiple data packages are lost continuously in the RLC UM data transmission process, and then the problem of encryption and decryption exceptions caused by the continuous loss of the multiple data packages in the data transmission process is solved, the follow-up voice encryption and decryption processes can be normally conducted, and the quality of user voice is improved. The data transmission method includes the steps that the transmitting terminal determines data packages to be transmitted, wherein the data packages carry the serial numbers of the data packages and the number of turnover times corresponding to the serial numbers of the data packages, and the number of turnover times is used for representing the number of use times of the serial numbers; the transmitting terminal transmits the data packages to the receiving terminal.

Description

A kind of data transmission method and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of data transmission method and device.
Background technology
Unacknowledged Mode (Unacknowledged Mode, UM) be wireless chain control layer (the Radio Link Control that eats dishes without rice or wine, RLC) a kind of data transmission mechanism, comprise protocol header, sequence number (Sequence Number, SN) and Length Indication (Length Indicator, the information such as LI), the segmentation of Unacknowledged Mode UM supported data, cascade, the section of closing, the function such as reorder, there is no feedback mechanism, UM is applicable to propagation delay time and requires high but can tolerate the business of some errors of transmission, such as based on Internet Protocol (Internet Protocol, IP) voice transfer (Voice over IP, VoIP), multicast broadcast multimedia service (Multimedia Broadcast Multicast Service, the business such as MBMS), these business can be encrypted, can not encrypt yet, by core network (Core Network, CN) control.
As shown in Figure 1, in Unacknowledged Mode UM data packet format, sequence number SN takies 7 bits of its corresponding data packet format, from 0~127, recycles.At present, Dedicated Control Channel (Dedicated Control Channel, DCCH) and data traffic channels (Data Traffic Channel, DTCH) can adopt Unacknowledged Mode UM to be encrypted, data after encipher only sequence number SN.Figure 2 shows that 3G data encryption framework, wherein the formation of ciphering sequence number (COUNT-C) as shown in Figure 3.For the radio bearer that uses RLC UM pattern, " short " sequence number in COUNT-C is the RLC SN value of 7 bits, and it is a part for RLC UM protocol Data Unit (Protocol Data Unit, PDU) head; " length " sequence number in COUNT-C is RLC UM Hyper Frame Number (High Frame Number, the HFN) value of 25 bits, and whenever RLC SN is from 0~127 use one-period, the value of Hyper Frame Number HFN increases by 1.
At subscriber equipment (User Equipment, UE) with radio network controller (Radio Network Controller, when RNC) two inter-entity are transmitted data, UE controls (Radio Resource Control by Radio Resource, RRC) signaling passes to RNC by START value, UE and RNC carry out initialization by parameter S TART to the Hyper Frame Number HFN of packet respectively, being that UE and RNC are classified as initial value by Hyper Frame Number HFN respectively, is consistent to maintain UE with the initial value of the HFN of the packet of the same sequence number in RNC both sides.When UE sends up UM data to RNC, UM data are carried SN, but do not carry HFN, and RNC can only judge whether the value of the HFN of RNC side should increase according to the number of times situation that recycles of SN; When RNC sends descending UM data to UE, UM data are carried SN, but also do not carry HFN, and UE also can only judge whether the value of the HFN of UE side should increase according to the number of times situation that recycles of SN.If do not have the packet number of lost data packets or loss less during two inter-entity of UE and RNC transmission data, UE and RNC both sides can maintain the consistency of HFN of the packet of same sequence number.If eated dishes without rice or wine, environment is poor, the packet number of losing continuously when UE and two inter-entity transmission data of RNC is more, can produce sequence number around problem, the HFN of the packet of the same sequence number that UE and RNC both sides maintain is inconsistent, HFN is as encryption parameter, can cause that subsequent voice is encrypted, deciphering is abnormal, and then there is noise in the voice after deciphering, have a strong impact on the quality of user speech.
Below in conjunction with example, illustrate that UE and RNC both sides can not maintain the conforming situation of HFN:
UE sends up UM packet to RNC, and wherein the SN of UM packet is from 0~20, but does not carry HFN, and RNC normally receives this UM packet; Follow-up UE sends up UM packet to RNC, wherein the SN of UM packet is from 21~127, but do not carry HFN, RNC does not receive the UM packet of SN from 21~127, now the SN of the up UM packet of UE has been used one-period from 0~127, the value of the HFN of UE side increases by 1, and because RNC does not receive SN that UE the sends UM packet from 21~127, so the value of the HFN of RNC side does not add 1; UE continues to send UM packet since 0 to RNC, and wherein the SN of UM packet is from 0~30, but does not carry HFN, and RNC does not receive the UM packet of SN from 0~30; UE continues to send UM packet to RNC, the SN of the UM packet that this time UE sends is since 31, RNC normally receives this UM data, when RNC receives the UM packet of SN=31, RNC thinks to only have SN not receive from totally 10 packets of 21~30, in fact RNC have SN from 21~127,0~30 totally 138 packets do not receive, because the value of RNC side HFN does not add 1, the HFN that now causes RNC and UE both sides to be safeguarded is inconsistent, and then causing RNC data decryption mistake, subsequent voice deciphering is abnormal.At RNC, when sending descending UM packet, UE also there is above-mentioned Similar Problems.
At present typical VoIP is configured in 60ms and can transmits 4 UM protocol Data Units (Protocol Data Unit, PDU), if during upstream or downstream transmission packet, the continuous 60*128/4=1.92s of receiving terminal does not receive packet and will cause sequence number around problem, cause the Hyper Frame Number HFN of packet of the same sequence number that UE and RNC both sides maintain inconsistent, Hyper Frame Number is as encryption parameter, and the inconsistent meeting of described Hyper Frame Number of UE and RNC both sides causes that subsequent voice is encrypted, decrypting process is abnormal.If the abnormal quality of eating dishes without rice or wine can be detected within 1.92s, be that sequence number is around problem, UE and RNC both sides can be by simultaneously carrying out to the HFN of the packet of same sequence number the inconsistent problem of HFN that initialization solves the packet of the same sequence number that UE that sequence number causes around problem and RNC both sides maintain again, but the shortest current wireless link (Radio Link, RL) abnormality detection timer needs 3s just the abnormal quality of eating dishes without rice or wine can be detected, therefore, in prior art, cannot solve the inconsistent problem of Hyper Frame Number HFN of the packet of the same sequence number that UE that packet sequence number causes around problem and RNC both sides maintain.
In sum, at present in UE and two inter-entity transmission data procedures of RNC, poor at the environment of eating dishes without rice or wine, lose continuously in the situation of a plurality of packets, the transmission of data can produce packet sequence number around problem, cause the Hyper Frame Number HFN of packet of the same sequence number that UE and RNC both sides maintain inconsistent, Hyper Frame Number is as encryption parameter, the inconsistent meeting of described Hyper Frame Number of UE and RNC both sides causes that subsequent voice is encrypted, decrypting process is abnormal, there is noise in the voice after user's deciphering, has a strong impact on the quality of user speech.
Summary of the invention
The invention provides a kind of data transmission method and device, for realizing RLC UM data transmission procedure in the situation that losing a plurality of packet continuously, transmitting terminal and receiving terminal still can maintain the consistency of Hyper Frame Number of the packet of same sequence number, and then solved in data transmission procedure the encryption of losing continuously a plurality of packets and causing, deciphered abnormal problem, follow-up voice encryption, decrypting process are normally carried out, improved the quality of user speech.
The embodiment of the present invention provides a kind of data transmission method, and the method comprises:
Transmitting terminal is determined packet to be sent, and wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times represents the access times of this sequence number;
Transmitting terminal sends described packet to receiving terminal.
From said method, can find out, transmitting terminal will carry the sequence number of this packet and the Packet Generation of upset number of times to receiving terminal, like this, the sequence number that receiving terminal just can carry by the packet receiving and upset number of times are determined the Hyper Frame Number of the packet of same sequence number, and then make the consistency of Hyper Frame Number of the packet of the same sequence number that transmitting terminal and receiving terminal maintain, Hyper Frame Number is as encryption parameter, follow-up voice encryption, decrypting process are normally carried out, improved the quality of user speech.
Preferably, when the value of upset number of times corresponding to the sequence number of transmitting terminal packet to be sent reaches predetermined threshold value, when this sequence number is used again, the value of corresponding upset number of times is classified as the initial value setting in advance.
Like this, when the value of upset number of times reaches predetermined threshold value, transmitting terminal is classified as the value of this upset number of times the initial value setting in advance, so that the upset number of times that receiving terminal carries by the packet receiving is determined the Hyper Frame Number of this packet, and then to make the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal be consistent.
Preferably, when Unacknowledged Mode volume reconstruction, the upset number of times in the packet to be sent that transmitting terminal is determined is the initial value setting in advance.
Like this so that the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal is consistent.
Preferably, the method also comprises:
When Unacknowledged Mode volume reconstruction, transmitting terminal is classified as the Hyper Frame Number of packet to be sent the initial value setting in advance.
Like this so that the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal is consistent.
The embodiment of the present invention provides a kind of data transmission method, and the method comprises:
The packet that receiving terminal receiving end/sending end sends, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
The upset number of times that receiving terminal carries according to the packet receiving, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or receiving terminal is classified as the Hyper Frame Number of this packet the initial value setting in advance.
From said method, can find out, the sequence number that receiving terminal carries by the packet receiving and upset number of times are determined the Hyper Frame Number of the packet of same sequence number, and then make the consistency of Hyper Frame Number of the packet of the same sequence number that transmitting terminal and receiving terminal maintain, Hyper Frame Number is as encryption parameter, follow-up voice encryption, decrypting process are normally carried out, improved the quality of user speech.
Preferably, the upset number of times that receiving terminal carries according to the packet receiving, and the Hyper Frame Number initial value setting in advance, determine and comprise the Hyper Frame Number of this packet:
The upset number of times carrying in the packet that receiving terminal calculate to receive and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet.
Like this, the upset number of times that receiving terminal carries by the packet receiving is determined the Hyper Frame Number of the packet that receiving terminal receives, and then to make the Hyper Frame Number of the packet of the same sequence number that receiving terminal maintains with transmitting terminal be consistent.
Preferably, receiving terminal is classified as the Hyper Frame Number of this packet the initial value setting in advance, and comprising:
When Unacknowledged Mode volume reconstruction, receiving terminal is classified as the Hyper Frame Number of the packet of reception the initial value setting in advance.
Like this so that the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal is consistent.
The embodiment of the present invention provides a kind of data transmission device, and this device comprises:
The first determining unit, for determining packet to be sent, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and upset number of times is used for representing the access times of this sequence number;
Packet Generation unit, for sending described packet to receiving terminal.
Preferably, when the value of upset number of times corresponding to the sequence number of packet to be sent reaches predetermined threshold value, when this sequence number is used again, the first determining unit is classified as by the value of upset number of times corresponding to this sequence number the initial value setting in advance.
Like this, when the value of upset number of times reaches predetermined threshold value, the first determining unit is classified as the value of this upset number of times the initial value setting in advance, so that the upset number of times that receiving terminal carries by the packet receiving is determined the Hyper Frame Number of the packet of reception, and then to make the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal be consistent.
Preferably, when Unacknowledged Mode volume reconstruction, the first determining unit determines that the upset number of times in packet to be sent is the initial value setting in advance.
Like this so that the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal is consistent.
Preferably, the first determining unit also for:
When Unacknowledged Mode volume reconstruction, the first determining unit is classified as the Hyper Frame Number of packet to be sent the initial value setting in advance.
Like this so that the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal is consistent.
The embodiment of the present invention provides a kind of data transmission device, and this device comprises:
Packet receiving element, the packet sending for receiving end/sending end, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
The second determining unit, the upset number of times carrying for the packet receiving according to packet receiving element, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or, the Hyper Frame Number of this packet is classified as to the initial value setting in advance.
Preferably, the upset number of times that the second determining unit is carried at the packet receiving according to packet receiving element, and the Hyper Frame Number initial value setting in advance, while determining the Hyper Frame Number of this packet, specifically for:
The upset number of times carrying in the packet that the second determining unit calculated data bag receiving element receives and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet.
Like this so that the Hyper Frame Number of the packet of the same sequence number that receiving terminal maintains with transmitting terminal is consistent.
Preferably, the second determining unit when the Hyper Frame Number of this packet is classified as to the initial value setting in advance, specifically for:
When Unacknowledged Mode volume reconstruction, the second determining unit is classified as the Hyper Frame Number of packet the initial value setting in advance.
Like this so that the Hyper Frame Number of the packet of the same sequence number that transmitting terminal maintains with receiving terminal is consistent.
Accompanying drawing explanation
Fig. 1 is the data packet format structural representation of Unacknowledged Mode in prior art;
Fig. 2 is 3G data encryption framework schematic diagram in prior art;
Fig. 3 is the formation schematic diagram of ciphering sequence number COUNT-C in 3G data encryption framework in prior art;
Fig. 4 is for the embodiment of the present invention is at the distolateral a kind of data transmission method schematic flow sheet providing of transmission;
The radio link layer non-conformation mode protocol data packet format schematic diagram that Fig. 5 provides for the embodiment of the present invention;
Fig. 6 is for the embodiment of the present invention is at the distolateral a kind of data transmission method schematic flow sheet providing of reception;
A kind of data transmission method schematic flow sheet that Fig. 7 provides for the embodiment of the present invention;
Fig. 8 is sending distolateral a kind of data transmission device structural representation for what the embodiment of the present invention provided;
Fig. 9 is receiving distolateral a kind of data transmission device structural representation for what the embodiment of the present invention provided.
Embodiment
The invention provides a kind of data transmission method and device, be used for realizing wireless chain control layer (Radio Link Control, RLC) Unacknowledged Mode (Unacknowledged Mode, UM) in data transmission procedure in the situation that continuously losing a plurality of packet, transmitting terminal and receiving terminal still can maintain the consistency of Hyper Frame Number of the packet of same sequence number, and then solved in data transmission procedure and to have lost continuously the encryption that a plurality of packets cause, decipher abnormal problem, make follow-up voice encryption, decrypting process normally carries out, improved the quality of user speech.
As shown in Figure 4, distolateral in transmission, the embodiment of the present invention provides a kind of data transmission method, and the method comprises:
S41, transmitting terminal are determined packet to be sent, and wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times represents the access times of this sequence number;
S42, transmitting terminal send described packet to receiving terminal.
Wherein, as shown in Figure 5, in step S41, the present invention has revised existing RLC UM protocol format, in the data packet format of existing RLC UM agreement, added upset number of times, this upset number of times is used for representing the access times of the sequence number of the packet that transmitting terminal sends, when the access times of the sequence number of the packet sending when transmitting terminal increase by one time, the value of the upset number of times that this sequence number is corresponding just increases by 1; Preferably, upset number of times takies a byte of this packet in data packet format, therefore, the predetermined threshold value of upset number of times is 256, when the value of upset number of times corresponding to the sequence number of transmitting terminal packet to be sent reaches predetermined threshold value, when this sequence number is used again, the value of corresponding upset number of times is classified as the initial value setting in advance; The upset number of times that sequence number is corresponding set in advance initial value can be 0, the span of the upset number of times that sequence number is corresponding is 0~255;
It should be noted that, the byte number that upset number of times takies in data packet format can be also other value, and the upset number of times that being not limited to the embodiment of the present invention provides takies a byte of this packet in data packet format; The initial value that upset number of times sets in advance also can be for other is worth, and the initial value by upset number of times that being not limited to the embodiment of the present invention provides is made as 0.
Preferably, when Unacknowledged Mode volume reconstruction, the upset number of times in the packet to be sent that transmitting terminal is determined is the initial value setting in advance.
Preferably, the method also comprises:
When Unacknowledged Mode volume reconstruction, transmitting terminal is classified as the Hyper Frame Number of packet to be sent the initial value setting in advance; Wherein, can configure to set in advance by service surface the initial value of Hyper Frame Number, concrete grammar is: transmitting terminal sends to receiving terminal by parameter S TART, transmitting terminal and receiving terminal both sides are carried out initialization by parameter S TART to the Hyper Frame Number HFN of the packet of same sequence number, and the Hyper Frame Number that is about to the packet of same sequence number is classified as the initial value of service surface configuration; Like this, transmitting terminal is identical with the initial value of the Hyper Frame Number of the packet of the same sequence number in receiving terminal both sides; Concrete, by parameter S TART, the Hyper Frame Number HFN of packet is carried out to initialized process same as the prior art, repeat no more herein.Wherein, the initial value of service surface configuration is that Radio Resource is controlled (Radio Resource Control, RRC) complete circuit switching (the Circuit Switched carrying in message, CS) packet switching (Packet Switched, PS) the initial value start-Value in territory, it is as follows that RRC completes messaging program:
It should be noted that, the packet in the present invention also can refer to PDU, and now, the packet that transmitting terminal sends can be divided into a plurality of continuous PDU, the sequence number that each PDU is corresponding different.
For example: packet 1, be divided into 3 PDU, the sequence number SN that each PDU is corresponding is respectively 0,1,2, and at this moment sequence number SN is that 0,1,2 upset number of times corresponding to PDU is 0;
Packet 2, is divided into 2 PDU, and the sequence number SN that each PDU is corresponding is respectively 3,4, and at this moment sequence number SN is that 3,4 upset number of times corresponding to PDU is 0;
Packet N, be divided into 3 PDU, the sequence number SN that each PDU is corresponding is respectively 127,0,1, at this moment sequence number SN is that 127,0,1 upset number of times corresponding to PDU is respectively 0,1,1, the sequence number SN that receiving terminal determine to receive is the initial value upset number of times sum corresponding with this PDU of the Hyper Frame Number of the PDU that is same sequence number of the Hyper Frame Number HFN in the encryption parameter Count-C that 127,0,1 PDU is corresponding, on the basis of the initial value of the Hyper Frame Number of the PDU of same sequence number, will add 1.Now, transmitting terminal is consistent with the Hyper Frame Number of the PDU of the same sequence number in receiving terminal both sides, so follow-uply can encrypt normally, decrypting process.
As shown in Figure 6, distolateral in reception, the embodiment of the present invention provides a kind of data transmission method, and the method comprises:
The packet that S61, receiving terminal receiving end/sending end send, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
The upset number of times that S62, receiving terminal carry according to the packet receiving, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or receiving terminal is classified as the Hyper Frame Number of this packet the initial value setting in advance.
Wherein, the upset number of times that receiving terminal carries according to the packet receiving in step S62, and the Hyper Frame Number initial value setting in advance, determine and comprise the Hyper Frame Number of this packet:
The upset number of times carrying in the packet that receiving terminal calculate to receive and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet.
Preferably, the method that receiving terminal is classified as by the Hyper Frame Number of this packet the initial value setting in advance in step S62 comprises:
When Unacknowledged Mode volume reconstruction, receiving terminal is classified as the Hyper Frame Number of the packet of reception the initial value setting in advance.Wherein, can configure to set in advance by service surface the initial value of Hyper Frame Number, concrete grammar is: transmitting terminal sends to receiving terminal by parameter S TART, transmitting terminal and receiving terminal both sides are carried out initialization by parameter S TART to the Hyper Frame Number HFN of packet, and the Hyper Frame Number that is about to packet is classified as the initial value of service surface configuration; Like this, transmitting terminal is identical with the initial value of the Hyper Frame Number of the packet of the same sequence number in receiving terminal both sides; Concrete, by parameter S TART, the Hyper Frame Number HFN of packet is carried out to initialized process same as the prior art, repeat no more herein.
It is the data transmission procedure of 7 bits and two kinds of forms of 15 bits that a kind of data transmission method that the embodiment of the present invention provides goes for Length Indication LI in RLC UM data packet format, but the present invention is not limited to the data transmission procedure that is only applicable to these two kinds of forms.
A kind of data transmission method providing below in conjunction with the instantiation explanation embodiment of the present invention:
In carrying out RLC UM data transmission procedure, a kind of data transmission method that the embodiment of the present invention provides can be realized in the situation that losing a plurality of packet continuously, transmitting terminal and receiving terminal still can maintain the consistency of Hyper Frame Number of the packet of same sequence number, Hyper Frame Number is as encryption parameter, follow-up voice encryption, decrypting process are normally carried out, concrete steps as shown in Figure 7:
S71, transmitting terminal are determined packet to be sent, and wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times represents the access times of this sequence number;
S72, transmitting terminal send described packet to receiving terminal;
The described packet that S73, receiving terminal receiving end/sending end send;
The upset number of times that S74, receiving terminal carry according to the packet receiving, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or receiving terminal is classified as the Hyper Frame Number of this packet the initial value setting in advance.
Preferably, when the access times of the sequence number of the packet sending when transmitting terminal in step S71 increase by one time, the value of the upset number of times that the sequence number of this packet is corresponding just increases by 1; Upset number of times takies a byte of its corresponding packet, therefore, the predetermined threshold value of upset number of times is 256, when the value of upset number of times corresponding to the sequence number of transmitting terminal packet to be sent reaches predetermined threshold value, when this sequence number is used again, the value of corresponding upset number of times is classified as the initial value setting in advance; The upset number of times that sequence number is corresponding set in advance initial value can be 0, the span of the upset number of times that sequence number is corresponding is 0~255.
Preferably, the upset number of times that receiving terminal carries according to the packet receiving in step S74, and the Hyper Frame Number initial value setting in advance, determine and comprise the Hyper Frame Number of this packet:
The upset number of times carrying in the packet that receiving terminal calculate to receive and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet;
Preferably, the method that receiving terminal is classified as by the Hyper Frame Number of this packet the initial value setting in advance in step S74 comprises:
When Unacknowledged Mode volume reconstruction, receiving terminal is classified as the Hyper Frame Number of the packet of reception the initial value setting in advance, and wherein, can configure to set in advance by service surface the initial value of Hyper Frame Number.
Concrete, when carrying out RLC UM data transmission procedure, if up UM data transmission procedure, transmitting terminal is UE, receiving terminal is RNC; If descending UM data transmission procedure, transmitting terminal is RNC, and receiving terminal is UE; The up UM data transmission procedure of take is below example, illustrates a kind of data transmission method that the embodiment of the present invention provides:
UE sends packet to RNC, wherein the sequence number SN of packet is from 0~20, this packet also carries the upset number of times corresponding to sequence number of this packet, and now sequence number SN is 0, RNC from upset number of times corresponding to 0~20 packet and normally receives packet; UE continues to send packet to RNC, wherein the sequence number SN of packet is from 21~127, this packet also carries the upset number of times corresponding to sequence number of this packet, now sequence number SN is 0, RNC from the value of upset number of times corresponding to 21~127 packet does not have normally to receive the packet of SN from 21~127;
UE continues to send the packet of SN since 0 to RNC, wherein the sequence number SN of packet is from 0~30, this packet also carries the upset number of times corresponding to sequence number of this packet, because the access times of the sequence number SN of packet have increased once, the value of the upset number of times that this sequence number is corresponding should increase by 1, therefore sequence number SN is 1 from the value of upset number of times corresponding to 0~30 packet, RNC does not have normally to receive the packet of SN from 0~30, now at UE side sequence number SN from Hyper Frame Number corresponding to 0~30 packet for to increase by 1 on the basis of this Hyper Frame Number initial value, UE continues to send packet to RNC, the sequence number SN of the packet that this time UE sends is since 31, RNC normally receives these packets, at Hyper Frame Number corresponding to the packet of UE side SN=31 for to increase by 1 on the basis of this Hyper Frame Number initial value, when RNC receives the packet of SN=31, the packet of SN=31 also carries the upset number of times 1 that this sequence number is corresponding, the upset number of times that RNC carries according to the packet of SN=31 is determined the Hyper Frame Number of this packet, the value sum that the Hyper Frame Number that is the packet of SN=31 is the initial value of this Hyper Frame Number and the upset number of times of this sequence number, the value of the upset number of times of this sequence number is 1, now identical with the Hyper Frame Number of the packet of RNC both sides SN=31 at UE, hence one can see that for RNC: in RNC side, have sequence number SN from 21~127,0~30 totally 138 abnormal receptions of packet, follow-up UE and RNC both sides are not again to having the normal packet receiving to carry out respective handling, and then follow-up voice decrypting process is normally carried out, improved the quality of user speech.
Wherein, UE and RNC both sides can configure to set in advance by service surface the initial value of Hyper Frame Number, concrete grammar is: transmitting terminal sends to receiving terminal by parameter S TART, transmitting terminal and receiving terminal both sides are carried out initialization by parameter S TART to the Hyper Frame Number HFN of packet, and the Hyper Frame Number that is about to packet is classified as the initial value of service surface configuration.
While having continuously 256*128 or more data-bag lost in the packet that UE sends, the Hyper Frame Number of the packet of the same sequence number of UE and RNC both sides may be inconsistent, but this kind of situation is a kind of limiting case, now need the at present typical VoIP of continuous lost data packets 256*1.92s=491.52s(to be configured in 60ms and can transmit 4 UM protocol Data Units, transmit 128 packets need 60*128/4=1.92s), be greater than 8 minutes, user has been hung up business already.
When RNC sends descending UM packet to UE, to RNC, to send up UM process data packet similar for detailed process and above-mentioned UE, repeats no more herein.
As shown in Figure 8, in the distolateral embodiment of the present invention of transmission, provide a kind of data transmission device, this device comprises:
The first determining unit 81, for determining packet to be sent, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
Packet Generation unit 82, for sending described packet to receiving terminal.
Preferably, when the value of upset number of times corresponding to the sequence number of packet to be sent reaches predetermined threshold value, when this sequence number is used again, the first determining unit 81 is classified as by the value of upset number of times corresponding to this sequence number the initial value setting in advance.The initial value that the upset number of times of packet sets in advance can be 0, and the span of the upset number of times of packet is 0~255;
It should be noted that, the byte number that upset number of times takies in data packet format can be also other value, and the upset number of times that being not limited to the embodiment of the present invention provides takies a byte of this packet in data packet format; The initial value that upset number of times sets in advance also can be for other is worth, and the initial value by upset number of times that being not limited to the embodiment of the present invention provides is made as 0.
Preferably, when Unacknowledged Mode volume reconstruction, the first determining unit 81 determines that the upset number of times in packet to be sent is the initial value setting in advance.
Preferably, the first determining unit 81 also for:
When Unacknowledged Mode volume reconstruction, the first determining unit 81 is classified as the Hyper Frame Number of packet to be sent the initial value setting in advance.
As shown in Figure 9, in the distolateral embodiment of the present invention of reception, provide a kind of data transmission device, this device comprises:
Packet receiving element 91, the packet sending for receiving end/sending end, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
The second determining unit 92, the upset number of times carrying for the packet receiving according to packet receiving element 91, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or, the Hyper Frame Number of this packet is classified as to the initial value setting in advance.
Preferably, the upset number of times that the second determining unit 92 is carried at the packet receiving according to packet receiving element, and the Hyper Frame Number initial value setting in advance, while determining the Hyper Frame Number of this packet, specifically for:
In the packet that the second determining unit 92 calculated data bag receiving elements 91 receive the upset number of times carrying and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet.
Preferably, the second determining unit 92 when the Hyper Frame Number of this packet is classified as to the initial value setting in advance, specifically for:
When Unacknowledged Mode volume reconstruction, the second determining unit 92 is classified as the Hyper Frame Number of packet the initial value setting in advance.
Concrete, the first determining unit 81 and the second determining unit 92 can be the entities such as processor, Packet Generation unit 82 and packet receiving element 91 can be realized by the transport module with transmission-receiving function, such as this transport module, can be the equipment such as special chip and antenna, the present invention be not limited to the entity of realizing these modules.
Those skilled in the art should understand, embodiments of the invention can be provided as method, device or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (device) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (14)

1. a data transmission method, is characterized in that, the method comprises:
Transmitting terminal is determined packet to be sent, and wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times represents the access times of this sequence number;
Transmitting terminal sends described packet to receiving terminal.
2. the method for claim 1, it is characterized in that, when the value of upset number of times corresponding to the sequence number of transmitting terminal packet to be sent reaches predetermined threshold value, when this sequence number is used again, the value of corresponding upset number of times is classified as the initial value setting in advance.
3. the method for claim 1, is characterized in that, when Unacknowledged Mode volume reconstruction, the upset number of times in the packet to be sent that described transmitting terminal is determined is the initial value setting in advance.
4. the method for claim 1, is characterized in that, the method also comprises:
When Unacknowledged Mode volume reconstruction, described transmitting terminal is classified as the Hyper Frame Number of packet to be sent the initial value setting in advance.
5. a data transmission method, is characterized in that, the method comprises:
The packet that receiving terminal receiving end/sending end sends, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
The upset number of times that receiving terminal carries according to the packet receiving, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or receiving terminal is classified as the Hyper Frame Number of this packet the initial value setting in advance.
6. method as claimed in claim 5, is characterized in that, the upset number of times that receiving terminal carries according to the packet receiving, and the Hyper Frame Number initial value setting in advance are determined and comprised the Hyper Frame Number of this packet:
The upset number of times carrying in the packet that receiving terminal calculate to receive and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet.
7. method as claimed in claim 6, is characterized in that, receiving terminal is classified as the Hyper Frame Number of this packet the initial value setting in advance, and comprising:
When Unacknowledged Mode volume reconstruction, described receiving terminal is classified as the Hyper Frame Number of the packet of reception the initial value setting in advance.
8. a data transmission device, is characterized in that, this device comprises:
The first determining unit, for determining packet to be sent, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
Packet Generation unit, for sending described packet to receiving terminal.
9. device as claimed in claim 8, it is characterized in that, when the value of upset number of times corresponding to the sequence number of packet to be sent reaches predetermined threshold value, when this sequence number is used again described in the first determining unit the value of upset number of times corresponding to this sequence number is classified as to the initial value setting in advance.
10. device as claimed in claim 8, is characterized in that, when Unacknowledged Mode volume reconstruction, described the first determining unit determines that the upset number of times in packet to be sent is the initial value setting in advance.
11. devices as claimed in claim 8, is characterized in that, described the first determining unit also for:
When Unacknowledged Mode volume reconstruction, described the first determining unit is classified as the Hyper Frame Number of packet to be sent the initial value setting in advance.
12. 1 kinds of data transmission devices, is characterized in that, this device comprises:
Packet receiving element, the packet sending for receiving end/sending end, wherein, this packet carries the sequence number of this packet, and upset number of times corresponding to the sequence number of this packet, and described upset number of times is used for representing the access times of this sequence number;
The second determining unit, the upset number of times carrying for the packet receiving according to packet receiving element, and the Hyper Frame Number initial value setting in advance, determine the Hyper Frame Number of this packet; Or, the Hyper Frame Number of this packet is classified as to the initial value setting in advance.
13. devices as claimed in claim 12, it is characterized in that the upset number of times that described the second determining unit is carried at the packet receiving according to packet receiving element, and the Hyper Frame Number initial value setting in advance, while determining the Hyper Frame Number of this packet, specifically for:
The upset number of times carrying in the packet that the second determining unit calculated data bag receiving element receives and the Hyper Frame Number initial value setting in advance and, using obtain with the Hyper Frame Number of value as this packet.
14. devices as claimed in claim 13, is characterized in that, described the second determining unit when the Hyper Frame Number of this packet is classified as to the initial value setting in advance, specifically for:
When Unacknowledged Mode volume reconstruction, described the second determining unit is classified as the Hyper Frame Number of packet the initial value setting in advance.
CN201310598328.3A 2013-11-22 2013-11-22 A kind of data transmission method and device Active CN103607261B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310598328.3A CN103607261B (en) 2013-11-22 2013-11-22 A kind of data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310598328.3A CN103607261B (en) 2013-11-22 2013-11-22 A kind of data transmission method and device

Publications (2)

Publication Number Publication Date
CN103607261A true CN103607261A (en) 2014-02-26
CN103607261B CN103607261B (en) 2017-06-23

Family

ID=50125463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310598328.3A Active CN103607261B (en) 2013-11-22 2013-11-22 A kind of data transmission method and device

Country Status (1)

Country Link
CN (1) CN103607261B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016000523A1 (en) * 2014-07-02 2016-01-07 电信科学技术研究院 Data transmission method, system and device
CN107370692A (en) * 2016-05-11 2017-11-21 中国移动通信有限公司研究院 Data transmission method, radio link control entity and system
CN111818630A (en) * 2019-07-12 2020-10-23 维沃移动通信有限公司 State variable maintenance method and device and user equipment
CN112822048A (en) * 2021-01-04 2021-05-18 烽火通信科技股份有限公司 Method and system for realizing nondestructive protection switching
CN112996053A (en) * 2019-12-16 2021-06-18 成都鼎桥通信技术有限公司 Method, device and equipment for reordering voice data packets
CN114499749A (en) * 2020-11-13 2022-05-13 上海华为技术有限公司 Data sending method and related equipment thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047500A (en) * 2006-03-28 2007-10-03 华为技术有限公司 Method for transmitting ciphered data pack in gradual network
US9554417B2 (en) * 2008-12-24 2017-01-24 Qualcomm Incorporated Optimized header for efficient processing of data packets
CN102137435B (en) * 2010-10-21 2014-01-22 上海华为技术有限公司 Method, device and system for processing data

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016000523A1 (en) * 2014-07-02 2016-01-07 电信科学技术研究院 Data transmission method, system and device
US10454636B2 (en) 2014-07-02 2019-10-22 China Academy Of Telecommunications Technology Method, system and device for data transmission
CN107370692A (en) * 2016-05-11 2017-11-21 中国移动通信有限公司研究院 Data transmission method, radio link control entity and system
CN107370692B (en) * 2016-05-11 2020-03-17 中国移动通信有限公司研究院 Data transmission method, radio link control entity and system
CN111818630A (en) * 2019-07-12 2020-10-23 维沃移动通信有限公司 State variable maintenance method and device and user equipment
CN112996053A (en) * 2019-12-16 2021-06-18 成都鼎桥通信技术有限公司 Method, device and equipment for reordering voice data packets
CN114499749A (en) * 2020-11-13 2022-05-13 上海华为技术有限公司 Data sending method and related equipment thereof
CN112822048A (en) * 2021-01-04 2021-05-18 烽火通信科技股份有限公司 Method and system for realizing nondestructive protection switching

Also Published As

Publication number Publication date
CN103607261B (en) 2017-06-23

Similar Documents

Publication Publication Date Title
KR102588139B1 (en) Method and apparatus for implementing bearer specific changes as part of a connection reconfiguration that impacts the security keys being used
CN103607261A (en) Data transmission method and device
US11297493B2 (en) Data transmission method, related device, and communications system
KR20070109890A (en) Method and apparatus for setting ciphering activation time in wireless communications system
EP2218272A2 (en) Methods and apparatuses for enabling non-access stratum (nas) security in lte mobile units
US11917073B2 (en) Integrity protection
CN106797376A (en) The method and apparatus that packet loss is processed in mobile communications network
US20080120728A1 (en) Method and apparatus for performing integrity protection in a wireless communications system
CN105307159A (en) Air interface encryption method for cluster communication group calling service
US10880737B2 (en) Method and apparatus for refreshing the security keys of a subset of configured radio bearers
US20120170744A1 (en) Mobile Communication Devices and Deciphering Methods
KR100968472B1 (en) Method and apparatus for configuring signaling radio bearer in a wireless communications system
JP4843660B2 (en) Method and apparatus for encrypting data in the PDCP layer of a wireless communication system
CN107529202A (en) The method, apparatus and the network architecture of a kind of downlink data transmission
WO2020077502A1 (en) Wireless communication method and device
CN108243082B (en) Data transmission method and equipment
US20080118066A1 (en) Method and apparatus for configuring signaling radio bearer in a wireless communications system
US20080118067A1 (en) Method and apparatus for performing ciphering in a wireless communications system
JP2008005505A (en) Method and apparatus for data framing in wireless communication system
JP2007267017A (en) Method of controlling packet discard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant