CN105389253A - Method and system for simulating client to execute network element management based on multithreading technology - Google Patents

Method and system for simulating client to execute network element management based on multithreading technology Download PDF

Info

Publication number
CN105389253A
CN105389253A CN201510678883.6A CN201510678883A CN105389253A CN 105389253 A CN105389253 A CN 105389253A CN 201510678883 A CN201510678883 A CN 201510678883A CN 105389253 A CN105389253 A CN 105389253A
Authority
CN
China
Prior art keywords
management software
network management
virtual user
user
client
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
CN201510678883.6A
Other languages
Chinese (zh)
Other versions
CN105389253B (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.)
Wuhan Fiberhome Technical Services Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201510678883.6A priority Critical patent/CN105389253B/en
Publication of CN105389253A publication Critical patent/CN105389253A/en
Application granted granted Critical
Publication of CN105389253B publication Critical patent/CN105389253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a system for simulating a client to execute network element management based on multithreading technology. The method comprises the following steps: reading a client number and a network element number of network management software in a configuration file parameter, and creating user threads equal to the client number of the network management software; reading each user thread in sequence, and adding a task queue of executing a network element management operation by the client simulating the network management software in each user thread; and after successfully adding the task queues in all user threads, starting all user threads, and terminating after executing all user threads. According to the method disclosed by the invention, connection communication of the client of the network management software with a background server of the network management software is simulated and created to simulate a plurality of clients to connect the background server online at the same time to execute the network element management operation, and compared with the method of manually logging in the clients and connecting the background server to carry out one-by-one test, the scheme not only has relatively high efficiency, but also has a relatively low cost.

Description

The method and system of NE management are performed based on multithreading simulant-client
Technical field
The present invention relates to communication technical field, be specifically related to the method and system performing NE management based on multithreading simulant-client.
Background technology
The network management software is the network management system that can complete Network Management Function, be called for short network management system, the network management software is the special software for managing various transmission and access network device, comprise client software and daemon software, the method of testing of traditional network management software NE management is by the client of logging in online management software manually and the background service of interconnection network management software, then tests item by item at each function interface of the client of the network management software.But, when the background service of the client's side link network management software needing multiple network management software is tested, such as, when needing the background service of the client's side link network management software of tens or a hundreds of network management software to test, not only efficiency is lower, and cost is higher.
Summary of the invention
Technical matters to be solved by this invention be the method for testing of existing network management software NE management when needing the background service of the client's side link network management software of multiple network management software to test, the problem that not only efficiency is lower but also cost is higher.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is to provide a kind of method performing NE management based on multithreading simulant-client, comprises the following steps:
Read number of clients and the network element number of the network management software in profile parameters, and create the user thread equal with the number of clients of the network management software;
Read each user thread successively, and in each user thread, add the task queue of the client executing NE management operation of analog network management software;
User thread starts all user threads after all adding task queue success, and terminates after user thread is all finished.
In technique scheme, the task queue of the client executing NE management operation of described analog network management software specifically comprises the following steps:
On the network management software, create Virtual User with network manager's identity, and authorize described Virtual User operating right;
The network management software described in the client logs of simulating the described network management software with described Virtual User;
Keep the client session of the network management software that the ID of described Virtual User is corresponding online, and create the network element equal with described network element number;
NE management operation is performed to the described network element created;
After described NE management operation is finished, deletes described Virtual User with described network manager's identity, and the execution result that described NE management operates is recorded to journal file.
In technique scheme, specifically comprise the following steps with the network management software described in the client logs of described Virtual User analog network management software:
The background service of the described network management software is connected by the ID of described Virtual User;
The background service of the described network management software searches the ID of described Virtual User in a database;
If there is the ID of described Virtual User in described database, in buffer zone, then register the ID of described Virtual User, keep the client session of the network management software that the ID of described Virtual User is corresponding online, and notify that the client refreshes that other has connected the described network management software of the background service of the described network management software is synchronous;
If there is not the ID of described Virtual User in described database, then return error message.
In technique scheme, described NE management operation comprises amendment and deletes.
In technique scheme, the execution result of described NE management operation comprises and runs succeeded or perform failure, and the time performed.
Present invention also offers a kind of system performing NE management based on multithreading simulant-client, comprising:
Reading unit, reads number of clients and the network element number of the network management software in profile parameters, and creates the user thread equal with the number of clients of the network management software;
Adding device, reads each user thread successively, and in each user thread, add the task queue of the client executing NE management operation of analog network management software;
Performance element, user thread starts all user threads after all adding task queue success, and terminates after user thread is all finished.
In technique scheme, described adding device comprises:
First creating unit, creates Virtual User with network manager's identity on the network management software, and authorizes described Virtual User operating right;
Log in unit, the network management software described in the client logs of simulating the described network management software with described Virtual User;
Second creating unit, keeps the client session of the network management software that the ID of described Virtual User is corresponding online, and creates the network element equal with described network element number;
NE management unit, performs NE management operation to the described network element created;
Record cell, after described NE management unit is finished, deletes described Virtual User with described network manager's identity, and the execution result of described NE management unit is recorded to journal file.
In technique scheme, described login unit comprises:
Linkage unit, connects the background service of the described network management software by the ID of described Virtual User;
Search unit, the background service of the described network management software searches the ID of described Virtual User in a database;
Judging unit, if there is the ID of described Virtual User in described database, in buffer zone, then register the ID of described Virtual User, keep the client session of the network management software that the ID of described Virtual User is corresponding online, and notify that the client refreshes that other has connected the described network management software of the background service of the described network management software is synchronous; If there is not the ID of described Virtual User in described database, then return error message.
In technique scheme, described NE management operation comprises amendment and deletes.
In technique scheme, the execution result of described NE management unit comprises and runs succeeded or perform failure, and the time performed.
The present invention, the connection communication between the client of the network management software and the background service of the network management software is created by simulation, the background service of the client the simulating multiple network management software simultaneously on-line joining process network management software carries out NE management operation, with respect to the method that the background service of the client's side link network management software of logging in network management software is manually tested item by item, not only efficiency is higher but also cost is lower for this programme.
Accompanying drawing explanation
A kind of method flow diagram performing NE management based on multithreading simulant-client that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the task queue of the client executing NE management operation of the analog network management software that Fig. 2 provides for the embodiment of the present invention;
A kind of system architecture schematic diagram performing NE management based on multithreading simulant-client that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with specification drawings and specific embodiments, the present invention is described in detail.
Embodiments provide a kind of method performing NE management based on multithreading simulant-client, as shown in Figure 1, said method comprising the steps of:
Step 101, judge the number of clients M and the network element number N that whether there is the network management software in profile parameters, if exist, go to step 102; Otherwise, go to step 110.
Step 102, the number of clients M reading the network management software and network element number N.
Step 103, establishment M user thread, if user thread creates successfully, go to step 104; Otherwise, go to step 110.
Step 104, the user thread read in M user thread, add the task queue of the client executing NE management operation of analog network management software, if task queue is added successfully, go to step 105 in this user thread; Otherwise, go to step 110.
Step 105, the next user thread continued in reading M user thread, add the task queue of the client executing NE management operation of analog network management software, if task queue is added successfully, go to step 106 in this user thread; Otherwise, go to step 110.
Step 106, judge that whether M user thread all add task queue success, if all add successfully, go to step 107; Otherwise, go to step 105.
Step 107, startup M user thread, if start successfully, go to step 108; Otherwise, go to step 110.
Step 108, judge whether M user thread is all finished, and if so, goes to step 109; Otherwise, go to step 110.
Step 109, end.
Step 110, return error message.
Wherein, as shown in Figure 2, in step 104 and step 105, the task queue of the client executing NE management operation of analog network management software specifically comprises the following steps:
Step 201, on the network management software, create Virtual User with network manager's identity, and authorize Virtual User operating right.
Step 202, with the client logs network management software of Virtual User analog network management software.
The detailed process of step 202 is: by the background service of the ID interconnection network management software of the Virtual User of establishment, the background service of the network management software searches the ID of this Virtual User in a database, if there is the ID of this Virtual User in database, in buffer zone, then register the ID of this Virtual User, keep the client session of the network management software that the ID of this Virtual User is corresponding online, and the client refreshes sending other network management software of background service of interconnection network management software of message informing is synchronous, if there is not the ID of this Virtual User in database, then return error message.
Step 203, keep the client session of the network management software that the ID of this Virtual User is corresponding online, and create the N number of network element equal with network element number N.
Step 204, the NE management operations such as amendment or deletion are performed to the N number of network element created.
After step 205, NE management operation are finished, delete Virtual User with network manager's identity, and the execution result that NE management operates is recorded to journal file.
The execution result of NE management operation comprises and runs succeeded or perform failure, and the time performed.
The embodiment of the present invention additionally provides a kind of system performing NE management based on multithreading simulant-client, as shown in Figure 3, comprising:
Reading unit 10, reads number of clients and the network element number of the network management software in profile parameters, and creates the user thread equal with the number of clients of the network management software;
Adding device 20, reads each user thread successively, and in each user thread, add the task queue of the client executing NE management operation of analog network management software;
Performance element 30, user thread starts all user threads after all adding task queue success, and terminates after user thread is all finished.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the structure change made under enlightenment of the present invention, and every have identical or close technical scheme with the present invention, all falls within protection scope of the present invention.

