CN102036269B - Testing method and equipment - Google Patents

Testing method and equipment Download PDF

Info

Publication number
CN102036269B
CN102036269B CN 201010588181 CN201010588181A CN102036269B CN 102036269 B CN102036269 B CN 102036269B CN 201010588181 CN201010588181 CN 201010588181 CN 201010588181 A CN201010588181 A CN 201010588181A CN 102036269 B CN102036269 B CN 102036269B
Authority
CN
China
Prior art keywords
signaling
primitive
receiving
rns
determining
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN 201010588181
Other languages
Chinese (zh)
Other versions
CN102036269A (en
Inventor
柴烨
郝玉杰
张剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN 201010588181 priority Critical patent/CN102036269B/en
Publication of CN102036269A publication Critical patent/CN102036269A/en
Application granted granted Critical
Publication of CN102036269B publication Critical patent/CN102036269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention relates to the technical field of wireless communication, in particular to a testing method and testing equipment, which are used for controlling a time division-synchronous code division multiple access (TD-SCDMA) testing system through a tree and tabular combined notation (TTCN) standard test case. The method provided by the embodiment of the invention comprises the following steps of: receiving primitive from a TTCN script or a signaling from a radio network subsystem (RNS); after the primitive is received from the TTCN script, determining the signaling corresponding to the received primitive according to the correspondence between the primitive and the signaling and transmitting the determined signaling to the RNS; and after the signaling is received from the RNS, determining the primitive corresponding to the received signaling according to the correspondence between the primitive and the signaling and transmitting the determined primitive to the TTCN script. Because the method and the equipment can be switched between the primitive and the signaling, the control over the TD-SCDMA testing system by the TTCN standard test case is supported; and the method and the equipment are not limited to a single board type and a single equipment type.

Description

A kind of method and apparatus of testing
Technical field
The present invention relates to wireless communication technology field, particularly a kind of method and apparatus of testing.
Background technology
The terminal protocol uniformity test is used for checking at TD-SCDMA (Time Division-SynchronousCode Division Multiple Access, the Time Division-Synchronous Code Division Multiple Access access) in system, whether the signaling protocol between test terminal and network meets 3GPP (3rd Generation Partnership Project, third generation collaborative project) standard also can interconnect in order to the performance that guarantees each terminal is consistent.The TDD that defines in the TS34.123 of 3GPP standard (Time division duplex, time division duplex) test case, comprise many-sided test: as MAC (Medium Access Control, medium access control) layer signaling test, RRC (Radio Resource Control, Radio Resource control) test, MM (MobilityManagement, mobile management) flow testing, supplementary service and short message service test etc.
The one perfect testing scheme of cover need to be taken true environment for use and network interworking sexual factor into account.Comprise TTCN (Tree and Tabular Combined Notation in the TD-SCDMA service system, tree table is in conjunction with representation) script, RNC, NodeB (base station), RRU (Remote Radio Unit, radio frequency extension apparatus) and the entity such as UE (terminal), its signaling, interface are had nothing in common with each other.The standard testing example is realized by the TTCN script, wherein sets for describing test set, test case, test step, and form is used for performance primitive, agreement point of observation etc.The abstract primitive that provides in the TTCN script (ASP) limited amount, can not satisfy the signaling requirement of TD-SCDMA system, and because test case is many, the protocol layer that relates to is wide, the Signalling exchange of the network equipment is complicated, and the single-threaded tree structure of TTCN is difficult to support.Therefore, need to realize a kind of adaptation method, support the mapping between the true signaling of the abstract primitive of TTCN and system, not only satisfy the 3GPP agreement but also can be applied to real TD-SCDMA system.
The method of using TTCN to test at present:
The implementation of TTCN and SDL (Specification Description Language, specification description language) association emulation.SDL constructs tested entity, and compiling generates one can carry out association's simulated program of message communicating with the TTCN script, first moves SDL during test and assists simulated program, then moves test case and the tested entity that in the TTCN script, structure is good and carries out interacting message.Generating messages sequence flow graph (MSC), artificial tested entity (IUT) is inner by observing, message sequence and data flow between tested entity and test macro, reaches and searches mistake, the purpose of indentification protocol.This implementation is only applicable to the operation on emulation platform, can't be mutual with live network equipment.
There is following shortcoming in such scheme:
Use the TTCN script, but primitive rather than TD signaling are supported in operation that can only be on emulation platform, can not be used for real system, output MSC figure dependence special-purpose software.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus of testing, in order to control the TD-SCDMA test macro by TTCN standard testing example.
A kind of method of testing that the embodiment of the present invention provides comprises:
Reception is from the primitive of TTCN script or receive signaling from RNS RNS;
After the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and the signaling of determining is sent to RNS, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script.
A kind of equipment of testing that the embodiment of the present invention provides comprises:
Receiver module be used for to receive from the primitive of TTCN script or receives signaling from RNS;
Sending module, be used for after the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and the signaling of determining is sent to RNS, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script.
Owing to changing between primitive and signaling, control the TD-SCDMA test macro thereby support TTCN standard testing is routine, and be not limited to veneer and single equipment type;
Further, embodiment of the present invention simplified apparatus is processed, and reduces development cost, and the stability of maintenance test script and standard.
Description of drawings
Fig. 1 is the test macro schematic diagram of the embodiment of the present invention;
Fig. 2 is the method flow schematic diagram that the embodiment of the present invention is tested;
Fig. 3 is the descending schematic diagram of the embodiment of the present invention;
Fig. 4 is the equipment flowsheet schematic diagram that the embodiment of the present invention is tested.
Embodiment
The embodiment of the present invention is after the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and with the signaling determined to RNS (Radio NetworkSubsystem, RNS) send, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script.
The signaling here can be message, can be also data, can also be message and data.
The embodiment of the present invention increases an ADL (adaptation layer) between TTCN script and RNS, complete mapping between primitive and TD signaling by ADL, reaches the purpose that script is controlled testing process.The TTCN script that uses is TS34.123 agreement TDD standard testing example; The TD-SCDMA system is comprised of with terminal (UE) SS (SystemSimulator, system simulator), and wherein SS comprises TTCN script, ADL and RNS, and RNS is comprised of RNC, base station and RRU; The TTCN script is realized the control of testing process, plays the effect of configuration RNC and base station.ADL is independent of TTCN script and RNS, is between the two, completes adaption function, and its present position in system is illustrated as shown in Figure 1.
ADL directly is connected with the TTCN script, carries out the mutual of primitive with script.
ADL directly is connected with RNC, carries out the transmitting-receiving of signaling with RNC.
ADL can directly be connected with NodeB, and ADL has two approach: the one, ADL → RNC → NodeB to the control of NodeB, is namely that ADL sends to RNC with signaling, and RNC indicates to control NodeB by signaling; The 2nd, ADL → NB, ADL directly and NodeB carry out the transmitting-receiving of signaling.In like manner up, repeat no more.
ADL directly is not connected with RRU, but with the passage of NodeB as control RRU.
ADL directly is not connected with UE, controls UE by ADL → RNC → NodeB → RRU → UE or the mode of ADL → NodeB → RRU → UE.In like manner up, repeat no more.
ADL utilizes state machine to realize mapping relations between primitive and signaling, be divided into descending (the TTCN script is to RNS), up (RNS is to the TTCN script) two parts, descending to send signaling as purpose, complete primitive to the mapping of signaling, driven by primitive, signaling is changed between each state; The uplink state machine is completed signaling to the mapping of primitive to report primitive as purpose, is driven by signaling, and primitive is changed between each state.
Need to prove, the embodiment of the present invention also is not confined to the TD-SCDMA system, and other need to be by the applicable equally embodiment of the present invention of the system that the TTCN script is tested.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.Wherein the executive agent of method can be ADL, can be also other layers, entity device, virtual unit or the network node that can realize identical function.
As shown in Figure 2, the embodiment of the present invention method of testing comprises the following steps:
Step 201, receive from the primitive of TTCN script or receive signaling from RNS.
Step 202, after the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and the signaling of determining is sent to RNS, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script.
The corresponding relation of primitive and signaling is predefined, and this corresponding relation comprises one or more in following:
, the corresponding signaling of primitive, corresponding many signalings of primitive, many corresponding signalings of primitive and many corresponding many signalings of primitive.
The below enumerates several examples,
, the corresponding signaling of primitive:
Example 1:TTCN script sends primitive CPHY_Cell_Release_REQ, after ADL receives, according to No. ID, the residential quarter of primitive indicating, the Cell Deletion Requset (residential quarter removal request) that sends NBAP (NodeB Application Protocol, NodeB application protocol) signaling to RNC deletes designated cell.
Example 2:TTCN sends primitive CRLC_Config_REQ, after ADL receives, send the RNC signaling of configuration RLC according to the primitive content, the pattern (RLC Mode) of the corresponding RB of configuration, transmission window information (TransmissionWindow), polling information (pollingInfo) etc.
Example 3:TTCN sends primitive CRLC_ProhibitRLC_Ack_REQ, after ADL receives, ACK (acknowledgement is forbidden in transmission, reply) signaling to RNC, indicate the rlc layer that configures RNC after receiving AM (Acknowledged Mode) message according to primitive, reply or do not reply.
, corresponding many signalings of primitive.
Example 1: primitive CMAC_PAGING_Config_REQ, purpose is the MAC module transmission Paging data to RNC, just two signalings have been sent to RNC after receiving this primitive, the first is used for obtaining the System Frame Number of RNC, participate in calculating Paging message (beep-page message) appointment logic channel up and down a piece of news afterwards transmitting time; Another is for sending the Paging message content to RNC.
Many corresponding signalings of primitive:
This situation is more common in the signaling of NBAP.
Example 1:TTCN sends primitive CPHY_Cell_Config_REQ and CPHY_RL_Setup_REQ (comprises PCCPCH (Primary Common Control PhysicalChannel, Primary Common Control Physical Channel) configuration information), ADL issues the NBAP signaling Cell Setup Requset (residential quarter is set up and asked) that sets up the residential quarter and to RNC, sets up for the residential quarter.
Example 2:TTCN sends primitive CPHY_RL_Setup_REQ and (comprises descending DPCH (DedicatedPhysical Channel, DPCH) information) and CPHY_Trch_Config_Req (comprising descending DPCH information) and CPHY_RL_Setup_REQ (comprising up DPCH information) and CPHY_Trch_Config_Req (comprising up DPCH information), ADL sends the Radio Link Setup Request (wireless link request) of NBAP signaling to RNC.
Example 3: the public affairs of example biography is also the many-one form in table, be established as example with FACH, primitive CPHY_RL_Setup_REQ (comprises SCCPCH (Secondary Common Control PhysicalChannel, Secondary Common Control Physical Channel) information) and CPHY_TrCH_Config_REQ (comprise PCH (Paging Channel, paging channel) and FACH (Forward Access Channel.Forward access channel) information) and CPHY_RL_Setup_REQ (comprise PICH (Page IndicationChannel, Page Indication Channel) information), ADL sends the Common TransportChannel Setup Request (Common transport channel is set up request) of NBAP signaling to RNC.
Many corresponding many signalings of primitive:
Example 1:TTCN sends CPHY_RL_Setup_REQ and (comprises HS-PDSCH (High SpeedPhysical Downlink Shared Channel, high speed down sharing physical channel) information) and CMAC_MAChs_TFRCconfigure_REQ, ADL sends to NB and is used for MAC-hs TFRC and sets the test post of request and send Physical Shared Channel ReconfigurationRequest (request of Physical Shared Channel reprovision) signaling to RNC.
Example 2:TTCN sends primitive CRLC_BindTestDataInOneMAChs_PDU_REQ, then send some RLC_AM_TestDataReq primitive (meeting Indication message quantity in CRLC_BindTestDataInOneMAChs_PDU_REQ, as be the numOfSDUs bar), ADL is after receiving these primitive, can issue the AM mode signaling of numOfSDUs bar to RNC, its data content derives from RLC_AM_TestDataReq primitive.
Than as shown in table 1:
Figure BDA0000038121380000071
Table 1
As can be seen from Table 1:
The corresponding Common transport of CPHY_RL_Setup_REQ (containing SCCPCH information)+CPHY_TrCH_Config_REQ (containing PCH and FACH information)+three of CPHY_RL_Setup_REQ (containing PICH information) primitive channel setup request signaling is set up FACH;
The corresponding Common transportchannel of CPHY_RL_Setup_REQ (containing PRACH and FPACH information)+two of CPHY_TrCH_Config_REQ (containing RACH information) primitive setup request signaling is set up RACH.
After public biography configuration successful, NB notifies RNC, and RNC feedback signaling Common transport channelsetup response is to ADL; After public biography configuration failure, RNC feedback signaling Common transportchannel setup failure is to ADL.Be after primitive CPHY_RL_Setup_REQ and CPHY_TrCH_Config_REQ and CPHY_RL_Setup_REQ issue, ADL issues Common transport channel setup request, as configuration take-effective, ADL can receive Commontransport channel setup response (1 time NB configuration successful of state), feeds back primitive; As configuration failure, can receive Common transport channel setup failure (1 time NB configuration failure of state), do not feed back the TTCN script, like this this feedback primitive is overtime to lead to the failure because can not receive with regular meeting.
Status number 3 and 4 the meaning be the signaling of receiving RNC public pass be successfully established after, ADL replys primitive CPHY_RL_Setup_CNF or CPHY_TrCH_Config_CNF according to the prerequisite situation.Namely in the situation that precondition is state 1, reply CPHY_RL_Setup_CNF, in the situation that precondition is state 2, reply CPHY_TrCH_Config_CNF.
The meaning of status number 5 is to receive that the public failed precondition of foundation that passes of signaling of RNC is to have issued signaling public affairs biography fach to set up or public biography rach foundation.
Content according to table 1:
Wherein, can further include before step 201:
Set up the communication link with each inter-entity.
Concrete, set up with the TTCN script that TCP is connected and as the server end of TCP, set up with RNC in RNS that TCP is connected and as the client of TCP, set up with the base station in RNS that UDP is connected and as the client of UDP.
After the communication link with each inter-entity connects, wait for the access of TTCN script.After script access, after the TCP request message of receiving from script, determine that script need to carry out test case.
If last test case abnormal ending can cause the problems such as Resource Allocation in Networks mistake, in order to guarantee the stable, better of test environment, at the TCP request message of receiving from the TTCN script, carry out initialization operation.
Initialization operation includes but not limited to one or more in following operation:
Local resource, L2 layer reset and memory block that deletion takies empty.
When test begins, send the signaling (specific implementation is to send the NBAP signaling of residential quarter deletion to each residential quarter) of all residential quarters of deletion such as ADL to RNC, reach the purpose of each local resource of release; Then send layer two (high level) signaling that resets to RNC, reach the purpose of initialization of RNC environment; Send to NodeB the purpose that the signaling (concrete operations are the test post switch of closing physical layer and MAC module) of closing test post reaches initial environment.
Due at the TCP request message of receiving from the TTCN script, carry out initialization operation, thereby can automatically adjust test environment, after test case enters the abnormality end, can recover test environment, do not affect the follow-up test example and carry out.
After connecting, be in attonity state, i.e. initial condition before step 201.
Because TTCN software self statement primitive is textual form, when sending to ADL, carried out encapsulation, the form that adds message body take message header is a TCP message, with numbering indication type, is the primitive content in message body in message header.most of primitive is not distinguish protocol version, at R4 (Release4, released version 4), R5 (Release5, released version 5, be HSDPA, High SpeedDownLink Packet Access, the high-speed downlink packet access), R6 (Release6, released version 6, be MBMS, Multimedia Broadcast/ Multicast Service, multimedia broadcast/group broadcast service) and R7 (Release7, released version 7, be HSUPA, High Speed Uplink Packet Access, the high speed uplink packet access) be nondistinctive in, as CPHY_Ini_REQ, and the agreement of its use can be learnt by the primitive name in some primitive, and as CMAC_MBMS_ConfigInfo_REQ, the MBMS from title can be characterized as the R6 version, but some primitive as CPHY_RL_Setup_REQ, can embody the differentiation of protocol version within it in holding, so just need to know protocol version by the analysis part content.And due to the compatibility of agreement to lowest version, in the R7 use-case, descending may be the R4 configuration, and perhaps downlink traffic is large, uses the R5 configuration.So after the primitive of receiving from script, need to resolve primitive, determine according to resolving content the protocol version that uses, then determine according to primitive and the corresponding relation of signaling signaling corresponding to primitive received.
Adopt TCP to be connected between TTCN script and ADL, after ADL receives the message of a script transmission, the structure stem of removing resolution data with agreement, just can learn primitive type (being the primitive name), according to this type, go to resolve follow-up data part (being message body, is exactly the content of primitive) with corresponding structure again, so just can go to search corresponding signaling according to content.
After having determined signaling corresponding to primitive, determine the parameter that corresponding signaling needs, the parameter in the primitive of receiving is mated, the parameter that in primitive, the match is successful is added in signaling.
Concrete, after having determined signaling corresponding to primitive, according to the protocol version of primitive, just know the content of corresponding signaling, then determine all parameters of needing in signaling, with the parameter configuration that has in the primitive of receiving in signaling.
Certainly, protocol version that also can uncertain primitive, and directly determine the content of corresponding signaling, but need to judge when primitive parameter mates, have certain influence on speed.
Might a corresponding signaling of primitive in the corresponding relation of primitive and signaling, corresponding many signalings of primitive, many corresponding signalings of primitive or many corresponding many signalings of primitive.
If the signaling of the determining corresponding signaling that is many primitive, after receiving a primitive, the partial parameters in can only configuration signal also needs to continue to receive primitive.
Concrete, after the parameter in configuration signal, check whether parameter in signaling all configures to complete, if so, determine that signaling the state to be triggered such as carries out; Otherwise, continue to receive primitive corresponding to this signaling.
Article one, after the configuration of the primitive in signaling is completed, the state to be triggered such as just enter, and check for the transmission condition of this signaling and whether satisfy, after determining to satisfy the condition that sends signaling, determine that according to signaling type receiving target and RNC or base station in RNS send signaling.
The below enumerates several examples.
Example 1: the trigger condition that sends wireless link reconfigured submission (the Radio Link ReconfigurationCommit) signaling of NBAP, need to be after radio link reconfiguration (Radio Link ReconfigurationPrepare) success, after namely receiving feedback signaling reprovision success (Radio Link ReconfigurationReady) signaling, and the configuration of wireless link reconfigured submission signaling parameter could send after completing.
Example 2: the trigger condition that sends Physical Shared Channel reprovision request (the Physical Shared ChannelReconfiguration Request) signaling of NBAP, need to first receive primitive CPHY_RL_Setup_REQ (comprising HSPDSCH information), receive that then primitive CMAC_MAChs_TFRCconfigure_REQ could trigger.
Example 3: the public affairs that send NBAP pass the trigger condition of deletion (Common Transport Channel Deletion Request) signaling, need script to send primitive CPHY_RL_Release_REQ and CPHY_TrCH_Release_REQ, the sequencing that sends is irrelevant, and one of rear transmission as trigger condition.After ADL receives these two primitive, can judge according to the physical channel ID of its indicating, carry out the deletion of public affairs biography for public affairs pass corresponding physical channel ID.
Example 4: the trigger condition that sends Radio Link removal request (the Radio Link Deletion Request) signaling of NBAP, need script to send primitive CPHY_RL_Release_REQ and CPHY_TrCH_Release_REQ, with the primitive that sends after script as trigger condition.ADL judges according to the physical channel ID of its indicating, for physical channel ID corresponding to dedicated transmission channel carries out the Radio Link deletion.
Wherein, after all parameters that the signaling that will determine needs are all added this signaling to, primitive corresponding to this signaling that record is received at last; After the feedback signaling for the signaling of determining of receiving from RNS, the parameter in the primitive that the signaling of determining of record is corresponding is added in primitive corresponding to feedback signaling.
Judge specifically one is whether the combination that judges lower signaling needs many primitive, the one, the primitive that the TTCN script is replied in judgement needs those parameters.For example pass deletion as example take public affairs, the TTCN script sends CPHY_RL_Release_REQ and CPHY_TrCH_Release_REQ, what the needs record was received at last is primitive, is used for replying script after receiving the RNC feedback again and confirms accordingly primitive (CPHY_RL_Release_CNF or CPHY_TrCH_Release_CNF).The primitive that the TTCN script requires to reply is that requirement checks IE a bit, and for the test design that does not check IE, as long as reply its desired primitive type, content correctness script does not check.In the situation that the primitive content is idle message, do not need ADL to reply script, only need ADL that it is passed to RNC and get final product.So better, before recording primitive corresponding to signaling, judge first whether this primitive requires to reply, and the TTCN script to check also to reply content, if require reply and check, record primitive corresponding to signaling; Otherwise record not.
Concrete, if a primitive of receiving can not configure all parameters of A signaling, and need to wait for next primitive, return to response message to the TTCN script.All parameters with the A signaling all configure complete after, be recorded to common storage area with configuring at last required primitive; After sending the A signaling, after receiving the feedback signaling about the A signaling from RNS, determine the primitive that feedback signaling is corresponding, and the parameter configuration in the primitive that last configuration in common storage area is required is in primitive corresponding to feedback signaling.
Such as receiving the first primitive, after parameter configuration in the first primitive is arrived the A signaling, check whether the A signaling configures and complete, after definite A signal deployment is not completed, return to feedback primitive for the first primitive, after receiving the second primitive, after parameter configuration in the second primitive is arrived the A signaling, check whether the A signaling configures and complete, after definite A signal deployment is completed, will record the second primitive;
After the feedback signaling of receiving about the A signaling, determine the 3rd primitive corresponding to feedback signaling of A signaling, in parameter configuration to the three primitive in the second primitive.
In force, also can not record concrete primitive, only record the parameter in primitive.
In step 202, after sending a signaling, the state that this signaling is corresponding empties, and continues to wait for reception primitive.
Up direction and down direction are similar, after receiving signaling, determine primitive corresponding to signaling received according to primitive and the corresponding relation of signaling, according to the parameter of the primitive needs of determining, parameter in the signaling of receiving is mated, the parameter that in signaling, the match is successful is added in primitive.
Concrete, after having determined primitive corresponding to signaling, determine the parameter that needs in primitive, the parameter in the signaling of receiving is mated, the parameter that in signaling, the match is successful is added in primitive.
Due to might a corresponding signaling of primitive in the corresponding relation of primitive and signaling, corresponding many signalings of primitive, many corresponding signalings of primitive or many corresponding many signalings of primitive.
If the primitive of the determining corresponding primitive that is many signalings, after receiving a signaling, the partial parameters in can only configuration signal also needs to continue to receive signaling.
Concrete, after the parameter in configuration primitive, check whether parameter in primitive all configures to complete, if so, determine that primitive such as carries out at the state to be triggered; Otherwise, continue to receive signaling corresponding to this primitive.
Article one, after the signal deployment in primitive is completed, the state to be triggered such as just enter, and whether the transmission condition for this primitive of checking satisfy, after determining to satisfy the condition that sends primitive, send primitive to TTCN.
The below exemplifies several examples.
Example 1: the trigger condition of primitive CPHY_Ini_CNF is to complete the test macro initialization operation.The TTCN script sends primitive CPHY_Ini_REQ, carries out the system initialization operation after ADL receives, after step was carried out, ADL sent primitive CPHY_Ini_CNF to the TTCN script.
Example 2: the trigger condition of primitive CMAC_SYSINFO_Config_CNF is system message update success (SYSINFO_UPDATE_RESP).TTCN sends some groups of CMAC_SYSINFO_Config_REQ and RLC_TR_DATA_REQ is used for combined system message, wherein, former groups of contents are for configuration-system message system information block (SIB, System InformationBlock), only having last group is for configuration Master Information Block (MIB, Master Information Block), because RLC_TR_DATA_REQ does not need to reply, and CMAC_SYSINFO_Config_REQ needs to reply, after so former groups of CMAC_SYSINFO_Config_REQ send, ADL resolves and finds to be the SIB content, just directly reply CMAC_SYSINFO_Config_CNF, until receive a CMAC_SYSINFO_Config_REQ who resolves to the MIB content, ADL sending system information updating is to RNC, then after by the time receiving the system message update success, just reply CMAC_SYSINFO_Config_CNF primitive to script.
Example 3: the trigger condition of primitive CPHY_UpPCH_IND is syncUL and the rach number that ADL receives the ramp up that NB reports.Script sends primitive CPHY_FPACH_REQ, and ADL receives rear transmission inquiry sign on to the base station, the syncUL of base station feedback ramp up and rach number, and ADL is filled into the content that obtains in CPHY_UpPCH_IND primitive and issues script.
The example 4:RLC_AM_DATA_IND trigger condition be ADL receive RNC SRB (SignalingRadio Bearer, Signaling Radio Bearer) on confirmation (AM) pattern idle message.When ADL received the idle message of the UE that RNC reports, advanced row mode judgement if the AM pattern is that SRB reports, triggered primitive RLC_AM_DATA_IND; If be SRB, trigger primitive RLC_AM_TESTDATAIND.(under non-confirmation (UM) and transparent (TR) pattern in like manner, but the primitive title is different.)
Wherein, after perhaps the signaling encapsulation format changes in primitive content, signaling, the corresponding relation of primitive and signaling is upgraded.
Concrete, the common test parameter storage of using of up-downgoing (be connected with signaling such as primitive corresponding relation, RRC connect the parameters such as state indication) in the public domain, is upgraded when receiving primitive or equipment message.Descending, up processing is carried out in different threads, between the alternately mode by common storage area.
Such as when the change of equipment interface, signaling format (in signaling perhaps signaling encapsulation format change), by revising corresponding relation, reach the effect that upper strata shielding lower floor is changed, guarantee the stability of script.When the newly-increased primitive of test case or ASN file update (the primitive content changes), reach the variation on lower floor's shielding upper strata by upgrading corresponding relation, the processing of simplified apparatus reduces development cost.
In force, can also be with the process record of primitive and Signalling exchange in the text type daily record, and after the reciprocal process of primitive and signaling finishes, the daily record of output text type.
Due to the daily record of the intersection record that can export overall process primitive and signaling and signaling content, thereby help the test case analyzing and positioning.
The scheme of testing of the embodiment of the present invention arranges altogether one of four states: (1) initial condition; (2) wait for parameter; (3) etc. to be triggered; (4) signaling sends.The below is take ADL as subject, and down direction describes, and up direction and down direction are similar, do not repeat them here.
As shown in Figure 3, in the descending schematic diagram of the embodiment of the present invention, set up the communication link with each inter-entity after at first ADL starts, as the TCP server end of communicating by letter with the TTCN script, carry out the client that TCP communicates by letter and the client of communicating by letter with the UDP of NodeB with RNC.
After TTCN script access, whenever carrying out a test case, ADL first carries out the initialization of test environment, comprises local resource, L2 layer reset that deletion takies, and the memory block such as empties at the operation.
The ADL down direction is in the attonity state before receiving primitive, the signaling corresponding states is initial condition, after receiving primitive, at first resolve according to primitive type, search the corresponding relation (the concrete manifestation form can be mapping table, can be also other forms of expression) of primitive and signaling.Such as this primitive is used for combined signalling, resolve the primitive content, the required parameter of signaling is mated and checked, if parameter satisfies the signaling combination condition, this signaling is processed the state to be triggered such as can enter, otherwise, continue to wait for reception primitive.Send if primitive is used for triggering signaling, check the signaling whether states to be triggered such as being in is arranged in the signaling that can be triggered, check then whether trigger condition all satisfies, and descends signaling as satisfying, otherwise continue to receive primitive.
After the down direction signaling satisfied trigger condition, the ADL combined signalling was issued to the target device in RNS.After issuing, this signaling corresponding states empties (namely becoming initial condition), and ADL continues to wait for reception primitive.
Based on same inventive concept, a kind of equipment of testing also is provided in the embodiment of the present invention, because the principle that this equipment is dealt with problems is similar to the method for testing, so the enforcement of this equipment can referring to the enforcement of method, repeat part and repeat no more.
As shown in Figure 4, the equipment tested of the embodiment of the present invention comprises: receiver module 10 and sending module 20
Receiver module 10 be used for to receive from the primitive of TTCN script or receives signaling from RNS.
Sending module 20, be used for after the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and the signaling of determining is sent to RNS, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script.
Wherein, sending module 20 according to the parameter of the signaling needs of determining, mates the parameter in the primitive of receiving after determining signaling, and the parameter that in primitive, the match is successful is added in signaling;
Sending module 20 according to the parameter of the primitive needs of determining, mates the parameter in the signaling of receiving after determining primitive, and the parameter that in signaling, the match is successful is added in primitive.
Wherein, sending module 20 also is used for after all parameters that the signaling that will determine needs are all added this signaling to, primitive corresponding to this signaling that record is received at last; After the feedback signaling for the signaling of determining of receiving from RNS, the parameter in the primitive that the signaling of determining of record is corresponding is added in primitive corresponding to feedback signaling.
Better, sending module 20 determining and need to reply primitive corresponding to this signaling of receiving at last, and after the TTCN script need to check primitive corresponding to this signaling of receiving at last, primitive corresponding to this signaling that record is received at last.
Wherein, sending module 20 checks whether satisfy the condition that sends signaling, and after determining to satisfy the condition that sends signaling, RNC or base station in RNS send signaling; Check whether satisfy the condition that sends primitive, and after determining to satisfy the condition that sends primitive, send primitive to the TTCN script.
Wherein, the equipment of the embodiment of the present invention can further include: set up module 30.
Set up module 30, be used for setting up with the TTCN script that TCP is connected and as the server end of TCP, set up with RNC in RNS that TCP is connected and as the client of TCP, set up with the base station in RNS that UDP is connected and as the client of UDP.
The equipment of the embodiment of the present invention can further include: initialization module 40.
Initialization module 40 is used for carrying out initialization operation after the TCP request message of receiving from the TTCN script.
The equipment of the embodiment of the present invention can further include: update module 50.
Update module 50 is used for after perhaps the signaling encapsulation format changes in primitive content, signaling, and the corresponding relation of primitive and signaling is upgraded.
The equipment of the embodiment of the present invention can further include: logging modle 60.
Logging modle 60 is used for process record with primitive and Signalling exchange to the text type daily record, and after the reciprocal process of primitive and signaling finishes, the daily record of output text type.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect fully.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is that reference is described according to flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the present invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce to be used for the device of realizing in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make on computer or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby be provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame in the instruction of carrying out on computer or other programmable devices.
Although described the preferred embodiments of the present invention, in a single day those skilled in the art get the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Owing to changing between primitive and signaling, control the TD-SCDMA test macro thereby support TTCN standard testing is routine, and be not limited to veneer and single equipment type;
Further, embodiment of the present invention simplified apparatus is processed, and reduces development cost, and the stability of maintenance test script and standard.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.

Claims (17)

1. a method of testing, is characterized in that, the method comprises:
Reception from tree table in conjunction with the primitive of representation TTCN script or receive signaling from RNS RNS;
After the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and the signaling of determining is sent to RNS, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script;
After determining signaling, send signaling and also comprise before: according to the parameter of the signaling needs of determining, the parameter in the primitive of receiving is mated, the parameter that in primitive, the match is successful is added in signaling;
After determining primitive, send primitive and also comprise before: according to the parameter of the primitive needs of determining, the parameter in the signaling of receiving is mated, the parameter that in signaling, the match is successful is added in primitive.
2. the method for claim 1, is characterized in that, the corresponding relation of described primitive and signaling comprises one or more in following:
, the corresponding signaling of primitive;
, corresponding many signalings of primitive;
Many corresponding signalings of primitive;
Many corresponding many signalings of primitive.
3. the method for claim 1, is characterized in that, after all parameters that the signaling that will determine needs are all added this signaling to, and primitive corresponding to this signaling that record is received at last;
After the feedback signaling for the signaling of determining of receiving from RNS, the parameter in the primitive that the signaling of determining of record is corresponding is added in primitive corresponding to feedback signaling.
4. method as claimed in claim 3, is characterized in that, primitive corresponding to this signaling that described record is received at last also comprises before:
Determine and to reply primitive corresponding to this signaling of receiving at last, and the TTCN script need to check primitive corresponding to this signaling of receiving at last.
5. the method for claim 1, is characterized in that, sends signaling and comprise:
Check whether satisfy the condition that sends signaling, and after determining to satisfy the condition that sends signaling, RNC or base station in RNS send signaling;
Transmission primitive comprises:
Check whether satisfy the condition that sends primitive, and after determining to satisfy the condition that sends primitive, send primitive to the TTCN script.
6. the method for claim 1, is characterized in that, also comprises receiving from the primitive of TTCN script or before receiving signaling from RNS:
Set up with the TTCN script that TCP is connected and as the server end of TCP, set up with RNC in RNS that TCP is connected and as the client of TCP, set up with the base station in RNS that UDP is connected and as the client of UDP.
7. method as described in claim 1 or 6, is characterized in that, also comprises receiving from the primitive of TTCN script or before receiving signaling from RNS:
After the TCP request message of receiving from the TTCN script, carry out initialization operation.
8. the method for claim 1, is characterized in that, the method comprises:
After perhaps the signaling encapsulation format changes in primitive content, signaling, the corresponding relation of primitive and signaling is upgraded.
9. the method for claim 1, is characterized in that, the method comprises:
With the process record of primitive and Signalling exchange in the text type daily record, and after the reciprocal process of primitive and signaling finishes, the daily record of output text type.
10. an equipment of testing, is characterized in that, this equipment comprises:
Receiver module be used for to receive from the primitive of TTCN script or receives signaling from RNS;
Sending module, be used for after the primitive of receiving from the TTCN script, corresponding relation according to primitive and signaling, determine signaling corresponding to primitive received, and the signaling of determining is sent to RNS, after the signaling of receiving from RNS, according to the corresponding relation of primitive and signaling, determine primitive corresponding to signaling received, and the primitive of determining is sent to the TTCN script;
Described sending module also is used for, and according to the parameter of the signaling needs of determining, the parameter in the primitive of receiving is mated, and the parameter that in primitive, the match is successful is added in signaling; According to the parameter of the primitive needs of determining, the parameter in the signaling of receiving is mated, the parameter that in signaling, the match is successful is added in primitive.
11. equipment as claimed in claim 10 is characterized in that, described sending module also is used for:
After all parameters that the signaling that will determine needs are all added this signaling to, primitive corresponding to this signaling that record is received at last; After the feedback signaling for the signaling of determining of receiving from RNS, the parameter in the primitive that the signaling of determining of record is corresponding is added in primitive corresponding to feedback signaling.
12. equipment as claimed in claim 11 is characterized in that, described sending module specifically is used for:
Determining and need to reply primitive corresponding to this signaling of receiving at last, and after the TTCN script need to check primitive corresponding to this signaling of receiving at last, primitive corresponding to this signaling that record is received at last.
13. equipment as claimed in claim 10 is characterized in that, described sending module specifically is used for:
Check whether satisfy the condition that sends signaling, and after determining to satisfy the condition that sends signaling, RNC or base station in RNS send signaling; Check whether satisfy the condition that sends primitive, and after determining to satisfy the condition that sends primitive, send primitive to the TTCN script.
14. equipment as claimed in claim 10 is characterized in that, described equipment also comprises:
Set up module, be used for setting up with the TTCN script that TCP is connected and as the server end of TCP, set up with RNC in RNS that TCP is connected and as the client of TCP, set up with the base station in RNS that UDP is connected and as the client of UDP.
15. equipment as described in claim 10 or 14 is characterized in that, described equipment also comprises:
Initialization module is used for carrying out initialization operation after the TCP request message of receiving from the TTCN script.
16. equipment as claimed in claim 10 is characterized in that, described equipment also comprises:
Update module is used for after perhaps the signaling encapsulation format changes in primitive content, signaling, and the corresponding relation of primitive and signaling is upgraded.
17. equipment as claimed in claim 10 is characterized in that, described equipment also comprises:
Logging modle is used for process record with primitive and Signalling exchange to the text type daily record, and after the reciprocal process of primitive and signaling finishes, the daily record of output text type.
CN 201010588181 2010-12-14 2010-12-14 Testing method and equipment Active CN102036269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010588181 CN102036269B (en) 2010-12-14 2010-12-14 Testing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010588181 CN102036269B (en) 2010-12-14 2010-12-14 Testing method and equipment

Publications (2)

Publication Number Publication Date
CN102036269A CN102036269A (en) 2011-04-27
CN102036269B true CN102036269B (en) 2013-11-06

Family

ID=43888426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010588181 Active CN102036269B (en) 2010-12-14 2010-12-14 Testing method and equipment

Country Status (1)

Country Link
CN (1) CN102036269B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8874477B2 (en) 2005-10-04 2014-10-28 Steven Mark Hoffberg Multifactorial optimization system and method
CN103984555B (en) * 2014-05-29 2017-03-15 四川航天系统工程研究所 A kind of tree table is combined and drives Windows/Linux platform communications protocol source profiles methods

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819533A (en) * 2006-03-20 2006-08-16 北京星河亮点通信软件有限责任公司 Construction of protocol testing platform for supporting TD SCDMA terminal protocol
WO2007044383A2 (en) * 2005-10-04 2007-04-19 Hoffberg Steven M Multifactorial optimization system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007044383A2 (en) * 2005-10-04 2007-04-19 Hoffberg Steven M Multifactorial optimization system and method
CN1819533A (en) * 2006-03-20 2006-08-16 北京星河亮点通信软件有限责任公司 Construction of protocol testing platform for supporting TD SCDMA terminal protocol

Also Published As

Publication number Publication date
CN102036269A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
Rouil et al. Implementation and Validation of an LTE D2D Model for ns-3
CN1792111B (en) Method and apparatus for holding P2P communication in TDD CDMA communication system
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN102006151B (en) Method and apparatus for performing buffer status reporting
CN104301173A (en) Methods, test systems and arrangements for verifying compliance with requirement specifications
CN104661254B (en) LTE-A terminal mac layer carrier aggregation conformance test method and device
CN107493608A (en) A kind of method and apparatus for carrying out Stochastic accessing
CN107852669B (en) Method and system for MTC service management using VNF
CN106454806A (en) Method and device for data transmission
Han et al. Grouping-based random access collision control for massive machine-type communication
CN104126324B (en) Wireless access point control method and relevant device, system
CN104254066B (en) Status information transmitting, deactivated method, site apparatus and terminal device
CN102143533B (en) Methods and equipment for reporting information generated in random access process and determining parameters
CN101715204A (en) Consistency testing device and method of mobile terminal
CN102036269B (en) Testing method and equipment
CN100546261C (en) The method and system of Wireless LAN testing
CN113938402A (en) Power line and wireless based dual-mode test system and method
CN105025593A (en) Entity release method and equipment
CN102769831A (en) Base station and uplink transmission method thereof
CN102917386B (en) Device and method for consistency protocol verification of interfaces S1 of LTE (Long Term Evolution) wireless network
CN105916204B (en) A kind of resource allocation methods, radio network controller and base station
EP3531739B1 (en) Testing the resource reservation behavior of at least a first device under test in an emulated device-to-device network environment
CN104620656A (en) Methods and apparatuses for facilitating the use of multiple transmission time intervals in a mobile communication network
CN104125622A (en) Configuration method of access system, equipment and system
CN102340813B (en) Method and device for creating test environment of base station in high-load operation state

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant