CN107800593A - The method of testing and system of a kind of network pressure - Google Patents
The method of testing and system of a kind of network pressure Download PDFInfo
- Publication number
- CN107800593A CN107800593A CN201711099166.3A CN201711099166A CN107800593A CN 107800593 A CN107800593 A CN 107800593A CN 201711099166 A CN201711099166 A CN 201711099166A CN 107800593 A CN107800593 A CN 107800593A
- Authority
- CN
- China
- Prior art keywords
- test
- value
- numerical value
- module
- testing
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Abstract
The invention discloses a kind of method of testing of network pressure and system, method includes configuration service end and client node, and the service services of testing tool are opened in service end;Test function is created, the first numerical value, second value and third value are respectively written into test script;Test function is performed, the first numerical value, second value and the third value are imported at corresponding test command, and carries out pressure test, numerical value is filtered out from the log files obtained, is contrasted with theoretical value, obtain test result;System includes service end and client, and the service end is provided with preposition module, and the preposition module is used for the service services for opening testing tool;The client is provided with setup module and execution module.Compared with prior art, test process of the invention entirely tests automatic, continual progress, saves time and cost without artificially participating in.
Description
Technical field
The present invention relates to field of computer technology, the method for testing and system of specifically a kind of network pressure.
Background technology
With the continuous development of computer technology, and continuous increase to network speed demand is, it is necessary to constantly lift net
The performance of the related network devices such as line, network interface card.Carry out pressure test repeatedly is needed in the development for carrying out the network equipment, is come
Reach purpose of design.
Need mutually access between two nodes during network stress test, a node is as service ends, separately
One node is as Client ends.After Service end nodes open Server services, input pressure test life on Client end nodes
Order, is analyzed test data after the completion of test.
Network stress test is all performed manually by testing in the prior art, and the related letter of constantly input is needed in test process
Breath, also needs to check test result manually after the completion of test, more time-consuming.
The content of the invention
It is an object of the invention to provide a kind of method of testing of network pressure and system, for solving existing test process
The problem of middle artificial participation test of needs and multiple interrupt test process.
The technical solution adopted for the present invention to solve the technical problems is:A kind of method of testing of network pressure, including with
Lower step:
Configuration service end and client node, the service services of testing tool are opened in service end;
Test function is created, the first numerical value, second value and third value are respectively written into test script;
Test function is performed, the first numerical value, second value and the third value are imported at corresponding test command, and
Pressure test is carried out, numerical value is filtered out from the log files obtained, is contrasted with theoretical value, obtain test result.
Further, the testing tool uses iperf network pressure performance testing tools, and the test function of establishment is
Iperf functions.
Further, first numerical value, second value, third value are respectively IP, the length of testing speech for servicing end node
And Thread Count.
Further, step is also included before the execution test function:Check and whether there is in test function script
The step of 3rd numerical value, such as exist, then perform test function, otherwise show example sentence.
Further, the example sentence is the example for writing first numerical value, second value and third value.
A kind of test system of network pressure, including service end and client, the service end are provided with preposition module, institute
State the service services that preposition module is used to open testing tool;The client is provided with setup module and execution module, institute
State setup module to be used to set test function, and the first numerical value, second value and third value be respectively written into test script,
The execution module is used to perform test function, and first numerical value, second value, third value are imported into corresponding test life
Place is made, and carries out pressure test, numerical value is filtered out from the log files obtained, is contrasted with theoretical value, obtains test knot
Fruit.
Further, the test system also includes detection module and display module, and the detection module, which is used to check, to be surveyed
It whether there is the 3rd numerical value in trial function script, the display module is used for when in the absence of third value, shows example sentence.
Further, the test system also includes memory module, and the memory module is used to store test data, described
Test data includes caused data and test result in test process.
The effect provided in the content of the invention is only the effect of embodiment, rather than whole effects that invention is all, above-mentioned
A technical scheme in technical scheme has the following advantages that or beneficial effect:
1st, when test function is created, the numerical value that is manually entered will be needed in existing method of testing, writes direct survey
In training sheet, when performing test function, numerical value is imported at corresponding order automatically, without interrupt test, makes entirely to survey
Automatic, the coherent completion of examination process, saves the time, improves testing efficiency, and is participated in test process without artificial, improves test knot
Fruit surveys accuracy.
2nd, before test function is performed, detect whether accurately to have input required numerical value, if not inputting, prompt example sentence,
Make operating personnel according to example sentence form carry out data input, for non-professional tester can also according to example sentence pattern,
Numerical value needed for input, make the application of the present invention more extensive.
3rd, stored for test process and test result, be easy to analysis of the staff to network under test situation and look into
See, accelerate research and development and carry out.
Brief description of the drawings
Fig. 1 is the method flow diagram of the embodiment of the present invention 1;
Fig. 2 is the system construction drawing of the embodiment of the present invention 1;
Fig. 3 is the method flow diagram of the embodiment of the present invention 2;
Fig. 4 is the system construction drawing of the embodiment of the present invention 2.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair
It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention
Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with
Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated
Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale
Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
As shown in figure 1, a kind of one embodiment of network pressure testing method of the present invention, the embodiment include following step
Suddenly:
S11, configuration service end and client node, the service services of testing tool are opened in service end;
S12, test function is created, the first numerical value, second value and third value are respectively written into test script;
S13, test function is performed, the first numerical value, second value and the third value are imported into corresponding test command
Place, and pressure test is carried out, numerical value is filtered out from the log files obtained, is contrasted with theoretical value, obtains test result.
In step S11, network stress test needs two nodes, and a node is service ends (service end), another
Node is client ends (client), and the IP address of configuration node.The configuration process of node IP address is:Operated in service end
Network card configuration file is changed under system
(/etc/sysconfig/network-scripts/ifcfg-ethx) in IP address and subnet mask, preserve
After restart network service, node IP configuration successful.Needed during test two nodes directly can ping lead to, use " ping IP
Location " is ordered, and can be normally received packet between two nodes, and information then proves that two node ping lead to without loss.In order to avoid right
The interference of test, the fire wall and network service function of two nodes are closed, and iperf-s are performed on service end nodes
512k orders, open iperf service services.Wherein iperf is applied in network performance test instrument.
In step S12, iperf functions are created, write the first numerical value, second value and the 3rd number successively after test script
Value is simultaneously entered as SUT, Time1 and Thread respectively, and assignment title SUT, Time1 and Thread can sets itselfs.Wherein first
Numerical value, second value and third value represent the IP, length of testing speech and Thread Count of service end nodes respectively, when setting test
Length is to preferably control the testing time, and length of testing speech generally calculates in seconds, and test thread is typically set to multithreading.
In step S13, test function iperf is performed, script is automatically by ip (IP), the length of testing speech of service end nodes
(Time1) and the position that imported into test command of Thread Count (Tread), and applied voltage test is performed.Wherein in test command and
Relevant position is iperf-c IP-w 512k-i 1-t Time-P Tread | tee-a iperf.log.Meeting after the completion of pressurization
Log files are formed, numerical value is filtered out from log files, by the numerical value compared with theoretical value, judges whether network test passes through.
Wherein theoretical value is typically set at the 90% of network equipment energy maximum pressure, by taking ten thousand Broadcoms as an example, more than or equal to 10,000,000,000
90% i.e. test passes through.
As shown in Fig. 2 a kind of one embodiment of network pressure testing system of the present invention, the system of the embodiment include
Service end 1 and client 2, service end 1 are provided with preposition module 11, and preposition module 11 is used for the service for opening testing tool
Service;Client 2 is provided with setup module 21 and execution module 22, and setup module 21 is used to setting test function, and by first
Numerical value, second value and third value are respectively written into test script, and execution module 22 is used to perform test function, by the first number
Value, second value, third value are imported at corresponding test command, and carry out pressure test, are screened from the log files obtained
Go out numerical value, contrasted with theoretical value, obtain test result.
System also includes memory module 23, and memory module 23 is used to store test data, and test data includes test process
In caused data and test result, facilitate staff to the analysis of test and check.
As shown in figure 3, a kind of another embodiment of network pressure testing method of the present invention, the present embodiment include following step
Suddenly:
S21, configuration service end and client node, the service services of testing tool are opened in service end;
S22, test function is created, the first numerical value, second value and third value are respectively written into test script;
S23, check in test function script and whether there is the 3rd numerical value, if in the presence of directly execution step S25, if not
In the presence of execution step S24;
S24, export example sentence.
S25, test function is performed, the first numerical value, second value and the third value are imported into corresponding test command
Place, and pressure test is carried out, numerical value is filtered out from the log files obtained, is contrasted with theoretical value, obtains test result.
In step S21, network stress test needs two nodes, and a node is service ends (service end), another
Node is client ends (client), and the IP address of configuration node.The configuration process of node IP address is:Operated in service end
Network card configuration file is changed under system
(/etc/sysconfig/network-scripts/ifcfg-ethx) in IP address and subnet mask, preserve
After restart network service, node IP configuration successful.Needed during test two nodes directly can ping lead to, use " ping IP
Location " is ordered, and can be normally received packet between two nodes, and information then proves that two node ping lead to without loss.In order to avoid right
The interference of test, the fire wall and network service function of two nodes are closed, and iperf-s are performed on service end nodes
512k orders, open iperf service services.Wherein iperf is applied in network performance test instrument.
In step S22, iperf functions are created, write the first numerical value, second value and the 3rd number successively after test script
Value is simultaneously entered as SUT, Time1 and Thread respectively, and assignment title SUT, Time1 and Thread can sets itselfs.Wherein first
Numerical value, second value and third value represent the IP, length of testing speech and Thread Count of service end nodes respectively, when setting test
Length is to preferably control the testing time, and length of testing speech generally calculates in seconds, and test thread is typically set to multithreading.
Step S23, check in test function script and whether there is the 3rd numerical value because three numerical value be in sequence according to
Secondary write-in, if being not present, illustrate that numerical value in input, mistake occurs.
In step S24, the example sentence of display is the example of the first numerical value of write-in, second value and third value, such as example sentence
It is shown as " For Example./netx1.sh 192.168.1.1 172,800 6 ".
In step S25, test function iperf is performed, script is automatically by ip (IP), the length of testing speech of service end nodes
(Time1) and the position that imported into test command of Thread Count (Tread), and applied voltage test is performed.Wherein in test command and
Relevant position is iperf-c IP-w 512k-i 1-t Time-P Tread | tee-a iperf.log.Meeting after the completion of pressurization
Log files are formed, numerical value is filtered out from log files, by the numerical value compared with theoretical value, judges whether network test passes through.
Wherein theoretical value is typically set at the 90% of network equipment energy maximum pressure, by taking ten thousand Broadcoms as an example, more than or equal to 10,000,000,000
90% i.e. test passes through.
As shown in figure 4, a kind of one embodiment of network pressure testing system of the present invention, the system of the embodiment is in reality
On the basis of applying example 1 (shown in Fig. 2), in addition to detection module 24 and display module 25, detection module 24 are used to check test letter
It whether there is the 3rd numerical value in number script, display module 15 is used for when in the absence of third value, shows example sentence.
Simply the preferred embodiment of the present invention described above, for those skilled in the art,
Without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also regarded as this hair
Bright protection domain.
Claims (8)
1. a kind of method of testing of network pressure, it is characterized in that:Comprise the following steps:
Configuration service end and client node, the service services of testing tool are opened in service end;
Test function is created, the first numerical value, second value and third value are respectively written into test script;
Test function is performed, the first numerical value, second value and the third value are imported at corresponding test command, and is carried out
Pressure test, numerical value is filtered out from the log files obtained, is contrasted with theoretical value, obtains test result.
2. method of testing according to claim 1, it is characterized in that:The testing tool uses iperf network pressure performances
Testing tool, the test function of establishment is iperf functions.
3. method of testing according to claim 1 or 2, it is characterized in that:First numerical value, second value, third value
Respectively service IP, length of testing speech and the Thread Count of end node.
4. method of testing according to claim 3, it is characterized in that:Also include step before the execution test function:
The step of whether there is the 3rd numerical value in test function script is checked, is such as existed, is then performed test function, otherwise show example
Sentence.
5. method of testing according to claim 4, it is characterized in that:The example sentence is write-in first numerical value, the second number
The example of value and third value.
6. a kind of test system of network pressure, it is characterized in that:Including service end and client, the service end is provided with preposition
Module, the preposition module are used for the service services for opening testing tool;The client is provided with setup module and execution
Module, the setup module is used to set test function, and the first numerical value, second value and third value are respectively written into test
In script, the execution module is used to perform test function, and first numerical value, second value, third value are imported into pair
Answer at test command, and carry out pressure test, filter out numerical value from the log files obtained, contrasted, obtained with theoretical value
Test result.
7. test system according to claim 6, it is characterized in that:The test system also includes detection module and display mould
Block, the detection module, which is used to check, whether there is the 3rd numerical value in test function script, the display module is used for not
When third value be present, example sentence is shown.
8. the test system according to claim 6 or 7, it is characterized in that:The test system also includes memory module, described
Memory module is used to store test data, and the test data includes caused data and test result in test process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711099166.3A CN107800593A (en) | 2017-11-09 | 2017-11-09 | The method of testing and system of a kind of network pressure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711099166.3A CN107800593A (en) | 2017-11-09 | 2017-11-09 | The method of testing and system of a kind of network pressure |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107800593A true CN107800593A (en) | 2018-03-13 |
Family
ID=61549378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711099166.3A Pending CN107800593A (en) | 2017-11-09 | 2017-11-09 | The method of testing and system of a kind of network pressure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107800593A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108419074A (en) * | 2018-05-17 | 2018-08-17 | 太仓市同维电子有限公司 | IP Camera wireless performance test methods |
CN110995491A (en) * | 2019-12-05 | 2020-04-10 | 苏州浪潮智能科技有限公司 | Method and system for automatically optimizing and testing network pressure |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9176184B2 (en) * | 2013-10-03 | 2015-11-03 | Globalfoundries U.S. 2 Llc | Semiconductor device burn-in stress method and system |
CN105653435A (en) * | 2015-12-28 | 2016-06-08 | 曙光信息产业(北京)有限公司 | Performance test method of NFS and performance test device of NFS |
CN106201812A (en) * | 2016-07-15 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of BMCSensor pressure monitor method of testing based on IPMI service |
CN106230655A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of network pressure testing method and device |
CN106383786A (en) * | 2016-09-27 | 2017-02-08 | 北京金山安全软件有限公司 | Interface pressure performance testing method and device and electronic equipment |
-
2017
- 2017-11-09 CN CN201711099166.3A patent/CN107800593A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9176184B2 (en) * | 2013-10-03 | 2015-11-03 | Globalfoundries U.S. 2 Llc | Semiconductor device burn-in stress method and system |
CN105653435A (en) * | 2015-12-28 | 2016-06-08 | 曙光信息产业(北京)有限公司 | Performance test method of NFS and performance test device of NFS |
CN106201812A (en) * | 2016-07-15 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of BMCSensor pressure monitor method of testing based on IPMI service |
CN106230655A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of network pressure testing method and device |
CN106383786A (en) * | 2016-09-27 | 2017-02-08 | 北京金山安全软件有限公司 | Interface pressure performance testing method and device and electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108419074A (en) * | 2018-05-17 | 2018-08-17 | 太仓市同维电子有限公司 | IP Camera wireless performance test methods |
CN110995491A (en) * | 2019-12-05 | 2020-04-10 | 苏州浪潮智能科技有限公司 | Method and system for automatically optimizing and testing network pressure |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108399114B (en) | System performance testing method and device and storage medium | |
CN104123219B (en) | Method and device for testing software | |
CN108446190A (en) | interface test method and device | |
CN104268079B (en) | A kind of method and system of POS Application testings | |
CN109615328A (en) | A kind of teaching evaluation system | |
US20210165640A1 (en) | Accelerating Application Modernization | |
US20160217061A1 (en) | Determining test case efficiency | |
CN106059853B (en) | A kind of network connectivty test method and device | |
CN109783785A (en) | Generate the method, apparatus and computer equipment of tryout test report | |
CN107800593A (en) | The method of testing and system of a kind of network pressure | |
CN107896173A (en) | Automated testing method, test equipment, automatization test system and storage medium | |
CN107204899A (en) | A kind of method of testing of network interface card, device and terminal | |
CN107908538A (en) | A kind of automated testing method and system of server system performance | |
CN109542780A (en) | Test method, test equipment and the storage medium of natural language processing application | |
CN104063326A (en) | Software testing data analysis oscilloscope and method | |
CN106959919A (en) | Method for testing software and device based on test path figure | |
CN103106626A (en) | Training course management system and training course management method | |
CN107168844A (en) | A kind of method and device of performance monitoring | |
Setiyawan | Assignment and Monitoring Information System of Prakerin Students Based On SMS Gateway with Raspberry Pi | |
CN107704390A (en) | A kind of method of test FRU consistency on messagings | |
CN102708717A (en) | Method and system for carrying out testing by electronic writing board | |
CN108959078A (en) | A kind of end Windows automatic software test method and system | |
CN108932118A (en) | A kind of demand acquisition method for establishing model based on card | |
JP2020190556A (en) | Test measurement system and method for testing device under test | |
CN107704389A (en) | A kind of page method of testing and device |
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: 20180313 |
|
RJ01 | Rejection of invention patent application after publication |