WO2011063663A1 - Method and device for realizing local switch - Google Patents

Method and device for realizing local switch Download PDF

Info

Publication number
WO2011063663A1
WO2011063663A1 PCT/CN2010/076109 CN2010076109W WO2011063663A1 WO 2011063663 A1 WO2011063663 A1 WO 2011063663A1 CN 2010076109 W CN2010076109 W CN 2010076109W WO 2011063663 A1 WO2011063663 A1 WO 2011063663A1
Authority
WO
WIPO (PCT)
Prior art keywords
base station
bsc
link
delay time
message
Prior art date
Application number
PCT/CN2010/076109
Other languages
French (fr)
Chinese (zh)
Inventor
刘强
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011063663A1 publication Critical patent/WO2011063663A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for implementing local switching.
  • Local exchange refers to the way in which the calling and called users do not go through the core network and directly talk between the two called base stations.
  • the advantage of this operation is that the occupation of the core network resources is reduced, and the transmission delay of the voice is shortened. It saves the use bandwidth of the Abis port (the interface between the base station controller and the base station), and provides convenience for both operators and users.
  • the biggest feature of local switching is that user plane data is no longer transmitted directly between the base stations via the core network.
  • the conventional call mode can be described as being performed in the legacy mode.
  • the local exchange implementation there is a problem that when the user's voice data (user plane data) is suddenly transferred to the local exchange mode transmission by the traditional mode, there must be a large time difference, resulting in the voice being traditional.
  • the mode is switched to the local exchange mode, a relatively large loss occurs, and when switching from the local exchange mode to the legacy mode, a large speech overlap occurs.
  • the mobile phone MS I mobile station
  • the mobile phone MS2 make a call.
  • the voice of the mobile phone MS 1 passes through the base station BTS 1 and TC (codec) via the MSC (Mobile Switching Centre) and then the TC to the base station BTS2 to the mobile phone MS2.
  • TC codec
  • MSC Mobile Switching Centre
  • the voice of the mobile phone MS 1 is directly sent to the mobile phone MS2 via the base station BTS1 via the base station BTS1.
  • the time from the mobile phone MS 1 to the MSC after the MSC has arrived at the mobile phone MS2 is much longer than the time between the base station BTS 1 (BTS, Base Station) and the base station BTS2.
  • the technical problem to be solved by the present invention is to provide a local exchange implementation method and apparatus, which can compensate for voice loss or voice overlap caused by delay difference when converting between a local exchange mode and a legacy mode, and is locally exchanged.
  • Implementation proposes an effective solution to enhance user-risk.
  • the present invention provides a local exchange implementation method, including: when a first terminal and a second terminal establish a call, a base station controller (BSC) establishes a relationship with the first base station and the second base station.
  • BSC base station controller
  • the BSC obtains the delay time between the first base station, the second base station, and the BSC according to the setup time of the call link; when the call is switched from the legacy mode to the local exchange mode, the BSC sends a new link setup message to the a base station and a second base station, obtaining a link delay time of the first base station to the second base station, and a second base station Link delay time to the first base station;
  • the BSC subtracts the link delay time from the first base station to the second base station according to the delay time between the first base station and the BSC, and obtains the first base station switching delay time; according to the second base station and the BSC Delay time, subtracting the link delay time from the second base station to the first base station, and obtaining a second base station switching delay time;
  • the BSC sends the release old channel message to the first base station and the second base station, where the old channel message carries the calculated first base station conversion delay time value and the second base station conversion delay time value respectively; the first base station and the second base station
  • the base station receives the first base station switching delay time and the second base station switching delay time respectively, and sets the parameters in the new link, and releases the link between the originally established and the BSC to ensure the first base station and the first
  • the voice packets of the two base stations are sent after delaying the first base station switching delay time and the second base station switching delay time in the new link. Further, the BSC obtains the delay time between the first base station, the second base station, and the BSC according to the setup time of the call link, including:
  • the BSC records the transmission time of the channel activation message sent to the first base station and the second base station, and the reception time of the channel activation confirmation message sent by the first base station and the second base station; and sends the channel to the first base station and the second base station according to the The sending time of the activation message and the receiving time of the channel activation confirmation message sent by the first base station and the second base station are obtained, and the delay time between the first base station and the BSC and the delay time between the second base station and the BSC are obtained. Further, the link delay time of the BSC to obtain the first base station to the second base station and the link delay time of the second base station to the first base station include:
  • the transmission time is recorded;
  • the first base station receives the new link setup message, and starts to initiate the link layer link setup request message to the second base station; after receiving the link setup request message sent by the first base station, the second base station feeds back the new link setup.
  • the completion message is sent to the BSC, the BSC receives the new link completion message, and records the reception time; the BSC sends a new link setup message to the first base station's transmission time and receives the new link establishment completion message fed back by the second base station.
  • the receiving time is subtracted, and the link delay time from the first base station to the second base station is obtained. Further, the time interval between the second base station and the first base station is obtained according to the time interval between the second base station link setup message sent by the BSC and the new link setup complete message fed back by the first base station.
  • the time includes:
  • the BSC When the BSC sends a new link setup message to the second base station, the transmission time is recorded; the second base station receives the new link setup message, and starts to initiate the link layer link setup request message to the first base station; the first base station receives the first After the link establishment request message sent by the second base station, the new link establishment completion message is fed back to the BSC, and after receiving the new link completion message, the BSC records the reception time;
  • the BSC subtracts the transmission time at which the new link setup message is sent to the second base station and the reception time at which the new link setup complete message is received by the first base station, and obtains the link delay time from the second base station to the first base station.
  • the new link setup message sent by the BSC to the first base station includes parameters related to the establishment of the link between the first base station, where the parameters include an IP address and a port number, and the BSC sends the new information to the second base station.
  • the link setup message includes parameters related to the link establishment of the second base station, where the parameters include an IP and a port number.
  • the releasing the old channel message sent by the BSC to the first base station includes: releasing link information between the BSC to be released and the first base station, and releasing the old channel message sent by the BSC to the second base station
  • the method includes: link information between the BSC to be released and the second base station.
  • the present invention provides a device for implementing local switching, including: a first delay time obtaining module, a second delay time obtaining module, and a base station switching delay time set in a base station controller (BSC) Obtaining a module, a message sending module, and a processing module disposed at the first base station and the second base station;
  • the first delay time obtaining module is configured to establish, by the first terminal and the second terminal, a call link with the first base station and the second base station when establishing a call, and the BSC obtains respectively according to the establishment time of the call link.
  • the second delay time obtaining module configured to send the call to the first base station and the second base station when the call is switched from the traditional mode to the local exchange mode a path establishment message, a link delay time from the first base station to the second base station, and a link delay time from the second base station to the first base station;
  • the base station conversion delay time obtaining module configured to use the first base station and The delay time between the BSCs, minus the link delay time from the first base station to the second base station, to obtain the first base station switching delay time; according to the delay time between the second base station and the BSC, subtracting the second a link delay time from the base station to the first base station, to obtain a second base station switching delay time;
  • the message sending module configured to send an old channel message to the first base station and the second base station, where the old channel is The information carries the calculated first base station switching delay time value and the second base station switching delay time value respectively;
  • the processing module is configured to receive the
  • the first base station transition delay time and the second base station conversion delay time are sent. Further, the first delay time obtaining module is further configured to record a sending time of sending a channel activation message to the first base station and the second base station, and receiving a channel activation confirmation message sent by the first base station and the second base station. The receiving time is obtained according to the sending time of the channel activation message sent to the first base station and the second base station, and the receiving time of the channel activation confirmation message sent by the first base station and the second base station, to obtain the first base station and the BSC. Delay time and delay time between the second base station and the BSC.
  • the second delay time obtaining module is further configured to obtain, according to a time interval between sending a message to the first base station link setup message and receiving a new link setup complete message fed back by the second base station, to obtain the first a link delay time from the base station to the second base station; obtaining a second base station to the first time according to a time interval between the BSC transmitting the second base station link setup message to the new link setup complete message received by the first base station The link delay time of the base station.
  • the second delay time obtaining module is further used when the BSC sends a new chain When the path establishes a message to the first base station, the transmission time is recorded; and when the first base station receives the new link setup message, starts to initiate a link layer link setup request message to the second base station, and the second base station receives the first base station.
  • the BSC receives the new link completion message and records the reception time; sends the BSC to send the new link setup message to the first base station.
  • the time is subtracted from the receiving time of receiving the new link setup complete message fed back by the second base station, and the link delay time of the first base station to the second base station is obtained.
  • the second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the second base station, record the sending time; and when the second base station receives the new link setup message, start to The first base station initiates a link establishment request message of the link layer. After receiving the link setup request message sent by the second base station, the first base station feeds back a new link setup complete message to the BSC, and the BSC receives the new link. After the message, the receiving time is recorded; the sending time of sending the new link setup message to the second base station by the BSC is subtracted from the receiving time of the new link setup complete message fed back by the first base station, and obtaining the second base station to the first The link delay time of the base station.
  • the second delay time obtaining module sends a new link setup message to the first base station, where the first base station includes parameters related to link establishment, where the parameter includes an IP and a port number, and is sent to the first
  • the new link setup message of the second base station includes parameters related to the link establishment of the second base station, where the parameters include an IP and a port number.
  • the releasing the old channel message sent by the message sending module to the first base station includes: releasing link information between the BSC and the first base station, and releasing the old channel message to the second base station
  • the method includes: link information between the BSC to be released and the second base station. The invention greatly improves the situation that the link delay difference before and after the chain switching existing in the local exchange is relatively large.
  • FIG. 1 is a schematic diagram of a problem existing in a local exchange process in the prior art.
  • FIG 2 is a flowchart of ⁇ t is calculated and transmitted according to the local exchange according to the present invention.
  • 3 is only the effect of ⁇ t gen application data in the local exchange according to embodiments of the present invention.
  • the core idea of the present invention in dealing with this situation is: by performing dynamic compensation of delay on a short transmission link, the local transmission mode has the same transmission delay as the user plane data in the traditional mode, so that When the two modes are converted, they are basically seamlessly connected, avoiding large-scale speech loss or overlap caused by local exchange applications.
  • the present invention is directed to this situation, taking the IP Abis interface as an example, and proposes a new solution to supplement this deficiency. Specifically, the present invention considers the following aspects:
  • ⁇ t is calculated in the BSC, and the BSC estimates the ⁇ t according to the report of the establishment of the voice link between the BTS and the BTS, and sends the message to the BTS and the BTS for setting and implementation.
  • two local switching station location may be different, and the transmission delay between the BSC is not the same, thus requiring different compensation ⁇ t in the base station uplink RTP link, it is necessary set ⁇ t 1, ⁇ t 2 performs uplink and downlink compensation separately.
  • a t 2 T2 (Abis port delay) -t2 (link delay between base stations in BTS2 to BTS 1 direction)
  • the method for implementing the local switching according to the present invention includes: when the first terminal and the second terminal establish a call, the base station controller (BSC) Establishing a call link with the first base station and the second base station, and the BSC obtains a delay time between the first base station, the second base station, and the BSC according to the call link setup time; when the call is switched from the traditional mode to the local exchange In the mode, the BSC sends a new link setup message to the first base station and the second base station, and obtains a link delay time of the first base station to the second base station and a link delay time of the second base station to the first base station;
  • the BSC subtracts the link delay time from the first base station to the second base station according to the delay time between the first base station and the BSC, and obtains the first base station switching delay time; according to the second base station and the BSC Delay time, subtracting the link delay time from the second base station to the first base station, and obtaining a second base station switching delay time;
  • the BSC sends the release old channel message to the first base station and the second base station, respectively, where the calculated first base station conversion delay time and the second base station conversion delay time value are respectively carried;
  • the first base station and the second base station respectively receive the first base station switching delay time and the second base station switching delay time, and are set in the new link parameter, and simultaneously release the link between the originally established and the BSC to ensure
  • the voice packets of the first base station and the second base station are respectively sent after delaying the first base station switching delay time and the second base station switching delay time in the new link.
  • the BSC obtains the delay time between the first base station, the second base station, and the BSC according to the call link setup time, including:
  • the BSC records the transmission time of the channel activation message sent to the first base station and the second base station, and the reception time of the channel activation confirmation message sent by the first base station and the second base station; and sends a channel activation message according to the first base station and the second base station.
  • the transmission time and the reception time of the channel activation confirmation message sent by the first base station and the second base station, and the delay time between the first base station and the BSC and the delay time between the second base station and the BSC are obtained;
  • the BSC obtains the link delay time from the first base station to the second base station and the link delay time from the second base station to the first base station, including:
  • the BSC obtains a link delay time from the first base station to the second base station according to the new link setup complete message sent to the first base station link setup message, and sends the second base station link according to the BSC. Establishing a message to receive a new link setup complete message fed back by the first base station, and obtaining a link delay time from the second base station to the first base station.
  • the BSC obtains the link extension from the first base station to the second base station according to the new link setup complete message sent to the first base station link setup message and received by the second base station. Time, including:
  • the BSC records the transmission time when the new link setup message is sent to the first base station; the first base station receives the new link setup message, and starts to initiate the link layer link setup request message to the second base station; the second base station receives the first time.
  • the new link setup complete message is fed back to the BSC, and the BSC receives the record receiving time; the BSC sends a new link setup message to the first base station to send the time and receive the second base station.
  • the received time of the feedback of the new link setup complete message is subtracted, and the link delay time of the first base station to the second base station is obtained.
  • the link establishment message is sent to the second base station according to the BSC. Receiving a new link setup complete message fed back by the first base station, and obtaining a link delay time from the second base station to the first base station, including:
  • the BSC records the transmission time when the new link setup message is sent to the second base station; the second base station receives the new link setup message, and starts to initiate the link layer link setup request message to the first base station; the first base station receives the second After the link establishment request message sent by the base station, the new link establishment completion message is fed back to the BSC, and the BSC receives the record reception time;
  • the BSC subtracts the transmission time at which the new link setup message is sent to the second base station and the reception time at which the new link setup complete message is received by the first base station, and obtains the link delay time from the second base station to the first base station.
  • the BSC sends a new link setup message to the first base station and the second base station, including parameters related to link establishment, including IP and port number.
  • the release of the old channel message sent by the BSC to the first base station and the second base station respectively includes: a link information between the BSC to be released and the first base station and the second base station.
  • Figure 2 is a conversion flow and ⁇ t calculation of the present invention.
  • Embodiment 1 Design of Local Switching Control Plane Conversion Flow
  • three steps need to be implemented: RTP link establishment between base station and base station; RTP link switch between base station and base station controller To the RTP link between the base station and the base station; the release of the RTP link from the base station to the base station controller.
  • Step 1 Establish a new link.
  • the BSC sends a new link message to BTS 1 and BTS2.
  • the establishment of a new link message sent by the BSC to the BTS 1 includes the IP address and port number of the BTS 2.
  • the BSC sends the new link message sent in BTS2 to include the IP address and port number of BTS 1.
  • Step 2 The new link setup completion indication. Note that when the BTS 1 activates and sends an RTP link setup request to the BTS2, it does not give the BSC feedback for the new link setup completion indication, but waits until it receives
  • Step 3 After knowing that the link between BTS 1 and BTS2 is established, the BSC needs to perform ⁇ tl and ⁇ t 2 calculations, and starts to release the link between the original used BSC and BTS 1, BSC and BTS2. Therefore, the BSC sends a release old link message to BTS 1 and BTS 2, respectively, and the contents are the IP address and port number of BTS 1 and BTS 2.
  • This message also carries information ⁇ t, the BSC to release the old link message comprising the BTS 1 ⁇ tl values; message in the BSC to release the old link to BTS2 contains
  • Step 4 BTS 1 and BTS2 set the values of ⁇ tl and ⁇ t 2 in the new link parameters, and then release the link between the original established BSC and the BSC. After the release is completed, the message is completed by releasing the old link. Inform the BSC.
  • Embodiment 2 Delay from the traditional mode to the local exchange mode conversion ⁇ T 1 and ⁇ t 2 Calculation step 1: MS 1 (first terminal) and MS2 (second terminal) When establishing a call, the BSC is giving BTS 1 When the (first base station) and the BTS2 (second base station) transmit the TCH (Traffic Channel) channel activation message 101 and the TCH channel activation message 102, the transmission times T11 and T21 are respectively recorded, and the BSC is established between the BTS and the BTS 1 and the BTS 2 Call link. Step 2: When the BSC receives the channel activation confirmation messages 102 and 202 of the BTS 1 and the BTS 2, respectively, the reception times T12 and T22 are recorded.
  • TCH Traffic Channel
  • the call links between the BTSs and the BTS2 are respectively established.
  • the call begins.
  • Step 3 After the call is established, the two phones switch from the legacy mode to the local exchange mode, and a new link with the base station needs to be established in advance. As shown in FIG. 3, the BSC sends a new link setup message 210 to the BTS2, and The transmission time T23 is recorded.
  • a new link setup message 110 is sent to the BTS 1 and the transmission time ⁇ 13 is recorded. Both messages carry the parameters related to the link establishment of the base station, such as the port, IP, and port (port number).
  • Step 4 After the BTS 1 receives the new link setup message 110, it starts to initiate the link layer to the BTS2. The link establishment request message; Similarly, when the BTS2 receives the new link setup message 210, it starts to initiate a link layer link setup request message to the BTS 1. After receiving the link establishment request message sent by the base station BTS2 (the message indicating the establishment of the link initiation request, which is the link layer internal message), the BTS 1 receives the link establishment message sent by the base station BTS2.
  • the BSC After the new link setup complete message 111 is sent to the BSC, the BSC receives the record reception time T14. Similarly, after receiving the link setup request message sent by the base station BTS1 (the message indicating the establishment of the link initiation request, which is the link layer internal message), the BTS2 receives the link establishment link sent by the base station BTS1. After the message, the new link setup complete message 211 is sent to the BSC, and the BSC receives the record reception time T24.
  • the link setup request message sent by the base station BTS1 the message indicating the establishment of the link initiation request, which is the link layer internal message
  • the BTS2 After the message, the new link setup complete message 211 is sent to the BSC, and the BSC receives the record reception time T24.
  • Step 6 BSC and BTS1 to BTS2 are issued to release the old channel messages 112 and 212, respectively, which carry the calculated values of ⁇ tl ⁇ and t 2 are, while also carrying the BSC and BTS to release the Link information between.
  • Step 7 After receiving the values of ⁇ tl and ⁇ t 2 respectively, BTS 1 and BTS 2 are set to the link transmission parameter setting to ensure that the voice packets of BTS 1 and BTS 2 are sent after delays ⁇ tl and ⁇ t 2 respectively.
  • Embodiment 3 Conversion from local exchange mode to traditional mode Although the conversion direction is opposite to that of the second embodiment, the process is completely identical except for the individual parameter settings.
  • the built-in parameter is the IP and PORT information of the BSC. This means re-establishing a new link with the BSC.
  • the BTS 1 and the release are released.
  • the present invention also provides an apparatus for implementing local switching, comprising: a first delay time obtaining module, a second delay time obtaining module, a base station switching delay time obtaining module, and a message sending set in a base station controller (BSC) a processing module configured in the first base station and the second base station; a first delay time obtaining module, configured to establish, by the first terminal and the second terminal, a call between the first base station and the second base station when establishing a call a link, the BSC obtains a delay time between the first base station, the second base station, and the BSC according to the setup time of the call link, and a second delay time obtaining module, configured to switch the call from the traditional mode to the local exchange mode, Sending a new link setup message to the first base station and the second base station, obtaining a link delay time from the first base station to the second base station, and a link delay time from the second base station to the first base station; a base station switching delay time obtaining module, configured to subtract a link delay time
  • the first delay time obtaining module is further configured to record a transmission time of transmitting a channel activation message to the first base station and the second base station, and receive a channel sent by the first base station and the second base station. a receiving time of the activation confirmation message; obtaining the first base station and the BSC according to the sending time of the channel activation message sent to the first base station and the second base station, and the receiving time of the channel activation confirmation message sent by the first base station and the second base station The delay time between the delay time and the delay between the second base station and the BSC.
  • the second delay time obtaining module is further configured to: according to the time interval between the message sent to the first base station link setup message and the new link setup complete message fed back by the second base station Obtaining a link delay time from the first base station to the second base station; obtaining a second time according to a time interval between the BSC sending the second base station link setup message to the new link setup complete message received by the first base station feedback The link delay time from the base station to the first base station.
  • the second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the first base station, record the transmission time; and when the first base station receives the new link setup message And starting to initiate a link establishment link setup request message to the second base station, and after receiving the link setup request message sent by the first base station, the second base station feeds back a new link setup complete message to the BSC, and the BSC receives the new message.
  • the reception time is recorded; the transmission time of the BSC transmitting the new link setup message to the first base station is subtracted from the reception time of the new link setup complete message fed back by the second base station, and the first base station is obtained.
  • the link delay time to the second base station is further configured to: when the BSC sends a new link setup message to the first base station, record the transmission time; and when the first base station receives the new link setup message And starting to initiate a link establishment link setup request message to the second base station, and after receiving the link setup request message sent by the first base station, the second
  • the second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the second base station, record the transmission time; and when the second base station receives the new link establishment The message starts to initiate a link establishment link request message to the first base station, and after receiving the link setup request message sent by the second base station, the first base station feeds back a new link setup complete message to the BSC, and the BSC receives the message.
  • the sending time at which the BSC sends the new link setup message to the second base station is subtracted from the receiving time of the new link setup complete message fed back by the first base station, and obtains the second The link delay time from the base station to the first base station.
  • the second delay time obtaining module sends a new link setup message to the first base station, including parameters related to the link establishment of the first base station, parameters including IP and port numbers, and sending The new link setup message to the second base station includes parameters related to the link establishment of the second base station, where the parameters include an IP and a port number.
  • the release old channel message sent by the message sending module to the first base station and the second base station includes: link information between the BSC to be released and the first base station, to the second base station
  • the released old channel message includes: link information between the BSC to be released and the second base station.

