WO2007036128A1 - A bts-bsc interface and a method for detecting the interface - Google Patents

A bts-bsc interface and a method for detecting the interface Download PDF

Info

Publication number
WO2007036128A1
WO2007036128A1 PCT/CN2006/002263 CN2006002263W WO2007036128A1 WO 2007036128 A1 WO2007036128 A1 WO 2007036128A1 CN 2006002263 W CN2006002263 W CN 2006002263W WO 2007036128 A1 WO2007036128 A1 WO 2007036128A1
Authority
WO
WIPO (PCT)
Prior art keywords
hdlc
bsc
unit
bts
transceiver
Prior art date
Application number
PCT/CN2006/002263
Other languages
French (fr)
Chinese (zh)
Inventor
Kai Wen
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007036128A1 publication Critical patent/WO2007036128A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/04Interfaces between hierarchically different network devices
    • H04W92/12Interfaces between hierarchically different network devices between access points and access point controllers

Definitions

  • the present invention relates to a base station subsystem (BSS), and more particularly to an interface between a base station (BTS) and a base station controller (BSC) in a BSS and a method for detecting the interface.
  • BSS base station subsystem
  • BSC base station controller
  • BSS usually includes BTS and BSC.
  • BTS side equipment and BSC side equipment can be divided into central processing unit (CPU) direct processing equipment and CPU external equipment.
  • CPU central processing unit
  • CPU direct processing equipment is directly controlled by CPU and can be compared.
  • Flexible processing, suitable for extended functions, and CPU external devices can only perform predetermined processing, and it is not convenient to flexibly expand functions.
  • the current BSS often implements high-level data link control (HDLC) frame format data transmission between the BTS and the BSC through the BTS-BSC interface.
  • a typical HDLC frame includes six fields from front to back: at least 8 The start flag ( OF ) of the bit, contains an octal number with a value of 0x7E; an 8-bit or 16-bit destination address (DA); an 8-bit or 16-bit control field; an optional information field, if the information exists, The length of the information field must be an integer multiple of 8; a 16-bit or 32-bit check field (CRC); an 8-bit end flag (CF).
  • OF The start flag of the bit, contains an octal number with a value of 0x7E
  • DA 8-bit or 16-bit destination address
  • DA 8-bit or 16-bit control field
  • an optional information field if the information exists,
  • the length of the information field must be an integer multiple of 8; a 16-bit or 32-bit check field (CRC);
  • the role of the CRC field is to detect error retransmission.
  • the receiver can use the CRC-CCITT algorithm to calculate the data in the address field, the control field and the information field. If the result is equal to the value in the CRC field, Then the frame has no CRC error, otherwise the frame has a CRC error.
  • the cause of the CRC error may include one or more of the following: the sender error, for example, the sender calculates the CRC field incorrectly, or does not fill in the CRC field; This may involve the HDLC frame being transmitted during transmission All devices and connections between devices; Receiver error, for example, the CRC field is incorrect when the receiver detects the CRC field.
  • the cause of the frame loss error may include one or more of the following: a sender error, such as the sender does not fill in the CF domain; a transmission error, which may involve the HDLC. The connection between all devices and devices that the frame passes during transmission; the receiver error, such as the receiver detection error.
  • the prior art BTS-BSC interface 100 includes: a BTS side interface module 101 including an HDLC unit 131 and an E1 transceiver 141; and an HDLC unit 132 and an E1.
  • the HDLC unit 131 and the E1 transceiver 141 of the BTS side interface module 101 are implemented by the BTS side CPU external device, and the HDLC unit 132 and the E1 transceiver 142 of the BSC side interface module 102 are implemented by the BSC side CPU external device.
  • the BTS side HDLC unit 131 is configured to receive data from the upper layer of the BTS side interface module 101.
  • the data occupies an address field, a control domain, and an information field in the HDLC frame, and the HDLC unit 131 encapsulates the data into HDLC frames and performs pulse modulation coding ( PCM), the encoded PCM code is transmitted to the E1 transceiver 141; the HDLC unit 131 is further configured to receive the PCM code from the E1 transceiver 141, and extract the address domain, the control domain, and the information domain from the decoded HDLC frame.
  • the data is sent to the upper layer of the BTS side interface module 101.
  • the HDLC unit 131 further has a test function, for example, detecting and counting whether the received HDLC frame has a CRC error and whether there is a frame loss error.
  • the BTS side E1 transceiver 141 is configured to receive the PCM code from the HDLC unit 131.
  • the code is encoded as an HDB3 code and transmitted to the E1 transceiver 142 through the transmission module 103.
  • the E1 transceiver 141 is further configured to receive the HDB3 code from the E1 transceiver 142 transmitted through the transmission module 103, decode it into a PCM code, and transmit it to the PCM code.
  • HDLC unit 131 The BTS side E1 transceiver 141 is configured to receive the PCM code from the HDLC unit 131.
  • the code is encoded as an HDB3 code and transmitted to the E1 transceiver 142 through the transmission module 103.
  • the E1 transceiver 141 is further configured to receive the HDB3 code from the E1 transceiver 142 transmitted through the transmission module 103, decode it into a PCM code, and transmit it to the PCM code.
  • HDLC unit 131 The code is encode
  • the BSC-side HDLC unit 132 is configured to receive data from an upper layer of the BSC-side interface module 102.
  • the data occupies an address field, a control domain, and an information domain in an HDLC frame, and the HDLC unit 132 encapsulates the data into an HDLC frame and performs pulse modulation coding.
  • the HDLC unit 132 is further configured to receive the PCM code from the E1 transceiver 142, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame to The upper layer of the BSC side interface module 102; the HDLC unit 132 also has a test function, for example, detecting and counting whether the received HDLC frame has a CRC error and whether there is a frame loss error.
  • the E1 transceiver 142 is configured to receive the PCM code from the HDLC unit 132, encode it into the HDB3 code, and transmit it to the E1 transceiver 141 through the transmission module 103.
  • the E1 transceiver 142 is further configured to receive the E1 transceiver transmitted through the transmission module 103.
  • the HDB3 code of the device 141 is decoded into a PCM code and transmitted to the HDLC unit 132.
  • the communication link supported by the E1 transceiver using time division multiplexing (TDM) is divided into 32 time slots, and the data sent and received by the HDLC unit may occupy only part of the time slot of the E1 transceiver.
  • HDLC When the unit receives data from the E1 transceiver, it only extracts the data on the part of the time slot it occupies.
  • the HDLC units on the BTS side and the BSC side are usually implemented by a communication controller as a CPU external device, such as a serial communication controller (SCC) of Motorola MPC860, etc., of these communication controllers.
  • SCC serial communication controller
  • the common feature is that it can only provide fixed transmission and reception and test functions. It is difficult to flexibly expand.
  • the current HDLC unit can only detect and count whether there are CRC errors or frame loss errors in the received HDLC frames, but these problems are formed. The reason is difficult to locate. In fact, the production of these errors It may be related to the following three aspects:
  • the sender HDLC unit is incorrect. For example, the sending HDLC unit calculates the CRC field incorrectly, or does not fill in the CF field.
  • the transmission process is incorrect, that is, the device connected between the sending HDLC unit and the receiving HDLC unit.
  • the connection error between the devices; the HDLC unit of the receiving party is wrong, for example, the HDLC unit of the receiving party calculates the CRC domain error.
  • the prior art BTS-BSC interface must separately detect the above three aspects by means of a dedicated detecting device to locate the problem, which results in poor testability and high detection cost of the existing BTS-BSC interface. Summary of the invention
  • the present invention provides a base station (BTS)-base station controller (BSC) interface, comprising:
  • the BTS side interface module includes an interconnected BTS side high layer data link control (HDLC) unit and a BTS side E1 transceiver, and the BTS side HDLC unit is configured to encapsulate and decapsulate HDLC frame data, and the BTS side E1 transceiver is used for transmitting and receiving HDLC frame data;
  • HDLC high layer data link control
  • the BSC side interface module includes an interconnected BSC side HDLC unit and a BSC side E1 transceiver, and the BSC side HDLC unit is configured to encapsulate and decapsulate HDLC frame data, and the BSC side E1 transceiver is configured to send and receive HDLC frame data;
  • the transmission module connected between the BTS side E1 transceiver and the BSC side E1 transceiver, the transmission module is configured to transmit HDLC frame data between the BTS side and the BSC side,
  • the BTS side HDLC unit is a direct processing device of its side CPU and can generate an arbitrary frame.
  • the BTS side interface module further includes a transparent transmission unit connected between the BTS side HDLC unit and the BTS side E1 transceiver, the transparent transmission unit is configured to be on the BTS side HDLC unit and the BTS side E1 HDLC frame data is transparently transmitted between transceivers.
  • the HDC unit on the BSC side is a direct processing device of the side CPU and can generate an arbitrary frame.
  • the BSC side interface module further includes a transparent transmission unit connected between the BSC side HDLC unit and the BSC side E1 transceiver, the transparent transmission unit is configured to be on the BSC side HDLC unit and the BSC side E1 HDLC frame data is transparently transmitted between transceivers.
  • the HDC unit on the BSC side is a direct processing device of the side CPU and can generate an arbitrary frame.
  • the BSC side interface module further includes a transparent transmission unit connected between the BSC side HDLC unit and the BSC side E1 transceiver, the transparent transmission unit is configured to be on the BSC side HDLC unit and the BSC side E1 HDLC frame data is transparently transmitted between transceivers.
  • the present invention also provides a method of detecting a BTS-BSC interface, comprising:
  • the HDLC unit on the BTS side sequentially transmits the HDLC test frame X to the BSC side HDLC unit through the BTS side E1 transceiver, the transmission module, and the BSC side E1 transceiver, and the BSC side HDLC unit detects whether the received HDLC test frame X' has an error. If yes, go to step B, otherwise confirm that the interface is correct.
  • the HDC unit on the BSC side stores the received HDLC test frame X', and the HDLC unit on the BTS side generates the same HDLC check frame X' as the HDLC test frame X', and sequentially passes through the BTS side E1 transceiver, the transmission module, and the BSC side.
  • the E1 transceiver transmits the HDLC check frame X' to the BSC side HDLC unit, and the BSC side HDLC unit compares the received HDLC check frame X" Whether it is the same as the saved HDLC test frame X', if yes, it is confirmed that the BTS side HDLC unit is incorrect, otherwise it is confirmed that the other parts of the interface other than the BTS side HDLC unit are incorrect.
  • the HDLC test frame X is transparently transmitted to the BTS side E1 transceiver by the BTS side HDLC unit through the BTS side transparent transmission unit.
  • the HDC check frame X' is transparently transmitted to the BTS side E1 transceiver by the BTS side HDLC unit through the BTS side transparent transmission unit.
  • the error is a check field CRC error or a frame loss error.
  • the invention further provides a method for detecting a BTS-BSC interface, comprising:
  • the HDC unit on the BSC side sequentially transmits the HDLC test frame Y to the HDLC unit on the BTS side through the B1 side E1 transceiver, the transmission module, and the BTS side E1 transceiver, and the HDLC unit on the BTS side detects whether the received HDLC test frame Y' has an error. If yes, go to step B, otherwise confirm that the interface is correct.
  • the HDLC unit on the BTS side stores the received HDLC test frame Y', and the HDLC unit on the BSC side generates the same HDLC check frame ⁇ ' as the HDLC test frame Y', and sequentially passes through the BSC side E1 transceiver, the transmission module, and the BTS side.
  • the E1 transceiver transmits the HDLC check frame ⁇ ' to the BTS side HDLC unit, and the BTS side HDLC unit compares whether the received HDLC check frame Y" is the same as the saved HDLC test frame Y', and if yes, confirms the BSC side.
  • the HDLC unit is incorrect, otherwise it is confirmed that the interface other than the BSC side HDLC unit is incorrect.
  • the HDC test frame Y is transparently transmitted to the BSC side E1 transceiver by the BSC side HDLC unit through the BSC side transparent transmission unit.
  • the HDSC check frame Y' is transparently transmitted to the BSC side E1 transceiver by the BSC side HDLC unit through the BSC side transparent transmission unit.
  • the BTS-BSC interface provided by the present invention, due to the BTS side and the BSC side At least one of the HDLC units can generate an arbitrary frame. Therefore, when the receiving party detects an erroneous HDLC frame, the sending HDLC unit can generate and send the same check frame to the receiving HDLC unit, and the receiving HDLC unit.
  • the specific device that caused the HDLC frame error can be determined by comparing the erroneous HDLC frame with the received check frame. Since the entire test flow of the method of detecting the interface can be performed without using a dedicated detection device, the detection cost is low. ' Brief description of the drawing
  • FIG. 1 is a structural diagram of a prior art BTS-BSC interface.
  • FIG. 2 is a structural diagram of a BTS-BSC interface according to Embodiment 1 of the present invention.
  • FIG. 3 is a structural diagram of a BTS-BSC interface according to Embodiment 2 of the present invention.
  • FIG. 4 is a structural diagram of a BTS-BSC interface according to Embodiment 3 of the present invention. Mode for carrying out the invention
  • the core idea of the present invention is to replace the HDLC unit in the prior art with an HDLC unit capable of generating an arbitrary frame on either or both sides of the BTS side or the BSC side of the BTS-BSC interface.
  • the first embodiment On the BTS side of the present embodiment, the HDLC unit that implements the device directly by the current CPU and can generate any HDLC frame is used instead of the HDLC unit in the prior art.
  • the BTS-BSC interface 200 of the first embodiment of the present invention includes: a BTS side interface module 201 including an E1 transceiver 141 and an HDLC unit 261; HDLC unit 132 and BSC of E1 transceiver 142 The side interface module 102; a transmission module 103 for communication between the BTS side interface module 201 and the BSC side interface module 102.
  • the E1 transceiver 141 of the BTS side interface module 201 is implemented by a BTS side CPU external device, and the HDLC unit 261 is implemented by a BTS side CPU direct processing device.
  • the BTS side interface module 201 may further include a transparent transmission unit 251 implemented by the CPU external device for transparently transmitting data. It may also be said that the transparent transmission unit 251 can be implemented as an HDLC unit 261 implemented by the CPU direct processing device and externally by the CPU.
  • the device implements a transmission channel between the E1 transceivers 141, which can function to communicate with the BTS side CPU and external devices.
  • the HDLC unit 132 and the E1 transceiver 142 of the BSC side interface module 102 are still implemented by the BSC side CPU external devices as compared with the prior art, and their functions and connections are not changed.
  • the HDLC unit 261 is configured to receive data from an upper layer of the BTS side interface module 201.
  • the data occupies an address field, a control field, and an information field in an HDLC frame, and the HDLC unit 261 encapsulates the data into an HDLC frame and performs pulse modulation coding.
  • the obtained PCM code is transmitted to the transparent transmission unit 251.
  • the HDLC unit 261 is further configured to receive the PCM code from the transparent transmission unit 251, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BTS side interface.
  • the upper layer of the module 201; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, or whether there is a frame loss error.
  • the transparent transmission unit 251 is configured to receive the PCM code from the HDLC unit 261 and send it to the E1 transceiver 141.
  • the transparent transmission unit 251 is further configured to receive the PCM code from the E1 transceiver 141 and send it to the HDLC unit 261 for transmission and reception in the HDLC unit 261.
  • the transparent transmission module 251 receives data from the E1 transceiver, only the data on the partial time slots occupied by the HDLC unit 261 is extracted.
  • the E1 transceiver 141 is configured to receive the PCM code from the transparent transmission unit 251 and encode it as The HDB3 code is transmitted to the El transceiver 142 through the transmission module 103.
  • the E1 transceiver 141 is further configured to receive the HDB3 code from the E1 transceiver 142 transmitted through the transmission module 103, decode it into a PCM code, and transmit it to the transparent transmission unit 251. .
  • the detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes the CRC error detection and the frame loss error detection.
  • the following is the specific process of the two detections.
  • the case where the BTS side interface module 201 includes the transparent transmission module 251 is taken as an example.
  • the CRC error detection of the BTS-BSC interface of this embodiment by using the HDLC frame includes steps 11 to 14:
  • the HDLC unit 261 on the BTS side receives the data from the upper layer of the local interface module 201 and encapsulates it into the HDLC test frame A, and sequentially transmits it to the HDLC through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, and the E1 transceiver 142.
  • the HDLC unit 132 on the BSC side detects whether the received HDLC test frame A is an HDLC test frame ⁇ with a CRC error, and if yes, performs step 13 and subsequent steps; otherwise, the interface is confirmed to be correct, and the process ends;
  • the HDLC unit 132 saves the CRC error HDLC test frame A', and the BTS side HDLC unit 261 acquires and generates the same HDLC check frame ⁇ ' as the HDLC test frame A', and sequentially passes through the transparent transmission units 251, E1.
  • the transceiver 141, the transmission module 103 and the E1 transceiver 142 transmit it to the HDLC unit 132;
  • the BSC-side HDLC unit 132 compares whether the received HDLC check frame A" is the same as the HDLC test frame A' it holds. If the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251 and the E1 transceiver are confirmed. 141.
  • the transmission module 103, the E1 transceiver 142, and the HDLC unit 132 and the connection between them are correct; if the two are different, the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, and the HDLC are confirmed. One or more of the units 132 or a connection between them is incorrect.
  • the frame loss error detection is performed on the BTS-BSC interface of the embodiment by using the HDLC frame. Including steps 21 ⁇ 24:
  • the HDLC unit 261 on the BTS side receives the data from the upper layer of the interface module 201 of the present side and encapsulates it into the HDLC test frame B, and sequentially transmits it to the HDLC through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, and the E1 transceiver 142.
  • the HDLC unit 132 on the BSC side detects whether the received HDLC test frame B is an HDLC test frame with frame loss error ⁇ ', and if yes, performs step 23 and subsequent steps. Otherwise, the interface is confirmed to be correct, and the process ends. ;
  • the HDLC unit 132 saves the HDLC test frame ⁇ with the frame loss error, and the BTS side HDLC unit 261 acquires and generates the same HDLC check frame ⁇ ' as the HDLC test frame B', and sequentially passes through the transparent transmission units 251 and E1.
  • the transceiver 141, the transmission module 103 and the E1 transceiver 142 transmit it to the HDLC unit 132;
  • the HDLC unit 132 on the BSC side compares whether the HDLC check frame B received by the HDLC check frame B is the same as the HDLC test frame B that is saved. If the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251 and E1 are confirmed to transmit and receive.
  • the 141, the transmission module 103, the E1 transceiver 142 and the HDLC unit 132 and the connection between them are correct; if they are different, the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142 and One or more of the HDLC units 132 or a connection between them is erroneous.
  • the BTS side HDLC unit is implemented by the BTS side CPU direct processing device, it should be noted that the implementation of the BTS side HDLC unit is not limited thereto, but should include a more diverse implementation.
  • the BTS side HDLC unit can be implemented by a CPU external processing device capable of generating an arbitrary frame, such as an integrated circuit having this function.
  • the second embodiment of the present invention is to replace the HDLC unit in the prior art with the HDLC unit that is implemented by the direct processing device of the current CPU and can generate any HDLC frame.
  • the BTS-BSC interface 300 includes a BTS side interface module 101 including an HDLC unit 131 and an El transceiver 141, a BSC side interface module 302 including an E1 transceiver 142 and an HDLC unit 362, and a BTS side interface module 101.
  • a transmission module 103 that communicates with the BSC side interface module 302.
  • the E1 transceiver 142 of the BSC side interface module 302 is implemented by the BSC side CPU external device, and the HDLC unit 362 is implemented by the BSC side CPU direct processing device.
  • the BSC side interface module 302 may further include a transparent transmission unit 352 implemented by the CPU external device for transparently transmitting data. It may also be said that the transparent transmission unit 352 can be implemented as an HDLC unit 362 implemented by the CPU direct processing device and externally by the CPU.
  • the device implements a transmission channel between the E1 transceivers 142, which can function to communicate with the CPU and external devices.
  • the HDLC unit 131 and the E1 transceiver 141 of the BTS side interface module 101 are still implemented by the BTS side CPU external devices, and their functions and connection relationships are not changed as compared with the prior art.
  • the HDLC unit 362 is configured to receive data from the upper layer of the BSC side interface module 302.
  • the data occupies an address field, a control field, and an information field in the HDLC frame, and the HDLC unit 362 encapsulates the data into an HDLC frame and performs pulse modulation coding.
  • the obtained PCM code is transmitted to the transparent transmission unit 352.
  • the HDLC unit 362 is further configured to receive the PCM code from the transparent transmission unit 352, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BSC side interface.
  • the upper layer of the module 302; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, whether it is a frame loss or not.
  • the transparent transmission unit 352 is configured to receive the PCM code from the HDLC unit 362 and transmit it to the E1 transceiver 142; the transparent transmission unit 352 is further configured to receive the PCM code from the E1 transceiver 142 and send it to the HDLC unit 362, in the HDLC unit 362.
  • the transmitted and received data only occupies part of the time slot of the E1 transceiver 142
  • the transparent transmission module 251 receives data from the E1 transceiver, Only the data on the partial time slots occupied by the HDLC unit 362 is extracted.
  • the E1 transceiver 142 is configured to receive the PCM code from the transparent transmission unit 352, encode it into the HDB3 code, and send it to the E1 transceiver 141 through the transmission module 103.
  • the E1 transceiver 142 is further configured to receive the transmission from the E1 through the transmission module 103.
  • the HDB3 code of the transceiver 141 is decoded into a PCM code and transmitted to the transparent transmission unit 352.
  • the detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes the CRC error detection and the frame loss error detection.
  • the following is the specific process of the two detections.
  • the case where the BSC side interface module 302 includes the transparent transmission module 352 is taken as an example.
  • the CRC error detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes steps 31 - 34:
  • the HDLC unit 362 on the BSC side receives the data from the upper layer of the interface module 302 of the present side and encapsulates it into an HDLC test frame C, and sequentially transmits it to the HDLC through the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, and the E1 transceiver 141.
  • the HDLC unit 131 on the BTS side detects whether the received HDLC test frame C is an HDLC test frame C′ with a CRC error. If yes, step 33 and subsequent steps are performed to confirm that the interface is correct, and the process ends.
  • the HDLC unit 131 stores the HDLC test frame C' with the CRC error, and the HDLC unit 362 of the BSC side acquires and generates the same HDLC check frame C as the HDLC test frame C, and sequentially passes through the transparent transmission unit 352 and the E1 transceiver 142. , the transmission module 103 and the E1 transceiver 141 transmit it to the HDLC unit 131;
  • the BTS side HDLC unit 131 compares whether the received HDLC check frame C" is the same as the HDLC test frame C' it holds. If the two are the same, the BSC side HDLC unit 362 is confirmed to be erroneous, and the transparent transmission unit 352 and the E1 transceiver are confirmed. 142.
  • the transmission module 103, the E1 transceiver 141, and the HDLC unit 131 and the connection between them are correct; if the two are different, the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, the E1 transceiver 141, and One or more of the HDLC units 131 or a connection between them is erroneous.
  • Performing frame loss error detection on the BTS-BSC interface of this embodiment by using the HDLC frame includes the following steps 41 - 44:
  • the HDLC unit 362 on the BSC side receives the data from the upper layer of the local interface module 302 and encapsulates it into an HDLC test frame D, and sequentially transmits it to the HDLC through the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, and the E1 transceiver 141.
  • the HDLC unit 131 on the BTS side detects whether the received HDLC test frame D is an HDLC test frame D′ with a frame loss error. If yes, step 43 and subsequent steps are performed. Otherwise, the interface is confirmed to be correct, and the process ends. ;
  • the HDLC unit 131 saves the HDLC test frame D′ with the frame loss error, and the BSC side HDLC unit 362 acquires and generates the same HDLC check frame D′ as the HDLC test frame D′, and sequentially passes through the transparent transmission units 352 and E1.
  • the transceiver 142, the transmission module 103 and the E1 transceiver 141 transmit it to the HDLC unit 131;
  • the BTS side HDLC unit 131 compares whether the received HDLC check frame D" is the same as the HDLC test frame D' it holds. If the two are the same, the BSC side HDLC unit 362 is confirmed to be erroneous, and the transparent transmission unit 352 and the E1 transceiver are confirmed. 142.
  • the transmission module 103, the E1 transceiver 141, and the HDLC unit 131 and the connection between them are correct; if they are different, the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, the E1 transceiver 141, and the HDLC are confirmed. One or more of the units 131 or a connection between them is erroneous.
  • the BSC-side HDLC unit is implemented by the BSC-side CPU direct processing device, it should be noted that the implementation manner of the BSC-side HDLC unit is not limited thereto, but should include a more diverse implementation manner.
  • the BSC side HDLC unit can be implemented by a CPU external processing device capable of generating an arbitrary frame, such as an integrated circuit having this function.
  • Embodiment 3 On the BTS side of the present embodiment, the HDLC unit implemented by the direct processing device of the current CPU and capable of generating an arbitrary frame is substituted for the HDLC unit in the prior art; On the BSC side, the HDLC unit implemented in the direct processing device of the CPU is used to replace the HDLC unit in the prior art.
  • the BTS-BSC interface 400 of the third embodiment of the present invention includes: a BTS side interface module 201 including an E1 transceiver 141 and an HDLC unit 261; The BSC side interface module 302 of the transceiver 142 and the HDLC unit 362; and the transmission module 103 for communication between the BTS side interface module 201 and the BSC side interface module 302.
  • the E1 transceiver 141 of the BTS side interface module 201 is implemented by a BTS side CPU external device, and the HDLC unit 261 is implemented by a BTS side CPU direct processing device.
  • the BTS side interface module 201 may further include a transparent transmission unit 251 implemented by the CPU external device for transparently transmitting data. It may also be said that the transparent transmission unit 251 can be implemented as an HDLC unit 261 implemented by the CPU direct processing device and externally by the CPU.
  • the device implements a transmission channel between the E1 transceivers 141, which can function to communicate with the CPU and external devices.
  • the HDLC unit 261 is configured to receive data from an upper layer of the BTS side interface module 201.
  • the data occupies an address field, a control field, and an information field in an HDLC frame, and the HDLC unit 261 encapsulates the data into an HDLC frame and performs pulse modulation coding.
  • the obtained PCM code is transmitted to the transparent transmission unit 251.
  • the HDLC unit 261 is further configured to receive the PCM code from the transparent transmission unit 251, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BTS side interface.
  • the upper layer of the module 201; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, whether it is a frame loss or not.
  • the transparent transmission unit 251 is configured to receive the PCM code from the HDLC unit 261 and send it to the E1 transceiver 141.
  • the transparent transmission unit 251 is further configured to receive the PCM code from the E1 transceiver 141 and send it to the HDLC unit 261 for transmission and reception in the HDLC unit 261.
  • the transparent transmission module 251 receives data from the E1 transceiver, only The data on a portion of the time slot occupied by the HDLC unit 261 is extracted.
  • the E1 transceiver 141 is configured to receive the PCM code from the transparent transmission unit 251, encode it into the HDB3 code, and send it to the E1 transceiver 142 through the transmission module 103.
  • the E1 transceiver 141 is further configured to receive the transmission from the E1 through the transmission module 103.
  • the HDB3 code of the transceiver 142 is decoded into a PCM code and transmitted to the transparent transmission unit 251.
  • the E1 transceiver 142 of the BSC side interface module 302 is implemented by the BSC side CPU external device, and the HDLC unit 362 is implemented by the BSC side CPU direct processing device.
  • the BSC-side interface module 302 may further include a transparent transmission unit 352 implemented by the CPU external device for transparently transmitting data, in the case that the data sent and received by the HDLC unit 362 is only occupied by the E1 transceiver 142.
  • the transparent transmission unit 352 can exist as a transmission channel between the HDLC unit 362 implemented by the CPU direct processing device and the E1 transceiver 142 implemented by the CPU external device, and can function to communicate with the CPU and the external device.
  • the HDLC unit 362 is configured to receive data from the upper layer of the BSC side interface module 302.
  • the data occupies an address field, a control field, and an information field in the HDLC frame, and the HDLC unit 362 encapsulates the data into an HDLC frame and performs pulse modulation coding.
  • the obtained PCM code is transmitted to the transparent transmission unit 352.
  • the HDLC unit 362 is further configured to receive the PCM code from the transparent transmission unit 352, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BSC side interface.
  • the upper layer of the module 302; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, whether it is a frame loss or not.
  • the transparent transmission unit 352 is configured to receive the PCM code from the HDLC unit 362 and transmit it to the E1 transceiver 142; the transparent transmission unit 352 is further configured to receive the PCM code from the E1 transceiver 142 and send it to the HDLC unit 362, in the HDLC unit 362.
  • the transmitted and received data only occupies part of the time slot of the E1 transceiver 142, when the transparent transmission module 251 receives data from the E1 transceiver, only the data on the partial time slots occupied by the HDLC unit 362 is extracted.
  • the El transceiver 142 is configured to receive the PCM code from the transparent transmission unit 352, encode it into the HDB3 code, and send it to the E1 transceiver 141 through the transmission module 103.
  • the E1 transceiver 142 is further configured to receive the transmission from the E1 through the transmission module 103.
  • the HDB3 code of the transceiver 141 is decoded into a PCM code and transmitted to the transparent transmission unit 352.
  • the BTS side interface module 201 and the BSC side interface module 302 are identical to each other.
  • the BSC interface 400 performs detection.
  • the following is an example in which the BTS side is used as the sender, and the case where the BSC side is the sender is similar.
  • the detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes the CRC error detection and the frame loss error detection.
  • the following is the specific process of the two detections.
  • the BTS side interface module 201 includes the transparent transmission module 251 and the BSC side interface module.
  • 302 includes the case of the transparent transmission module 352 as an example.
  • the CRC error detection of the BTS-BSC interface of this embodiment by using the HDLC frame includes steps 51-54:
  • the HDLC unit 261 on the BTS side receives the data from the upper layer of the interface module 201 of the present side and encapsulates it into the HDLC test frame E, and sequentially passes through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, and the transparent transmission module. 352 transmits it to the HDLC unit 362;
  • the HDLC unit 362 on the BSC side detects whether the received HDLC test frame E is an HDLC test frame E′ with a CRC error. If yes, step 53 and subsequent steps are performed. Otherwise, the interface is confirmed to be correct, and the process ends.
  • the HDLC unit 362 saves the CRC error HDLC test frame ⁇ ', and the BTS side HDLC unit 261 acquires and generates the same HDLC check frame ⁇ ' as the HDLC test frame E', and sequentially passes through the transparent transmission unit 251 and the E1 transceiver. 141, the transmission module 103, the E1 transceiver 142 and the transparent transmission unit 352 transfer it to the HDLC unit 362;
  • the BSC side HDLC unit 362 compares the received HDLC check frame E" with its guarantee Whether the stored HDLC test frames E' are the same, if the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, the transparent transmission unit 352, and the HDLC are confirmed.
  • the unit 362 and the connection between them are correct; if the two are different, one or more of the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, the transparent transmission unit 352, and the HDLC unit 362 are confirmed. Or the connection between them is wrong.
  • Performing frame loss error detection on the BTS-BSC interface of this embodiment by using the HDLC frame includes steps 61-64:
  • the HDLC unit 261 on the BTS side receives the data from the upper layer of the local interface module 201 and encapsulates it into an HDLC test frame F, and sequentially passes through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, and the transparent transmission unit. 352 transmits it to the HDLC unit 362;
  • the HDLC unit 362 on the BSC side detects whether the received HDLC test frame F is an HDLC test frame F with a frame loss error. If yes, step 63 and subsequent steps are performed. Otherwise, the interface is confirmed to be correct, and the process ends.
  • the HDLC unit 362 saves the HDLC test frame F with the frame loss error, and the HDLC unit 261 of the BTS side acquires and generates the same HDLC check frame F as the HDLC test frame F′, and sequentially passes through the transparent transmission unit 251 and the E1 transceiver. 141, the transmission module 103, the E1 transceiver 142 and the transparent transmission unit 352 transfer it to the HDLC unit 362;
  • the HDLC unit 362 on the BSC side compares whether the received HDLC face detection frame F" is the same as the HDLC test frame F stored therein. If the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251 and E1 are confirmed to transmit and receive. 141, the transmission module 103, the E1 transceiver 142, the transparent transmission unit 352, and the HDLC unit 362 and the connection between them are correct; if the two are different, the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, One or more of the E1 transceiver 142 and the HDLC unit 132 or a connection between them is erroneous.
  • the BTS side HDLC unit and the BSC side HDLC unit are respectively implemented by their side CPU direct processing devices, it should be noted that the implementation manners of the BTS side HDLC unit and the BSC side HDLC unit are not limited thereto, but A more diverse implementation should be included, such as the BTS side HDLC unit and the BSC side HDLC unit can be implemented by a CPU external processing device capable of generating an arbitrary frame, such as an integrated circuit having this function.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A base station(BTS)-base station controller(BSC) interface includes: BTS-side interface module, including a BTS-side high level data link control(HDLC) unit connected with a BTS-side E1 transceiver, the BTS-side HDLC unit used for encapsulating and de-encapsulating the HDLC frame data, the BTS-side E1 transceiver used for transmitting and receiving the HDLC frame data; the BSC-side interface module, including a BSC-side HDLC unit connected with a BSC-side E1 transceiver, the BSC-side HDLC unit used for encapsulating and de-encapsulating the HDLC frame data, the BSC-side E1 transceiver used for transmitting and receiving the HDLC frame data; and a transmission module connected between the BTS-side E1 transceiver and the BSC-side E1 transceiver, used for transmitting HDLC frame data between the BTS-side and the BSC-side, wherein one of the BTS-side HDLC unit and the BSC-side HDLC unit could generate any frame. A method for detecting the BTS-BSC interface is disclosed in the invention. The BTS-BSC interface provided by the invention has a better testability.

