CN102013993B - Physical topology use management method and system - Google Patents

Physical topology use management method and system Download PDF

Info

Publication number
CN102013993B
CN102013993B CN201010508293.6A CN201010508293A CN102013993B CN 102013993 B CN102013993 B CN 102013993B CN 201010508293 A CN201010508293 A CN 201010508293A CN 102013993 B CN102013993 B CN 102013993B
Authority
CN
China
Prior art keywords
topology
test task
task
test
priority
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
CN201010508293.6A
Other languages
Chinese (zh)
Other versions
CN102013993A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010508293.6A priority Critical patent/CN102013993B/en
Publication of CN102013993A publication Critical patent/CN102013993A/en
Application granted granted Critical
Publication of CN102013993B publication Critical patent/CN102013993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a physical topology use management method and a physical topology use management system. The method comprises the following steps of: acquiring an occupiable topology set; acquiring the requirement of the testing task topology; selecting a topology example matched with the testing task topology in the topology set according to the requirement; and executing the testing task topology according to the topology example. In the method and the system, the topology example of the testing task topology is provided in an available testing environment according to the topology connection properties and topology priority, each task topology is introduced based on a priority level preemptive mechanism, the automatic process of the topology management is realized, the utilization efficiency of the lab topology is improved, the execution of an important task is guaranteed in advance, and a stable and practicable method for reasonably allocating topology is provided.

Description

