CN109525461A - A kind of test method of the network equipment, device, equipment and storage medium - Google Patents

A kind of test method of the network equipment, device, equipment and storage medium Download PDF

Info

Publication number
CN109525461A
CN109525461A CN201811423258.7A CN201811423258A CN109525461A CN 109525461 A CN109525461 A CN 109525461A CN 201811423258 A CN201811423258 A CN 201811423258A CN 109525461 A CN109525461 A CN 109525461A
Authority
CN
China
Prior art keywords
address
data stream
test
source
request data
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
CN201811423258.7A
Other languages
Chinese (zh)
Other versions
CN109525461B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201811423258.7A priority Critical patent/CN109525461B/en
Publication of CN109525461A publication Critical patent/CN109525461A/en
Application granted granted Critical
Publication of CN109525461B publication Critical patent/CN109525461B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Abstract

The present invention provides method, apparatus, equipment and the storage medium of a kind of network apparatus test forwarding performance, its method includes: when receiving test instruction, at least two source IP address generated are obtained, and obtain at least two purpose IP address that destination server generates;Based on the source IP address and the destination IP address, request data stream is sent to equipment under test;Wherein, the quantity of the request data stream is determined based on the quantity of source/destination IP address, and the corresponding source IP address of each request data stream is different or purpose IP address is different;Receive the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, the response data stream is generated by the destination server;According to the request data stream and the response data stream, the forwarding performance test result of the equipment under test is generated, Test Networking is simplified, can realized in simple method to the optimal test effect of equipment under test.

Description