Abstract

A method and a device for realizing a local switch are provided. The method comprises: a Base Station Control (BSC) obtains the delay time between a first base station, a second base station and the BSC; when the call is switched from a traditional mode into a local exchange mode, the BSC obtains the link delay time from the first base station to the second base station and the link delay time from the second base station to the first base station; the first base station switched delay time can be obtained by subtracting the link delay time from the first base station to the second base station from the delay time between the first base station and the BSC; the second base station switched delay time can be obtained by subtracting the link delay time from the second base station to the first base station from the delay time between the second base station and the BSC; the first base station and the second base station receive the first base station switched delay time and the second base station switched delay time respectively, which can be set into new link parameters. The present invention can improve the situation existing at the local switch that the link time delay difference before and after the link switching is comparatively great.

Description

一种本地交换实现的方法^置 技术领域 本发明涉及通信技术领域, 尤其涉及一种本地交换实现的方法及装置。 背景技术 目前不少通信系统都应用了本地交换功能。 本地交换是指: 主被叫用户 在符合一定条件的情况下, 不再经过核心网, 而直接在主被叫两个基站之间 进行通话的方式。 这样操作的好处是, 减少了对核心网资源的占用, 缩短了 语音的传输时延。 节约了 Abis口 (基站控制器和基站之间的接口)等使用带 宽, 为运营商和用户都提供了方便。 本地交换最大的特点是: 用户面数据不 再经由核心网传送而直接在基站间进行。 当通话釆用上述方式进行传递时, 可以认为是在本地交换模式下进行, 相应地, 传统的通话方式, 就可以描述 为在传统模式下进行。 在本地交换实现中, 涉及这样的问题, 当用户的语音数据(用户面数据) 由传统模式下传输突然转入到本地交换模式传输时, 一定会有一个较大的时 间差, 导致话音在从传统模式到本地交换模式下时, 出现比较大的损失, 而 在从本地交换模式转入传统模式时, 出现较大的语音重叠。 具体说明如图 1所示, 传统模式下, 手机 MS I ( mobile Station ) 和手机 MS2进行通话。 手机 MS 1 的语音通过基站 BTS 1 和 TC (编解码器) 经由 MSC ( Mobile Switching Centre, 移动交换中心) 再经 TC到基站 BTS2到手 机 MS2。从图 1可以看到,一个语音帧从手机 MS 1发出后,至少要经过 T1+T2 的时间。 而当手机 MS 1和手机 MS2的通话转入到本地交换模式下时, 手机 MS 1的语音通过基站 BTS 1直接经由基站 BTS2送到手机 MS2上。语音从手 机 MS 1出发,到 MSC绕了一圏后到达手机 MS2所用时间远远大于基站 BTS 1 ( BTS , Base Station ) 直接到基站 BTS2之间的时间。 当通话中, 用户面数 据突然从一种模式转到另一种模式时, 会因传输链路长度问题导致较大的时 延差。 目前本地交换的设计中, 有一种方式是釆用基站在转换前后同时保持两 条链路的方法。 在手机发送的语音从传统模式下进入到本地交换模式下时, 先新建一个到对方 BTS的新链路, 建好后, 再释放原来的通话链路, 完成向 本地交换模式的转换(这种本地交换的实现方式已经在相关专利中提出)。转 换时, 有一个 4艮短的瞬间, 传统模式下原来的 BTS 1 和 BSC ( Base Station Control,基站控制器)之间链路和本地交换模式下新建的基站 BTS 1和 BTS2 之间的链路并存,且用户面数据同时发送给两个链路, 这两条链路虽然并存, 但是仅一条在使用。 因为转换尚未完成, 这时用户在 MS2听到的是从 BTS 1 和 BSC这个链路传送的语音。 但是当转换发生时, BTS 1和 BSC之间链路将 切断, 而 BTS 1和 BTS2之间的链路将启用, 因此, 短的链路将提前听到后 面的语音而丢掉了尚在传送中的语音数据, 因此造成大段语音丢失。 反之, 从本地交换模式下进入到传统模式下时, 因为前者语音传送链路远远短于后 者, 又因为同样原因, 会造成在传统模式重复听到大段语音。 在实际应用中, 会根据业务需求可能会经常在本地交换模式和传统模式 之间进行转换, 势必会带给用户不好的用户体验。 目前, 在本地交换的实现中, 因为转换时间比较短, 或是未考虑这类问 题, 或设置一个固定的 Δ t进行延时, 这样处理方法显然仍然不能解决上述 问题。 这个情况的产生, 为本地交换的特点所决定,所以要寻求新的解决办法, 来消除现有技术的不足。 发明内容 本发明所要解决的技术问题是提供一种本地交换实现的方法及装置, 弥 补本地交换模式和传统模式之间进行转换时由于时延差导致的语音丢失或者 语音重叠问题, 为本地交换的实现提出一种有效的解决方法,增强用户体 -险。 为了解决上述技术问题, 本发明提供了一种本地交换实现的方法, 包括: 第一终端和第二终端在建立通话时, 基站控制器 (BSC ) 建立与第一基 站、 第二基站之间的通话链路, BSC根据通话链路的建立时间分别获得第一 基站、 第二基站与 BSC之间的延时时间; 当通话从传统模式转换到本地交换模式, BSC发送新链路建立消息给第 一基站和第二基站, 获得第一基站到第二基站的链路延时时间以及第二基站 到第一基站的链路延时时间; The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for implementing local switching. BACKGROUND OF THE INVENTION At present, many communication systems use local switching functions. Local exchange refers to the way in which the calling and called users do not go through the core network and directly talk between the two called base stations. The advantage of this operation is that the occupation of the core network resources is reduced, and the transmission delay of the voice is shortened. It saves the use bandwidth of the Abis port (the interface between the base station controller and the base station), and provides convenience for both operators and users. The biggest feature of local switching is that user plane data is no longer transmitted directly between the base stations via the core network. When the call is transmitted in the above manner, it can be considered to be performed in the local exchange mode, and accordingly, the conventional call mode can be described as being performed in the legacy mode. In the local exchange implementation, there is a problem that when the user's voice data (user plane data) is suddenly transferred to the local exchange mode transmission by the traditional mode, there must be a large time difference, resulting in the voice being traditional. When the mode is switched to the local exchange mode, a relatively large loss occurs, and when switching from the local exchange mode to the legacy mode, a large speech overlap occurs. Specifically, as shown in FIG. 1, in the traditional mode, the mobile phone MS I (mobile station) and the mobile phone MS2 make a call. The voice of the mobile phone MS 1 passes through the base station BTS 1 and TC (codec) via the MSC (Mobile Switching Centre) and then the TC to the base station BTS2 to the mobile phone MS2. As can be seen from Fig. 1, after a speech frame is sent from the mobile phone MS 1, it must pass at least T1 + T2. When the call of the mobile phone MS 1 and the mobile phone MS2 is transferred to the local exchange mode, the voice of the mobile phone MS 1 is directly sent to the mobile phone MS2 via the base station BTS1 via the base station BTS1. The time from the mobile phone MS 1 to the MSC after the MSC has arrived at the mobile phone MS2 is much longer than the time between the base station BTS 1 (BTS, Base Station) and the base station BTS2. When the user plane data suddenly changes from one mode to another during a call, a large delay difference may occur due to the transmission link length problem. In the current design of local switching, there is a way to use the base station to maintain two links at the same time before and after the conversion. When the voice sent by the mobile phone enters the local exchange mode from the traditional mode, First, a new link to the other party's BTS is created. After the establishment, the original call link is released, and the conversion to the local exchange mode is completed (the implementation of this local exchange has been proposed in the related patent). At the time of conversion, there is a short moment of 4 ,, the link between the original BTS 1 and the BSC (Base Station Control) in the traditional mode and the link between the newly established base stations BTS 1 and BTS2 in the local exchange mode. Coexistence, and user plane data is sent to both links at the same time. Although these two links coexist, only one is in use. Since the conversion has not been completed, the user hears the voice transmitted from the BTS 1 and BSC links at MS2. However, when the conversion occurs, the link between BTS 1 and BSC will be cut off, and the link between BTS 1 and BTS2 will be enabled. Therefore, the short link will hear the following voice in advance and will be lost. The voice data, thus causing a large segment of voice loss. Conversely, when entering the traditional mode from the local switching mode, the voice transmission link of the former is much shorter than the latter, and for the same reason, a large number of voices are repeatedly heard in the traditional mode. In practical applications, depending on the business needs, it may be frequently converted between the local exchange mode and the traditional mode, which will inevitably bring a bad user experience to the user. At present, in the implementation of local exchange, because the conversion time is relatively short, or the problem is not considered, or a fixed Δ t is set to delay, this method obviously still cannot solve the above problem. The occurrence of this situation is determined by the characteristics of the local exchange, so new solutions must be sought to eliminate the deficiencies of the prior art. SUMMARY OF THE INVENTION The technical problem to be solved by the present invention is to provide a local exchange implementation method and apparatus, which can compensate for voice loss or voice overlap caused by delay difference when converting between a local exchange mode and a legacy mode, and is locally exchanged. Implementation proposes an effective solution to enhance user-risk. In order to solve the above technical problem, the present invention provides a local exchange implementation method, including: when a first terminal and a second terminal establish a call, a base station controller (BSC) establishes a relationship with the first base station and the second base station. The call link, the BSC obtains the delay time between the first base station, the second base station, and the BSC according to the setup time of the call link; when the call is switched from the legacy mode to the local exchange mode, the BSC sends a new link setup message to the a base station and a second base station, obtaining a link delay time of the first base station to the second base station, and a second base station Link delay time to the first base station;
BSC才艮据第一基站与 BSC之间的延时时间, 减去第一基站到第二基站 的链路延时时间, 获得第一基站转换延时时间; 根据第二基站与 BSC之间的 延时时间, 减去第二基站到第一基站的链路延时时间, 获得第二基站转换延 时时间; The BSC subtracts the link delay time from the first base station to the second base station according to the delay time between the first base station and the BSC, and obtains the first base station switching delay time; according to the second base station and the BSC Delay time, subtracting the link delay time from the second base station to the first base station, and obtaining a second base station switching delay time;
BSC向第一基站和第二基站分别下发释放旧信道消息, 其中旧信道消息 分别携带计算好的第一基站转换延时时间值和第二基站转换延时时间值; 第一基站和第二基站分别接收到第一基站转换延时时间和第二基站转换 延时时间, 并设置在新链路的参数中, 同时释放原来建立的和 BSC之间的链 路, 以保证第一基站和第二基站的语音包在新链路中分别延时第一基站转换 延时时间和第二基站转换延时时间后发送。 进一步来说, 所述 BSC才艮据通话链路的建立时间分别获得第一基站、 第 二基站与 BSC之间的延时时间, 包括: The BSC sends the release old channel message to the first base station and the second base station, where the old channel message carries the calculated first base station conversion delay time value and the second base station conversion delay time value respectively; the first base station and the second base station The base station receives the first base station switching delay time and the second base station switching delay time respectively, and sets the parameters in the new link, and releases the link between the originally established and the BSC to ensure the first base station and the first The voice packets of the two base stations are sent after delaying the first base station switching delay time and the second base station switching delay time in the new link. Further, the BSC obtains the delay time between the first base station, the second base station, and the BSC according to the setup time of the call link, including:
BSC记录向第一基站、 第二基站发送信道激活消息的发送时间及接收到 第一基站、 第二基站发送的信道激活确认消息的接收时间; 根据所述向第一基站、 第二基站发送信道激活消息的发送时间及接收到 第一基站、 第二基站发送的信道激活确认消息的接收时间, 获得第一基站与 BSC之间的延时时间及第二基站与 BSC之间的延时时间。 进一步来说,所述 BSC获得第一基站到第二基站的链路延时时间以及第 二基站到第一基站的链路延时时间包括: The BSC records the transmission time of the channel activation message sent to the first base station and the second base station, and the reception time of the channel activation confirmation message sent by the first base station and the second base station; and sends the channel to the first base station and the second base station according to the The sending time of the activation message and the receiving time of the channel activation confirmation message sent by the first base station and the second base station are obtained, and the delay time between the first base station and the BSC and the delay time between the second base station and the BSC are obtained. Further, the link delay time of the BSC to obtain the first base station to the second base station and the link delay time of the second base station to the first base station include:
BSC 根据发送给第一基站链路建立消息到收到第二基站反馈的新链路 建立完成消息之间的时间间隔, 获得第一基站到第二基站的链路延时时间; 根据 BSC 发送给第二基站链路建立消息到接收到第一基站反馈的新链路建 立完成消息之间的时间间隔, 获得第二基站到第一基站的链路延时时间。 进一步来说,所述 BSC根据发送给第一基站链路建立消息到收到第二基 站反馈的新链路建立完成消息之间的时间间隔, 获得第一基站到第二基站的 链路延时时间, 包括: Obtaining, by the BSC, a link delay time from the first base station to the second base station according to a time interval between sending the first base station link setup message to the new link setup complete message fed back by the second base station; The time interval between the second base station link setup message and the new link setup complete message fed back by the first base station is obtained, and the link delay time of the second base station to the first base station is obtained. Further, the BSC obtains a link delay between the first base station and the second base station according to a time interval between sending the first base station link setup message to the new link setup complete message fed back by the second base station. Time, including:
BSC发送新链路建立消息给第一基站时, 记录发送时刻; 第一基站接收到新链路建立消息, 开始向第二基站发起链路层的链路建 立请求消息; 第二基站接收到第一基站发送过来的链路建立请求消息后, 反 馈新链路建立完成消息给 BSC, BSC接收到新链路完成消息后, 并记录接收 时刻; BSC 将发送新链路建立消息给第一基站的发送时刻与接收到第二基站 反馈的新链路建立完成消息的接收时刻相减, 获得第一基站到第二基站的链 路延时时间。 进一步来说,所述根据 BSC发送给第二基站链路建立消息到收到第一基 站反馈的新链路建立完成消息之间的时间间隔, 获得第二基站到第一基站的 链路延时时间包括: When the BSC sends a new link setup message to the first base station, the transmission time is recorded; The first base station receives the new link setup message, and starts to initiate the link layer link setup request message to the second base station; after receiving the link setup request message sent by the first base station, the second base station feeds back the new link setup. After the completion message is sent to the BSC, the BSC receives the new link completion message, and records the reception time; the BSC sends a new link setup message to the first base station's transmission time and receives the new link establishment completion message fed back by the second base station. The receiving time is subtracted, and the link delay time from the first base station to the second base station is obtained. Further, the time interval between the second base station and the first base station is obtained according to the time interval between the second base station link setup message sent by the BSC and the new link setup complete message fed back by the first base station. The time includes:
BSC发送新链路建立消息给第二基站时, 记录发送时刻; 第二基站接收到新链路建立消息, 开始向第一基站发起链路层的链路建 立请求消息; 第一基站接收到第二基站发送过来的链路建立请求消息后, 反 馈新链路建立完成消息给 BSC, BSC接收到新链路完成消息后, 并记录接收 时刻; When the BSC sends a new link setup message to the second base station, the transmission time is recorded; the second base station receives the new link setup message, and starts to initiate the link layer link setup request message to the first base station; the first base station receives the first After the link establishment request message sent by the second base station, the new link establishment completion message is fed back to the BSC, and after receiving the new link completion message, the BSC records the reception time;
BSC 将发送新链路建立消息给第二基站的发送时刻与接收到第一基站 反馈的新链路建立完成消息的接收时刻相减, 获得第二基站到第一基站的链 路延时时间。 进一步来说, 所述 BSC发送给第一基站的新链路建立消息中, 包括第一 基站与链路建立相关的参数, 其中参数包括 IP和端口号, 所述 BSC发送给 第二基站的新链路建立消息中, 包括第二基站与链路建立相关的参数, 其中 参数包括 IP和端口号。 进一步来说, 所述 BSC向第一基站下发的释放旧信道消息中包括: 要释 放的 BSC和第一基站之间的链路信息, 所述 BSC向第二基站下发的释放旧 信道消息中包括: 要释放的 BSC和第二基站之间的链路信息。 为了解决上述技术问题,本发明提供了一种本地交换实现的装置, 包括: 设置于基站控制器 (BSC ) 的第一延时时间获得模块、 第二延时时间获得模 块、 基站转换延时时间获得模块、 消息发送模块; 设置于第一基站和第二基 站的处理模块; 所述第一延时时间获得模块, 用于第一终端和第二终端在建立通话时, 建立与第一基站、 第二基站之间的通话链路, BSC根据通话链路的建立时间 分别获得第一基站、 第二基站与 BSC之间的延时时间; 所述第二延时时间获得模块, 用于当通话从传统模式转换到本地交换模 式, 发送给第一基站和第二基站新链路建立消息, 获得第一基站到第二基站 的链路延时时间以及第二基站到第一基站的链路延时时间; 所述基站转换延时时间获得模块,用于根据第一基站与 BSC之间的延时 时间, 减去第一基站到第二基站的链路延时时间, 获得第一基站转换延时时 间; 根据第二基站与 BSC之间的延时时间, 减去第二基站到第一基站的链路 延时时间, 获得第二基站转换延时时间; 所述消息发送模块, 用于向第一基站和第二基站分别下发释放旧信道消 息, 其中旧信道消息分别携带计算好的第一基站转换延时时间值和第二基站 转换延时时间值; 所述处理模块, 设置于第一基站和第二基站, 分别接收到第一基站转换 延时时间和第二基站转换延时时间, 并设置在新链路的参数中, 同时释放原 来建立的和 BSC之间的链路,以保证第一基站和第二基站的语音包在新链路 中分别延时第一基站转换延时时间和第二基站转换延时时间后发送。 进一步来说, 所述第一延时时间获得模块, 还用于记录向第一基站、 第 二基站发送信道激活消息的发送时间及接收到第一基站、 第二基站发送的信 道激活确认消息的接收时间; 根据所述向第一基站、 第二基站发送信道激活消息的发送时间及接收到 第一基站、 第二基站发送的信道激活确认消息的接收时间, 获得第一基站与 BSC之间的延时时间及第二基站与 BSC之间的延时时间。 进一步来说, 所述第二延时时间获得模块, 还用于根据发送给第一基站 链路建立消息到收到第二基站反馈的新链路建立完成消息之间的时间间隔, 获得第一基站到第二基站的链路延时时间;根据 BSC发送给第二基站链路建 立消息到接收到第一基站反馈的新链路建立完成消息之间的时间间隔, 获得 第二基站到第一基站的链路延时时间。 进一步来说, 所述第二延时时间获得模块, 进一步用于当 BSC发送新链 路建立消息给第一基站时, 记录发送时刻; 并当第一基站接收到新链路建立 消息, 开始向第二基站发起链路层的链路建立请求消息, 第二基站接收到第 一基站发送过来的链路建立请求消息后, 反馈新链路建立完成消息给 BSC 时, BSC接收到新链路完成消息后, 并记录接收时刻; 将 BSC发送新链路 建立消息给第一基站的发送时刻与接收到第二基站反馈的新链路建立完成消 息的接收时刻相减, 获得第一基站到第二基站的链路延时时间。 进一步来说, 所述第二延时时间获得模块, 进一步用于当 BSC发送新链 路建立消息给第二基站时, 记录发送时刻; 并当第二基站接收到新链路建立 消息, 开始向第一基站发起链路层的链路建立请求消息, 第一基站接收到第 二基站发送过来的链路建立请求消息后, 反馈新链路建立完成消息给 BSC 时, BSC接收到新链路完成消息后, 并记录接收时刻; 将 BSC发送新链路 建立消息给第二基站的发送时刻与接收到第一基站反馈的新链路建立完成消 息的接收时刻相减, 获得第二基站到第一基站的链路延时时间。 进一步来说, 所述第二延时时间获得模块发送给第一基站的新链路建立 消息中, 包括第一基站与链路建立相关的参数,其中,参数包括 IP和端口号, 发送给第二基站的新链路建立消息中,包括第二基站与链路建立相关的参数, 其中, 参数包括 IP和端口号。 进一步来说, 所述消息发送模块向第一基站下发的释放旧信道消息中包 括: 要释放的 BSC和第一基站之间的链路信息, 向第二基站下发的释放旧信 道消息中包括: 要释放的 BSC和第二基站之间的链路信息。 本发明较大改善了本地交换存在的链转换前后链路时延差比较大的情 况。 能够根据实际的网路进行动态和有效的调整。 较大提高了用户感知度。 本发明较好地弥补因本地交换自身特点所带来的缺陷, 为本地交换的实现提 出了一种有效的解决方法,对提高客户满意度、转换性能的提升有较大帮助。 附图说明 图 1为现有技术中本地交换流程中存在的问题的示意图。 图 2为根据本发明实施例本地交换下的 Δ t计算和发送流程图。 图 3为才艮据本发明实施例本地交换下的 Δ t的应用效果示意图。 具体实施方式 从本地交换模式到传统模式的转换之间, 因为链路的原因造成时延, 因 为较大, 因此要考虑对传输时延很短的基站间通信进行时延弥补, 这样保证 在 RTP ( Realtime Transfer Protocol, 实时传输协议 ) 链路转换时, 没有因时 延差较大而造成的用户感知度异常。 通常会考虑用一个时延经验值或估算值 进行固定补偿, 的确可以达到改善的效果, 但是, 因为基站的位置不同, 基 站到基站控制器的延时也可能不同, 因此, 如果釆用固定延时设置的方式, 不能灵活适应不同的环境、 不能进行自动调整。 本发明在处理这种情况所基于的核心思想是: 通过对较短的传输链路进 行时延的动态补偿, 达到本地交换模式和传统模式下用户面数据有相同的传 送时延, 这样, 在两种模式进行转换时, 基本做到无缝衔接, 避免了因本地 交换的应用而出现的大段话音丢失或重叠问题。 本发明就是针对这个情况,以 IP Abis接口为例,提出一种新的解决思路, 补充这种不足。 具体来说, 本发明要考虑以下几个方面的问题: The BSC subtracts the transmission time at which the new link setup message is sent to the second base station and the reception time at which the new link setup complete message is received by the first base station, and obtains the link delay time from the second base station to the first base station. Further, the new link setup message sent by the BSC to the first base station includes parameters related to the establishment of the link between the first base station, where the parameters include an IP address and a port number, and the BSC sends the new information to the second base station. The link setup message includes parameters related to the link establishment of the second base station, where the parameters include an IP and a port number. Further, the releasing the old channel message sent by the BSC to the first base station includes: releasing link information between the BSC to be released and the first base station, and releasing the old channel message sent by the BSC to the second base station The method includes: link information between the BSC to be released and the second base station. In order to solve the above technical problem, the present invention provides a device for implementing local switching, including: a first delay time obtaining module, a second delay time obtaining module, and a base station switching delay time set in a base station controller (BSC) Obtaining a module, a message sending module, and a processing module disposed at the first base station and the second base station; The first delay time obtaining module is configured to establish, by the first terminal and the second terminal, a call link with the first base station and the second base station when establishing a call, and the BSC obtains respectively according to the establishment time of the call link. a delay time between the first base station, the second base station, and the BSC; the second delay time obtaining module, configured to send the call to the first base station and the second base station when the call is switched from the traditional mode to the local exchange mode a path establishment message, a link delay time from the first base station to the second base station, and a link delay time from the second base station to the first base station; the base station conversion delay time obtaining module, configured to use the first base station and The delay time between the BSCs, minus the link delay time from the first base station to the second base station, to obtain the first base station switching delay time; according to the delay time between the second base station and the BSC, subtracting the second a link delay time from the base station to the first base station, to obtain a second base station switching delay time; the message sending module, configured to send an old channel message to the first base station and the second base station, where the old channel is The information carries the calculated first base station switching delay time value and the second base station switching delay time value respectively; the processing module is configured to receive the first base station switching delay time and the first base station and the second base station respectively The second base station converts the delay time and sets the parameters in the new link, and releases the link between the original established BSC and the BSC to ensure that the voice packets of the first base station and the second base station are respectively extended in the new link. The first base station transition delay time and the second base station conversion delay time are sent. Further, the first delay time obtaining module is further configured to record a sending time of sending a channel activation message to the first base station and the second base station, and receiving a channel activation confirmation message sent by the first base station and the second base station. The receiving time is obtained according to the sending time of the channel activation message sent to the first base station and the second base station, and the receiving time of the channel activation confirmation message sent by the first base station and the second base station, to obtain the first base station and the BSC. Delay time and delay time between the second base station and the BSC. Further, the second delay time obtaining module is further configured to obtain, according to a time interval between sending a message to the first base station link setup message and receiving a new link setup complete message fed back by the second base station, to obtain the first a link delay time from the base station to the second base station; obtaining a second base station to the first time according to a time interval between the BSC transmitting the second base station link setup message to the new link setup complete message received by the first base station The link delay time of the base station. Further, the second delay time obtaining module is further used when the BSC sends a new chain When the path establishes a message to the first base station, the transmission time is recorded; and when the first base station receives the new link setup message, starts to initiate a link layer link setup request message to the second base station, and the second base station receives the first base station. After the sent link setup request message is sent back to the BSC, the BSC receives the new link completion message and records the reception time; sends the BSC to send the new link setup message to the first base station. The time is subtracted from the receiving time of receiving the new link setup complete message fed back by the second base station, and the link delay time of the first base station to the second base station is obtained. Further, the second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the second base station, record the sending time; and when the second base station receives the new link setup message, start to The first base station initiates a link establishment request message of the link layer. After receiving the link setup request message sent by the second base station, the first base station feeds back a new link setup complete message to the BSC, and the BSC receives the new link. After the message, the receiving time is recorded; the sending time of sending the new link setup message to the second base station by the BSC is subtracted from the receiving time of the new link setup complete message fed back by the first base station, and obtaining the second base station to the first The link delay time of the base station. Further, the second delay time obtaining module sends a new link setup message to the first base station, where the first base station includes parameters related to link establishment, where the parameter includes an IP and a port number, and is sent to the first The new link setup message of the second base station includes parameters related to the link establishment of the second base station, where the parameters include an IP and a port number. Further, the releasing the old channel message sent by the message sending module to the first base station includes: releasing link information between the BSC and the first base station, and releasing the old channel message to the second base station The method includes: link information between the BSC to be released and the second base station. The invention greatly improves the situation that the link delay difference before and after the chain switching existing in the local exchange is relatively large. Dynamic and effective adjustments based on actual network. Larger increase in user perception. The invention better compensates for the defects caused by the characteristics of the local exchange, and proposes an effective solution for the realization of the local exchange, which is helpful for improving the customer satisfaction and the conversion performance. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a problem existing in a local exchange process in the prior art. FIG 2 is a flowchart of Δ t is calculated and transmitted according to the local exchange according to the present invention. 3 is only the effect of Δ t gen application data in the local exchange according to embodiments of the present invention. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Between the transition from the local switching mode to the legacy mode, delay due to the link is large, so it is necessary to consider delaying the inter-base station communication with a short transmission delay, so as to ensure that the RTP is guaranteed. (Real Time Transfer Protocol) When the link is converted, there is no user perception abnormality caused by a large delay difference. Usually, it is considered to use a delay empirical value or an estimated value for fixed compensation, which can achieve an improved effect. However, because the location of the base station is different, the delay from the base station to the base station controller may be different. Therefore, if the fixed delay is used, The way of setting is not flexible enough to adapt to different environments and cannot be adjusted automatically. The core idea of the present invention in dealing with this situation is: by performing dynamic compensation of delay on a short transmission link, the local transmission mode has the same transmission delay as the user plane data in the traditional mode, so that When the two modes are converted, they are basically seamlessly connected, avoiding large-scale speech loss or overlap caused by local exchange applications. The present invention is directed to this situation, taking the IP Abis interface as an example, and proposes a new solution to supplement this deficiency. Specifically, the present invention considers the following aspects:
1、 釆用延时机制 增加基站和基站之间的链路传送延时△ t。 2、 基站控制器中特定的流程设计 为了保证计算, 对流程进行设计, 使基站控制器可获知基站之间建立延 时情况。 1. Use the delay mechanism to increase the link transmission delay Δ t between the base station and the base station. 2. Specific process design in the base station controller In order to ensure the calculation, the process is designed so that the base station controller can know the delay between the base stations.
3、 基站控制器中延时的动态计算 3. Dynamic calculation of delay in base station controller
1 )设延时补偿时间 Δ T。 Δ t的时间动态计算。 保证根据实际延时情况 进行调整。 1) Set the delay compensation time Δ T . Dynamic time Δ t is calculated. Ensure that adjustments are made based on actual delay conditions.
2) Δ t在 BSC计算, BSC根据 BTS和 BTS之间语音链路建立情况的 上报, 估算出 Δ t, 通过消息下发给 BTS , BTS进行设置和实施。 3 ) 进 行 本 地 交 换 的 两 个 基 站 所 在 位 置 可 能 不 同, 和 BSC之间的传送时延也不相同, 因此在基站 RTP链路的上下行上需 要补偿 Δ t不同, 因此需要设置 Δ t 1、 Δ t 2分别进行上下行补偿。 2) Δ t is calculated in the BSC, and the BSC estimates the Δ t according to the report of the establishment of the voice link between the BTS and the BTS, and sends the message to the BTS and the BTS for setting and implementation. 3) two local switching station location may be different, and the transmission delay between the BSC is not the same, thus requiring different compensation Δ t in the base station uplink RTP link, it is necessary set Δ t 1, Δ t 2 performs uplink and downlink compensation separately.
4 ) A t才艮据以下公式计算: A t 1= Tl(Abis口延时) -tl ( BTS 1到 BTS2方向基站间链路延时) 4) A t is calculated according to the following formula: A t 1= Tl (Abis port delay) -tl (link delay between base stations in BTS 1 to BTS2 direction)
A t 2= T2(Abis口延时) -t2 ( BTS2到 BTS 1方向基站间链路延时) A t 2= T2 (Abis port delay) -t2 (link delay between base stations in BTS2 to BTS 1 direction)
4、 延时的下发和设置 基站控制器将计算出来的延时 Δ t 1和 Δ t 2通过消息下发给基站。 基站 在发送时进行设置。 下面结合附图以 IPAbis方式为例, 对技术方案的实施作进一步的详细描 述: 本发明的本地交换实现的方法, 包括: 第一终端和第二终端在建立通话时, 基站控制器 (BSC ) 建立与第一基 站、 第二基站之间的通话链路, BSC根据通话链路建立时间分别获得第一基 站、 第二基站与 BSC之间的延时时间; 当通话从传统模式转换到本地交换模式, BSC发送新链路建立消息给第 一基站和第二基站, 获得第一基站到第二基站的链路延时时间以及第二基站 到第一基站的链路延时时间; 4, the delay provided the base station controller and delivers the calculated time delay Δ t 1 and Δ t 2 the message sent by the base station. The base station sets up when transmitting. The IPAbis mode is taken as an example to describe the implementation of the technical solution in detail. The method for implementing the local switching according to the present invention includes: when the first terminal and the second terminal establish a call, the base station controller (BSC) Establishing a call link with the first base station and the second base station, and the BSC obtains a delay time between the first base station, the second base station, and the BSC according to the call link setup time; when the call is switched from the traditional mode to the local exchange In the mode, the BSC sends a new link setup message to the first base station and the second base station, and obtains a link delay time of the first base station to the second base station and a link delay time of the second base station to the first base station;
BSC才艮据第一基站与 BSC之间的延时时间, 减去第一基站到第二基站 的链路延时时间, 获得第一基站转换延时时间; 根据第二基站与 BSC之间的 延时时间, 减去第二基站到第一基站的链路延时时间, 获得第二基站转换延 时时间; The BSC subtracts the link delay time from the first base station to the second base station according to the delay time between the first base station and the BSC, and obtains the first base station switching delay time; according to the second base station and the BSC Delay time, subtracting the link delay time from the second base station to the first base station, and obtaining a second base station switching delay time;
BSC向第一基站和第二基站分别下发释放旧信道消息, 其中分别携带计 算好的第一基站转换延时时间和第二基站转换延时时间值; 第一基站和第二基站分别收到第一基站转换延时时间和第二基站转换延 时时间, 并设置在新链路参数中, 同时释放原来建立的和 BSC之间的链路, 以保证第一基站和第二基站的语音包在新链路中分别延时第一基站转换延时 时间和第二基站转换延时时间后发送。 在本发明的一个优选实施例中, BSC根据通话链路建立时间分别获得第 一基站、 第二基站与 BSC之间的延时时间, 包括: The BSC sends the release old channel message to the first base station and the second base station, respectively, where the calculated first base station conversion delay time and the second base station conversion delay time value are respectively carried; The first base station and the second base station respectively receive the first base station switching delay time and the second base station switching delay time, and are set in the new link parameter, and simultaneously release the link between the originally established and the BSC to ensure The voice packets of the first base station and the second base station are respectively sent after delaying the first base station switching delay time and the second base station switching delay time in the new link. In a preferred embodiment of the present invention, the BSC obtains the delay time between the first base station, the second base station, and the BSC according to the call link setup time, including:
BSC记录向第一基站、 第二基站发送信道激活消息的发送时间及收到第 一基站、 第二基站发送的信道激活确认消息的接收时间; 根据向第一基站、 第二基站发送信道激活消息的发送时间及收到第一基 站、 第二基站发送的信道激活确认消息的接收时间, 获得第一基站与 BSC之 间的延时时间及第二基站与 BSC之间的延时时间; 在本发明的一个优选实施例中, BSC获得第一基站到第二基站的链路延 时时间以及第二基站到第一基站的链路延时时间, 包括: The BSC records the transmission time of the channel activation message sent to the first base station and the second base station, and the reception time of the channel activation confirmation message sent by the first base station and the second base station; and sends a channel activation message according to the first base station and the second base station. The transmission time and the reception time of the channel activation confirmation message sent by the first base station and the second base station, and the delay time between the first base station and the BSC and the delay time between the second base station and the BSC are obtained; In a preferred embodiment of the invention, the BSC obtains the link delay time from the first base station to the second base station and the link delay time from the second base station to the first base station, including:
BSC 根据发送给第一基站链路建立消息到收到第二基站反馈的新链路 建立完成消息, 获得第一基站到第二基站的链路延时时间; 根据 BSC发送给 第二基站链路建立消息到收到第一基站反馈的新链路建立完成消息, 获得第 二基站到第一基站的链路延时时间。 在本发明的一个优选实施例中, BSC才艮据发送给第一基站链路建立消息 到收到第二基站反馈的新链路建立完成消息, 获得第一基站到第二基站的链 路延时时间, 包括: The BSC obtains a link delay time from the first base station to the second base station according to the new link setup complete message sent to the first base station link setup message, and sends the second base station link according to the BSC. Establishing a message to receive a new link setup complete message fed back by the first base station, and obtaining a link delay time from the second base station to the first base station. In a preferred embodiment of the present invention, the BSC obtains the link extension from the first base station to the second base station according to the new link setup complete message sent to the first base station link setup message and received by the second base station. Time, including:
BSC发送新链路建立消息给第一基站时记录发送时刻; 第一基站收到新链路建立消息, 开始向第二基站发起链路层的链路建立 请求消息; 第二基站收到第一基站发送过来的链路建立请求消息后, 反馈新 链路建立完成消息给 BSC, BSC收到后记录接收时刻; BSC 将发送新链路建立消息给第一基站的发送时刻与接收到第二基站 反馈的新链路建立完成消息的接收时刻相减, 获得第一基站到第二基站的链 路延时时间。 在本发明的一个优选实施例中 ,才艮据 BSC发送给第二基站链路建立消息 到收到第一基站反馈的新链路建立完成消息, 获得第二基站到第一基站的链 路延时时间, 包括: The BSC records the transmission time when the new link setup message is sent to the first base station; the first base station receives the new link setup message, and starts to initiate the link layer link setup request message to the second base station; the second base station receives the first time. After the link setup request message sent by the base station, the new link setup complete message is fed back to the BSC, and the BSC receives the record receiving time; the BSC sends a new link setup message to the first base station to send the time and receive the second base station. The received time of the feedback of the new link setup complete message is subtracted, and the link delay time of the first base station to the second base station is obtained. In a preferred embodiment of the present invention, the link establishment message is sent to the second base station according to the BSC. Receiving a new link setup complete message fed back by the first base station, and obtaining a link delay time from the second base station to the first base station, including:
BSC发送新链路建立消息给第二基站时记录发送时刻; 第二基站收到新链路建立消息, 开始向第一基站发起链路层的链路建立 请求消息; 第一基站收到第二基站发送过来的链路建立请求消息后, 反馈新 链路建立完成消息给 BSC, BSC收到后记录接收时刻; The BSC records the transmission time when the new link setup message is sent to the second base station; the second base station receives the new link setup message, and starts to initiate the link layer link setup request message to the first base station; the first base station receives the second After the link establishment request message sent by the base station, the new link establishment completion message is fed back to the BSC, and the BSC receives the record reception time;
BSC 将发送新链路建立消息给第二基站的发送时刻与接收到第一基站 反馈的新链路建立完成消息的接收时刻相减, 获得第二基站到第一基站的链 路延时时间。 在本发明的一个优选实施例中, BSC发送给第一基站和第二基站的新链 路建立消息中, 包括对方基站与链路建立相关的参数, 包括 IP和端口号。 在本发明的一个优选实施例中, BSC向第一基站和第二基站分别下发的 释放旧信道消息中, 还包括: 要释放的 BSC和第一基站、 第二基站之间的链 路信息。 附图 2为本发明的转换流程和 Δ t计算。 实施例一: 本地交换控制面转换流程的设计 本发明中, 实现本地交换, 就需要实现三步: 基站与基站之间 RTP链路 的建立; 从基站到基站控制器之间的 RTP 链路切换到基站与基站之间 RTP 链路上; 从基站到基站控制器之间的 RTP链路的释放。 步骤 1 : 建立新链路。 BSC给 BTS 1和 BTS2发送建立新链路消息。 BSC 给 BTS 1发送的建立新链路消息中包括 BTS2的 IP地址和端口号。同样, BSC 给 BTS2中发送的建立新链路消息中包括 BTS 1的 IP地址和端口号。 这样, BTS 1和 BTS2才能互相知道并建立与对方的 RTP链路。 步骤 2: 新链路建立完成指示。 注意, BTS 1在激活并发送 RTP链路建 立请求给 BTS2 时, 并不给 BSC反馈新链路建立完成指示, 而是等到收到The BSC subtracts the transmission time at which the new link setup message is sent to the second base station and the reception time at which the new link setup complete message is received by the first base station, and obtains the link delay time from the second base station to the first base station. In a preferred embodiment of the present invention, the BSC sends a new link setup message to the first base station and the second base station, including parameters related to link establishment, including IP and port number. In a preferred embodiment of the present invention, the release of the old channel message sent by the BSC to the first base station and the second base station respectively includes: a link information between the BSC to be released and the first base station and the second base station. . Figure 2 is a conversion flow and Δ t calculation of the present invention. Embodiment 1: Design of Local Switching Control Plane Conversion Flow In the present invention, to implement local exchange, three steps need to be implemented: RTP link establishment between base station and base station; RTP link switch between base station and base station controller To the RTP link between the base station and the base station; the release of the RTP link from the base station to the base station controller. Step 1: Establish a new link. The BSC sends a new link message to BTS 1 and BTS2. The establishment of a new link message sent by the BSC to the BTS 1 includes the IP address and port number of the BTS 2. Similarly, the BSC sends the new link message sent in BTS2 to include the IP address and port number of BTS 1. In this way, BTS 1 and BTS2 can know each other and establish an RTP link with the other party. Step 2: The new link setup completion indication. Note that when the BTS 1 activates and sends an RTP link setup request to the BTS2, it does not give the BSC feedback for the new link setup completion indication, but waits until it receives
BTS2发送 BTS 1的 RTP链路建立请求时, 才能给 BSC回复 BTS 1的新链路 建立完成指示。 BTS2 的处理过程一样。 这样故的目的是, 即保证了本地交 换时 BTS 1和 BTS2之间的链路必然建好, 也保证了 BSC可以计算 BTS 1和 BTS2之间的链路延时。 步骤 3: BSC在获知 BTS 1和 BTS2之间的链路建好之后,需要进行 Δ tl 和 Δ t2计算, 并开始释放原来使用的 BSC与 BTS 1、 BSC与 BTS2之间的链 路。 因此, BSC分别给 BTS 1和 BTS2发送释放旧链路消息, 内容是 BTS 1 和 BTS2的 IP地址和端口号。 本消息中还携带 Δ t信息, 在 BSC给 BTS 1的 释放旧链路消息中包含 Δ tl值; 在 BSC给 BTS2的释放旧链路消息中包含 When the BTS2 sends the RTP link setup request of the BTS 1, the BSC can reply to the BTS 1 for the new link setup completion indication. The processing of BTS2 is the same. The purpose of this is to ensure that the link between BTS 1 and BTS2 is bound to be established during local switching, and that the BSC can calculate BTS 1 and Link delay between BTS2. Step 3: After knowing that the link between BTS 1 and BTS2 is established, the BSC needs to perform Δ tl and Δ t 2 calculations, and starts to release the link between the original used BSC and BTS 1, BSC and BTS2. Therefore, the BSC sends a release old link message to BTS 1 and BTS 2, respectively, and the contents are the IP address and port number of BTS 1 and BTS 2. This message also carries information Δ t, the BSC to release the old link message comprising the BTS 1 Δ tl values; message in the BSC to release the old link to BTS2 contains
Δ ί2值。 这样, 类似基站将 ΤΑ值告知手机, BSC也将 Δ t延时补偿告知了 基站。 步骤 4: BTS 1和 BTS2将收到 Δ tl和 Δ t2值设置在新链路参数中, 然 后释放原来建立的和 BSC之间的链路, 完成释放工作后, 通过释放旧链路完 成消息告知 BSC。 实施例二: 从传统模式到本地交换模式转换的延时 Δ T 1和 Δ t2计算 步骤 1 : MS 1 (第一终端) 和 MS2 (第二终端) 在建立通话时, BSC在 给 BTS 1 (第一基站) 和 BTS2 (第二基站)发送 TCH ( Traffic Channel, 业 务信道)信道激活消息 101和 TCH信道激活消息 102时, 分别记录发送时 间 T11和 T21 , 建立 BSC与 BTS 1、 BTS2之间的通话链路。 步骤 2:当 BSC分别收到 BTS 1和 BTS2的信道激活确认消息 102和 202 时, 记录接收时间 T12和 T22。 因此, 可以计算出 BTS 1和 BSC的 Abis口 延时 Tl= ( T12-T11 ) /2; 同样, BTS2和 BSC的 Abis口延时 T2= ( T22-T21 ) /2; 此时 BSC与 BTS 1、 BTS2之间的通话链路分别建立完成。通话开始进行。 步骤 3 : 当呼叫建立后, 两路电话, 从传统模式转换到本地交换模式, 需要预先建立和对方基站的新链路, 如图 3所示, BSC发送新链路建立消息 210给 BTS2,并记录发送时刻 T23。同时也发送新链路建立消息 110给 BTS 1 , 并记录发送时刻 Τ 13。两个消息中都携带对方基站的与链路建立相关的参数, 比 ^口, IP和 Port (端口号)。 步骤 4: 当 BTS 1收到新链路建立消息 110后, 开始向 BTS2发起链路层 的链路建立请求消息; 同样, 当 BTS2收到新链路建立消息 210后, 开始向 BTS 1发起链路层的链路建立请求消息。 BTS 1收到对方基站 BTS2发送过来 的链路建立请求消息 (表示链路发起请求建立的消息, 是链路层内部消息) 后(注意! 是收到对方基站 BTS2发送的链路建链消息后), 才发送新链路建 立完成消息 111给 BSC, BSC收到后记录接收时刻 T14。 类似的, BTS2收 到对方基站 BTS1发送过来的链路建立请求消息 (表示链路发起请求建立的 消息, 是链路层内部消息) 后 (注意! 是收到对方基站 BTS1发送的链路建 链消息后), 才发送新链路建立完成消息 211给 BSC, BSC收到后记录接收 时刻 T24。 Δ ί2 value. Thus, similar to the base station informs the phone that the ΤΑ value, the BSC will be informed of the delay compensation Δ t the base station. Step 4: BTS 1 and BTS2 set the values of Δ tl and Δ t 2 in the new link parameters, and then release the link between the original established BSC and the BSC. After the release is completed, the message is completed by releasing the old link. Inform the BSC. Embodiment 2: Delay from the traditional mode to the local exchange mode conversion Δ T 1 and Δ t 2 Calculation step 1: MS 1 (first terminal) and MS2 (second terminal) When establishing a call, the BSC is giving BTS 1 When the (first base station) and the BTS2 (second base station) transmit the TCH (Traffic Channel) channel activation message 101 and the TCH channel activation message 102, the transmission times T11 and T21 are respectively recorded, and the BSC is established between the BTS and the BTS 1 and the BTS 2 Call link. Step 2: When the BSC receives the channel activation confirmation messages 102 and 202 of the BTS 1 and the BTS 2, respectively, the reception times T12 and T22 are recorded. Therefore, the Abis port delay of TTS=BSC1 and BSC can be calculated as Tl=(T12-T11)/2; likewise, the Abis port delay of BTS2 and BSC is T2=(T22-T21) /2; BSC and BTS 1 at this time The call links between the BTSs and the BTS2 are respectively established. The call begins. Step 3: After the call is established, the two phones switch from the legacy mode to the local exchange mode, and a new link with the base station needs to be established in advance. As shown in FIG. 3, the BSC sends a new link setup message 210 to the BTS2, and The transmission time T23 is recorded. At the same time, a new link setup message 110 is sent to the BTS 1 and the transmission time Τ 13 is recorded. Both messages carry the parameters related to the link establishment of the base station, such as the port, IP, and port (port number). Step 4: After the BTS 1 receives the new link setup message 110, it starts to initiate the link layer to the BTS2. The link establishment request message; Similarly, when the BTS2 receives the new link setup message 210, it starts to initiate a link layer link setup request message to the BTS 1. After receiving the link establishment request message sent by the base station BTS2 (the message indicating the establishment of the link initiation request, which is the link layer internal message), the BTS 1 receives the link establishment message sent by the base station BTS2. After the new link setup complete message 111 is sent to the BSC, the BSC receives the record reception time T14. Similarly, after receiving the link setup request message sent by the base station BTS1 (the message indicating the establishment of the link initiation request, which is the link layer internal message), the BTS2 receives the link establishment link sent by the base station BTS1. After the message, the new link setup complete message 211 is sent to the BSC, and the BSC receives the record reception time T24.
jt匕时, 可计算出, 从 BTS1到 BTS2的链路延时 tl为: tl=T13-T24 (从 BSC发送给第一基站 BTS1建立消息到收到 BTS2反馈 的基站建立好的消息); 从 BTS2到 BTS1的链路延时 t2为: t2=T23-T14 (从 BSC发送给第二基站 BTS2建立消息到收到 BTS1反馈 的基站建立好的消息); 步骤 5: 计算 Δ tl和 Δ t2: ) Δ tl =Tl-tl (当 BSC判断两个基站不为同一个基站时); b)^ t2 = T2- 12 (当 BSC判断两个基站不为同一个基站时); Ο) Δ tl=Tl (当 BSC判断两个基站为同一个基站时, 此时 tl=0 ); d) Δ t2= T2 (当 BSC判断两个基站为同一个基站时, 此时 t2=0 ); 因为 Tl、 T2、 tl、 t2 都包含编解码等其他非链路建立的处理时间, 所 以相减后得到的 Δ tl和 Δ t2都是比较纯粹的链路延时差。 步骤 6: BSC给 BTS1和 BTS2分别下发释放旧信道消息 112和 212, 其 中分别携带计算好的 Δ tl和 Δ t2的值, 同时也携带要释放的 BSC和 BTS之 间的链路信息。 步骤 7: BTS 1和 BTS2分别收到 Δ tl和 Δ t2的值后, 设置到链路发送 参数设置中,以保证 BTS 1和 BTS2的语音包在分别延时 Δ tl和 Δ t2后发送。 实施例三: 从本地交换模式到传统模式的转换 虽然转换方向和实施例二相反, 除了个别参数设置外, 流程完全一致。 因为转换方向是从 BTS 1和 BTS2之间的链路转换到 BTS与 BSC之间的链路, 所以, 在发送新链路建立消息时, 携带的建链参数是 BSC的 IP和 PORT信 息。 也就是说和 BSC 重新建立新链接。 释放旧链路时, 释放的是 BTS 1 和Jt匕, it can be calculated that the link delay t1 from BTS1 to BTS2 is: tl=T13-T24 (from the BSC to the first base station BTS1 to establish a message to the BTS2 feedback base station established message); The link delay t2 of BTS2 to BTS1 is: t2=T23-T14 (from the BSC to the second base station BTS2 setup message to the base station established message received by the BTS1 feedback); Step 5: Calculate Δ tl and Δ t 2 : ) Δ tl =Tl-tl (when the BSC determines that the two base stations are not the same base station); b)^ t2 = T2- 12 (when the BSC determines that the two base stations are not the same base station); Ο) Δ tl = Tl (BSC when the two base stations is determined for the same base station, at this time tl = 0); d) Δ t 2 = T2 ( BSC determines if the two base stations is the same base station, this time t2 = 0); because Tl, T2, tl, and t2 all contain processing time of other non-link establishment such as codec, so Δtl and Δt2 obtained after subtraction are relatively pure link delay differences. Step 6: BSC and BTS1 to BTS2 are issued to release the old channel messages 112 and 212, respectively, which carry the calculated values of Δ tl Δ and t 2 are, while also carrying the BSC and BTS to release the Link information between. Step 7: After receiving the values of Δ tl and Δ t 2 respectively, BTS 1 and BTS 2 are set to the link transmission parameter setting to ensure that the voice packets of BTS 1 and BTS 2 are sent after delays Δ tl and Δ t 2 respectively. . Embodiment 3: Conversion from local exchange mode to traditional mode Although the conversion direction is opposite to that of the second embodiment, the process is completely identical except for the individual parameter settings. Since the switching direction is from the link between the BTS 1 and the BTS 2 to the link between the BTS and the BSC, when the new link setup message is sent, the built-in parameter is the IP and PORT information of the BSC. This means re-establishing a new link with the BSC. When the old link is released, the BTS 1 and the release are released.
BTS2之间的链路。 此时, 链路时延 Δ tl和 Δ t2不需要重新计算, 依旧沿用 从传统模式到本地交换模式转换时 (也就是实施例二) 中计算所得的 值, 在释放旧链路消息中携带。 附图 3描述了本地交换下的 Δ t的应用图。 从图中可以看到, BTS 1和 BTS2在链路分别发送加了 Δ tl和 Δ t2的延 时后, 在两种模式转换时, 因语音时延一致, 可以做到无缝转换。 本方法不仅仅适用于 IPAbis链路, 同样适用于其他协议实现的 Abis链 路。 本发明还提供了一种本地交换实现的装置, 包括: 设置于基站控制器 ( BSC ) 的第一延时时间获得模块、 第二延时时间获得模块、 基站转换延时 时间获得模块、 消息发送模块; 设置于第一基站和第二基站的处理模块; 第一延时时间获得模块, 用于第一终端和第二终端在建立通话时, 建立 与第一基站、 第二基站之间的通话链路, BSC根据通话链路的建立时间分别 获得第一基站、 第二基站与 BSC之间的延时时间; 第二延时时间获得模块, 用于当通话从传统模式转换到本地交换模式, 发送给第一基站和第二基站新链路建立消息, 获得第一基站到第二基站的链 路延时时间以及第二基站到第一基站的链路延时时间; 基站转换延时时间获得模块, 用于根据第一基站与 BSC 之间的延时时 间,减去第一基站到第二基站的链路延时时间,获得第一基站转换延时时间; 根据第二基站与 BSC之间的延时时间,减去第二基站到第一基站的链路延时 时间, 获得第二基站转换延时时间; 消息发送模块, 用于向第一基站和第二基站分别下发释放旧信道消息, 其中旧信道消息分别携带计算好的第一基站转换延时时间和第二基站转换延 时时间值; 处理模块, 设置于第一基站和第二基站, 分别接收到第一基站转换延时 时间和第二基站转换延时时间, 并设置在新链路的参数中, 同时释放原来建 立的和 BSC之间的链路,以保证第一基站和第二基站的语音包在新链路中分 别延时第一基站转换延时时间和第二基站转换延时时间后发送。 在本发明的一个优选实施例中, 第一延时时间获得模块, 还用于记录向 第一基站、 第二基站发送信道激活消息的发送时间及接收到第一基站、 第二 基站发送的信道激活确认消息的接收时间; 根据向第一基站、 第二基站发送信道激活消息的发送时间及接收到第一 基站、 第二基站发送的信道激活确认消息的接收时间, 获得第一基站与 BSC 之间的延时时间及第二基站与 BSC之间的延时时间。 在本发明的一个优选实施例中, 第二延时时间获得模块, 还用于根据发 送给第一基站链路建立消息到收到第二基站反馈的新链路建立完成消息之间 的时间间隔, 获得第一基站到第二基站的链路延时时间; 根据 BSC发送给第 二基站链路建立消息到接收到第一基站反馈的新链路建立完成消息之间的时 间间隔, 获得第二基站到第一基站的链路延时时间。 在本发明的一个优选实施例中, 第二延时时间获得模块,进一步用于当 BSC发送新链路建立消息给第一 基站时记录发送时刻; 并当第一基站收到新链路建立消息, 开始向第二基站 发起链路层的链路建立请求消息, 第二基站接收到第一基站发送过来的链路 建立请求消息后, 反馈新链路建立完成消息给 BSC 时, BSC接收到新链路 完成消息后, 并记录接收时刻; 将 BSC发送新链路建立消息给第一基站的发 送时刻与接收到第二基站反馈的新链路建立完成消息的接收时刻相减, 获得 第一基站到第二基站的链路延时时间。 在本发明的一个优选实施例中, 第二延时时间获得模块,进一步用于当 BSC发送新链路建立消息给第二 基站时, 记录发送时刻; 并当第二基站接收到新链路建立消息, 开始向第一 基站发起链路层的链路建立请求消息, 第一基站接收到第二基站发送过来的 链路建立请求消息后, 反馈新链路建立完成消息给 BSC 时, BSC接收到新 链路完成消息后, 并记录接收时刻; 将 BSC发送新链路建立消息给第二基站 的发送时刻与接收到第一基站反馈的新链路建立完成消息的接收时刻相减, 获得第二基站到第一基站的链路延时时间。 在本发明的一个优选实施例中, 第二延时时间获得模块发送给第一基站 的新链路建立消息中, 包括第一基站与链路建立相关的参数, 参数包括 IP和 端口号, 发送给第二基站的新链路建立消息中, 包括第二基站与链路建立相 关的参数, 其中, 参数包括 IP和端口号。 在本发明的一个优选实施例中, 消息发送模块向第一基站和第二基站下 发的释放旧信道消息中包括: 要释放的 BSC和第一基站之间的链路信息, 向 第二基站下发的释放旧信道消息中包括:要释放的 BSC和第二基站之间的链 路信息。 显然, 本领域的技术人员可以对本发明方法进行各种改动和变型而不脱 离本方法的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 以上所述, 仅为本发明的较佳实施例而已, 并非用来限定本发明的保护 范围。本领域内技术人员应该能够联想到,使用其它移动通信系统,比如 PHS ( Personal Handy Phone System, 手持电话系统)、 CDMA ( Code Division Multiple Access ) 或一些 3G移动通信系统等 , 都应该属于本发明的保护范 围之内。 上述具体实施方式以较佳实施例对本发明进行了说明, 但这只是为了便 于理解而举的一个形象化的实例, 不应被视为是对本发明范围的限制。 同样, 根据本发明的技术方案及其较佳实施例的描述, 可以做出各种可能的等同改 变或替换, 而所有这些改变或替换都应属于本发明权利要求的保护范围。 The link between BTS2. At this time, the link delays Δ tl and Δ t 2 do not need to be recalculated, and the values calculated from the traditional mode to the local switching mode transition (that is, the second embodiment) are still used, and are carried in the release old link message. . Figure 3 describes the application of FIG Δ t in the local exchange. As can be seen from the figure, after the delays of Δ tl and Δ t 2 are respectively sent by the BTS 1 and the BTS 2, when the two modes are switched, the seamless transition can be achieved due to the consistent speech delay. This method is not only applicable to IPAbis links, but also applies to Abis links implemented by other protocols. The present invention also provides an apparatus for implementing local switching, comprising: a first delay time obtaining module, a second delay time obtaining module, a base station switching delay time obtaining module, and a message sending set in a base station controller (BSC) a processing module configured in the first base station and the second base station; a first delay time obtaining module, configured to establish, by the first terminal and the second terminal, a call between the first base station and the second base station when establishing a call a link, the BSC obtains a delay time between the first base station, the second base station, and the BSC according to the setup time of the call link, and a second delay time obtaining module, configured to switch the call from the traditional mode to the local exchange mode, Sending a new link setup message to the first base station and the second base station, obtaining a link delay time from the first base station to the second base station, and a link delay time from the second base station to the first base station; a base station switching delay time obtaining module, configured to subtract a link delay time of the first base station to the second base station according to a delay time between the first base station and the BSC, to obtain a first base station switching delay time; The delay time between the second base station and the BSC, minus the link delay time of the second base station to the first base station, to obtain the second base station switching delay time; the message sending module, configured to the first base station and the second base station The old channel message is respectively delivered, where the old channel message carries the calculated first base station switching delay time and the second base station switching delay time value respectively; the processing module is set at the first base station and the second base station, respectively received The first base station switching delay time and the second base station switching delay time are set in the parameters of the new link, and simultaneously release the link between the originally established and the BSC to ensure the voices of the first base station and the second base station. The packet is sent after delaying the first base station switching delay time and the second base station switching delay time in the new link. In a preferred embodiment of the present invention, the first delay time obtaining module is further configured to record a transmission time of transmitting a channel activation message to the first base station and the second base station, and receive a channel sent by the first base station and the second base station. a receiving time of the activation confirmation message; obtaining the first base station and the BSC according to the sending time of the channel activation message sent to the first base station and the second base station, and the receiving time of the channel activation confirmation message sent by the first base station and the second base station The delay time between the delay time and the delay between the second base station and the BSC. In a preferred embodiment of the present invention, the second delay time obtaining module is further configured to: according to the time interval between the message sent to the first base station link setup message and the new link setup complete message fed back by the second base station Obtaining a link delay time from the first base station to the second base station; obtaining a second time according to a time interval between the BSC sending the second base station link setup message to the new link setup complete message received by the first base station feedback The link delay time from the base station to the first base station. In a preferred embodiment of the present invention, the second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the first base station, record the transmission time; and when the first base station receives the new link setup message And starting to initiate a link establishment link setup request message to the second base station, and after receiving the link setup request message sent by the first base station, the second base station feeds back a new link setup complete message to the BSC, and the BSC receives the new message. After the link completion message, the reception time is recorded; the transmission time of the BSC transmitting the new link setup message to the first base station is subtracted from the reception time of the new link setup complete message fed back by the second base station, and the first base station is obtained. The link delay time to the second base station. In a preferred embodiment of the present invention, the second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the second base station, record the transmission time; and when the second base station receives the new link establishment The message starts to initiate a link establishment link request message to the first base station, and after receiving the link setup request message sent by the second base station, the first base station feeds back a new link setup complete message to the BSC, and the BSC receives the message. After the new link completes the message, and records the receiving time; the sending time at which the BSC sends the new link setup message to the second base station is subtracted from the receiving time of the new link setup complete message fed back by the first base station, and obtains the second The link delay time from the base station to the first base station. In a preferred embodiment of the present invention, the second delay time obtaining module sends a new link setup message to the first base station, including parameters related to the link establishment of the first base station, parameters including IP and port numbers, and sending The new link setup message to the second base station includes parameters related to the link establishment of the second base station, where the parameters include an IP and a port number. In a preferred embodiment of the present invention, the release old channel message sent by the message sending module to the first base station and the second base station includes: link information between the BSC to be released and the first base station, to the second base station The released old channel message includes: link information between the BSC to be released and the second base station. It will be apparent to those skilled in the art that various modifications and variations can be made in the method of the invention without departing from the spirit and scope of the method. Thus, it is intended that the present invention cover the modifications and modifications of the invention The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Those skilled in the art should be able to associate with other mobile communication systems, such as PHS (Personal Handy Phone System), CDMA (Code Division Multiple Access) or some 3G mobile communication systems, etc., which should belong to the present invention. Within the scope of protection. The above-described embodiments are described in the preferred embodiments, but are merely illustrative of the invention and are not intended to limit the scope of the invention. Also, various possible equivalents and modifications may be made without departing from the scope of the invention as defined by the appended claims.

Claims

权 利 要 求 书 一种本地交换实现的方法, 其特征在于, 包括:  Claims A method of local exchange implementation, characterized in that it comprises:
第一终端和第二终端在建立通话时,基站控制器 BSC建立与第一基 站、 第二基站之间的通话链路, 所述 BSC才艮据所述通话链路的建立时间 分别获得所述第一基站、 所述第二基站与所述 BSC之间的延时时间; 当通话从传统模式转换到本地交换模式,所述 BSC发送新链路建立 消息给所述第一基站和所述第二基站, 获得所述第一基站到所述第二基 站的链路延时时间以及所述第二基站到所述第一基站的链路延时时间; 所述 BSC根据所述第一基站与所述 BSC之间的延时时间, 减去所 述第一基站到所述第二基站的链路延时时间, 获得第一基站转换延时时 间; 根据所述第二基站与所述 BSC之间的延时时间, 减去所述第二基站 到所述第一基站的链路延时时间, 获得第二基站转换延时时间;  When the first terminal and the second terminal establish a call, the base station controller BSC establishes a call link with the first base station and the second base station, and the BSC obtains the respectively according to the establishment time of the call link. Delay time between the first base station, the second base station, and the BSC; when the call transitions from the legacy mode to the local exchange mode, the BSC sends a new link setup message to the first base station and the first a second base station, obtaining a link delay time of the first base station to the second base station, and a link delay time of the second base station to the first base station; the BSC according to the first base station a delay time between the BSCs, minus a link delay time of the first base station to the second base station, to obtain a first base station switching delay time; according to the second base station and the BSC The delay time between the second base station and the first base station is subtracted, and the second base station switching delay time is obtained;
所述 BSC 向所述第一基站和所述第二基站分别下发释放旧信道消 息, 其中所述旧信道消息分别携带计算好的所述第一基站转换延时时间 值和所述第二基站转换延时时间值;  And the BSC sends the release old channel message to the first base station and the second base station, where the old channel message respectively carries the calculated first base station conversion delay time value and the second base station Conversion delay time value;
所述第一基站和所述第二基站分别接收到所述第一基站转换延时时 间和所述第二基站转换延时时间, 并设置在新链路的参数中, 同时释放 原来建立的和所述 BSC之间的链路;  Receiving, by the first base station and the second base station, the first base station switching delay time and the second base station switching delay time, respectively, and setting the parameters in the new link, and releasing the originally established sum a link between the BSCs;
所述第一基站和所述第二基站的语音包在所述新链路中分别延时所 述第一基站转换延时时间和所述第二基站转换延时时间后发送。 如权利要求 1所述的方法, 其特征在于, 所述 BSC 居所述通话链路的 建立时间分别获得所述第一基站、所述第二基站与所述 BSC之间的延时 时间包括:  The voice packets of the first base station and the second base station are sent after delaying the first base station switching delay time and the second base station switching delay time in the new link, respectively. The method according to claim 1, wherein the delay time between the first base station, the second base station, and the BSC is obtained by the BSC at the settling time of the call link, respectively:
所述 BSC记录向所述第一基站、所述第二基站发送信道激活消息的 发送时间及接收到所述第一基站、 所述第二基站发送的信道激活确认消 息的接收时间;  And sending, by the BSC, a transmission time of the channel activation message to the first base station and the second base station, and receiving a receiving time of the channel activation confirmation message sent by the first base station and the second base station;
居所述向所述第一基站、 所述第二基站发送信道激活消息的发送 时间及接收到所述第一基站、 所述第二基站发送的信道激活确认消息的 接收时间,获得所述第一基站与所述 BSC之间的延时时间及所述第二基 站与所述 BSC之间的延时时间。 Transmitting a transmission time of the channel activation message to the first base station and the second base station, and receiving a channel activation confirmation message sent by the first base station and the second base station Receiving time, obtaining a delay time between the first base station and the BSC and a delay time between the second base station and the BSC.
3. 如权利要求 1所述的方法, 其特征在于, 所述 BSC获得所述第一基站到 所述第二基站的链路延时时间以及所述第二基站到所述第一基站的链路 延时时间包括: The method according to claim 1, wherein the BSC obtains a link delay time of the first base station to the second base station and a chain of the second base station to the first base station The road delay time includes:
所述 BSC 根据发送给第一基站链路建立消息到收到第二基站反馈 的新链路建立完成消息之间的时间间隔, 获得所述第一基站到所述第二 基站的链路延时时间;根据所述 BSC发送给所述第二基站链路建立消息 到接收到第一基站反馈的新链路建立完成消息之间的时间间隔, 获得所 述第二基站到所述第一基站的链路延时时间。  Obtaining, by the BSC, a link delay between the first base station and the second base station according to a time interval between sending a first base station link setup message and receiving a new link setup complete message fed back by the second base station Obtaining, according to a time interval between the second base station link setup message sent by the BSC and receiving a new link setup complete message fed back by the first base station, obtaining the second base station to the first base station Link delay time.
4. 如权利要求 3所述的方法, 其特征在于, 所述 BSC 居发送给第一基站 链路建立消息到收到第二基站反馈的新链路建立完成消息之间的时间间 隔, 获得所述第一基站到所述第二基站的链路延时时间包括: The method according to claim 3, wherein the time interval between the BSC sent to the first base station link setup message and the new link setup complete message fed back by the second base station is obtained. The link delay time from the first base station to the second base station includes:
所述 BSC发送新链路建立消息给所述第一基站时, 记录发送时刻; 所述第一基站接收到所述新链路建立消息, 开始向所述第二基站发 起链路层的链路建立请求消息; 所述第二基站接收到所述第一基站发送 过来的所述链路建立请求消息后,反馈新链路建立完成消息给所述 BSC, 所述 BSC接收到所述新链路完成消息后, 并记录接收时刻;  When the BSC sends a new link setup message to the first base station, the transmission time is recorded; the first base station receives the new link setup message, and starts to initiate a link layer link to the second base station. Establishing a request message; after receiving the link setup request message sent by the first base station, the second base station feeds back a new link setup complete message to the BSC, and the BSC receives the new link. After completing the message, and recording the receiving time;
所述 BSC 将发送所述新链路建立消息给所述第一基站的发送时刻 与接收到所述第二基站反馈的所述新链路建立完成消息的接收时刻相 减, 获得所述第一基站到所述第二基站的链路延时时间。  Determining, by the BSC, the sending time of the new link setup message to the first base station and the receiving time of receiving the new link setup complete message fed back by the second base station, to obtain the first The link delay time from the base station to the second base station.
5. 如权利要求 3所述的方法, 其特征在于, -据所述 BSC发送给所述第二 基站链路建立消息到收到第一基站反馈的新链路建立完成消息之间的时 间间隔, 获得所述第二基站到所述第一基站的链路延时时间包括: 5. The method according to claim 3, wherein: - a time interval between the BSC sending the second base station link setup message to the new link setup complete message fed back by the first base station And obtaining a link delay time from the second base station to the first base station, where
所述 BSC发送所述新链路建立消息给所述第二基站时,记录发送时 刻;  When the BSC sends the new link setup message to the second base station, the transmission time is recorded;
所述第二基站接收到所述新链路建立消息, 开始向所述第一基站发 起链路层的链路建立请求消息; 所述第一基站接收到所述第二基站发送 过来的所述链路建立请求消息后,反馈新链路建立完成消息给所述 BSC, 所述 BSC接收到所述新链路完成消息后, 并记录接收时刻; 所述 BSC 将发送所述新链路建立消息给所述第二基站的发送时刻 与接收到所述第一基站反馈的所述新链路建立完成消息的接收时刻相 减, 获得所述第二基站到所述第一基站的链路延时时间。 Receiving, by the second base station, the new link setup message, initiating a link establishment link request message to the first base station; the first base station receiving the After the link establishment request message, the new link establishment completion message is fed back to the BSC, and after receiving the new link completion message, the BSC records the reception time; Transmitting, by the BSC, a sending moment of sending the new link setup message to the second base station to a receiving moment of receiving the new link setup complete message fed back by the first base station, to obtain the second The link delay time of the base station to the first base station.
6. 如权利要求 1所述的方法, 其特征在于, 所述 BSC发送给所述第一基站 的所述新链路建立消息中, 包括所述第一基站与链路建立相关的参数, 其中, 所述参数包括 IP和端口号, 所述 BSC发送给所述第二基站的所 述新链路建立消息中, 包括第二基站与链路建立相关的参数, 其中, 所 述参数包括 IP和端口号。 The method according to claim 1, wherein the new link setup message sent by the BSC to the first base station includes parameters related to link establishment of the first base station, where The parameter includes an IP and a port number, and the new link setup message sent by the BSC to the second base station includes parameters related to link establishment of the second base station, where the parameters include IP and The port number.
7. 如权利要求 1所述的方法, 其特征在于, 所述 BSC向所述第一基站下发 的释放旧信道消息中包括:要释放的所述 BSC和所述第一基站之间的链 路信息, 所述 BSC向所述第二基站下发的释放旧信道消息中包括: 要释 放的所述 BSC和所述第二基站之间的链路信息。 The method according to claim 1, wherein the releasing the old channel message sent by the BSC to the first base station comprises: a chain between the BSC to be released and the first base station The information about the old channel that is sent by the BSC to the second base station includes: link information between the BSC to be released and the second base station.
8. —种本地交换实现的装置, 其特征在于, 包括: 设置于基站控制器 BSC 的第一延时时间获得模块、 第二延时时间获得模块、 基站转换延时时间 获得模块、 消息发送模块; 设置于第一基站和第二基站的处理模块; 所述第一延时时间获得模块, 用于所述第一终端和所述第二终端在 建立通话时, 建立与所述第一基站、 所述第二基站之间的通话链路, 所 述 BSC根据所述通话链路的建立时间分别获得所述第一基站、所述第二 基站与 BSC之间的延时时间; 8. The device implemented by the local exchange, comprising: a first delay time obtaining module, a second delay time obtaining module, a base station switching delay time obtaining module, and a message sending module, which are set in the base station controller BSC And a processing module that is configured by the first base station and the second base station; and the first delay time obtaining module is configured to establish, when the call is established, the first terminal and the second terminal, a call link between the second base stations, where the BSC obtains a delay time between the first base station, the second base station, and the BSC according to the setup time of the call link;
所述第二延时时间获得模块, 用于当通话从传统模式转换到本地交 换模式, 发送给所述第一基站和所述第二基站新链路建立消息, 获得所 述第一基站到所述第二基站的链路延时时间以及所述第二基站到所述第 一基站的链路延时时间;  The second delay time obtaining module is configured to: when the call is switched from the traditional mode to the local switching mode, send the new link setup message to the first base station and the second base station, to obtain the first base station to the a link delay time of the second base station and a link delay time of the second base station to the first base station;
所述基站转换延时时间获得模块, 用于根据所述第一基站与所述 BSC之间的延时时间, 减去所述第一基站到所述第二基站的链路延时时 间, 获得第一基站转换延时时间; 根据所述第二基站与所述 BSC之间的 延时时间, 减去所述第二基站到所述第一基站的链路延时时间, 获得第 二基站转换延时时间;  The base station switching delay time obtaining module is configured to: subtract, according to a delay time between the first base station and the BSC, a link delay time of the first base station to the second base station, to obtain Decoding a delay time of the first base station; subtracting a link delay time of the second base station to the first base station according to a delay time between the second base station and the BSC, to obtain a second base station conversion Delay time
所述消息发送模块, 用于向所述第一基站和所述第二基站分别下发 释放旧信道消息, 其中所述旧信道消息分别携带计算好的所述第一基站 转换延时时间值和所述第二基站转换延时时间值; 所述处理模块, 设置于所述第一基站和所述第二基站, 分别接收到 所述第一基站转换延时时间和所述第二基站转换延时时间, 并设置在新 链路的参数中, 同时释放原来建立的和所述 BSC之间的链路, 以保证所 述第一基站和所述第二基站的语音包在所述新链路中分别延时所述第一 基站转换延时时间和所述第二基站转换延时时间后发送。 The message sending module is configured to send a release old channel message to the first base station and the second base station, where the old channel message carries the calculated first base station conversion delay time value and Translating a delay time value by the second base station; The processing module is configured to receive, by the first base station and the second base station, the first base station switching delay time and the second base station switching delay time, and set parameters of the new link And releasing the link between the originally established BSC and the BSC to ensure that the voice packets of the first base station and the second base station respectively delay the first base station in the new link. The time is transmitted after the second base station transition delay time.
9. 如权利要求 8所述的装置, 其特征在于, 9. Apparatus according to claim 8 wherein:
所述第一延时时间获得模块, 还用于记录向所述第一基站、 所述第 二基站发送信道激活消息的发送时间及接收到所述第一基站、 所述第二 基站发送的信道激活确认消息的接收时间;  The first delay time obtaining module is further configured to record a sending time of sending a channel activation message to the first base station and the second base station, and receiving a channel sent by the first base station and the second base station The receiving time of the activation confirmation message;
居所述向所述第一基站、 所述第二基站发送信道激活消息的发送 时间及接收到所述第一基站、 所述第二基站发送的信道激活确认消息的 接收时间,获得所述第一基站与所述 BSC之间的延时时间及所述第二基 站与所述 BSC之间的延时时间。  And the receiving time of the channel activation message sent by the first base station and the second base station, and the receiving time of the channel activation confirmation message sent by the first base station and the second base station, a delay time between a base station and the BSC and a delay time between the second base station and the BSC.
10. 如权利要求 8所述的装置, 其特征在于, 10. Apparatus according to claim 8 wherein:
所述第二延时时间获得模块, 还用于根据发送给第一基站链路建立 消息到收到第二基站反馈的新链路建立完成消息之间的时间间隔, 获得 所述第一基站到所述第二基站的链路延时时间;根据所述 BSC发送给所 述第二基站链路建立消息到接收到第一基站反馈的新链路建立完成消息 之间的时间间隔, 获得所述第二基站到所述第一基站的链路延时时间。  The second delay time obtaining module is further configured to obtain, according to a time interval between sending a message to the first base station link setup message and receiving a new link setup complete message fed back by the second base station, to obtain the first base station to a link delay time of the second base station; obtaining, according to a time interval between the BSC sending the second base station link setup message to the new link setup complete message fed back by the first base station, The link delay time of the second base station to the first base station.
11. 如权利要求 10所述的装置, 其特征在于, 11. Apparatus according to claim 10 wherein:
所述第二延时时间获得模块 ,进一步用于当所述 BSC发送新链路建 立消息给所述第一基站时, 记录发送时刻; 并当所述第一基站接收到所 述新链路建立消息, 开始向所述第二基站发起链路层的链路建立请求消 息, 所述第二基站接收到所述第一基站发送过来的所述链路建立请求消 息后, 反馈新链路建立完成消息给所述 BSC时, 所述 BSC接收到所述 新链路完成消息后, 并记录接收时刻; 将所述 BSC发送所述新链路建立 消息给所述第一基站的发送时刻与接收到所述第二基站反馈的所述新链 路建立完成消息的接收时刻相减, 获得所述第一基站到所述第二基站的 链路延时时间。  The second delay time obtaining module is further configured to: when the BSC sends a new link setup message to the first base station, record a transmission time; and when the first base station receives the new link establishment a message, starting to initiate a link establishment link request message to the second base station, where the second base station receives the link setup request message sent by the first base station, and the feedback new link is established. When the message is sent to the BSC, the BSC receives the new link completion message, and records the reception time; the BSC sends the new link setup message to the first base station to send the time and receive the message. The receiving time of the new link setup complete message fed back by the second base station is subtracted, and the link delay time of the first base station to the second base station is obtained.
12. 如权利要求 10所述的装置, 其特征在于, 所述第二延时时间获得模块,进一步用于当所述 BSC发送所述新链 路建立消息给所述第二基站时, 记录发送时刻; 并当所述第二基站接收 到所述新链路建立消息, 开始向所述第一基站发起链路层的链路建立请 求消息, 所述第一基站接收到所述第二基站发送过来的所述链路建立请 求消息后, 反馈新链路建立完成消息给所述 BSC时, 所述 BSC接收到 所述新链路完成消息后, 并记录接收时刻; 将所述 BSC发送所述新链路 建立消息给所述第二基站的发送时刻与接收到所述第一基站反馈的所述 新链路建立完成消息的接收时刻相减, 获得所述第二基站到所述第一基 站的链路延时时间。 12. Apparatus according to claim 10, wherein The second delay time obtaining module is further configured to: when the BSC sends the new link setup message to the second base station, record a sending moment; and when the second base station receives the new chain And establishing a link establishment request message of the link layer to the first base station, where the first base station receives the link establishment request message sent by the second base station, and feeds back a new link. After the completion message is sent to the BSC, the BSC receives the new link completion message, and records the reception time; and sends the new link setup message to the second base station by the BSC. The receiving time of the new link setup complete message fed back by the first base station is subtracted, and the link delay time of the second base station to the first base station is obtained.
13. 如权利要求 8所述的装置, 其特征在于, 13. Apparatus according to claim 8 wherein:
所述第二延时时间获得模块发送给所述第一基站的所述新链路建立 消息中, 包括所述第一基站与链路建立相关的参数, 其中, 所述参数包 括 IP和端口号, 发送给所述第二基站的所述新链路建立消息中, 包括所 述第二基站与链路建立相关的参数, 其中, 所述参数包括 IP和端口号。  The new link setup message sent by the second delay time obtaining module to the first base station includes parameters related to link establishment of the first base station, where the parameter includes an IP and a port number. The new link setup message sent to the second base station includes parameters related to link establishment of the second base station, where the parameters include an IP and a port number.
14. 如权利要求 8所述的装置, 其特征在于, 14. Apparatus according to claim 8 wherein:
所述消息发送模块向所述第一基站下发的释放旧信道消息中包括: 要释放的所述 BSC和所述第一基站之间的链路信息, 向所述第二基站下 发的释放旧信道消息中包括:要释放的所述 BSC和所述第二基站之间的 链路信息。  The releasing the old channel message sent by the message sending module to the first base station includes: releasing the link information between the BSC and the first base station, and releasing the information to the second base station The old channel message includes: link information between the BSC to be released and the second base station.
PCT/CN2010/076109 2009-11-30 2010-08-18 Method and device for realizing local switch WO2011063663A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910225543.2 2009-11-30
CN200910225543.2A CN102083230B (en) 2009-11-30 2009-11-30 Method and device for realizing local exchange

