CN105389253B - The method and system of NE management are performed based on multithreading simulant-client - Google Patents

The method and system of NE management are performed based on multithreading simulant-client Download PDF

Info

Publication number
CN105389253B
CN105389253B CN201510678883.6A CN201510678883A CN105389253B CN 105389253 B CN105389253 B CN 105389253B CN 201510678883 A CN201510678883 A CN 201510678883A CN 105389253 B CN105389253 B CN 105389253B
Authority
CN
China
Prior art keywords
network management
management software
user
client
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510678883.6A
Other languages
Chinese (zh)
Other versions
CN105389253A (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 kind of method and system that NE management is performed based on multithreading simulant-client, this method includes:The number of clients and network element number of the network management software in profile parameters are read, and creates the user thread equal with the number of clients of the network management software;It is successively read each user thread, and the task queue that the client executing NE management of addition analog network management software operates in each user thread;User thread all after addition task queue success, starts all user threads, user thread terminates after being all finished.The present invention, by simulating the connection communication between the client of the establishment network management software and the background server of the network management software, simulating multiple client, on-line joining process background server carries out NE management operation simultaneously, the method tested item by item with respect to client connection background server is manually logged in, not only efficiency is higher but also cost is relatively low for this programme.

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, and in particular to performs NE management based on multithreading simulant-client Method and system.
Background technology
The network management software is the NMS that can complete Network Management Function, abbreviation network management system, network pipe Reason software is the special-purpose software for managing various transmission and access network device, comprising client software and daemon software, is passed The method of testing of the network management software NE management of system is by the manually client of logging in online management software and company The background service of the network management software is connect, is then surveyed item by item in each function interface of the client of the network management software Examination.However, when needing the background service of the client connection network management software of multiple network management softwares to be tested, example When being tested if desired for the background service of the client connection network management software of tens or hundreds of network management softwares, It is not only less efficient, and cost is higher.
The content of the invention
The technical problems to be solved by the invention are that the method for testing of existing network management software NE management is needing The background service of the client connection network management software of multiple network management softwares is when being tested, it is not only less efficient but also The problem of cost is higher.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention, which is to provide, a kind of is based on multithreading mould Intend the method for client executing NE management, comprise the following steps:
The number of clients and network element number of the network management software in profile parameters are read, and is created and network pipe Manage the equal user thread of the number of clients of software;
Each user thread is successively read, and the client of addition analog network management software is held in each user thread The task queue of row NE management operation;
User thread all after addition task queue success, starts all user threads, and all hold in user thread Terminate after row.
In the above-mentioned technical solutions, the task team of the client executing NE management operation of the analog network management software Row specifically include following steps:
Virtual User is created on the network management software with network manager's identity, and authorizes the Virtual User operating rights Limit;
The client that the network management software is simulated with the Virtual User logs in the network management software;
Keep the client session of the network management software corresponding to the ID of the Virtual User online, and create and the net The equal numbers of network element of member;
NE management operation is performed to the network element of establishment;
After the NE management operation is finished, the Virtual User is deleted with network manager's identity, and will The implementing result of the NE management operation recorded journal file.
In the above-mentioned technical solutions, the network pipe is logged in the client of the Virtual User analog network management software Reason software specifically includes following steps:
Pass through the background service of the ID connections network management software of the Virtual User;
The background service of the network management software searches the ID of the Virtual User in database;
If the ID of the Virtual User in the database be present, the Virtual User is registered in buffer zone ID, keep the client session of the network management software corresponding to the ID of the Virtual User online, and notify other to have connected institute The client refreshes for stating the network management software of the background service of the network management software are synchronous;
If the ID of the Virtual User is not present in the database, error message is returned.
In the above-mentioned technical solutions, the NE management operation includes changing and deleted.
In the above-mentioned technical solutions, the implementing result of the NE management operation includes running succeeded or performing failure, with And the time performed.
Present invention also offers a kind of system that NE management is performed based on multithreading simulant-client, including:
Reading unit, reads the number of clients and network element number of the network management software in profile parameters, and creates Build the user thread equal with the number of clients of the network management software;
Adding device, each user thread is successively read, and analog network management software is added in each user thread Client executing NE management operation task queue;
Execution unit, user thread all after addition task queue success, start all user threads, and in user's line Journey terminates after being all finished.
In the above-mentioned technical solutions, the adding device includes:
First creating unit, Virtual User is created on the network management software with network manager's identity, and authorized described Virtual User operating right;
Unit is logged in, the client login network management that the network management software is simulated with the Virtual User is soft Part;
Second creating unit, keep the client session of the network management software corresponding to the ID of the Virtual User online, And create and the equal numbers of network element of the network element;
NE management unit, NE management operation is performed to the network element of establishment;
Recording unit, after the NE management unit is finished, deleted with network manager's identity described virtual User, and the implementing result of the NE management unit be recorded into journal file.
In the above-mentioned technical solutions, the login unit includes:
Connection unit, pass through the background service of the ID connections network management software of the Virtual User;
Searching unit, the background service of the network management software search the ID of the Virtual User in database;
Judging unit, if the ID of the Virtual User in the database be present, in buffer zone described in registration The ID of Virtual User, keep the client session of the network management software corresponding to the ID of the Virtual User online, and notify it The client refreshes that it has connected the network management software of the background service of the network management software are synchronous;It is if described The ID of the Virtual User is not present in database, then returns to error message.
In the above-mentioned technical solutions, the NE management operation includes changing and deleted.
In the above-mentioned technical solutions, the implementing result of the NE management unit includes running succeeded or performing failure, with And the time performed.
The present invention, created by simulating between the client of the network management software and the background service of the network management software Connection communication, simulates the client of multiple network management softwares while the background service of the on-line joining process network management software carries out net Member management operation, the backstage that the network management software is connected with respect to the client of manually logging in network management software take The method for being engaged in being tested item by item, not only efficiency is higher but also cost is relatively low for this programme.
Brief description of the drawings
Fig. 1 is a kind of method that NE management is performed based on multithreading simulant-client provided in an embodiment of the present invention Flow chart;
Fig. 2 is the task that the client executing NE management of analog network management software provided in an embodiment of the present invention operates The flow chart of queue;
Fig. 3 is a kind of system that NE management is performed based on multithreading simulant-client provided in an embodiment of the present invention Structural representation.
Embodiment
The present invention is described in detail with reference to specification drawings and specific embodiments.
The embodiments of the invention provide a kind of method that NE management is performed based on multithreading simulant-client, such as scheme Shown in 1, it the described method comprises the following steps:
Step 101, judge to whether there is the number of clients M and network element number of the network management software in profile parameters N, if in the presence of going to step 102;Otherwise, 110 are gone to step.
Step 102, the number of clients M and network element number N for reading the network management software.
Step 103, M user thread is created, if user thread creates successfully, go to step 104;Otherwise, 110 are gone to step.
A user thread in M step 104, reading user thread, adds analog network pipe in the user thread The task queue of the client executing NE management operation of software is managed, if task queue is added successfully, goes to step 105;Otherwise, turn Step 110.
Step 105, continue to read next user thread in M user thread, simulation is added in the user thread The task queue of the client executing NE management operation of the network management software, if task queue is added successfully, goes to step 106; Otherwise, 110 are gone to step.
Step 106, judge whether M user thread all adds task queue success, if all adding successfully, go to step 107;Otherwise, 105 are gone to step.
Step 107, start M user thread, if starting successfully, go to step 108;Otherwise, 110 are gone to step.
Step 108, judge whether M user thread is all finished, if so, going to step 109;Otherwise, go to step 110。
Step 109, terminate.
Step 110, return to error message.
Wherein, as shown in Fig. 2 in step 104 and step 105, the client executing network element of analog network management software The task queue of management operation specifically includes following steps:
Step 201, Virtual User created on the network management software with network manager's identity, and authorize Virtual User behaviour Make authority.
Step 202, the client logging in network management software with Virtual User analog network management software.
The detailed process of step 202 is:By the background service of the ID connection network management softwares of the Virtual User of establishment, The background service of the network management software searches the ID of the Virtual User in database, if the Virtual User in database be present ID, then the ID of the Virtual User is registered in buffer zone, keeps the network management software corresponding to the ID of the Virtual User Client session is online, and send the network management software of the other background services for having connected the network management software of message informing Client refreshes are synchronous, if the ID of the Virtual User is not present in database, return to error message.
Step 203, keep the client session of the network management software corresponding to the ID of the Virtual User online, and create with The equal N number of network element of network element number N.
Step 204, N number of network element to establishment perform the NE management such as modification or deletion and operated.
After step 205, NE management operation are finished, Virtual User is deleted with network manager's identity, and by network element The implementing result of management operation recorded journal file.
The implementing result of NE management operation includes running succeeded or performing failure, and the time performed.
The embodiment of the present invention additionally provides a kind of system that NE management is performed based on multithreading simulant-client, such as Shown in Fig. 3, including:
Reading unit 10, the number of clients and network element number of the network management software in profile parameters are read, and Create the user thread equal with the number of clients of the network management software;
Adding device 20, each user thread is successively read, and the management of addition analog network is soft in each user thread The task queue of the client executing NE management operation of part;
Execution unit 30, user thread all after addition task queue success, start all user threads, and in user Thread terminates after being all finished.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn that the knot made under the enlightenment of the present invention Structure changes, and the technical schemes that are same or similar to the present invention, each falls within protection scope of the present invention.

Claims (8)

1. the method for NE management is performed based on multithreading simulant-client, it is characterised in that including:
The number of clients and network element number of the network management software in profile parameters are read, and is created soft with network management The equal user thread of the number of clients of part;
Each user thread is successively read, and the client executing net of analog network management software is added in each user thread The task queue of member management operation;
User thread all after addition task queue success, starts all user threads, and all performed in user thread Terminate after finishing;
The task queue of the client executing NE management operation of the analog network management software specifically includes following steps:
Virtual User is created on the network management software with network manager's identity, and authorizes the Virtual User operating right;
The client that the network management software is simulated with the Virtual User logs in the network management software;
Keep the client session of the network management software corresponding to the ID of the Virtual User online, and create and the NE No. The equal network element of mesh;
NE management operation is performed to the network element of establishment;
After the NE management operation is finished, the Virtual User is deleted with network manager's identity, and by described in The implementing result of NE management operation recorded journal file.
2. the method as described in claim 1, it is characterised in that with the client of the Virtual User analog network management software Log in the network management software and specifically include following steps:
Pass through the background service of the ID connections network management software of the Virtual User;
The background service of the network management software searches the ID of the Virtual User in database;
If the ID of the Virtual User in the database be present, the ID of the Virtual User is registered in buffer zone, Keep the client session of the network management software corresponding to the ID of the Virtual User online, and notify other to have connected the net The client refreshes of the network management software of the background service of network management software are synchronous;
If the ID of the Virtual User is not present in the database, error message is returned.
3. the method as described in claim 1, it is characterised in that the NE management operation includes changing and deleted.
4. the method as described in claim 1, it is characterised in that the implementing result of the NE management operation includes running succeeded Or failure is performed, and the time performed.
5. the system of NE management is performed based on multithreading simulant-client, it is characterised in that including:
Reading unit, read profile parameters in the network management software number of clients and network element number, and create with The equal user thread of the number of clients of the network management software;
Adding device, each user thread is successively read, and the visitor of analog network management software is added in each user thread Family end performs the task queue of NE management operation;
Execution unit, user thread all after addition task queue success, start all user threads, and complete in user thread Terminate after being finished in portion;
The adding device includes:
First creating unit, Virtual User is created on the network management software with network manager's identity, and authorized described virtual User's operating right;
Unit is logged in, the client that the network management software is simulated with the Virtual User logs in the network management software;
Second creating unit, keep the client session of the network management software corresponding to the ID of the Virtual User online, and create Build and the equal numbers of network element of the network element;
NE management unit, NE management operation is performed to the network element of establishment;
Recording unit, after the NE management unit is finished, the Virtual User is deleted with network manager's identity, And the implementing result of the NE management unit be recorded into journal file.
6. system as claimed in claim 5, it is characterised in that the login unit includes:
Connection unit, pass through the background service of the ID connections network management software of the Virtual User;
Searching unit, the background service of the network management software search the ID of the Virtual User in database;
Judging unit, if the ID of the Virtual User in the database be present, registered in buffer zone described virtual The ID of user, keep the client session of the network management software corresponding to the ID of the Virtual User online, and notify it is other The client refreshes for connecting the network management software of the background service of the network management software are synchronous;If the data The ID of the Virtual User is not present in storehouse, then returns to error message.
7. system as claimed in claim 5, it is characterised in that the NE management operation includes changing and deleted.
8. system as claimed in claim 5, it is characterised in that the implementing result of the NE management unit includes running succeeded Or failure is performed, 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 CN105389253A (en) 2016-03-09
CN105389253B true 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)