Description

一种基站 -基站控制器接口及检测该接口的方法 技术领域  Base station - base station controller interface and method for detecting the same
本发明涉及基站子系统(BSS ), 特别涉及 BSS中基站(BTS, Base Transceiver Station )与基站控制器(BSC, Base Station Controller ) 间的 接口及检测该接口的方法。 发明背景  The present invention relates to a base station subsystem (BSS), and more particularly to an interface between a base station (BTS) and a base station controller (BSC) in a BSS and a method for detecting the interface. Background of the invention
BSS通常包括 BTS和 BSC, 常见的, BTS侧设备和 BSC侧设备都 可分为中央处理单元(CPU )直接处理设备和 CPU外部设备, 一般的, CPU直接处理设备由 CPU直接控制, 能够进行比较灵活的处理, 适于 扩展功能, 而 CPU外部设备仅能完成预先确定的处理, 不便于灵活扩展 功能。  BSS usually includes BTS and BSC. Commonly, BTS side equipment and BSC side equipment can be divided into central processing unit (CPU) direct processing equipment and CPU external equipment. Generally, CPU direct processing equipment is directly controlled by CPU and can be compared. Flexible processing, suitable for extended functions, and CPU external devices can only perform predetermined processing, and it is not convenient to flexibly expand functions.
当前的 BSS常通过 BTS - BSC接口实现 BTS和 BSC间的高层数据 链路控制 (HDLC, High-level Data Link Control )帧格式数据传输, 典 型的 HDLC帧从前到后共包括 6个域: 至少 8位的开始标志( OF ), 包 含一个值为 0x7E的 8进制数; 8位或 16位目的地址( DA ); 8位或 16 位的控制域; 可选的信息域, 如果信息存在, 则信息域的长度必须是 8 的整数倍; 16位或 32位的校验域( CRC ); 8位结束标志 ( CF )。  The current BSS often implements high-level data link control (HDLC) frame format data transmission between the BTS and the BSC through the BTS-BSC interface. A typical HDLC frame includes six fields from front to back: at least 8 The start flag ( OF ) of the bit, contains an octal number with a value of 0x7E; an 8-bit or 16-bit destination address (DA); an 8-bit or 16-bit control field; an optional information field, if the information exists, The length of the information field must be an integer multiple of 8; a 16-bit or 32-bit check field (CRC); an 8-bit end flag (CF).
CRC域的作用是检错重发, 收方在收到 HDLC帧后, 可采用 CRC - CCITT算法计算地址域、 控制域和信息域中的数据, 如果得到的结果 与 CRC域中的值相等, 则该帧无 CRC错误, 否则该帧有 CRC错误。 如果收方检测到某 HDLC帧有 CRC错误,则产生该 CRC错误的原因可 能包括以下一种或几种: 发方错误, 例如发方计算 CRC域有误, 或者 没有填写 CRC域; 传输错误, 这可能涉及该 HDLC帧在传输过程中经 过的所有设备及设备间的连线; 收方错误, 例如收方检测 CRC域时计 算 CRC域有误。 The role of the CRC field is to detect error retransmission. After receiving the HDLC frame, the receiver can use the CRC-CCITT algorithm to calculate the data in the address field, the control field and the information field. If the result is equal to the value in the CRC field, Then the frame has no CRC error, otherwise the frame has a CRC error. If the receiver detects that a certain HDLC frame has a CRC error, the cause of the CRC error may include one or more of the following: the sender error, for example, the sender calculates the CRC field incorrectly, or does not fill in the CRC field; This may involve the HDLC frame being transmitted during transmission All devices and connections between devices; Receiver error, for example, the CRC field is incorrect when the receiver detects the CRC field.
收方收到的 HDLC帧中还可能有丢帧错误,即 HDLC帧中有 OF域 而没有 CF域, 或者说 OF域在 CF域前有 7个或更多的 "0bl"。 如果收 方检测到某 HDLC帧有丟帧错误,则产生该丢帧错误的原因可能包括以 下一种或几种: 发方错误, 例如发方没有填写 CF域; 传输错误, 这可 能涉及该 HDLC帧在传输过程中经过的所有设备及设备间的连线; 收方 错误, 例如收方检测有误。  There may be a frame loss error in the HDLC frame received by the receiver. That is, there is an OF field in the HDLC frame and no CF field, or the OF field has 7 or more "0bl" in front of the CF field. If the receiver detects a frame loss error in an HDLC frame, the cause of the frame loss error may include one or more of the following: a sender error, such as the sender does not fill in the CF domain; a transmission error, which may involve the HDLC. The connection between all devices and devices that the frame passes during transmission; the receiver error, such as the receiver detection error.
图 1是现有技术的 BTS - BSC接口的结构图, 现有技术的 BTS - BSC接口 100包括: 包含有 HDLC单元 131和 E1收发器 141的 BTS侧 接口模块 101; 包含有 HDLC单元 132和 E1收发器 142的 BSC侧接口 模块 102; 用于 BTS侧接口模块 101和 BSC侧接口模块 102间通信的 传输模块 103。  1 is a structural diagram of a prior art BTS-BSC interface. The prior art BTS-BSC interface 100 includes: a BTS side interface module 101 including an HDLC unit 131 and an E1 transceiver 141; and an HDLC unit 132 and an E1. The BSC side interface module 102 of the transceiver 142; the transmission module 103 for communication between the BTS side interface module 101 and the BSC side interface module 102.
其中, BTS侧接口模块 101的 HDLC单元 131和 E1收发器 141由 BTS侧 CPU外部设备实现, BSC侧接口模块 102的 HDLC单元 132和 E1收发器 142由 BSC侧 CPU外部设备实现。  The HDLC unit 131 and the E1 transceiver 141 of the BTS side interface module 101 are implemented by the BTS side CPU external device, and the HDLC unit 132 and the E1 transceiver 142 of the BSC side interface module 102 are implemented by the BSC side CPU external device.
BTS侧 HDLC单元 131用于接收来自 BTS侧接口模块 101上层的 数据, 这些数据在 HDLC帧中占据地址域、 控制域和信息域, HDLC单 元 131将这些数据封装为 HDLC帧并进行脉冲调制编码(PCM ), 将编 码得到的 PCM码传送给 E1收发器 141; HDLC单元 131还用于接收来 自 E1收发器 141的 PCM码,并从解码后得到的 HDLC帧中提取地址域、 控制域、 信息域数据发送到 BTS侧接口模块 101上层; HDLC单元 131 进一步具有测试功能, 例如检测、 统计所接收的 HDLC帧是否有 CRC 错误、 是否有丟帧错误。  The BTS side HDLC unit 131 is configured to receive data from the upper layer of the BTS side interface module 101. The data occupies an address field, a control domain, and an information field in the HDLC frame, and the HDLC unit 131 encapsulates the data into HDLC frames and performs pulse modulation coding ( PCM), the encoded PCM code is transmitted to the E1 transceiver 141; the HDLC unit 131 is further configured to receive the PCM code from the E1 transceiver 141, and extract the address domain, the control domain, and the information domain from the decoded HDLC frame. The data is sent to the upper layer of the BTS side interface module 101. The HDLC unit 131 further has a test function, for example, detecting and counting whether the received HDLC frame has a CRC error and whether there is a frame loss error.
BTS侧 E1收发器 141用于接收来自 HDLC单元 131的 PCM码, 将之编码为 HDB3码并通过传输模块 103发送给 E1收发器 142; E1收 发器 141还用于接收通过传输模块 103传递的来自 E1 收发器 142的 HDB3码, 将之解码为 PCM码并传送到 HDLC单元 131。 The BTS side E1 transceiver 141 is configured to receive the PCM code from the HDLC unit 131. The code is encoded as an HDB3 code and transmitted to the E1 transceiver 142 through the transmission module 103. The E1 transceiver 141 is further configured to receive the HDB3 code from the E1 transceiver 142 transmitted through the transmission module 103, decode it into a PCM code, and transmit it to the PCM code. HDLC unit 131.
BSC侧 HDLC单元 132用于接收来自 BSC侧接口模块 102上层的 数据, 这些数据在 HDLC帧中占据地址域、 控制域和信息域, HDLC单 元 132将这些数据封装为 HDLC帧并进行脉冲调制编码,将编码得到的 PCM码传送给 E1收发器 142; HDLC单元 132还用于接收来自 E1收发 器 142的 PCM码, 并从解码后得到的 HDLC帧中提取地址域、控制域、 信息域数据发送到 BSC侧接口模块 102上层; HDLC单元 132还具有测 试功能, 例如检测、 统计所接收 HDLC帧是否有 CRC错误、 是否有丢 帧错误。  The BSC-side HDLC unit 132 is configured to receive data from an upper layer of the BSC-side interface module 102. The data occupies an address field, a control domain, and an information domain in an HDLC frame, and the HDLC unit 132 encapsulates the data into an HDLC frame and performs pulse modulation coding. Transmitting the encoded PCM code to the E1 transceiver 142; the HDLC unit 132 is further configured to receive the PCM code from the E1 transceiver 142, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame to The upper layer of the BSC side interface module 102; the HDLC unit 132 also has a test function, for example, detecting and counting whether the received HDLC frame has a CRC error and whether there is a frame loss error.
E1收发器 142用于接收来自 HDLC单元 132的 PCM码,将之编码 为 HDB3码并通过传输模块 103发送给 E1收发器 141; E1收发器 142 还用于接收通过传输模块 103传递的来自 E1收发器 141的 HDB3码, 将之解码为 PCM码并传送到 HDLC单元 132。  The E1 transceiver 142 is configured to receive the PCM code from the HDLC unit 132, encode it into the HDB3 code, and transmit it to the E1 transceiver 141 through the transmission module 103. The E1 transceiver 142 is further configured to receive the E1 transceiver transmitted through the transmission module 103. The HDB3 code of the device 141 is decoded into a PCM code and transmitted to the HDLC unit 132.
常见的, 采用时分复用 (TDM ) 的 E1收发器支持的通信链路划分 为 32个时隙,其中 HDLC单元收发的数据可能仅占用 E1收发器的部分 时隙, 在这种情况下, HDLC单元从 E1 收发器接收数据时, 仅提取其 占用的部分时隙上的数据。  In common, the communication link supported by the E1 transceiver using time division multiplexing (TDM) is divided into 32 time slots, and the data sent and received by the HDLC unit may occupy only part of the time slot of the E1 transceiver. In this case, HDLC When the unit receives data from the E1 transceiver, it only extracts the data on the part of the time slot it occupies.
在当前的实际应用中, BTS侧和 BSC侧的 HDLC单元通常由作为 CPU外部设备的通信控制器实现,例如由摩托罗拉公司 MPC860的串行 通信控制器(SCC )等来实现, 这些通信控制器的共同特点在于只能提 供固定的收发和测试功能, 难以进行灵活扩展, 比如当前的 HDLC单元 仅能检测、 统计所接收的 HDLC帧中是否有 CRC错误、 是否有丢帧错 误, 但对于形成这些问题的原因就难以定位。 实际上, 这些错误的产生 可能与以下三个方面有关系: 发方 HDLC单元错误, 例如发方 HDLC 单元计算 CRC域有误, 或者没有填写 CF域; 传输过程错误, 即发方 HDLC单元和收方 HDLC单元间连接的器件及器件之间的连线错误; 收 方 HDLC单元错误, 例如收方 HDLC单元计算 CRC域错误。 现有技术 的 BTS - BSC接口必须借助专用检测设备分别检测上述三个方面才能 定位问题, 这导致了现有 BTS - BSC接口的可测试性极差、检测成本高 叩。 发明内容 In current practical applications, the HDLC units on the BTS side and the BSC side are usually implemented by a communication controller as a CPU external device, such as a serial communication controller (SCC) of Motorola MPC860, etc., of these communication controllers. The common feature is that it can only provide fixed transmission and reception and test functions. It is difficult to flexibly expand. For example, the current HDLC unit can only detect and count whether there are CRC errors or frame loss errors in the received HDLC frames, but these problems are formed. The reason is difficult to locate. In fact, the production of these errors It may be related to the following three aspects: The sender HDLC unit is incorrect. For example, the sending HDLC unit calculates the CRC field incorrectly, or does not fill in the CF field. The transmission process is incorrect, that is, the device connected between the sending HDLC unit and the receiving HDLC unit. And the connection error between the devices; the HDLC unit of the receiving party is wrong, for example, the HDLC unit of the receiving party calculates the CRC domain error. The prior art BTS-BSC interface must separately detect the above three aspects by means of a dedicated detecting device to locate the problem, which results in poor testability and high detection cost of the existing BTS-BSC interface. Summary of the invention
有鉴于此, 本发明的目的在于提供一种 BTS - BSC接口, 其具有较 好的可测试性。  In view of this, it is an object of the present invention to provide a BTS-BSC interface which has better testability.
本发明的目的还在于提供一种检测 BTS - BSC接口的方法,其能够 检测 BTS - BSC接口。  It is still another object of the present invention to provide a method of detecting a BTS-BSC interface capable of detecting a BTS-BSC interface.
根据上述目的的一个方面, 本发明提供了一种基站 (BTS ) -基站 控制器(BSC )接口, 包括:  According to an aspect of the above object, the present invention provides a base station (BTS)-base station controller (BSC) interface, comprising:
BTS 侧接口模块, 其包括相互连接的 BTS 侧高层数据链路控制 ( HDLC )单元和 BTS侧 E1收发器, 该 BTS侧 HDLC单元用于封装和 解封装 HDLC帧数据, 该 BTS侧 E1收发器用于收发 HDLC帧数据; The BTS side interface module includes an interconnected BTS side high layer data link control (HDLC) unit and a BTS side E1 transceiver, and the BTS side HDLC unit is configured to encapsulate and decapsulate HDLC frame data, and the BTS side E1 transceiver is used for transmitting and receiving HDLC frame data;
BSC侧接口模块, 其包括相互连接的 BSC侧 HDLC单元和 BSC侧 E1收发器, 该 BSC侧 HDLC单元用于封装和解封装 HDLC帧数据, 该 BSC侧 E1收发器用于收发 HDLC帧数据; 以及 The BSC side interface module includes an interconnected BSC side HDLC unit and a BSC side E1 transceiver, and the BSC side HDLC unit is configured to encapsulate and decapsulate HDLC frame data, and the BSC side E1 transceiver is configured to send and receive HDLC frame data;
连接在 BTS侧 E1收发器和 BSC侧 E1收发器之间的传输模块, 该 传输模块用于在 BTS侧和 BSC侧之间传输 HDLC帧数据,  a transmission module connected between the BTS side E1 transceiver and the BSC side E1 transceiver, the transmission module is configured to transmit HDLC frame data between the BTS side and the BSC side,
其中  among them
一个能够生成任意帧, 其中, 所述 BTS侧 HDLC单元是其侧 CPU直接处理设备并能够生 成任意帧, One can generate arbitrary frames, The BTS side HDLC unit is a direct processing device of its side CPU and can generate an arbitrary frame.
所述 BTS侧接口模块进一步包括连接在所述 BTS侧 HDLC单元和 所述 BTS侧 E1收发器之间的透传单元,该透传单元用于在所述 BTS侧 HDLC单元和所述 BTS侧 E1收发器之间透传 HDLC帧数据。  The BTS side interface module further includes a transparent transmission unit connected between the BTS side HDLC unit and the BTS side E1 transceiver, the transparent transmission unit is configured to be on the BTS side HDLC unit and the BTS side E1 HDLC frame data is transparently transmitted between transceivers.
其中, 所述 BSC侧 HDLC单元是其侧 CPU直接处理设备并能够生 成任意帧,  The HDC unit on the BSC side is a direct processing device of the side CPU and can generate an arbitrary frame.
所述 BSC侧接口模块进一步包括连接在所述 BSC侧 HDLC单元和 所述 BSC侧 E1收发器之间的透传单元,该透传单元用于在所述 BSC侧 HDLC单元和所述 BSC侧 E1收发器之间透传 HDLC帧数据。  The BSC side interface module further includes a transparent transmission unit connected between the BSC side HDLC unit and the BSC side E1 transceiver, the transparent transmission unit is configured to be on the BSC side HDLC unit and the BSC side E1 HDLC frame data is transparently transmitted between transceivers.
其中, 所述 BSC侧 HDLC单元是其侧 CPU直接处理设备并能够生 成任意帧,  The HDC unit on the BSC side is a direct processing device of the side CPU and can generate an arbitrary frame.
所述 BSC侧接口模块进一步包括连接在所述 BSC侧 HDLC单元和 所述 BSC侧 E1收发器之间的透传单元,该透传单元用于在所述 BSC侧 HDLC单元和所述 BSC侧 E1收发器之间透传 HDLC帧数据。  The BSC side interface module further includes a transparent transmission unit connected between the BSC side HDLC unit and the BSC side E1 transceiver, the transparent transmission unit is configured to be on the BSC side HDLC unit and the BSC side E1 HDLC frame data is transparently transmitted between transceivers.
根据上述目的的另一个方面, 本发明还提供了一种检测 BTS - BSC 接口的方法, 包括:  According to another aspect of the above object, the present invention also provides a method of detecting a BTS-BSC interface, comprising:
A、 BTS侧 HDLC单元依次通过 BTS侧 E1收发器、传输模块和 BSC 侧 E1收发器向 BSC侧 HDLC单元发送 HDLC测试帧 X,BSC侧 HDLC 单元检测所接收的 HDLC测试帧 X'是否有错误,如果是,则执行步骤 B, 否则确认该接口正确;  A. The HDLC unit on the BTS side sequentially transmits the HDLC test frame X to the BSC side HDLC unit through the BTS side E1 transceiver, the transmission module, and the BSC side E1 transceiver, and the BSC side HDLC unit detects whether the received HDLC test frame X' has an error. If yes, go to step B, otherwise confirm that the interface is correct.
B. BSC侧 HDLC单元保存所接收的 HDLC测试帧 X', BTS侧 HDLC 单元生成与 HDLC测试帧 X'相同的 HDLC校验帧 X', 并依次通过 BTS 侧 E1收发器、传输模块和 BSC侧 E1收发器向 BSC侧 HDLC单元发送 该 HDLC校验帧 X', BSC侧 HDLC单元比较所接收的 HDLC校验帧 X" 与所保存的 HDLC测试帧 X'是否相同, 如果是, 则确认 BTS侧 HDLC 单元不正确, 否则确认该接口中除 BTS侧 HDLC单元之外的其它部分 不正确。 B. The HDC unit on the BSC side stores the received HDLC test frame X', and the HDLC unit on the BTS side generates the same HDLC check frame X' as the HDLC test frame X', and sequentially passes through the BTS side E1 transceiver, the transmission module, and the BSC side. The E1 transceiver transmits the HDLC check frame X' to the BSC side HDLC unit, and the BSC side HDLC unit compares the received HDLC check frame X" Whether it is the same as the saved HDLC test frame X', if yes, it is confirmed that the BTS side HDLC unit is incorrect, otherwise it is confirmed that the other parts of the interface other than the BTS side HDLC unit are incorrect.
其中, 所述 BTS侧 HDLC单元通过 BTS侧透传单元将所述 HDLC 测试帧 X透传给所述 BTS侧 E1收发器,  The HDLC test frame X is transparently transmitted to the BTS side E1 transceiver by the BTS side HDLC unit through the BTS side transparent transmission unit.
所述 BTS侧 HDLC单元通过 BTS侧透传单元将所述 HDLC校验帧 X'透传给所述 BTS侧 E1收发器。  The HDC check frame X' is transparently transmitted to the BTS side E1 transceiver by the BTS side HDLC unit through the BTS side transparent transmission unit.
其中, 所述错误是校验域 CRC错误、 或是丟帧错误。  The error is a check field CRC error or a frame loss error.
本发明进一步提供了一种检测 BTS - BSC接口的方法, 包括: The invention further provides a method for detecting a BTS-BSC interface, comprising:
A、 BSC侧 HDLC单元依次通过 BSC侧 E1收发器、 传输模块和 BTS侧 E1收发器向 BTS侧 HDLC单元发送 HDLC测试帧 Y, BTS侧 HDLC单元检测所接收的 HDLC测试帧 Y'是否有错误,如果是, 则执行 步骤 B , 否则确认该接口正确; A. The HDC unit on the BSC side sequentially transmits the HDLC test frame Y to the HDLC unit on the BTS side through the B1 side E1 transceiver, the transmission module, and the BTS side E1 transceiver, and the HDLC unit on the BTS side detects whether the received HDLC test frame Y' has an error. If yes, go to step B, otherwise confirm that the interface is correct.
B、 BTS侧 HDLC单元保存所接收的 HDLC测试帧 Y', BSC侧 HDLC 单元生成与 HDLC测试帧 Y'相同的 HDLC校验帧 Υ', 并依次通过 BSC 侧 E1收发器、传输模块和 BTS侧 E1收发器向 BTS侧 HDLC单元发送 该 HDLC校验帧 Υ', BTS侧 HDLC单元比较所接收的 HDLC校验帧 Y" 与所保存的 HDLC测试帧 Y'是否相同, 如果是, 则确认 BSC侧 HDLC 单元不正确, 否则确认该接口中除 BSC侧 HDLC单元之外的其它部分 不正确。  B. The HDLC unit on the BTS side stores the received HDLC test frame Y', and the HDLC unit on the BSC side generates the same HDLC check frame Υ' as the HDLC test frame Y', and sequentially passes through the BSC side E1 transceiver, the transmission module, and the BTS side. The E1 transceiver transmits the HDLC check frame Υ' to the BTS side HDLC unit, and the BTS side HDLC unit compares whether the received HDLC check frame Y" is the same as the saved HDLC test frame Y', and if yes, confirms the BSC side. The HDLC unit is incorrect, otherwise it is confirmed that the interface other than the BSC side HDLC unit is incorrect.
其中, 所述 BSC侧 HDLC单元通过 BSC侧透传单元将所述 HDLC 测试帧 Y透传给所述 BSC侧 E1收发器,  The HDC test frame Y is transparently transmitted to the BSC side E1 transceiver by the BSC side HDLC unit through the BSC side transparent transmission unit.
所述 BSC侧 HDLC单元通过 BSC侧透传单元将所述 HDLC校验帧 Y'透传给所述 BSC侧 E1收发器。  The HDSC check frame Y' is transparently transmitted to the BSC side E1 transceiver by the BSC side HDLC unit through the BSC side transparent transmission unit.
可见, 在本发明提供的 BTS - BSC接口中, 由于 BTS侧和 BSC侧 的 HDLC单元二者中至少有一个能够生成任意帧,故而当收方检测到错 误的 HDLC帧时,发方 HDLC单元可生成并发送与其相同的校验帧到收 方 HDLC单元, 收方 HDLC单元通过比较有错误的 HDLC帧和所收到 的校验帧即可确定导致 HDLC帧错误的具体设备。 由于检测该接口的方 法的整个测试流程无需借助专用的检测设备即可进行, 故而检测成本很 低。 ' 附图简要说明 It can be seen that in the BTS-BSC interface provided by the present invention, due to the BTS side and the BSC side At least one of the HDLC units can generate an arbitrary frame. Therefore, when the receiving party detects an erroneous HDLC frame, the sending HDLC unit can generate and send the same check frame to the receiving HDLC unit, and the receiving HDLC unit. The specific device that caused the HDLC frame error can be determined by comparing the erroneous HDLC frame with the received check frame. Since the entire test flow of the method of detecting the interface can be performed without using a dedicated detection device, the detection cost is low. ' Brief description of the drawing
图 1是现有技术的 BTS一 BSC接口的结构图。  1 is a structural diagram of a prior art BTS-BSC interface.
图 2为本发明实施例一的 BTS - BSC接口的结构图。  2 is a structural diagram of a BTS-BSC interface according to Embodiment 1 of the present invention.
图 3为本发明实施例二的 BTS - BSC接口的结构图。  FIG. 3 is a structural diagram of a BTS-BSC interface according to Embodiment 2 of the present invention.
图 4为本发明实施例三的 BTS - BSC接口的结构图。 实施本发明的方式  4 is a structural diagram of a BTS-BSC interface according to Embodiment 3 of the present invention. Mode for carrying out the invention
本发明的核心思想是: 在 BTS - BSC接口的 BTS侧或 BSC侧的任 一侧或两侧,用能够生成任意帧的 HDLC单元代替现有技术中的 HDLC 单元。  The core idea of the present invention is to replace the HDLC unit in the prior art with an HDLC unit capable of generating an arbitrary frame on either or both sides of the BTS side or the BSC side of the BTS-BSC interface.
为使本发明的目的、技术方案和优点更加清楚明白,以下举实施例, 并参照附图, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一: 在本实施例的 BTS侧, 用由本侧 CPU直接处理设备实 现、 能够生成任意 HDLC帧的 HDLC单元, 代替现有技术中的 HDLC 单元。  The first embodiment: On the BTS side of the present embodiment, the HDLC unit that implements the device directly by the current CPU and can generate any HDLC frame is used instead of the HDLC unit in the prior art.
图 2为本发明实施例" "的 BTS - BSC接口的结构图,本发明实施例 一的 BTS - BSC接口 200包括:包含有 E1收发器 141和 HDLC单元 261 的 BTS侧接口模块 201;包含有 HDLC单元 132和 E1收发器 142的 BSC 侧接口模块 102; 用于 BTS侧接口模块 201和 BSC侧接口模块 102间 通信的传输模块 103。 2 is a structural diagram of a BTS-BSC interface according to an embodiment of the present invention. The BTS-BSC interface 200 of the first embodiment of the present invention includes: a BTS side interface module 201 including an E1 transceiver 141 and an HDLC unit 261; HDLC unit 132 and BSC of E1 transceiver 142 The side interface module 102; a transmission module 103 for communication between the BTS side interface module 201 and the BSC side interface module 102.
其中, BTS侧接口模块 201的 E1收发器 141由 BTS侧 CPU外部 设备实现, 而 HDLC单元 261由 BTS侧 CPU直接处理设备实现。 BTS 侧接口模块 201还可进一步包括由 CPU外部设备实现、用于透传数据的 透传单元 251 , 也可以说, 透传单元 251可作为由 CPU直接处理设备实 现的 HDLC单元 261和由 CPU外部设备实现的 E1收发器 141之间的传 输通道而存在, 它能够起到联系 BTS侧 CPU和外部设备的作用。 对于 BSC侧来说, 与现有技术相比, BSC侧接口模块 102的 HDLC单元 132 和 E1收发器 142仍由 BSC侧 CPU外部设备实现,它们的功能和连接关 系也没有发生改变。  The E1 transceiver 141 of the BTS side interface module 201 is implemented by a BTS side CPU external device, and the HDLC unit 261 is implemented by a BTS side CPU direct processing device. The BTS side interface module 201 may further include a transparent transmission unit 251 implemented by the CPU external device for transparently transmitting data. It may also be said that the transparent transmission unit 251 can be implemented as an HDLC unit 261 implemented by the CPU direct processing device and externally by the CPU. The device implements a transmission channel between the E1 transceivers 141, which can function to communicate with the BTS side CPU and external devices. For the BSC side, the HDLC unit 132 and the E1 transceiver 142 of the BSC side interface module 102 are still implemented by the BSC side CPU external devices as compared with the prior art, and their functions and connections are not changed.
HDLC单元 261用于接收来自 BTS侧接口模块 201上层的数据,这 些数据在 HDLC帧中占据地址域、控制域和信息域, HDLC单元 261将 这些数据封装为 HDLC帧并进行脉冲调制编码, 将编码得到的 PCM码 传送给透传单元 251; HDLC单元 261还用于接收来自透传单元 251的 PCM码, 并从解码得到的 HDLC帧中提取地址域、 控制域、 信息域数 据发送给 BTS侧接口模块 201上层; HDLC单元进一步具有灵活的测试 功能, 除可执行检测、 统计所接收 HDLC帧是否有 CRC错误、 是否有 丟帧错误外, 还能够生成任意帧。  The HDLC unit 261 is configured to receive data from an upper layer of the BTS side interface module 201. The data occupies an address field, a control field, and an information field in an HDLC frame, and the HDLC unit 261 encapsulates the data into an HDLC frame and performs pulse modulation coding. The obtained PCM code is transmitted to the transparent transmission unit 251. The HDLC unit 261 is further configured to receive the PCM code from the transparent transmission unit 251, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BTS side interface. The upper layer of the module 201; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, or whether there is a frame loss error.
透传单元 251用于接收来自 HDLC单元 261的 PCM码并发送给 E1 收发器 141; 透传单元 251还用于接收来自 E1收发器 141的 PCM码并 发送给 HDLC单元 261 , 在 HDLC单元 261收发的数据仅占用 E1收发 器 141部分时隙的情况下, 透传模块 251从 E1收发器接收数据时, 仅 提取 HDLC单元 261占用的部分时隙上的数据。  The transparent transmission unit 251 is configured to receive the PCM code from the HDLC unit 261 and send it to the E1 transceiver 141. The transparent transmission unit 251 is further configured to receive the PCM code from the E1 transceiver 141 and send it to the HDLC unit 261 for transmission and reception in the HDLC unit 261. In the case where the data only occupies part of the time slot of the E1 transceiver 141, when the transparent transmission module 251 receives data from the E1 transceiver, only the data on the partial time slots occupied by the HDLC unit 261 is extracted.
E1收发器 141用于接收来自透传单元 251的 PCM码, 将之编码为 HDB3码并通过传输模块 103发送给 El收发器 142; E1收发器 141还 用于接收通过传输模块 103传递的来自 E1收发器 142的 HDB3码, 将 之解码为 PCM码并传送到透传单元 251。 The E1 transceiver 141 is configured to receive the PCM code from the transparent transmission unit 251 and encode it as The HDB3 code is transmitted to the El transceiver 142 through the transmission module 103. The E1 transceiver 141 is further configured to receive the HDB3 code from the E1 transceiver 142 transmitted through the transmission module 103, decode it into a PCM code, and transmit it to the transparent transmission unit 251. .
利用 HDLC帧对本实施例的 BTS - BSC接口进行检测包括 CRC错 误检测和丟帧错误检测, 以下是这两种检测的具体流程, 其中以 BTS侧 接口模块 201包括透传模块 251的情况为例。  The detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes the CRC error detection and the frame loss error detection. The following is the specific process of the two detections. The case where the BTS side interface module 201 includes the transparent transmission module 251 is taken as an example.
利用 HDLC帧对本实施例的 BTS - BSC接口进行 CRC错误检测具 体包括步骤 11 ~ 14:  The CRC error detection of the BTS-BSC interface of this embodiment by using the HDLC frame includes steps 11 to 14:
11、 BTS侧的 HDLC单元 261接收来自本侧接口模块 201上层的数 据并封装为 HDLC测试帧 A, 依次通过透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142传送其到 HDLC单元 132;  11. The HDLC unit 261 on the BTS side receives the data from the upper layer of the local interface module 201 and encapsulates it into the HDLC test frame A, and sequentially transmits it to the HDLC through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, and the E1 transceiver 142. Unit 132;
12、 BSC侧的 HDLC单元 132检测其接收的 HDLC测试帧 A是否 为有 CRC错误的 HDLC测试帧 Α',如果是, 则执行步骤 13及其后续步 骤; 否则确认该接口正确, 结束本流程;  12. The HDLC unit 132 on the BSC side detects whether the received HDLC test frame A is an HDLC test frame Α with a CRC error, and if yes, performs step 13 and subsequent steps; otherwise, the interface is confirmed to be correct, and the process ends;
13、 HDLC单元 132保存该有 CRC错误的 HDLC测试帧 A', BTS 侧 HDLC单元 261获取和生成与该 HDLC测试帧 A'相同的 HDLC校验 帧 Α', 并依次通过透传单元 251、 E1收发器 141、 传输模块 103和 E1 收发器 142传送其到 HDLC单元 132;  13. The HDLC unit 132 saves the CRC error HDLC test frame A', and the BTS side HDLC unit 261 acquires and generates the same HDLC check frame Α' as the HDLC test frame A', and sequentially passes through the transparent transmission units 251, E1. The transceiver 141, the transmission module 103 and the E1 transceiver 142 transmit it to the HDLC unit 132;
14、 BSC侧 HDLC单元 132比较其接收的 HDLC检验帧 A"与其保 存的 HDLC测试帧 A'是否相同, 如果二者相同 , 则确认 BTS侧 HDLC 单元 261错误, 确认透传单元 251、 E1收发器 141、 传输模块 103、 E1 收发器 142和 HDLC单元 132以及它们之间的连线正确;如果二者不同, 则确认透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142及 HDLC单元 132中的一个或多个或者它们之间的连线错误。  14. The BSC-side HDLC unit 132 compares whether the received HDLC check frame A" is the same as the HDLC test frame A' it holds. If the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251 and the E1 transceiver are confirmed. 141. The transmission module 103, the E1 transceiver 142, and the HDLC unit 132 and the connection between them are correct; if the two are different, the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, and the HDLC are confirmed. One or more of the units 132 or a connection between them is incorrect.
利用 HDLC帧对本实施例的 BTS - BSC接口进行丢帧错误检测具体 包括步骤 21 ~ 24: The frame loss error detection is performed on the BTS-BSC interface of the embodiment by using the HDLC frame. Including steps 21 ~ 24:
21、 BTS侧的 HDLC单元 261接收来自本侧接口模块 201上层的数 据并封装为 HDLC测试帧 B, 依次通过透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142传送其到 HDLC单元 132;  The HDLC unit 261 on the BTS side receives the data from the upper layer of the interface module 201 of the present side and encapsulates it into the HDLC test frame B, and sequentially transmits it to the HDLC through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, and the E1 transceiver 142. Unit 132;
22、 BSC侧的 HDLC单元 132检测其接收的 HDLC测试帧 B是否 为有丟帧错误的 HDLC测试帧 Β', 如果是, 则执行步骤 23及其后续步 骤, 否则确认该接口正确, 结束本流程;  22. The HDLC unit 132 on the BSC side detects whether the received HDLC test frame B is an HDLC test frame with frame loss error Β', and if yes, performs step 23 and subsequent steps. Otherwise, the interface is confirmed to be correct, and the process ends. ;
23、 HDLC单元 132保存该有丟帧错误的 HDLC测试帧 Β', BTS 侧 HDLC单元 261获取和生成与 HDLC测试帧 B'相同的 HDLC校验帧 Β', 并依次通过透传单元 251、 E1收发器 141、 传输模块 103和 E1收发 器 142传送其到 HDLC单元 132;  The HDLC unit 132 saves the HDLC test frame Β with the frame loss error, and the BTS side HDLC unit 261 acquires and generates the same HDLC check frame Β' as the HDLC test frame B', and sequentially passes through the transparent transmission units 251 and E1. The transceiver 141, the transmission module 103 and the E1 transceiver 142 transmit it to the HDLC unit 132;
24、 BSC侧的 HDLC单元 132比较其接收的 HDLC检验帧 B"与其 保存的 HDLC测试帧 B'是否相同 ,如果二者相同,则确认 BTS侧 HDLC 单元 261错误, 确认透传单元 251、 E1收发器 141、 传输模块 103、 E1 收发器 142和 HDLC单元 132以及它们之间的连线正确;如果二者不同, 则确认透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142及 HDLC单元 132中的一个或多个或者它们之间的连线错误。  24. The HDLC unit 132 on the BSC side compares whether the HDLC check frame B received by the HDLC check frame B is the same as the HDLC test frame B that is saved. If the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251 and E1 are confirmed to transmit and receive. The 141, the transmission module 103, the E1 transceiver 142 and the HDLC unit 132 and the connection between them are correct; if they are different, the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142 and One or more of the HDLC units 132 or a connection between them is erroneous.
尽管在本实施例中, BTS侧 HDLC单元是由 BTS侧 CPU直接处理 设备实现的,但是应注意, BTS侧 HDLC单元的实现方式并不局限于此, 而是应包括更多样化的实现方式, 比如 BTS侧 HDLC单元可以由能够 生成任意帧的 CPU外部处理设备, 例如具有此功能的集成电路来实现。  Although in this embodiment, the BTS side HDLC unit is implemented by the BTS side CPU direct processing device, it should be noted that the implementation of the BTS side HDLC unit is not limited thereto, but should include a more diverse implementation. For example, the BTS side HDLC unit can be implemented by a CPU external processing device capable of generating an arbitrary frame, such as an integrated circuit having this function.
实施例二: 在本实施例的 BSC侧, 用由本侧 CPU直接处理设备实 现、 能够生成任意 HDLC帧的 HDLC单元代替现有技术中的 HDLC单 元。  The second embodiment of the present invention is to replace the HDLC unit in the prior art with the HDLC unit that is implemented by the direct processing device of the current CPU and can generate any HDLC frame.
图 3为本发明实施例二的 BTS - BSC接口的结构图,本发明实施例 二的 BTS - BSC接口 300包括:包含有 HDLC单元 131和 El收发器 141 的 BTS侧接口模块 101;包含有 E1收发器 142和 HDLC单元 362的 BSC 侧接口模块 302; 用于 BTS侧接口模块 101和 BSC侧接口模块 302间 通信的传输模块 103。 3 is a structural diagram of a BTS-BSC interface according to Embodiment 2 of the present invention, which is an embodiment of the present invention. The BTS-BSC interface 300 includes a BTS side interface module 101 including an HDLC unit 131 and an El transceiver 141, a BSC side interface module 302 including an E1 transceiver 142 and an HDLC unit 362, and a BTS side interface module 101. A transmission module 103 that communicates with the BSC side interface module 302.
其中, BSC侧接口模块 302的 E1收发器 142由 BSC侧 CPU外部 设备实现, 而 HDLC单元 362由 BSC侧 CPU直接处理设备实现。 BSC 侧接口模块 302还可进一步包括由 CPU外部设备实现、用于透传数据的 透传单元 352, 也可以说, 透传单元 352可作为由 CPU直接处理设备实 现的 HDLC单元 362和由 CPU外部设备实现的 E1收发器 142之间的传 输通道而存在, 它能够起到联系 CPU和外部设备的作用。 对于 BTS侧 来说, 与现有技术相比, BTS侧接口模块 101的 HDLC单元 131和 E1 收发器 141仍由 BTS侧 CPU外部设备实现, 它们的功能和连接关系也 没有发生改变。  The E1 transceiver 142 of the BSC side interface module 302 is implemented by the BSC side CPU external device, and the HDLC unit 362 is implemented by the BSC side CPU direct processing device. The BSC side interface module 302 may further include a transparent transmission unit 352 implemented by the CPU external device for transparently transmitting data. It may also be said that the transparent transmission unit 352 can be implemented as an HDLC unit 362 implemented by the CPU direct processing device and externally by the CPU. The device implements a transmission channel between the E1 transceivers 142, which can function to communicate with the CPU and external devices. For the BTS side, the HDLC unit 131 and the E1 transceiver 141 of the BTS side interface module 101 are still implemented by the BTS side CPU external devices, and their functions and connection relationships are not changed as compared with the prior art.
HDLC单元 362用于接收来自 BSC侧接口模块 302上层的数据,这 些数据在 HDLC帧中占据地址域、控制域和信息域, HDLC单元 362将 这些数据封装为 HDLC帧并进行脉冲调制编码, 将编码得到的 PCM码 传送给透传单元 352; HDLC单元 362还用于接收来自透传单元 352的 PCM码, 并从解码得到的 HDLC帧中提取地址域、 控制域、 信息域数 据发送给 BSC侧接口模块 302上层; HDLC单元进一步具有灵活的测试 功能, 除可执行检测、 统计所接收 HDLC帧是否有 CRC错误、 是否为 丟帧外, 还能够生成任意帧。  The HDLC unit 362 is configured to receive data from the upper layer of the BSC side interface module 302. The data occupies an address field, a control field, and an information field in the HDLC frame, and the HDLC unit 362 encapsulates the data into an HDLC frame and performs pulse modulation coding. The obtained PCM code is transmitted to the transparent transmission unit 352. The HDLC unit 362 is further configured to receive the PCM code from the transparent transmission unit 352, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BSC side interface. The upper layer of the module 302; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, whether it is a frame loss or not.
透传单元 352用于接收来自 HDLC单元 362的 PCM码并发送其到 E1收发器 142;透传单元 352还用于接收来自 E1收发器 142的 PCM码 并发送到 HDLC单元 362, 在 HDLC单元 362收发的数据仅占用 E1收 发器 142部分时隙的情况下, 透传模块 251从 E1收发器接收数据时, 仅提取 HDLC单元 362占用的部分时隙上的数据。 The transparent transmission unit 352 is configured to receive the PCM code from the HDLC unit 362 and transmit it to the E1 transceiver 142; the transparent transmission unit 352 is further configured to receive the PCM code from the E1 transceiver 142 and send it to the HDLC unit 362, in the HDLC unit 362. When the transmitted and received data only occupies part of the time slot of the E1 transceiver 142, when the transparent transmission module 251 receives data from the E1 transceiver, Only the data on the partial time slots occupied by the HDLC unit 362 is extracted.
E1收发器 142用于接收来自透传单元 352的 PCM码, 将之编码为 HDB3码并通过传输模块 103发送给 E1收发器 141 ; E1收发器 142还 用于接收通过传输模块 103传递、 来自 E1收发器 141的 HDB3码, 将 之解码为 PCM码并传送到透传单元 352。  The E1 transceiver 142 is configured to receive the PCM code from the transparent transmission unit 352, encode it into the HDB3 code, and send it to the E1 transceiver 141 through the transmission module 103. The E1 transceiver 142 is further configured to receive the transmission from the E1 through the transmission module 103. The HDB3 code of the transceiver 141 is decoded into a PCM code and transmitted to the transparent transmission unit 352.
利用 HDLC帧对本实施例的 BTS - BSC接口进行检测包括 CRC错 误检测和丢帧错误检测, 以下是这两种检测的具体流程,其中以 BSC侧 接口模块 302包括透传模块 352的情况为例。  The detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes the CRC error detection and the frame loss error detection. The following is the specific process of the two detections. The case where the BSC side interface module 302 includes the transparent transmission module 352 is taken as an example.
利用 HDLC帧对本实施例的 BTS - BSC接口进行 CRC错误检测具 体包括步骤 31 - 34:  The CRC error detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes steps 31 - 34:
31、 BSC侧的 HDLC单元 362接收来自本侧接口模块 302上层的数 据并封装为 HDLC测试帧 C, 依次通过透传单元 352、 E1收发器 142、 传输模块 103、 E1收发器 141传送其到 HDLC单元 131 ;  The HDLC unit 362 on the BSC side receives the data from the upper layer of the interface module 302 of the present side and encapsulates it into an HDLC test frame C, and sequentially transmits it to the HDLC through the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, and the E1 transceiver 141. Unit 131;
32、 BTS侧的 HDLC单元 131检测其接收的 HDLC测试帧 C否是 有 CRC错误的 HDLC测试帧 C',如果是,则执行步骤 33及其后续步骤, 则确认该接口正确, 结束本流程;  32. The HDLC unit 131 on the BTS side detects whether the received HDLC test frame C is an HDLC test frame C′ with a CRC error. If yes, step 33 and subsequent steps are performed to confirm that the interface is correct, and the process ends.
33、 HDLC单元 131保存该有 CRC错误的 HDLC测试帧 C', BSC 侧 HDLC单元 362获取和生成与 HDLC测试帧 C相同的 HDLC校验帧 C, 并依次通过透传单元 352、 E1收发器 142、 传输模块 103和 E1收发 器 141传送其到 HDLC单元 131 ;  The HDLC unit 131 stores the HDLC test frame C' with the CRC error, and the HDLC unit 362 of the BSC side acquires and generates the same HDLC check frame C as the HDLC test frame C, and sequentially passes through the transparent transmission unit 352 and the E1 transceiver 142. , the transmission module 103 and the E1 transceiver 141 transmit it to the HDLC unit 131;
34、 BTS侧 HDLC单元 131比较其接收的 HDLC检验帧 C"与其保 存的 HDLC测试帧 C'是否相同, 如果二者相同, 则确认 BSC侧 HDLC 单元 362错误, 确认透传单元 352、 E1收发器 142、 传输模块 103、 E1 收发器 141和 HDLC单元 131以及它们之间的连线正确;如果二者不同, 则确认透传单元 352、 E1收发器 142、 传输模块 103、 E1收发器 141及 HDLC单元 131中的一个或多个或者它们之间的连线错误。 34. The BTS side HDLC unit 131 compares whether the received HDLC check frame C" is the same as the HDLC test frame C' it holds. If the two are the same, the BSC side HDLC unit 362 is confirmed to be erroneous, and the transparent transmission unit 352 and the E1 transceiver are confirmed. 142. The transmission module 103, the E1 transceiver 141, and the HDLC unit 131 and the connection between them are correct; if the two are different, the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, the E1 transceiver 141, and One or more of the HDLC units 131 or a connection between them is erroneous.
利用 HDLC帧对本实施例的 BTS - BSC接口进行丟帧错误检测具体 包括步驟 41 - 44:  Performing frame loss error detection on the BTS-BSC interface of this embodiment by using the HDLC frame includes the following steps 41 - 44:
41、 BSC侧的 HDLC单元 362接收来自本侧接口模块 302上层的数 据并封装为 HDLC测试帧 D, 依次通过透传单元 352、 E1收发器 142、 传输模块 103、 E1收发器 141传送其到 HDLC单元 131;  41. The HDLC unit 362 on the BSC side receives the data from the upper layer of the local interface module 302 and encapsulates it into an HDLC test frame D, and sequentially transmits it to the HDLC through the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, and the E1 transceiver 141. Unit 131;
42、 BTS侧的 HDLC单元 131检测其接收的 HDLC测试帧 D是否 是有丟帧错误的 HDLC测试帧 D', 如果是, 则执行步骤 43及其后续步 骤, 否则确认该接口正确, 结束本流程;  42. The HDLC unit 131 on the BTS side detects whether the received HDLC test frame D is an HDLC test frame D′ with a frame loss error. If yes, step 43 and subsequent steps are performed. Otherwise, the interface is confirmed to be correct, and the process ends. ;
43、 HDLC单元 131保存该有丢帧错误的 HDLC测试帧 D', BSC 侧 HDLC单元 362获取和生成与 HDLC测试帧 D'相同的 HDLC校验帧 D', 并依次通过透传单元 352、 E1收发器 142、传输模块 103和 E1收发 器 141传送其到 HDLC单元 131;  43. The HDLC unit 131 saves the HDLC test frame D′ with the frame loss error, and the BSC side HDLC unit 362 acquires and generates the same HDLC check frame D′ as the HDLC test frame D′, and sequentially passes through the transparent transmission units 352 and E1. The transceiver 142, the transmission module 103 and the E1 transceiver 141 transmit it to the HDLC unit 131;
44、 BTS侧 HDLC单元 131比较其接收的 HDLC检验帧 D"与其保 存的 HDLC测试帧 D'是否相同, 如果二者相同, 则确认 BSC侧 HDLC 单元 362错误, 确认透传单元 352、 E1收发器 142、 传输模块 103、 E1 收发器 141和 HDLC单元 131以及它们之间的连线正确;如果二者不同, 则确认透传单元 352、 E1收发器 142、 传输模块 103、 E1收发器 141及 HDLC单元 131中的一个或多个或者它们之间的连线错误。  44. The BTS side HDLC unit 131 compares whether the received HDLC check frame D" is the same as the HDLC test frame D' it holds. If the two are the same, the BSC side HDLC unit 362 is confirmed to be erroneous, and the transparent transmission unit 352 and the E1 transceiver are confirmed. 142. The transmission module 103, the E1 transceiver 141, and the HDLC unit 131 and the connection between them are correct; if they are different, the transparent transmission unit 352, the E1 transceiver 142, the transmission module 103, the E1 transceiver 141, and the HDLC are confirmed. One or more of the units 131 or a connection between them is erroneous.
尽管在本实施例中, BSC侧 HDLC单元是由 BSC侧 CPU直接处理 设备实现的,但是应注意, BSC侧 HDLC单元的实现方式并不局限于此, 而是应包括更多样化的实现方式, 比如 BSC侧 HDLC单元可以由能够 生成任意帧的 CPU外部处理设备, 例如具有此功能的集成电路来实现。  Although in this embodiment, the BSC-side HDLC unit is implemented by the BSC-side CPU direct processing device, it should be noted that the implementation manner of the BSC-side HDLC unit is not limited thereto, but should include a more diverse implementation manner. For example, the BSC side HDLC unit can be implemented by a CPU external processing device capable of generating an arbitrary frame, such as an integrated circuit having this function.
实施例三: 在本实施例的 BTS侧, 用由本侧 CPU直接处理设备实 现、 能够生成任意帧的 HDLC单元代替现有技术中的 HDLC单元; 在 BSC侧, 用由本侧 CPU直接处理设备实现、 能够生成任意帧的 HDLC 单元代替现有技术中的 HDLC单元。 Embodiment 3: On the BTS side of the present embodiment, the HDLC unit implemented by the direct processing device of the current CPU and capable of generating an arbitrary frame is substituted for the HDLC unit in the prior art; On the BSC side, the HDLC unit implemented in the direct processing device of the CPU is used to replace the HDLC unit in the prior art.
图 4为本发明实施例三的 BTS - BSC接口的结构图,本发明实施例 三的 BTS - BSC接口 400包括:包含有 E1收发器 141和 HDLC单元 261 的 BTS侧接口模块 201;包含有 E1收发器 142和 HDLC单元 362的 BSC 侧接口模块 302; 用于 BTS侧接口模块 201和 BSC侧接口模块 302间 通信的传输模块 103。  4 is a structural diagram of a BTS-BSC interface according to Embodiment 3 of the present invention. The BTS-BSC interface 400 of the third embodiment of the present invention includes: a BTS side interface module 201 including an E1 transceiver 141 and an HDLC unit 261; The BSC side interface module 302 of the transceiver 142 and the HDLC unit 362; and the transmission module 103 for communication between the BTS side interface module 201 and the BSC side interface module 302.
其中, BTS侧接口模块 201的 E1收发器 141由 BTS侧 CPU外部 设备实现, 而 HDLC单元 261由 BTS侧 CPU直接处理设备实现。 BTS 侧接口模块 201还可进一步包括由 CPU外部设备实现、用于透传数据的 透传单元 251 , 也可以说, 透传单元 251可作为由 CPU直接处理设备实 现的 HDLC单元 261和由 CPU外部设备实现的 E1收发器 141之间的传 输通道而存在, 它能够起到联系 CPU和外部设备的作用。  The E1 transceiver 141 of the BTS side interface module 201 is implemented by a BTS side CPU external device, and the HDLC unit 261 is implemented by a BTS side CPU direct processing device. The BTS side interface module 201 may further include a transparent transmission unit 251 implemented by the CPU external device for transparently transmitting data. It may also be said that the transparent transmission unit 251 can be implemented as an HDLC unit 261 implemented by the CPU direct processing device and externally by the CPU. The device implements a transmission channel between the E1 transceivers 141, which can function to communicate with the CPU and external devices.
HDLC单元 261用于接收来自 BTS侧接口模块 201上层的数据,这 些数据在 HDLC帧中占据地址域、控制域和信息域, HDLC单元 261将 这些数据封装为 HDLC帧并进行脉冲调制编码, 将编码得到的 PCM码 传送给透传单元 251; HDLC单元 261还用于接收来自透传单元 251的 PCM码, 并从解码得到的 HDLC帧中提取地址域、 控制域、 信息域数 据发送给 BTS侧接口模块 201上层; HDLC单元进一步具有灵活的测试 功能, 除可执行检测、 统计所接收 HDLC帧是否有 CRC错误、 是否为 丟帧外, 还能够生成任意帧。  The HDLC unit 261 is configured to receive data from an upper layer of the BTS side interface module 201. The data occupies an address field, a control field, and an information field in an HDLC frame, and the HDLC unit 261 encapsulates the data into an HDLC frame and performs pulse modulation coding. The obtained PCM code is transmitted to the transparent transmission unit 251. The HDLC unit 261 is further configured to receive the PCM code from the transparent transmission unit 251, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BTS side interface. The upper layer of the module 201; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, whether it is a frame loss or not.
透传单元 251用于接收来自 HDLC单元 261的 PCM码并发送给 E1 收发器 141 ; 透传单元 251还用于接收来自 E1收发器 141的 PCM码并 发送给 HDLC单元 261 , 在 HDLC单元 261收发的数据仅占用 E1收发 器 141部分时隙的情况下, 透传模块 251从 E1收发器接收数据时, 仅 提取 HDLC单元 261占用的部分时隙上的数据。 The transparent transmission unit 251 is configured to receive the PCM code from the HDLC unit 261 and send it to the E1 transceiver 141. The transparent transmission unit 251 is further configured to receive the PCM code from the E1 transceiver 141 and send it to the HDLC unit 261 for transmission and reception in the HDLC unit 261. When the data only occupies part of the time slot of the E1 transceiver 141, when the transparent transmission module 251 receives data from the E1 transceiver, only The data on a portion of the time slot occupied by the HDLC unit 261 is extracted.
E1收发器 141用于接收来自透传单元 251的 PCM码, 将之编码为 HDB3码并通过传输模块 103发送给 E1收发器 142; E1收发器 141还 用于接收通过传输模块 103传递、 来自 E1收发器 142的 HDB3码, 将 之解码为 PCM码并传送到透传单元 251。  The E1 transceiver 141 is configured to receive the PCM code from the transparent transmission unit 251, encode it into the HDB3 code, and send it to the E1 transceiver 142 through the transmission module 103. The E1 transceiver 141 is further configured to receive the transmission from the E1 through the transmission module 103. The HDB3 code of the transceiver 142 is decoded into a PCM code and transmitted to the transparent transmission unit 251.
相应的, BSC侧接口模块 302的 E1收发器 142由 BSC侧 CPU外 部设备实现, 而 HDLC单元 362由 BSC侧 CPU直接处理设备实现。 在 HDLC单元 362收发的数据仅占用 E1收发器 142部分时隙的情况下, BSC侧接口模块 302还可进一步包括由 CPU外部设备实现、 用于透传 数据的透传单元 352, 也可以说, 透传单元 352可作为由 CPU直接处理 设备实现的 HDLC单元 362和由 CPU外部设备实现的 E1收发器 142之 间的传输通道而存在, 它能够起到联系 CPU和外部设备的作用。  Correspondingly, the E1 transceiver 142 of the BSC side interface module 302 is implemented by the BSC side CPU external device, and the HDLC unit 362 is implemented by the BSC side CPU direct processing device. The BSC-side interface module 302 may further include a transparent transmission unit 352 implemented by the CPU external device for transparently transmitting data, in the case that the data sent and received by the HDLC unit 362 is only occupied by the E1 transceiver 142. The transparent transmission unit 352 can exist as a transmission channel between the HDLC unit 362 implemented by the CPU direct processing device and the E1 transceiver 142 implemented by the CPU external device, and can function to communicate with the CPU and the external device.
HDLC单元 362用于接收来自 BSC侧接口模块 302上层的数据,这 些数据在 HDLC帧中占据地址域、控制域和信息域, HDLC单元 362将 这些数据封装为 HDLC帧并进行脉冲调制编码, 将编码得到的 PCM码 传送给透传单元 352; HDLC单元 362还用于接收来自透传单元 352的 PCM码, 并从解码得到的 HDLC帧中提取地址域、 控制域、 信息域数 据发送给 BSC侧接口模块 302上层; HDLC单元进一步具有灵活的测试 功能, 除可执行检测、 统计所接收 HDLC帧是否有 CRC错误、 是否为 丟帧外, 还能够生成任意帧。  The HDLC unit 362 is configured to receive data from the upper layer of the BSC side interface module 302. The data occupies an address field, a control field, and an information field in the HDLC frame, and the HDLC unit 362 encapsulates the data into an HDLC frame and performs pulse modulation coding. The obtained PCM code is transmitted to the transparent transmission unit 352. The HDLC unit 362 is further configured to receive the PCM code from the transparent transmission unit 352, and extract the address domain, the control domain, and the information domain data from the decoded HDLC frame and send the data to the BSC side interface. The upper layer of the module 302; the HDLC unit further has a flexible test function, and can generate an arbitrary frame in addition to performing detection, counting whether the received HDLC frame has a CRC error, whether it is a frame loss or not.
透传单元 352用于接收来自 HDLC单元 362的 PCM码并发送其到 E1收发器 142;透传单元 352还用于接收来自 E1收发器 142的 PCM码 并发送到 HDLC单元 362, 在 HDLC单元 362收发的数据仅占用 E1收 发器 142部分时隙的情况下, 透传模块 251从 E1收发器接收数据时, 仅提取 HDLC单元 362占用的部分时隙上的数据。 El收发器 142用于接收来自透传单元 352的 PCM码, 将之编码为 HDB3码并通过传输模块 103发送给 E1收发器 141; E1收发器 142还 用于接收通过传输模块 103传递、 来自 E1收发器 141的 HDB3码, 将 之解码为 PCM码并传送到透传单元 352。 The transparent transmission unit 352 is configured to receive the PCM code from the HDLC unit 362 and transmit it to the E1 transceiver 142; the transparent transmission unit 352 is further configured to receive the PCM code from the E1 transceiver 142 and send it to the HDLC unit 362, in the HDLC unit 362. When the transmitted and received data only occupies part of the time slot of the E1 transceiver 142, when the transparent transmission module 251 receives data from the E1 transceiver, only the data on the partial time slots occupied by the HDLC unit 362 is extracted. The El transceiver 142 is configured to receive the PCM code from the transparent transmission unit 352, encode it into the HDB3 code, and send it to the E1 transceiver 141 through the transmission module 103. The E1 transceiver 142 is further configured to receive the transmission from the E1 through the transmission module 103. The HDB3 code of the transceiver 141 is decoded into a PCM code and transmitted to the transparent transmission unit 352.
由于在本实施例中, BTS侧接口模块 201和 BSC侧接口模块 302  In this embodiment, the BTS side interface module 201 and the BSC side interface module 302
- BSC接口 400进行检测, 以下以 BTS侧作为发方的情况为例, BSC 侧作为发方的情况与此相似。 - The BSC interface 400 performs detection. The following is an example in which the BTS side is used as the sender, and the case where the BSC side is the sender is similar.
利用 HDLC帧对本实施例的 BTS - BSC接口进行检测包括 CRC错 误检测和丢帧错误检测, 以下是这两种检测的具体流程, 其中以 BTS侧 接口模块 201包括透传模块 251、 BSC侧接口模块 302包括透传模块 352 的情况为例。  The detection of the BTS-BSC interface of the present embodiment by using the HDLC frame includes the CRC error detection and the frame loss error detection. The following is the specific process of the two detections. The BTS side interface module 201 includes the transparent transmission module 251 and the BSC side interface module. 302 includes the case of the transparent transmission module 352 as an example.
利用 HDLC帧对本实施例的 BTS - BSC接口进行 CRC错误检测具 体包括步驟 51 ~ 54:  The CRC error detection of the BTS-BSC interface of this embodiment by using the HDLC frame includes steps 51-54:
51、 BTS侧的 HDLC单元 261接收来自本侧接口模块 201上层的数 据并封装为 HDLC测试帧 E, 依次通过透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142、透传模块 352传送其到 HDLC单元 362;  The HDLC unit 261 on the BTS side receives the data from the upper layer of the interface module 201 of the present side and encapsulates it into the HDLC test frame E, and sequentially passes through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, and the transparent transmission module. 352 transmits it to the HDLC unit 362;
52、 BSC侧的 HDLC单元 362检测其接收的 HDLC测试帧 E是否 是有 CRC错误的 HDLC测试帧 E', 如果是, 则执行步骤 53及其后续步 骤, 否则确认该接口正确, 结束本流程;  52. The HDLC unit 362 on the BSC side detects whether the received HDLC test frame E is an HDLC test frame E′ with a CRC error. If yes, step 53 and subsequent steps are performed. Otherwise, the interface is confirmed to be correct, and the process ends.
53、 HDLC单元 362保存该有 CRC错误的 HDLC测试帧 Ε', BTS 侧 HDLC单元 261获取和生成与 HDLC测试帧 E'相同的 HDLC校验帧 Ε', 依次通过透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142和透传单元 352传送其到 HDLC单元 362;  The HDLC unit 362 saves the CRC error HDLC test frame Ε', and the BTS side HDLC unit 261 acquires and generates the same HDLC check frame Ε' as the HDLC test frame E', and sequentially passes through the transparent transmission unit 251 and the E1 transceiver. 141, the transmission module 103, the E1 transceiver 142 and the transparent transmission unit 352 transfer it to the HDLC unit 362;
54、 BSC侧 HDLC单元 362比较其接收的 HDLC检验帧 E"与其保 存的 HDLC测试帧 E'是否相同, 如果二者相同, 则确认 BTS侧 HDLC 单元 261错误, 确认透传单元 251、 E1收发器 141、 传输模块 103、 E1 收发器 142、透传单元 352和 HDLC单元 362以及它们之间的连线正确; 如果二者不同, 则确认透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142、透传单元 352及 HDLC单元 362中的一个或多个或者它 们之间的连线错误。 54. The BSC side HDLC unit 362 compares the received HDLC check frame E" with its guarantee Whether the stored HDLC test frames E' are the same, if the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, the transparent transmission unit 352, and the HDLC are confirmed. The unit 362 and the connection between them are correct; if the two are different, one or more of the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, the transparent transmission unit 352, and the HDLC unit 362 are confirmed. Or the connection between them is wrong.
利用 HDLC帧对本实施例的 BTS - BSC接口进行丢帧错误检测具体 包括步骤 61 ~ 64:  Performing frame loss error detection on the BTS-BSC interface of this embodiment by using the HDLC frame includes steps 61-64:
61、 BTS侧的 HDLC单元 261接收来自本侧接口模块 201上层的数 据并封装为 HDLC测试帧 F, 依次通过透传单元 251、 E1收发器 141、 传输模块 103、E1收发器 142和透传单元 352传送其到 HDLC单元 362;  61. The HDLC unit 261 on the BTS side receives the data from the upper layer of the local interface module 201 and encapsulates it into an HDLC test frame F, and sequentially passes through the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, the E1 transceiver 142, and the transparent transmission unit. 352 transmits it to the HDLC unit 362;
62、 BSC侧的 HDLC单元 362检测其接收的 HDLC测试帧 F是否 是有丢帧错误的 HDLC测试帧 F, 如果是, 则执行步骤 63及其后续步 骤, 否则确认该接口正确, 结束本流程;  62. The HDLC unit 362 on the BSC side detects whether the received HDLC test frame F is an HDLC test frame F with a frame loss error. If yes, step 63 and subsequent steps are performed. Otherwise, the interface is confirmed to be correct, and the process ends.
63、 HDLC单元 362保存该有丟帧错误的 HDLC测试帧 F, BTS侧 HDLC单元 261获取和生成与 HDLC测试帧 F'相同的 HDLC校验帧 F, 并依次通过透传单元 251、 E1收发器 141、传输模块 103、 E1收发器 142 和透传单元 352传送其到 HDLC单元 362;  63. The HDLC unit 362 saves the HDLC test frame F with the frame loss error, and the HDLC unit 261 of the BTS side acquires and generates the same HDLC check frame F as the HDLC test frame F′, and sequentially passes through the transparent transmission unit 251 and the E1 transceiver. 141, the transmission module 103, the E1 transceiver 142 and the transparent transmission unit 352 transfer it to the HDLC unit 362;
64、 BSC侧的 HDLC单元 362比较其接收的 HDLC检脸帧 F"与其 保存的 HDLC测试帧 F是否相同,如果二者相同 ,则确认 BTS侧 HDLC 单元 261错误, 确认透传单元 251、 E1收发器 141、 传输模块 103、 E1 收发器 142、透传单元 352和 HDLC单元 362以及它们之间的连线正确; 如果二者不同, 则确认透传单元 251、 E1收发器 141、 传输模块 103、 E1收发器 142及 HDLC单元 132中的一个或多个或者它们之间的连线 错误。 尽管在本实施例中, BTS侧 HDLC单元和 BSC侧 HDLC单元分别 由其侧 CPU直接处理设备实现,但是应注意, BTS侧 HDLC单元和 BSC 侧 HDLC单元的实现方式并不局限于此,而是应包括更多样化的实现方 式, 比如 BTS侧 HDLC单元和 BSC侧 HDLC单元可以由能够生成任意 帧的 CPU外部处理设备, 例如具有此功能的集成电路来实现。 64. The HDLC unit 362 on the BSC side compares whether the received HDLC face detection frame F" is the same as the HDLC test frame F stored therein. If the two are the same, the BTS side HDLC unit 261 is confirmed to be erroneous, and the transparent transmission unit 251 and E1 are confirmed to transmit and receive. 141, the transmission module 103, the E1 transceiver 142, the transparent transmission unit 352, and the HDLC unit 362 and the connection between them are correct; if the two are different, the transparent transmission unit 251, the E1 transceiver 141, the transmission module 103, One or more of the E1 transceiver 142 and the HDLC unit 132 or a connection between them is erroneous. Although in this embodiment, the BTS side HDLC unit and the BSC side HDLC unit are respectively implemented by their side CPU direct processing devices, it should be noted that the implementation manners of the BTS side HDLC unit and the BSC side HDLC unit are not limited thereto, but A more diverse implementation should be included, such as the BTS side HDLC unit and the BSC side HDLC unit can be implemented by a CPU external processing device capable of generating an arbitrary frame, such as an integrated circuit having this function.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种基站 BTS -基站控制器 BSC接口, 包括: 1. A base station BTS - base station controller BSC interface, including:
BTS 侧接口模块, 其包括相互连接的 BTS 侧高层数据链路控制 HDLC单元和 BTS侧 E1收发器, 该 BTS侧 HDLC单元用于封装和解 封装 HDLC帧数据, 该 BTS侧 E1收发器用于收发 HDLC帧数据; The BTS side interface module includes an interconnected BTS side high layer data link control HDLC unit and a BTS side E1 transceiver, and the BTS side HDLC unit is configured to encapsulate and decapsulate HDLC frame data, and the BTS side E1 transceiver is configured to send and receive HDLC frames. data;
BSC侧接口模块, 其包括相互连接的 BSC侧 HDLC单元和 BSC侧 E1收发器, 该 BSC侧 HDLC单元用于封装和解封装 HDLC帧数据, 该 BSC侧 E1收发器用于收发 HDLC帧数据; 以及 The BSC side interface module includes an interconnected BSC side HDLC unit and a BSC side E1 transceiver, and the BSC side HDLC unit is configured to encapsulate and decapsulate HDLC frame data, and the BSC side E1 transceiver is configured to send and receive HDLC frame data;
连接在 BTS侧 E1收发器和 BSC侧 E1收发器之间的传输模块, 该 传输模块用于在 BTS侧和 BSC侧之间传输 HDLC帧数据, 一个能够生成任意帧。  A transmission module connected between the BTS side E1 transceiver and the BSC side E1 transceiver, the transmission module is configured to transmit HDLC frame data between the BTS side and the BSC side, and one can generate an arbitrary frame.
2、 如权利要求 1所述的 BTS - BSC接口, 其特征在于, 所述 BTS 侧 HDLC单元是其侧 CPU直接处理设备并能够生成任意帧,  2. The BTS-BSC interface according to claim 1, wherein the BTS side HDLC unit is a direct CPU processing device of the side CPU and is capable of generating an arbitrary frame.
所述 BTS侧接口模块进一步包括连接在所述 BTS侧 HDLC单元和 所述 BTS侧 E1收发器之间的透传单元,该透传单元用于在所述 BTS侧 HDLC单元和所述 BTS侧 E1收发器之间透传 HDLC帧数据。  The BTS side interface module further includes a transparent transmission unit connected between the BTS side HDLC unit and the BTS side E1 transceiver, the transparent transmission unit is configured to be on the BTS side HDLC unit and the BTS side E1 HDLC frame data is transparently transmitted between transceivers.
3、 如权利要求 1所述的 BTS - BSC接口, 其特征在于, 所述 BSC 侧 HDLC单元是其侧 CPU直接处理设备并能够生成任意帧,  The BTS-BSC interface according to claim 1, wherein the BSC-side HDLC unit is a direct CPU processing device of the side CPU and is capable of generating an arbitrary frame.
所述 BSC侧接口模块进一步包括连接在所述 BSC侧 HDLC单元和 所述 BSC侧 E1收发器之间的透传单元,该透传单元用于在所述 BSC侧 HDLC单元和所述 BSC侧 E1收发器之间透传 HDLC帧数据。  The BSC side interface module further includes a transparent transmission unit connected between the BSC side HDLC unit and the BSC side E1 transceiver, the transparent transmission unit is configured to be on the BSC side HDLC unit and the BSC side E1 HDLC frame data is transparently transmitted between transceivers.
4、 如权利要求 2所述的 BTS - BSC接口, 其特征在于, 所述 BSC 侧 HDLC单元是其侧 CPU直接处理设备并能够生成任意帧 , 所述 BSC侧接口模块进一步包括连接在所述 BSC侧 HDLC单元和 所述 BSC侧 E1收发器之间的透传单元,该透传单元用于在所述 BSC侧 HDLC单元和所述 BSC侧 E1收发器之间透传 HDLC帧数据。 The BTS-BSC interface according to claim 2, wherein the BSC-side HDLC unit is a side CPU directly processing device and is capable of generating an arbitrary frame. The BSC side interface module further includes a transparent transmission unit connected between the BSC side HDLC unit and the BSC side E1 transceiver, the transparent transmission unit is configured to be on the BSC side HDLC unit and the BSC side E1 HDLC frame data is transparently transmitted between transceivers.
5、 一种检测 BTS - BSC接口的方法, 包括:  5. A method of detecting a BTS-BSC interface, comprising:
A、 BTS侧 HDLC单元依次通过 BTS侧 E1收发器、传输模块和 BSC 侧 E1收发器向 BSC侧 HDLC单元发送 HDLC测试帧 X, BSC侧 HDLC 单元检测所接收的 HDLC测试帧 X'是否有错误,如果是,则执行步骤 B, 否则确认该接口正确;  A. The HDLC unit on the BTS side sequentially transmits the HDLC test frame X to the BSC side HDLC unit through the BTS side E1 transceiver, the transmission module, and the BSC side E1 transceiver, and the BSC side HDLC unit detects whether the received HDLC test frame X' has an error. If yes, go to step B, otherwise confirm that the interface is correct.
B、 BSC侧 HDLC单元保存所接收的 HDLC测试帧 X', BTS侧 HDLC 单元生成与 HDLC测试帧 X'相同的 HDLC校验帧 X', 并依次通过 BTS 侧 E1收发器、传输模块和 BSC侧 E1收发器向 BSC侧 HDLC单元发送 该 HDLC校验帧 X', BSC侧 HDLC单元比较所接收的 HDLC校验帧 X" 与所保存的 HDLC测试帧 X'是否相同, 如果是, 则确认 BTS侧 HDLC 单元不正确, 否则确认该接口中除 BTS侧 HDLC单元之外的其它部分 不正确。  B. The HDLC unit on the BSC side stores the received HDLC test frame X', and the HDLC unit on the BTS side generates the same HDLC check frame X' as the HDLC test frame X', and sequentially passes through the BTS side E1 transceiver, the transmission module, and the BSC side. The E1 transceiver transmits the HDLC check frame X' to the BSC side HDLC unit, and the BSC side HDLC unit compares whether the received HDLC check frame X" is the same as the saved HDLC test frame X', and if so, confirms the BTS side. The HDLC unit is incorrect, otherwise it is confirmed that the interface other than the BTS side HDLC unit is incorrect.
6、 如权利要求 5所述的方法, 其特征在于, 所述 BTS侧 HDLC单 元通过 BTS侧透传单元将所述 HDLC测试帧 X透传给所述 BTS侧 E1 收发器,  The method of claim 5, wherein the BTS side HDLC unit transparently transmits the HDLC test frame X to the BTS side E1 transceiver through a BTS side transparent transmission unit.
所述 BTS侧 HDLC单元通过 BTS侧透传单元将所述 HDLC校验帧 X'透传给所述 BTS侧 E1收发器。  The HDC check frame X' is transparently transmitted to the BTS side E1 transceiver by the BTS side HDLC unit through the BTS side transparent transmission unit.
7、如权利要求 5或 6所述的方法, 其特征在于, 所述错误是校验域 CRC错误、 或是丢帧错误。  The method according to claim 5 or 6, wherein the error is a check field CRC error or a frame loss error.
8、 一种检测 BTS - BSC接口的方法, 包括:  8. A method of detecting a BTS-BSC interface, comprising:
A、BSC侧 HDLC单元依次通过 BSC侧 E1收发器、传输模块和 BTS 侧 E1收发器向 BTS侧 HDLC单元发送 HDLC测试帧 Y, BTS侧 HDLC 单元检测所接收的 HDLC测试帧 Y'是否有错误,如果是,则执行步骤 B, 否则确认该接口正确; A. The HDC unit on the BSC side sequentially transmits the HDLC test frame Y to the BTS side HDLC unit through the BSC side E1 transceiver, the transmission module, and the BTS side E1 transceiver, and the BTS side HDLC. The unit detects whether there is an error in the received HDLC test frame Y', and if yes, performs step B, otherwise confirm that the interface is correct;
B、BTS侧 HDLC单元保存所接收的 HDLC测试帧 Υ', BSC侧 HDLC 单元生成与 HDLC测试帧 Y'相同的 HDLC校验帧 Υ', 并依次通过 BSC 侧 E1收发器、传输模块和 BTS侧 E1收发器向 BTS侧 HDLC单元发送 该 HDLC校验帧 Υ', BTS侧 HDLC单元比较所接收的 HDLC校验帧 Y" 与所保存的 HDLC测试帧 Y'是否相同, 如果是, 则确认 BSC侧 HDLC 单元不正确, 否则确认该接口中除 BSC侧 HDLC单元之外的其它部分 不正确。  B. The HDLC unit of the BTS side stores the received HDLC test frame Υ', and the HDLC unit of the BSC side generates the same HDLC check frame Υ' as the HDLC test frame Y', and sequentially passes through the BSC side E1 transceiver, the transmission module, and the BTS side. The E1 transceiver transmits the HDLC check frame Υ' to the BTS side HDLC unit, and the BTS side HDLC unit compares whether the received HDLC check frame Y" is the same as the saved HDLC test frame Y', and if yes, confirms the BSC side. The HDLC unit is incorrect, otherwise it is confirmed that the interface other than the BSC side HDLC unit is incorrect.
9、 如权利要求 8所述的方法, 其特征在于, 所述 BSC侧 HDLC单 元通过 BSC侧透传单元将所述 HDLC测试帧 Y透传给所述 BSC侧 E1 收发器,  The method of claim 8, wherein the BSC-side HDLC unit transparently transmits the HDLC test frame Y to the BSC-side E1 transceiver through a BSC-side transparent transmission unit.
所述 BSC侧 HDLC单元通过 BSC侧透传单元将所述 HDLC校验帧 Y'透传给所述 BSC侧 E1收发器。  The HDSC check frame Y' is transparently transmitted to the BSC side E1 transceiver by the BSC side HDLC unit through the BSC side transparent transmission unit.
10、 如权利要求 8或 9所述的方法, 其特征在于, 所述错误是 CRC 错误、 或是丟帧错误。  10. The method of claim 8 or 9, wherein the error is a CRC error or a frame loss error.
PCT/CN2006/002263 2005-09-29 2006-09-01 A bts-bsc interface and a method for detecting the interface WO2007036128A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005101080606A CN100539492C (en) 2005-09-29 2005-09-29 A kind of base-station, base-station controller interface and detect the method for this interface
CN200510108060.6 2005-09-29