Publications (1)

Publication Number Publication Date
WO2011063663A1 true WO2011063663A1 (en) 2011-06-03

Family

ID=44065846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076109 WO2011063663A1 (en) 2009-11-30 2010-08-18 Method and device for realizing local switch

Country Status (2)

Country Link
CN (1) CN102083230B (en)
WO (1) WO2011063663A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1230311A (en) * 1996-07-18 1999-09-29 艾利森公司 System and method for equalizing delay time for transmission paths in distributed antenna network
CN1953576A (en) * 2005-10-20 2007-04-25 株式会社Ntt都科摩 Base station device, mobile station device, and parameter updating method in a mobile communication system
CN101159905A (en) * 2007-11-07 2008-04-09 华为技术有限公司 Local exchange method, core network equipment and network system of implementing in base station controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7460509B2 (en) * 2004-03-05 2008-12-02 Motorola, Inc. Method and apparatus for isochronous datagram delivery over contention-based data link

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1230311A (en) * 1996-07-18 1999-09-29 艾利森公司 System and method for equalizing delay time for transmission paths in distributed antenna network
CN1953576A (en) * 2005-10-20 2007-04-25 株式会社Ntt都科摩 Base station device, mobile station device, and parameter updating method in a mobile communication system
CN101159905A (en) * 2007-11-07 2008-04-09 华为技术有限公司 Local exchange method, core network equipment and network system of implementing in base station controller

