CN102487526A - Protocol conformance test method and system thereof - Google Patents

Protocol conformance test method and system thereof Download PDF

Info

Publication number
CN102487526A
CN102487526A CN2010105740502A CN201010574050A CN102487526A CN 102487526 A CN102487526 A CN 102487526A CN 2010105740502 A CN2010105740502 A CN 2010105740502A CN 201010574050 A CN201010574050 A CN 201010574050A CN 102487526 A CN102487526 A CN 102487526A
Authority
CN
China
Prior art keywords
test
subsystem
module
nbap
message
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.)
Granted
Application number
CN2010105740502A
Other languages
Chinese (zh)
Other versions
CN102487526B (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.)
TD Tech Ltd
Original Assignee
TD Tech 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 TD Tech Ltd filed Critical TD Tech Ltd
Priority to CN201010574050.2A priority Critical patent/CN102487526B/en
Publication of CN102487526A publication Critical patent/CN102487526A/en
Application granted granted Critical
Publication of CN102487526B publication Critical patent/CN102487526B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a protocol conformance test method and a system thereof. The method comprises the following steps that: a script engine module in a PC subsystem executes a preset test script statement as well as a control instruction is sent to a message processing module in the PC subsystem according to the test script statement; the message processing module invokes a corresponded NodeB application part (NBAP) test message in a message pool module according to the control instruction; the PC subsystem sends the NBAP test message to an embedded subsystem; the embedded subsystem sends the NBAP test message to user equipment through a base station; after the embedded subsystem receives a test response from the user equipment through the base station, the test response is sent to the PC subsystem; and the message processing module in the PC subsystem converts the test response into semaphore that is sent to the script engine module. According to the invention, a test requirement on an NBAP layer protocol during the conformance testing can be met.

Description

