A kind of protocol emulation instrument and carry out the method for testing user equipment
Technical field
The present invention relates to a kind of test of mobile communication terminal, particularly a kind of protocol emulation instrument and carry out the method for testing user equipment.
Background technology
3G terminal is after the pattern of connecting, under at CELL_DCH (cell dedicated channel status) and CELL_FACH (cell forward access state), all keep being connected of up-downgoing signaling simultaneously by logic channel with network, and most important information all is to transmit by the logic channel that is mapped in AM (affirmation) pattern in RRC (Radio Resource control) signaling connects, to guarantee that significant data can correctly be received termination and receive.Above-mentioned mechanism is followed stipulating at RLC (Radio Link control) layer protocol in 25.321 agreements of 3GPP (the 3rd generation partner program).
According to rlc protocol, the sending direction recipient sends AMD PDU (acknowledged mode data protocol Data Unit), wherein comprises among this AMD PDU:
Sequence Number field identifies the sequence number of current PDU; With
The P field, the indication receiving terminal need be responded these data.
If when the indication of the P in this AMD PDU receiving terminal need be responded these data, receiving terminal need come with the control frame of STATUS the AMD PDU that receives is responded, response message comprises:
The type field is ACK;
LSN (final nucleotide sequence number) field, its value show that for the sequence number of current PDU adds 1 the data of receiving terminal before this LSN all correctly receive down, and transmitting terminal can send next data PDU.
Do not add 1 if the value of LSN is not the sequence number of current PDU, perhaps transmitting terminal can not receive response message, and then transmitting terminal need start exception handling, retransmits or resets.
Above transmitting-receiving maintenance mechanism is set up in terminal and is promptly begun to start after RRC connects, and finishes until this time RRC connects.In the reprovision flow process of some terminal, the mutual conversion of CELL_FACH to CELL_DCH for example takes place, during situations such as the switching of minizone, variation has taken place in physical resource or transmission channel resources that the RLC resource that terminal is used is shone upon, but the rlc layer of network and terminal does not change, and needs to safeguard above process always.
Under real network environment, RNC (radio network controller) can by link circuit resource control with the parameter of logic channel before the reprovision complete pass to logic channel behind the reprovision, comprise above-mentioned SequenceNumber and LSN etc., but when the use agreement emulating instrument was tested, all flow processs were all constructed realization by the tester.
When the test terminal, when test reprovision correlated process, the protocol emulation instrument can be put SN 0 and carry out next step test again, but because UE continues to carry out according to the real network situation, be that its SN can not reset, and this situation will cause the protocol emulation instrument can wait for that SN is 0 AMD PDU, but because the SN of UE can be since 0, so this situation will cause the RLC mistake, thereby cause test errors.
For addressing the above problem, the tester safeguards the parameter (as the east of Nethawk company) of upper strata resource in the prior art by programming, and to guarantee the rlc layer coupling, avoids mistake.
Yet, because above-mentioned solution need be write specific test code and be carried out the maintenance of rlc layer data, increased difficulty and workload that the tester writes test script, owing to tester's participation, the accuracy of this test also can be affected simultaneously.
Summary of the invention
The purpose of this invention is to provide a kind of protocol emulation instrument and test processing method thereof,, come completion logic channel reprovision, realize automatic accurately test processes subscriber equipment by the mode of simple triggering flow process according to the regulation of the rlc protocol among 3GPP flow process.
To achieve these goals, the invention provides the method that a kind of protocol emulation instrument carries out the UE test, be used for the situation that the UE test relates to the channel reprovision, comprising:
First transmitting step, protocol emulation instrument and UE carry out AMD PDU transmission at first channel;
Second transmitting step, protocol emulation instrument and UE carry out the AMDPDU transmission at the second channel that is different from first channel;
Wherein, also comprise between first transmitting step and second transmitting step what order was carried out:
Reset message sending step, the protocol emulation instrument sends radio link control reset message to UE;
The reallocation message forwarding step, the protocol emulation instrument sends Radio Resource control reallocation message to UE.
Above-mentioned method, wherein, the radio link control reset message that sends in the described reset message sending step be meet the 3rd generation partner program 25.321 in the reset message of radio link control.
Above-mentioned method, wherein, described UE test relates to the channel reprovision and comprises following situation:
The UE switching cell;
UE carries out carrier frequency and switches in same sub-district;
UE switches between cell dedicated channel status and cell forward access state.
Above-mentioned method, wherein, described protocol emulation instrument and UE carry out AMD PDU transmission and specifically comprise the following step that repeats:
UE sends the AMD PDU that comprises sequence number to protocol analyzer;
Protocol analyzer returns response message to UE after receiving AMD PDU, and wherein the LSN field is that the sequence number of the AMD PDU that receives adds 1 value that obtains.
In order better to realize above-mentioned purpose, the present invention also provides a kind of protocol emulation instrument, comprise that logic channel sets up module, is used for the receiver module of confirmation of receipt mode data protocol Data Unit AMD PDU and is used for after receiving AMD PDU, return the response message sending module of response message to user equipment (UE), wherein, also comprise:
The reallocation message sending module is used for sending Radio Resource control reallocation message to UE;
The reset message sending module is used for when the UE test relates to the channel reprovision, send Radio Resource control reallocation message to UE before, sends radio link control reset message to UE.
Above-mentioned protocol emulation instrument, wherein, the radio link control reset message that described reset message sending module sends be meet the 3rd generation partner program 25.321 in the reset message of radio link control.
Above-mentioned protocol emulation instrument, wherein, described UE test relates to the channel reprovision and comprises following situation:
The UE switching cell;
UE carries out carrier frequency and switches in same sub-district;
UE switches between cell dedicated channel status and cell forward access state.
The present invention has following beneficial effect:
When the UE test relates to the channel reprovision, before UE channel reprovision, send radio link control reset message from trend UE by protocol analyzer, the RLC resource of UE end is resetted, thereby the resource consistency that keeps UE end and protocol analyzer end, when having avoided that UE carried out the upper-layer protocol test because the flow process mistake that the RLC mistake causes;
For the protocol emulation instrument, need not to carry out the such link maintenance process of probable RNC and just can guarantee correctly continuing of link, greatly reduce instrument and realize the testing process complexity;
Because the protocol emulation instrument sends radio link control reset message automatically, rather than the tester manually writes specific test code and carries out the maintenance of rlc layer data, eliminated the influence of human factor, therefore reduced testing cost effectively, increased the accuracy of test test.
Description of drawings
Fig. 1 is the schematic flow sheet of method of the present invention.
Embodiment
Protocol emulation instrument of the present invention and test processing method thereof, according to the regulation of the rlc protocol among 3GPP flow process, finish the channel reprovision by the mode of simple triggering flow process, thereby can realize the function that some instrument does not realize, additionally write complicated link management code without the tester again.
Before the present invention is described in detail, the occurrence scene to the channel reprovision necessarily illustrated earlier.
Carry out at UE (subscriber equipment) switching cell, in same sub-district carrier frequency switch, when between CELL_DCH (cell dedicated channel status) and CELL_FACH (cell forward access state), switching, variation has taken place in physical resource or transmission channel resources that the RLC resource that terminal is used is shone upon, just needs to carry out the channel reprovision.
Switching to CELL_FACH with mobile communication terminal from CELL_DCH in specific embodiments of the invention is that example is elaborated.
As shown in Figure 1, the test processing method of protocol emulation instrument of the present invention comprises:
Step 11, protocol emulation instrument are set up first logic channel on the first cover physical resource;
Step 12, UE (subscriber equipment) carries out the transmission of an AMD PDU with the protocol emulation instrument by first logic channel that is carried on the first cover physical resource under the CELL_DCH state;
Step 13, behind the one AMD PDU end of transmission, before the UE logical channels reprovision, the protocol emulation instrument sends RLC Reset (radio link control reset message) to UE, UE receives after the RLC Reset, carry out the RLC reset operation, and return RLC Reset Response (Radio Link is controlled the response message that resets) to the protocol emulation instrument;
Since the protocol emulation instrument can flexible construction higher layer message flow process characteristics, when relating to the flow process of change in resources as UE, earlier the flow process that resets (flow process that resets in 25.321 in the agreement of RLC) by initiating RLC resets to the resource of UE, and UE just can be continuous with instrument maintenance flow process after finishing the resource flow process like this.
After step 14, protocol emulation instrument receive RLC Reset Response, rebulid second logic channel on the second cover physical resource;
Step 15, the protocol emulation instrument sends the RRC reallocation message to UE;
Step 16, UE and protocol emulation instrument are mutual, switch to CELL_FACH from CELL_DCH;
Step 17, UE (subscriber equipment) is under the CELL_FACH state, carry out the transmission of the 2nd AMD PDU with the protocol emulation instrument by second logic channel that is carried on the second cover physical resource, when the transmission of the 2nd AMD PDU, Sequence Number restarts from 0.
Because in the step 13, UE has carried out the reset operation of RLC, and in the step 14, the protocol emulation instrument can be rebuild second logic channel, so mutual at UE and protocol emulation instrument, switch to CELL_FACH from CELL_DCH after, UE and protocol emulation instrument all can begin the transmission of AMD PDU from the initial condition of RLC, promptly restart the transmission of AMD PDU, thereby avoided the not reciprocity mistake that causes of SN from SN=0.
As shown in Figure 1, mainly comprise the following step that repeats in this step 12:
UE (subscriber equipment) sends the AMD PDU that comprises SN by first logic channel to protocol analyzer under the CELL_DCH state;
Protocol analyzer returns response message to UE after receiving AMD PDU, wherein LSN=SN+1.
Protocol emulation instrument of the present invention comprises:
Logic channel is set up module, is used to set up the logic channel on the first cover physical resource;
Receiver module is used to receive AMD PDU;
The response message sending module is used for returning response message to UE after receiving AMD PDU;
The reallocation message sending module is used for sending Radio Resource control reallocation message to UE;
The reset message sending module is used for before sending the RRC reallocation message to UE, sending radio link control reset message to UE when the UE test relates to the channel reprovision.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.