Open Access Design of a Python-Based Wireless Network Optimization and Testing System

Similar documents
Research on Design Reuse System of Parallel Indexing Cam Mechanism Based on Knowledge

Open Access Research on the Prediction Model of Material Cost Based on Data Mining

Open Access Mobile Management Method for SDN-Based Wireless Networks

Open Access Design and Development of Network Application Layer Sniffer Analysis Software. Yujiao Wang and Haiyun Lin *

RETRACTED ARTICLE. Web-Based Data Mining in System Design and Implementation. Open Access. Jianhu Gong 1* and Jianzhi Gong 2

FSRM Feedback Algorithm based on Learning Theory

Open Access Apriori Algorithm Research Based on Map-Reduce in Cloud Computing Environments

Mobile Management Method for SDN-based Wireless Networks

Open Access A New Optical Design of Worm Precision Detection Based on FPGA

Open Access Research on Algorithms of Spatial-Temporal Multi-Channel Allocation Based on the Greedy Algorithm for Wireless Mesh Network

Open Access Research on Construction of Web Computing Platform Based on FOR- TRAN Components

Design of Smart Home System Based on ZigBee Technology and R&D for Application

Open Access The Three-dimensional Coding Based on the Cone for XML Under Weaving Multi-documents

Fault Diagnosis of Wind Turbine Based on ELMD and FCM

Recent Patents on OPC for Central Air-Conditioning System

Open Access Self-Growing RBF Neural Network Approach for Semantic Image Retrieval

Research on the Improvement of the RTLAB Simulation Efficiency in DG

manufacturing process.

Construction of SSI Framework Based on MVC Software Design Model Yongchang Rena, Yongzhe Mab

An Embedded Dynamic Security Networking Technology Based on Quick Jump and Trust

Open Access The Kinematics Analysis and Configuration Optimize of Quadruped Robot. Jinrong Zhang *, Chenxi Wang and Jianhua Zhang

Open Access A Sequence List Algorithm For The Job Shop Scheduling Problem

Open Access Research on the Data Pre-Processing in the Network Abnormal Intrusion Detection

Research on monitoring technology of Iu-PS interface in WCDMA network

Numerical Simulation of Middle Thick Plate in the U-Shaped Bending Spring Back and the Change of Thickness

A New Method Of VPN Based On LSP Technology

Design of the Control System for Step Motor Based on MCU

The Design and Development of the Precision Planter Sowing Depth Control System

The Solutions to Some Key Problems of Solar Energy Output in the Belt and Road Yong-ping GAO 1,*, Li-li LIAO 2 and Yue-shun HE 3

Design of Underground Current Detection Nodes Based on ZigBee

Analyses of Subway BAS System Network Framework and IP Address Allocation Xin-hong YANG 1,* and Yuan GAO 2

An Approximate Method for Permuting Frame with Repeated Lattice Structure to Equivalent Beam

A Novel Data Mining Platform Design with Dynamic Algorithm Base

An Efficient Distributed B-tree Index Method in Cloud Computing

Research and Implementation of Software Used for the Remote Control for VM700T Video Measuring Instrument

Open Access Universal Real-time Monitoring System Based on Ethernet in Test and Measurement Domain

Construction Scheme for Cloud Platform of NSFC Information System

Serial Communication Based on LabVIEW for the Development of an ECG Monitor

Multidimensional Analysis of Distributed Data Warehouse of Antiquity Information

The Application of CAN Bus in Intelligent Substation Automation System Yuehua HUANG 1, a, Ruiyong LIU 2, b, Peipei YANG 3, C, Dongxu XIANG 4,D

Research Article Implementation of Personal Health Device Communication Protocol Applying ISO/IEEE

The Design and Implementation of Disaster Recovery in Dual-active Cloud Center

Open Access The Research of PLC and Touch Screen in the Erosion of Coating of Wind Turbine Blade