Protocol conformance test method and system
Technical field
The present invention relates to a kind of protocol conformance test method and system, belong to mobile phone protocol test technical field.
Background technology
In the existing mobile phone testing protocol consistency demand; A lot of base station application parts (NodeBApplication Part is arranged; Be called for short: the NBAP) associative operation of layer protocol; The implementation of test of the prior art mainly comprises: and 1, use test and test control expression (Testing and TestControl Notation, be called for short: TTCN) method realizes; 2, (Radio Network Controller is called for short: RNC) realize to use real radio network controller; The use test instrument realizes like the test instrumentation of Agilent company.
Yet existing above-mentioned test implementation can't satisfy in the uniformity test test request to the NBAP layer protocol.
Summary of the invention
The present invention provides a kind of protocol conformance test method and system, in order to satisfy in the uniformity test test request to the NBAP layer protocol.
One aspect of the present invention provides a kind of protocol conformance test method, comprising:
Script engine module in the PC subsystem is carried out preset test script statement, and according to the message processing module sending controling instruction of this test script statement in said PC subsystem;
Said message processing module calls corresponding N BAP test post according to said control command from the message pool module;
Said PC subsystem sends to embedded subsystem with said NBAP test post;
Said embedded subsystem sends to subscriber equipment with said NBAP test post through the base station;
After said embedded subsystem receives the test response that comes from said subscriber equipment through said base station, this test response is sent to said PC subsystem;
Message processing module in the said PC subsystem converts said test response into semaphore and sends to said script engine module.
The present invention provides a kind of Protocol Conformance Test System on the other hand, comprising PC subsystem and embedded subsystem, wherein:
Said PC subsystem comprises:
Subscriber Interface Module SIM is used to supply the tester to edit the NBAP test post;
The message pool module is used to preserve the NBAP test post that is obtained after through said Subscriber Interface Module SIM editor by the tester;
The script engine module is used to carry out preset test script statement, and sends control command according to this test script statement;
Message processing module; The said control command that is used for sending according to the script engine module is called corresponding N BAP test post from said message pool module and is sent to said embedded subsystem, and the test response that will come from said embedded subsystem converts semaphore into and sends to said script engine module;
Embedded subsystem comprises: atm module be used for said NBAP test post is sent to subscriber equipment through the base station, and the test response that will come from this subscriber equipment sends to said PC subsystem
The method of the invention and system use PC end procedure script to come Node B and the reciprocal process between the RNC in the simulation true environment, are easy to the test case of realizing that some are unusual or special, thereby satisfy in the uniformity test test request to the NBAP layer protocol.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural representation of Protocol Conformance Test System according to the invention;
Fig. 2 is the flow chart of protocol conformance test method embodiment according to the invention;
Fig. 3 is the structural representation of script engine 13 shown in Figure 1;
Fig. 4 is the structural representation of adaptation module 23 shown in Figure 1;
Fig. 5 is for to set up the process signaling diagram based on the sub-district of the said method of the embodiment of the invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is the structural representation of Protocol Conformance Test System according to the invention, and is as shown in the figure, and this system comprises: PC subsystem 10 and embedded subsystem 20.At least comprise in the wherein said PC subsystem 10: Subscriber Interface Module SIM 11, message pool module 12, script engine module 13 and message processing module 14; Said embedded subsystem 20 comprises atm module 21 at least.Below, introduce the course of work of the said system of embodiment through method shown in Figure 2.
Fig. 2 is the flow chart of protocol conformance test method embodiment according to the invention, and is as shown in the figure, comprises the steps:
Step 101, the script engine module 13 in the PC subsystem 10 is carried out preset test script statement, and according to message processing module 14 sending controling instructions of this test script statement in said PC subsystem 10.
Wherein, include the NBAP test post that tester's decision will issue in the said test script statement.Particularly; Said script engine module 13 main script engine (Script Engine) functions that realize; Said script engine is a kind of script language interpreter, can be embedded in the PC end program, carries out alternately through mode and the main program that calls call back function and preset signals amount.Particularly, the said script engine of present embodiment can tool using command lanuage (Tool Command Language, abbreviation: TCL) as script.TCL be a kind of be the powerful dynamic programming language learnt of being easy to again, be applicable to comprise webpage and desktop application network, extensive fields such as management and test.
As shown in Figure 3, this script engine module 13 for example can be divided into following two parts:
General (General) part: be used to provide the public function and the process of test script, for example timer and signaling etc.Even these functions be independent of operating system and do not receive yet under the test of appointment application (Implementation Under Test, be called for short: restriction IUT), use these public functional test flow processs in test script, to define.
Specific (Specific) part: be used to the function and the flow process that provide special, these functions and flow process and operating system and IUT, especially protocol stack is closely related.Use these special functions, test script can call the protocol procedures of NBAP.Use script that the execution of test automation and test case is more prone to.This part is as the interface of NBAP protocol layer with testing procedure that script is write, and it translates into agreement implementation language with script, and like C/C++, vice versa, thereby can the function or the process of agreement be mapped to script function.
Step 102, said message processing module 14 calls corresponding N BAP test post according to said control command from message pool module 12.
Wherein, said message pool module 12 is used to preserve the NBAP test post that is obtained after through said Subscriber Interface Module SIM 11 editors by the tester.Because the major function of script engine module 13 is control testing processs; And its data organization disposal ability is very limited; And the structure of many NBAP test posts is formed very complicacy by a lot of I E; Therefore adopting message pool module 12 to store the NBAP test post that will use in advance can be ready in advance, supplies message processing module 14 to transfer.When with protocol procedures of script calls, the sign that only need give information is just passable, does not need whole message contents like this.Message processing module 14 can use the NBAP test post by the unique identification indication to remove to trigger the communication process with other protocol layers.
Wherein, said Subscriber Interface Module SIM 11 is used to supply the tester to edit the NBAP test post.Specifically can comprise user interface (User Interface; Be called for short: UI) and message editor procedure (Message Editor); The tester can carry out man-machine interaction through UI and PC subsystem 10, and generates the NBAP test post through the message editor procedure editor and be saved in the message pool module 12.Because the code of all the NBAP test posts relevant with NBAP is all realized in testing tool, so the tester only needs to write test script and use above-mentioned message editor procedure can realize writing message library with TCL in test.
In addition, in order to save internal memory and disk space, all NBAP test posts are saved in the message pool module 12 after all having passed through coding.
In addition, because the NBAP test post of preserving in the message pool module 12 is merely some general NBAP test posts usually, and, need to revise the key parameter of these general NBAP test posts to some concrete Test Application.Particularly, in this step, can revise the key parameter of the said NBAP test post call according to the function input parameter in the said control command by message processing module 14, therefore very convenient.
In practical application, message processing module 14 can adopt following several thread:
Protocol module thread (Protocol_main ()): register each protocol module; As: Radio Resource control (Radio Resource Control; Be called for short: RRC) module, non-access network layer (Non AccessStratum, be called for short: NAS) module and NBAP module etc. let protocol module circular flow; Be responsible for the distribution (but not comprising script engine module 13) of message, message processing module 14 is notified script engine module 13 through semaphore.
Script active thread (Script_main ()): when needs send corresponding downstream message, the call back function of the downstream message through message processing module 14 registrations, and call the corresponding call back function of this message with script engine module 13.
Step 103, said PC subsystem 10 sends to embedded subsystem 20 with said NBAP test post.
Particularly; Before sending; Can the said NBAP test post that call is encoded, and then the said NBAP test post after will encoding send to embedded subsystem 20 earlier by the communication standard of the coding/decoding module 15 in the said PC subsystem 10 according to subscriber equipment (UE).
In addition; Can also comprise PC distribution module 16 in the said PC subsystem 10; Can also comprise central control board (Central Control Board in the said embedded subsystem 20; Be called for short: CCB) distribution module 22, through said PC distribution module 16 and said CCB distribution module 22 mutual said NBAP test posts.Specifically can adopt socket (Socket) mechanism to accomplish interacting message.
Step 104, said embedded subsystem sends to subscriber equipment with said NBAP test post through the base station.
Particularly, this embedded subsystem 20 can (Node B) sends to subscriber equipment through the base station with said NBAP test post through atm module 21.
Step 105 after said embedded subsystem 20 receives the test response that comes from said subscriber equipment through said base station, sends to said PC subsystem 10 with this test response.
Particularly, this embedded subsystem 20 can send to said PC subsystem 10 through the test response that atm module 21 will come from this subscriber equipment, and through said PC distribution module 16 and said CCB distribution module 22 mutual said response messages.
Particularly, after the PC subsystem receives this test response, can also decode by 15 pairs of said test responses of the coding/decoding module in the said PC subsystem, so that message processing module 14 can carry out handled to it.
Step 106, the message processing module 14 in the said PC subsystem converts said test response into semaphore and sends to said script engine module 13.
Wherein, said semaphore (Signal) is appreciated that to triggering.
In addition; As shown in Figure 1; Can also comprise adaptation module 23 in the said embedded subsystem 20, be used for the NBAP test post that comes from said CCB distribution module 22 is packaged into the ATM form, make atm module 21 carry out processing and transmitting and give subscriber equipment the NBAP test post; And this adaptation module 23 can also be used for the response message that comes from said atm module 21 is packaged into the NBAP form again, so that message processing module 14 can carry out dissection process to this response message.In addition, this adaptation module 23 can also be used for setting up and release ATM protocol signaling ATM Adaptation Layer (Signaling ATMAdaptation Layer, abbreviation: SAAL) link (Link).Wherein, said SAAL link is used to carry the transmission of NBAP signaling.
Particularly, as shown in Figure 4, this adaptation module 23 can comprise: and service-user (Sever User, be called for short: SU) Dispatching Unit is used for receiving that message transmits; The SU-NBAP adaptation unit is used for NBAP test post and response message are carried out adaptive, guarantees that these message can be resolved by correlation module; The SU-ATM-SAAL adaptation unit is used for the adaptive of ATM-SAAL configuration messages, and the SAAL-Link of ATM layer is configured.Message such as the foundation of the sub-district in NBAP test post request/response in addition,, Common transport channel foundation request/response can be through adaptation module 23 transmission.In Fig. 4, dotted arrow is represented the transmission path of NBAP test post; Solid arrow is represented the transmission path of ATM-SAAL configuration messages.
In addition; As shown in Figure 1; Can also comprise in the said embedded subsystem 20 Frame Protocol (FrameProtocol, be called for short: FP) module 24, are used for the channel reallocation message and the cell re-configuration message of the NBAP test post that comes from said CCB distribution module 22 are configured; Thereby accomplish the user plane data transfer function of stipulating in the Iub agreement, specifying can be with reference to the FP agreement in the 3GPP agreement.
The said method and system of present embodiment uses PC end procedure script to come Node B and the reciprocal process between the RNC in the simulation true environment, is easy to the test case of realizing that some are unusual or special, thereby satisfies in the uniformity test test request to the NBAP layer protocol.
Referring to Fig. 5, be that process is set up in the sub-district that example describes under the control of script engine module 13 with the NBAP connection building process:
1-1, resource status indication (Resource StatusIndication) information that message processing module 14 wait base stations report;
1-2, request (CellSetup Request) is set up in script engine module 13 control messages processing modules 14 transmission sub-districts;
1-3, script engine module 13 is waited for from the sub-district of base station and is set up response (Cell SetupResponse);
1-4; Script engine module 13 is sent forward access channel (Forward AccessChannel to the base station; Be called for short: FACH) with PCH (Paging Channel, be called for short: Common transport channel PCH) (Commom Transport Channel) is set up and is asked (Setup Request);
1-5, the PCH of script engine module 13 wait base stations and the Common transport channel of FACH are set up response;
1-6 script engine module 13 is sent RACH to the base station, and (Random Access Channel is called for short: Common transport channel foundation request RACH);
1-7 script engine module 13 is waited for the Common transport channel foundation response of the RACH of NodeB.
The 1-8 sub-district is set up and is finished.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (9)

