CN105610646A - Testing method, device and system based on distributed virtual network equipment - Google Patents

Testing method, device and system based on distributed virtual network equipment Download PDF

Info

Publication number
CN105610646A
CN105610646A CN201511019066.6A CN201511019066A CN105610646A CN 105610646 A CN105610646 A CN 105610646A CN 201511019066 A CN201511019066 A CN 201511019066A CN 105610646 A CN105610646 A CN 105610646A
Authority
CN
China
Prior art keywords
test
virtual network
forwarding
subelement
network device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201511019066.6A
Other languages
Chinese (zh)
Other versions
CN105610646B (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.)
Hillstone Networks Co Ltd
Original Assignee
Hillstone Networks 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 Hillstone Networks Co Ltd filed Critical Hillstone Networks Co Ltd
Priority to CN201511019066.6A priority Critical patent/CN105610646B/en
Publication of CN105610646A publication Critical patent/CN105610646A/en
Application granted granted Critical
Publication of CN105610646B publication Critical patent/CN105610646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols 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 testing method, device and system based on distributed virtual network equipment, wherein the system comprises a testing management module, at least one flow generation module and the virtual network equipment, wherein the testing management module is arranged in a physical machine domain or a virtual machine domain and used for generating a corresponding testing instruction according to a preset testing method; the at least one flow generation module is arranged in the physical machine domain, connected with the testing management module and used for generating a testing flow corresponding to the testing instruction according to the testing instruction; and the virtual network equipment is arranged in the virtual machine domain, connected with the at least one flow generation module, and used for forwarding the testing flow and generating a testing result according to the forwarding operation. By means of the invention, the technical problem that the distributed virtual network equipment cannot be tested stably and effectively is solved.

Description