A kind of test method of the network equipment, device, equipment and storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of test method of the network equipment, device, equipment and storages Medium.
Background technique
In the functional test to the network equipment, different data flows usually is generated by calculating equipment such as computer, to survey The forwarding performance of the network equipment is tried, for example uses two computers in test, a simulation client (client), a simulation Server (server-side) tests out the forwarding of DUT (equipment under test) by the interaction of data flow between client and server-side Performance, but with advances in technology, the existing network equipment is with device for multi-core trend development, since data stream packets contain 5 members Element, respectively source IP, source port, destination IP, destination port, agreement, in daily life function test, the business of test is fixed, i.e., Agreement is fixed, and destination port is also fixed, if only two computers the case where, source IP and destination IP are also fixed, i.e., in data flow 5 elements in source IP, destination IP, destination port, agreement be it is fixed, i.e. there are 4 elements to fix in 5 elements, it is unique only remaining Source port, but source port is that operating system is voluntarily distributed, and can not be specified by hand, therefore, is carrying out DUT test using two computers In the case where, a data stream can only be generated at this time, and multicore can not be embodied well in the case where an only data stream The forwarding performance test of advantage, the network equipment can not obtain optimal test result, need to simulate a plurality of data flow at this time, at present A plurality of data flow is simulated there are mainly two types of method, one is the methods using software simulation, and one end is given out a contract for a project to other end; Another kind is the method given out a contract for a project using tester, and tester can be given out a contract for a project each other with both ends.
But in the implementation of the present invention, inventor has found: the method using software simulation is usually mechanical hair It delivers newspaper text, it is a kind of unidirectional simulation behavior, i.e., one end sends message to other end, and the usually end client is to server End sends message, and server can not respond client after receiving message, so such scheme can not be simulated completely to be had The business data flow of interbehavior is with the forwarding performance of network apparatus test;Although can be simulated using the method that tester is simulated The business data flow of interbehavior, but tester is that non-public resource cannot be fine when no tester resource Solve the problems, such as, and tester is a kind of resource of non-universalization, if tester is full optical port or full power port, and DUT is full power port or full optical port or tester is full 10G mouthfuls, and does not support that 10G is adaptive with 1G, and DUT only has 1G Mouthful, it just needs at this time using additional interconnecting device, causes cumbersome on testing process, test effect is bad, also increases survey The expenditure of examination expense.
Summary of the invention
In view of this, the present invention provides test method, device, equipment and the storage medium of a kind of network equipment, to solve The problem of data flow field simulation is unable to reach best test effect in the existing test method to the network equipment.
According to a first aspect of the embodiments of the present invention, a kind of test method of network equipment is provided, which comprises
When receiving test instruction, at least two source IP address of generation are obtained, and obtains destination server and generates At least two purpose IP address;
Based on the source IP address and the destination IP address, request data stream is sent to equipment under test;Wherein, described The quantity of request data stream is determined based on the quantity of source/destination IP address, and the corresponding source IP address of each request data stream is mutual Not identical or purpose IP address is different;
Receive the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, the response number It is generated according to stream by the destination server;
According to the request data stream and the response data stream, the forwarding performance test knot of the equipment under test is generated Fruit.
Preferably, the method also includes:
The configuration information of user's input is received, the configuration information includes the existing IP address of destination server, the first IP Address field, the second IP address section, the first subnet mask and the second subnet mask;Wherein, the first IP address section and the first subnet Mask is for generating at least two source IP address;
According to the existing IP address of the destination server, second IP address section and the second subnet mask are sent to The destination server, so that, the destination server generates at least two according to the second IP address section and the second subnet mask Purpose IP address.
Preferably, at least two source IP address or target ip address are generated by batch processing script.
Preferably, it is based on the source IP address and the destination IP address described, sends number of request to equipment under test Before stream, further includes:
According at least two source IP address and at least two the destination IP addresses, built with the destination server Vertical at least two FTP connections;The FTP connection is for sending the request data stream.
Preferably, it is based on the source IP address and the destination IP address described, sends number of request to equipment under test Before stream, further includes:
According at least two source IP address and at least two the destination IP addresses, built with the destination server Vertical at least two ping connections;The ping connection is for sending the request data stream.
Preferably, the request data stream be the service traffics based on Transmission Control Protocol, and the request data stream according to criticize at Manage what script generated.
According to a second aspect of the embodiments of the present invention, a kind of test device of network equipment is provided, described device includes:
IP address obtain module, for when receive test instruction when, obtain at least two source IP address of generation, and Obtain at least two purpose IP address that destination server generates;
First sending module is asked for being based on the source IP address and the destination IP address to equipment under test transmission Seek data flow;Wherein, the quantity of the request data stream is determined based on the quantity of source/destination IP address, and each request data Flow that corresponding source IP address is different or purpose IP address is different;
Receiving module, the response data stream being forwarded back to for receiving the equipment under test based on the request data stream;Its In, the response data stream is generated by the destination server;
Test result generation module, for generating the quilt according to the request data stream and the response data stream The forwarding performance test result of measurement equipment.
Preferably, further includes:
Configuration module, for receiving the configuration information of user's input, the configuration information includes the existing of destination server IP address, the first IP address section, the second IP address section, the first subnet mask and the second subnet mask;Wherein, the first IP address Section and the first subnet mask are for generating at least two source IP address;
Second sending module, for the existing IP address according to the destination server, by second IP address section and Second subnet mask is sent to the destination server, so that, the destination server is according to the second IP address section and the second son Net mask generates at least two purpose IP address.
According to a third aspect of the embodiments of the present invention, a kind of test equipment is provided, the test equipment includes processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving test instruction, at least two source IP address of generation are obtained, and obtains destination server and generates At least two purpose IP address;
Based on the source IP address and the destination IP address, request data stream is sent to equipment under test;Wherein, described The quantity of request data stream is determined based on the quantity of source/destination IP address, and the corresponding source IP address of each request data stream is mutual Not identical or purpose IP address is different;
Receive the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, the response number It is generated according to stream by the destination server;
According to the request data stream and the response data stream, the forwarding performance test knot of the equipment under test is generated Fruit.
According to a fourth aspect of the embodiments of the present invention, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instruction, which is characterized in that any side in the first aspect of the embodiment of the present invention is realized when the instruction is executed by processor The step of method.
The embodiment of the present invention has the following beneficial effects:
Multiple purpose IP address that the embodiment of the present invention is generated according to the multiple source IP address and destination server of generation, A plurality of request data stream is sent to equipment under test, the source IP address of the request data stream is different or purpose IP address is mutual It is not identical, and the response data stream that the equipment under test is forwarded back to based on the request data stream is received, finally asked according to Data flow and the response data stream are asked, the forwarding performance test result of the equipment under test is generated, it is raw by test equipment Multiple purpose IP address are generated at multiple source IP address and destination server, realizes and is using a test equipment and one To the simulation of a plurality of different data streams with interbehavior in the case where server, Test Networking, Er Qiewu are not only simplified Additional test equipment need to be increased, save the expenditure of test equipment, can be realized in simple method best to equipment under test Test effect.
Detailed description of the invention
Fig. 1 is a kind of present invention embodiment process of the test method of the network equipment shown according to an exemplary embodiment Figure;
Fig. 2 a, which is that the present invention is shown according to an exemplary embodiment, uses a test equipment and a destination server to quilt Measurement equipment is forwarded the schematic diagram of test;
Fig. 2 b, which is that the present invention is shown according to an exemplary embodiment, uses a test equipment and a destination server to quilt Measurement equipment is forwarded another schematic diagram of test;
Fig. 3 is the embodiment stream of the test method of the present invention another network equipment shown according to an exemplary embodiment Cheng Tu;
Fig. 4 is the embodiment stream of the test method of the present invention another network equipment shown according to an exemplary embodiment Cheng Tu;
Fig. 5 is a kind of present invention example structure of the test device of the network equipment shown according to an exemplary embodiment Figure;
Fig. 6 is a kind of present invention hardware structure diagram of test equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
It is only to be not intended to limit the invention merely for for the purpose of describing particular embodiments in terminology used in the present invention. It is also intended in the present invention and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Since the existing network equipment is with multicore trend development, when testing the network equipment, due to an equipment Only one IP address thus can only generate a data stream, can not obtain optimal test result, need to simulate at this time a plurality of Data flow, and the method that the method for the existing a plurality of data flow of simulation is simulated including the use of software, and given out a contract for a project using tester Method, but using software simulate method can not simulate the business data flow with interbehavior completely, sent out using tester The method of packet is needed using additional interconnecting device, causes cumbersome on testing process, also increases the expenditure of testing expense.
Best test effect is unable to reach in order to solve data flow field simulation in the existing test method to the network equipment Problem, the present invention provides a kind of test methods of network equipment, can be executed by test equipment, as shown in Figure 1, the side Method specifically includes:
S101 obtains at least two source IP address of generation, and obtain destination server when receiving test instruction At least two purpose IP address generated.
S102 is based on the source IP address and the destination IP address, sends request data stream to equipment under test;Its In, the quantity of the request data stream is determined based on the quantity of source/destination IP address, and the corresponding source IP of each request data stream Address is different or purpose IP address is different.
S103 receives the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, described time Data flow is answered to be generated by the destination server.
S104 generates the forwarding performance of the equipment under test according to the request data stream and the response data stream Test result.
In one embodiment, execute the test method equipment under test can for computer, tablet computer, laptop, Personal digital assistant etc. calculates equipment, and the test method of the network equipment is integrated in the test as a function program and sets In standby, when receiving test instruction, the test method is executed by the test equipment.
In step s101, when the test for receiving user instructs, the starting of testing process is determined, wherein the test The reception of instruction includes but is not limited to detect that confirmation receives test instruction process or recognizes when programmable button is triggered Confirmation receives when confirmation receives test instruction or receives the voice confirmation message of user when the required movement that user makes Instructed to test etc., the test equipment obtains at least two source IPs of generation after receiving the test instruction first Address, and at least two purpose IP address that the destination server generates are obtained to destination server.
In one embodiment, the test equipment prompts user defeated in test equipment after receiving the test instruction Enter configuration information, such as test equipment can show that corresponding input frame waits for that user inputs on equipment interface, then receive and use The configuration information of family input, the configuration information may include the first IP address section and the first subnet mask, the first IP For making the test equipment generate at least two source IP address, equipment interface can also be provided for address field and the first subnet mask The interface of purpose IP address is inputted to user, so that user inputs at least two purpose IP address that destination server generates, mesh IP address can be the generated IP address of destination server that user is known in advance.Mesh is being generated in the destination server When marking IP address, it can be and first input the configuration such as the second IP address section and the second subnet mask on destination server by user Information, the destination server generate at least two purpose IP address further according to the second IP address section and the second subnet mask.? In test process, user configures respectively in test equipment and server, with only in test equipment and server difference It is vertical to complete IP address generating process, it completes in a test equipment to multiple source IP address and on a destination server The simulation of multiple purpose IP address is generated, the equipment expenditure and maintenance expenditure in test process is saved, also reduces user and spend The energy taken.
In another embodiment, the configuration information that user inputs in test equipment can also have destination server to generate IP address, the second IP address section and the second subnet mask, user, which first passes through this IP address, makes test equipment and destination service Device establishes connection, and then the second IP address section that user inputs and the second subnet mask are sent to destination server by test equipment Generated IP address, destination server is after receiving second IP address section and the second subnet mask, according to the 2nd IP Address field and the second subnet mask generate at least two purpose IP address.During the test, user is in this one end of test equipment Completing configuration may make test equipment and destination server to be generated according to the simulation that the content once configured completes IP address, While saving the equipment expenditure and maintenance expenditure in test process, user is further facilitated, user is reduced and needs to distinguish In test equipment and the troublesome operation of server input configuration information.
In one embodiment, at least two source IP address or target ip address are generated by batch processing script.One In kind implementation, first IP address section and the first subnet mask that the test equipment is inputted according to user, by criticizing Script is handled, at least two source IP address are generated, the destination server is receiving second IP address section and second After subnet mask, at least two mesh are generated by batch processing script according to second IP address section and the second subnet mask IP address.The batch processing script be to certain object carry out batch processing, be applied to DOS and Windows system in, be by The embedded command interpreter (usually COMMAND.COM or CMD.EXE) of DOS Windows system explains operation, at present Relatively common batch processing includes two classes: DOS batch processing and PS batch processing, the present embodiment application DOS batch processing, DOS batch processing It is, for executing dos command in bulk automatically to realize the script of specific operation, to be constituted at described batch based on dos command The autoexec of script is managed, or is batch program, the common text files being made of the dos command of a rule can To be created with notepad direct editing or with dos command, can also be edited with the text editor Edit.exe under DOS, The title of autoexec is keyed under " command cue ", or double-clicks the autoexec, and system will call Cmd.exe to run The batch program.
In a step 102, Fig. 2 a and Fig. 2 b, Fig. 2 a are please referred to and uses a test equipment and a destination service for the present invention Device is forwarded the schematic diagram of test to equipment under test, and Fig. 2 b is that the present invention uses a test equipment and a destination server to quilt Measurement equipment is forwarded another schematic diagram of test, indicates that multiple source IP address and target are simulated using a test equipment to be taken Business device simulates multiple purpose IP address to be forwarded the process of test to equipment under test, and the test equipment is based on the source IP address and the destination IP address generate request data stream, and send the request data stream to equipment under test, described to ask The IP address that the quantity and destination server for the source IP address for asking the quantity of data flow to be generated based on the equipment under test are generated Quantity determine that and the corresponding source IP address of each request data stream is different or purpose IP address is different, for example, The equipment under test generates 4 source IP address, and the destination server generates 4 purpose IP address, since data flow includes 5 Element, respectively source port, source address, destination port, destination address, agreement, as long as having a difference in 5 elements, as Two different data flows, in the case where source port, destination port and agreement are fixed, 4 source IP address based on generation And 4 purpose IP address, the equipment under test at most produce 16 (4 × 4) request data streams, connect in the equipment under test After receiving the request data stream, the equipment under test is based on the destination IP address asks to described in destination server forwarding Seek data flow, it should be noted that the equipment under test is the network equipment for needing to carry out network processes by CPU, such as anti- Wall with flues, VPN device etc., the request data stream be the service traffics based on Transmission Control Protocol, such as FTP request data stream or HTTP request data stream etc., the request data stream is according to the source IP address and the destination IP address, at criticizing It manages script to generate, such as when request data stream is that ftp file is requested, the batch processing script by executing FTP order generates institute State request data stream.
In step 103, the equipment under test is after being transmitted to the destination server for the request data stream, institute It states destination server and response data stream is generated according to the request data stream, and the response data stream is sent to described be tested Equipment is forwarded back to the response data stream from the equipment under test to the test equipment, such as when request data stream is FTP text When part is requested, the destination server requests to send corresponding file data to the equipment under test according to the ftp file, with The equipment under test is set to forward the file data to the test equipment.
At step 104, the test equipment is after receiving the response data stream that the equipment under test is forwarded back to, According to the request data stream and the response data stream with interbehavior, test result is obtained, that is, tests the quilt The maximum data flow that measurement equipment can forward, such as when the equipment under test is firewall box, according to interaction row For the request data stream and the response data stream, test the maximum number of sessions of the firewall box.
Multiple purpose IP address that the embodiment of the present invention is generated according to the multiple source IP address and destination server of generation, A plurality of request data stream is sent to equipment under test, the source IP address of the request data stream is different or purpose IP address is mutual It is not identical, and the response data stream that the equipment under test is forwarded back to based on the request data stream is received, finally asked according to Data flow and the response data stream are asked, the forwarding performance test result of the equipment under test is generated, it is raw by test equipment Multiple purpose IP address are generated at multiple source IP address and destination server, realizes and is using a test equipment and one To the simulation of a plurality of different data streams with interbehavior in the case where server, Test Networking, Er Qiewu are not only simplified Additional test equipment need to be increased, save the expenditure of test equipment, can be realized in simple method best to equipment under test Test effect.
The application provides the test method of another network equipment, as shown in Figure 3, which comprises
S201 obtains at least two source IP address of generation, and obtain destination server when receiving test instruction At least two purpose IP address generated.Similar with attached step S101 shown in FIG. 1, details are not described herein again.
S202 takes according at least two source IP address and at least two the destination IP addresses with the purpose Business device establishes at least two FTP connections.
S203 is based on the source IP address and the destination IP address, data flow is generated, to connect by the FTP Request data stream is sent to equipment under test;Wherein, quantity of the quantity of the request data stream based on source/destination IP address is true It is fixed, and the corresponding source IP address of each request data stream is different or purpose IP address is different.
S204 receives the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, described time Data flow is answered to be generated by the destination server.Similar with attached step S103 shown in FIG. 1, details are not described herein again.
S205 generates the forwarding performance of the equipment under test according to the request data stream and the response data stream Test result.Similar with attached step S104 shown in FIG. 1, details are not described herein again.
In step 202, the source IP address generated is obtained in test equipment and get the destination server After the IP address of upper generation, the test equipment is according at least two source IP address and at least two the destination IPs Location is established at least two FTP with the destination server and is connect, such as the test equipment generates 4 source IP address, the mesh It marks server and generates 5 purpose IP address, then can at most establish 20 between the test equipment and the destination server (4 × 5) FTP connection, the behavior logined by simulating FTP, executes the batch processing script of FTP order, so that test equipment institute The connection of the source IP address of generation and destination server purpose IP address generated, it is easy to operate, realize test equipment Automatically the destination server is connected.
In step 203, after realizing automatic connect with the destination server, the test is set the test equipment For according to the source IP address and the destination IP address, FTP request data stream is generated by batch processing script, and based on described FTP connection, Xiang Suoshu equipment under test send the FTP request data stream, so that the equipment under test passes through the FTP connection structure The FTP request data stream is sent to the destination server by the connecting link built.
The application provides the test method of another network equipment, as shown in Figure 4, which comprises
S301 obtains at least two source IP address of generation, and obtain destination server when receiving test instruction At least two purpose IP address generated.Similar with attached step S101 shown in FIG. 1, details are not described herein again.
S302 takes according at least two source IP address and at least two the destination IP addresses with the purpose Business device establishes at least two ping connections.
S303 is based on the source IP address and the destination IP address, data flow is generated, to connect by the ping Request data stream is sent to equipment under test;Wherein, quantity of the quantity of the request data stream based on source/destination IP address is true It is fixed, and the corresponding source IP address of each request data stream is different or purpose IP address is different.
S304 receives the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, described time Data flow is answered to be generated by the destination server.Similar with attached step S103 shown in FIG. 1, details are not described herein again.
S305 generates the forwarding performance of the equipment under test according to the request data stream and the response data stream Test result.Similar with attached step S104 shown in FIG. 1, details are not described herein again.
In step 302, the source IP address generated is obtained in test equipment and get the destination server After the IP address of upper generation, the test equipment is according at least two source IP address and at least two the destination IPs Location is established at least two ping with the destination server and is connect, such as the test equipment generates 5 source IP address, described Destination server generates 5 purpose IP address, using the source IP address and the destination IP address as the feelings of variable parameter 25 (5 × 5) FTP connection can be at most established under condition, between the test equipment and the destination server, pass through ping agreement So that the connection of the test equipment source IP address generated and destination server purpose IP address generated, operation Simply, realize that test equipment connects the destination server automatically.
In step 303, after realizing automatic connect with the destination server, the test is set the test equipment The standby purpose IP address different according to different source IP address ping generates a plurality of request data stream by batch processing script, and Based on the ping connection, Xiang Suoshu equipment under test sends the request data stream, so that the equipment under test is according to The request data stream is sent to the destination server by the constructed connecting link of ping connection.
Corresponding with the embodiment of the test method of the application network equipment, present invention also provides the tests of the network equipment The embodiment of device, test equipment and computer readable storage medium.
Referring to Fig. 5, one embodiment block diagram of the test device for the application network equipment, which includes IP address Obtain module 401, sending module 402, receiving module 403 and test result generation module 404.Wherein,
The IP address obtains module 401, for when receiving test instruction, with obtaining at least two source IPs of generation Location, and obtain at least two purpose IP address that destination server generates.
First sending module 402, for being based on the source IP address and the destination IP address, to equipment under test Send request data stream;Wherein, the quantity of the request data stream is determined based on the quantity of source/destination IP address, and each item is asked Ask that the corresponding source IP address of data flow is different or purpose IP address is different.
The receiving module 403, the response number being forwarded back to for receiving the equipment under test based on the request data stream According to stream;Wherein, the response data stream is generated by the destination server.
The test result generation module 404, for generating according to the request data stream and the response data stream The forwarding performance test result of the equipment under test.
Preferably, further includes:
Configuration module, for receiving the configuration information of user's input, the configuration information includes the existing of destination server IP address, the first IP address section, the second IP address section, the first subnet mask and the second subnet mask;Wherein, the first IP address Section and the first subnet mask are for generating at least two source IP address.
Second sending module, for the existing IP address according to the destination server, by second IP address Section and the second subnet mask are sent to the destination server, so that, the destination server is according to the second IP address section and the Two subnet masks generate at least two purpose IP address.
Preferably, at least two source IP address or target ip address are generated by batch processing script.
Preferably, before first sending module 402, further includes:
FTP link block, for according at least two source IP address and at least two the destination IP addresses, with The destination server establishes at least two FTP connections;The FTP connection is for sending the request data stream.
Preferably, before first sending module 402, further includes:
Ping link block is used for according at least two source IP address and at least two the destination IP addresses, At least two ping are established with the destination server to connect;The ping connection is for sending the request data stream.
Preferably, the request data stream be the service traffics based on Transmission Control Protocol, and the request data stream according to criticize at Manage what script generated.
The reality of the device of the method and network apparatus test forwarding performance of the network apparatus test forwarding performance of the application Applying example can apply in the various test equipments for needing to carry out network equipment detection, for example, the test equipment can be computer, Tablet computer, laptop, personal digital assistant etc. calculate equipment.Wherein, embodiment of the method or Installation practice can be with By software realization, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, it is patrolled as one Device in volume meaning is by the processor 501 of electronic equipment where it by calculating corresponding in nonvolatile memory 502 Machine program instruction reads what operation in memory 503 was formed.For hardware view, as shown in fig. 6, being the application test network A kind of hardware structure diagram of test equipment where the method or device of forwarding performance of equipment, in addition to processor shown in fig. 6 501, except memory 503, network interface 504 and nonvolatile memory 502, network apparatus test forwarding property in embodiment Can method or device where test equipment generally according to the equipment actual functional capability, can also include other hardware, Fig. 6 In no longer show one by one.
Correspondingly, the embodiment of the present invention also provides a kind of test equipment, the test equipment includes processor.
Memory for storage processor executable instruction.
Wherein, the processor is configured to:
When receiving test instruction, at least two source IP address of generation are obtained, and obtains destination server and generates At least two purpose IP address.
Based on the source IP address and the destination IP address, request data stream is sent to equipment under test;Wherein, described The quantity of request data stream is determined based on the quantity of source/destination IP address, and the corresponding source IP address of each request data stream is mutual Not identical or purpose IP address is different.
Receive the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, the response number It is generated according to stream by the destination server.
According to the request data stream and the response data stream, the forwarding performance test knot of the equipment under test is generated Fruit.
The function of each unit and the realization process of effect are specifically detailed in the above method corresponding step in above-mentioned test equipment Rapid realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein being used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying wound In the case that the property made is worked, it can understand and implement.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory of instruction, above-metioned instruction can be executed by the processor of device to complete the above method.For example, non-transitory meter Calculation machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage and set It is standby etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is executed by the processor of equipment When, it enables a device to execute the above method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of test method of the network equipment, which comprises the following steps:
When receiving test instruction, at least two source IP address of generation are obtained, and obtains destination server and generates extremely Few two purpose IP address;
Based on the source IP address and the destination IP address, request data stream is sent to equipment under test;Wherein, the request The quantity of data flow determined based on the quantity of source/destination IP address, and the mutual not phase of the corresponding source IP address of each request data stream Same or purpose IP address is different;
Receive the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, the response data stream It is generated by the destination server;
According to the request data stream and the response data stream, the forwarding performance test result of the equipment under test is generated.
2. the test method of the network equipment as described in claim 1, which is characterized in that the method also includes:
The configuration information of user's input is received, the configuration information includes the existing IP address of destination server, the first IP address Section, the second IP address section, the first subnet mask and the second subnet mask;Wherein, the first IP address section and the first subnet mask For generating at least two source IP address;
According to the existing IP address of the destination server, second IP address section and the second subnet mask are sent to described Destination server, so that, the destination server generates at least two purposes according to the second IP address section and the second subnet mask IP address.
3. the test method of the network equipment as described in claim 1, which is characterized in that at least two source IP address or mesh Mark IP address is generated by batch processing script.
4. the test method of the network equipment according to claim 1, which is characterized in that be based on the source IP address described And the destination IP address, before sending request data stream to equipment under test, further includes:
According at least two source IP address and at least two the destination IP addresses, with the destination server establish to Few two FTP connections;The FTP connection is for sending the request data stream.
5. the test method of the network equipment according to claim 1, which is characterized in that be based on the source IP address described And the destination IP address, before sending request data stream to equipment under test, further includes:
According at least two source IP address and at least two the destination IP addresses, with the destination server establish to Few two ping connections;The ping connection is for sending the request data stream.
6. the test method of the network equipment according to claim 1, which is characterized in that the request data stream be based on The service traffics of Transmission Control Protocol, and the request data stream is generated according to batch processing script.
7. a kind of test device of the network equipment, which comprises the following steps:
IP address obtains module, for obtaining at least two source IP address of generation, and obtain when receiving test instruction At least two purpose IP address that destination server generates;
First sending module sends number of request to equipment under test for being based on the source IP address and the destination IP address According to stream;Wherein, the quantity of the request data stream is determined based on the quantity of source/destination IP address, and each request data stream pair The source IP address answered is different or purpose IP address is different;
Receiving module, the response data stream being forwarded back to for receiving the equipment under test based on the request data stream;Wherein, institute Response data stream is stated to be generated by the destination server;
Test result generation module, for generating described be tested and setting according to the request data stream and the response data stream Standby forwarding performance test result.
8. the test of the network equipment as claimed in claim 7, which is characterized in that further include:
Configuration module, for receiving the configuration information of user's input, the configuration information includes the existing IP of destination server Location, the first IP address section, the second IP address section, the first subnet mask and the second subnet mask;Wherein, the first IP address section and First subnet mask is for generating at least two source IP address;
Second sending module, for the existing IP address according to the destination server, by second IP address section and second Subnet mask is sent to the destination server, so that, the destination server is covered according to the second IP address section and the second subnet Code generates at least two purpose IP address.
9. a kind of test equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
When receiving test instruction, at least two source IP address of generation are obtained, and obtains destination server and generates extremely Few two purpose IP address;
Based on the source IP address and the destination IP address, request data stream is sent to equipment under test;Wherein, the request The quantity of data flow determined based on the quantity of source/destination IP address, and the mutual not phase of the corresponding source IP address of each request data stream Same or purpose IP address is different;
Receive the response data stream that the equipment under test is forwarded back to based on the request data stream;Wherein, the response data stream It is generated by the destination server;
According to the request data stream and the response data stream, the forwarding performance test result of the equipment under test is generated.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of claim 1 to 6 any the method is realized when execution.
CN201811423258.7A 2018-11-27 2018-11-27 Network equipment testing method, device, equipment and storage medium Active CN109525461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811423258.7A CN109525461B (en) 2018-11-27 2018-11-27 Network equipment testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811423258.7A CN109525461B (en) 2018-11-27 2018-11-27 Network equipment testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109525461A true CN109525461A (en) 2019-03-26
CN109525461B CN109525461B (en) 2020-09-08