1. a protocol conformance test method is characterized in that, comprising:
Script engine module in the PC subsystem is carried out preset test script statement, and according to the message processing module sending controling instruction of this test script statement in said PC subsystem;
Said message processing module calls corresponding N BAP test post according to said control command from the message pool module;
Said PC subsystem sends to embedded subsystem with said NBAP test post;
Said embedded subsystem sends to subscriber equipment with said NBAP test post through the base station;
After said embedded subsystem receives the test response that comes from said subscriber equipment through said base station, this test response is sent to said PC subsystem;
Message processing module in the said PC subsystem converts said test response into semaphore and sends to said script engine module.
2. protocol conformance test method according to claim 1; It is characterized in that said message processing module also comprises after from the message pool module, calling corresponding N BAP test post according to said control command: the key parameter of revising the said NBAP test post that calls according to the function input parameter in the said control command.
3. protocol conformance test method according to claim 1; It is characterized in that said PC distribution module also comprises before said NBAP test post is sent to embedded subsystem: by the coding/decoding module in the said PC subsystem the said NBAP test post that calls is encoded.
4. protocol conformance test method according to claim 1 is characterized in that, said this test response is sent to also comprises after the said PC subsystem: the coding/decoding module by in the said PC subsystem is decoded to said test response.
5. a Protocol Conformance Test System is characterized in that, comprises PC subsystem and embedded subsystem, wherein:
Said PC subsystem comprises:
Subscriber Interface Module SIM is used to supply the tester to edit the NBAP test post;
The message pool module is used to preserve the NBAP test post that is obtained after through said Subscriber Interface Module SIM editor by the tester;
The script engine module is used to carry out preset test script statement, and sends control command according to this test script statement;
Message processing module; The said control command that is used for sending according to the script engine module is called corresponding N BAP test post from said message pool module and is sent to said embedded subsystem, and the test response that will come from said embedded subsystem converts semaphore into and sends to said script engine module;
Embedded subsystem comprises: atm module be used for said NBAP test post is sent to subscriber equipment through the base station, and the test response that will come from this subscriber equipment sends to said PC subsystem.
6. system according to claim 5; It is characterized in that; Said PC subsystem also comprises the PC distribution module, and said embedded subsystem also comprises the CCB distribution module, and said PC distribution module and said CCB distribution module are used for mutual said NBAP test post and said response message.
7. system according to claim 6; It is characterized in that; Said embedded subsystem also comprises: adaptation module be used for the NBAP test post that comes from said CCB distribution module is packaged into the ATM form, and the response message that will come from said atm module is packaged into the NBAP form.
8. system according to claim 5 is characterized in that, said PC subsystem also comprises: coding/decoding module is used for said NBAP test post is encoded, and said response message is decoded.
9. system according to claim 5 is characterized in that, said embedded subsystem also comprises: the Frame Protocol module is used for the channel reallocation message and the cell re-configuration message of the NBAP test post that comes from said CCB distribution module are configured.
CN201010574050.2A 2010-12-06 2010-12-06 Protocol conformance test method and system thereof Expired - Fee Related CN102487526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010574050.2A CN102487526B (en) 2010-12-06 2010-12-06 Protocol conformance test method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010574050.2A CN102487526B (en) 2010-12-06 2010-12-06 Protocol conformance test method and system thereof

