CN103457996B - A kind of Protocol Conformance Test System internal data store method and system - Google Patents
A kind of Protocol Conformance Test System internal data store method and system Download PDFInfo
- Publication number
- CN103457996B CN103457996B CN201310244063.7A CN201310244063A CN103457996B CN 103457996 B CN103457996 B CN 103457996B CN 201310244063 A CN201310244063 A CN 201310244063A CN 103457996 B CN103457996 B CN 103457996B
- Authority
- CN
- China
- Prior art keywords
- data
- copy
- module
- making
- case
- 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
Links
Abstract
The present invention discloses a kind of Protocol Conformance Test System internal data store method, the method utilize data memory module to data make a copy for module initiate the request of making a copy for, and then trigger data module of making a copy for makes a copy for after the data encapsulation produced in protocol stack emulation module data memory module, and under being stored in specified path using the use-case currently performed as filename. This method is relative to directly storing data in internal memory and then write on hard disk, can effectively prevent the situation causing internal memory to overflow because data volume is too big, the situation causing data not to be saved because of unexpected power-off when use-case also can be prevented to run, storage mode in units of single use-case facilitates developer to observe the implementation status of use-case, correct station-keeping system internal error and repair system leak, thus ensure stability and the accuracy of system.
Description
Technical field
The present invention relates to terminal Protocol Conformance Test System, refer more particularly to process and the storage means of the inner data of a kind of TD-LTE terminal Protocol Conformance Test System.
Background technology
TD-LTE network pilot is built in the success of China, accelerates the commercialization paces of TD-LTE, it is believed that TD-LTE can realize commercialization in the near future. At present, the company comprising Qualcomm, Infineon, LG, Samsung, ST-Ericsson, 4MWireless etc. declares to be about to release LTE terminal equipment platform, therefore, guarantee that the TD-LTE terminal (chip) of each company can realize interconnecting after networking, with regard to uniformity test must be carried out before terminal comes into the market, so the exploitation of TD-LTE terminal Protocol Conformance Test System seems particularly important.
TD-LTE terminal Protocol Conformance Test System is mainly divided into two parts: master control module and protocol stack emulation module. Master control module mainly provides man-machine interaction interface, completes use-case management and TTCN script codec functions. Protocol stack emulation module mainly completes the simulation of higher layer protocol entities and the scheduling function of higher-layer protocols. In TD-LTE terminal Protocol Conformance Test System operational process, protocol stack module can produce a large amount of configuration primitive and air protocol signaling data, these data objectively reflect internal system event and trigger and system operation situation, and protocol stack emulation module operation conditions and station-keeping system internal error and leak have extremely important effect to monitoring therefore to obtain these data.
Existing terminal Protocol Conformance Test System preserves the mode of protocol stack module data: when use-case performs, the deposit data first protocol stack module produced is in buffer memory district, after use-case is all finished, then by certain file under the data write hard disk specified path in buffer memory district. The shortcoming of this kind of mode has: when the data volume that (1) execution use-case produces is too big, system there will be the phenomenon collapsed because of cache overflow. (2) result last when multiple use-case performs simultaneously is all kept in same LOG file, therefore the data that cannot distinguish record in LOG by which use-case are produced, cause developer to want just must perform separately the LOG file to obtain each use-case in units of use-case during the LOG analyzing multiple use-case, and such operation is very loaded down with trivial details and not intelligence. (3) owing to all primitive data, space interface signaling data and relevant printing information all are saved by LOG file, so when research staff need to pay close attention to certain primitive, air protocol signaling or printing information that certain is important just needs find one by one in this LOG file, operate and seem that comparison is loaded down with trivial details. (4) when use-case performs, if the LOG file in unexpected power-off buffer memory district just cannot preserve, difficulty is brought to pressure test. Owing to pressure test needs the execution use-case of one to two day Time Continuous usually, midway power-off will cause LOG file to preserve. Therefore, be there is many leaks by existing system in the processing mode of inner data, and storage mode is non intelligent, causes research staff that the search efficiency of inner data is lower.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of date storage method, overcomes existing system stability when data store low, and stores non intelligent problem.
For solving the problems of the technologies described above, the present invention provides a kind of date storage method, and the method comprises:
The master control module of Protocol Conformance Test System adds data memory module, protocol emulation module adds data and makes a copy for module. When completing Protocol Conformance Test System operation by these two modules, inner data making a copy for and preserving.
Described data memory module initiates, to data module of making a copy for, the request of making a copy for, and informs that data module data of making a copy for is made a copy for port and the required type of message made a copy for.
Described data make a copy for module after receiving the logging request that data memory module sends, and the printing Information encapsulation that the data generated in protocol stack emulation module operational process add with developer is become the form specified, and the port specified to data memory module is made a copy for.
Data memory module obtains data from the port specified and makes a copy for the data that module makes a copy for, and be kept in record (record) data file under master control module specified path, simultaneously, data memory module terminates mark and use-case information according to use-case, is numbered filename with use-case and generates separately record file.
Described data memory module is divided into storage interactive module and storage control module. Described data module of making a copy for is divided into interactive module of making a copy for, control module of making a copy for, data encapsulation module and module of making a copy for.
Described storage interactive module and interactive module of making a copy for complete data memory module and data are made a copy for the mutual of module. Store interactive module by data make a copy for interactive module send logging request, the data type of required acquisition message, the information notification data such as port of making a copy for are made a copy for module, type (as: the primitive type of port numbers with data of making a copy for of making a copy for of module of making a copy for control data, debugging information etc.), the request that data store interactive module is then replied by interactive module of making a copy for.
Described control module of making a copy for selects the data needing to make a copy for according to the type of message of data storage interactive module application. Raw data is encapsulated as the data layout of regulation by data encapsulation module as required. Module of making a copy for then is responsible for making a copy for the data after having encapsulated the port that data memory module is specified.
Described data storage control module storage control module is responsible for obtaining data from appointment port, is write in the record file under specified path, wherein record file create in units of use-case and using the use-case name that currently performs as filename.
Described making a copy for data memory module appointment port comprises further: when use-case starts to perform, data memory module obtains the use-case name performing use-case master control module, under hard disk specified path, create data store collected works, after use-case performs, data module of making a copy for opens the switch of making a copy for of corresponding type of message, encapsulate after adding message head to needing the message made a copy for, then toward specifying port to make a copy for; Data storage control module analysis receives the message head of message, if form meets, is write data and stores in collected works, continue to monitor this appointment port. After use-case is complete, data storage control module obtains use-case from master control module and performs end information and the use-case name of next use-case, storage control module is closed use-case name data and is stored collected works, and the use-case name data creating next use-case store collected works, continue to monitor above-mentioned appointment port, and the use-case name data of next for the write of qualified data use-case are stored in collected works.
The present invention also proposes a kind of Protocol Conformance Test System internal data store system, comprise: master control module, data memory module, data are made a copy for module, wherein, data memory module comprises file storage control module and stores interactive module, data make a copy for that module comprises interactive module of making a copy for, control module of making a copy for, data encapsulation module and module of making a copy for, data memory module initiates, to data module of making a copy for, the request of making a copy for, and informs that data are made a copy for port and the required type of message made a copy for; Data make a copy for module after receiving the logging request that data memory module sends, and the printing Information encapsulation that the data generated in protocol stack emulation module operational process add with developer is become the form specified, and specify port to make a copy for data memory module; Data memory module obtains data from appointment port, and is kept in the record record data file under master control module specified path, and data memory module terminates mark and use-case information according to use-case, generates record file using use-case numbering as filename.
The present invention by data in units of use-case directly stored in hard disk, avoid the cache overflow caused because data volume is too big, the mode that simultaneously this kind stores data in units of use-case provides greater flexibility to research staff so that the storage of the inner data of agreement consistence is more intelligent. Overcome the problem cannot located when prior art abnormal conditions occurs in terminal consistency test process, for the treatment of with storage system operational process in inner generate parameter, triggering event, and agreement data produced.
Accompanying drawing explanation
Fig. 1 is data processing of the present invention and stores integral module block diagram;
Fig. 2 is that the present invention stores interactive module and the interactive module interaction flow figure that makes a copy for;
Fig. 3 is data memory module of the present invention process overview flow chart;
Fig. 4 is that data of the present invention are made a copy for module data process flow block diagram.
Embodiment
In order to embody the technical scheme of the present invention further in detail, implement object and technological merit; below in conjunction with the accompanying drawing of the present invention; embodiment of the present invention and operating process are carried out more detailed, complete description, but protection scope of the present invention is not limited to following embodiment.
The present invention is directed to existing terminal consistency test system when performing multiple use-case continuously, the inner data produced are all stored in same file, required type of message can not be selected as required to store, cause stored in a large amount of redundancy messages, owing to data first write stored in buffer memory, fixed disk file occurring, the internal memory caused too greatly because of data volume overflows simultaneously again, make system crash the most at last. The present invention proposes a kind of new storage mode, in the text that the data produced during system cloud gray model are stored in units of use-case on hard disk under specified path, and data can be selected to preserve according to the demand of research staff, achieve and store intellectuality, prevent cache overflow, ensure that system stability.
Fig. 1 is the integral module schema of the present invention, the data memory module wherein embedded in master control module comprises file storage control module and stores interactive module, and the data embedding protocol stack emulation module make a copy for that module comprises interactive module of making a copy for, control module of making a copy for, data encapsulation module and module of making a copy for. Master control module in Protocol Conformance Test System comprises data memory module, comprises data in protocol emulation module and makes a copy for module, and data memory module initiates, to data module of making a copy for, the request of making a copy for, and informs that data are made a copy for port and the required type of message made a copy for; Data make a copy for module after receiving the logging request that data memory module sends, and the printing Information encapsulation that the data generated in protocol stack emulation module operational process add with developer is become the form specified, and specify port to make a copy for data memory module; Data memory module obtains data from appointment port, and is kept in the record record data file under master control module specified path, and data memory module terminates mark and use-case information according to use-case, generates record file using use-case numbering as filename.
Being illustrated in figure 2 the present invention and store interactive module and the interactive module interaction flow figure that makes a copy for, data store interactive module and storage interactive module of making a copy for determines transmission end slogan, the type of message of making a copy for needed for selection.
(1) before system performs use-case, interactive module of making a copy for is in monitoring state, monitors port (the being assumed to 5000 ports herein) information bound in advance.
(2) data store interactive module by 5000 ports to interactive module initiation logging request of making a copy for, and carry the port numbers (being assumed to 5002 ports herein) that protocol stack data needs to make a copy in request message body.
(3) interactive module of making a copy for receives at 5000 ports after the logging request storing interactive module transmission, sends a login response to immediately storage interactive module.
(4) after receiving login response, data store interactive module and can continue to send filter request to interactive module of making a copy for.
Described filtration, the data produced when protocol emulation module being run are divided into debugging information and protocol stack data, distribute a classes of messages model separately by giving this two category information and control, as switch, this type of message of whether making a copy for. Such as 1 corresponding debugging information, 2 corresponding protocol stack data, 3 corresponding debugging information and protocol stack data, when storing interactive module and send 1, module of making a copy for will when protocol stack emulation module runs, by 5002 ports of making a copy for after debugging Information encapsulation. Described debugging information is the printing information being embedded in protocol emulation block code, the parameter of inner generation when described protocol stack data is the operation of protocol stack emulation module and data, comprise the Interaction function between each system protocol stack, space interface signaling information, perform use-case trigger event information etc.
(5) after receiving filter request, interactive module of making a copy for record needed for make a copy for the type number of data.
When use-case starts to perform, data memory module creates data with use-case filename by name under hard disk specified path and stores collected works, and the data produced in protocol stack emulation module operational process are encapsulated and make a copy for by data module in charge of making a copy for.
As shown in Figure 3, when use-case starts to perform, data memory module obtains the use-case name (as: 7.1.1.1) performing use-case master control module, creates use-case name data (such as D: test) and store collected works (7.1.1.1.txt) under hard disk specified path. After use-case performs, data make a copy for module according to the switch of interactive module preservation of making a copy for, open the switch of making a copy for of corresponding type of message, and according to specifying form to encapsulate after needing the message made a copy for add message head, then make a copy for toward corresponding port (as specified 5002 ports). Data make a copy for module data treatment scheme as shown in Figure 4.
Data storage control module is monitored and is specified port, writes from the data specifying port to obtain in the file created. Data storage control module monitors 5002 ports, analyzes the message head receiving message, just abandons if form does not meet, otherwise is write use-case name data and store in collected works 7.1.1.1.txt file, then continues to monitor 5002 ports.
After current use-case performs, data storage control module obtains use-case to master control module to be terminated information and is about to the use-case name of execution. After use-case is complete, data storage control module obtains use-case from master control module and performs end information and the use-case name (such as 8.1.1.1) of next use-case, now storage control module closes 7.1.1.1.txt, and the use-case name data creating next use-case under D: test path store collected works 8.1.1.1.txt, continue to monitor above-mentioned appointment port 5002 port and qualified data are write in 8.1.1.1.txt file.
After all use-cases are complete, data make a copy for module stop make a copy for, data memory module stop write data.
After all use-cases are complete, data make a copy for module stop make a copy for, data store interactive module log off. Now, D: save the partial data of protocol stack module parameter when use-case performs in text.
The present embodiment by data in units of use-case directly stored in, in hard disk, avoiding the cache overflow caused because data volume is too big.
Claims (7)
1. a Protocol Conformance Test System internal data store method, it is characterized in that, the master control module of Protocol Conformance Test System adds data memory module, protocol emulation module adds data make a copy for module, described data memory module initiates logging request to data module of making a copy for, and informs that data are made a copy for port and the required type of message made a copy for; Described data make a copy for module after receiving the logging request that data memory module sends, and the printing Information encapsulation that the data generated in protocol stack emulation module operational process add with developer is become the form specified, and specify port to make a copy for data memory module; Data memory module obtains data from appointment port, and is kept in the record record data file under master control module specified path, and data memory module terminates mark and use-case information according to use-case, generates record file using use-case numbering as filename.
2. date storage method according to claim 1, it is characterized in that, data memory module comprises storage interactive module, data module of making a copy for comprises interactive module of making a copy for, store interactive module by sending logging request to interactive module of making a copy for, required acquisition message data type, port information notification data of making a copy for being made a copy for module, make a copy for port numbers and the data type of making a copy for of module of making a copy for control data, the request storing interactive module is then replied by interactive module of making a copy for.
3. date storage method according to claim 1, it is characterized in that, data module of making a copy for is selected to need the data made a copy for by storing the type of message of interactive module application, the data layout that raw data is encapsulated as regulation, the data after having encapsulated are made a copy for the port that data memory module is specified by module in charge of making a copy for.
4. date storage method according to claim 1, it is characterized in that, described making a copy for data memory module appointment port comprises further: when use-case starts to perform, data memory module obtains the use-case name performing use-case master control module, creating data under hard disk specified path and store collected works, after use-case performs, data module of making a copy for opens the switch of making a copy for of corresponding type of message, encapsulate after adding message head to needing the message made a copy for, then toward specifying port to make a copy for; File storage control module analysis receives the message head of message, if form meets, the use-case name data being write use-case store in collected works, continue to monitor this appointment port; After use-case is complete, file storage control module obtains use-case from master control module and performs end information and the use-case name of next use-case, file storage control module is closed use-case name data and is stored collected works, and the use-case name data creating next use-case store collected works, continue to monitor above-mentioned appointment port, and the use-case name data of next for the write of qualified data use-case are stored in collected works.
5. a Protocol Conformance Test System internal data store system, it is characterized in that, comprise: master control module, data memory module, data are made a copy for module, wherein, data memory module comprises file storage control module and stores interactive module, data make a copy for that module comprises interactive module of making a copy for, control module of making a copy for, data encapsulation module and module of making a copy for, and data memory module initiates logging request to data module of making a copy for, and inform that data are made a copy for port and the required type of message made a copy for; Data make a copy for module after receiving the logging request that data memory module sends, and the printing Information encapsulation that the data generated in protocol stack emulation module operational process add with developer is become the form specified, and specify port to make a copy for data memory module; Data memory module obtains data from appointment port, and is kept in the record record data file under master control module specified path, and data memory module terminates mark and use-case information according to use-case, generates record file using use-case numbering as filename.
6. system according to claim 5, it is characterized in that, store interactive module by sending logging request to interactive module of making a copy for, required acquisition message data type, port information notification data of making a copy for are made a copy for module, make a copy for port numbers and the data type of making a copy for of module of making a copy for control data, the request storing interactive module is then replied by interactive module of making a copy for.
7. system according to claim 5, it is characterized in that, data module of making a copy for is selected to need the data made a copy for by storing the type of message of interactive module application, the data layout that raw data is encapsulated as regulation, the data after having encapsulated are made a copy for the port that data memory module is specified by module in charge of making a copy for.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310244063.7A CN103457996B (en) | 2013-06-19 | 2013-06-19 | A kind of Protocol Conformance Test System internal data store method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310244063.7A CN103457996B (en) | 2013-06-19 | 2013-06-19 | A kind of Protocol Conformance Test System internal data store method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103457996A CN103457996A (en) | 2013-12-18 |
CN103457996B true CN103457996B (en) | 2016-06-01 |
Family
ID=49739939
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310244063.7A Active CN103457996B (en) | 2013-06-19 | 2013-06-19 | A kind of Protocol Conformance Test System internal data store method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103457996B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106919454B (en) * | 2017-01-25 | 2020-02-21 | 安科讯(福建)科技有限公司 | Memory pool problem positioning method and system based on LTE protocol stack |
CN109117356B (en) * | 2017-06-22 | 2020-11-13 | 大唐移动通信设备有限公司 | Method and device for displaying test result of human-computer interaction script |
CN112988036A (en) * | 2019-12-16 | 2021-06-18 | 瑞昱半导体股份有限公司 | Memory data access device and method thereof |
CN111431770B (en) * | 2020-04-03 | 2021-12-07 | 宁波艾欧迪互联科技有限公司 | Terminal protocol consistency test system and method for 5G communication |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527509A (en) * | 2003-03-06 | 2004-09-08 | 华为技术有限公司 | Test method |
CN101277272A (en) * | 2008-05-16 | 2008-10-01 | 北京航空航天大学 | Method for implementing magnanimity broadcast data warehouse-in |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE602005006170T2 (en) * | 2004-02-19 | 2009-06-18 | Samsung Electronics Co., Ltd., Suwon | Method to control idle disk drives and apparatus therefor |
-
2013
- 2013-06-19 CN CN201310244063.7A patent/CN103457996B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1527509A (en) * | 2003-03-06 | 2004-09-08 | 华为技术有限公司 | Test method |
CN101277272A (en) * | 2008-05-16 | 2008-10-01 | 北京航空航天大学 | Method for implementing magnanimity broadcast data warehouse-in |
Also Published As
Publication number | Publication date |
---|---|
CN103457996A (en) | 2013-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103457996B (en) | A kind of Protocol Conformance Test System internal data store method and system | |
CN103646104A (en) | Hard real-time fault diagnosis method and system | |
CN108306804A (en) | A kind of Ethercat main station controllers and its communication means and system | |
CN109559583A (en) | Failure simulation method and its device | |
CN110138876B (en) | Task deployment method, device, equipment and platform | |
CN102594618A (en) | Method and device for realizing storage device test of storage area network (SAN) | |
CN105052076B (en) | Network element management system and network element management method based on cloud computing | |
CN109213132A (en) | A kind of method, device and equipment that UDS diagnostic interface software generates | |
CN111881014B (en) | System test method, device, storage medium and electronic equipment | |
CN111767031A (en) | Nuclear power industry internet experiment bed based on emulation | |
CN107819611B (en) | Client test method based on IEC61850 multi-server simulation | |
CN107247648A (en) | Method, the apparatus and system of remote items system supervisory are realized based on Docker | |
CN106549807A (en) | A kind of classification report method of daily record and system | |
CN113028603A (en) | Equipment monitoring system applied to central air-conditioning system | |
CN107943732B (en) | 1553B bus module realized based on domestic FPGA device | |
CN105379192A (en) | Hardware management communication protocol | |
CN101324843A (en) | Object model of general-purpose gateway design | |
EP2908498B1 (en) | Integrated application generating system and method for internet of things terminal | |
CN105262604A (en) | Virtual machine migration method and equipment | |
CN103684917A (en) | Multi-target-machine system monitoring system and method | |
CN103500140A (en) | Method for rapidly learning invalidation of distributed cluster nodes | |
CN113595817A (en) | LIN communication fault injection method, system and storage medium | |
CN110941254A (en) | Aeroengine data processing method and equipment | |
CN115237101A (en) | Debugging method and intelligent debugging device for motor train unit and debugging system for motor train unit | |
CN108874456A (en) | A kind of generation method of server software, device, equipment and storage medium |
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 |