Method of testing based on distributed virtual network device, Apparatus and system
Technical field
The present invention relates to virtual and network equipment field, in particular to one based on distributed virtual networkThe method of testing of equipment, Apparatus and system.
Background technology
(refer in particular to by the physical switches that connects physical server, with the inner difference void that is connected of physical host in virtual networkThe double layer network of the virtual switch composition of plan machine) in, (refer in particular to and be connected in virtual network in order to improve the network equipmentThree layers of processing and the network equipment of above flow) flexibility and versatility, the network equipment can be with the form of virtual machineRealize. For example virtual fire wall, or virtual attack-detection-device. Virtual network device generally can be connected to fortuneThe virtual switch module of row on host received and dispatched message.
Because virtual network scale can be carried out dynamic expansion, the void existing with separate unit virtual machine form according to actual needsIntend the variation that the network equipment cannot adapt to network size. In order to improve the extensibility of virtual network device, can adoptDistributed structure/architecture, i.e. a distributed virtual network device of many virtual machines composition, wherein, each virtual machineBe known as a subelement in virtual network device.
The subelement of virtual network device comprises forwarding subelement and controls subelement. The forwarding subelement of same type opensMove on different physical hosts, be responsible for processing the data traffic from virtual switch, according to pre-configured ruleData traffic is forwarded. Be responsible for coordinating each forwarding subelement, issue configuration information and same and control subelementWalk each state that forwards subelement etc. Thereby virtual network device can be increased according to the scale of virtual network orReduce the quantity that forwards subelement.
In the prior art, for the network equipment in the distributed network based on virtual machine, often adopt with test and passThe system network equipment identical method of testing is tested, and tests void by producing dissimilar and test traffic scaleIntend function and the performance indications of the network equipment.
In actual applications, in the implementation method of prior art, mainly comprise following two kinds:
Method one on the physical host at virtual network device place, is moved two test virtual machines simultaneously, logicalCross the performance of receiving and dispatching test traffic and testing each subelement. But, because test traffic is produced by virtual machine,Conventionally meeting existence energy loss; And because virtual machine is subject to the impact of physical host and other virtual machines, be difficult to ensureStability while sending a large amount of message.
Method two, as shown in Figure 1, in physical host inside, by virtual switch by physical interface and virtual networkThe interface of equipment is connected, more each by connecting in the physical testing testing of equipment virtual network of physical host physical interfaceThe performance of individual subelement. But, by physical testing equipment, single subelement is carried out to static test, cannot be byCarry out dynamic expansion according to demand. And due to the restriction of physical testing equipment self, concurrent degree cannot reach distributed voidIntend the measurement scope of the network equipment, can not be used for testing the performance of whole system.
In addition, in order to ensure the flexibility of test, the test traffic that existing method of testing produces all needs by virtualSwitch, therefore, also can bring certain destabilizing factor.
For in above-mentioned prior art cannot be to stablizing based on distributed virtual network device, test efficientlyProblem, not yet proposes effective solution at present.
Summary of the invention
The embodiment of the present invention provides a kind of method of testing, Apparatus and system based on distributed virtual network device,Cannot be to the technical problem of stablizing based on distributed virtual network device, testing efficiently at least to have solved.
According to the embodiment of the present invention aspect, provide a kind of test based on distributed virtual network device to beSystem, comprising: comprise at test macro: physical machine territory and virtual machine territory, wherein, system also comprises: test and managementModule, is arranged at physical machine territory or virtual machine territory, refers to for generate corresponding test according to the method for testing setting in advanceOrder; At least one flow generation module, is arranged at physical machine territory, is connected, for according to test with test and management moduleInstruction, generates the test traffic corresponding with test instruction; Virtual network device, is arranged at virtual machine territory, with at least oneIndividual flow generation module connects, and test traffic is forwarded to operation, and generates test result according to forwarding operation.
Further, above-mentioned virtual network device comprises: at least one forwards subelement, be connected with flow generation module,Forward for the test traffic that flow generation module is generated; First controls subelement, respectively with forwarding subelementBe connected with test and management module, for obtaining the test result corresponding with forwarding subelement, wherein, test result at leastComprise: forward success rate, receive flow and converting flow.
Further, the quantity of above-mentioned flow generation module is corresponding one by one with forwarding subelement, and divides by virtual interfaceBe not connected with forwarding subelement.
Further, above-mentioned flow generation module comprises: second controls subelement, is connected with test and management module, usesAccording to test instruction, determine the discharge pattern and the uninterrupted that generate test traffic, and reality is generated to test trafficData volume be sent to test and management module; Flow submodule, connects with the second control subelement and forwarding subelement respectivelyConnect, the test traffic that generation is corresponding with discharge pattern and uninterrupted, and be sent to forwarding subelement.
According to the embodiment of the present invention on the other hand, also provide a kind of test based on distributed virtual network deviceMethod, comprising: adopt the test macro of method of testing to comprise: test and management module, be arranged at physical machine territory at leastFlow generation module and be arranged at the virtual network device in virtual machine territory, flow generation module and virtual network deviceIn forwarding subelement corresponding one by one, wherein, method comprises: obtain the survey for virtual network device is testedExamination scheme; Determine test action and the test parameter corresponding with testing scheme; According to test action and test parameter, rawBecome test instruction, wherein, the test traffic that flow generation module generates respective type according to test instruction is to virtual networkTesting equipment.
Further, in the time that the forwarding subelement in virtual network device is tested, testing scheme at least comprises:Static test, complete static test and the test that influences each other separately.
Further, according to test action and test parameter, after generating test instruction, method also comprises: from voidIntend reading the test result corresponding with forwarding subelement in the network equipment, wherein, test result at least comprises: forward sonForwarding success rate, reception flow and the converting flow of unit; Carry out forwarding success rate, reception flow and converting flowGather the integrated testability result of the generating virtual network equipment.
Further, read the test result corresponding with forwarding subelement from virtual network device after, method alsoComprise: flow generation module, according to the test result corresponding with forwarding subelement, is adjusted the test traffic generating.
According to the embodiment of the present invention on the other hand, also provide a kind of test based on distributed virtual network deviceDevice, comprising: acquisition module, for obtaining the testing scheme for virtual network device is tested;
Determination module, for determining test action and the test parameter corresponding with testing scheme; The first generation module, usesAccording to test action and test parameter, generate test instruction, wherein, flow generation module generates according to test instructionThe test traffic of respective type is tested virtual network device.
Further, said apparatus also comprises: read module, and for reading from virtual network device and forwarding son listThe test result that unit is corresponding, wherein, test result at least comprises: the forwarding success rate, the reception flow that forward subelementAnd converting flow; The second generation module, for gathering forwarding success rate, reception flow and converting flow, rawBecome the integrated testability result of virtual network device.
Further, said apparatus also comprises: adjusting module, and for flow generation module basis and forwarding subelement pairThe test result of answering, adjusts the test traffic generating.
In embodiments of the present invention, adopt the testing scheme obtaining for virtual network device is tested; Determine withThe test action that testing scheme is corresponding and test parameter; According to test action and test parameter, generate test instruction, itsIn, flow generation module is tested virtual network device according to the test traffic of test instruction generation respective typeMode, by physical machine territory and virtual machine territory, wherein, system also comprises: test and management module, is arranged at physical machineTerritory or virtual machine territory, for generating corresponding test instruction according to the method for testing setting in advance; At least one flow is rawBecome module, be arranged at physical machine territory, be connected with test and management module, for according to test instruction, generate with test and refer toMake corresponding test traffic; Virtual network device, is arranged at virtual machine territory, is connected with at least one flow generation module,Test traffic is forwarded to operation, and generate test result according to forwarding operation, reach use traffic transfer of dataThe object that shortest path is tested the virtual network device under virtual environment, thus realize flexible and right efficientlyThe technique effect of each testing equipment in distributed virtual network, and then solved cannot be to based on distributedThe technical problem that virtual network device is stablized, tested efficiently.
Brief description of the drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, thisBright schematic description and description is used for explaining the present invention, does not form inappropriate limitation of the present invention. At accompanying drawingIn:
Fig. 1 is according to the schematic diagram of a kind of distributed virtual device test system of prior art;
Fig. 2 is according to a kind of optional test macro based on distributed virtual network device of the embodiment of the present inventionSchematic diagram;
Fig. 3 is according to a kind of optional test macro based on distributed virtual network device of the embodiment of the present inventionSchematic diagram;
Fig. 4 is according to a kind of optional method of testing based on distributed virtual network device of the embodiment of the present inventionFlow chart;
Fig. 5 is according to a kind of optional testing arrangement based on distributed virtual network device of the embodiment of the present inventionSchematic diagram;
Fig. 6 is according to a kind of optional testing arrangement based on distributed virtual network device of the embodiment of the present inventionSchematic diagram; And
Fig. 7 is according to a kind of optional testing arrangement based on distributed virtual network device of the embodiment of the present inventionSchematic diagram.
Detailed description of the invention
In order to make those skilled in the art person understand better the present invention program, below in conjunction with in the embodiment of the present inventionAccompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, obviously, and described embodimentOnly the embodiment of a part of the present invention, instead of whole embodiment. Based on the embodiment in the present invention, abilityTerritory those of ordinary skill, not making the every other embodiment obtaining under creative work prerequisite, all should belong toThe scope of protection of the invention.
It should be noted that the term " first ", " in description of the present invention and claims and above-mentioned accompanying drawingTwo " be etc. for distinguishing similar object, and needn't be used for describing specific order or precedence. Should be appreciated that thisThe data that sample uses suitably can exchanged in situation, so as embodiments of the invention described herein can with exceptHere the order beyond those of diagram or description is implemented. In addition, term " comprises " and " having " and theyAny distortion, intention is to cover not exclusive comprising, for example, the process, the side that have comprised series of steps or unitThose steps or unit that method, system, product or equipment are not necessarily limited to clearly list, but can comprise do not have clearList or for these processes, method, product or equipment intrinsic other step or unit.
According to the embodiment of the present invention, provide a kind of system of the test macro based on distributed virtual network device realExecute example, Fig. 2 is according to the schematic diagram of the test macro based on distributed virtual network device of the embodiment of the present invention,As shown in Figure 2, comprise at test macro: physical machine territory 100 and virtual machine territory 200, wherein, this system comprisesFollowing steps: test and management module 10, at least one flow generation module 20 and virtual network device 30.
Wherein, test and management module 10, for generating corresponding test instruction according to the method for testing setting in advance; ExtremelyA few flow generation module 20, is arranged at physical machine territory 100 and is connected with test and management module 10, for according to surveyExamination instruction, generates the test traffic corresponding with test instruction; Virtual network device 30, is arranged at virtual machine territory 200,Be connected with at least one flow generation module 20, test traffic is forwarded to operation, and generate survey according to forwarding operationTest result.
Concrete, in distributed virtual network, when the distributing virtual network equipment, run on physical equipment, because ofThis, can be divided into physical machine territory 100 and virtual machine territory 200, and flow generation module 20 is set up and physical machine territory 100In, virtual network device 30 is arranged in virtual machine territory 200, and test and management module 30 can be arranged atPhysical machine territory 100, also can be arranged at virtual machine territory 200, can also be arranged in other equipment, does not do tool hereinBody restriction.
After test and management module 10 starts, send to the flow generation module 20 being arranged in physical machine territory 100Control instruction, generates corresponding test traffic by flow generation module 20. And the test traffic of generation is sent to settingIn virtual network device 30 in virtual machine territory 200, virtual network device 30 is tested. Virtual network is establishedStandby 30 pairs of test datas that receive forward, and generate test number result.
For virtual network device, flow arrives the path difference of equipment, will bring different performance losses. ItsIn, if flow comes from the test virtual machine on the physical host identical with virtual network device, just need through surveyingThe Microsoft Loopback Adapter of examination virtual machine drives and virtual switch could arrive virtual network device; If test traffic comes fromOutside physical host, just need to pass through the physical network card of physical host, then to virtual switch, finally could arrive emptyIntend the network equipment; If test traffic comes from the physical host aspect at virtual network device place, test traffic canDirectly to arrive virtual network device by arriving virtual interface.
In the time that system is tested, choose the shortest path and contribute to reduce to interlude with for testing equipmentRely on, can be more reliably, efficiently and weigh out the performance indications of virtual network device accurately. Therefore, pass throughSaid system, the shortest path that can reach use traffic transfer of data carries out the virtual network device under virtual environmentThe object of test, has realized flexibly and efficiently the technology of each testing equipment in distributed virtual network has been imitatedReally, having solved cannot be to asking of stablizing based on distributed virtual network device, test efficiently in prior artTopic.
As the optional embodiment of one, as shown in Figure 3, above-mentioned virtual network device 30 comprises: at least one turnsSend out subelement 301 and first and control subelement 302.
Wherein, at least one forwards subelement 301, is connected, for to flow generation module with flow generation module 2020 test traffics that generate forward; First controls subelement 302, respectively with forwarding subelement 301 and testing tubeReason module 10 connects, and for obtaining the test result corresponding with forwarding subelement 301, wherein, test result is at least wrappedDraw together: forward success rate, receive flow and converting flow.
Concrete, the first control subelement 302 is set up communication with test and management module 10 and is connected, in test and management moduleAfter 10 startups, can control subelement 302 by first in virtual network device 30 and gather each virtual networksThe special photos and sending messages that equipment 30 forwards.
As the optional embodiment of one, as shown in Figure 3, the quantity of flow generation module 20 and forwarding subelement301 correspondence one by one, and be connected with forwarding subelement 301 by virtual interface 303.
As the optional embodiment of one, as shown in Figure 3, flow generation module 20 comprises: second controls subelement201 and flow submodule 202.
Wherein, second controls subelement 201, is connected with test and management module 10, for according to test instruction, determinesGenerate discharge pattern and the uninterrupted of test traffic, and the data volume that reality generates test traffic is sent to testing tubeReason module 10; Flow submodule 202, is connected with forwarding subelement 301 with the second control subelement 201 respectively, rawThe test traffic that one-tenth is corresponding with discharge pattern and uninterrupted, and be sent to forwarding subelement 301.
Concrete, flow generation module 20 runs on the physical machine territory 100 in physical host, comprising: second controls son202 two parts of unit 201 and flow submodule. Second controls subelement 201 is responsible for receiving from test and management mouldThe test instruction of piece 10, controls flow submodule 202 and sends dissimilar test traffic. Flow submodule 202Be connected by setting up communication with the virtual interface 207 in virtual network device 30 with forwarding subelement 301. Flow submoduleThe test traffic that piece 202 sends is directly sent to the forwarding subelement 301 in virtual network device 30.
As the optional embodiment of one, flow submodule 202 can also be added up the test traffic of sending and receiving,And by transmission result be sent to the second control subelement 201, the second control subelements 201 can be according to sending in resultThe ratio of failure default test traffic is adjusted, and finally obtain a test result.
Meanwhile, the second control subelement 201 can be sent to test and management by real-time testing data and final test dataModule 10. Test and management module 10 produces to each flow the statistics sending in subsystem 20 and gathers, dividesAnalyse, obtain the real-time and final test data of tested virtual network device 30.
In sum, virtual network can realize by the increase and decrease of physical host the variation of scale, and distributed virtualThe network equipment also can be realized by increasing or reduce forwarding subelement the dynamic adjustments of overall performance.
The present invention is directed to the feature of the distributed virtual network equipment, make the physical host at each subelement place all produce surveyExamination flow, the flow of use test is simultaneously tested all forwarding subelements, thus the property to each forwarding subelementCan data carry out Macro or mass analysis. And the present invention can also make test macro same with the number change of forwarding subelementStep expansion and contraction.
According to the embodiment of the present invention, provide a kind of method of the method for testing based on distributed virtual network device realExecute example, it should be noted that, can be such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawingComputer system in carry out, and, although there is shown logical order in flow process, in some cases,Can carry out shown or described step with the order being different from herein.
Fig. 4 is according to the flow chart of the method for testing based on distributed virtual network device of the embodiment of the present invention, asShown in Fig. 4, adopt the test macro of method of testing to comprise: test and management module 10, to be arranged at physical machine territory 100At least one flow generation module 20 and the virtual network device 30 that is arranged at virtual machine territory 200, flow generation module20 is corresponding one by one with the forwarding subelement 301 in virtual network device 30, and wherein, method comprises:
Step S102, obtains the testing scheme for virtual network device is tested.
Step S104, determines test action and the test parameter corresponding with testing scheme.
Step S106, according to test action and test parameter, generates test instruction, wherein, and flow generation module basisTest instruction generates the test traffic of respective type virtual network device is tested.
Concrete, it is corresponding one by one with the forwarding subelement in virtual network device that flow generates submodule, when needs are to voidWhen forwarding subelement in the plan network equipment is tested, can be simultaneously to one or more corresponding with forwarding subelementFlow generation module sends test instruction, can realize the forwarding subelement in virtual network device with different testsScheme is tested.
To step S106, according to the testing scheme setting in advance, determine that concrete test is moving by above-mentioned steps S102Do and the test parameter corresponding with test action. According to above-mentioned every step test action and corresponding test parameter, generate and useIn the test instruction that virtual network device is tested, and test instruction is sent to flow generation module. Flow is rawBecome module to generate corresponding test traffic according to test instruction, and be sent to the corresponding forwarding in virtual network deviceIn the middle of subelement.
Therefore,, by above-mentioned steps, can solve cannot be to entering based on distributed virtual network device in prior artThe problem of line stabilization, efficient test.
As the optional embodiment of one, in the time that the forwarding subelement in virtual network device is tested, testScheme at least comprises: static test, complete static test and the test that influences each other separately.
Concrete, in the middle of practical application, respectively the embodiment of above-mentioned testing scheme is described:
The embodiment of the testing scheme of static test is separately: the some flow generation modules of test and management module controls,The test traffic sending to forwarding subelement according to the test parameter setting in advance, thereby the merit of testing this forwarding subelementEnergy and/or performance indications.
The embodiment of the testing scheme of complete static test is: test and management module is sent out to whole flow generation modulesSend control instruction, control whole flow generation modules and send same type and identical to the forwarding subelement corresponding with itThe test traffic of size, thereby the allomeric function of test distributed virtual network device and/or performance indications. Wherein, byThe test traffic sending in each flow generation module is present in the inside of a physical host, so can ensure to surveyBetween examination flow, can not interact.
The embodiment of testing scheme of test of influencing each other is: describe as an example of performance test example, turn when someWhen sending out the performance indications of subelement and overall performance indications and not thering is linear relationship, need each to forward subelementBetween influence each other and test. First, by the mode of independent static test, the first forwarding subelement is surveyedExamination, obtains the full test flow corresponding with it. Carry out stable turning at the first forwarding subelement with full test flowSend out when operation, increase gradually the test traffic sending to the second forwarding subelement, until first forwards subelement or theThe two retransmission failure rates that forward subelement reach preset value. After retransmission failure rate reaches preset value and stablizes, graduallyIncrease to the 3rd and forward the test traffic that subelement sends. By that analogy, obtain in virtual network device and each forwardingThe dynamic performance index that subelement is corresponding, thus determine interacting between forwarding subelement.
As the optional embodiment of one, according to test action and test parameter, generate test instruction at step S106Afterwards, said method can also comprise:
Step S108 reads the test result corresponding with forwarding subelement from virtual network device, wherein, and test knotFruit at least comprises: the forwarding success rate, reception flow and the converting flow that forward subelement.
Step S110, gathers forwarding success rate, reception flow and converting flow, the generating virtual network equipmentIntegrated testability result.
Concrete, by step S108, to step S110, test and management module 10 is read from virtual network device 30Get with each and forward forwarding success rate corresponding to subelement 103, receive the parameters such as flow, converting flow, and will with respectivelyThe parameters that forwards subelement 103 correspondences gathers, thereby obtains the test result of virtual network device 30 entirety.
As the optional embodiment of one, in the middle of practical application, test and management module can be passed through poll or quiltThe mode of moving receipt message notice, monitors the forwarding subelement in the distributed virtual network equipment. DistributedIn virtual network device, in the time having new forwarding subelement to be injected towards in test macro, test and management module will be for newThe physical host at forwarding subelement place on arrange and start a flow generation module corresponding with it. When now justIn the time testing, test and management module generates the test instruction corresponding with the new flow generation module starting, thereby movingState on new forwarding subelement on overall impact.
As the optional embodiment of one, from virtual network device, read with to forward subelement corresponding at step S108Test result after, said method can also comprise:
Step S109, flow generation module, according to the test result corresponding with forwarding subelement, is adjusted the test stream generatingAmount.
Concrete, in step S109, flow generation module can obtain with each and forward son list from test and management moduleThe test result that unit is corresponding, and dynamically adjust the test traffic of generation according to test result, press thereby realize in the time of testAccording to testing scheme, the test traffic sending is carried out the object of dynamically adjusting.
According to the embodiment of the present invention, provide a kind of device of the testing arrangement based on distributed virtual network device realExecute example, Fig. 5 is according to the schematic diagram of the testing arrangement based on distributed virtual network device of the embodiment of the present invention,As shown in Figure 5, this device comprises: acquisition module 22, determination module 24 and the first generation module 26.
Wherein, acquisition module 22, for obtaining the testing scheme for virtual network device is tested; Determine mouldPiece 24, for determining test action and the test parameter corresponding with testing scheme; The first generation module 26, for basisTest action and test parameter, generate test instruction, and wherein, flow generation module generates respective class according to test instructionThe test traffic of type is tested virtual network device.
Concrete, it is corresponding one by one with the forwarding subelement in virtual network device that flow generates submodule, when needs are to voidWhen forwarding subelement in the plan network equipment is tested, can be simultaneously to one or more corresponding with forwarding subelementFlow generation module sends test instruction, can realize the forwarding subelement in virtual network device with different testsScheme is tested.
By above-mentioned acquisition module 22, determination module 24 and generation module 26, according to the testing scheme setting in advance,Determine concrete test action and the test parameter corresponding with test action. According to above-mentioned every step test action and correspondingTest parameter, generates the test instruction for virtual network device is tested, and test instruction is sent to flowGeneration module. Flow generation module can generate corresponding test traffic according to test instruction, and is sent to virtual networkIn the middle of corresponding forwarding subelement in equipment.
Therefore,, by said apparatus, can solve cannot be to entering based on distributed virtual network device in prior artThe problem of line stabilization, efficient test.
As the optional embodiment of one, in the time that the forwarding subelement in virtual network device is tested, testScheme at least comprises: static test, complete static test and the test that influences each other separately.
As the optional embodiment of one, as shown in Figure 6, said apparatus also comprises: read module 28 and the second lifeBecome module 30.
Wherein, read module 28, for read the test result corresponding with forwarding subelement from virtual network device,Wherein, test result at least comprises: the forwarding success rate, reception flow and the converting flow that forward subelement; Second is rawBecome module 30, for gathering forwarding success rate, reception flow and converting flow, the generating virtual network equipmentIntegrated testability result.
Concrete, by above-mentioned read module 28 and the second generation module 30, test and management module 10 is from virtual networkIn equipment 30, read the forwarding success rate corresponding with each forwarding subelement 103, receive the parameters such as flow, converting flow,And the parameters corresponding with each forwarding subelement 103 gathered, thereby obtain virtual network device 30 entiretyTest result.
As the optional embodiment of one, as shown in Figure 7, said apparatus also comprises: adjusting module 29.
Wherein, adjusting module 29,, adjusts according to the test result corresponding with forwarding subelement for flow generation moduleThe test traffic generating.
Concrete, in adjusting module 29, flow generation module can obtain with each and forward son from test and management moduleThe test result that unit is corresponding, and dynamically adjust the test traffic of generation according to test result, thus realize in the time of testAccording to testing scheme, the test traffic sending is carried out the object of dynamically adjusting.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, do not haveThe part describing in detail, can be referring to the associated description of other embodiment.
In the several embodiment that provide in the application, should be understood that, disclosed technology contents, can pass through otherMode realize. Wherein, device embodiment described above is only schematically, the division of for example described unit,Can be that a kind of logic function is divided, when actual realization, can have other dividing mode, for example multiple unit or assemblyCan in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out. Another point, instituteThe coupling each other showing or discuss or direct-coupling or communication connection can be by some interfaces, unit or mouldThe INDIRECT COUPLING of piece or communication connection can be electrical or other form.
The described unit as separating component explanation can or can not be also physically to separate, aobvious as unitThe parts that show can be or can not be also physical locations, can be positioned at a place, or also can be distributed toOn multiple unit. Can select according to the actual needs some or all of unit wherein to realize the present embodiment schemeObject.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, also canBe that the independent physics of unit exists, also can be integrated in a unit two or more unit. Above-mentioned integratedUnit both can adopt hardware form realize, also can adopt SFU software functional unit form realize.
If described integrated unit is realized and during as production marketing independently or use using the form of SFU software functional unit,Can be stored in a computer read/write memory medium. Based on such understanding, technical scheme essence of the present inventionOn the part that in other words prior art contributed or this technical scheme all or part of can be with software productForm embodies, and this computer software product is stored in a storage medium, comprises that some instructions are in order to make onePlatform computer equipment (can be personal computer, server or the network equipment etc.) is carried out each embodiment institute of the present inventionState all or part of step of method. And aforesaid storage medium comprises: USB flash disk, read-only storage (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CDEtc. various media that can be program code stored.
The above is only the preferred embodiment of the present invention, it should be pointed out that the ordinary skill people for the artMember, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvement and profitDecorations also should be considered as protection scope of the present invention.

Claims (11)

1. the test macro based on distributed virtual network device, is characterized in that, in described test macro, wrapsDraw together: physical machine territory and virtual machine territory, wherein, described system also comprises:
Test and management module, is arranged at described physical machine territory or described virtual machine territory, sets in advance for basisMethod of testing generates corresponding test instruction;
At least one flow generation module, is arranged at described physical machine territory, is connected with described test and management module,For according to described test instruction, generate the test traffic corresponding with described test instruction;
Described virtual network device, is arranged at described virtual machine territory, connects with flow generation module described at least oneConnect, described test traffic is forwarded to operation, and generate test result according to described forwarding operation.
2. system according to claim 1, is characterized in that, described virtual network device comprises:
At least one forwards subelement, is connected, for to described flow generation module with described flow generation moduleThe described test traffic generating forwards;
First controls subelement, is connected respectively, for obtaining with described forwarding subelement and described test and management moduleGet the described test result corresponding with described forwarding subelement, wherein, described test result at least comprises: forwardSuccess rate, reception flow and converting flow.
3. system according to claim 2, is characterized in that, the quantity of described flow generation module and described forwardingSubelement is corresponding one by one, and is connected with described forwarding subelement respectively by virtual interface.
4. system according to claim 3, is characterized in that, described flow generation module comprises:
Second controls subelement, is connected with described test and management module, for according to described test instruction, determinesGenerate discharge pattern and the uninterrupted of described test traffic, and reality is generated to the data volume of described test trafficBe sent to described test and management module;
Flow submodule, is connected with described forwarding subelement with described the second control subelement respectively, generates and instituteState the described test traffic that discharge pattern and described uninterrupted are corresponding, and be sent to described forwarding subelement.
5. the method for testing based on distributed virtual network device, is characterized in that, adopts described method of testingTest macro comprises: test and management module, be arranged at least one flow generation module and the setting in physical machine territoryIn the virtual network device in virtual machine territory, forwarding in described flow generation module and described virtual network deviceUnit is corresponding one by one, and wherein, described method comprises:
Obtain the testing scheme for described virtual network device is tested;
Determine test action and the test parameter corresponding with described testing scheme;
According to described test action and described test parameter, generate test instruction, wherein, described flow generates mouldThe test traffic that piece generates respective type according to described test instruction is tested described virtual network device.
6. method according to claim 5, is characterized in that, when the forwarding list in described virtual network deviceWhen unit tests, described testing scheme at least comprises: static test, complete static test and mutual shadow separatelyRing test.
7. method according to claim 6, is characterized in that, according to described test action and described test parameter,After generating test instruction, described method also comprises:
From described virtual network device, read the test result corresponding with described forwarding subelement, wherein, described inTest result at least comprises: forwarding success rate, reception flow and the converting flow of described forwarding subelement;
Described forwarding success rate, described reception flow and described converting flow are gathered, generate described virtualThe integrated testability result of the network equipment.
8. method according to claim 7, is characterized in that, reading with described from described virtual network deviceAfter forwarding the test result that subelement is corresponding, described method also comprises:
Described flow generation module is according to the described test result corresponding with described forwarding subelement, and adjustment generatesDescribed test traffic.
9. the testing arrangement based on distributed virtual network device, is characterized in that, described device comprises:
Acquisition module, for obtaining the testing scheme for virtual network device is tested;
Determination module, for determining test action and the test parameter corresponding with described testing scheme;
The first generation module, for according to described test action and described test parameter, generates test instruction, itsIn, the test traffic that flow generation module generates respective type according to described test instruction is established described virtual networkStandby test.
10. device according to claim 9, is characterized in that, described device also comprises:
Read module, for read the test result corresponding with forwarding subelement from described virtual network device,Wherein, described test result at least comprises: forwarding success rate, reception flow and the forwarding of described forwarding subelementFlow;
The second generation module, for carrying out described forwarding success rate, described reception flow and described converting flowGather, generate the integrated testability result of described virtual network device.
11. devices according to claim 10, is characterized in that, described device also comprises:
Adjusting module, ties according to the described test corresponding with described forwarding subelement for described flow generation moduleReally, adjust the described test traffic generating.
CN201511019066.6A 2015-12-30 2015-12-30 Test method, apparatus and system based on distributed virtual network device Active CN105610646B (en)

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 true CN105610646A (en) 2016-05-25
CN105610646B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850350A (en) * 2017-02-09 2017-06-13 珠海格力电器股份有限公司 Apparatus testing method and system based on BACnet
CN108632110A (en) * 2018-03-23 2018-10-09 广州网测科技有限公司 Equipment performance test method, system, computer equipment and storage medium
CN110324203A (en) * 2019-06-18 2019-10-11 哈尔滨工业大学(威海) A kind of multi-channel high-accuracy network flow generating means

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383822A (en) * 2008-07-10 2009-03-11 北京邮电大学 Router virtual machine for aviation telecommunication network
US20090073895A1 (en) * 2007-09-17 2009-03-19 Dennis Morgan Method and apparatus for dynamic switching and real time security control on virtualized systems
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090073895A1 (en) * 2007-09-17 2009-03-19 Dennis Morgan Method and apparatus for dynamic switching and real time security control on virtualized systems
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850350A (en) * 2017-02-09 2017-06-13 珠海格力电器股份有限公司 Apparatus testing method and system based on BACnet
CN108632110A (en) * 2018-03-23 2018-10-09 广州网测科技有限公司 Equipment performance test method, system, computer equipment and storage medium
CN108632110B (en) * 2018-03-23 2020-06-19 北京网测科技有限公司 Device performance testing method, system, computer device and storage medium
CN110324203A (en) * 2019-06-18 2019-10-11 哈尔滨工业大学(威海) A kind of multi-channel high-accuracy network flow generating means

Also Published As

Publication number Publication date
CN105610646B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN102185733B (en) Network card testing method and system
CN105721318B (en) The method and apparatus of network topology are found in a kind of software defined network SDN
CN103188116B (en) A kind of network performance detection method of blade server and system
CN102291745A (en) Method and device for testing multiple access points (AP)
CN105005521A (en) Test method and apparatus
CN105610646A (en) Testing method, device and system based on distributed virtual network equipment
CN105573577A (en) Remote monitoring method, device and system
CN105897507A (en) Node equipment state detection method and node equipment state detection device
CN113542051B (en) Monitoring flow load balancing method based on software defined network
CN102651702A (en) Ethernet performance measurement method and equipment
CN105867864A (en) Method and device for displaying of K virtual machines (KVMs)
CN105391601A (en) Network management equipment performance testing method and system
CN111130927A (en) Method for automatically realizing service test of network layer communication terminal equipment
CN104536926B (en) The control method and device of serial equipment
CN103514121B (en) A kind of network card redundancy switching method under WindowsXp operating system
CN105450433A (en) Method, device, and system for configuring high-speed serial bus parameter
CN204695087U (en) A kind of DCS controller redundant apparatus
CN109547274A (en) A kind of enclosure board switching method, device and first network equipment
CN109828826A (en) A kind of polling method of Task Progress, apparatus and system
CN106502841B (en) Data back up method and device
CN101990229B (en) RNC (Radio Network Control) aging test method, equipment, service board and interface board
CN109714124B (en) Time synchronization system and method for test system
CN102064928A (en) Method and device for obtaining signal compensating parameters and network equipment
CN107122305A (en) Software testing device and method
CN106201520B (en) System reducing 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
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