Family

ID=65794395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811423258.7A Active CN109525461B (en) 2018-11-27 2018-11-27 Network equipment testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109525461B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995614A (en) * 2019-03-29 2019-07-09 新华三信息安全技术有限公司 A kind of alpha test method and device
CN111107083A (en) * 2019-12-18 2020-05-05 杭州迪普科技股份有限公司 White list specification testing method and device
CN111106983A (en) * 2019-12-27 2020-05-05 杭州迪普科技股份有限公司 Method and device for detecting network connectivity
CN111193636A (en) * 2019-10-21 2020-05-22 腾讯科技(深圳)有限公司 Method and device for testing availability of single machine
CN114257529A (en) * 2021-12-24 2022-03-29 深圳市欣博跃电子有限公司 Network equipment stability testing method, device, equipment, system and medium
CN114401141A (en) * 2022-01-18 2022-04-26 中国建设银行股份有限公司 Method and device for testing protection performance
CN114900450A (en) * 2022-04-27 2022-08-12 北京计算机技术及应用研究所 Network forwarding performance testing method based on high-speed data processing platform
CN115484209A (en) * 2022-09-23 2022-12-16 绿盟科技集团股份有限公司 Network flow playback method, device, medium and electronic equipment
CN116760756A (en) * 2023-08-15 2023-09-15 湖南天冠电子信息技术有限公司 Method for testing terminal equipment based on test switch and test switch network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2398189A1 (en) * 2010-06-15 2011-12-21 JDS Uniphase Corporation Method for time aware inline remote mirroring
CN104954205A (en) * 2015-07-22 2015-09-30 上海斐讯数据通信技术有限公司 Soft routing performance test method
CN105763398A (en) * 2016-05-06 2016-07-13 哈尔滨工程大学 Scanning detection optimizing method based on sequence hypothesis testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2398189A1 (en) * 2010-06-15 2011-12-21 JDS Uniphase Corporation Method for time aware inline remote mirroring
CN104954205A (en) * 2015-07-22 2015-09-30 上海斐讯数据通信技术有限公司 Soft routing performance test method
CN105763398A (en) * 2016-05-06 2016-07-13 哈尔滨工程大学 Scanning detection optimizing method based on sequence hypothesis testing

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995614A (en) * 2019-03-29 2019-07-09 新华三信息安全技术有限公司 A kind of alpha test method and device
CN111193636A (en) * 2019-10-21 2020-05-22 腾讯科技(深圳)有限公司 Method and device for testing availability of single machine
CN111107083A (en) * 2019-12-18 2020-05-05 杭州迪普科技股份有限公司 White list specification testing method and device
CN111107083B (en) * 2019-12-18 2021-11-23 杭州迪普科技股份有限公司 White list specification testing method and device
CN111106983A (en) * 2019-12-27 2020-05-05 杭州迪普科技股份有限公司 Method and device for detecting network connectivity
CN111106983B (en) * 2019-12-27 2021-09-21 杭州迪普科技股份有限公司 Method and device for detecting network connectivity
CN114257529A (en) * 2021-12-24 2022-03-29 深圳市欣博跃电子有限公司 Network equipment stability testing method, device, equipment, system and medium
CN114401141A (en) * 2022-01-18 2022-04-26 中国建设银行股份有限公司 Method and device for testing protection performance
CN114900450A (en) * 2022-04-27 2022-08-12 北京计算机技术及应用研究所 Network forwarding performance testing method based on high-speed data processing platform
CN115484209A (en) * 2022-09-23 2022-12-16 绿盟科技集团股份有限公司 Network flow playback method, device, medium and electronic equipment
CN115484209B (en) * 2022-09-23 2024-04-02 绿盟科技集团股份有限公司 Network traffic playback method and device, medium and electronic equipment
CN116760756A (en) * 2023-08-15 2023-09-15 湖南天冠电子信息技术有限公司 Method for testing terminal equipment based on test switch and test switch network
CN116760756B (en) * 2023-08-15 2023-12-01 湖南天冠电子信息技术有限公司 Method for testing terminal equipment by test switch and test switch networking system