Publications (1)

Publication Number Publication Date
WO2007036128A1 true WO2007036128A1 (en) 2007-04-05

Family

ID=37133975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002263 WO2007036128A1 (en) 2005-09-29 2006-09-01 A bts-bsc interface and a method for detecting the interface

Country Status (2)

Country Link
CN (1) CN100539492C (en)
WO (1) WO2007036128A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532618A (en) * 2020-11-26 2021-03-19 国网山西省电力公司电力科学研究院 Non-transparent protocol conversion method and device for joint debugging test of stability control test system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257444B (en) * 2008-03-25 2010-10-27 华为技术有限公司 System, device and method for transmitting packet data
CN101309263B (en) * 2008-06-02 2011-03-30 华为技术有限公司 Data transmission method, apparatus and system
CN107872358B (en) * 2016-09-23 2020-12-11 北京遥感设备研究所 Automatic simulation test method for HDLC protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010057299A (en) * 1999-12-21 2001-07-04 박종섭 Serve channel control apparatus and method between base station and base station controller for ATM system
KR100337639B1 (en) * 1999-08-16 2002-05-23 오길록 ATM interface module for the base station controller in IMT-2000 network
KR20030085394A (en) * 2002-04-30 2003-11-05 주식회사 현대시스콤 Apparatus for interfacing between BSC and BTS in a mobile communication inbuilding system
CN1545288A (en) * 2003-11-22 2004-11-10 中兴通讯股份有限公司 A method for external link identification mapping and processing within base station

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100337639B1 (en) * 1999-08-16 2002-05-23 오길록 ATM interface module for the base station controller in IMT-2000 network
KR20010057299A (en) * 1999-12-21 2001-07-04 박종섭 Serve channel control apparatus and method between base station and base station controller for ATM system
KR20030085394A (en) * 2002-04-30 2003-11-05 주식회사 현대시스콤 Apparatus for interfacing between BSC and BTS in a mobile communication inbuilding system
CN1545288A (en) * 2003-11-22 2004-11-10 中兴通讯股份有限公司 A method for external link identification mapping and processing within base station

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532618A (en) * 2020-11-26 2021-03-19 国网山西省电力公司电力科学研究院 Non-transparent protocol conversion method and device for joint debugging test of stability control test system
CN112532618B (en) * 2020-11-26 2023-02-28 国网山西省电力公司电力科学研究院 Non-transparent protocol conversion method and device for joint debugging test of stability control test system

