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 set up in the process in the communication connection, and 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 break off communication with remote radio unit (RRU) and are connected.
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; Whether and remote radio unit (RRU) judges in the period 1 of predetermined number, receive from what baseband pool unit sent to comprise the second link setup response that send sequence number, 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 send sequence number, 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 send sequence number, and first Receive sequence number of this locality is changed into second sends sequence number.
Step S104 comprises can repeat following steps, breaks off up to baseband pool unit and remote radio unit (RRU) being connected: periodically comprise second message transmission that send sequence number to the remote radio unit (RRU) transmission second round that baseband pool unit sets with retransmission timer; Comprise second message transmission that send sequence number if remote radio unit (RRU) receives, then send sequence number second and first Receive sequence number relatively, and carry out corresponding data processing according to comparative result; And baseband pool unit judges in the second round of predetermined number, and what whether receive that remote radio unit (RRU) sends comprises first transmission response that send sequence number, 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 remote radio unit (RRU) upgrades first Receive sequence number, and sends transmission response to baseband pool unit, otherwise, abandon message transmission.
Equate with first Receive sequence number if second 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 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).
Step S104 can comprise the repetition following steps, breaks off up to baseband pool unit and remote radio unit (RRU) being connected: periodically comprise first message transmission that send sequence number to the baseband pool unit transmission second round that remote radio unit (RRU) sets with retransmission timer; Comprise first message transmission that send sequence number if baseband pool unit receives, then send sequence number first and second Receive sequence number relatively, and carry out corresponding data processing according to comparative result; And remote radio unit (RRU) judges in the second round of predetermined number, and what whether receive that baseband pool unit sends comprises second transmission response that send sequence number, 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 baseband pool unit upgrades second Receive sequence number, and sends transmission response to remote radio unit (RRU), otherwise, abandon message transmission.
Equate with second Receive sequence number if first 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 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).
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), the data dump that then 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 send response closing to baseband pool unit or remote radio unit (RRU); And if baseband pool unit or remote radio unit (RRU) receive in period 3 of response closing or predetermined number and do not receive response closing, all break off and connecting.
First and second send sequence number and the renewal of first and second Receive sequence numbers can be and sends sequence number first and second respectively and first and second Receive sequence numbers add 1.
A kind of RRU has been proposed with data transmission manner between the BBU through said method.RRU communicates by letter with BBU and uses ripe UDP transport layer protocol to wait for that with stopping agreement realizing 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.Different manufacturers cooperative development and the difficulty of safeguarding have in the future been reduced.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 specification subsequently, and, partly from specification, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in the specification of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
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 explanation and explains the present invention, and be not used in qualification the present invention.
The invention provides a kind of combination udp protocol and 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 communication establishment of connection, data communication, the keep-alive that communication connects, communication connect removes.
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 set up in the process in the communication connection, and 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) break off 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; Whether and remote radio unit (RRU) judges in the period 1 of predetermined number, receive from what baseband pool unit sent to comprise the second link setup response that send sequence number, 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 send sequence number, 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 send sequence number, and first Receive sequence number of this locality is changed into second sends sequence number.
Step S104 comprises can repeat following steps, breaks off up to baseband pool unit and remote radio unit (RRU) being connected: periodically comprise second message transmission that send sequence number to the remote radio unit (RRU) transmission second round that baseband pool unit sets with retransmission timer; Comprise second message transmission that send sequence number if remote radio unit (RRU) receives, then send sequence number second and first Receive sequence number relatively, and carry out corresponding data processing according to comparative result; And baseband pool unit judges in the second round of predetermined number, and what whether receive that remote radio unit (RRU) sends comprises first transmission response that send sequence number, 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 remote radio unit (RRU) upgrades first Receive sequence number, and sends transmission response to baseband pool unit, otherwise, abandon message transmission.
Equate with first Receive sequence number if second 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 second 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, breaks off up to baseband pool unit and remote radio unit (RRU) being connected: periodically comprise first message transmission that send sequence number to the baseband pool unit transmission second round that remote radio unit (RRU) sets with retransmission timer; Comprise first message transmission that send sequence number if baseband pool unit receives, then send sequence number first and second Receive sequence number relatively, and carry out corresponding data processing according to comparative result; And remote radio unit (RRU) judges in the second round of predetermined number, and what whether receive that baseband pool unit sends comprises second transmission response that send sequence number, 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 baseband pool unit upgrades second Receive sequence number, and sends transmission response to remote radio unit (RRU), otherwise, abandon message transmission.
Equate with second Receive sequence number if first 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 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).
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), the data dump that then 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 send response closing to baseband pool unit or remote radio unit (RRU); And if baseband pool unit or remote radio unit (RRU) receive in period 3 of response closing or predetermined number and do not receive response closing, all break off 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, response should request.The IP address of the RRU that BBU gets access to from the link setup request and the logical address of RRU are also set up logical address/IP address/link No. mapping table (logical address: LinkNo:IP) (referring to table 1) are connected with the communication of BBU according to logical address/IP address/RRU of link No. unique identification.
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 were sent and were 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 breaks off, carried out for the 1st step.
5.BBU after receiving message; Inspection in the message with sequence number (being designated as VS); Whether hope 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 here 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 situation 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, behind timer expiry, sends keep-alive message.Then, get into 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 merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.