CN102404098A - D channel uplink access procedure transmission method and device - Google Patents
D channel uplink access procedure transmission method and device Download PDFInfo
- Publication number
- CN102404098A CN102404098A CN2010102890777A CN201010289077A CN102404098A CN 102404098 A CN102404098 A CN 102404098A CN 2010102890777 A CN2010102890777 A CN 2010102890777A CN 201010289077 A CN201010289077 A CN 201010289077A CN 102404098 A CN102404098 A CN 102404098A
- Authority
- CN
- China
- Prior art keywords
- frame
- variable
- transmitting device
- information frame
- opposite end
- 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
Links
Images
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域 technical field
本发明涉及移动通信领域,特别是指一种D通道上链路接入规程传输方法及装置。The invention relates to the field of mobile communication, in particular to a method and device for transmitting a D channel uplink access procedure.
背景技术 Background technique
LAPD(Link Access Procedure of D-Channel,D通道上链路接入规程)协议中,接收端是通过向对端发送I帧(信息帧)的随帧确认、RR帧、REJ帧或者RNR帧来确认本端已经收到的正确的I帧,其中发送的I帧、RR帧、REJ帧中的N(R)字段表示对端发送的发送序列号为N(R)-1以及N(R)-1之前的的I帧都已经正确接收;在发送数据没有丢失或者只丢一帧数据的情况下,这样的算法不会有什么问题,但是如果,丢失的发送数据超过2帧以上,特别是丢失的帧的发送序列号不连续,那这样的算法重传效率就比较低。In the LAPD (Link Access Procedure of D-Channel, D-channel link access procedure) protocol, the receiving end sends an I frame (information frame) with the frame confirmation, RR frame, REJ frame or RNR frame to the opposite end. Confirm that the correct I frame has been received by the local end. The N(R) field in the sent I frame, RR frame, and REJ frame indicates that the sending sequence number sent by the peer end is N(R)-1 and N(R) The I frames before -1 have been received correctly; in the case that the sent data is not lost or only one frame of data is lost, such an algorithm will not have any problems, but if the lost sent data exceeds 2 frames, especially The sending sequence numbers of the lost frames are discontinuous, so the retransmission efficiency of such an algorithm is relatively low.
比如A向B发送了连续的5个I帧报文,它们的发送序列号是n、n+1、n+2、n+3、n+4,由于某种原因其中的n+1和n+3丢失,当B收到n、n+2和n+4后,假设B首先通过REJ帧给A端确认并要求重传,那B会给A发N(R)=n+1的REJ帧,表示包括n和n之前的所有I帧都已经收到,期望A重传发送序列号为n+1的I帧,此时A知道发送序列号为n+1的I帧丢失,需要向B重传发送序列号为n+1的I帧,但是A并不知道n+3也丢失,因此A只会重传n+1的I帧;n+1重传成功后,B接收到的n至n+2的数据已经连续了,此时还缺序号为n+3的I帧,如果此时B端用RR帧做确认的话,B会向A发送N(R)=n+3的RR帧,表示包括n+2和n+2之前的I帧都已经收到,期望获得n+3号帧,则A在重传定时超时后会重传发送序列号为n+3的I帧。因此,如果丢失的发送数据超过2帧以上,特别是丢失的帧的发送序列号不连续,需要通过多次确认重传才能完成所有丢失信息帧的重传,导致LAPD协议中的重传效率会比较低。For example, A sends five consecutive I-frame messages to B, and their sending sequence numbers are n, n+1, n+2, n+3, n+4. For some reason, n+1 and n +3 is lost, when B receives n, n+2 and n+4, assuming that B first confirms to A through the REJ frame and requests retransmission, then B will send a REJ of N(R)=n+1 to A frame, indicating that all I frames including n and before n have been received, and it is expected that A retransmits the I frame with the sequence number n+1. At this time, A knows that the I frame with the sequence number n+1 is lost, and needs to report to B retransmits the I frame with the sequence number of n+1, but A does not know that n+3 is also lost, so A will only retransmit the I frame of n+1; after n+1 retransmission is successful, B receives The data from n to n+2 has been continuous, and the I frame with the sequence number n+3 is still missing at this time. If the B side uses the RR frame for confirmation at this time, B will send N(R)=n+3 to A. The RR frame means that all I frames including n+2 and n+2 have been received, and it is expected to obtain frame n+3, then A will retransmit the I frame with the sequence number n+3 after the retransmission timing expires . Therefore, if the lost transmission data exceeds 2 frames or more, especially if the transmission sequence numbers of the lost frames are discontinuous, multiple confirmation retransmissions are required to complete the retransmission of all lost information frames, resulting in a loss of retransmission efficiency in the LAPD protocol. relatively low.
发明内容 Contents of the invention
本发明要解决的技术问题是提供一种D通道上链路接入规程传输方法及装置,能够提高D通道上链路接入规程中信息帧的重传效率。The technical problem to be solved by the present invention is to provide a D channel uplink access procedure transmission method and device, which can improve the retransmission efficiency of information frames in the D channel uplink access procedure.
为解决上述技术问题,本发明的实施例提供技术方案如下:In order to solve the above technical problems, embodiments of the present invention provide technical solutions as follows:
一方面,提供一种D通道上链路接入规程传输方法,包括:On the one hand, a D channel uplink access procedure transmission method is provided, including:
传输装置接收对端发送的信息帧;The transmission device receives the information frame sent by the opposite end;
所述传输装置根据接收到的信息帧更新自身存储的第一变量,所述第一变量指示所述传输装置对所述信息帧的接收情况;The transmission device updates a first variable stored by itself according to the received information frame, and the first variable indicates the reception status of the information frame by the transmission device;
所述传输装置将更新后的第一变量添加到确认帧或否决帧中,并将所述确认帧或否决帧发送至对端,以使对端能够重新发送所述传输装置未接收到的信息帧。The transmission device adds the updated first variable to the confirmation frame or the veto frame, and sends the confirmation frame or the veto frame to the peer end, so that the peer end can resend the information not received by the transmission device frame.
其中,所述第一变量为第一位图变量,所述传输装置根据接收到的信息帧更新自身存储的第一变量包括:Wherein, the first variable is a first bitmap variable, and updating the first variable stored by the transmission device according to the received information frame includes:
所述传输装置将接收到的失序的信息帧暂存在自身的接收滑窗中,所述第一位图变量中的第n个比特对应所述接收滑窗中的第n个位置;The transmission device temporarily stores the received out-of-sequence information frame in its own receiving sliding window, and the nth bit in the first bitmap variable corresponds to the nth position in the receiving sliding window;
若所述接收滑窗中的第n个位置内有信息帧,则所述传输装置将第一位图变量中的第n个比特设为1,若所述接收滑窗中的第n个位置内没有信息帧,则所述传输装置将第一位图变量中的第n个比特设为0。If there is an information frame in the nth position in the receiving sliding window, the transmission device will set the nth bit in the first bitmap variable to 1, if the nth position in the receiving sliding window If there is no information frame, the transmission device sets the nth bit in the first bitmap variable to 0.
本发明实施例还提供了一种D通道上链路接入规程传输方法,包括:The embodiment of the present invention also provides a D channel uplink access protocol transmission method, including:
传输装置接收对端发送的确认帧或否决帧,所述确认帧或否决帧指示对端对信息帧的接收情况;The transmission device receives an acknowledgment frame or a veto frame sent by the opposite end, and the acknowledgment frame or veto frame indicates the reception of the information frame by the opposite end;
如果所述确认帧或者否决帧中的N(R)字段不小于所述传输装置本端的确认变量V(A)且不大于所述传输装置本端的发送状态变量V(S),则所述传输装置将本端的确认变量V(A)更新为N(R),并根据接收到的所述确认帧或者否决帧中的比特位图字段更新自身存储的第二变量;The transmission The device updates the acknowledgment variable V(A) at the local end to N(R), and updates the second variable stored by itself according to the bitmap field in the received acknowledgment frame or veto frame;
所述传输装置根据更新后的本端确认变量V(A)和第二变量重新发送对端未接收到的信息帧。The transmission device resends the information frame not received by the opposite end according to the updated local-end acknowledgment variable V(A) and the second variable.
其中,所述方法还包括:Wherein, the method also includes:
所述传输装置接收对端发送的信息帧或RNR帧;The transmission device receives an information frame or an RNR frame sent by the opposite end;
如果所述信息帧或者RNR帧中的N(R)值大于本端的确认变量V(A),将所述本端确认变量V(A)更新为N(R),并将所述第二变量所有的有效比特位设置为1。If the N(R) value in the information frame or RNR frame is greater than the confirmation variable V(A) of the local end, update the confirmation variable V(A) of the local end to N(R), and the second variable All valid bits are set to 1.
其中,所述传输装置根据更新后的本端确认变量V(A)和第二变量重新发送对端未接收到的信息帧包括:Wherein, the transmission device resending the information frame not received by the opposite end according to the updated local confirmation variable V(A) and the second variable includes:
所述传输装置根据所述本端确认变量V(A)和第二变量确定对端未接收到的信息帧;The transmission device determines information frames not received by the opposite end according to the local confirmation variable V(A) and the second variable;
所述传输装置在预设条件满足之后,重新发送对端未接收到的信息帧。After the preset condition is met, the transmission device resends the information frame not received by the opposite end.
其中,所述第二变量为第二位图变量,所述传输装置根据所述本端确认变量V(A)和第二变量确定对端未接收到的信息帧包括:Wherein, the second variable is a second bitmap variable, and the transmission device determines that the information frame not received by the opposite end according to the local confirmation variable V(A) and the second variable includes:
所述传输装置判断所述第二位图变量中的比特是否为0,其中,所述第二位图变量中的第n个比特对应所述传输装置上一次发送到对端的发送序列号为N(S)=V(A)+n的信息帧;The transmission device judges whether the bit in the second bitmap variable is 0, wherein the nth bit in the second bitmap variable corresponds to the transmission sequence number sent by the transmission device to the peer end last time, which is N (S)=V(A)+n information frame;
若所述第二位图变量中的第n个比特为0,则所述传输装置判断对端未接收到所述传输装置上一次发送到对端的发送序列号为N(S)=V(A)+n的信息帧。If the nth bit in the second bitmap variable is 0, then the transmission device judges that the opposite end has not received the transmission sequence number sent by the transmission device to the opposite end last time as N(S)=V(A )+n information frame.
其中,所述确认帧为RR帧,所述否决帧为REJ帧,所述传输装置在预设条件满足之后,重新发送对端未接收到的信息帧包括:Wherein, the acknowledgment frame is an RR frame, the veto frame is a REJ frame, and after the preset condition is satisfied, the transmission device resends the information frame not received by the opposite end including:
若所述传输装置接收到REJ帧,则所述传输装置在发送所述发送序列号为N(S)=V(A)+n的信息帧的时间与当前时间的时间差超过预设时间后,重新发送所述发送序列号为N(S)=V(A)+n的信息帧至对端;If the transmission device receives the REJ frame, after the time difference between the time when the transmission device sends the information frame with the transmission sequence number N(S)=V(A)+n and the current time exceeds the preset time, Resending the information frame with the transmission sequence number N(S)=V(A)+n to the opposite end;
若所述传输装置接收到RR帧,所述传输装置在自身的重传定时器超时后,若发送所述发送序列号为N(S)=V(A)+n的信息帧的时间与当前时间的时间差超过预设时间,则所述传输装置重新发送所述发送序列号为N(S)=V(A)+n的信息帧至对端。If the transmission device receives the RR frame, after the retransmission timer of the transmission device expires, if the time of sending the information frame with the transmission sequence number N(S)=V(A)+n is different from the current When the time difference exceeds the preset time, the transmission device resends the information frame with the transmission sequence number N(S)=V(A)+n to the opposite end.
本发明实施例还提供了一种传输装置,包括:The embodiment of the present invention also provides a transmission device, including:
接收模块,用于接收对端发送的信息帧;The receiving module is used to receive the information frame sent by the opposite end;
更新模块,用于根据接收到的信息帧更新自身存储的第一变量,所述第一变量指示所述传输装置对所述信息帧的接收情况;An update module, configured to update a first variable stored by itself according to the received information frame, the first variable indicating the reception of the information frame by the transmission device;
发送模块,用于将更新后的第一变量添加到确认帧或否决帧中,并将所述确认帧或否决帧发送至对端,以使对端能够重新发送所述传输装置未接收到的信息帧。A sending module, configured to add the updated first variable to the confirmation frame or the veto frame, and send the confirmation frame or the veto frame to the peer end, so that the peer end can resend the information not received by the transmission device information frame.
其中,所述第一变量为第一位图变量,所述更新模块包括:Wherein, the first variable is a first bitmap variable, and the update module includes:
存储子模块,用于将所述接收模块接收到的失序的信息帧暂存在接收滑窗中,所述第一位图变量中的第n个比特对应所述接收滑窗中的第n个位置;a storage submodule, configured to temporarily store the out-of-sequence information frames received by the receiving module in the receiving sliding window, and the nth bit in the first bitmap variable corresponds to the nth position in the receiving sliding window ;
设置子模块,用于若所述接收滑窗中的第n个位置内有信息帧,则将第一位图变量中的第n个比特设为1,若所述接收滑窗中的第n个位置内没有信息帧,则将第一位图变量中的第n个比特设为0。A submodule is set, which is used to set the nth bit in the first bitmap variable to 1 if there is an information frame in the nth position in the receiving sliding window, and if the nth bit in the receiving sliding window If there is no information frame in position, the nth bit in the first bitmap variable is set to 0.
本发明实施例还提供了一种传输装置,包括:The embodiment of the present invention also provides a transmission device, including:
接收模块,用于接收对端发送的确认帧或否决帧,所述确认帧或否决帧指示对端对信息帧的接收情况;A receiving module, configured to receive an acknowledgment frame or a veto frame sent by the peer, where the acknowledgment frame or the veto frame indicates the reception of the information frame by the peer;
更新模块,用于如果所述确认帧或者否决帧中的N(R)字段不小于所述传输装置本端的确认变量V(A)且不大于所述传输装置本端的发送状态变量V(S),则将所述传输装置本端的确认变量V(A)更新为N(R),并根据接收到的所述确认帧或者否决帧中的比特位图字段更新所述传输装置存储的第二变量;An updating module, configured to if the N(R) field in the acknowledgment frame or the veto frame is not less than the confirmation variable V(A) of the transmission device itself and not greater than the transmission state variable V(S) of the transmission device itself , then update the confirmation variable V(A) of the transmission device itself to N(R), and update the second variable stored in the transmission device according to the bitmap field in the received confirmation frame or veto frame ;
发送模块,用于根据更新后的本端确认变量V(A)和第二变量重新发送对端未接收到的信息帧。A sending module, configured to resend information frames not received by the opposite end according to the updated local-end acknowledgment variable V(A) and the second variable.
其中,所述接收模块还用于接收对端发送的信息帧或RNR帧;Wherein, the receiving module is also used to receive an information frame or an RNR frame sent by the opposite end;
所述更新模块还用于如果所述信息帧或者RNR帧中的N(R)值大于所述传输装置本端的确认变量V(A),将所述本端确认变量V(A)更新为N(R),并将所述第二变量所有的有效比特位设置为1。The update module is also used to update the local confirmation variable V(A) to N if the N(R) value in the information frame or the RNR frame is greater than the local confirmation variable V(A) of the transmission device. (R), and set all valid bits of the second variable to 1.
其中,所述发送模块包括:Wherein, the sending module includes:
确定子模块,用于根据所述本端确认变量V(A)和第二变量确定对端未接收到的信息帧;A determination submodule, configured to determine an information frame not received by the opposite end according to the local confirmation variable V(A) and the second variable;
发送子模块,用于在预设条件满足之后,重新发送对端未接收到的信息帧。The sending sub-module is used to resend the information frame not received by the opposite end after the preset condition is met.
其中,所述第二变量为第二位图变量,Wherein, the second variable is a second bitmap variable,
所述确定子模块具体用于判断所述第二位图变量中的比特是否为0,其中,所述第二位图变量中的第n个比特对应所述传输装置上一次发送到对端的发送序列号为N(S)=V(A)+n的信息帧,若所述第二位图变量中的第n个比特为0,则判断对端未接收到所述传输装置上一次发送到对端的发送序列号为N(S)=V(A)+n的信息帧。The determination submodule is specifically used to determine whether the bit in the second bitmap variable is 0, wherein the nth bit in the second bitmap variable corresponds to the last transmission sent by the transmission device to the opposite end For an information frame whose sequence number is N(S)=V(A)+n, if the nth bit in the second bitmap variable is 0, it is judged that the opposite end has not received the information frame sent by the transmission device last time. The opposite end sends an information frame whose sequence number is N(S)=V(A)+n.
其中,所述确认帧为RR帧,所述否决帧为REJ帧,所述发送子模块具体用于若所述传输装置接收到REJ帧,则在所述传输装置发送所述发送序列号为N(S)=V(A)+n的信息帧的时间与当前时间的时间差超过预设时间后,重新发送所述发送序列号为N(S)=V(A)+n的信息帧至对端;Wherein, the acknowledgment frame is an RR frame, the rejection frame is a REJ frame, and the sending submodule is specifically configured to send the transmission sequence number N to the transmission device if the transmission device receives the REJ frame (S)=V(A)+n After the time difference between the time of the information frame of V(A)+n and the current time exceeds the preset time, resend the information frame whose transmission sequence number is N(S)=V(A)+n to the target end;
若所述传输装置接收到RR帧,在所述传输装置的重传定时器超时后,若所述传输装置发送所述发送序列号为N(S)=V(A)+n的信息帧的时间与当前时间的时间差超过预设时间,则重新发送所述发送序列号为N(S)=V(A)+n的信息帧至对端。If the transmission device receives the RR frame, after the retransmission timer of the transmission device expires, if the transmission device sends the information frame whose transmission sequence number is N(S)=V(A)+n If the time difference between the time and the current time exceeds the preset time, then resend the information frame with the transmission sequence number N(S)=V(A)+n to the opposite end.
本发明的技术方案具有以下有益效果:The technical solution of the present invention has the following beneficial effects:
上述方案中,传输装置根据接收到的信息帧设置自身存储的第一变量,并将第一变量添加到确认帧或否决帧中发送到对端,以告知对端本地的接收情况。对端的传输装置根据接收到的确认帧或否决帧就可以重新发送传输失败的信息帧。本发明中,在发送方丢失的信息帧超过2帧以上时,特别是丢失的帧的发送序列号不连续的情况下,接收方能够通过确认帧或否决帧一次告知发送方都丢失了哪些信息帧,不需要通过双方多次确认重传交互,而可以通过一次重传交互就能完成所有丢失信息帧的重传,从而提高重传的效率。In the above solution, the transmission device sets the first variable stored by itself according to the received information frame, and adds the first variable to the confirmation frame or the veto frame and sends it to the peer end to inform the peer end of the local reception situation. The transmission device at the opposite end can resend the information frame whose transmission failed according to the received confirmation frame or veto frame. In the present invention, when the sender loses more than 2 frames of information, especially when the sending sequence numbers of the lost frames are discontinuous, the receiver can inform the sender what information has been lost through a confirmation frame or a veto frame. Frames do not need to be confirmed by both parties for multiple retransmission interactions, but can complete the retransmission of all lost information frames through one retransmission interaction, thereby improving the efficiency of retransmission.
附图说明 Description of drawings
图1为本发明的实施例D通道上链路接入规程传输方法的流程示意图;FIG. 1 is a schematic flowchart of a method for transmitting an uplink access procedure on a D channel according to an embodiment of the present invention;
图2为本发明的实施例D通道上链路接入规程传输方法的流程示意图;FIG. 2 is a schematic flowchart of a method for transmitting an uplink access procedure on a D channel according to an embodiment of the present invention;
图3为本发明的实施例传输装置的结构示意图;3 is a schematic structural diagram of a transmission device according to an embodiment of the present invention;
图4为本发明的实施例传输装置的结构示意图;4 is a schematic structural diagram of a transmission device according to an embodiment of the present invention;
图5为本发明的实施例RR帧结构示意图;FIG. 5 is a schematic diagram of an RR frame structure according to an embodiment of the present invention;
图6为本发明的实施例REJ帧结构示意图;FIG. 6 is a schematic diagram of a REJ frame structure according to an embodiment of the present invention;
图7为本发明的实施例传输装置A更新和发送rwnd_bitmap的流程示意图;FIG. 7 is a schematic flow diagram of updating and sending rwnd_bitmap by transmission device A according to an embodiment of the present invention;
图8为本发明的实施例传输装置B在收到数据后处理的流程示意图;FIG. 8 is a schematic flow diagram of processing after receiving data by transmission device B according to an embodiment of the present invention;
图9为本发明的实施例传输装置B在自身的重传定时器超时后,传输装置B的处理流程示意图。FIG. 9 is a schematic diagram of the processing flow of the transmission device B after the retransmission timer of the transmission device B expires according to the embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明的实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
本发明的实施例针对现有技术LAPD协议中重传效率较低的问题,提供一种D通道上链路接入规程传输方法及装置,能够提高D通道上链路接入规程中信息帧的重传效率。The embodiment of the present invention aims at the problem of low retransmission efficiency in the prior art LAPD protocol, and provides a D channel uplink access procedure transmission method and device, which can improve the efficiency of information frames in the D channel uplink access procedure. retransmission efficiency.
图1为本发明的实施例D通道上链路接入规程传输方法的流程示意图,如图1所示,本实施例包括:Fig. 1 is a schematic flow diagram of a method for transmitting an uplink access procedure on a D channel according to an embodiment of the present invention. As shown in Fig. 1 , this embodiment includes:
步骤101:传输装置接收对端发送的信息帧;Step 101: the transmission device receives the information frame sent by the opposite end;
步骤102:传输装置根据接收到的信息帧更新自身存储的第一变量,第一变量指示传输装置对信息帧的接收情况;Step 102: The transmission device updates the first variable stored by itself according to the received information frame, and the first variable indicates the reception status of the information frame by the transmission device;
步骤103:传输装置将更新后的第一变量添加到确认帧或否决帧中,并将确认帧或否决帧发送至对端,以使对端能够重新发送传输装置未接收到的信息帧。Step 103: The transmission device adds the updated first variable to the confirmation frame or the rejection frame, and sends the confirmation frame or the rejection frame to the peer end, so that the peer end can resend the information frame not received by the transmission device.
本发明实施例的D通道上链路接入规程传输方法,接收方的传输装置根据接收到的信息帧设置自身存储的第一变量,并将第一变量添加到确认帧或否决帧中发送到对端,以告知对端本地的接收情况。本实施例中,在发送方丢失的信息帧超过2帧以上时,特别是丢失的帧的发送序列号不连续的情况下,接收方能够通过确认帧或否决帧一次告知发送方都丢失了哪些信息帧,不需要通过双方多次确认重传交互,而可以通过一次重传交互就能完成所有丢失信息帧的重传,从而提高重传的效率。In the D channel uplink access procedure transmission method of the embodiment of the present invention, the transmission device of the receiving party sets the first variable stored by itself according to the received information frame, and adds the first variable to the confirmation frame or the veto frame and sends it to The peer end, to inform the peer end of the local receiving situation. In this embodiment, when the sender loses more than 2 information frames, especially when the sending sequence numbers of the lost frames are discontinuous, the receiver can inform the sender which information frames are lost at once through the confirmation frame or the veto frame. The information frame does not need to be retransmitted through multiple confirmations by both parties, but can complete the retransmission of all lost information frames through one retransmission interaction, thereby improving the efficiency of retransmission.
图2为本发明的实施例D通道上链路接入规程传输方法的流程示意图,如图2所示,本实施例包括:Fig. 2 is a schematic flow diagram of a method for transmitting an uplink access procedure on a D channel according to an embodiment of the present invention. As shown in Fig. 2, this embodiment includes:
步骤201:传输装置接收对端发送的确认帧或否决帧,确认帧或否决帧指示对端对信息帧的接收情况;Step 201: The transmission device receives the confirmation frame or the rejection frame sent by the opposite end, and the confirmation frame or the rejection frame indicates the reception status of the information frame by the opposite end;
步骤202:如果确认帧或者否决帧中的N(R)字段不小于传输装置本端的确认变量V(A)且不大于传输装置本端的发送状态变量V(S),则传输装置将本端的确认变量V(A)更新为N(R),并根据接收到的确认帧或者否决帧中的比特位图字段更新自身存储的第二变量;Step 202: If the N(R) field in the acknowledgment frame or the veto frame is not less than the confirmation variable V(A) of the transmission device itself and not greater than the sending state variable V(S) of the transmission device itself, then the transmission device sends the confirmation variable V(S) of the transmission device itself The variable V(A) is updated to N(R), and the second variable stored by itself is updated according to the received confirmation frame or the bitmap field in the veto frame;
步骤203:传输装置根据更新后的本端确认变量V(A)和第二变量重新发送对端未接收到的信息帧。Step 203: The transmission device resends the information frame not received by the opposite end according to the updated local acknowledgment variable V(A) and the second variable.
其中,若传输装置接收对端发送的信息帧或RNR帧,如果信息帧或者RNR帧中的N(R)值大于本端的确认变量V(A),传输装置将本端确认变量V(A)更新为N(R),并将第二变量所有的有效比特位设置为1。Among them, if the transmission device receives the information frame or RNR frame sent by the opposite end, if the N(R) value in the information frame or RNR frame is greater than the confirmation variable V(A) of the local end, the transmission device will confirm the variable V(A) of the local end Update to N(R), and set all valid bits of the second variable to 1.
本发明实施例的D通道上链路接入规程传输方法,发送方的传输装置根据接收到的确认帧、否决帧、信息帧和RNR帧获知接收方信息帧的接收情况。本实施例中,在发送方丢失的信息帧超过2帧以上时,特别是丢失的帧的发送序列号不连续的情况下,发送方能够通过确认帧或否决帧获知在传输中都丢失了哪些信息帧,不需要通过双方多次确认重传交互,而可以通过一次重传交互就能完成所有丢失信息帧的重传,从而提高重传的效率。In the D channel uplink access procedure transmission method of the embodiment of the present invention, the transmission device of the sender learns the reception status of the receiver's information frame according to the received confirmation frame, veto frame, information frame and RNR frame. In this embodiment, when the sender loses more than 2 information frames, especially when the sending sequence numbers of the lost frames are discontinuous, the sender can know which information frames are lost in the transmission through the confirmation frame or the veto frame. The information frame does not need to be retransmitted through multiple confirmations by both parties, but can complete the retransmission of all lost information frames through one retransmission interaction, thereby improving the efficiency of retransmission.
图3为本发明的实施例传输装置的结构示意图,如图3所示,本实施例包括:Fig. 3 is a schematic structural diagram of a transmission device according to an embodiment of the present invention. As shown in Fig. 3, this embodiment includes:
接收模块30,用于接收对端发送的信息帧;The receiving
更新模块31,用于根据接收到的信息帧更新自身存储的第一变量,第一变量指示传输装置对信息帧的接收情况;The
发送模块32,用于将更新后的第一变量添加到确认帧或否决帧中,并将确认帧或否决帧发送至对端,以使对端能够重新发送传输装置未接收到的信息帧。The sending
其中,第一变量为第一位图变量,更新模块31包括:Wherein, the first variable is the first bitmap variable, and the
存储子模块,用于将接收模块30接收到的失序的信息帧暂存在接收滑窗中,第一位图变量中的第n个比特对应接收滑窗中的第n个位置;The storage submodule is used to temporarily store the out-of-sequence information frame received by the receiving
设置子模块,用于若接收滑窗中的第n个位置内有信息帧,则将第一位图变量中的第n个比特设为1,若接收滑窗中的第n个位置内没有信息帧,则将第一位图变量中的第n个比特设为0。Set the sub-module, which is used to set the nth bit in the first bitmap variable to 1 if there is an information frame in the nth position in the receiving sliding window, and if there is no information frame in the nth position in the receiving sliding window information frame, set the nth bit in the first bitmap variable to 0.
其中,确认帧为RR帧,否决帧REJ帧,发送模块32具体用于将第一位图变量放置到RR帧或REJ帧中的比特位图字段中,之后将RR帧或REJ帧发送至对端。Wherein, the confirmation frame is an RR frame, and the REJ frame is rejected. The sending
本发明实施例的传输装置在LAPD链路中,是信息帧的接收方,根据接收到的信息帧设置自身存储的第一变量,并将第一变量添加到确认帧或否决帧中发送到对端,以告知对端本地的接收情况。本实施例中,在发送方丢失的信息帧超过2帧以上时,特别是丢失的帧的发送序列号不连续的情况下,接收方能够通过确认帧或否决帧一次告知发送方都丢失了哪些信息帧,不需要通过双方多次确认重传交互,而可以通过一次重传交互就能完成所有丢失信息帧的重传,从而提高重传的效率。The transmission device of the embodiment of the present invention is the receiver of the information frame in the LAPD link, sets the first variable stored by itself according to the received information frame, and adds the first variable to the confirmation frame or the veto frame and sends it to the target end to inform the other end of the local reception situation. In this embodiment, when the sender loses more than 2 information frames, especially when the sending sequence numbers of the lost frames are discontinuous, the receiver can inform the sender which information frames are lost at once through the confirmation frame or the veto frame. The information frame does not need to be retransmitted through multiple confirmations by both parties, but can complete the retransmission of all lost information frames through one retransmission interaction, thereby improving the efficiency of retransmission.
图4为本发明的实施例传输装置的结构示意图,如图4所示,本实施例包括:Fig. 4 is a schematic structural diagram of a transmission device according to an embodiment of the present invention. As shown in Fig. 4, this embodiment includes:
接收模块40,用于接收对端发送的确认帧或否决帧,确认帧或否决帧指示对端的信息帧接收情况;The receiving
更新模块41,用于如果确认帧或者否决帧中的N(R)字段不小于传输装置本端的确认变量V(A)且不大于传输装置本端的发送状态变量V(S),则将传输装置本端的确认变量V(A)更新为N(R)。并根据接收到的确认帧或者否决帧中的比特位图字段更新传输装置存储的第二变量;The
发送模块42,用于根据更新后的本端确认变量V(A)和第二变量重新发送对端未接收到的信息帧。The sending
其中,接收模块40还用于接收对端发送的信息帧或RNR帧;Wherein, the receiving
更新模块41还用于如果信息帧或者RNR帧中的N(R)值大于传输装置本端的确认变量V(A),将本端确认变量V(A)更新为N(R),并将第二变量所有的有效比特位设置为1。The
其中,确认帧为RR帧,否决帧为REJ帧,更新模块41具体用于将接收到的RR帧或REJ帧中的比特位图字段保存到自身的第二变量中。Wherein, the confirmation frame is an RR frame, and the rejection frame is a REJ frame, and the
其中,发送模块42包括:Wherein, sending
确定子模块,用于根据本端确认变量V(A)和第二变量确定对端未接收到的信息帧;Determining the submodule, used to determine the information frame not received by the opposite end according to the local confirmation variable V (A) and the second variable;
发送子模块,用于在预设条件满足之后,重新发送对端未接收到的信息帧。The sending sub-module is used to resend the information frame not received by the opposite end after the preset condition is satisfied.
其中,第二变量为第二位图变量,确定子模块具体用于判断第二位图变量中的比特是否为0,其中,第二位图变量中的第n个比特对应传输装置上一次发送到对端的发送序列号为N(S)=V(A)+n的信息帧,若第二位图变量中的第n个比特为0,则判断对端未接收到传输装置上一次发送到对端的发送序列号为N(S)=V(A)+n的信息帧。Wherein, the second variable is the second bitmap variable, and the determination submodule is specifically used to judge whether the bit in the second bitmap variable is 0, wherein, the nth bit in the second bitmap variable corresponds to the transmission device last sent If the information frame whose sequence number is N(S)=V(A)+n is sent to the opposite end, if the nth bit in the second bitmap variable is 0, then it is judged that the opposite end has not received the information frame sent by the transmission device last time. The opposite end sends an information frame whose sequence number is N(S)=V(A)+n.
发送子模块具体用于若传输装置接收到REJ帧,则在传输装置发送发送序列号为N(S)=V(A)+n的信息帧的时间与当前时间的时间差超过预设时间后,重新发送第n个信息帧至对端;The sending sub-module is specifically used for if the transmission device receives the REJ frame, after the time difference between the time when the transmission device sends the information frame with the transmission sequence number N(S)=V(A)+n and the current time exceeds the preset time, Resend the nth information frame to the peer;
若传输装置接收到RR帧,则在传输装置的重传定时器超时后,如果传输装置发送发送序列号为N(S)=V(A)+n的信息帧的时间与当前时间的时间差超过预设时间,则重新发送发送序列号为N(S)=V(A)+n的信息帧至对端。If the transmission device receives the RR frame, after the retransmission timer of the transmission device expires, if the time difference between the time when the transmission device sends the information frame with the sequence number N(S)=V(A)+n and the current time exceeds After the preset time, resend the information frame with the sending sequence number N(S)=V(A)+n to the opposite end.
本发明实施例的传输装置在LAPD链路中,是信息帧的发送方,根据接收到的确认帧或否决帧获知对端信息帧的接收情况。本实施例中,在发送方丢失的信息帧超过2帧以上时,特别是丢失的帧的发送序列号不连续的情况下,发送方能够通过确认帧或否决帧获知在传输中都丢失了哪些信息帧,不需要通过双方多次确认重传交互,而可以通过一次重传交互就能完成所有丢失信息帧的重传,从而提高重传的效率。The transmission device in the embodiment of the present invention is the sender of the information frame in the LAPD link, and learns the receiving situation of the opposite end information frame according to the received confirmation frame or veto frame. In this embodiment, when the sender loses more than 2 information frames, especially when the sending sequence numbers of the lost frames are discontinuous, the sender can know which information frames are lost in the transmission through the confirmation frame or the veto frame. The information frame does not need to be retransmitted through multiple confirmations by both parties, but can complete the retransmission of all lost information frames through one retransmission interaction, thereby improving the efficiency of retransmission.
下面对本发明实施例的D通道上链路接入规程传输方法进行进一步介绍。本发明中,LAPD链路两端的传输装置各自都保留有第一变量和第二变量。第一变量用于指示本端接收信息帧的情况,第二变量用于指示对端接收信息帧的情况。The following further introduces the method for transmitting the D channel uplink access procedure according to the embodiment of the present invention. In the present invention, the transmission devices at both ends of the LAPD link each retain the first variable and the second variable. The first variable is used to indicate the situation that the local end receives the information frame, and the second variable is used to indicate the situation that the opposite end receives the information frame.
传输装置在接收到信息帧后,向对端发送RR帧或REJ帧进行确认,传输装置在RR帧和REJ帧中添加bitmap字段,如图5所示为本发明中RR帧结构示意图,图6所示为本发明的REJ帧结构示意图。在bitmap字段中携带第一变量,告知对端本地接收信息帧的情况,对端的传输装置在接收到RR帧或REJ帧之后,将bitmap字段中携带的第一变量更新为自身的第二变量。After receiving the information frame, the transmission device sends an RR frame or REJ frame to the peer for confirmation, and the transmission device adds a bitmap field in the RR frame and the REJ frame, as shown in Figure 5, which is a schematic diagram of the structure of the RR frame in the present invention, and Figure 6 Shown is a schematic diagram of the REJ frame structure of the present invention. The first variable is carried in the bitmap field to inform the opposite end of the local reception of the information frame, and the transmission device at the opposite end updates the first variable carried in the bitmap field to its own second variable after receiving the RR frame or the REJ frame.
其中,第一变量可以为第一位图变量rwnd_bitmap,第二变量可以为第二位图变量rcv_bitmap。rwnd_bitmap,用于标识本端接收滑窗中暂存失序信息帧的情况,rwnd_bitmap的第n个bit对应接收滑窗中的第n个位置,假设接收方和发送方商定的接收滑窗大小为Nrwd,rwnd_bitmap就设置为Nrwd个bit。本端在接收到对端发送过来的信息帧后,若信息帧是失序的且发送序列号N(S)是在接收滑窗范围内的则暂存在接收滑窗中,如果rwnd_bitmap的第n个bit对应的接收滑窗中的第n个位置内有信息帧,则将rwnd_bitmap的该bit设置为1,否则设置为0。rcv_bitmap用于保存接收到的RR帧或REJ帧内携带的bitmap,rcv_bitmap所有bit位的初始值为全1,以避免在收到RR帧和REJ帧之前导致错误的重传。Wherein, the first variable may be the first bitmap variable rwnd_bitmap, and the second variable may be the second bitmap variable rcv_bitmap. rwnd_bitmap, used to identify the temporary storage of out-of-sequence information frames in the receiving sliding window of the local end, the nth bit of rwnd_bitmap corresponds to the nth position in the receiving sliding window, assuming that the size of the receiving sliding window agreed by the receiver and the sender is N rwd , rwnd_bitmap is set to N rwd bits. After the local end receives the information frame sent by the peer end, if the information frame is out of sequence and the sending sequence number N(S) is within the range of the receiving sliding window, it will be temporarily stored in the receiving sliding window. If the nth bit of rwnd_bitmap If there is an information frame in the nth position of the receiving sliding window corresponding to the bit, set the bit of rwnd_bitmap to 1, otherwise set it to 0. rcv_bitmap is used to save the bitmap carried in the received RR frame or REJ frame. The initial value of all bits in rcv_bitmap is all 1, so as to avoid erroneous retransmission before receiving RR frame and REJ frame.
对于本地的传输装置来说,如果接收到的信息帧都是顺序到达的,那接收到的信息帧会立即转发给上层应用,此时的接收滑窗是空的,则对应的rwnd_bitmap的所有bit位都为0。如果,信息帧在传输过程中有丢失,接收到的信息帧不连续,那失序的这些信息帧会被暂存在接收滑窗中,此时,暂存在接收滑窗中的信息帧所在位置对应rwnd_bitmap的bit会被置1。在本地接收到信息帧之后向对端发送RR帧或者REJ帧进行确认时,将本地的rwnd_bitmap拷贝到RR帧或REJ帧的后面的bitmap字段里,从而告知对端本地的接收情况。如果rwnd_bitmap的有效bit位长度不是8的整数倍,则在后面填充0,以确保bitmap字段的bit位长度是8的整数倍。由于bitmap的有效bit位长度由接收滑窗的大小决定,因此对端可以根据两端协商的接收滑窗大小Nrwd来确定RR和REJ帧内携带的bitmap字段的有效bit位是多少。For the local transmission device, if the received information frames arrive sequentially, the received information frames will be forwarded to the upper application immediately. At this time, the receiving sliding window is empty, and all bits of the corresponding rwnd_bitmap bits are all 0. If the information frame is lost during transmission and the received information frames are discontinuous, the out-of-sequence information frames will be temporarily stored in the receiving sliding window. At this time, the position of the information frame temporarily stored in the receiving sliding window corresponds to rwnd_bitmap The bit will be set to 1. When the local receives the information frame and sends an RR frame or REJ frame to the peer for confirmation, copy the local rwnd_bitmap to the bitmap field behind the RR frame or the REJ frame, so as to inform the peer of the local reception situation. If the effective bit length of rwnd_bitmap is not an integer multiple of 8, then pad with 0 to ensure that the bit length of the bitmap field is an integer multiple of 8. Since the effective bit length of the bitmap is determined by the size of the receiving sliding window, the peer end can determine the number of effective bits of the bitmap field carried in the RR and REJ frames according to the receiving sliding window size N rwd negotiated between the two ends.
对于对端的传输装置来说,在接收到RR帧时,按照协议的规定,如果接收的RR帧中的N(R)字段大于等于本端的确认变量V(A)并且小于等于本端的发送状态变量V(S),则RR帧中的N(R)是有效的,将本端的确认变量V(A)更新为N(R),并将RR帧携带的bitmap字段保存到本端的rcv_bitmap中;否则丢弃该RR帧。For the transmission device at the opposite end, when receiving the RR frame, according to the protocol, if the N(R) field in the received RR frame is greater than or equal to the confirmation variable V(A) of the local end and less than or equal to the sending state variable of the local end V(S), then N(R) in the RR frame is valid, update the confirmation variable V(A) of the local end to N(R), and save the bitmap field carried in the RR frame to the rcv_bitmap of the local end; otherwise The RR frame is discarded.
在接收到REJ帧时,按照协议的规定,如果接收的REJ帧中的N(R)字段大于等于本端的确认变量V(A)并且小于等于本端的发送状态变量V(S),则REJ帧中的N(R)是有效的,将本端的确认变量V(A)更新为N(R),并将REJ帧携带的bitmap字段保存到本端的rcv_bitmap中;否则丢弃该REJ帧。When receiving a REJ frame, according to the protocol, if the N(R) field in the received REJ frame is greater than or equal to the confirmation variable V(A) of the local end and is less than or equal to the sending state variable V(S) of the local end, the REJ frame N(R) in is valid, update the confirmation variable V(A) of the local end to N(R), and save the bitmap field carried in the REJ frame to the rcv_bitmap of the local end; otherwise, discard the REJ frame.
传输装置若接收到RR帧,在本端的重传定时器超时后,若本端的确认变量V(A)小于发送状态变量V(S)时,则需要重传信息帧,首先按照协议规定重新发送序列号N(S)=V(A)的信息帧,接下来根据rcv_bitmap的bits位判断发送序列号N(S)为V(A)+1至V(A)+n(1≤n≤Nrwd,V(A)+n<V(S))的信息帧是否需要重传;如果第n个bit位为0,并且该bit位对应的发送序列号N(S)=V(A)+n的信息帧最近一次发送的时间与当前时间的差值超过Td,则立即重传该信息帧。If the transmission device receives the RR frame, after the retransmission timer of the local end expires, if the confirmation variable V(A) of the local end is smaller than the sending state variable V(S), it needs to retransmit the information frame, and first resend according to the protocol The sequence number N(S)=V(A) information frame, and then judge the sending sequence number N(S) according to the bits of rcv_bitmap as V(A)+1 to V(A)+n(1≤n≤N rwd , whether the information frame of V(A)+n<V(S)) needs to be retransmitted; if the nth bit is 0, and the sending sequence number corresponding to this bit is N(S)=V(A)+ If the difference between the last sending time of the information frame of n and the current time exceeds Td, the information frame will be retransmitted immediately.
传输装置若接收到REJ帧,需要立即进行信息帧的重传。首先按照协议规定重新发送序列号为N(S)=V(A)的信息帧,然后传输装置通过V(A)和rcv_bitmap来确定需要重传哪些信息帧,rcv_bitmap的第n(1≤n≤Nrwd)个bit用于标识本端发送的发送序列号N(S)为V(A)+n(V(A)+n<V(S))的信息帧对端是否接收到,如果该bit为1,表示N(S)=V(S)+n的信息帧对端已经接收到,如果该bit为0,表示N(S)=V(S)+n的信息帧对端暂时没有接收到,可能需要重新发送序列号为N(S)=V(A)+n的信息帧,此时还需要计算N(S)=V(A)+n的信息帧最近一次发送时间和当前的时间差,如果时间差超过预设时间Td(Td的大小根据实际链路的传输时延决定),则立即重传该信息帧。If the transmission device receives the REJ frame, it needs to retransmit the information frame immediately. First, resend the information frame whose sequence number is N(S)=V(A) according to the protocol, and then the transmission device determines which information frames need to be retransmitted through V(A) and rcv_bitmap, the nth (1≤n≤ N rwd ) bits are used to identify whether the information frame sent by the local end with the transmission sequence number N(S) is V(A)+n(V(A)+n<V(S)) is received by the peer end, if the If the bit is 1, it means that the opposite end of the information frame of N(S)=V(S)+n has received it. If the bit is 0, it means that the opposite end of the information frame of N(S)=V(S)+n has not yet Received, it may be necessary to resend the information frame whose sequence number is N(S)=V(A)+n. At this time, it is also necessary to calculate the latest sending time and current time of the information frame of N(S)=V(A)+n If the time difference exceeds the preset time T d (the size of T d is determined according to the transmission delay of the actual link), the information frame will be retransmitted immediately.
如果传输装置接收到的是信息帧或者RNR帧,由于信息帧和RNR帧中不携带bitmap,如果信息帧或者RNR帧中的N(R)值大于本端的确认变量V(A),说明有本端发送的信息帧中有新的信息帧被对端接收确认,需要更新V(A)为N(R);并且对端的接收滑窗已经发生了变化,因此之前保存的rcv_bitmap已经不能正确表示对端接收滑窗的状态。为了避免错误的重传,需要将rcv_bitmap所有的有效bit位设置为1,假设发送序列号大于V(A)的信息帧对端并没有丢失。等下一次收到RR帧或者REJ帧时更新本端的rcv_bitmap。If the transmission device receives an information frame or an RNR frame, since the information frame and the RNR frame do not carry a bitmap, if the value of N(R) in the information frame or the RNR frame is greater than the confirmation variable V(A) of the local end, it means that there is a In the information frame sent by the end, a new information frame is received and confirmed by the opposite end, and V(A) needs to be updated to N(R); and the receiving sliding window of the opposite end has changed, so the previously saved rcv_bitmap can no longer correctly represent the The terminal receives the state of the sliding window. In order to avoid erroneous retransmission, it is necessary to set all valid bits of rcv_bitmap to 1, assuming that the peer end of the information frame with the sending sequence number greater than V(A) is not lost. Update the rcv_bitmap of the local end when the RR frame or REJ frame is received next time.
假设LAPD链路两端的传输装置为传输装置A和传输装置B,下面对信息帧重传的过程进行描述。Assuming that the transmission devices at both ends of the LAPD link are the transmission device A and the transmission device B, the process of retransmitting the information frame will be described below.
如图7所示,描述了传输装置A更新和发送rwnd_bitmap的流程,具体步骤如下:As shown in Figure 7, the process of updating and sending rwnd_bitmap by transmission device A is described, and the specific steps are as follows:
步骤701:传输装置A接收信息帧;Step 701: The transmission device A receives the information frame;
传输装置A接收信息帧,并判断当前信息帧是否是失序的信息帧,如果是则暂存在接收滑窗内;如果不是失序的信息帧,而是A期望得到的信息帧,则判断是否有暂存在接收滑窗中的信息帧与当前收到的信息帧是连续的数据帧,有则将这些数据帧转发给应用层,并释放这些信息帧占据的滑窗位置;如果没有,则直接将当前的信息帧转发给应用层;Transmission device A receives the information frame, and judges whether the current information frame is an out-of-sequence information frame, and if so, temporarily stores it in the receiving sliding window; If there are information frames in the receiving sliding window and the currently received information frames are continuous data frames, if there are, these data frames will be forwarded to the application layer, and the sliding window positions occupied by these information frames will be released; if not, the current The information frame is forwarded to the application layer;
步骤702:传输装置A更新rwnd_bitmap;Step 702: transmission device A updates rwnd_bitmap;
如果接收滑窗的第n(1≤n≤Nrwd)个位置有信息帧暂存,则rcv_bimap的第n个bit就设置为1,否则设置为0;If there is an information frame temporarily stored in the nth (1≤n≤N rwd ) position of the receiving sliding window, the nth bit of rcv_bimap is set to 1, otherwise it is set to 0;
步骤703:传输装置A向传输装置B发送RR帧或者REJ帧。Step 703: The transmission device A sends the RR frame or the REJ frame to the transmission device B.
传输装置A将rwnd_bitmap拷贝到RR帧或REJ帧的后面bitmap字段,由于rwnd_bitmap的有效bit位的个数不一定是8的整数倍,需要在rwnd_bitmap的有效bit位后面添加0,以确保bitmap字段的bit位长度是8的整数倍。Transmission device A copies the rwnd_bitmap to the bitmap field at the back of the RR frame or REJ frame. Since the number of valid bits in the rwnd_bitmap is not necessarily an integer multiple of 8, it is necessary to add 0 after the valid bits in the rwnd_bitmap to ensure the correctness of the bitmap field. The bit length is an integer multiple of 8.
如图8所示,描述了传输装置B在收到数据后处理的流程,具体步骤如下:As shown in Figure 8, it describes the processing flow of the transmission device B after receiving the data, and the specific steps are as follows:
步骤801:传输装置B接收到数据后,判断数据帧的类型,如果是RR帧,转向步骤802;如果是REJ帧,则转向步骤804;如果是信息帧或者RNR帧,转向步骤810;Step 801: after the transmission device B receives the data, judge the type of the data frame, if it is an RR frame, go to step 802; if it is a REJ frame, go to step 804; if it is an information frame or an RNR frame, go to step 810;
步骤802:判断RR帧是否是合法的数据帧,即判断RR帧内的N(R)字段是否满足V(A)≤N(R)≤V(S),如果不满足则结束;如果满足,转向步骤803。Step 802: judging whether the RR frame is a legal data frame, that is, judging whether the N(R) field in the RR frame satisfies V(A)≤N(R)≤V(S), if not satisfied, then end; if satisfied, Go to step 803.
步骤803:传输装置B更新V(A)的值,设置V(A)=N(R),将RR中的bitmap字段拷贝到本端的rcv_bitmap变量中,结束流程。Step 803: The transmission device B updates the value of V(A), sets V(A)=N(R), copies the bitmap field in the RR to the rcv_bitmap variable at the local end, and ends the process.
传输装置B可以在自身的重传定时器超时之后,再根据本端的确认变量V(A)和rcv_bitmap变量向传输装置A重新发送信息帧。The transmission device B may resend the information frame to the transmission device A according to the local confirmation variable V(A) and rcv_bitmap variable after its own retransmission timer expires.
步骤804:如果是REJ帧,首先判断N(R)是否有效,即N(R)字段是否满足V(A)≤N(R)≤V(S),不满足则无效,结束流程;有效则转向步骤805;Step 804: If it is a REJ frame, first judge whether N(R) is valid, that is, whether the N(R) field satisfies V(A)≤N(R)≤V(S), if not satisfied, it is invalid, and the process ends; Turn to step 805;
步骤805:传输装置B重新发送序号N(S)=N(R)的信息帧,并更新V(A)的值,设置V(A)=N(R),将REJ帧中的bitmap字段拷贝到本端的rcv_bitmap变量中;传输装置B使用一变量n表示当前分析的rcv_bitmap中的第几个bit位,n的初始值为1,然后执行步骤806;Step 805: Transmission device B resends the information frame with sequence number N(S)=N(R), and updates the value of V(A), sets V(A)=N(R), and copies the bitmap field in the REJ frame to the rcv_bitmap variable at the local end; the transmission device B uses a variable n to indicate the number of bits in the currently analyzed rcv_bitmap, and the initial value of n is 1, and then executes
步骤806:判断是否同时满足1≤n≤Nrwd和V(A)+n<V(S)这两个条件。如果满足说明rcv_bitmap的第n个bit表示的信息帧的发送序号是有效的,则执行步骤807;否则结束;Step 806: Determine whether the two conditions of 1≤n≤N rwd and V(A)+n<V(S) are satisfied at the same time. If the transmission sequence number of the information frame represented by the nth bit of the description rcv_bitmap is satisfied, then step 807 is executed; otherwise, it ends;
步骤807:查看rcv_bitmap的第n个bit是否为0,如果为0,表示对端A目前没有接收到发送序号N(S)=V(A)+n的信息帧,接下来再判断发送序号N(S)=V(A)+n的信息帧最近一次发送的时间与当前时间的差值是否大于Td,如果大于则执行步骤808,否则执行步骤809;如果rcv_bitmap的第n个bit为1,表示对端A接收到了发送序号N(S)=N(R)+n的信息帧,不需要重传,执行步骤809;Step 807: Check whether the nth bit of rcv_bitmap is 0, if it is 0, it means that the peer A has not received the information frame with the transmission sequence number N(S)=V(A)+n, and then judge the transmission sequence number N (S)=V(A)+n Whether the difference between the time of the latest transmission of the information frame of V(A)+n and the current time is greater than T d , if greater, then perform step 808, otherwise perform
步骤808:重传N(S)=V(A)+n的信息帧;Step 808: Retransmit the information frame of N(S)=V(A)+n;
步骤809:n值加1,然后继续转向步骤806。Step 809:
步骤810:如果接收到的是RNR帧或者是I帧,首先判断是否是合法的数据帧,即判断帧内的N(R)字段是否满足V(A)≤N(R)≤V(S),如果不满足,N(R)值无效则结束;如果满足,则再继续判断N(R)是否满足N(R)>V(A),如果满足,执行811;如果不满足,说明没有新的I帧被接收确认,则结束。Step 810: If what is received is an RNR frame or an I frame, first judge whether it is a legal data frame, that is, judge whether the N(R) field in the frame satisfies V(A)≤N(R)≤V(S) , if not satisfied, the N(R) value is invalid, then end; if satisfied, continue to judge whether N(R) satisfies N(R)>V(A), if satisfied, execute 811; if not satisfied, it means that there is no new If the I frame is received and acknowledged, it ends.
步骤811:N(R)>V(A),说明B发送的I帧中有新的I帧被A接收确认,那rcv_bitmap里保存的值已经不能反映A接收滑窗内的情况,因此为了避免错误的重传发生,把rcv_bitmap中所有有效的bit位设置为1,并更新V(A)的值,设置V(A)=N(R),结束流程。Step 811: N(R)>V(A), indicating that among the I frames sent by B, there is a new I frame received and confirmed by A, and the value stored in rcv_bitmap can no longer reflect the situation in A's receiving sliding window, so in order to avoid When wrong retransmission occurs, set all valid bits in rcv_bitmap to 1, update the value of V(A), set V(A)=N(R), and end the process.
如图9所示,是传输装置B在自身的重传定时器超时后,传输装置B的处理流程:As shown in Figure 9, it is the processing flow of the transmission device B after the retransmission timer of the transmission device B expires:
步骤901:传输装置B重传发送序号N(S)=V(A)的信息帧,使用一变量n用于表示当前分析的rcv_bitmap中的第几个bit位,n的初始值为1,继续执行902;Step 901: The transmission device B retransmits the information frame with the transmission sequence number N(S)=V(A), and uses a variable n to indicate the number of bits in the currently analyzed rcv_bitmap. The initial value of n is 1, continue Execute 902;
步骤902:判断是否同时满足1≤n≤Nrwd和V(A)+n<V(S)这两个条件。如果满足说明rcv_bitmap的第n个bit表示的信息帧的发送序号是有效的,则执行903;否则,则结束;Step 902: Determine whether the two conditions of 1≤n≤N rwd and V(A)+n<V(S) are satisfied at the same time. If it is satisfied that the sending sequence number of the information frame represented by the nth bit of the rcv_bitmap is valid, then execute 903; otherwise, end;
步骤903:查看rcv_bitmap的第n个bit是否为0,如果为0,表示对端A目前没有接收到发送序号N(S)=V(A)+n的信息帧,接下来再判断发送序号N(S)=V(A)+n的信息帧最近一次发送的时间与当前时间的差值是否大于Td,如果大于则执行步骤904,否则执行步骤905;如果rcv_bitmap的第n个bit为1,表示对端A接收到了发送序号N(S)=N(R)+n的信息帧,不需要重传,执行步骤905;Step 903: check whether the nth bit of rcv_bitmap is 0, if it is 0, it means that the peer A has not received the information frame with the transmission sequence number N(S)=V(A)+n, and then judge the transmission sequence number N (S)=V(A)+n Whether the difference between the time of the latest transmission of the information frame of V(A)+n and the current time is greater than T d , if greater, then perform
步骤904:重传N(S)=V(A)+n的信息帧,执行步骤905;Step 904: retransmit the information frame of N(S)=V(A)+n, and execute
步骤905:n值加1,继续执行步骤902。Step 905:
本发明实施例中,传输装置根据接收到的信息帧设置自身存储的第一位图变量,并将第一位图变量添加到确认帧或者否决帧中发送到对端,以告知对端本地的接收情况。对端的传输装置根据接收到的确认帧或者否决帧就可以重新发送传输失败的信息帧。本发明中,在发送方丢失的信息帧超过2帧以上时,特别是丢失的帧的发送序列号不连续的情况下,接收方能够通过确认帧或者否决帧一次告知发送方都丢失了哪些信息帧,不需要通过双方多次确认重传交互,而可以通过一次重传交互就能完成所有丢失信息帧的重传,从而提高重传的效率。In the embodiment of the present invention, the transmission device sets the first bitmap variable stored by itself according to the received information frame, and adds the first bitmap variable to the confirmation frame or veto frame and sends it to the peer end to inform the peer end of the local reception situation. The transmission device at the opposite end can resend the information frame whose transmission failed according to the received confirmation frame or veto frame. In the present invention, when the sender loses more than 2 frames of information, especially when the sending sequence numbers of the lost frames are discontinuous, the receiver can inform the sender what information has been lost through a confirmation frame or a veto frame. Frames do not need to be confirmed by both parties for multiple retransmission interactions, but can complete the retransmission of all lost information frames through one retransmission interaction, thereby improving the efficiency of retransmission.
所述方法实施例是与所述装置实施例相对应的,在方法实施例中未详细描述的部分参照装置实施例中相关部分的描述即可,在装置实施例中未详细描述的部分参照方法实施例中相关部分的描述即可。The method embodiment corresponds to the device embodiment. For the part not described in detail in the method embodiment, refer to the description of the relevant part in the device embodiment. For the part not described in detail in the device embodiment, refer to the method The description of the relevant part in the embodiment is enough.
本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,包括如上述方法实施例的步骤,所述的存储介质,如:磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, including the steps of the above-mentioned method embodiment, described storage medium, such as: magnetic disk, optical disc, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) wait.
在本发明各方法实施例中,所述各步骤的序号并不能用于限定各步骤的先后顺序,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,对各步骤的先后变化也在本发明的保护范围之内。In each method embodiment of the present invention, the sequence number of each step can not be used to limit the order of each step. For those of ordinary skill in the art, the order of each step can be changed without paying creative work. Also within the protection scope of the present invention.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010289077.7A CN102404098B (en) | 2010-09-14 | 2010-09-14 | Transmission method and transmission device of link access procedure of D channel |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010289077.7A CN102404098B (en) | 2010-09-14 | 2010-09-14 | Transmission method and transmission device of link access procedure of D channel |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102404098A true CN102404098A (en) | 2012-04-04 |
| CN102404098B CN102404098B (en) | 2015-01-07 |
Family
ID=45885921
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201010289077.7A Expired - Fee Related CN102404098B (en) | 2010-09-14 | 2010-09-14 | Transmission method and transmission device of link access procedure of D channel |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102404098B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107276728A (en) * | 2017-06-12 | 2017-10-20 | 北京三快在线科技有限公司 | A kind of data transmission method and device |
| CN112291047A (en) * | 2020-11-16 | 2021-01-29 | 北京升哲科技有限公司 | Transmission confirmation method, device, equipment and storage medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1671225A (en) * | 2004-03-16 | 2005-09-21 | 华为技术有限公司 | Method for judging broken link of Link Access Procedure on D-channel (LAPD) |
| US7161978B2 (en) * | 2001-08-29 | 2007-01-09 | Texas Instruments Incorporated | Transmit and receive window synchronization |
| CN101237406A (en) * | 2008-02-29 | 2008-08-06 | 中兴通讯股份有限公司 | A method for implementing D channel link access procedure |
| CN101494531A (en) * | 2009-02-24 | 2009-07-29 | 华为技术有限公司 | Method and apparatus for adjusting slide window |
| CN101729226A (en) * | 2008-10-24 | 2010-06-09 | 中兴通讯股份有限公司 | Communication system and method for constant-scheduling hybrid automatic retransmission |
| CN101741525A (en) * | 2008-11-07 | 2010-06-16 | 中兴通讯股份有限公司 | Method and system for processing data retransmission of hybrid automatic retransmission request |
| CN101765194A (en) * | 2009-12-28 | 2010-06-30 | 中兴通讯股份有限公司 | Method and system for transmitting data frame as well as base station subsystem device |
| CN101800631A (en) * | 2010-01-27 | 2010-08-11 | 华为终端有限公司 | Frame processing method and device in logic link control |
-
2010
- 2010-09-14 CN CN201010289077.7A patent/CN102404098B/en not_active Expired - Fee Related
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7161978B2 (en) * | 2001-08-29 | 2007-01-09 | Texas Instruments Incorporated | Transmit and receive window synchronization |
| CN1671225A (en) * | 2004-03-16 | 2005-09-21 | 华为技术有限公司 | Method for judging broken link of Link Access Procedure on D-channel (LAPD) |
| CN101237406A (en) * | 2008-02-29 | 2008-08-06 | 中兴通讯股份有限公司 | A method for implementing D channel link access procedure |
| CN101729226A (en) * | 2008-10-24 | 2010-06-09 | 中兴通讯股份有限公司 | Communication system and method for constant-scheduling hybrid automatic retransmission |
| CN101741525A (en) * | 2008-11-07 | 2010-06-16 | 中兴通讯股份有限公司 | Method and system for processing data retransmission of hybrid automatic retransmission request |
| CN101494531A (en) * | 2009-02-24 | 2009-07-29 | 华为技术有限公司 | Method and apparatus for adjusting slide window |
| CN101765194A (en) * | 2009-12-28 | 2010-06-30 | 中兴通讯股份有限公司 | Method and system for transmitting data frame as well as base station subsystem device |
| CN101800631A (en) * | 2010-01-27 | 2010-08-11 | 华为终端有限公司 | Frame processing method and device in logic link control |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107276728A (en) * | 2017-06-12 | 2017-10-20 | 北京三快在线科技有限公司 | A kind of data transmission method and device |
| CN112291047A (en) * | 2020-11-16 | 2021-01-29 | 北京升哲科技有限公司 | Transmission confirmation method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102404098B (en) | 2015-01-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10623146B2 (en) | Method and arrangements in a telecommunication system for handling status information of data units | |
| US7284179B2 (en) | Window based stall avoidance mechanism for high speed wireless communication system | |
| US8402343B2 (en) | Reliable packet cut-through | |
| KR101139996B1 (en) | Data flow control with duplicate acknowledgment | |
| CA2466231A1 (en) | Time-aware best-effort hole-filling retry method and system for network communications | |
| US6662330B1 (en) | Joint range reject automatic repeat request protocol | |
| CN104782072A (en) | System and method adopting a reliable stop-and-wait hybrid automatic repeat request protocol | |
| KR20070036068A (en) | Method of, and system for, communicating data, and a station for transmitting data | |
| CN106330412A (en) | Method and device for sending RLC PDU using HARQ ACK/NACK | |
| EP2241044B1 (en) | Method of communication, in particular with capability of frame abortion or retransmission indication, between a transmitter and a receiver based on frames, and corresponding communication node | |
| CN105284070A (en) | Method and apparatus for using more transmission opportunities in a distributed network topology utilizing limited HARQ processes | |
| JP5279730B2 (en) | Improved retransmission method and apparatus | |
| KR101611663B1 (en) | Data communications using connectionless-oriented protocol | |
| CN101174927B (en) | Feedback method for processing data accepting state and its receiving and transmitting device | |
| CN102404098B (en) | Transmission method and transmission device of link access procedure of D channel | |
| CN101155013B (en) | HARQ and ARQ interactive cooperation method | |
| CN101359980B (en) | Exception processing method in RLC data transmission process | |
| CN117040692A (en) | Method and device for transmitting service data, electronic equipment and storage medium | |
| CN100499444C (en) | Data frame transmission method, device and system based on no-answer mechanism | |
| EP0993139B1 (en) | Go-back-N automatic-repeat-request protocol on virtual circuits | |
| CN111405609A (en) | A data transmission method, apparatus, system, medium and equipment | |
| JP2017220711A (en) | Communication device, communication method and computer program | |
| HK1190841B (en) | A method and an arrangement in a telecommunication system | |
| HK1190841A (en) | A method and an arrangement in a telecommunication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20120404 Assignee: SANECHIPS TECHNOLOGY Co.,Ltd. Assignor: ZTE Corp. Contract record no.: 2015440020319 Denomination of invention: Transmission method and transmission device of link access procedure of D channel Granted publication date: 20150107 License type: Common License Record date: 20151123 |
|
| LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20170605 Address after: 226200 No. 46 Industrial Park, Nanyang Town, Nantong, Jiangsu, Qidong Patentee after: Qidong planting valve factory Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice Patentee before: ZTE Corp. |
|
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220314 Address after: 226000 group 7, Hefeng village, Nanyang Town, Qidong City, Nantong City, Jiangsu Province (in Qidong Rongsheng Machinery Co., Ltd.) Patentee after: Nantong Liangrui machining Co.,Ltd. Address before: 226200 No.46, Nanyang Town Industrial Park, Qidong City, Nantong City, Jiangsu Province Patentee before: Qidong planting valve factory |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150107 |