Open Access Algorithm of Context Inconsistency Elimination Based on Feedback Windowing and Evidence Theory for Smart Home

Design and Implementation of Dual-Mode Wireless Video Monitoring System

Intelligent Computer Room Management Platform Based on RF Card

The Study of Intelligent Scheduling Algorithm in the Vehicle ECU based on CAN Bus

Multimedia Big Data Frame Combination Storage Strategy Based on Virtual Space Distortion

Study on One Map Organizational Model for Land Resources Data Used in Supervision and Service

Application of Nonlinear Later TV Edition in Gigabit Ethernet. Hong Ma

PLC Simulation Control of Assembly Line

Rectangle Positioning Algorithm Simulation Based on Edge Detection and Hough Transform

Tendency Mining in Dynamic Association Rules Based on SVM Classifier

Design of Campus one-finger Service System Based on Fingerprint Identification

White paper for Blockchain Database Application Platform ChainSQL

Design of Labour Agency Platform Based on Agent Technology of JADE *

Research and Implementation of the Key Technology of UAV Aerial Image. Transmission

Table of Contents 1 AAA Overview AAA Configuration 2-1

The Comparative Study of Machine Learning Algorithms in Text Data Classification*

A Network-Based Management Information System for Animal Husbandry in Farms

Standardized Storage of Sports Data Based on XML

Open Access Image Based Virtual Dimension Compute Unified Device Architecture of Parallel Processing Technology

ZLAN9500/03 Series. User Manual

Design of Desert Plant Monitoring System Based on SI446X Wireless Radio Frequency Communication

Performance Analysis of AES Algorithm on MPC Processor

Research on Power Quality Monitoring and Analyzing System Based on Embedded Technology

On Design and Implementation of Locomotive Video Monitoring System. Haifeng Yuan, Jie Peng

The Development of Mobile Shopping System Based on Android Platform

Embedded Smart Home System Based on ZigBee Song Chi

IVT BlueSoleil TM. Software Development Kit. Version Release Note. Nov. 27 th, IVT Corporation

Open Access Research on a Multi Node Cooperate Image Compression Algorithm for Wireless Network Based on LBT Model. Li Haitao *

ZLAN5200. User Manual

Research on Laser Measurement System for Underground Unmanned Load-Haul-Dump

2. SA1 Release 11 Standardization Trends

Research on 3G Terminal-Based Agricultural Information Service

Realization of Time Synchronization Server Based on C/S

CAMPSNA: A Cloud Assisted Mobile Peer to Peer Social Network Architecture

Temperature Measurement and Control System Based on Embedded WEB

Coordinated and Unified Control Scheme of IP and Optical Networks for Smart Power Grid

Design and Implementation of Remote Push System of Resources Based on Internet

Research Article. ISSN (Print) *Corresponding author Chen Hao

Open Access Design and Implementation of the Infant Incubator Intelligent Control System Based on Internet of Things. Tianshun Huang * and Leiming Sun

A Data Classification Algorithm of Internet of Things Based on Neural Network

Research Article A Two-Level Cache for Distributed Information Retrieval in Search Engines

CAMPSNA: A Cloud Assisted Mobile Peer to Peer Social Network Architecture

Liver Image Mosaicing System Based on Scale Invariant Feature Transform and Point Set Matching Method

Design of New Oscillograph based on FPGA

The Design of Embedded MCU Network Measure and Control System

Research and Design of Education and Teaching Resource Management System based on ASP.NET Technology

Research on Computer Network Virtual Laboratory based on ASP.NET. JIA Xuebin 1, a

Open Access Compression Algorithm of 3D Point Cloud Data Based on Octree

Design and Realization of Foreign Language Learning System. based on Mobile Internet Platform. Chu Weili

Design of Temperature and Humidity Data Acquisition System. Based on ARM

A Heuristic Bidirectional Hierarchical Path Planning Algorithm Based on Hierarchical Partitioning

Remote Monitoring System of Ship Running State under Wireless Network

