CN107483284A - The method of testing and device of the network equipment - Google Patents

The method of testing and device of the network equipment Download PDF

Info

Publication number
CN107483284A
CN107483284A CN201710594929.5A CN201710594929A CN107483284A CN 107483284 A CN107483284 A CN 107483284A CN 201710594929 A CN201710594929 A CN 201710594929A CN 107483284 A CN107483284 A CN 107483284A
Authority
CN
China
Prior art keywords
network
port
network equipment
virtual network
environment
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.)
Pending
Application number
CN201710594929.5A
Other languages
Chinese (zh)
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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201710594929.5A priority Critical patent/CN107483284A/en
Publication of CN107483284A publication Critical patent/CN107483284A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • 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

Abstract

The embodiment of the present invention provides a kind of method of testing and device of the network equipment.This method includes:According to network topology and protocol parameter structure virtual network environment;Network topology and protocol parameter include demand parameter of the network equipment to test environment;According to positional information of the network equipment in virtual network environment, the mapping relations between the physical port of virtual network interface and the network equipment in virtual network environment are established;Virtual network environment is run, virtual network environment is obtained in network state information caused by current time operation every preset time;The packet sent according to mapping relations and network state information processing virtual network environment to the network equipment, and the packet that the network equipment is sent to virtual network environment, to be tested under virtual network environment the network equipment.Topology and agreement feature possessed by the network equipment that the embodiment of the present invention is tested due to the virtual network environment satisfaction needs of structure, realize test of the network equipment under corresponding network environment.

Description