Claims (10)

1. perform the method for NE management based on multithreading simulant-client, it is characterized in that, comprising:
Read number of clients and the network element number of the network management software in profile parameters, and create the user thread equal with the number of clients of the network management software;
Read each user thread successively, and in each user thread, add the task queue of the client executing NE management operation of analog network management software;
User thread starts all user threads after all adding task queue success, and terminates after user thread is all finished.
2. the method for claim 1, is characterized in that, the task queue of the client executing NE management operation of described analog network management software specifically comprises the following steps:
On the network management software, create Virtual User with network manager's identity, and authorize described Virtual User operating right;
The network management software described in the client logs of simulating the described network management software with described Virtual User;
Keep the client session of the network management software that the ID of described Virtual User is corresponding online, and create the network element equal with described network element number;
NE management operation is performed to the described network element created;
After described NE management operation is finished, deletes described Virtual User with described network manager's identity, and the execution result that described NE management operates is recorded to journal file.
3. method as claimed in claim 2, is characterized in that, specifically comprise the following steps with the network management software described in the client logs of described Virtual User analog network management software:
The background service of the described network management software is connected by the ID of described Virtual User;
The background service of the described network management software searches the ID of described Virtual User in a database;
If there is the ID of described Virtual User in described database, in buffer zone, then register the ID of described Virtual User, keep the client session of the network management software that the ID of described Virtual User is corresponding online, and notify that the client refreshes that other has connected the described network management software of the background service of the described network management software is synchronous;
If there is not the ID of described Virtual User in described database, then return error message.
4. method as claimed in claim 2, is characterized in that, described NE management operation comprises amendment and deletes.
5. method as claimed in claim 2, is characterized in that, the execution result of described NE management operation comprises and runs succeeded or perform failure, and the time performed.
6. perform the system of NE management based on multithreading simulant-client, it is characterized in that, comprising:
Reading unit, reads number of clients and the network element number of the network management software in profile parameters, and creates the user thread equal with the number of clients of the network management software;
Adding device, reads each user thread successively, and in each user thread, add the task queue of the client executing NE management operation of analog network management software;
Performance element, user thread starts all user threads after all adding task queue success, and terminates after user thread is all finished.
7. system as claimed in claim 6, it is characterized in that, described adding device comprises:
First creating unit, creates Virtual User with network manager's identity on the network management software, and authorizes described Virtual User operating right;
Log in unit, the network management software described in the client logs of simulating the described network management software with described Virtual User;
Second creating unit, keeps the client session of the network management software that the ID of described Virtual User is corresponding online, and creates the network element equal with described network element number;
NE management unit, performs NE management operation to the described network element created;
Record cell, after described NE management unit is finished, deletes described Virtual User with described network manager's identity, and the execution result of described NE management unit is recorded to journal file.
8. system as claimed in claim 7, it is characterized in that, described login unit comprises:
Linkage unit, connects the background service of the described network management software by the ID of described Virtual User;
Search unit, the background service of the described network management software searches the ID of described Virtual User in a database;
Judging unit, if there is the ID of described Virtual User in described database, in buffer zone, then register the ID of described Virtual User, keep the client session of the network management software that the ID of described Virtual User is corresponding online, and notify that the client refreshes that other has connected the described network management software of the background service of the described network management software is synchronous; If there is not the ID of described Virtual User in described database, then return error message.
9. system as claimed in claim 7, is characterized in that, described NE management operation comprises amendment and deletes.
10. system as claimed in claim 7, is characterized in that, the execution result of described NE management unit comprises and runs succeeded or perform failure, and the time performed.
CN201510678883.6A 2015-10-19 2015-10-19 The method and system of NE management are performed based on multithreading simulant-client Active CN105389253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510678883.6A CN105389253B (en) 2015-10-19 2015-10-19 The method and system of NE management are performed based on multithreading simulant-client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510678883.6A CN105389253B (en) 2015-10-19 2015-10-19 The method and system of NE management are performed based on multithreading simulant-client

Publications (2)