Physical topology use management method and system
Technical Field
The invention relates to the technical field of computer networks, in particular to a physical topology use management method and a physical topology use management system.
Background
In the process of testing the network data equipment, less topology management is directly performed through the tool. When a plurality of people share a physical test environment, the mutual communication is often used to avoid the conflict of test resources, which is very unreliable. Because the use conditions of various resources in the topology cannot be known in time, the utilization rate of the test resources is also low. In addition, the topology of the whole test environment is not displayed by an intuitive graphical interface, and testers often need to record all details in the test environment, so that the comparison and the use in the test process are facilitated.
The prior art provides a topology adaptation method in an automated test: the method comprises the steps of establishing a logic topological structure diagram set in advance, and then selecting a required logic topological structure diagram from the logic topological structure diagram set for compiling when compiling an automatic test case; when the test cases are tested, the test cases are selected one by one, when the adaptation relation of the logic topology of the current test case exists in the detection topology adaptation database and the test flow is a sequential test, the required adaptation relation is directly called in the topology adaptation database to test according to the configured test mode and the serial number of the logic topology structure diagram quoted by the test cases. The method increases the flexibility of topology occupation by adapting to the current required logic topology, breaks through the limitation that the original set of environment can only run the automatic test tasks under the same topology environment, but does not provide a perfect management method for the topology resources in the automatic test, and cannot adapt to the requirements of flexible and dynamic execution of a plurality of automatic test tasks which are bound to face in the subsequent automatic development process, and the automatic management of the actual network topology environment resources is also bound to be the main content in the automatic test development.
Disclosure of Invention
The invention mainly aims to provide a physical topology use management method and a physical topology use management system, which can dynamically adapt to an actual physical test topology set (topology environment) according to the logic topology of a single automation task and can reasonably, efficiently and stably arrange an occupation mechanism of physical topology resources among a plurality of automation tasks.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method of physical topology usage management, comprising:
acquiring an occupiable topology set;
acquiring the topology requirement of the test task;
selecting a topology example which is adaptive to the topology of the test task in the topology set according to the requirement;
and executing the execution operation of the test task topology according to the topology example.
Preferably, the selecting a topology instance adapted to the topology requirement of the test task in the topology set according to the requirement specifically includes:
selecting a topology subset with an idle or topology priority smaller than the topology priority of the test task in the topology set according to the topology requirement of the test task;
and adapting a topology example of the topology of the test task in the topology subset.
Preferably, the executing operation specifically includes: and testing recovery operation, occupation operation and/or release operation of the task topology.
Preferably, the occupying operation specifically includes:
arranging an occupation plan of the test task topology according to the use condition of the physical test topology subset, and executing test topology occupation operation if the test task topology is adapted to the full-idle topology example;
if the topology is adapted to the topology example and the topology is occupied and connected by the current test task topology, judging whether to preempt or not according to the priority of the current test task topology and the priority of the current test task topology, and if the priority of the current test task topology is higher than the priority of the current test task topology, preempting and executing the occupation operation of the test topology; and if the priorities are the same, reserving, and executing the occupation operation of the test topology after the current test task topology of the topology example is released.
Preferably, the releasing operation includes:
revoking the occupation of the topology example by the topology of the test task;
executing the release operation of the topology of the test task, restoring the topology of the test task, and if the topology is idle, setting the priority of the topology of the test task to be the lowest value; and if the task is preempted, setting the topology priority as the priority value of the task.
The present invention also provides a physical topology use management system, which includes:
a topology set acquisition means for acquiring an occupiable topology set;
the requirement control end is used for acquiring the requirement of the topology of the test task;
the adaptive device is used for selecting a topology example adaptive to the topology of the test task in the topology set according to the requirement;
and the scheduling device is used for executing the execution operation of the test task topology according to the topology example.
Preferably, the adapting device is further configured to select a topology subset that is idle or has a topology priority lower than the topology priority of the current test task from the topology subset according to the topology requirement of the current test task, and adapt the topology instance of the topology of the current test task from the topology subset.
Preferably, the executing operation specifically includes: and testing recovery operation, occupation operation and/or release operation of the task topology.
Preferably, the scheduling device is further configured to arrange an occupation plan of the test task topology according to the use condition of the physical test topology subset, and if the occupation plan is adapted to the fully-idle topology example, execute a test topology occupation operation; if the topology is adapted to the topology example and the topology is occupied and connected by the current test task topology, judging whether to preempt or not according to the priority of the current test task topology and the priority of the current test task topology, and if the priority of the current test task topology is higher than the priority of the current test task topology, preempting and executing the occupation operation of the test topology; and if the priorities are the same, reserving, and executing the occupation operation of the test topology after the current test task topology of the topology example is released.
Preferably, the scheduling apparatus is further configured to: revoking the occupation of the topology example by the topology of the test task; executing the release operation of the topology of the test task, restoring the topology of the test task, and if the topology is idle, setting the priority of the topology of the test task to be the lowest value; and if the task is preempted, setting the topology priority as the priority value of the task.
The technical scheme of the invention has the following beneficial effects: the method and the system adapt the topology example of the topology of the test task in the available test environment according to the topology connection attribute and the topology priority, and the topology of each task introduces a priority-based preemption mechanism, thereby realizing the automation process of topology management. The utilization efficiency of the topology in the laboratory is improved, the execution of important tasks is preferentially ensured, and a stable and feasible method is provided for the reasonable distribution of the topology.
Drawings
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a more detailed flowchart of step S130 of FIG. 1;
fig. 3 is a system structure diagram provided in the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An embodiment of the present invention provides a method for managing use of a physical topology, as shown in fig. 1, the method includes:
s110, acquiring an occupiable topology set;
the topology set is a physical testing topology environment, and can be generated according to the actual environment of a laboratory and completed by using a topology discovery method, wherein the physical testing topology environment is preferably a topology environment for executing a testing task, and other topology connections which cannot be occupied need to be removed when the topology discovery method is used. In addition, drawing of the physical test topological environment by using a manual method is also feasible. Both methods require prior knowledge of the available physical test topology environment. The physical test topology environment uses an information base composed of a topology legend and description information of each node of the topology map to describe the specific information of the available test environment in detail, including the description of the test equipment, the connection address of the test equipment, the description of the connection relation between the test equipment, the description of the connection port attribute of the test equipment, such as port Speed, port number, port photoelectric attribute and information; and Media Type and connection address.
And S120, acquiring the topology requirement of the test task.
The requirement of the topology of the test task is obtained by inputting the requirement of the topology occupation of the test task or releasing the requirement. The two requirements can be input manually or according to the actual operation flow by using an automatic test operation device. The topology requirements of the test task input in the manual and automatic modes are the same, and the priority, the types of the devices, the connection relationship between the devices and the attribute description of the connection port of the device of the test task topology in the requirements need to be described in detail. And the user sets the priority of the test task topology according to the task importance.
S130, selecting a topology example which is adaptive to the topology of the test task in the topology set according to the requirement;
as shown in fig. 2, the step S130 more specifically includes:
s131, selecting a topology subset which is idle or has a topology priority lower than the topology priority of the current test task in the topology subset according to the topology requirement of the current test task;
and screening out a physical test topology subset with idle or topology priority smaller than the topology priority of the test task in the physical test topology environment. The physical test topology environment does not initially contain topology priority description, and the topology priority here comes from the input and feedback of the test task topology demand control end and the test topology scheduling device in the use process and changes in real time. In this embodiment, preferably, the priority value of the topology when idle is the lowest value.
S132, a topology example of the topology of the test task at this time is adapted to the topology subset.
And adapting a topology example suitable for the topology requirement of the test task in the physical test topology subset, wherein port photoelectric attributes and port rates are required to be referred during adaptation, and the topology with idle and lower priority values is preferentially adapted.
According to the topology priority described by the topology requirement of the test task, a physical test topology subset which is idle or has a priority lower than the topology priority of the test task is selected in a physical test topology environment, a proper topology example is selected from the physical test topology subset to be used for the test task, and the device type and the device connection port attribute are required to be referred when the proper topology example is selected. The adaptation process adopts a traversal mode to obtain all adaptation results meeting the test task topology (each adaptation is carried out in a physical test topology subset until all non-repeated adaptation results are found out), and if a plurality of adaptation results exist, one of the idle or lower topology priority is preferentially selected.
And S140, executing the execution operation of the test task topology according to the topology example.
The executing operation specifically includes: and testing recovery operation, occupation operation and/or release operation of the task topology.
In this embodiment, the performing, according to the topology instance, the occupation operation of the test task topology specifically includes:
arranging an occupation plan of the test task topology according to the use condition of the physical test topology subset, and executing test topology occupation operation if the test task topology is adapted to the full-idle topology example; if the topology is adapted to the topology example and the topology is occupied and connected by the current test task topology, judging whether to preempt or not according to the priority of the current test task topology and the priority of the current test task topology, and if the priority of the current test task topology is higher than the priority of the current test task topology, preempting and executing the occupation operation of the test topology; and if the priorities are the same, reserving, and executing the occupation operation of the test topology after the current test task topology of the topology example is released.
In this embodiment, if the priorities of the plurality of test task topologies are the same, a queuing reservation policy is adopted. When the execution of the test task is finished every time, if the test task topology re-adaptation enabling is set, recalculation can be carried out according to the current updated physical test topology subset, and the method can prevent certain test tasks with lower priorities from starving.
In addition, the topology occupation operation may be occupation between single-user and multi-task, or may be occupation between multiple users, and the resource utilization rate needs to be considered when using the topology occupation operation, so that unnecessary occupation events should be avoided.
In addition, when setting the priority of submitting the task topology, the user needs to balance the task scale, the running time and other detailed factors of the task topology under test, and if the running time of the task topology under test is short or the actual urgency is not high, the user proposes to set the lower priority. Since the topological environment occupying the other tasks also consumes a certain time.
In this embodiment, the performing, according to the topology instance, the release operation of the test task topology specifically includes:
revoking the occupation of the topology example by the topology of the test task; executing the release operation of the topology of the test task, restoring the topology of the test task, and if the topology is idle, setting the priority of the topology of the test task to be the lowest value; and if the task is preempted, setting the topology priority as the priority value of the task.
The present invention also provides a physical topology use management system, as shown in fig. 3, the system including:
a topology set obtaining device 210, configured to obtain an occupiable topology set; the topology set comprises information for describing the available physical test environment in detail through an information base composed of each physical device legend and each device description information, and the information comprises test device description, connection relation description among the test devices and test device connection port information description.
The requirement control end 220 is used for acquiring the requirement of the topology of the test task; the requirement control terminal 220 receives the topology occupation requirement or the release requirement of the test task, which is automatically input by a user or other equipment. Namely: the two requirements can be input manually or according to the actual operation flow by using an automatic test operation device.
The adapting device 230 is configured to select a topology instance adapted to the topology of the test task in the topology set according to the requirement; namely: and selecting a proper topology example from a physical test topology environment according to the requirement description of the topology of the test task at this time for the topology of the test task at this time. The topology example is generated from a physical test topology subset meeting the requirement of the test task through the adapter, and the topology example comprises the one-to-one correspondence between the current test task topology and each element of the physical test topology subset, namely, a physical topology example of the current test task topology is generated.
Specifically, in this embodiment, the adapting device 230 is configured to select, according to the topology requirement of the current test task, a topology subset that is idle or has a topology priority lower than the topology priority of the current test task in the topology subset, and adapt a topology instance of the topology of the current test task in the topology subset.
And the scheduling device 240 is configured to perform an execution operation of the test task topology according to the topology instance.
Specifically, the scheduling device 240 performs various operations such as recovering the topology of the test task, occupying the topology of the test task, and releasing the topology of the test task according to the topology example obtained after the operation of the adapting device 230. Meanwhile, in the process of executing the above operation, the scheduling device 240 needs to feed back the topology real-time information of the test task to the adapting device 230.
In other embodiments, more specifically, the scheduling device 240, when performing the occupation operation, specifically, arranges the occupation plan of the test task topology according to the usage situation of the physical test topology subset, and if the occupation plan is adapted to the full-idle topology example, performs the test topology occupation operation; if the topology is adapted to the topology example and the topology is occupied and connected by the current test task topology, judging whether to preempt or not according to the priority of the current test task topology and the priority of the current test task topology, and if the priority of the current test task topology is higher than the priority of the current test task topology, preempting and executing the occupation operation of the test topology; and if the priorities are the same, reserving, and executing the occupation operation of the test topology after the current test task topology of the topology example is released.
In other embodiments, more specifically, when the scheduling device 240 performs the release operation, it specifically includes: revoking the occupation of the topology example by the topology of the test task; executing the release operation of the topology of the test task, restoring the topology of the test task, and if the topology is idle, setting the priority of the topology of the test task to be the lowest value; and if the task is preempted, setting the topology priority as the priority value of the task. These released topology state changes are immediately sent to the adapting means 230.
In the above embodiment, the system provides a graphical interface for managing the test topology, and visually displays the connection relationship, the port information, the occupation situation, and the like of the test topology, where the occupation situation may color the topology map according to the priority of the topology. In addition, the system can also be used together with an automatic test execution system, and if the system is used as a topology management system, the requirement for topology occupation or release needs to be input manually.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method for managing use of a physical topology, comprising:
acquiring an occupiable topology set;
acquiring the topology requirement of the test task;
selecting a topology example which is adaptive to the topology of the test task in the topology set according to the requirement;
executing the test task topology according to the topology example; wherein,
the execution operation comprises an occupation operation of a test task topology, and the occupation operation specifically comprises:
arranging an occupation plan of the test task topology according to the use condition of the physical test topology subset, and executing test topology occupation operation if the test task topology is adapted to the full-idle topology example;
if the topology is adapted to the topology example and the topology is occupied and connected by the current test task topology, judging whether to preempt or not according to the priority of the current test task topology and the priority of the current test task topology, and if the priority of the current test task topology is higher than the priority of the current test task topology, preempting and executing the occupation operation of the test topology; and if the priorities are the same, reserving, and executing the occupation operation of the test topology after the current test task topology of the topology example is released.
2. The method according to claim 1, wherein the selecting a topology instance in the topology set according to the requirement, the topology instance being adapted to the topology requirement of the test task at this time, specifically comprises:
selecting a topology subset with an idle or topology priority smaller than the topology priority of the test task in the topology set according to the topology requirement of the test task;
and adapting a topology example of the topology of the test task in the topology subset.
3. The method of claim 2, wherein the performing further comprises a recovery operation and/or a release operation of the test task topology.
4. The method of claim 3, wherein the releasing operation comprises:
revoking the occupation of the topology example by the topology of the test task;
executing the release operation of the topology of the test task, restoring the topology of the test task, and if the topology is idle, setting the priority of the topology of the test task to be the lowest value; and if the task is preempted, setting the topology priority as the priority value of the task.
5. A physical topology usage management system, comprising:
a topology set acquisition means for acquiring an occupiable topology set;
the requirement control end is used for acquiring the requirement of the topology of the test task;
the adaptive device is used for selecting a topology example adaptive to the topology of the test task in the topology set according to the requirement;
the scheduling device is used for executing the execution operation of the test task topology according to the topology example; wherein,
the execution operation comprises an occupation operation of a test task topology, and the occupation operation specifically comprises:
arranging an occupation plan of the test task topology according to the use condition of the physical test topology subset, and executing test topology occupation operation if the test task topology is adapted to the full-idle topology example;
if the topology is adapted to the topology example and the topology is occupied and connected by the current test task topology, judging whether to preempt or not according to the priority of the current test task topology and the priority of the current test task topology, and if the priority of the current test task topology is higher than the priority of the current test task topology, preempting and executing the occupation operation of the test topology; and if the priorities are the same, reserving, and executing the occupation operation of the test topology after the current test task topology of the topology example is released.
6. The system according to claim 5, wherein the adapting device is further configured to select, according to the topology requirement of the current test task, a topology subset that is idle or has a topology priority lower than the topology priority of the current test task in the topology set, and adapt the topology instance of the current test task topology in the topology subset.
7. The system of claim 6, wherein the performing operation further comprises a recovery operation and/or a release operation of the test task topology.
8. The system of claim 7, wherein the scheduling means is further configured to: revoking the occupation of the topology example by the topology of the test task; executing the release operation of the topology of the test task, restoring the topology of the test task, and if the topology is idle, setting the priority of the topology of the test task to be the lowest value; and if the task is preempted, setting the topology priority as the priority value of the task.
CN201010508293.6A 2010-10-14 2010-10-14 Physical topology use management method and system Active CN102013993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010508293.6A CN102013993B (en) 2010-10-14 2010-10-14 Physical topology use management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010508293.6A CN102013993B (en) 2010-10-14 2010-10-14 Physical topology use management method and system