Also Published As

Publication number Publication date
CN102083230A (en) 2011-06-01
CN102083230B (en) 2015-01-28

Similar Documents

Publication Publication Date Title
JP4260015B2 (en) System and method for routing voice over IP calls
JP4212230B2 (en) Media communication system and terminal device in the system
TWI387386B (en) Method and apparatus for relaying calls
US20060239277A1 (en) Transmitting messages across telephony protocols
US20040029615A1 (en) Transmission of voice over packet-switched systems
KR20040098304A (en) System and Method for Setting Handover Based on Quality of Service in WCDMA System
US7945267B2 (en) Method, apparatus and system for bearing voice data
KR20050035049A (en) Call setup method for push-to-talk service in cellular mobile telecommunications system
JP2004535729A (en) Group call service for effective transmission of voice packets over CDMA wireless link
WO2009155738A1 (en) Method for switching a-interface user plane when based on ip bearer
WO2013079019A1 (en) Communication method, base station, base station controller, and mobile switching center
WO2011134352A1 (en) Method, system and base station subsystem for realizing handover in local switch
WO2011047560A1 (en) Method and system for local exchange communication
WO2009046594A1 (en) A method for negotiating codec between a wireless network and a core network in a mobile
RU2496260C2 (en) Method, base station controller and base station subsystem for monitoring quality of service
WO2011063663A1 (en) Method and device for realizing local switch
WO2010028600A1 (en) Transmission method of user plane data and network system thereof
WO2011134354A1 (en) System, method and base station subsystem for realizing handover in local switch
JPWO2006027849A1 (en) Handover method in radio access network
JP2013538515A (en) Cellular network
KR101071474B1 (en) Method for Hand-Over between Wireless Broadband System and CDMA System Using SIP Message
WO2008125067A1 (en) A method and device for realizing the voice continuity of session
WO2010115379A1 (en) Method and system for call establishment in process of handover access
WO2010102584A1 (en) Calling handover method within a base station system and mobile communication system
CN101166300A (en) Service switching method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10832570

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10832570

Country of ref document: EP

Kind code of ref document: A1