Publications (2)

Publication Number Publication Date
CN102487526A true CN102487526A (en) 2012-06-06
CN102487526B CN102487526B (en) 2014-11-05

Family

ID=46152970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010574050.2A Expired - Fee Related CN102487526B (en) 2010-12-06 2010-12-06 Protocol conformance test method and system thereof

Country Status (1)

Country Link
CN (1) CN102487526B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631704A (en) * 2012-08-23 2014-03-12 上海斐讯数据通信技术有限公司 Automatic testing system and method of communication equipment
CN105323793A (en) * 2014-07-22 2016-02-10 普天信息技术有限公司 LTE protocol consistency test system, access method thereof and system simulator

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812348A (en) * 2005-01-25 2006-08-02 华为技术有限公司 Testing method and system
CN1819533A (en) * 2006-03-20 2006-08-16 北京星河亮点通信软件有限责任公司 Construction of protocol testing platform for supporting TD SCDMA terminal protocol
CN1878373A (en) * 2005-06-09 2006-12-13 大唐移动通信设备有限公司 Device and method for terminal consistency test in mobile communication system
CN101860882A (en) * 2010-03-25 2010-10-13 工业和信息化部电信传输研究所 Method, device and system for controlling protocol consistency test by using wireless resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812348A (en) * 2005-01-25 2006-08-02 华为技术有限公司 Testing method and system
CN1878373A (en) * 2005-06-09 2006-12-13 大唐移动通信设备有限公司 Device and method for terminal consistency test in mobile communication system
CN1819533A (en) * 2006-03-20 2006-08-16 北京星河亮点通信软件有限责任公司 Construction of protocol testing platform for supporting TD SCDMA terminal protocol
CN101860882A (en) * 2010-03-25 2010-10-13 工业和信息化部电信传输研究所 Method, device and system for controlling protocol consistency test by using wireless resources

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631704A (en) * 2012-08-23 2014-03-12 上海斐讯数据通信技术有限公司 Automatic testing system and method of communication equipment
CN105323793A (en) * 2014-07-22 2016-02-10 普天信息技术有限公司 LTE protocol consistency test system, access method thereof and system simulator
CN105323793B (en) * 2014-07-22 2018-12-25 普天信息技术有限公司 LTE protocol consistency testing system and its cut-in method, system simulator