Families Citing this family (2)

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

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

Also Published As

Publication number Publication date
CN105389253A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN110928774B (en) Automatic test system based on node type
US11176030B2 (en) Conducting automated software testing using centralized controller and distributed test host servers
CN104978266B (en) A kind of application testing method and device
CN103198130B (en) The method and apparatus realizing the login unified with webpage at client
US10223248B2 (en) Conducting automated software testing using centralized controller and distributed test host servers
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
CN108351807A (en) Event management to maintain control of restricted data in a cloud computing environment
WO2014049804A1 (en) System operation trace method in distributed system
CN104391697B (en) The cloud resource management system and method for application program
US20130065694A1 (en) Method for performance test of online game server
CN106844163A (en) The method and device of a kind of database master-slave synchronisation condition monitoring
CN108563697A (en) A kind of data processing method, device and storage medium
CN112799782B (en) Model generation system, method, electronic device and storage medium
CN106656927A (en) Method and device for enabling Linux account to be added to AD domain
CN107800783A (en) The method and device of remote monitoring server
CN105389253B (en) The method and system of NE management are performed based on multithreading simulant-client
CN104219404B (en) Communication network emergency preplan drilling method, system and server
KR101199485B1 (en) Method and apparatus for testing online performance on client/server
CN105812432B (en) Cloud document processing method and device
JP2014035595A (en) Testing device for communication system, testing program for communication system, and testing method for communication system
CN108021431A (en) Method and its system based on web data interactive maintenance Hive
CN109684177A (en) Information feedback method and device
CN106302479B (en) A kind of single-point logging method and system for multi-service internet site
CN107749308A (en) A kind of background management system that support is provided for Thyroid ultrasound diagnosis APP
CN107544830A (en) A kind of method and device of automatic installation database

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.