CN105610646B - Test method, apparatus and system based on distributed virtual network device - Google Patents
Test method, apparatus and system based on distributed virtual network device Download PDFInfo
- Publication number
- CN105610646B CN105610646B CN201511019066.6A CN201511019066A CN105610646B CN 105610646 B CN105610646 B CN 105610646B CN 201511019066 A CN201511019066 A CN 201511019066A CN 105610646 B CN105610646 B CN 105610646B
- Authority
- CN
- China
- Prior art keywords
- test
- virtual network
- network device
- flow
- forwarding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/123—Evaluation of link metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of test methods based on distributed virtual network device, apparatus and system.Wherein, which includes: test and management module, is set to physical machine domain or virtual machine domain, for generating corresponding test instruction according to pre-set test method;At least one traffic generating module, is set to physical machine domain, connect with test and management module, for instructing according to test, generates test flow corresponding with test instruction;Virtual network device is set to virtual machine domain, connect at least one traffic generating module, is forwarded operation to test flow, and operate according to forwarding and generate test result.The present invention solves the technical issues of can not stablizing to distributed virtual network device is based on, efficient test.
Description
Technical field
The present invention relates to virtualization and network equipment fields, are based on distributed virtual network in particular to one kind
The test method of equipment, apparatus and system.
Background technique
It (refers in particular to connect different void inside physical switches and physical host by connection physical server in virtual network
The double layer network of the virtual switch composition of quasi- machine) in, (refer in particular to be connected to the processing in virtual network to improve the network equipment
The network equipment of three layers and the above flow) flexibility and versatility, the network equipment can realize in the form of virtual machine.Such as it is empty
Quasi- firewall or virtual attack-detection-device.Virtual network device can generally be connected to the void operated on host
Quasi- switch module receives and dispatches message.
Since virtual network scale can carry out dynamic expansion according to actual needs, in the form of separate unit virtual machine existing for void
The quasi- network equipment can not adapt to the variation of network size.It, can be using distribution in order to improve the scalability of virtual network device
Formula framework, i.e., more virtual robot arms are at a distributed virtual network device, wherein each virtual machine be referred to as it is virtual
A subelement in the network equipment.
The subelement of virtual network device includes forwarding subelement and control subelement.The forwarding subelement of same type opens
It moves on different physical hosts, is responsible for data traffic of the processing from virtual switch, according to preconfigured regular logarithm
It is forwarded according to flow.And it controls subelement and is responsible for coordinating each forwarding subelement, issues configuration information and synchronize each turn
Send out the state etc. of subelement.It is single to allow virtual network device to increase or reduce forwarding according to the scale of virtual network
The quantity of member.
In the prior art, it for the network equipment in the distributed network based on virtual machine, is often passed using with test
The identical test method of the system network equipment is tested, and tests virtual net by generating the test flow of different type and scale
The function and performance indicator of network equipment.
In practical applications, mainly include the following two kinds in the implementation method of the prior art:
Method one by the physical host where virtual network device, while running two test virtual machines, passes through
Transmitting-receiving tests flow to test the performance of each subelement.But since test flow is generated by virtual machine, it will usually deposit
It is lost in performance;And since virtual machine is influenced by physical host and other virtual machines, it is difficult to ensure that sending a large amount of messages
When stability.
Method two, as shown in Figure 1, being set physical interface and virtual network by virtual switch inside physical host
Standby interface is connected, then tests each height list in virtual network by the physical testing equipment of connection physics host-physical interface
The performance of member.But static test is carried out to single subelement by physical testing equipment, it can not be moved as desired
State extension.And due to the limitation of physical testing equipment itself, degree of concurrence is unable to reach the test of the distributed virtual network equipment
Scale, it is impossible to be used in test the performance of whole system.
In addition, the flexibility in order to guarantee test, the test flow that existing test method generates are required by virtual
Therefore interchanger also brings along certain unstable factor.
For it is above-mentioned in the prior art can not be to stablize based on distributed virtual network device, efficiently test
Problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of test method based on distributed virtual network device, apparatus and system,
To solve at least the technical issues of stablizing, efficiently testing can not be carried out to based on distributed virtual network device.
According to an aspect of an embodiment of the present invention, a kind of test system based on distributed virtual network device is provided
System, comprising: in a test system include: physical machine domain and virtual machine domain, wherein system further include: test and management module, setting
In physical machine domain or virtual machine domain, for generating corresponding test instruction according to pre-set test method;At least one stream
Generation module is measured, physical machine domain is set to, is connect with test and management module, for being instructed according to test, generates and is instructed with test
Corresponding test flow;Virtual network device is set to virtual machine domain, connect at least one traffic generating module, to test
Flow is forwarded operation, and is operated according to forwarding and generate test result.
Further, above-mentioned virtual network device includes: at least one forwarding subelement, is connect with traffic generating module,
Test flow for generating to flow generation module is forwarded;First control subelement, respectively with forwarding subelement and survey
Management module connection is tried, for obtaining test result corresponding with subelement is forwarded, wherein test result includes at least: forwarding
Success rate receives flow and converting flow.
Further, the quantity of above-mentioned traffic generating module and forwarding subelement correspond, and pass through virtual interface point
It is not connect with forwarding subelement.
Further, above-mentioned traffic generating module includes: the second control subelement, connect, is used for test and management module
It is instructed according to test, determines the discharge pattern and uninterrupted for generating test flow, and the data that test flow will be actually generated
Amount is sent to test and management module;Flow submodule is connect with the second control subelement with forwarding subelement respectively, is generated and is flowed
Type and the corresponding test flow of uninterrupted are measured, and is sent to forwarding subelement.
According to another aspect of an embodiment of the present invention, a kind of test based on distributed virtual network device is additionally provided
Method, comprising: the test macro using test method includes: test and management module, at least one stream for being set to physical machine domain
Amount generation module and the virtual network device for being set to virtual machine domain, traffic generating module and forwarding in virtual network device
Unit corresponds, wherein method includes: the testing scheme obtained for being tested virtual network device;It determines and surveys
The corresponding test action of examination scheme and test parameter;According to test action and test parameter, test instruction is generated, wherein flow
Generation module instructs the test flow for generating respective type to test virtual network device according to test.
Further, when testing the forwarding subelement in virtual network device, testing scheme is included at least: single
Only static test, complete static test and the test that influences each other.
Further, after according to test action and test parameter, generating test instruction, method further include: from virtual
Test result corresponding with forwarding subelement is read in the network equipment, wherein test result includes at least: forwarding turning for subelement
It sends out success rate, receive flow and converting flow;Forwarding success rate, reception flow and converting flow are summarized, generated virtual
The integrated testability result of the network equipment.
Further, after reading test result corresponding with forwarding subelement in virtual network device, method is also
Include: traffic generating module according to test result corresponding with forwarding subelement, adjusts the test flow of generation.
According to another aspect of an embodiment of the present invention, a kind of test based on distributed virtual network device is additionally provided
Device, comprising: module is obtained, for obtaining the testing scheme for being tested virtual network device;
Determining module, for determining test action corresponding with testing scheme and test parameter;First generation module, is used for
According to test action and test parameter, test instruction is generated, wherein traffic generating module instructs according to test and generates respective type
Test flow virtual network device is tested.
Further, above-mentioned apparatus further include: read module, for being read from virtual network device and forwarding subelement
Corresponding test result, wherein test result includes at least: it forwards the forwarding success rate of subelement, receive flow and forwarding flow
Amount;Second generation module generates virtual network device for summarizing to forwarding success rate, reception flow and converting flow
Integrated testability result.
Further, above-mentioned apparatus further include: adjustment module, for traffic generating module according to corresponding with forwarding subelement
Test result, adjust the test flow of generation.
In embodiments of the present invention, using the testing scheme obtained for being tested virtual network device;Determine with
The corresponding test action of testing scheme and test parameter;According to test action and test parameter, test instruction is generated, wherein stream
The mode that amount generation module instructs the test flow for generating respective type to test virtual network device according to test, passes through
Physical machine domain and virtual machine domain, wherein system further include: test and management module is set to physical machine domain or virtual machine domain, is used for
Corresponding test instruction is generated according to pre-set test method;At least one traffic generating module, is set to physical machine domain,
It is connect with test and management module, for instructing according to test, generates test flow corresponding with test instruction;Virtual network is set
It is standby, be set to virtual machine domain, connect at least one traffic generating module, operation is forwarded to test flow, and according to turn
Hair operation generate test result, reach using data on flows transmit shortest path to the virtual network device under virtual environment into
The purpose of row test, to realize the technology that flexible and efficient each equipment in distributed virtual network is tested
Effect, and then solve and can not carry out the technical issues of stablizing, efficiently testing to based on distributed virtual network device.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of distributed virtual device test system according to prior art;
Fig. 2 is a kind of test macro optionally based on distributed virtual network device according to an embodiment of the present invention
Schematic diagram;
Fig. 3 is a kind of test macro optionally based on distributed virtual network device according to an embodiment of the present invention
Schematic diagram;
Fig. 4 is a kind of test method optionally based on distributed virtual network device according to an embodiment of the present invention
Flow chart;
Fig. 5 is a kind of test device optionally based on distributed virtual network device according to an embodiment of the present invention
Schematic diagram;
Fig. 6 is a kind of test device optionally based on distributed virtual network device according to an embodiment of the present invention
Schematic diagram;And
Fig. 7 is a kind of test device optionally based on distributed virtual network device according to an embodiment of the present invention
Schematic diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, the system for providing a kind of test macro based on distributed virtual network device is real
Example is applied, Fig. 2 is the schematic diagram of the test macro according to an embodiment of the present invention based on distributed virtual network device, such as Fig. 2
It is shown, it in a test system include: physical machine domain 100 and virtual machine domain 200, wherein the system includes the following steps: testing tube
Manage module 10, at least one traffic generating module 20 and virtual network device 30.
Wherein, test and management module 10, for generating corresponding test instruction according to pre-set test method;At least
One traffic generating module 20 is set to physical machine domain 100 and connect with test and management module 10, raw for instructing according to test
At test flow corresponding with test instruction;Virtual network device 30 is set to virtual machine domain 200, raw at least one flow
It is connected at module 20, operation is forwarded to test flow, and operate according to forwarding and generate test result.
Specifically, due in distributed virtual network, when distributing virtual network equipment, is run on physical equipment, because
This, can be divided into physical machine domain 100 and virtual machine domain 200, traffic generating module 20 be set in physical machine domain 100, virtually
The network equipment 30 is arranged in virtual machine domain 200, and test and management module 30 can be arranged at physical machine domain 100,
It can be arranged at virtual machine domain 200, can also be set in other equipment, be not particularly limited herein.
After the starting of test and management module 10, control is sent to the traffic generating module 20 being set in physical machine domain 100
System instruction generates corresponding test flow by traffic generating module 20.And the test flow of generation is sent to and is set to virtually
In virtual network device 30 in machine domain 200, virtual network device 30 is tested.Virtual network device 30 is to receiving
Test data is forwarded, and generates test number result.
For virtual network device, the path that flow reaches equipment is different, and different performances will be brought to be lost.Its
In, if test virtual machine of the flow on physical host identical with virtual network device, it is necessary to empty by test
The Microsoft Loopback Adapter driving of quasi- machine and virtual switch get to virtual network device;If testing flow from physical host
Except, it is necessary to by the physical network card of physical host, then virtual switch is arrived, finally gets to virtual network device;Such as
Fruit tests flow from the physical host level where virtual network device, then testing flow can be directly by virtually connecing
Mouth reaches virtual network device.
When testing system, choosing shortest path helps to reduce to interlude and for test equipment
It relies on, can relatively reliable, efficiently and accurately measure out the performance indicator of virtual network device.Therefore, pass through above-mentioned system
System can achieve the mesh tested using the shortest path that data on flows is transmitted the virtual network device under virtual environment
, the technical effect that flexible and efficient each equipment in distributed virtual network is tested is realized, is solved existing
The problem of stablizing, efficiently testing can not be carried out to based on distributed virtual network device by having in technology.
As an alternative embodiment, as shown in figure 3, above-mentioned virtual network device 30 includes: at least one forwarding
Subelement 301 and the first control subelement 302.
Wherein, at least one forwarding subelement 301, connect, for flow generation module 20 with traffic generating module 20
The test flow of generation is forwarded;First control subelement 302, respectively with forwarding subelement 301 and test and management module 10
Connection, for obtaining test result corresponding with subelement 301 is forwarded, wherein test result includes at least: forwarding success rate,
Receive flow and converting flow.
Specifically, the first control subelement 302 and test and management module 10 establish communication connection, in test and management module 10
After starting, can by first in virtual network device 30 control subelement 302 acquire each virtual network device 30 into
The special photos and sending messages of row forwarding.
As an alternative embodiment, as shown in figure 3, the quantity of traffic generating module 20 and forwarding subelement 301
One-to-one correspondence, and by virtual interface 303 with forward subelement 301 connect.
As an alternative embodiment, as shown in figure 3, traffic generating module 20 includes: the second control subelement 201
With flow submodule 202.
Wherein, the second control subelement 201, connect with test and management module 10, for being instructed according to test, determines and generates
The discharge pattern and uninterrupted of flow are tested, and the data volume for actually generating test flow is sent to test and management module
10;Flow submodule 202, respectively with second control subelement 201 with forwarding subelement 301 connect, generation and discharge pattern and
The corresponding test flow of uninterrupted, and it is sent to forwarding subelement 301.
Specifically, traffic generating module 20 runs on the physical machine domain 100 in physical host, comprising: the second control is single
Member 201 and 202 two parts of flow submodule.Second control subelement 201 is responsible for receiving the survey from test and management module 10
Examination instruction, control flow submodule 202 send different types of test flow.Flow submodule 202 with virtual network by setting
Virtual interface 207 and forwarding subelement 301 in standby 30 establish communication connection.The test flow that flow submodule 202 is sent is straight
Receive and send the forwarding subelement 301 into virtual network device 30.
As an alternative embodiment, flow submodule 202 can also count the test flow sent and received, and
Result will be sent and be sent to the second control subelement 201, the second control subelement 201 can be according to the failure sent in result
Ratio is adjusted preset test flow, and finally obtains a test result.
Meanwhile second control subelement 201 real-time testing data and final test data can be sent to test and management
Module 10.Test and management module 10 summarizes the statistical data sent in each flow generation subsystem 20, is analyzed, and obtains
The real-time and final test data of tested virtual network device 30.
In conclusion virtual network can realize the variation of scale by the increase and decrease of physical host, and distributed virtual
The network equipment can also realize the dynamic regulation of overall performance by increasing or reducing forwarding subelement.
The present invention is directed to the characteristics of distributed virtual network equipment, and the physical host where making each subelement all generates survey
Flow is tried, while all forwarding subelements are tested using test flow, thus to the performance number of each forwarding subelement
According to progress Macro or mass analysis.Also, the present invention can also make test macro with forwarding subelement quantity change and synchronize extension and
It shrinks.
According to embodiments of the present invention, a kind of method for providing test method based on distributed virtual network device is real
Apply example, it should be noted that step shown in the flowchart of the accompanying drawings can be in the meter of such as a group of computer-executable instructions
It is executed in calculation machine system, although also, logical order is shown in flow charts, and it in some cases, can be with difference
Shown or described step is executed in sequence herein.
Fig. 4 is the flow chart of the test method according to an embodiment of the present invention based on distributed virtual network device, such as
Shown in Fig. 4, the test macro using test method includes: test and management module 10, at least one for being set to physical machine domain 100
Traffic generating module 20 and the virtual network device 30 for being set to virtual machine domain 200, traffic generating module 20 are set with virtual network
Forwarding subelement 301 in standby 30 corresponds, wherein method includes:
Step S102 obtains the testing scheme for being tested virtual network device.
Step S104 determines test action corresponding with testing scheme and test parameter.
Step S106 generates test instruction, wherein traffic generating module is according to survey according to test action and test parameter
The test flow that examination instruction generates respective type tests virtual network device.
Specifically, the forwarding subelement in traffic generating submodule and virtual network device corresponds, when needs are to void
It, can be simultaneously to one or more flows corresponding with forwarding subelement when forwarding subelement in the quasi- network equipment is tested
Generation module sends test instruction, can be realized and is carried out to the forwarding subelement in virtual network device with different testing schemes
Test.
S102 to step S106 through the above steps determines specific test action according to pre-set testing scheme
With test parameter corresponding with test action.According to above-mentioned every step test action and corresponding test parameter, generate for void
The test instruction that the quasi- network equipment is tested, and test instruction is sent to traffic generating module.Traffic generating module can be with
Corresponding test flow is generated according to test instruction, and is sent in the corresponding forwarding subelement in virtual network device.
Therefore, through the above steps, can solve in the prior art can not to based on distributed virtual network device into
The problem of row is stablized, is efficiently tested.
As an alternative embodiment, when testing the forwarding subelement in virtual network device, test
Scheme includes at least: independent static test, complete static test and the test that influences each other.
Specifically, being illustrated respectively to the embodiment of above-mentioned testing scheme in practical application:
The embodiment of the testing scheme of independent static test are as follows: test and management module controls some traffic generating mould
Block, according to the test flow that pre-set test parameter is sent to forwarding subelement, to test the function of the forwarding subelement
Energy and/or performance indicator.
The embodiment of the testing scheme of complete static test are as follows: test and management module is sent out to whole traffic generating modules
Control instruction is sent, whole traffic generating modules is controlled to corresponding forwarding subelement and sends same type and same size
Test flow, thus the allomeric function and/or performance indicator of test distributed virtual network device.Wherein, due to each stream
The test flow that amount generation module is sent all is present in the inside of a physical host, it can be ensured that between test flow not
It can interact.
Influence each other test testing scheme embodiment are as follows: be illustrated by taking performance test as an example, when some turn
When the performance indicator and whole performance indicator for sending out subelement do not have linear relationship, then need between each forwarding subelement
Influence each other and tested.Firstly, by way of independent static test to first forwarding subelement test, obtain with
Its corresponding full test flow.When the first forwarding subelement carries out stable forwarding operation with full test flow, gradually
Increase the test flow sent to the second forwarding subelement, until the forwarding of the first forwarding subelement or the second forwarding subelement
Failure rate reaches preset value.After retransmission failure rate reaches preset value and stablizes, gradually increase to third forwarding subelement hair
The test flow sent.And so on, dynamic performance index corresponding with each forwarding subelement in virtual network device is obtained, from
And determine interacting between forwarding subelement.
As an alternative embodiment, generating test instruction according to test action and test parameter in step S106
Later, the above method can also include:
Step S108 reads test result corresponding with forwarding subelement, wherein test result from virtual network device
It includes at least: forwarding the forwarding success rate of subelement, receives flow and converting flow.
Step S110 summarizes forwarding success rate, reception flow and converting flow, generates the whole of virtual network device
Body test result.
Specifically, by step S108 to step S110, test and management module 10 is read from virtual network device 30 and
The corresponding forwarding success rate of each forwarding subelement 103 receives the parameters such as flow, converting flow, and will be with each forwarding subelement
103 corresponding parameters are summarized, to obtain the whole test result of virtual network device 30.
As an alternative embodiment, in practical application, test and management module can by poll or by
The dynamic mode for receiving message informing, monitors the forwarding subelement in the distributed virtual network equipment.In distributed virtual
In the network equipment, when there is new forwarding subelement to be injected towards in test macro, test and management module will be for new forwarding
It is arranged on physical host where unit and starts a corresponding traffic generating module.It is being tested when at this time
When, test and management module generates test instruction corresponding with the traffic generating module newly started, so that dynamic is to new forwarding
Unit is to whole influence.
As an alternative embodiment, being read from virtual network device in step S108 corresponding with forwarding subelement
Test result after, the above method can also include:
Step S109, traffic generating module adjust the test stream of generation according to test result corresponding with forwarding subelement
Amount.
Specifically, traffic generating module can obtain single with each forwarding from test and management module in step S109
The corresponding test result of member, and the test flow generated according to test result dynamic adjustment, to realize in test according to survey
Examination scheme carries out the purpose of dynamic adjustment to the test flow of transmission.
According to embodiments of the present invention, the device for providing a kind of test device based on distributed virtual network device is real
Example is applied, Fig. 5 is the schematic diagram of the test device according to an embodiment of the present invention based on distributed virtual network device, such as Fig. 5
Shown, which includes: to obtain module 22, determining module 24 and the first generation module 26.
Wherein, module 22 is obtained, for obtaining the testing scheme for being tested virtual network device;Determining module
24, for determining test action corresponding with testing scheme and test parameter;First generation module 26, for according to test action
And test parameter, generate test instruction, wherein traffic generating module instructs the test flow pair for generating respective type according to test
Virtual network device is tested.
Specifically, the forwarding subelement in traffic generating submodule and virtual network device corresponds, when needs are to void
It, can be simultaneously to one or more flows corresponding with forwarding subelement when forwarding subelement in the quasi- network equipment is tested
Generation module sends test instruction, can be realized and is carried out to the forwarding subelement in virtual network device with different testing schemes
Test.
It is determined by above-mentioned acquisition module 22, determining module 24 and generation module 26 according to pre-set testing scheme
Specific test action and test parameter corresponding with test action.According to above-mentioned every step test action and corresponding test ginseng
Number generates the test instruction for being tested virtual network device, and test instruction is sent to traffic generating module.Stream
Corresponding test flow can be generated according to test instruction by measuring generation module, and be sent to the corresponding forwarding in virtual network device
In subelement.
Therefore, by above-mentioned apparatus, can solve in the prior art can not to based on distributed virtual network device into
The problem of row is stablized, is efficiently tested.
As an alternative embodiment, when testing the forwarding subelement in virtual network device, test
Scheme includes at least: independent static test, complete static test and the test that influences each other.
As an alternative embodiment, as shown in fig. 6, above-mentioned apparatus further include: read module 28 and second generates
Module 30.
Wherein, read module 28, for reading test result corresponding with forwarding subelement from virtual network device,
In, test result includes at least: forwarding the forwarding success rate of subelement, receives flow and converting flow;Second generation module 30,
For summarizing to forwarding success rate, reception flow and converting flow, the integrated testability result of virtual network device is generated.
Specifically, being set by above-mentioned read module 28 and the second generation module 30, test and management module 10 from virtual network
Read the parameters such as forwarding success rate corresponding with each forwarding subelement 103, reception flow, converting flow in standby 30, and will be with
Each forwarding corresponding parameters of subelement 103 are summarized, to obtain the whole test result of virtual network device 30.
As an alternative embodiment, as shown in fig. 7, above-mentioned apparatus further include: adjustment module 29.
Wherein, module 29 is adjusted, for traffic generating module according to test result corresponding with forwarding subelement, adjustment life
At test flow.
Specifically, traffic generating module can obtain and each forwarding from test and management module in adjustment module 29
The corresponding test result of unit, and according to test result dynamic adjustment generate test flow, thus realize test when according to
Testing scheme carries out the purpose of dynamic adjustment to the test flow of transmission.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (11)
1. a kind of test macro based on distributed virtual network device, which is characterized in that the distributed virtual network is set
It is standby to run on physical equipment, it include: physical machine domain and virtual machine domain in the test macro, the physical machine domain and described
Virtual machine domain is set on the same physical equipment, wherein the system also includes:
Test and management module is set to the physical machine domain or the virtual machine domain, for according to pre-set test method
Generate corresponding test instruction;
At least one traffic generating module is set to the physical machine domain, connect with the test and management module, for according to institute
Test instruction is stated, test flow corresponding with the test instruction is generated;
The virtual network device is set to the virtual machine domain, connect with traffic generating module described at least one, to described
Test flow is forwarded operation, and is operated according to the forwarding and generate test result.
2. system according to claim 1, which is characterized in that the virtual network device includes:
At least one forwarding subelement, connect, the institute for generating to the traffic generating module with the traffic generating module
Test flow is stated to be forwarded;
First control subelement, connect respectively with the forwarding subelement and the test and management module, be used for acquisition with it is described
Forward the corresponding test result of subelement, wherein the test result includes at least: forwarding success rate, receive flow and
Converting flow.
3. system according to claim 2, which is characterized in that the quantity of the traffic generating module and forwarding are single
Member corresponds, and is connect respectively with the forwarding subelement by virtual interface.
4. system according to claim 3, which is characterized in that the traffic generating module includes:
Second control subelement, connect with the test and management module, for being instructed according to the test, determines and generates the survey
The discharge pattern and uninterrupted of flow are tried, and the data volume for actually generating the test flow is sent to the test and management
Module;
Flow submodule connect with the second control subelement with the forwarding subelement respectively, generates and the class of traffic
Type and the corresponding test flow of the uninterrupted, and it is sent to the forwarding subelement.
5. a kind of test method based on distributed virtual network device, which is characterized in that the distributed virtual network is set
Standby to run on physical equipment, the test macro using the test method includes: test and management module, is set to physical machine domain
At least one traffic generating module and be set to the virtual network device in virtual machine domain, the physical machine domain and the virtual machine
Domain is set on the same physical equipment, and the forwarding subelement in the traffic generating module and the virtual network device is one by one
It is corresponding, wherein the described method includes:
Obtain the testing scheme for being tested the virtual network device;
Determine test action corresponding with the testing scheme and test parameter;
According to the test action and the test parameter, test instruction is generated, wherein the traffic generating module is according to
The test flow that test instruction generates respective type tests the virtual network device, and the test flow directly passes through
Virtual interface reaches the virtual network device.
6. according to the method described in claim 5, it is characterized in that, when to the forwarding subelement in the virtual network device into
When row test, the testing scheme is included at least: independent static test, complete static test and the test that influences each other.
7. according to the method described in claim 6, it is characterized in that, according to the test action and the test parameter, life
After test instruction, the method also includes:
Test result corresponding with the forwarding subelement is read from the virtual network device, wherein the test result
Include at least: the forwarding success rate of the forwarding subelement receives flow and converting flow;
The forwarding success rate, the reception flow and the converting flow are summarized, the virtual network device is generated
Integrated testability result.
8. the method according to the description of claim 7 is characterized in that being read and the forwarding from the virtual network device
After the corresponding test result of subelement, the method also includes:
The traffic generating module adjusts the test of generation according to the test result corresponding with the forwarding subelement
Flow.
9. a kind of test device based on distributed virtual network device, which is characterized in that the distributed virtual network is set
Standby to run on physical equipment, the test macro using the test device includes: test and management module, is set to physical machine domain
At least one traffic generating module and be set to the virtual network device in virtual machine domain, the physical machine domain and the virtual machine
Domain is set on the same physical equipment, and the forwarding subelement in the traffic generating module and the virtual network device is one by one
Corresponding, the test and management module includes:
Module is obtained, for obtaining the testing scheme for being tested virtual network device;
Determining module, for determining test action corresponding with the testing scheme and test parameter;
First generation module, for generating test instruction, wherein the stream according to the test action and the test parameter
Amount generation module tests the virtual network device according to the test flow that the test instruction generates respective type, institute
Test flow is stated directly to pass through virtual interface and reach the virtual network device.
10. device according to claim 9, which is characterized in that described device further include:
Read module, for reading test result corresponding with forwarding subelement from the virtual network device, wherein described
Test result includes at least: the forwarding success rate of the forwarding subelement receives flow and converting flow;
Second generation module is generated for summarizing to the forwarding success rate, the reception flow and the converting flow
The integrated testability result of the virtual network device.
11. device according to claim 10, which is characterized in that described device further include:
Module is adjusted, for the traffic generating module according to the test result corresponding with the forwarding subelement, adjustment
The test flow generated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511019066.6A CN105610646B (en) | 2015-12-30 | 2015-12-30 | Test method, apparatus and system based on distributed virtual network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511019066.6A CN105610646B (en) | 2015-12-30 | 2015-12-30 | Test method, apparatus and system based on distributed virtual network device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105610646A CN105610646A (en) | 2016-05-25 |
CN105610646B true CN105610646B (en) | 2019-06-07 |
Family
ID=55990191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511019066.6A Active CN105610646B (en) | 2015-12-30 | 2015-12-30 | Test method, apparatus and system based on distributed virtual network device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105610646B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850350B (en) * | 2017-02-09 | 2018-10-16 | 珠海格力电器股份有限公司 | Apparatus testing method based on BACnet and system |
CN108632110B (en) * | 2018-03-23 | 2020-06-19 | 北京网测科技有限公司 | Device performance testing method, system, computer device and storage medium |
CN110324203B (en) * | 2019-06-18 | 2022-08-02 | 哈尔滨工业大学(威海) | Multichannel high accuracy network flow generates device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383822A (en) * | 2008-07-10 | 2009-03-11 | 北京邮电大学 | Router virtual machine for aviation telecommunication network |
CN102148716A (en) * | 2010-02-05 | 2011-08-10 | 中国联合网络通信集团有限公司 | Point-to-point system network performance testing method and system thereof |
CN103188116A (en) * | 2011-12-31 | 2013-07-03 | 中国移动通信集团公司 | Network performance detection method and system of blade server |
CN104407910A (en) * | 2014-10-29 | 2015-03-11 | 华南理工大学 | Virtualization server performance monitoring method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8250641B2 (en) * | 2007-09-17 | 2012-08-21 | Intel Corporation | Method and apparatus for dynamic switching and real time security control on virtualized systems |
-
2015
- 2015-12-30 CN CN201511019066.6A patent/CN105610646B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383822A (en) * | 2008-07-10 | 2009-03-11 | 北京邮电大学 | Router virtual machine for aviation telecommunication network |
CN102148716A (en) * | 2010-02-05 | 2011-08-10 | 中国联合网络通信集团有限公司 | Point-to-point system network performance testing method and system thereof |
CN103188116A (en) * | 2011-12-31 | 2013-07-03 | 中国移动通信集团公司 | Network performance detection method and system of blade server |
CN104407910A (en) * | 2014-10-29 | 2015-03-11 | 华南理工大学 | Virtualization server performance monitoring method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105610646A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795596B (en) | Programmable control SDN measuring system and method | |
CN105610646B (en) | Test method, apparatus and system based on distributed virtual network device | |
CN103763130B (en) | Management method, the device and system of large-scale cluster | |
CN104811331A (en) | Visual network operation and maintenance method and device | |
CN104702468B (en) | Determine the method, apparatus and system of transmission path | |
CN104184617A (en) | Method, device and system for configuring pre-emphasis for interconnection equipment and network device | |
CN106302017B (en) | The small capaciated flow network velocity-measuring system of high concurrent and method | |
CN110266368A (en) | Incorporate information network emulation mode based on cloud platform | |
CN106031094A (en) | Accurate measurement of distributed counters | |
CN109327319A (en) | Method, equipment and the system of on-premise network slice | |
CN108964964A (en) | A kind of network topology display methods and device | |
CN108513703A (en) | network performance detection method and device | |
CN110136209A (en) | A kind of camera calibration method, device and computer readable storage medium | |
CN105391601B (en) | A kind of performance test methods and system of Network Management Equipment | |
CN106324383A (en) | Airborne device testing method and system and simulation control testing device | |
CN109690495A (en) | Large scale distributed system summarizes the effective ways with monitoring | |
CN106713010B (en) | A kind of communication means and system of avionics network system | |
CN106293842A (en) | A kind of software installation method and device | |
CN106791679B (en) | A kind of determination method and device of video transmission path | |
CN105376118B (en) | A kind of test method of AFDX interchangers sending performance | |
CN104536926B (en) | The control method and device of serial equipment | |
CN109194545A (en) | A kind of network test platform traffic generating system, method, apparatus and electronic equipment | |
CN106161052B (en) | Network line selection method and network speed-measuring method | |
CN104378256B (en) | The dispatching method and device of performance test data stream based on FPGA | |
CN109714124B (en) | Time synchronization system and method for test system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 215163 No. 181 Jingrun Road, Suzhou High-tech Zone, Jiangsu Province Applicant after: SHANSHI NETWORK COMMUNICATION TECHNOLOGY CO., LTD. Address before: 215163 3rd Floor, 7th Floor, Keling Road, Suzhou Science and Technology City, Jiangsu Province Applicant before: HILLSTONE NETWORKS |
|
GR01 | Patent grant | ||
GR01 | Patent grant |