Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method that local exchange link and non-local swap link switch mutually, the decline of voice quality can avoid LS link and non-LS link switching time.
In order to address the above problem, the invention provides a kind of method that local exchange link and non-local swap link switch mutually, comprise: in local exchange LS link and non-LS Link State handoff procedure, both received and dispatched non-LS link data bag base station, also LS link data bag is received and dispatched, but only the effective data packets receiving is processed.
Further, described base station will be processed after the data pack buffer a period of time receiving from LS link again, and this cache-time is that base station receives packet and receives the time difference of packet from LS link or be base station sends packet arrival the other side base station time at non-LS link from non-LS link.
Further, in the time that terminal is LS link from non-LS link switching, the base station of receiving LS link establishment order sends packet to the other side base station, start to receive the packet that send the other side base station simultaneously, and transceiving data bag on non-LS link is continued in described base station, but non-LS link data bag is only processed in described base station, sends to counterpart terminal after processing.
Further, receive the backward base station controller of the packet of sending the other side base station when described base station and return to response message, inform that described base station controller received LS link data bag, and transfer to and process LS link data bag, stop processing the non-LS link data bag that TC sends;
Receive after the response message of returning both sides base station when base station controller, notify described both sides base station to remove non-LS link, described non-LS link is removed after receiving this notice in base station.
Further, receive the backward base station controller of the packet of sending the other side base station when described base station and return to response message, inform that described base station controller received LS link data bag, and continue to process non-LS link data bag;
Receive after the response message of returning both sides base station when base station controller, notify described both sides base station to remove non-LS link;
Described base station is received after the notice of the non-LS link of described dismounting and is transferred to and process LS link data bag, and removes described non-LS link.
Further, in the time that terminal is non-LS link from LS link switching, the base station of receiving non-LS link establishment order sends packet to base station controller, start to receive the packet that base station controller is sent simultaneously, and transceiving data bag on LS link is continued in described base station, but LS link data bag is only processed in described base station, sends to counterpart terminal after processing.
Further, the backward base station controller of packet of sending when described base station As-received station control returns to response message, inform that described base station controller received non-LS link data bag, but LS link data bag is still processed in described base station;
After base station controller is received second response message, notify both sides base station to remove LS link through Preset Time, receive that the base station of described notice starts to process non-LS link data bag, stop processing LS link data bag, and remove LS link.
Further, after the notice of described dismounting LS link is received in base station, process immediately the packet receiving from non-LS link, or handle after the packet of the reception of LS link buffer memory and process again the packet receiving from non-LS link.
Further, described base station is distinguished LS link data bag and non-LS link data bag in the following manner: in the time that packet is time division multiplexing tdm form, base station is distinguished by the form of packet; In the time that packet is IP form, base station is distinguished by the port or the IP address that receive packet.
Further, described terminal is the different terminals under same base station, or different terminals under different base station.
In sum, the invention provides a kind of method that local exchange link and non-local swap link switch mutually, while having realized LS link and non-LS link switching, the seamless link of voice, has avoided the decline of voice quality, has improved user's experience.
Embodiment
The invention provides a kind of method that local exchange link and non-local swap link switch mutually, in LS link and non-LS Link State handoff procedure, both received and dispatched non-LS link data bag base station, also LS link data bag is received and dispatched, but only the effective data packets receiving is processed.
A kind of method that the present embodiment provides local exchange link and non-local swap link mutually to switch, after receiving LS link establishment order or non-LS link establishment order, BTS adopts two two originating party formulas of receiving, in stateful switchover process, BTS is both to the non-LS link data bag (downlink data packet of A mouth, it is the packet that TC sends, be called for short downlink data packet) receive and dispatch, also LS link data bag (the upstream data bag that the other side BTS sends is called for short upstream data bag) is received and dispatched.Although BTS can receive the packet of LS link and non-LS link, BTS only selects effective data packets wherein to process.
In addition, due to the delay problem of network, will cause in the handoff procedure of LS and non-LS, the VoP of LS and the VoP of non-LS differ the time of DELAY packet all the time.This delay will cause speech interrupted (when non-LS switches to LS) or speech to repeat (when LS switches to non-LS).This just needs BTS to carry out processing after buffer memory to the packet on the LS link receiving again, on LS link, to after the equal buffer memory DELAY of each packet receiving, process again, corresponding DELAY the packet of time D ELAY of this buffer memory, its size is, BTS receives packet and the time difference that receives packet from LS link from non-LS link, usually, the time delay that BTS receives packet from LS link is negligible, therefore, the time of DELAY packet can think that BTS sends the time of packet arrival the other side BTS on non-LS link, it is the time of BTS1 → TC1 → MSC → TC2 → BTS2.Therefore, handoff procedure from non-LS to LS, or handoff procedure from LS to non-LS, BTS should be by processing after the each data pack buffer DELAY receiving on LS link again (front DELAY the packet elder generation buffer memory that is about to receive starts to process first packet when receiving DELAY+1 packet).
Switch from non-LS state to LS state below, and LS state switches the specific descriptions the present invention of this two aspect to non-LS state.Whether set up and remove the determination methods of local exchange and when initiate the foundation of local exchange and remove and do not belong to content of the present invention.Due to IP and TDM form similar, below main by being described concrete implementation procedure under IP world.
(1) switched to LS state by non-LS state, as shown in Figure 3.It is (as overweight in being discovery bandwidth load in the time that BSC need to be switched to LS state by non-LS state, or while having completed supplementary service or resource grant), BSC just can, according to the flow process request MSC of Fig. 3 by current non-LS state, change and become LS state.Its idiographic flow is described below:
Step 301, in the time that BSC finds to carry out non-LS link to LS link switching, BSC sends LS handover request to MSC.
Step 302, MSC receives after the LS request of BSC, returns to one set up LS link command to BSC.
Step 303, BSC receives after the LS order of MSC, carry out negotiating algorithm with both sides BTS, if the algorithm that both sides BTS and BSC adopt is compatible, BSC sends LS link establishment order to both sides BTS, and relevant parameter is sent to BTS, and relevant parameter comprises IP address and the MAC Address etc. of call the opposing party BTS.
Step 304, BTS receives after the LS link establishment order that BSC sends over, and first sends packet according to the IP address receiving to the other side BTS, starts to receive the packet that the other side BTS sends over simultaneously; Now two two packets of sending out, the continuation transceiving data bags on non-LS link to the other side BTS transceiving data bag time received of BTS; After BTS receives the packet that the other side BTS sends over, BTS returns to response message to BSC, informs that BSC has received the packet of LS link.The two paths of data bag that BTS receives is all that effectively therefore BTS can select a road to process from two paths of data bag, can be to transfer to processing LS link data bag, and can be also to process non-LS link data bag.When processing, should be noted that synchronizing process, see thereafter and describe.
The two idiographic flows of receiving two of the BTS of calling both sides (BTS1 and BTS2) realization are herein:
1) BTS1 and BTS2 are by the non-LS link transmit-receive packet of TC and core net, and data link is expressed as BTS1 ← → BSC (TC) ← → MSC ← → BSC (TC) ← → BTS2.
2) the non-LS link BTS1 and BTS2 are receiving after LS link establishment order, 1) remains unchanged, and calling both sides BTS is still by the maintenance of conversing of this link.
3) BTS1 copies the packet that sends to TC, sends after being then packaged into MAC packet, and this MAC packet is containing the IP address of the IP address of active BTS1 and MAC Address, object BTS2 and MAC Address, port number information.
BTS2 copies the packet that sends to TC, sends after being then packaged into MAC packet, and this MAC packet is containing the IP address of the IP address of active BTS2 and MAC Address, object BTS1 and MAC Address, port number information.
4) BTS1 judges the packet receiving (MAC packet herein generally adopts port numbers to judge), if MS1 is processed and sent to the packet that TC sends over; Be that BTS2 sends over if judge packet, BTS1 sends response message to BSC.
BTS2 judges the packet receiving, if MS2 is processed and sent to the packet that TC sends over; Be that BTS1 sends over if judge packet, BTS2 sends response message to BSC.
5) after BTS1 and BTS2 receive the packet that the other side sends, the LS link between BTS1 and BTS2 has just been set up, and LS link table is shown: BTS1 ← → BTS2.BTS1 and BTS2 be transceiving data bag on LS link.
Now, BTS1 and BTS2 have realized the two of packet and have received two.
Step 305, when calling both sides BTS is after BSC has sent response message, BSC now gets up the LS data link setup between both sides BTS.Then BSC sends non-LS link to both sides BTS and removes order.If in step 304, what BTS continued to process is non-LS link data bag, and BTS transfers processing LS link data bag to after receiving above-mentioned dismounting order, and removes non-LS link, and BSC also discharges corresponding TC resource.
In step 304 or 305, BTS is in the time transferring processing LS link data bag to, and in order to realize the synchronous of packet, BTS first processes successively after the data pack buffer DELAY of the LS link of reception again.The idiographic flow of DELAY packet of BTS buffer memory can be, but not limited to:
1) BTS distributes one section of region of memory (static state or dynamic assignment) according to precalculated DELAY size in internal memory.This region is divided into DELAY, and call number is respectively 0,1,2...... (DELAY-1).
2), when BTS receives first packet of LS link, it is in 0 region of memory that this packet is stored in to call number.
3) BTS receive the 2nd, 3, when 4......DELAY packet, by these packets be stored in successively that call number is respectively 1,2, in the internal memory of 3...... (DELAY-1).
4) when BTS receives (DELAY+1) packet, the packet that is 0 by call number takes out and processes or abandon, and then the packet of (DELAY+1) is stored in to call number and is 0 position.
5) when BTS receives (DELAY+2) packet, processing call number and be 1 packet, is 1 position and the current packet of receiving is stored in to call number.The like circulate, thereby realize the buffer memory of DELAY packet, make the VoP of LS link and non-LS link synchronous.
Step 306, BSC sends LS response message to MSC, informs that MSC removes TC resource.MSC removes user's face and A mouth related resource after receiving above-mentioned response message.Now MSC no longer sends any packet to A mouth, and A mouth data are no longer intersected.State has switched.
If in step 304, what BTS continued to process is non-LS link data bag, and BSC must first send non-LS link to BTS and remove order (corresponding step 305), then sends LS response message (corresponding step 306) to MSC; If in step 304, BTS transfers processing LS link data bag to, BSC both can first send non-LS link to BTS and remove order (corresponding step 305), send LS response message (corresponding step 306) to MSC again, also can first send LS response message (corresponding step 306) to MSC, then send non-LS link dismounting order (corresponding step 305) to BTS.
In this embodiment, BTS is switched in the process of processing upstream data by processing downlink data, and centre does not have the interruption of voice.
(2) switched to the state of non-LS by LS, as shown in Figure 4.If need to be switched to non-LS state (while having the processing of relevant supplementary service as MSC) from LS, just can current LS be removed according to the flow process of Fig. 4, return to initial non-LS treatment state.Its schematic flow sheet specifically describes as follows:
In this embodiment, no matter be before switching or in handoff procedure, BTS will process after first buffer memory a period of time of the packet receiving from LS link (being the time of DELAY packet) again.The idiographic flow of BTS buffer memory is shown in the description in step 305.
Step 401, MSC sends LS to BSC and removes order, carries LC (LocalCall the is called for short LC) mark of dismounting simultaneously.MSC is in the time sending dismounting LS order, and MSC has set up relevant A mouth resource, and the A mouth data cross of two parties is connected.
Step 402, BSC is receiving that LS removes after order, and BSC sets up the related resource of TC if needed, and then BSC sends the order of setting up non-LS link to both sides BTS.
Step 403, BTS receives after the order of BSC, sends the packet of corresponding format to BSC (TC).Receive the packet that BSC (TC) sends simultaneously.Now BTS adopts two two modes of sending out, i.e. both transceiving data bag on non-LS link, also transceiving data bags on LS link of BTS received.
After BTS receives the packet that BSC (TC) sends, return to response message to BSC, inform that BSC has received the packet of non-LS link, but due to the reason of network delay, the packet that one side BTS sends to BSC (TC) can not arrive the opposing party's BTS at once, therefore the TC packet that the BTS of calling both sides receives is invalid packet, so BTS still processes the upstream data bag of LS link.
The two idiographic flows of receiving two of the BTS of calling both sides (BTS1 and BTS2) realization are herein:
1) BTS1 and BTS2 are by LS link transmit-receive packet, and data link is expressed as BTS1 ← → BTS2.
2) the LS link BTS1 and BTS2 are receiving after non-LS link establishment order, 1) remains unchanged.Calling both sides is still by the maintenance of conversing of this link.
3) BTS1 copies the packet that sends to BTS2, is then packaged into MAC packet.The IP of the IP that source address BTS1 is contained in MAC packet the inside and MAC Address, destination address BSC and MAC Address, port number information.Finally by MAC Packet Generation.
BTS2 copies the packet that sends to BTS1, is then packaged into MAC packet.The IP of the IP that source address BTS2 is contained in MAC packet the inside and MAC Address, destination address BSC and MAC Address, port number information.Finally by MAC Packet Generation.
4) BTS1 judges the packet receiving (MAC packet herein generally adopts port numbers to judge), if MS1 is processed and sent to the packet that BTS2 sends over; Be that BSC sends over if judge packet, BTS1 sends response message to BSC.
BTS2 judges the packet receiving, if MS2 is processed and sent to the packet that BTS1 sends over; Be that BSC sends over if judge packet, BTS2 sends response message to BSC.
5) after BTS1 and BTS2 receive the packet that BSC sends, BTS1 and BTS2 be transceiving data bag on non-LS link, but now the packet of non-LS link is invalid.Non-LS link table is shown BTS1 ← → BSC (TC) ← → MSC ← → BSC (TC) ← → BTS2.
Now, BTS1 and BTS2 have realized the two of packet and have received two.
Step 404, when having received after the response message from calling both sides BTS, (receives after the response message of second BTS) BSC, the control link of non-LS is set up (but non-LS data link not necessarily set up, the packet that BTS sends to BSC (TC) has not necessarily arrived the other side BTS).After Preset Time, BSC sends the order of removing LS link to both sides BTS.BTS finishes two two sending out of receiving, and no longer to the other side BTS transceiving data bag, only to BSC (TC) transceiving data bag, BTS transfers the downlink data packet of processing non-LS link to, enters non-LS state.Now, BTS processes the effective data packets receiving from non-LS link immediately, can be also first to handle after DELAY packet of the reception of LS link buffer memory to process the packet receiving from non-LS link again.
The object that above-mentioned Preset Time is set is to guarantee that both sides BTS has received effective TC packet, its size is not less than the time that packet arrives the other side BTS from BSC (TC) and (is slightly larger than this time, excessively can make the switching time long), one timer can be set, when the timing order (its time Fixed Initial Point is that BSC receives the response message that second BTS sends) that then BSC removes LS link to both sides BTS transmission.
Step 405, BSC sends non-LS response message to MSC, normal non-LS link establishment.
In above-mentioned link switching process, BTS can distinguish non-LS link data bag (being the downlink data packet that BSC (TC) sends) and LS link data bag (being the upstream data bag that the other side BTS sends) in the following manner:
(a) in the time that packet is TDM (time division multiplexing) form of E1 environment, the form difference of up-downgoing packet, therefore BTS can distinguish by the form of packet;
(b) in the time that packet is the IP form under IP world, the form of up-downgoing packet is identical, and now BTS can distinguish by the port or the IP address that receive packet, and upstream data bag arrives BTS from downlink data packet by different ports.
In the moment of LS and the switching of non-LS state, each BTS exists two-way packet to receive and dispatch, a BTS both receive and dispatch the downlink data packet from A mouth, also receive and dispatch the upstream data bag from the other side BTS, thereby realize the seamless link of switching instant voice, avoided the decline of voice quality.
The present invention is not only applicable to belong to same BSC, the different terminals under different B TS; Also be applicable to belong to same BSC, the different terminals under same BTS, the both sides BTS in above embodiment is same BTS, or two different BTS.