The method of testing and device of the network equipment
Technical field
The present embodiments relate to the method for testing and device of network technique field, more particularly to a kind of network equipment.
Background technology
With the high speed development of network technology, important composition of the network equipment (such as router) as Modern Communication System Part, its performance and stability are increasingly subject to the concern of user.Network equipment manufacturer is the understanding network equipment in specific net The performance run in network environment, more methods using analog network environment carry out network test to the network equipment.If network is set It is standby to need to operate under the complicated scene of network environment, then corresponding network test also should simulate corresponding complexity as far as possible Network environment, to improve the reliability of network test results.
At present, common network test method is mainly by analyzing network environment that the network equipment may run and building Small test network corresponding to going out, the network equipment is accessed into the Experimental Network and carries out actual motion, is commented according to actual motion effect Its performance of valency.
The deficiencies in the prior art are:For different network environments need to build multiple different Special experimental networks with Tested, cause test resource to consume larger and cost higher.
The content of the invention
The embodiment of the present invention provides a kind of method of testing and device of the network equipment, for solving prior art test resource Consume the problem of larger and cost is higher.
In a first aspect, the embodiment of the present invention provides a kind of method of testing of the network equipment, including:
According to network topology and protocol parameter structure virtual network environment;Wherein, the network topology and protocol parameter bag Include demand parameter of the network equipment to test environment;The virtual network environment is the test tested the network equipment Environment;
According to positional information of the network equipment in the virtual network environment, establish in the virtual network environment Mapping relations between the physical port of virtual network interface and the network equipment;
The virtual network environment is run, obtain the virtual network environment every preset time runs production at current time Raw network state information;Wherein, the network state information includes network topological information and event information;The event information For promoting the virtual network environment to run;
Sent according to the mapping relations and network state information processing virtual network environment to the network equipment Packet, and the packet that the network equipment is sent to the virtual network environment, with the virtual network environment Under the network equipment is tested.
Second aspect, the embodiment of the present invention provide a kind of test device of the network equipment, including:
Network topology and Protocol Modeling unit, for building virtual network environment according to network topology and protocol parameter;Its In, the network topology and protocol parameter include demand parameter of the network equipment to test environment;The virtual network environment is The test environment tested the network equipment;
Actual situation node port map unit, for being believed according to position of the network equipment in the virtual network environment Breath, establishes the mapping relations between the physical port of virtual network interface and the network equipment in the virtual network environment;
Virtual network running unit, for running the virtual network environment, the virtual net is obtained every preset time Network environment is in network state information caused by current time operation;Wherein, the network state information includes network topological information And event information;The event information is used to promote the virtual network environment to run;
Processing data packets unit, for handling virtual network environment according to the mapping relations and the network state information The packet sent to the network equipment, and the packet that the network equipment is sent to the virtual network environment, with The network equipment is tested under the virtual network environment.
The method of testing and device of the network equipment provided in an embodiment of the present invention, first by building virtual network environment, Then virtual network environment is run, passes through the mapping of the virtual network interface of virtual network environment and the physical port of the network equipment Network state information caused by relation and virtual network environment operation, the data that processing virtual network environment is sent to the network equipment Bag, and the packet that the network equipment is sent to virtual network environment, because the virtual network environment of structure meets that needs are tested The network equipment possessed by topology and agreement feature, realize test of the network equipment in virtual network environment, due to It is to be tested in the virtual network environment of structure, therefore the smaller and cost of test resource consumption is relatively low.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for testing embodiment of the network equipment provided by the invention;
Fig. 2 is the usage scenario schematic diagram one of the method for testing embodiment of the network equipment provided by the invention;
Fig. 3 is the structural representation of the test device embodiment of the network equipment provided by the invention;
Fig. 4 is the usage scenario schematic diagram two of the method for testing embodiment of the network equipment provided by the invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing and/or (if present)s such as " the 4 " is for distinguishing similar object, without for describing specific order or precedence.Should The data that the understanding so uses can exchange in the appropriate case, so as to embodiments of the invention described herein, such as can Enough orders with addition to those for illustrating or describing herein are implemented.In addition, term " comprising " and " having " and they Any deformation, it is intended that cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, being System, product or equipment are not necessarily limited to those steps or the unit clearly listed, but may include not list clearly or For the intrinsic other steps of these processes, method, product or equipment or unit.
Fig. 1 is the schematic flow sheet of the method for testing embodiment of the network equipment provided by the invention.As shown in Fig. 1, this reality Applying the method for example can include:
Step 101, virtual network environment built according to network topology and protocol parameter;
Wherein, the network topology and protocol parameter include demand parameter of the network equipment to test environment;It is described virtual Network environment is the test environment tested the network equipment.
Alternatively, step 101 can specifically be realized in the following way:
According to the network topology and protocol parameter generation network topology model and protocol model;
The network topology model and the protocol model is called to build the virtual network environment.
Specifically, by topology model construction and Protocol Modeling instrument, according to network topology and protocol parameter, generation model frame Frame, the e.g. model framework based on c++ codes.Then developed to obtain corresponding network topology model and association according to model framework Discuss model.
By light-weighted discrete time analogue system, call corresponding network topology model (including generation and standard In model library) and protocol model, build the virtual network environment towards testing requirement.The virtual network environment is as test wrapper Border is tested the network equipment.
Wherein, network topology and protocol parameter include demand parameter of the network equipment to test environment, such as the network equipment Topological relation between interstitial content, node and link parameter in required test environment etc..
Step 102, the positional information according to the network equipment in virtual network environment, establish virtual in virtual network environment Mapping relations between the physical port of the network port and the network equipment.
Optionally, the number of the network equipment is M, the physical port of the M network equipment respectively with interface unit In the connection of corresponding M first port, wherein, the interface unit is used to receive the packet that the network equipment is sent, with And send packet to the network equipment;M is the integer more than 1;
Step 102, can specifically realize in the following way:
For each first port in the interface unit, the first port is established with the network equipment in institute State the mapping relations of second port corresponding to the node in virtual network environment.
Fig. 2 is the usage scenario schematic diagram one of the method for testing embodiment of the network equipment provided by the invention.Such as Fig. 2 institutes Show, such as Fig. 2 interior joints A, node B and the network equipment corresponding to node C are the network equipment 1, the network equipment 2 in the present embodiment With the network equipment 3, specifically, the port a ' of node A port a " map networks equipment 1, and the port a for passing through interface unit connects Connect;The port b ' of node B port b " map networks equipment 2, and the port b connections for passing through interface unit;Node C port c " The port c ' of map network equipment 3, and the port c connections for passing through interface unit.Then the network equipment is in virtual network environment Positional information is Fig. 2 interior joints A, the position of node B and node C in virtual network environment.Further, physics will be used for Corresponding ports of the port of the interface unit of the network equipment respectively with the corresponding node in virtual network environment in Fig. 2 are connected to be formed Mapping relations, such as by the port a ' of the physical connection network equipment 1, the port a and virtual network environment of interface unit Corresponding node A port a " formed mapping relations.
Interface unit is used to realize the data-bag interacting between network equipment True Data bag and virtual network environment.Interface list The conversion that member can be used between the interface of test device for realizing the network equipment and the physical port of the network equipment.
Interface unit can use the physical interface framework of extension, realize the physics with the physical port of disparate networks equipment Connection.
In whole test process, the change of virtual network environment middle port relevant parameter will synchronously be embodied in what is be mapped On physical port (such as annexation of the port and other ports etc.);Meanwhile in whole test process, virtual network All packets of environment middle port transmitting-receiving will all be directly accessed bound physical port, and realize the receipts with LA Management Room Hair.So as to realize the unification of the operating data packet stream of virtual network environment and real network equipment room packet stream.
Alternatively, before step 103, can also proceed as follows:
The time of synchronous first port and second port.
Specifically, the time of synchronous first port and second port, that is, realize the run time of virtual network environment with it is true Synchronization between in real time, it is ensured that the network behavior time such as the topology of virtual network environment is run, packet transmission is the same as true Real time consistency (namely with the network equipment run time it is consistent).
Step 103, operation virtual network environment, obtain virtual network environment every preset time and run production at current time Raw network state information;
Wherein, the network state information includes network topological information and event information;The event information is used to promote The virtual network environment operation.
Specifically, virtual network environment can be run according to test scene parameter, virtual network is obtained every preset time Environment is in network state information caused by current time operation;Network state information includes network topological information and event information; Network topological information is for example including link information, network performance information (such as port speed, port time delay, number of dropped packets, route life Into etc.);
After virtual network environment operation, packet can be produced, is transmitted through virtual network environment, is sent to certain virtual network The packet of port, if the virtual network interface has bound physical port, all packets of the virtual network interface Interface unit will be all sent directly to, after to the network equipment send.
Alternatively, the time of synchronous first port and second port.
Step 104, the number sent according to mapping relations and network state information processing virtual network environment to the network equipment According to bag, and the packet that the network equipment is sent to virtual network environment, so that the network equipment is carried out under virtual network environment Test.
Specifically, on the one hand, the network equipment sends True Data bag by interface unit corresponding ports, is closed according to mapping System, is sent to corresponding virtual network interface in virtual network environment, and according to network state information by the packet virtual Transmission in network environment.
On the other hand, the packet of certain virtual network interface is sent in virtual network environment, if the virtual network end Mouth has bound physical port, then all packets of the virtual network interface will all be sent directly to interface unit, backward net Network equipment is sent.It is sent to before the virtual network interface, the packet can be handled according to network state information, example The packet can be such as cached to retransmit at the corresponding moment afterwards.
Finally, it can such as send data volume according to the data of each physical port of binding, receive data volume, error code, time delay Deng progress performance statistics, to obtain performance of the network equipment under virtual network environment.
The method of testing for the network equipment that the present embodiment provides, first by building virtual network environment, then operation is empty Intend network environment, by the mapping relations of the virtual network interface of virtual network environment and the physical port of the network equipment and virtually Network state information caused by network environment operation, the packet that processing virtual network environment is sent to the network equipment, and net The packet that network equipment is sent to virtual network environment, realize test of the network equipment in virtual network environment, due to be Tested in the virtual network environment of structure, therefore the smaller and cost of test resource consumption is relatively low.
Method in the present embodiment builds half void in kind towards the network equipment to be tested by way of actual situation combination Intend network test environment, realize the test to the network equipment.Specifically, needed for the network equipment to be tested specific Characteristic of network environment (topological delay, topology dynamic and specific agreement etc.) structure network model and protocol model, utilization are discrete Time Simulation Software System builds the virtual network environment for meeting above-mentioned network characteristicses, passes through the synchronization of actual situation ambient time, actual situation Node port maps, and realizes mapping of the network equipment in virtual network environment so that all in virtual network environment to pass through The packet of node corresponding to the network equipment is all entered in the network equipment by interface in kind, realizes that the network that actual situation combines is surveyed Examination.Topology and agreement feature possessed by the network tested due to the virtual network environment satisfaction needs of structure, by virtual The packet of the network environment input network equipment is also identical with inputting the packet of the network equipment during network actual motion, so as to Realize test of the network equipment under corresponding network environment.
On the basis of above-described embodiment, alternatively, it is corresponding that the network topological information includes each second port Link information, and in the link information each link rate information;
A kind of implementation of step 104 is as follows:
According to the speed letter of link information and each link corresponding to the mapping relations, each second port Breath, transmits the packet.
Specifically, the packet that the network equipment is sent, virtual network environment is forwarded to by the first port of interface unit In corresponding second port, after the second port of virtual network environment receives the packet, by the packet according to the second end The rate information of link information corresponding to mouthful and the link where the second port is transmitted;When packet be transferred to it is another During individual second port not with actual physics port binding, by the packet according to corresponding to the second port link information with And the rate information of the link where the second port continues to transmit;When packet is transferred to another and actual physics end During the second port of mouth binding, the packet is transmitted to by the network equipment by the first port of interface unit.
Alternatively, the network topological information includes link information corresponding to each second port, and the chain The error code information and/or delayed data of each link in the information of road;
Another implementation of step 104 is as follows:
According to the error code letter of link information and each link corresponding to the mapping relations, each second port Breath, it is transmitted after the packet is produced into error code;And/or
According to the delay letter of link information and each link corresponding to the mapping relations, each second port Breath, it is transmitted after the packet is produced into delay.
Specifically, the packet that the network equipment is sent, virtual network environment is forwarded to by the first port of interface unit In corresponding second port, after the second port of virtual network environment receives the packet, by the packet according to the second end The error code information of link information corresponding to mouthful and the link where the second port is transmitted after producing error code;Work as packet When being transferred to another second port not with actual physics port binding, by the packet according to corresponding to the second port The error code information of link where link information and the second port continues to be transmitted after producing error code;When packet transmits During to another second port with actual physics port binding, the packet is transmitted to by net by the first port of interface unit Network equipment.
The packet that the network equipment is sent, it is forwarded to by the first port of interface unit in virtual network environment corresponding Second port, after the second port of virtual network environment receives the packet, by the packet according to corresponding to second port The delayed data of link where link information and the second port transmits after entering line delay;When packet is transferred to another During second port not with actual physics port binding, by the packet according to corresponding to the second port link information and The delayed data of link where the second port enter line delay it is follow-up resume it is defeated;When packet is transferred to another and actual thing When managing the second port of port binding, the packet is transmitted to by the network equipment by the first port of interface unit.
Fig. 3 is the structural representation of the test device embodiment of the network equipment provided by the invention.As shown in Fig. 3, this reality Applying the device of example can include:
Network topology and Protocol Modeling unit, for building virtual network environment according to network topology and protocol parameter;Its In, the network topology and protocol parameter include demand parameter of the network equipment to test environment;The virtual network environment is The test environment tested the network equipment;
Actual situation node port map unit, for being believed according to position of the network equipment in the virtual network environment Breath, establishes the mapping relations between the physical port of virtual network interface and the network equipment in the virtual network environment;
Virtual network running unit, for running the virtual network environment, the virtual net is obtained every preset time Network environment is in network state information caused by current time operation;Wherein, the network state information includes network topological information And event information;The event information is used to promote the virtual network environment to run;
Processing data packets unit, for handling virtual network environment according to the mapping relations and the network state information The packet sent to the network equipment, and the packet that the network equipment is sent to the virtual network environment, with The network equipment is tested under the virtual network environment.
Alternatively, the number of the network equipment is M, the physical port of the M network equipment respectively with interface unit In the connection of corresponding M first port, wherein, the interface unit is used to receive the packet that the network equipment is sent, with And send packet to the network equipment;M is the integer more than 1;
The actual situation node port map unit, is specifically used for:
For each first port in the interface unit, the first port is established with the network equipment in institute State the mapping relations of second port corresponding to the node in virtual network environment.
Alternatively, in addition to:
Actual situation ambient time synchronization unit, the time for the synchronous first port and the second port.
Alternatively, the network topological information includes link information corresponding to each second port, and the chain The rate information of each link in the information of road;
The processing data packets unit, is specifically used for:
According to the speed letter of link information and each link corresponding to the mapping relations, each second port Breath, transmits the packet.
Alternatively, the network topological information includes link information corresponding to each second port, and the chain The error code information and/or delayed data of each link in the information of road;
The processing data packets unit, is specifically used for:
According to the error code letter of link information and each link corresponding to the mapping relations, each second port Breath, it is transmitted after the packet is produced into error code;And/or
According to the delay letter of link information and each link corresponding to the mapping relations, each second port Breath, it is transmitted after the packet is produced into delay.
The device of the present embodiment, the method any one of above method embodiment can be performed, its realization principle and Technique effect is similar, and here is omitted.
Fig. 4 is the usage scenario schematic diagram two of the method for testing embodiment of the network equipment provided by the invention.Such as Fig. 4 institutes Show, in the present embodiment, the test device of the network equipment includes:Main interface and test synthesis control unit, network topology and agreement Modeling unit, actual situation node port map unit, virtual network running unit, actual situation ambient time synchronization unit, virtual network Run display unit, processing data packets unit and interface unit.
Wherein, network topology and Protocol Modeling unit, actual situation node port map unit, virtual network running unit, void The function phase of real environment time synchronized unit, processing data packets unit and interface unit and the corresponding module in Fig. 4 embodiments is same.
Main interface and test synthesis control unit provide man-machine interface, and major function includes:Input network topology and agreement Parameter, test scene parameter, input test control command are (for example, testing time and test start, test end and test temporarily Stop) and display test result and results of performance analysis etc..
Virtual network runs display unit, for real-time display virtual network environment, shows first port and second port Binding state information, display network performance (such as port speed, number of dropped packets, time delay, route generation).
With reference to figure 4, the testing process that the present embodiment provides is as follows:First, by network topology and protocol parameter, test scene Parameter and testing and control order input main interface and test synthesis control unit;Secondly, network topology and Protocol Modeling unit root Taken part in building vertical virtual network environment according to network topology and agreement, and the virtual network environment built up under the control of operation order in void Intend running in network operation unit, produce network state information;Meanwhile actual situation node port map unit completes virtual network ring The binding of the virtual network interface in border and the physical port of the network equipment;Actual situation ambient time synchronization unit completes virtual network ring Border and the time synchronized of the network equipment;Again, processing data packets unit produces according in mapping relations and virtual network running unit The packet transmitted in raw network state information processing virtual network environment;On the one hand interface unit is received by physical port The packet of the network equipment, the network state information for each port transmitted according to processing data packets unit, is delivered a packet to Virtual network interface in virtual network environment;On the other hand, according to the network-like of each port of processing data packets unit transmission State information, the packet in virtual network environment is sent to the physical port of the network equipment.Finally, according to port performance statistics Determine the performance of the network equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

  1. A kind of 1. method of testing of the network equipment, it is characterised in that including:
    According to network topology and protocol parameter structure virtual network environment;Wherein, the network topology and protocol parameter include net Demand parameter of the network equipment to test environment;The virtual network environment is the test wrapper tested the network equipment Border;
    According to positional information of the network equipment in the virtual network environment, establish virtual in the virtual network environment Mapping relations between the physical port of the network port and the network equipment;
    The virtual network environment is run, the virtual network environment is obtained caused by current time operation every preset time Network state information;Wherein, the network state information includes network topological information and event information;The event information is used for The virtual network environment is promoted to run;
    The number sent according to the mapping relations and network state information processing virtual network environment to the network equipment According to bag, and the packet that the network equipment is sent to the virtual network environment, with right under the virtual network environment The network equipment is tested.
  2. 2. according to the method for claim 1, it is characterised in that described according to network topology parameters and protocol parameter structure to be measured Virtual network environment is built, including:
    According to the network topology and protocol parameter generation network topology model and protocol model;
    The network topology model and the protocol model is called to build the virtual network environment.
  3. 3. method according to claim 1 or 2, it is characterised in that the number of the network equipment is M, the M network The M first port connection corresponding with interface unit respectively of the physical port of equipment, wherein, the interface unit is used to receive The packet that the network equipment is sent, and send packet to the network equipment;M is the integer more than 1;
    The mapping established in the virtual network environment between the physical port of virtual network interface and the network equipment is closed System, including:
    For each first port in the interface unit, the first port is established with the network equipment in the void Intend the mapping relations of second port corresponding to the node in network environment.
  4. 4. according to the method for claim 3, it is characterised in that before the operation virtual network environment, in addition to:
    The time of the synchronous first port and the second port.
  5. 5. according to the method for claim 3, it is characterised in that the network topological information includes each second port The rate information of each link in corresponding link information, and the link information;
    The number sent according to the mapping relations and network state information processing virtual network environment to the network equipment According to bag, and the packet that the network equipment is sent to the virtual network environment, including:
    According to the rate information of link information and each link corresponding to the mapping relations, each second port, Transmit the packet.
  6. 6. according to the method for claim 3, it is characterised in that the network topological information includes each second port The error code information and/or delayed data of each link in corresponding link information, and the link information;
    The number sent according to the mapping relations and network state information processing virtual network environment to the network equipment According to bag, and the packet that the network equipment is sent to the virtual network environment, including:
    According to the error code information of link information and each link corresponding to the mapping relations, each second port, It is transmitted after the packet is produced into error code;And/or
    According to the delayed data of link information and each link corresponding to the mapping relations, each second port, It is transmitted after the packet is produced into delay.
  7. A kind of 7. test device of the network equipment, it is characterised in that including:
    Network topology and Protocol Modeling unit, for building virtual network environment according to network topology and protocol parameter;Wherein, institute Stating network topology and protocol parameter includes demand parameter of the network equipment to test environment;The virtual network environment is to described The test environment that the network equipment is tested;
    Actual situation node port map unit, for the positional information according to the network equipment in the virtual network environment, Establish the mapping relations between the physical port of virtual network interface and the network equipment in the virtual network environment;
    Virtual network running unit, for running the virtual network environment, the virtual network ring is obtained every preset time Border is in network state information caused by current time operation;Wherein, the network state information includes network topological information and thing Part information;The event information is used to promote the virtual network environment to run;
    Processing data packets unit, for handling virtual network environment to institute according to the mapping relations and the network state information The packet of network equipment transmission, and the packet that the network equipment is sent to the virtual network environment are stated, with institute State and the network equipment is tested under virtual network environment.
  8. 8. device according to claim 7, it is characterised in that the number of the network equipment is M, and the M network is set The M first port connection corresponding with interface unit respectively of standby physical port, wherein, the interface unit is used to receive institute The packet that the network equipment is sent is stated, and packet is sent to the network equipment;M is the integer more than 1;
    The actual situation node port map unit, is specifically used for:
    For each first port in the interface unit, the first port is established with the network equipment in the void Intend the mapping relations of second port corresponding to the node in network environment.
  9. 9. device according to claim 8, it is characterised in that the network topological information includes each second port The rate information of each link in corresponding link information, and the link information;
    The processing data packets unit, is specifically used for:
    According to the rate information of link information and each link corresponding to the mapping relations, each second port, Transmit the packet.
  10. 10. device according to claim 8, it is characterised in that the network topological information includes each second end The error code information and/or delayed data of each link in link information, and the link information corresponding to mouthful;
    The processing data packets unit, is specifically used for:
    According to the error code information of link information and each link corresponding to the mapping relations, each second port, It is transmitted after the packet is produced into error code;And/or
    According to the delayed data of link information and each link corresponding to the mapping relations, each second port, It is transmitted after the packet is produced into delay.