Also Published As

Publication number Publication date
CN102487526B (en) 2014-11-05

Similar Documents

Publication Publication Date Title
US10616821B2 (en) Method for transferring information between base station and terminal, base station, terminal, and system
CN103781182A (en) Service establishing method and core network equipment
CN103188745A (en) Terminal wireless access capability reporting and switching resource allocation method, device and system
CN110941563A (en) Automatic script testing method and device
CN103368673A (en) Conformance testing adapter based on TTCN-3
CN101860882A (en) Method, device and system for controlling protocol consistency test by using wireless resources
CN103002492B (en) Communication test method and device for mobile terminal (MT)
CN101351045B (en) Method, equipment for marking terminal PRI and equipment for identifying terminal PRI
CN102487526B (en) Protocol conformance test method and system thereof
CN103178943A (en) Method, device and system for link adaption
CN108762762B (en) Session information management method, device, equipment and computer storage medium
CN102820992A (en) Processing method and device of data packets
CN105404557A (en) Interprocess communication method based on message queue
CN104936153A (en) Temporary group processing method and user equipment
CN108307286B (en) Method and system for realizing communication between android devices based on NFC
CN102204297B (en) Method and device for updating user context
CN105530140A (en) Cloud scheduling system, method and device for removing tight coupling of use case and environment
CN101820615B (en) The management method of the personal identification number under the many application of Universal Integrated Circuit Card and system
CN112448932B (en) Message processing method and device
CN103781062B (en) Remote card write-in method, device and system
CN102740248A (en) Synchronizing method and terminal device
CN102377243A (en) Collocation method of 101 protocol parameter, collocation device thereof and collocation system thereof
CN102695240A (en) Access control method and access network device
CN103260134A (en) Group calling implementation method and system in trunking communication system
CN102076056A (en) Information configuration method, system, base station and terminal in LTE-A (Advanced Long Term Evolution) technology

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141105

Termination date: 20181206