An Improved DFSA Anti-collision Algorithm Based on the RFID-based Internet of Vehicles

Design of Dual-Core Processor Industry Robot Controller

APPLICATION OF JAVA TECHNOLOGY IN THE REGIONAL COMPARATIVE ADVANTAGE ANALYSIS SYSTEM OF MAIN GRAIN IN CHINA

Log System Based on Software Testing System Design And Implementation

A Study on Multi-resolution Screen based Conference Broadcasting Technology

Transcription:

Send Orders for Reprints to reprints@benthamscience.ae The Open Automation and Control Systems Journal, 2015, 7, 353-357 353 Open Access Design of a Python-Based Wireless Network Optimization and Testing System Hongxue Yang * Beijing Polytechnic, Beijing, 100176, P.R. China Abstract: As an object-oriented dynamic scripting language, Python has been widely applied in scientific computation, image processing and network communication fields, etc. However, there is no enough attention paid to it in automated test. A Python-based client/server auto-dial testing mode, which is successfully applied in actual wireless network optimization testing, is introduced. The actual application shows that this mode brings flexible and high-efficiency features of Python programming into full play and significantly improves the efficiency of testing system. Keywords: Automated testing, Python technology, Wireless network. 1. INTRODUCTION Developing from 3G to 4G is the trend of communication industry, and large-scale construction of CMCC s TD-LTE base station and other network equipment has already begun. According to the calculations, investment put by CMCC in 4GLTE base station equipment has increased from 4.65 billion yuan in 2012 to 27.5 billion yuan in 2013. With successful development of TD-LTE, the communication technologies which are dominant in China, will be developed and evolved continuously [1]. In addition, the large-scale construction of TD wireless network contributes to the increasing demand on the auto-dial testing software corresponding with it. A method for design and realization of this Pythonbased wireless network automated testing system is presented in this paper. The application shows that this kind of structure may bring into full play the flexible simple Python programming and high VC implementation efficiency features, improve the testing efficiency markedly and save the manpower cost. 2. CHARACTERISTICS OF PYTHON LANGUAGE The predominant characteristic of Python lies in rapid development function. Compared with any other programming languages, Python enables software designers to pay more attention to the problem itself, rather than implementation of details. Its main features are listed as follows: (1) Object-oriented: Python supports both processoriented and object-oriented programming. In the processoriented [2] language, the program is constructed by either processes or only functions of reusable codes. However, in the object-oriented language, the program is constructed by objects which are composed of both data and functions. * Address correspondence to this author at the College of Telecommunication Engineering, Beijing Polytechnic, Beijing Chaoyang District Road No. 2,100016, P.R. China; Tel: +86 10 13641042169; Fax: +86 10 64316740; E-mail: yhxzxb@sina.com (2) Expandability: if you want to run a section of key code faster or keep some algorithms private, write part of programs with C or C++ and then apply them in Python program. (3) Embeddability: Python can be embedded into a C/C++ program to provide scripting features for program users. Fast speed: running speed is very fast as the underlay of Python and most of standard libraries and the third-party libraries are all written with C programming language. (4) Transferability: owning to its nature of open sourcing, Python has been transferred to various platforms [3]. (5) Interpretability: inside the computer, Python interpreter converts the source code into an intermediate form of byte code and then interprets and runs it in the form of machine language that can be identified by the computer, which makes Python simpler and easier to be transferred. In wireless network auto-dial testing system, just like building blocks, the testers can write scripts by means of Python interface functions of open test service, and flexible configuration of test service can be realized with a limited programming knowledge. 3. APPLICATION OF PYTHON TECHNOLOGY IN WIRELESS NETWORK AUTOMATED TESTING SYSTEM 3.1. System Structure The system consists of two major parts: CMP (Central Management Platform) and MSP (Mobile Server Probe), as shown in Fig. (1). Where, CMP software, mainly used as the client for users, incorporates monitoring and management of terminal status, analyzing, compiling and executing of Python scripts, and centralized display of terminal data and network testing information, etc. As shown in Fig. (2), the MSP software takes charge of communication with CMP, real service exe- 1874-4443/15 2015 Bentham Open

