Summary of the invention
Consider the problems referred to above and make the present invention that for this reason, main purpose of the present invention is, the reliable communication method of a kind of baseband pool unit and remote radio unit (RRU) is provided, and may further comprise the steps:
Step S102, baseband pool unit and remote radio unit (RRU) establish a communications link, and in communicating to connect the process of foundation, both sides consult to send sequence number and Receive sequence number;
Step S104, the opposite end that receives is sent sequence number for baseband pool unit and remote radio unit (RRU) and the local reception sequence number compares, and carries out data processing according to comparative result; And
Step S106, baseband pool unit and remote radio unit (RRU) disconnect leading to and connect.
Step S102 can comprise: the period 1 that remote radio unit (RRU) sets with retransmission timer periodically sends to baseband pool unit and comprises first and send sequence number and the link setup request of logical address; And remote radio unit (RRU) is judged in the period 1 of predetermined number whether receive second link setup that sends sequence number that comprises that sends from baseband pool unit and respond, and communicate connection according to judged result.
If in the period 1 of predetermined number, remote radio unit (RRU) receives the link setup response, then connect, otherwise remote radio unit (RRU) resets and restarts and communicates by letter with baseband pool unit foundation.
Both sides consult to send sequence number and Receive sequence number can comprise: baseband pool unit receives and comprises the first link setup request that sends sequence number, and second Receive sequence number of this locality is changed into first send sequence number, and set up mapping table according to logical address; And remote radio unit (RRU) receives and comprises the second link setup response that sends sequence number, and first Receive sequence number of this locality is changed into second sends sequence number.
Step S104 comprises can repeat following steps, disconnects with remote radio unit (RRU) up to baseband pool unit being connected: periodically send to remote radio unit (RRU) and comprise first message transmission that sends sequence number the second round that baseband pool unit sets with retransmission timer; Comprise first message transmission that sends sequence number if remote radio unit (RRU) receives, then send sequence number and the comparison of second Receive sequence number, and carry out corresponding data processing according to comparative result with first; And baseband pool unit judges in the second round of predetermined number, whether receives second transmission response that sends sequence number that comprises that remote radio unit (RRU) sends, and carries out corresponding data processing according to judged result.
If first sends sequence number equates with second Receive sequence number or first to send sequence number be last one second Receive sequence number, then remote radio unit (RRU) upgrades second Receive sequence number, and sends transmission response to baseband pool unit, otherwise, abandon message transmission.
Equate with second Receive sequence number if first sends sequence number, then when baseband pool unit sends transmission response, transmitting message transmission to application layer.
If in the second round of predetermined number, baseband pool unit receives transmission response, then with the retransmission timer zero clearing and with first renewal that sends sequence number, and carries out the transmission of next data, otherwise, be connected disconnection between baseband pool unit and the remote radio unit (RRU).
Step S104 can comprise the repetition following steps, disconnects with remote radio unit (RRU) up to baseband pool unit being connected: periodically send to baseband pool unit and comprise second message transmission that sends sequence number the second round that remote radio unit (RRU) sets with retransmission timer; Comprise second message transmission that sends sequence number if baseband pool unit receives, then send sequence number and the comparison of first Receive sequence number, and carry out corresponding data processing according to comparative result with second; And remote radio unit (RRU) judges in the second round of predetermined number, whether receives first transmission response that sends sequence number that comprises that baseband pool unit sends, and carries out corresponding data processing according to judged result.
If second sends sequence number equates with first Receive sequence number or second to send sequence number be last one first Receive sequence number, then baseband pool unit upgrades first Receive sequence number, and sends transmission response to remote radio unit (RRU), otherwise, abandon message transmission.
Equate with first Receive sequence number if second sends sequence number, then when remote radio unit (RRU) sends transmission response, transmitting message transmission to application layer.
If in the second round of predetermined number, remote radio unit (RRU) receives transmission response, then with the retransmission timer zero clearing and with second renewal that sends sequence number, and carries out the transmission of next data, otherwise, be connected disconnection between baseband pool unit and the remote radio unit (RRU).
Message transmission comprises that connection foundation does not have the keep-alive message that sends under the transfer of data situation afterwards in the period 4 that the keep-alive timer is set.
If be connected disconnection between baseband pool unit and the remote radio unit (RRU), then the data dump that will not send with parameter initialization, and rebulids connection.
Step S106 can comprise: baseband pool unit or remote radio unit (RRU) periodically send turn-off request to the remote radio unit (RRU) or the baseband pool unit of opposite end with the period 3 that retransmission timer sets; If the remote radio unit (RRU) of opposite end or baseband pool unit receive turn-off request, then close response to baseband pool unit or remote radio unit (RRU) transmission; And if baseband pool unit or remote radio unit (RRU) receive not receive in the period 3 of closing response or predetermined number and close response, all disconnect and connecting.
First and second send sequence number and first and second renewals that send sequence number can be and send sequence number first and second respectively and first and second send sequence number and add 1.
A kind of RRU has been proposed with data transmission manner between the BBU by said method.RRU communicates by letter with BBU and uses ripe UDP transport layer protocol and stop to wait for that agreement realizes the flow control and the error control of transfer of data.Realize simply satisfying big as far as possible demand with as far as possible little expense.The difficulty that has reduced the different manufacturers cooperative development and safeguarded in the future.Thereby the reduction product cost improves cost performance of product to improve product market competitiveness.
With logical address, IP address and link No. carry out unique sign to RRU with certain the bar link between the BBU, are indifferent to network topology structure difference, the connection management of convenient communication.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
The invention provides a kind of in conjunction with udp protocol with stop to wait for that agreement (being called the SUDP agreement) provides the method for carrying out reliable data transmission between RRU and the BBU, this method has guaranteed the reliable real-time transmission between RRU and the BBU, major advantage is realization and safeguards simply, and is particularly suitable for different manufacturers cooperative development situation.
Utilize SUDP to communicate main flow process to be: the foundation that communicates to connect, data communication, the keep-alive that communicates to connect communicates to connect dismounting.
Fig. 1 is the flow chart that illustrates according to the reliable communication method of baseband pool unit of the present invention and remote radio unit (RRU).
With reference to Fig. 1, the reliable communication method of a kind of baseband pool unit and remote radio unit (RRU) may further comprise the steps:
Step S102, baseband pool unit and remote radio unit (RRU) establish a communications link, and in communicating to connect the process of foundation, both sides consult to send sequence number and Receive sequence number;
Step S104, the opposite end that receives is sent sequence number for baseband pool unit and remote radio unit (RRU) and the local reception sequence number compares, and carries out data processing according to comparative result; And
Step S106, baseband pool unit and remote radio unit (RRU) disconnect leading to and connect.
Step S102 can comprise: the period 1 that remote radio unit (RRU) sets with retransmission timer periodically sends to baseband pool unit and comprises first and send sequence number and the link setup request of logical address; And remote radio unit (RRU) is judged in the period 1 of predetermined number whether receive second link setup that sends sequence number that comprises that sends from baseband pool unit and respond, and communicate connection according to judged result.
If in the period 1 of predetermined number, remote radio unit (RRU) receives the link setup response, then connect, otherwise remote radio unit (RRU) resets and restarts and communicates by letter with baseband pool unit foundation.
Both sides consult to send sequence number and Receive sequence number can comprise: baseband pool unit receives and comprises the first link setup request that sends sequence number, and second Receive sequence number of this locality is changed into first send sequence number, and set up mapping table according to logical address; And remote radio unit (RRU) receives and comprises the second link setup response that sends sequence number, and first Receive sequence number of this locality is changed into second sends sequence number.
Step S104 comprises can repeat following steps, disconnects with remote radio unit (RRU) up to baseband pool unit being connected: periodically send to remote radio unit (RRU) and comprise first message transmission that sends sequence number the second round that baseband pool unit sets with retransmission timer; Comprise first message transmission that sends sequence number if remote radio unit (RRU) receives, then send sequence number and the comparison of second Receive sequence number, and carry out corresponding data processing according to comparative result with first; And baseband pool unit judges in the second round of predetermined number, whether receives second transmission response that sends sequence number that comprises that remote radio unit (RRU) sends, and carries out corresponding data processing according to judged result.
If first sends sequence number equates with second Receive sequence number or first to send sequence number be last one second Receive sequence number, then remote radio unit (RRU) upgrades second Receive sequence number, and sends transmission response to baseband pool unit, otherwise, abandon message transmission.
Equate with second Receive sequence number if first sends sequence number, then when baseband pool unit sends transmission response, transmitting message transmission to application layer.
If in the second round of predetermined number, baseband pool unit receives transmission response, then with the retransmission timer zero clearing and with first renewal that sends sequence number, and carry out the transmission of data, otherwise, be connected disconnection between baseband pool unit and the remote radio unit (RRU).
Step S104 can comprise the repetition following steps, disconnects with remote radio unit (RRU) up to baseband pool unit being connected: periodically send to baseband pool unit and comprise second message transmission that sends sequence number the second round that remote radio unit (RRU) sets with retransmission timer; Comprise second message transmission that sends sequence number if baseband pool unit receives, then send sequence number and the comparison of first Receive sequence number, and carry out corresponding data processing according to comparative result with second; And remote radio unit (RRU) judges in the second round of predetermined number, whether receives first transmission response that sends sequence number that comprises that baseband pool unit sends, and carries out corresponding data processing according to judged result.
If second sends sequence number equates with first Receive sequence number or second to send sequence number be last one first Receive sequence number, then baseband pool unit upgrades first Receive sequence number, and sends transmission response to remote radio unit (RRU), otherwise, abandon message transmission.
Equate with first Receive sequence number if second sends sequence number, then when remote radio unit (RRU) sends transmission response, transmitting message transmission to application layer.
If in the second round of predetermined number, remote radio unit (RRU) receives transmission response, then with the retransmission timer zero clearing and with second renewal that sends sequence number, and carries out the transmission of next data, otherwise, be connected disconnection between baseband pool unit and the remote radio unit (RRU).
Message transmission comprises that connection foundation does not have the keep-alive message that sends under the transfer of data situation afterwards in the period 4 that the keep-alive timer is set.
If be connected disconnection between baseband pool unit and the remote radio unit (RRU), then the data dump that will not send with parameter initialization, and rebulids connection.
Step S106 can comprise: baseband pool unit or remote radio unit (RRU) periodically send turn-off request to the remote radio unit (RRU) or the baseband pool unit of opposite end with the period 3 that retransmission timer sets; If the remote radio unit (RRU) of opposite end or baseband pool unit receive turn-off request, then close response to baseband pool unit or remote radio unit (RRU) transmission; And if baseband pool unit or remote radio unit (RRU) receive not receive in the period 3 of closing response or predetermined number and close response, all disconnect and connecting.
First and second send sequence number and first and second renewals that send sequence number can be and send sequence number first and second respectively and first and second send sequence number and add 1.
With reference to Fig. 2 and Fig. 3, said process is described in more detail.
1.RRU send the link setup request, and retransmission timer be set, wait for the BBU response.Request message comprises the logical address of RRU, if timer expiry does not still obtain the link setup response of BBU end then retransmits the link setup request, if do not receive that still link setup is responded then RRU resets after repeatedly retransmitting.If successfully receiving the link setup response of BBU cancels timer and carried out for the 3rd step.
2.BBU after connecing the link setup request of correctly receiving RRU, respond this request.The IP address of the RRU that BBU gets access to from the link setup request and the logical address of RRU and set up logical address/IP address/link No. mapping table (logical address: LinkNo:IP) (referring to table 1), according to communicating to connect of logical address/IP address/RRU of link No. unique identification and BBU.
IP | Logical address | Link No. |
IP I | LOGA I | 0 |
IP II | LOGA II | 1 |
IP III | LOGA III | 2 |
IP IV | LOGA IV | 3 |
Table 1, logical address/IP address/link No. mapping table
3.RRU after receiving the link setup response, think that link setup is successful.Send on the link of initialization local terminal and receive relevant parameter, carry out data and send.
4.RRU after message sends, retransmission timer is set, waits for the data response of opposite end.Regularly it receives the opposite end data response before overtime, then cancels retransmission timer, and retransmission count is clear 0, and upgrading transmits Sequence Number continues to send next data message; If the no user data sent and then carried out for the 6th step this moment; If the overtime data response of still not receiving of retransmission timer is then retransmitted this message.Repeatedly retransmit failure and think that then link disconnects, carried out for the 1st step.
5.BBU after receiving message, check in the message with sequence number (being designated as VS), whether wish with local terminal the sequence number (being designated as VR) that receives equates to be VS==VR, if equate then receive this message and be given to the user and upgrade local terminal Receive sequence number VR=(VR+1) mod (256) (supposing that herein the test serial number mould is 256).If message be a last repetition message promptly (VS+1) mod (256)=VR then only respond this message but be not transmitted to the user, more than two kinds of situations outside message then directly abandon.
6. hypothesis BBU end no user data need to send, and then are in time to understand the road situation that connects, and the BBU end is provided with the keep-alive timer, sends keep-alive message behind timer expiry.Then, enter the transmission message flow and promptly forwarded for the 4th step (be full-duplex communication between RRU and the BBU, RRU is in full accord to RRU to BBU and BBU) to.
7. after communication finished, RRU sent the connection closed request to BBU, and retransmission timer is set awaited a response.
8.BBU after receiving that RRU closes connection request, return response request and close connection.
9.RRU receive after the response of BBU linkage flag to closing.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.