Also Published As

Publication number Publication date
CN1852510A (en) 2006-10-25
CN100539492C (en) 2009-09-09

Similar Documents

Publication Publication Date Title
JP2707529B2 (en) Data communication system
KR940002195B1 (en) Universal protocol data receiver
JP4235636B2 (en) SDU discard method in wireless communication system
BRPI0708491A2 (en) method and apparatus for detecting errors in a data block
EP0158645B1 (en) Data communication method and circuitry
US10311005B2 (en) Message translator
CN113412604B (en) Subscriber station of a serial bus system and method for communication in a serial bus system
WO2007036128A1 (en) A bts-bsc interface and a method for detecting the interface
US7653844B2 (en) Communication apparatus and communication system
CN100484101C (en) A method, system and device to transport the IPv6 message of Ethernet
US9178692B1 (en) Serial link training method and apparatus with deterministic latency
JPH01105644A (en) Data transmission controlling method and data communication equipment
BRPI0616482B1 (en) METHOD FOR CONFIGURING THE CONNECTION BETWEEN FIRST AND SECOND HOMOLOGICAL ENTITIES IN A WIRELESS TELECOMMUNICATIONS NETWORK, AND MOBILE TERMINAL
US9710420B2 (en) System and method for improving the efficiency of a serial interface protocol
CN108347292A (en) A kind of the data decoding method and device of Physical Coding Sublayer
CA2035637A1 (en) Method and apparatus for generating a 48-bit frame check sequence
KR101572810B1 (en) asynchronous communication and synchronous communication system and its control method
US7334040B2 (en) Method of transmission between two processors of a radio communication unit
JPH10242946A (en) Method for transmitting data frame
KR100299540B1 (en) Method and device for data transmission using Manchester code
CN100505761C (en) System and method for initializing a communication link
JP5532030B2 (en) Data communication method and data communication apparatus
WO2012081000A1 (en) A method and system for signaling by bit manipulation in communication protocols
JPS6331330A (en) Transfer error detection system
CN114374475A (en) Method for transmitting data and forwarding equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06775580

Country of ref document: EP

Kind code of ref document: A1