Background technology
In various communication systems, cascade network is a kind of very general networking mode.In cascade network, can comprise a main equipment and a plurality of slave unit, connect by the interface that connects link between these equipment, form the network of different topology types such as star, chain, ring-like or tree type.Generally in cascade network, each equipment all can comprise at least one transmit port and at least one receiving port, neighbouring device connects by the link between the port, and the General Definition main equipment is a down direction to the slave unit direction, and slave unit is a up direction to the main equipment direction.In communication network especially packet network, adopt the mode of hop to hop (hop-to-hop) to transmit usually, wherein, each jumping (hop) has identified the direct-connected one way link set between two equipment.
In Modern Communication System, especially in the cascade network scheme of distributed base station equipment, be that the high speed serialization link interface by cable or bearing optical fiber connects usually between each equipment, so the serially concatenated bus obtain more prevalent application.Fig. 1 shows the application of serially concatenated bus, the Serdes among the figure, i.e. and SERializer (serializer)/DESerializer (deserializer) is the mainstream technology of present high-speed interface.By the Serdes function, form serially concatenated bus structures between main equipment among Fig. 1 and the slave unit.In the serially concatenated bus run, mainly constitute: user data channel by three logical channels, control data passage and synchronizing information passage, main equipment and slave unit are shared these three logical channels, main equipment transmits the forward direction user face data by user data channel, slave unit transmits reverse user face data by this passage to main equipment, as the inphase quadrature after ovennodulation (In-Phase/Quadrature is called for short " IQ ") data; Main equipment is by the control data of control data channel transfer slave unit, control corresponding slave unit by setting the relevant address information of control data, slave unit utilizes this passage to the main equipment data feedback control, and control data generally is divided into physical layer control information and high-rise control information.
At Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, abbreviation " WCDMA ") in the distributed base station, corresponding radio equipment controller (the Radio EquipmentController of main equipment, be called for short " REC "), corresponding wireless device (the Radio Equipment of slave unit, be called for short " RE "), the interface between REC and the RE, between RE and the RE is common public radio interface (CommonPublic Radio Interface is called for short " CPRI ").Wherein, the CPRI interface is that 3G (Third Generation) Moblie (The Third Generation is called for short " 3G ") base station open interface platform development alliance is in order to solve the unmatched problem of interface between the distinct device manufacturer, the interface of a kind of cascade network of definition.
Fig. 2 illustrates the logical model of CPRI interface.Wherein, according to the difference of CPRI port function, in the CPRI standard, the CPRI port is divided into master port (Master Port, be called for short " M ") and from port (Slave Port is called for short " S ").
More than to the CPRI interface between the master-slave equipment in cascade network technology, serially concatenated bus structures and the cascade network roughly situation be illustrated, next further the control data in agreement framework, frame definition form and the CPRI superframe of CPRI interface is described.
CPRI interface protocol framework as shown in Figure 3.Wherein Ethernet (Ethernet) and High-Level Data Link Control (High-Level Data Link Control is called for short " HDLC ") mainly is the high-rise control data of carrying, finishes the communication carrier function between main equipment and the slave unit.
CPRI frame definition form as shown in Figure 4.Wherein, base-station node frame number (Node B FrameNumber is called for short " BFN ") is a basic frame of 10ms among the WCDMA.Darker regions is the control data territory among the figure.
The control data definition as shown in Figure 5 in the CPRI superframe.Need to prove, wherein SlowC﹠amp; M link (controlling maintenance channel at a slow speed) is the passage of carrying HDLC, Fast C﹠amp; M link (quick control maintenance channel) is the passage of carrying Ethernet.
In order to discern cascade RE, proposed on the basis of CPRI agreement, to expand at present, adopt the algorithm that distributes automatically based on Hop, referring to Fig. 6, wherein, each RE knows progression total on the current cascade bus and the progression Hop of self.
Networking kind between REC and the RE is many, and commonly used has: star-like, and chain, ring topology.RE must at first insert REC before RE and REC set up the proper communication link.
REC and RE can form ring-shaped network, the advantage of ring-shaped network is to provide ring-like service backup function, if promptly an end of ring takes place to cause providing professional unusually, an other termination that then can be switched to ring is gone into REC, thereby guarantees availability of traffics.
Insert REC for single-stage RE in the mode of encircling at present professional switch function is provided, networking mode as shown in Figure 7, active and standby REC all sends the SDI indication that is used to represent whether to carry out Forced Switch after startup, this indication sends continuously along with the basic frame of CPRI is uninterrupted.SDI indication value is 0, and expression is not switched, and value is that 1 expression needs to attempt carrying out professional Forced Switch.RE inserts (promptly the S port by RE inserts main REC) among Fig. 7 from main REC, and after switching, its networking formula is switched back RE and inserted REC (i.e. S port access by RE is equipped with REC) fully as shown in Figure 8, and the SDI of main REC indication value 1.
But, the present inventor finds, in the prior art, after RE one in the annular networking receives the SDI that represents to switch, to carry out switching services immediately, this scheme is only applicable to encircle the situation of having only single-stage RE, for the situation that has multistage RE on the ring, because multistage switching do not supported in the SDI indication, therefore can't realize the switch function of multistage RE.And the auto switching of CPRI interface fault is only supported in the SDI indication, can't support by the Client-initiated Forced Switch.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiments of the present invention are described in further detail below in conjunction with accompanying drawing.
First execution mode of the present invention relates to the RE reverse method, in the present embodiment, RE and active and standby REC makeup ring l network, as shown in Figure 9, RE0 is connected with the master port of main REC from port, RE1 is connected with the master port of RE0 from port, and RE2 is connected with the master port of RE1 from port, is equipped with the master port of REC and being connected from port of RE2.That is to say that before switching services took place, all RE in the annular networking all inserted from main REC.
The idiographic flow of present embodiment as shown in figure 10, in step 1010, RE receives the indication of switching from REC or higher level RE on both direction, when this RE receives that in one direction switching indication the time enters step 1020.Specifically, in annular networking as shown in Figure 9, main REC be equipped with REC and all send and switch indication, be switching services indication (Service Switch Indication is called for short " SSI "), this SSI can be made as 1 bit, be 0 be the expression need not to switch, be 1 be the expression need switch.RE promptly receives the indication of switching from REC or higher level RE respectively from master port with from the port on both direction.With the RE0 among Fig. 9 is example, RE0 is from receiving the SSI of autonomous REC from port, receive the SSI that is equipped with REC and sends by master port and (need send to RE0 by the transparent transmission of RE2 and RE1 owing to be equipped with the SSI of REC, therefore RE0 may only receive the SSI that main REC sends at the beginning, and can't receive the SSI of REC transmission fully, will be described below about transparent transmission).If with the RE1 among Fig. 9 is example, then RE1 is from receiving the SSI that main REC sends from port, receive the SSI (SSI of main REC sends to RE1 by the transparent transmission of RE0, and the SSI of REC sends to RE1 by the transparent transmission of RE2 fully, will be described below about transparent transmission) that is equipped with REC and sends by master port.If with the RE2 among Fig. 9 is example, then RE2 is from receiving the SSI that main REC sends from port, (SSI of main REC sends to RE2 by the transparent transmission of RE0 and RE1 to receive the SSI that provides REC for oneself from master port, therefore at the beginning RE2 from port with possibly receiving the SSI that main REC sends, will be described below about transparent transmission).
Then, enter step 1020, when RE received SSI in one direction, this RE was to this SSI of the RE of subordinate of this direction transparent transmission.If with the RE0 among Fig. 9 is example, then after RE0 is receiving the SSI of main REC, to the RE of subordinate of this direction, the i.e. SSI of this main REC of RE1 transparent transmission; If with the RE1 among Fig. 9 is example, suppose that this RE1 receives the SSI of the main REC of RE0 transparent transmission earlier, then RE1 is to the SSI of this main REC of RE2 transparent transmission; If with the RE2 among Fig. 9 is example, then after RE2 is receiving the SSI that is equipped with REC, should be equipped with the SSI of REC to the RE1 transparent transmission.
Need to prove that in the present embodiment, the interface between the RE, between RE and the REC is CPRI, SSI is carried in the field of expanding in the CPRI frame, with the Forced Switch of supporting business.CPRI standard frame after the expansion is as shown in table 1, and the field of overstriking is the field of expansion in the table.
Sub-Channel Number |
The subchannel purpose |
X
s=0
|
X
s=1
|
X
s=2
|
X
s=3
|
0 |
Synchronization timing |
Sync byte K28.5 |
HFN |
The BFN-low byte |
The BFN-high byte |
1 |
Control maintenance channel at a slow speed |
Control maintenance channel at a slow speed |
Control maintenance channel at a slow speed |
Control maintenance channel at a slow speed |
Control maintenance channel at a slow speed |
2 |
Agreement in layer one band |
Version number |
Initialization command |
Layer one is safeguarded order | Pointer p | |
3 |
Reserve bytes |
Reserve bytes |
Reserve bytes |
Reserve bytes |
Reserve bytes |
....... |
...... |
...... |
...... |
...... |
...... |
15 |
Reserve bytes |
Reserve bytes |
Reserve bytes |
Reserve bytes | Reserve bytes | |
16 |
Manufacturer's self defined area |
The PortID of related versions (port id)/LocationID (position ID) |
2 milliseconds of RTWP |
Hop progression |
Master port or from the attribute of port |
17 |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
18 |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
19 |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
The maintenance channel of control at a slow speed of expansion |
....... |
....... |
....... |
....... |
...... |
...... |
p-1 |
Manufacturer's self defined area |
Reserve bytes |
Reserve bytes |
Reserve bytes |
SSI |
Pointer p |
The quick control maintenance channel |
The quick control maintenance channel |
The quick control maintenance channel |
The quick control maintenance channel |
The quick control maintenance channel |
....... |
....... |
....... |
....... |
....... |
...... |
63 |
The quick control maintenance channel |
The quick control maintenance channel |
The quick control maintenance channel |
The quick control maintenance channel |
The quick control maintenance channel |
Table 1
Then, enter step 1030, RE judges that whether this RE is the final stage RE in the annular networking, and has received the SSI on the both direction.If judging this RE is not the final stage RE in the annular networking, or this RE do not receive the SSI on another direction as yet, then need not to do any processing again, gets back to step 1010, continues to receive on both direction REC SSI that send or higher level RE transparent transmission; As judge that this RE is the final stage RE in the annular networking, and received the SSI on the both direction, then enter step 1040.
Specifically, RE can judge in the following manner that whether this RE is the final stage RE in the ring-shaped network: whether the master port of judging this RE can receive the port attribute that send the opposite end, and this port attribute is the master port attribute, if judge that then this RE is the final stage RE in the ring-shaped network.With the RE2 among Fig. 9 is example, because the port relative with the master port of RE2 is for being equipped with the master port of REC, therefore, RE2 can receive the port attribute that this master port that is equipped with REC is sent, and this port attribute is the master port attribute, thereby judge this RE and be the final stage RE in the ring-shaped network, if this fashion of RE2 is not received the SSI on the both direction, then need not to do any processing again, get back to step 1010 and continue to receive, if RE2 has received the SSI on the both direction this moment, then enter step 1040.Because by the transparent transmission of RE0 and RE1, RE2 can receive the SSI of main REC, therefore, always enter step 1040.
In step 1040, the final stage RE in the ring-shaped network switches according to the SSI that is received on the both direction.Suppose that main REC sends SSI and is designated as and need switches, REC transmission SSI is designated as and need not to switch fully, promptly the SSI of main REC is 1, the SSI that promptly is equipped with REC is 0, so, RE2 need change the access direction, is that 0 direction inserts from receiving SSI, the SSI that promptly is switched to transmission is 0 the REC that is equipped with, as shown in figure 11.Certainly, if the SSI of main REC is 0, the SSI that is equipped with REC is 1, that is to say, from receiving that SSI is that 0 direction has inserted, then this RE2 still inserts from the direction of original access this RE2, need not to switch.
After RE2 switches, RE1 can judge that promptly this RE is that (master port of RE1 can be received the port attribute that the master port of RE2 is sent for final stage RE in the annular networking, and this port attribute is the master port attribute), therefore, when RE1 enters into step 1030, to judge that this RE is the final stage RE in the annular networking, if this fashion is not received the SSI on the both direction, then continue on both direction, to receive active and standby SSI, if received the SSI on the both direction this moment, then also will switch.Because by the transparent transmission of RE0 and RE2, RE1 always receives the SSI on the both direction, therefore, always switch, as shown in figure 12.
Need to prove, though after RE2 switches, as shown in figure 11, the master port of RE2 still can be received the port attribute that the master port of RE1 is sent, and this port attribute is the master port attribute, be that RE2 can judge that still this RE is the final stage RE in the annular networking, but, therefore can not do again and switch because this RE2 has been that 0 direction has inserted from SSI.
And the like, after RE1 switched, RE0 can judge that promptly this RE is that (master port of RE0 can be received the port attribute that the master port of RE1 is sent for final stage RE in the annular networking, and this port attribute is the master port attribute), therefore, RE0 also will switch, as shown in figure 13.
This shows, because RE switching when indication on receiving a direction, need this switch indication to the RE of subordinate of this direction transparent transmission, can guarantee therefore that each RE in the ring-shaped network can both receive from what active and standby REC sent out to switch indication.And, because final stage RE in annular networking is after indication switches according to switching of being received on the both direction, the higher level RE of this RE (SSI that receives is the higher level RE on 1 the direction) just will become the final stage RE in this annular networking of next round, the rest may be inferred, each RE in the ring-shaped network finally will switch according to the indication of switching of being received on the both direction, therefore, can realize the switching services function of ring-like multistage RE networking.
In addition, what deserves to be mentioned is, if it is the final stage RE in the chain networking (networking as shown in figure 14) that RE judges this RE, this final stage RE forbids switching according to the SSI that is received on the both direction, in order to avoid each RE in the chain networking can attempt switching, thereby the error of transmission of link takes place, have influence on business.Wherein, RE can judge in the following manner that whether this RE is the final stage RE in the chain networking: whether the master port of judging this RE losing lock, if losing lock judges that then this RE is the final stage RE in the chain networking, RE2 as shown in Figure 14.
Second execution mode of the present invention relates to a kind of RE reverse method, present embodiment is on the basis of first execution mode, also considered following situation: active and standby REC all sends the SSI that expression need not to switch, or all sends the SSI that expression need be switched.
That is to say that the SSI that active and standby REC sends simultaneously is 0, perhaps the SSI that sends simultaneously is 1.Sending SSI simultaneously for active and standby REC is 0 situation, and expression need not RE and switches, so the final stage RE in the annular networking still inserts from the direction of original access, need not to process, and keeps present situation to get final product.Sending SSI simultaneously for active and standby REC is 1 situation, expression needs RE to switch, because it is 1 SSI that two ports are all received, if therefore RE switches, then switch later probably because the SSI of opposite end also is 1 and refunds phenomenon, thereby produce ping-pong phenomenon, therefore for receiving that two is that the RE of 1 SSI is also still from the direction access of original access, do not carry out switching operation, to avoid producing ping-pong.
The 3rd execution mode of the present invention relates to a kind of loop network, as shown in figure 15, comprises RE0, RE1, RE2 and active and standby REC, wherein connects a REC respectively at the two ends of chain behind each RE serial connection chaining, and active and standby REC interconnects.In the present embodiment, between RE and other RE or and REC between interface be CPRI.
Specifically, comprise respectively in each RE: judge module is used for judging whether this RE is the final stage RE of ring-shaped network; Receiver module is used for receiving the indication of switching from REC or higher level RE on both direction; Forwarding module is used for switching when indication whenever receiving in one direction, and this switches indication to the RE of subordinate of this direction transparent transmission, and this forwarding module is carried in the field of expanding in the CPRI frame by switching indication, and this switches indication transparent transmission; Switch module, be used for when this judge module judges that this RE is the final stage RE of ring-shaped network, switch according to the indication of switching that this receiver module is received on both direction.Be not difficult to find,, can guarantee that each RE in the ring-shaped network can both receive from what active and standby REC sent out to switch indication by the transparent transmission of forwarding module.And, because final stage RE in annular networking is after indication switches according to switching of being received on the both direction, the higher level RE of this RE (receiving the higher level RE on the direction indication of switching that need switch) just will become the final stage RE in this annular networking of next round, the rest may be inferred, each RE in the ring-shaped network finally will switch according to the indication of switching of being received on the both direction, therefore, can realize the switching services function of ring-like multistage RE networking.
Wherein, judge module can judge in the following manner that whether this RE is the final stage RE in the ring-shaped network: whether the master port of judging this RE can receive the port attribute that send the opposite end, and this port attribute is the master port attribute, if judge that then this RE is the final stage RE in the ring-shaped network.
Switching the indication of switching that module one of can be in the following manner received on both direction according to this receiver module switches:
If this receiver module is received the indication of switching that need switch in one direction, on another direction, receive the indication of switching that need not to switch, and this RE is current from receiving that the indicated direction of switching that need switch inserts, then change and insert direction, from receiving that the indicated direction of switching that need not to switch inserts, be switched to and send the REC that switches indication that need not to switch.
If this receiver module is received the indication of switching that need switch in one direction, on another direction, receive the indication of switching that need not to switch, and this RE is from receiving that the indicated direction of switching that need not to switch inserts, then, forbid switching still from the direction access of original access.
If this receiver module is all received the indication of switching that need switch on both direction, perhaps all receive the indication of switching that need not to switch, then, forbid switching still from the direction access of original access.With after avoiding switching,, thereby avoid producing ping-pong again because on other direction, receive switching indication and refunding phenomenon of to switch.
Each module in the present embodiment is logic module, in actual applications, various physics realization mode can be arranged, and, present embodiment is that example describes to comprise 3 RE in the annular networking, and annular networking in actual applications also can comprise more or less RE.
In addition, what deserves to be mentioned is that judge module can be used for also judging that whether this RE is the final stage RE in the chain networking, if then indicate this to switch module and forbid switching according to the indication of switching of being received on the both direction.In order to avoid each RE in the chain networking can attempt switching, thereby the error of transmission of link taking place, has influence on business.This judge module can judge in the following manner that whether this RE is the final stage RE in the chain networking: whether the master port of judging this RE losing lock, if losing lock judges that then this RE is the final stage RE in the chain networking.
In sum, in embodiments of the present invention, RE receives the indication of switching from REC or RE on both direction, switch when indication whenever receiving in one direction, this switches indication to this RE to the RE of subordinate of this direction transparent transmission, if this RE is the final stage RE in the annular networking then switches according to the indication of switching of being received on the both direction.Because each RE switching when indication on receiving a direction, need all that this switches indication to the RE of subordinate of this direction transparent transmission, can guarantee therefore that final stage RE in the ring-shaped network can receive respectively from what active and standby REC sent out to switch indication, finish and switch.And, because final stage RE in annular networking is after indication switches according to switching of being received on the both direction, the higher level RE of this RE (receiving the higher level RE on the direction indication of switching that need switch) just will become the final stage RE in this annular networking of next round, the rest may be inferred, each RE in the ring-shaped network finally will switch according to the indication of switching of being received on the both direction, thereby realize the switching services function of ring-like multistage RE networking.
If the master port of this RE can be received the port attribute that send the opposite end, and this port attribute is the master port attribute, judges that then this RE is the final stage RE in the annular networking, for the determination methods of the final stage RE in the annular networking provides concrete execution mode.
If difference is indicated in switching that the final stage RE in the annular networking receives on both direction, then from receiving that the indicated direction of switching that need not to switch inserts, be switched to and send the REC that switches indication that need not to switch, if this RE inserts from this direction, then need not to carry out switching operation, for reverse method provides concrete execution mode.
If the final stage RE in the annular networking all receives the indication of switching that need switch on both direction, perhaps all receive the indication of switching that need not to switch, then this final stage RE still inserts from the direction of original access, need not to carry out switching operation, with after avoiding switching, again because on other direction, receive switching indication and refunding phenomenon of to switch, thereby avoided the ping-pong of generation.
For the final stage RE in the communication link protection, forbid that according to switching of being received on the both direction indication switches after, in order to avoid each RE in the chain networking can attempt switching, thereby the error of transmission of link takes place, have influence on business.
Though pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.