Publications (2)

Publication Number Publication Date
CN102013993A CN102013993A (en) 2011-04-13
CN102013993B true CN102013993B (en) 2014-06-11

Family

ID=43844021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010508293.6A Active CN102013993B (en) 2010-10-14 2010-10-14 Physical topology use management method and system

Country Status (1)

Country Link
CN (1) CN102013993B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864069B (en) * 2017-10-27 2021-09-17 安徽皖通邮电股份有限公司 Method for realizing automatic cloud testing of communication equipment
CN108616424B (en) * 2018-04-26 2021-04-06 新华三技术有限公司 Resource scheduling method, computer equipment and system
CN110830790A (en) * 2018-08-08 2020-02-21 浙江宇视科技有限公司 Method and device for intelligently building automatic testing networking environment
CN113759852B (en) * 2021-09-16 2022-12-06 无锡积塔技术有限公司 Programming method, programming language, operation method and operation system for automatic control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227350A (en) * 2008-02-03 2008-07-23 中兴通讯股份有限公司 System for parallel executing automatization test based on priority level scheduling and method thereof
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN101706799A (en) * 2009-11-20 2010-05-12 中兴通讯股份有限公司 Method and device for realizing automated testing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6812337B1 (en) * 1999-04-01 2004-11-02 The Governing Council Of The University Of Toronto Presenilin associated membrane protein and uses thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227350A (en) * 2008-02-03 2008-07-23 中兴通讯股份有限公司 System for parallel executing automatization test based on priority level scheduling and method thereof
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN101706799A (en) * 2009-11-20 2010-05-12 中兴通讯股份有限公司 Method and device for realizing automated testing

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
Miroslaw Malek et.al.Topological testing.《AT&amp *
Miroslaw Malek et.al.Topological testing.《AT&T,office of naval research under grants》.1989,第1-24页.
T,office of naval research under grants》.1989,第1-24页. *
自动化测试的研究和探讨;郭伟斌等;《自动化测试的研究和探讨》;20081231;第21卷(第12期);第10-13页 *
郭伟斌等.自动化测试的研究和探讨.《自动化测试的研究和探讨》.2008,第21卷(第12期),第10-13页.