CN201710594929.5A 2017-07-20 2017-07-20 The method of testing and device of the network equipment Pending CN107483284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710594929.5A CN107483284A (en) 2017-07-20 2017-07-20 The method of testing and device of the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710594929.5A CN107483284A (en) 2017-07-20 2017-07-20 The method of testing and device of the network equipment

Publications (1)

Publication Number Publication Date
CN107483284A true CN107483284A (en) 2017-12-15

Family

ID=60596740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710594929.5A Pending CN107483284A (en) 2017-07-20 2017-07-20 The method of testing and device of the network equipment

Country Status (1)

Country Link
CN (1) CN107483284A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388231A (en) * 2018-03-09 2018-08-10 北京航空航天大学 A kind of airborne equipment testing requirement generation method and airborne equipment test method
CN108777648A (en) * 2018-05-18 2018-11-09 新华三信息安全技术有限公司 A kind of network apparatus test method and device
CN112994954A (en) * 2021-04-21 2021-06-18 北京国科天迅科技有限公司 Network test system, test network construction method and device
CN114430385A (en) * 2022-01-17 2022-05-03 锐捷网络股份有限公司 Network equipment detection method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656636A (en) * 2009-03-04 2010-02-24 北京邮电大学 Test method of multi-layer protocol stack network equipment based on OPNET
CN101873233A (en) * 2009-04-22 2010-10-27 电子科技大学 Simulation method compatible with PeerCast network
CN101925102A (en) * 2010-06-08 2010-12-22 中国人民解放军理工大学 Wireless network topology simulation method adopting Ethernet promiscuous mode
CN103163785A (en) * 2013-03-19 2013-06-19 中国科学院声学研究所 Sonar semi-physical simulation system
CN103414612A (en) * 2013-08-29 2013-11-27 中国兵器科学研究院 Communication network real-time simulation method based on OPNET
CN105634902A (en) * 2015-12-28 2016-06-01 北京经纬恒润科技有限公司 Hardware In The Loop simulation system and communication method therefor
CN105871487A (en) * 2016-05-31 2016-08-17 西安交通大学 System-level simulation demonstration and verification system oriented to satellite mobile communication
CN105915304A (en) * 2016-05-31 2016-08-31 西安交通大学 System-level simulation demonstration verification method facing satellite mobile communication
CN106301911A (en) * 2016-08-12 2017-01-04 南京大学 Information Network based on SDN half centralized simulation platform in kind and its implementation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656636A (en) * 2009-03-04 2010-02-24 北京邮电大学 Test method of multi-layer protocol stack network equipment based on OPNET
CN101873233A (en) * 2009-04-22 2010-10-27 电子科技大学 Simulation method compatible with PeerCast network
CN101925102A (en) * 2010-06-08 2010-12-22 中国人民解放军理工大学 Wireless network topology simulation method adopting Ethernet promiscuous mode
CN103163785A (en) * 2013-03-19 2013-06-19 中国科学院声学研究所 Sonar semi-physical simulation system
CN103414612A (en) * 2013-08-29 2013-11-27 中国兵器科学研究院 Communication network real-time simulation method based on OPNET
CN105634902A (en) * 2015-12-28 2016-06-01 北京经纬恒润科技有限公司 Hardware In The Loop simulation system and communication method therefor
CN105871487A (en) * 2016-05-31 2016-08-17 西安交通大学 System-level simulation demonstration and verification system oriented to satellite mobile communication
CN105915304A (en) * 2016-05-31 2016-08-31 西安交通大学 System-level simulation demonstration verification method facing satellite mobile communication
CN106301911A (en) * 2016-08-12 2017-01-04 南京大学 Information Network based on SDN half centralized simulation platform in kind and its implementation

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108388231A (en) * 2018-03-09 2018-08-10 北京航空航天大学 A kind of airborne equipment testing requirement generation method and airborne equipment test method
CN108388231B (en) * 2018-03-09 2020-05-01 北京航空航天大学 Airborne equipment test requirement generation method and airborne equipment test method
CN108777648A (en) * 2018-05-18 2018-11-09 新华三信息安全技术有限公司 A kind of network apparatus test method and device
CN108777648B (en) * 2018-05-18 2020-12-25 新华三信息安全技术有限公司 Network equipment testing method and device
CN112994954A (en) * 2021-04-21 2021-06-18 北京国科天迅科技有限公司 Network test system, test network construction method and device
CN114430385A (en) * 2022-01-17 2022-05-03 锐捷网络股份有限公司 Network equipment detection method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109831354A (en) Virtual Debugging system based on OPC UA industry communications protocol
CN104954166B (en) A kind of hardware based network (WSN) emulation system and emulation mode
CN107483284A (en) The method of testing and device of the network equipment
CN111835565A (en) Communication network optimization method, device and system based on digital twin
CN102854858B (en) System and method for promoting to communicate with foundation fieldbus linked set
CN104901832B (en) A kind of aeronautical Ad hoc networks half-practicality network simulation system
CN109818790A (en) Hardware simulates multi-path multiple types communication protocol chip system, method and medium in real time
CN105871487B (en) A kind of system integration project demonstration and verification system towards satellite mobile communication
CN114500297B (en) Large-scale network test system based on virtual-real fusion
CN106452850A (en) SDN controller performance testing method and system
EP4009199A1 (en) Thermal-hydraulic three-dimensional real-time dynamic simulation method and system for nuclear power plant
CN104168162B (en) A kind of software-hardware synergism realizes the traffic generator for interchanger validation test
CN105915304A (en) System-level simulation demonstration verification method facing satellite mobile communication
CN102427417A (en) System and method for remotely controlling Internet of things access equipment
CN105871643B (en) Network operation emulation mode based on Routing Protocol
CN114422010B (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN106953900A (en) A kind of industrial environment outdoor scene enhanced interactive terminal and system
CN103414612A (en) Communication network real-time simulation method based on OPNET
CN105357039A (en) Simulation method and device for delay tolerant network
CN106130897B (en) Performance optimization method based on Router Simulation
CN101369934B (en) Network analogue method and system
CN110502795A (en) External simulation model accesses middleware
CN109039709A (en) A kind of mobile wireless network emulation and experiment porch based on virtualization
CN110635943B (en) Spark computing framework-based network flow simulation system in network transmission process
CN107547256A (en) A kind of power telecom network Hardware In The Loop Simulation Method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215

RJ01 Rejection of invention patent application after publication