The present invention relates to mobile communication field, particularly to a method for implementing ATM (Asynchronous Transfer Mode) Adaptation Layer 2 for variable bite rate real-time service in 3G mobile communication field.
In 3G mobile communication products, ATM carries all basic services, and AAL2 carries voice and data services according to certain protocols, and the hierarchical structure of which is shown in
After SAR processing on CPS layer, the CPS packets form CPS-PDUs (CPS Protocol Data Unit), the data format of which is shown in
A CPS-PDU becomes an ATM-SDU (ATM Service Data Unit) through the ATM-SAP (ATM Service Access Point), the ATM-SDU becomes an ATM cell when added with a head on ATM layer.
However, the AAL2 multiplexing/demultiplexing processing and the SAR processing from CPS layer to ATM layer achieved by the dedicated chip only accomplish part of the processing on the current layer instead of the processing on other layers including SSSAR (Service Specific SAR) and CPCS, nor they achieve switching of AAL2 data on CPS layer; therefore, the chip is unable to achieve switching of CPS packets of AAL2 on AAL2 layer at intermediate nodes of AAL2 links, thus it can't meet the actual demand of practical applications.
The object of the present invention is to provide a method for packet exchange and SSSAR protocol processing on AAL2 layer for CPS packets implemented in prior art so as to improve AAL2.
To attain said object, the technical solution according to the present invention is a method for implementing AAL2 for variable bite rate real-time service, comprising: first, setting sending buffers for storing packets to be sent and receiving buffers for storing packets to be received;
At the connected switching node, storing the CPS packets processed on CPS layer in the receiving buffers of the VC (Virtual Connection); then, searching for the VPI (Virtual Path Identifier), VCI (Virtual Channel Identifier) and CID of the corresponding sending VC according to the VPI of said VC, the VCI of the virtual path and CID of the packet, and then switching the CPS packets to the sending buffers of the VC, to which said CPS packets are sent; at the connected terminating node, For voice packets, in the receiving direction, removing the heads of CPS packets processed on CPS layer, and storing the resulting payload in the receiving buffers of the VC; next, submitting the data in said buffers to the application layer; in the sending direction, the application layer transferring the data to be sent to the adaptation layer, which stores the data in the sending buffers;
For data packets, in the receiving direction, allocating buffers for SSSAR processing for the connection corresponding to each CID value; storing the CPS packets processed on CPS layer in the receiving buffers of the VC, then performing reassembly on SSSAR layer, and storing the reassembled data packets in said buffers corresponding to each CID value for SSSAR processing, and then submitting the data related with the VC to the application layer; in the sending direction, the application layer transferring the data to be sent to the adaptation layer, which segments said data according to SSSAR protocol into CPS packets and storing them in the sending buffers of the corresponding VC.
With above method, through setting buffers and utilizing the buffers to exchange data, data exchange between AAL2 sub-layers is realized, and the method of transparent transmission of voice packets and segmentation/reassembly of data packet on SSSAR sublayer is provided, which improves the solution of AAL2.
In the method for implementing AAL2 according to the present invention, first, set sending buffers for storing packets to be sent and receiving buffers for storing packets to be received, setting said buffers is to implement data exchange of SAR processing result from CPS layer to ATM layer according to the prior art in conjunction with the method of the present invention, said buffers are used to accomplish data exchange on AAL2 layer for variable bit rate real-time service at the connected switching node and to accomplish protocol processing on adaptation layer and data transmission between the adaptation layer and the application layer at the connected terminating node. Said connected switching node refers to nodes between AAL2 sublayers, and said connected terminating node refers to nodes between AAL2 and the application layer or the ATM layer.
The AAL2 data exchange for variable bit rate real-time service comprises: storing the CPS packets processed on CPS layer in the receiving buffers of the VC (Virtual Connection); then, searching for the VPI (Virtual Path Identifier), VCI (Virtual Channel Identifier) and CID of the corresponding sending VC according to the VPI of said VC, the VCI of the virtual path and CID of the packet, and then switching the CPS packets to the sending buffers of the VC, to which said CPS packets are sent;
At the connected terminating node, the protocol processing on adaptation layer and the data transmission between the adaptation layer and application layer with said buffers are performed differently for data packets and voice packets:
For voice packets, in the receiving direction, removing the heads of CPS packets processed on CPS layer, and storing the resulting payload in the receiving buffers of the VC; next, submitting the data in said buffers to the application layer; in the sending direction, the application layer transferring the data to be sent to the adaptation layer, which stores the data in the sending buffers;
Traditionally, data copy is required in order to switch the content of a buffer to another one. In the embodiment of the present invention, pointers pointing to the buffers are set and stored in the buffer queues, and each VC has its own sending buffer queue and receiving buffer queue. On that basis, as shown in
The data exchange at the terminating nodes, e.g., from the adaptation layer to the application layer, or from the application layer to the adaptation layer, can also be implemented through exchanging buffer pointers, while traditional method requires frequent application and release of buffers or data copy; in the protocol processing at the terminating nodes, data exchange between the adaptation layer and the application layer can also be implemented through exchanging buffer pointers. Logically, exchanged buffers are different ones, but physically, they may be the same one. The embodiment of the present invention is as follows:
For voice packets at the terminating nodes, in the receiving direction, the submission of data in the buffers to the application layer is performed through submitting the pointer to the receiving buffer, VPI and VCI of the VC, and CID of the CPS packets to the application layer and returning the pointer to an empty buffer from the application layer to the adaptation layer and storing in the receiving buffer queues; in the sending direction, the operation in which the data is transferred from the application layer to the adaptation layer and then stored in the sending buffers is performed through transferring the pointer to the sending buffer which stores the data to be sent and the corresponding VPI, VCI and CID thereof to the adaptation layer, and the adaptation layer storing said pointer in the buffer queues to replace an empty buffer in the receiving buffer queues and returning the pointer to the empty buffer to the application layer. A voice packet usually occupies only 20 to 30 bytes and can be transferred transparently on the sublayer SSSAR in AAL2 protocol, i.e., the pointer to the sending buffer may be obtained directly from the application layer and then exchanged with the pointer to a sending buffer, and the data is added with a packet head and then sent.
For data packets at the terminating nodes, in the receiving direction, the operation of submitting data from a SSSAR buffers to the application layer is performed through submitting the VPI and VCI of the VC, the pointer to the SSSAR buffer and CID of the CPS packets to the application layer and returning the pointer to an empty buffer from the application layer to the adaptation layer and storing the pointer in the SSSAR buffer queue; in the sending direction, the operation of submitting the data from the application layer to the adaptation layer and storing the data in the sending buffers is performed through transferring the pointer to the buffer storing the data to be sent and the corresponding VPI, VCI and CID to the adaptation layer, which segments the data in the buffer according to SSSAR protocol into CPS packets and storing them in the sending buffer of the VC, and then returning the pointer to the sending buffer to the application layer. As shown in
To simplify the implementation of the application layer, the buffers for voice and data packets and the buffers for segmentation, reassembly and storing of data from the application layer are the same in size.
Number | Date | Country | Kind |
---|---|---|---|
02100757.8 | Jan 2002 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN03/00057 | 1/23/2003 | WO | 4/11/2005 |