Also Published As

Publication number Publication date
CN102013993A (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN106371918B (en) Task cluster schedule management method and device
CN108959292B (en) Data uploading method, system and computer readable storage medium
CN111950988B (en) Distributed workflow scheduling method and device, storage medium and electronic equipment
WO2019037203A1 (en) Application program performance testing method, device, computer equipment, and storage medium
CN103309738A (en) User job scheduling method and device
CN102013993B (en) Physical topology use management method and system
WO2019104916A1 (en) Development role creation method, device and equipment for test case, and storage medium
CN113612654B (en) Vehicle-mounted gateway function test method based on database
US20090070766A1 (en) Dynamic workload balancing in a thread pool
CN105988904A (en) Self-adaptive testing method and system
CN109656733A (en) The method and apparatus of the more OCR recognition engines of intelligent scheduling
CN112015549A (en) Method and system for selectively preempting scheduling nodes based on server cluster
CN113282402A (en) Test task scheduling method oriented to complex resource constraint
CN108900627A (en) A kind of network request method, terminal installation and storage medium
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN108023905B (en) Internet of things application system and method
CN107741873A (en) Method for processing business and device
CN110247854B (en) Multi-level service scheduling method, scheduling system and scheduling controller
CN110868330B (en) Evaluation method, device and evaluation system for CPU resources which can be divided by cloud platform
CN111581087A (en) Application program testing method and device
CN104065684A (en) Information processing method, electronic device and terminal device
CN106598721B (en) Media asset data streaming method and device
CN115309558A (en) Resource scheduling management system, method, computer equipment and storage medium
CN107329819A (en) A kind of job management method and device

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