Also Published As

Publication number Publication date
CN109525461B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN109525461A (en) A kind of test method of the network equipment, device, equipment and storage medium
CN110351156B (en) Test method and device
Peuster et al. MeDICINE: Rapid prototyping of production-ready network services in multi-PoP environments
De Oliveira et al. Using mininet for emulation and prototyping software-defined networks
US11032126B2 (en) Diagnostic traffic generation for automatic testing and troubleshooting
Zeng et al. EmuEdge: A hybrid emulator for reproducible and realistic edge computing experiments
CN114422010B (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN104079571A (en) Method and device for recognizing Android simulator
Erazo et al. SVEET! a scalable virtualized evaluation environment for TCP
Ramprasad et al. Emu-iot-a virtual internet of things lab
Berman et al. Future internets escape the simulator
CN114553752A (en) Network performance testing method and device based on simulation software and computer equipment
CN105991679B (en) A kind of implementation method and device of network sharing
CN112040011A (en) Simulation training method and device based on RPA and AI, computing equipment and medium
Bello et al. Design and implementation of an educational testbed for experiencing with industrial communication networks
Herrnleben et al. An iot network emulator for analyzing the influence of varying network quality
Gomez et al. A survey on network simulators, emulators, and testbeds used for research and education
Bedhief et al. From evaluating to enabling sdn for the internet of things
Zhuang et al. Experience with seattle: A community platform for research and education
CN106875765B (en) Electronic classroom implementation method and device based on VDI
JP5750175B1 (en) Network simulator and network simulation method
US10289762B2 (en) Interconnection network simulator and method for simulating interconnection networks
Hashimi et al. Performance Evaluation of a Network Using Simulation Tools or Packet Tracer
Pineda et al. Design and analysis of an open-source sdn-based 5g standalone testbed
Alzarog et al. Sdn controllers comparison based on network topology

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
GR01 Patent grant
GR01 Patent grant