Publication Number Publication Date
CN105389253A true CN105389253A (en) 2016-03-09
CN105389253B CN105389253B (en) 2017-12-08

Family

ID=55421559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510678883.6A Active CN105389253B (en) 2015-10-19 2015-10-19 The method and system of NE management are performed based on multithreading simulant-client

Country Status (1)

Country Link
CN (1) CN105389253B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965088A (en) * 2017-05-25 2018-12-07 中兴通讯股份有限公司 Create the method and device in static tunnel
CN114554532A (en) * 2022-03-09 2022-05-27 武汉烽火技术服务有限公司 5G device high-concurrency simulation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363360B2 (en) * 2002-02-06 2008-04-22 Adiran, Inc. System and method for managing elements of a communication network
CN101267343A (en) * 2008-04-25 2008-09-17 中兴通讯股份有限公司 A method for multiple clients to configure server network element data
CN101764703A (en) * 2009-09-16 2010-06-30 深圳市震有科技有限公司 Network element management system based on virtual technology
CN102955721A (en) * 2011-08-16 2013-03-06 阿里巴巴集团控股有限公司 Device and method for pressure generation for testing
US9049044B1 (en) * 2005-05-11 2015-06-02 Avaya, Inc. Method of management and distribution of device adapters for element management systems
CN104796302A (en) * 2015-04-17 2015-07-22 大唐移动通信设备有限公司 Method and system for testing network element simulators

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363360B2 (en) * 2002-02-06 2008-04-22 Adiran, Inc. System and method for managing elements of a communication network
US9049044B1 (en) * 2005-05-11 2015-06-02 Avaya, Inc. Method of management and distribution of device adapters for element management systems
CN101267343A (en) * 2008-04-25 2008-09-17 中兴通讯股份有限公司 A method for multiple clients to configure server network element data
CN101764703A (en) * 2009-09-16 2010-06-30 深圳市震有科技有限公司 Network element management system based on virtual technology
CN102955721A (en) * 2011-08-16 2013-03-06 阿里巴巴集团控股有限公司 Device and method for pressure generation for testing
CN104796302A (en) * 2015-04-17 2015-07-22 大唐移动通信设备有限公司 Method and system for testing network element simulators

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965088A (en) * 2017-05-25 2018-12-07 中兴通讯股份有限公司 Create the method and device in static tunnel
CN108965088B (en) * 2017-05-25 2021-11-30 中兴通讯股份有限公司 Method and device for establishing static tunnel
CN114554532A (en) * 2022-03-09 2022-05-27 武汉烽火技术服务有限公司 5G device high-concurrency simulation method and device

Also Published As

Publication number Publication date
CN105389253B (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN110928774B (en) Automatic test system based on node type
CN113067728B (en) Network security attack and defense test platform
CN107995169B (en) Mobile game server framework system based on micro-service architecture
CN106095677B (en) The RESTful Webservice automatic interface testing methods realized based on Robot Framework
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN104978266B (en) A kind of application testing method and device
CN106682036A (en) Data exchange system and exchange method thereof
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
KR101443071B1 (en) Error Check System of Webpage
CN111211934B (en) Cluster remote communication test method and system
CN105404580A (en) Distributed pressure test system and method
CN106649090A (en) Automated test system and method
CN107634871B (en) Connectivity test method, device and system
CN111181800A (en) Test data processing method and device, electronic equipment and storage medium
CN112579007A (en) Method and device for acquiring full storage link and electronic equipment
CN104899134A (en) Automatic domain name registration server testing system and method
CN105389253A (en) Method and system for simulating client to execute network element management based on multithreading technology
Dorofeeva et al. Experimental evaluation of FSM-based testing methods
CN107395456A (en) Distributed file system stream directly deposits method of testing and platform
CN104123397A (en) Automatic test device and method for Web page
JP2014035595A (en) Testing device for communication system, testing program for communication system, and testing method for communication system
CN112583663A (en) Automatic network performance testing method based on domestic operating system
CN107391374A (en) Middleware automatic checking method
CN108021431A (en) Method and its system based on web data interactive maintenance Hive

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180214

Address after: 430073 No. 4 Guanshan Second Road, East Lake Development Zone, Wuhan City, Hubei Province

Patentee after: WUHAN FIBERHOME TECHNICAL SERVICES CO., LTD.

Address before: 430074 East Lake Development Zone, Hubei, Optics Valley Venture Street, No. 67, No.

Patentee before: Fenghuo Communication Science &. Technology Co., Ltd.