354 The Open Automation and Control Systems Journal, 2015, Volume 7 Hongxue Yang Fig. (1). Overall System Framework Diagram. Fig. (2). Function Block Diagram of CMP and MSP. cution of control terminal, automatic identification of terminals provided by different manufacturers and acquisition of terminal information, etc. 3.2. Design of Python-Based Auto-dial Testing Operation Mode For purpose of convenient expansion and flexibility in use of auto-dial testing system, Python scripting language is now introduced and serves as the writing and running space for use cases. In order to ensure that testers will not be affected by introduction of Python scripts, client/server operation mode is adopted between the testing script and the auto-dial testing system. The auto-dial testing system serves as a server while the scripts constitute the client. A UDP interface is added in Python operand, in order to execute the function to send corresponding control commands to PythonSERVER; it is necessary to add a PythonSERVER to the auto-dial testing system side and complete corresponding sorting and abstraction of original ATP functions, so as to form an API interface and make preparations for calling of scripts (as shown in Fig. 3).

Design of a Python-based Wireless Network Optimization The Open Automation and Control Systems Journal, 2015, Volume 7 355 Fig. (3). Operation mode of auto-dial testing system s client/server. Table 1. Design of auto-dial testing system s Python interface. Interface Name Function Description Parameter Description MultiAdtOpenCom(Adt_Id nport strtype) Open COM port [Adt_Id, Id number of MSP], [nport, port of number], [strtype, type of UE] MultiAdtCloseCom(Adt_Id nport) Close COM port [Adt_Id, Id number of MSP], [nport, port number] MultiAdtDialConnect(Adt_Id strnumber strconnectname nport struetype) MultiAdtDisConnect(Adt_Id strdisconnectname nport struetype) MultiAdtDownLoad(Adt_Id strip struseid strpassword strdownloadfilename strinterfacename struetype) MultiAdtUpLoad(Adt_Id strip struseid strpassword struploadfilename strinterfacename struetype) Connect to a network Disconnect from network Download service Upload service [Adt_Id, Id number of MSP], [strconnectname, name of network card],[nport, opened port], [strtype, type of UE] [Adt_Id, Id number of MSP], [strconnectname, name of network card] [Adt_Id id number of MSP] [strip FTP Server IP] [struseid FTP ServerName][strPassword FTP Server password] [strdownloadfile- Name DownLoadFileName] [strinterfacename InterFaceName] [strtype UeType] [Adt_Id id number of MSP][strIP FTP Server IP][strUseId FTP ServerName][strPassword FTP Server password] [struploadfilename UpLoadFileName] [strinterfacename InterFaceName][strType UeType] MultiAdtAddRouteMetric(Adt_Id Add routing table [Adt_Id, id number of MSP] ATPCommand(CommandName *Parameter) General client interface [CommandName, name of commands][ Parameter, parameters] SendData(strData) Send data and receive response [strdata, data content] Python client completes interpretation and assembly of various commands sent by use cases and handles various responses of PythonServer. When designing client, take thin client as the principle, and attach importance to process (rather than processing) during use of client. PythonServer completes interpretation and assembly of various commands sent by the client and handles various responses from Python client. When designing Server side, abstraction and induction of basic functions shall be enhanced, so as to ensure that codes can be kept at certain scale and will not be extended when functions of auto-dial system are expanded continuously. In order to ensure smooth execution of control process between the client and the server and clear consistency in user usage, it is agreed as follows: (1) UDP communication is adopted between the client and the server and all contents of communications are written by plaintext character strings, in order to facilitate usage and testing; (2) A request/response mode is adopted in communication mechanism; the time required for response of requests shall not be longer than human reaction time and the response shall be accompanied with results for the commands whose results can be obtained immediately. For example, for PS service requests under normal circumstances, the commands whose response results cannot be obtained immediately can be divided into different processes, in order to ensure real-time performance of response. 3.3. Design of Python Interface of Auto-dial Testing System Network data acquisition interface, terminal information acquisition interface, service testing and terminal control interface are Python scripting interfaces. Design of key interfaces is described in Table 1.

356 The Open Automation and Control Systems Journal, 2015, Volume 7 Hongxue Yang Fig. (4). Python script processing flow. Fig. (5). Trend of newly increased use cases. 3.4. Python Script Processing Flow Testers write the testing scripts with Python script editor or graphic interface script editor provided by CMP [4]. After writing of Python scripts is completed, CMP software loads the use cases and activates the executing processes to analyze Python scripts, as shown in Fig. (4). Control module, communication module, service module, Python module and test results generation module would be involved in execution of typical testing tasks. Taking the typical download service as an example, control module activates Python editor to execute scripts and the script command message is sent to communication module in the form of UDP after Python scripts have been downloaded to MSP. Being in real-time monitoring state, the communication module will notify Python interface module to analyze the received UDP messages. Then, the Python interface module figures out the type of service to be executed and sends it to the control module. The control module will activate the thread and calls the service module to be tested. The service module executes specific services and records desired testing results in a real-time way. After the service execution is completed, return to the control module and exit the thread. In this way, a new thread will be activated to execute corresponding testing tasks every time different messages are received. After Python interface module has resolved scripting finalization message, control module closes testing results file and be ready to execute test report uploading process. 4. SYSTEM PERFORMANCE TEST After the Python-based LTE automatic testing system is applied, the number of newly increased testing use cases in testing of wireless network decreases from the original 1,442 to 89 (as shown in Fig. 5) and the time spent in testing a use

Design of a Python-based Wireless Network Optimization The Open Automation and Control Systems Journal, 2015, Volume 7 357 Fig. (6). Trend of lines of script code. case suite on a regression ergodicity basis decreases from 30 days (manual test) to 12 hours now. Moreover, the number of lines of script codes written by the testers decreases from the original highest 28,525 to 5,460 as shown in Fig. (6). CONCLUSION Wireless network testing is complex and characterized by multiple scenarios and scattered indicators. As a scripting language for automatic testing, Python is simple and flexible and testers are enabled to expand their own test cases arbitrarily. Only a few simple functions need to be called without paying attention to the specific service flow. The wireless network automatic testing system as described in this paper is based on the scripts written with Python language and thus improves the testing efficiency greatly. ACKNOWLEDGEMENTS Declared none. REFERENCES [1] l. Ferrigno, A. Pietrosanto, and V. Paciello, A Bluetooth- based proposal of instrument wireless interface, IEEE Transactions on Instrumentation and Measurement, vol. 54, no. 1, pp. 163-170, Dec. 2005. [2] H. Shim, I. Joe, and J. Lee, "SMS spam filtering system using SVM", RNIS, vol. 7, pp. 5-6, 2011. [3] J. Luo, and M. H. Yang, "An e-mail authentication and disposable addressing scheme for filtering spam", Journal of Cases on Information Technology, vol. 6, no. 2, pp. 161-171, 2011. [4] Y. Wang, and J. Cai, Research and implementation of API testbased distributed test framework, Computer Engineering and Design, vol. 68, pp. 1299-1301, Jan. 2008. CONFLICT OF INTEREST The author confirms that this article content has no conflict of interest. Received: December 15, 2014 Revised: January 04, 2015 Accepted: February 25, 2015 Hongxue Yang; Licensee Bentham Open. This is an open access article licensed under the terms of the Creative Commons Attribution Non-Commercial License (http://creativecommons.org/licenses/bync/4.0/) which permits unrestricted, non-commercial use, distribution and reproduction in any medium, provided the work is properly cited.