CN103812712B - The test method and system of throughput of network device - Google Patents
The test method and system of throughput of network device Download PDFInfo
- Publication number
- CN103812712B CN103812712B CN201210436267.6A CN201210436267A CN103812712B CN 103812712 B CN103812712 B CN 103812712B CN 201210436267 A CN201210436267 A CN 201210436267A CN 103812712 B CN103812712 B CN 103812712B
- Authority
- CN
- China
- Prior art keywords
- embedded computer
- network
- throughput
- test
- tested
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides a kind of test method and system of throughput of network device.The method includes:Control device is communicatively connected to the network equipment to be tested by the first embedded computer, and first embedded computer is connected to the second embedded computer by the network device communications to be tested;The far call order that control device is sent is obtained, according to the iperf tools in the second embedded computer described in the far call command calls, and using second embedded computer as server-side;The test command that receiving control apparatus is sent, runs the iperf tools in first embedded computer, and using the first embedded computer as client according to test command;The client is tested to the network throughput between server-side, and returns to the network throughput test result to the control device.The test method and system of above-mentioned throughput of network device, it is small because of embedded computer, it is low in energy consumption, reduce the cost of test.
Description
Technical field
The present invention relates to computer technologies, more particularly to the test method and system of a kind of throughput of network device.
Background technology
In family and building networks of enterprises, two personal computers(Personal Computer, abbreviation PC)Or it is more
Platform PC is connected, and connects realization, such as the hub of 8 ports by the network equipment provided with multiple ports mostly
(HUB), the router of 4 ports(Router), the Switch of 8 ports(Interchanger)Deng.The handling capacity of each port of the network equipment is big
Small is the important indicator for weighing network device communications quality.So factory needs to test gulping down for each port in production
Whether the amount of spitting, the quality to weigh product meet requirement.
Currently, for this testing requirement of factory, there is dedicated test equipment big come the handling capacity for testing these ports
Small, such method testing environment and test process are simple, but price is more expensive, and cost compares for plant produced
Height is unfavorable for large batch of production test.And a kind of applied in network performance test tool iperf can by two PC run come
The handling capacity of network apparatus test reduces testing cost, but PC either Desktop PCs or notebook volume are larger, make
It is higher with testing cost is carried out with two PC, and power consumption is high, inconvenient to carry, testing efficiency is low.
Invention content
Based on this, it is necessary to for cost is higher and power consumption is high problem, provide one kind can reduce testing cost and
Save the test method of the throughput of network device of electricity.
In addition, there is a need to the test for providing a kind of throughput of network device that can be reduced testing cost and save electricity
System.
A kind of test method of throughput of network device, includes the following steps:
Control device is communicatively connected to the network equipment to be tested by the first embedded computer, and by described
One embedded computer is connected to the second embedded computer by the network device communications to be tested;
The far call order that control device is sent is obtained, it is embedded according to described in the far call command calls second
Iperf tools in computer, and using second embedded computer as server-side;
The test command that receiving control apparatus is sent is run according to the test command in first embedded computer
Iperf tools, and using first embedded computer as client;
The client is tested to the network throughput between server-side, and returns to the network throughput test result and arrives
The control device.
In one of the embodiments, it is described obtain control device send far call order the step of be:
The far call order that control device is sent is obtained by telnet modes or RS232 serial communication protocols;
The step of test command that the receiving control apparatus is sent is:
The test command sent by telnet modes or RS232 serial communication protocol receiving control apparatus.
Net to be tested is communicatively connected to by the first embedded computer in control device in one of the embodiments,
Network equipment, and that first embedded computer by the network device communications to be tested is connected to second is embedded
Further include step before the step of computer:
According to the port number of the network equipment to be tested in first embedded computer and the second embedded meter
The IP of the half number for the port number that the network equipment to be tested is set is increased separately on calculation machine;
IP on IP and the second embedded computer on first embedded computer is matched two-by-two, the IP of pairing
It is arranged in the same network segment.
In one of the embodiments, when the port number of the network equipment to be tested be 4, then it is described first insertion
2 IP of setting are increased separately on formula computer and the second embedded computer;When the port number of the network equipment to be tested
It is that 4 IP of setting are increased separately on 8, then first embedded computer and the second embedded computer.
In one of the embodiments, in the test client to the network throughput between server-side, and return
The network throughput test result is returned to after the step of the control device, further includes:
The reference value of network throughput is set;
The obtained network throughput of testing is compared with the reference value, if being less than the reference value, is carried
Show that the network throughput of the test is abnormal.
A kind of test system of throughput of network device, including control device, the first embedded computer and the second insertion
Formula computer, the control device are communicatively connected to the network equipment to be tested by the first embedded computer, and described first
Embedded computer is connected to the second embedded computer by the network device communications to be tested;
Second embedded computer is used to obtain the far call order of control device transmission, and according to described long-range
The iperf tools of itself are called in call instruction, and second embedded computer is as server-side;
First embedded computer is used for the test command that receiving control apparatus is sent, and according to the test command
The iperf tools of itself are run, and first embedded computer is as client;
Iperf tools on first embedded computer and the second embedded computer test the client to clothes
Network throughput between business end, and the network throughput test result is returned to the control device.
Second embedded computer passes through telnet modes or RS232 serial communications in one of the embodiments,
Agreement obtains the far call order that control device is sent;First embedded computer passes through telnet modes or RS232
The test command that serial communication protocol receiving control apparatus is sent.
First embedded computer and the second embedded computer are additionally operable to root respectively in one of the embodiments,
Increase the port number that the network equipment to be tested is set on itself according to the port number of the network equipment to be tested
The IP of half number;
The control device is additionally operable to control on the IP and the second embedded computer on first embedded computer
IP match two-by-two, and by the IP of pairing be arranged in the same network segment.
In one of the embodiments, when the port number of the network equipment to be tested be 4, then it is described first insertion
2 IP of setting are increased separately on formula computer and the second embedded computer;When the port number of the network equipment to be tested
It is that 4 IP of setting are increased separately on 8, then first embedded computer and the second embedded computer.
The control device is additionally operable to the reference value of setting network throughput in one of the embodiments, and by institute
It states the network throughput that test obtains to be compared with the reference value, if being less than the reference value, prompts the test
Network throughput is abnormal.
The test method of above-mentioned throughput of network device is communicated to connect, so by being established with control device and the network equipment
It is right according to the order testing results tool of control device afterwards using two embedded computers as client and server-side
Client and server-side carry out testing throughput, test result are finally sent to control device, which is exactly network
Handling capacity between the port of equipment controls operation insertion because testing tool is integrated embedded computer by control device
Testing tool on formula computer realizes test, small because of embedded computer, low in energy consumption, reduces the cost of test.
In addition, configuring end on the first embedded computer and the second embedded computer according to the port number of the network equipment
The IP of mouth number half so that each port of the network port is by the network port of the first embedded computer and second computer
Occupy, and match right IP address, the detection of different port need to be only executed according to the order under control device, be not required to pull out line with
Plug wire saves operation, improves testing efficiency.
Description of the drawings
Fig. 1 is a kind of test method flow chart of throughput of network device in one embodiment;
Fig. 2 is a kind of structural schematic diagram of the test system of throughput of network device in one embodiment;
Fig. 3 is that the test system of throughput of network device in one embodiment is applied to the network equipment of 8 ports of test
Connection diagram.
Specific implementation mode
With reference to specific embodiment and attached drawing to the test method of throughput of network device and the technical solution of system
It is described in detail, so that it is clearer.
As shown in Figure 1, in one embodiment, a kind of test method of throughput of network device includes the following steps:
Control device is communicatively connected to the network equipment to be tested by the first embedded computer by step S110, with
And the first embedded computer is connected to the second embedded computer by network device communications to be tested.
In the present embodiment, two embedded computers are connected to the network equipment to be tested, i.e., first by network interface
Embedded computer is connect by the network equipment with the second embedded computer.Wherein, the first embedded computer is set with control
Standby connection, which, which can be Desktop PC, laptop, tablet computer etc., has interactive interface and can control embedded
The equipment of computer.The first embedded computer being connect with control device can receive order and the hair of control device transmission
Send test result, the handling capacity of embedded computer network apparatus test under the control of control device.Because iperf tools need
Have server-side and client that could carry out testing throughput, so in the handling capacity of network apparatus test, need one it is embedding
Enter formula computer as server-side, another embedded computer is as client.
In one embodiment, above-mentioned steps S110 is:Control device, the first embedded meter are established by RS-232 interface
Communication connection between calculation machine, the network equipment and the second embedded computer.
Specifically, RS-232 interface is one of the communication interface on personal computer, by Electronic Industries Association
The asynchronous transmission standard interface that (Electronic Industries Association, EIA) is formulated.RS-232 interface line
Road is simple, and two groups of RS-232 interfaces are had in general personal computer, are referred to as COM1 and COM2.Due to communications equipment vendor
All communication equipments of production and RS-232C multiple display modes compatibles, therefore, it is as a kind of standard, at present in microcomputer communication interface
It is widely used.
Step S120 obtains the far call order that control device is sent, is embedded according to far call command calls second
Iperf tools in formula computer, and using the second embedded computer as server-side.
In the present embodiment, Iperf tools have operating parameter, and different ports will be used by monitoring different ports
Number, so an Iperf tool must be reruned before testing different port, it is used as ginseng by incidentally different port numbers
Number, to monitor the communication of different ports.In the present embodiment, the order for establishing server-side can be Iperf-s-w 256k-
P2 ,-s indicate with server-side mode operation, that is, to establish server-side, it is 8KB that TCP window size, acquiescence are specified in-w expressions, and-p is indicated
The port that specified services end uses, with the communication statistic information flow of listening port.The simplest order of server-side can be:iperf-
s.Iperf tools calling interface is provided in embedded computer can facilitate the far call on network.Control device passes through
IP address identifies the second embedded computer.
In one embodiment, it is the step of the far call order of acquisition control device transmission in above-mentioned steps S120:
The far call order that control device is sent is obtained by telnet modes or RS232 serial communication protocols.
Specifically, can increase telnet on embedded computer, telnet agreements are a member in TCP/IP protocol suite,
It is the standard agreement and major way of telnet server.Control device can start one by the first embedded device
Telnet session access has the second embedded computer of telnet functions, and far call order is passed through telnet modes
It is sent to the second embedded computer, runs the Iperf tools on the second embedded computer.
Step S130, the test command that receiving control apparatus is sent run the first embedded computer according to test command
In iperf tools, and using the first embedded computer as client.
Specifically, the first embedded computer is directly connected to control device, the test command that receiving control apparatus is sent is just
Iperf tools can directly be run or iperf tools can also be run by calling iperf tool calling interfaces.Test Network
Network handling capacity can be completed by the way that an order is disposable, such as test command iperf-c192.168.2.3-w 256k-r-P
2 ,-c mark are run with client mode, and 192.168.2.3 indicates the IP address of server-side, and the IP address of server-side can be hand
Dynamic configuration can also be to automatically configure, and it can also be to automatically configure that the IP address of client, which can be manual configuration ,-
W indicates that TCP window size, the reciprocal test pattern of-r expressions is specified to service at the end of the test of client to server-side
End passes through specified port(Or it is defaulted as the port that client is connected to server-side), Opposite direction connection to client ,-p expression visitors
The port that family end is connected, with the communication statistic information flow of listening port.The simplest order of client can be iperf-
c192.168.2.3。
In one embodiment, the step of test command of receiving control apparatus transmission is:By telnet modes or
The test command that RS232 serial communication protocol receiving control apparatus is sent.
Step S140, the network throughput between test client and server-side, and return to network throughput test result
To control device.
Specifically, because of the first embedded computer(That is client)With the second embedded computer(That is server-side)Pass through net
Network equipment connect, by the network equipment exchange data, so test client to the network throughput between server-side be exactly to connect
The handling capacity between the port of the first embedded computer and the port for connecting the second embedded computer is connect, that is, network is set
Handling capacity between standby two of which port.Because of the small volume of embedded computer, display device will not be generally set, be
Display test result, test result shown back to control device, can conveniently check test result, and will not be because needing
Display device is set and increases the manufacturing cost of embedded computer, and saves the power consumption of embedded computer.
The test method of above-mentioned throughput of network device is communicated to connect, so by being established with control device and the network equipment
It is right according to the order testing results tool of control device afterwards using two embedded computers as client and server-side
Client and server-side carry out testing throughput, test result are finally sent to control device, which is exactly network
Handling capacity between the port of equipment controls operation insertion because testing tool is integrated embedded computer by control device
Testing tool on formula computer realizes test, small because of embedded computer, low in energy consumption, reduces the cost of test.
Further, in one embodiment, it is connected to by the first embedded computer in control device to be tested
The network equipment, and first embedded computer is connected to the second embedded computer by the network equipment to be tested
The step of before, further include step:It is embedding in the first embedded computer and second according to the port number of the network equipment to be tested
Enter the IP for the half number that the port number that the network equipment to be tested is set is increased separately on formula computer(Internet
Protocol, the agreement interconnected between network);By the IP on the IP and the second embedded computer on the first embedded computer
It matches two-by-two, the IP of pairing is arranged in the same network segment.
Specifically, when the port number of the network equipment to be tested is that 4, then the first embedded computer and second are embedded
2 IP of setting are increased separately on computer;When the port number of the network equipment to be tested is 8, then the first embedded computer
4 IP are set with being increased separately on the second embedded computer.
Such as the port number of the network equipment to be tested is 8, the first embedded computer and the second embedded computer
On 4 IP and MAC Address is respectively set(Medium Access Control, medium access control), the first embedded computer
On set IP5 to IP8, IP1 to IP4 is set on the second embedded computer, then matches the IP on two embedded computers two-by-two
It is right, as IP1 and IP5 are matched, and it is arranged in the same network segment, such as 192.168.2.2,192.168.2.3;IP2 and IP6 is matched,
And it is arranged in the same network segment, such as 192.168.3.2,192.168.3.3;IP3 and IP7 is matched, and is arranged same
The network segment, such as 192.168.4.2,192.168.4.3;IP4 and IP8 is matched, and is arranged in the same network segment, such as
192.168.5.2,192.168.5.3.
Multiple IP are set on first embedded computer and the second embedded computer, it is necessary first to the first embedding assembly
Machine and the second embedded computer can be established by multiple network ports and the network equipment to be communicated to connect.The network port can be
RJ-11 interface or RJ-45 interfaces, both interfaces are relatively common in the network device.In addition, the network port can also be
SC optical fiber interfaces, FDDI(Fiber Distributed DataInterface, Fiber Distribution Data Interface)Interface, AUI
(Attachment Unit Interface, Attachment Unit Interface)Interface, BNC(Bayonet Nut Connector, bayonet spiral shell
Female connectors)Interface, Console interfaces, USB(Universal Serial BUS, universal serial bus)Interface etc..By more
A network port is established with the network equipment and is communicated to connect, and configures corresponding IP address for each network port, only need to pass through control
Control equipment, which is issued orders, detects the network throughput of the corresponding network port of IP address matched, will not be because of test network end to be changed
Mouthful and constantly pull out line and plug wire, improve testing efficiency.
Further, in one embodiment, the client is being tested to the network throughput between server-side, and returning
The network throughput test result is returned to after the step of the control device, further includes:The reference of network throughput is set
Value;The obtained network throughput of testing is compared with the reference value, if being less than the reference value, described in prompt
The network throughput of test is abnormal.
Specifically, the reference value of network throughput is arranged according to the performance of the processor of the network equipment, such as the network equipment
The reference value of maximum bandwidth 100M, network throughput can be 40M, by the result of test compared with reference value, if being less than reference value,
There is exception in two ports of the network equipment of table test, there are failures etc. for the circuit of abnormal i.e. finger tip mouth.
Using control device as personal computer, the first embedded computer and the second embedded computer have 4 networks
For port, the test method of above-mentioned throughput of network device is applied to the handling capacity size of the network equipment of 8 ports of test
The step of include:
(1)4 network ports of 4 network ports of the first embedded computer and the second embedded computer are distinguished
It is connected on 8 ports of the network equipment, personal computer is connected to the first embedded computer.
(2)The IP5 to IP8 of first embedded computer is matched with the IP1 to IP4 of the second embedded computer one by one respectively
It is right, and to the same network segment IP address of one group of setting of pairing.
(3)Personal computer controls the first embedded computer and accesses the second embedded computer using telnet modes,
The iperf tools on far call the second embedded computer of command calls are sent, using the second embedded computer as service
End retransmits test command and the iperf tools on the first embedded computer is called to test out IP1 using IP5 as parameter,
Handling capacity size between IP5, i.e. handling capacity size between the port 1 and port 5 of the network equipment.
(4)The iperf tools on the first embedded computer and the second embedded computer are reruned in test every time, so
Afterwards using IP6 as parameter, the handling capacity size between IP2 and IP6 is tested, i.e. the port 2 of tested product, between port 6
Handling capacity size;Using IP7 as parameter, IP3 is tested out, the handling capacity size between IP7, the i.e. port 3 of tested product, port
Handling capacity size between 7;Using IP8 as parameter, IP4 is tested out, the handling capacity size between IP8, the i.e. end of tested product
Mouthfuls 4, the handling capacity size between port 8.
As shown in Fig. 2, in one embodiment, a kind of test system of throughput of network device, including control device
110, the first embedded computer 120, the network equipment 130 to be tested and the second embedded device 140.Wherein:
Control device 110 is communicatively connected to the network equipment 130 to be tested by the first embedded computer 120, and first
Embedded computer 120 is communicatively connected to the second embedded computer 140 by the network equipment 130 to be tested.
Specifically, can be by RS-232 interface by control device 110, the first embedded computer 120, the network equipment 130
It is connected with the second embedded device 140.
Control device 110, which can be Desktop PC, laptop, tablet computer etc., to be had interactive interface and can control insertion
The equipment of formula computer.
Second embedded computer 140 is used to obtain the far call order of the transmission of control device 110, and is adjusted according to long-range
With the iperf tools of command calls itself, and the second embedded computer 140 is used as server-side.
It is set specifically, the second embedded computer 140 obtains control by telnet modes or RS232 serial communication protocols
The standby 110 far call orders sent.Telnet functions can be increased on embedded computer, telnet agreements are TCP/IP associations
A member in race is discussed, is the standard agreement and major way of telnet server.Control device 110 can be embedded by first
Equipment 120, which starts telnet session access, has the second embedded computer 140 of telnet functions, and by far call
Order is sent to the second embedded computer 140 by telnet modes, and runs on the second embedded computer 140
Iperf tools.
In the present embodiment, Iperf tools have operating parameter, and different ports will be used by monitoring different ports
Number, so an Iperf tool must be reruned before testing different port, it is used as ginseng by incidentally different port numbers
Number, to monitor the communication of different ports.The order for establishing server-side can be Iperf-s-w256k-P2, and-s is indicated to service
Mode operation is held, that is, establishes server-side ,-w indicates that it is 8KB to specify TCP window size, acquiescence, and-p indicates that given server end makes
Port, with the communication statistic information flow of listening port.The simplest order of server-side can be:iperf-s.Embedding assembly
Iperf tools calling interface is provided in machine can facilitate the far call on network.Control device 110 is identified by IP address
Second embedded computer 140.
First embedded computer 120 is used for the test command that receiving control apparatus 110 is sent, and is ordered according to the test
The iperf tools of itself that run are enabled, and the first embedded computer 120 is used as client.
It is set specifically, the first embedded computer 120 receives control by telnet modes or RS232 serial communication protocols
Standby 110 test commands sent.First embedded computer is directly connected to control device, the test life that receiving control apparatus is sent
Order can directly run iperf tools or can also be by calling iperf tool calling interfaces to run iperf tools.
Test network handling capacity can be completed by the way that an order is disposable, such as test command iperf-
C192.168.2.3-w256k-r-P2 ,-c mark are run with client mode, and 192.168.2.3 indicates the IP address of server-side,
It can also be to automatically configure that the IP address of server-side, which can be manual configuration, and the IP address of client can be manual configuration
Can also be to automatically configure ,-w indicates to specify TCP window size, and-r indicates reciprocal test pattern, when client arrives
At the end of the test of server-side, server-side passes through specified port(Or it is defaulted as the port that client is connected to server-side), instead
To client is connected to ,-p indicates the port that client is connected, with the communication statistic information flow of listening port.Client is most simple
Order can be iperf-c192.168.2.3.
Iperf tools test client on first embedded computer 120 and the second embedded computer 140 is to service
Network throughput between end, and network throughput test result is returned to control device 110.
The test system of above-mentioned throughput of network device is communicated to connect, so by being established with control device and the network equipment
It is right according to the order testing results tool of control device afterwards using two embedded computers as client and server-side
Client and server-side carry out testing throughput, test result are finally sent to control device, which is exactly network
Handling capacity between the port of equipment controls operation insertion because testing tool is integrated embedded computer by control device
Testing tool on formula computer realizes test, small because of embedded computer, low in energy consumption, reduces the cost of test.
Further, in one embodiment, the first embedded computer 120 and the second embedded computer 140 are also used
In the half number for increasing the port number that the network equipment 130 is arranged on itself according to the port number of the network equipment 130 respectively
IP;Control device 110 is additionally operable to the IP on 120 IP and the second embedded computer 140 on the first embedded computer of control
It matches two-by-two, and the IP of pairing is arranged in the same network segment.
Specifically, when the port number of the network equipment 130 is 4, then first embedded computer 120 and second is embedded in
2 IP of setting are increased separately on formula computer 140;When the port number of the network equipment 130 is 8, then the described first embedded meter
4 IP of setting are increased separately on calculation machine 120 and the second embedded computer 140.
Such as the port number of the network equipment is 8, is set respectively on the first embedded computer and the second embedded computer
4 IP and MAC Address are set, IP5 to IP8 is set on the first embedded computer, IP1 to IP4 is set on the second embedded computer, so
The IP on two embedded computers is matched two-by-two afterwards, as IP1 and IP5 are matched, and is arranged in the same network segment, such as
192.168.2.2,192.168.2.3;IP2 and IP6 is matched, and is arranged in the same network segment, such as 192.168.3.2,
192.168.3.3;IP3 and IP7 is matched, and is arranged in the same network segment, such as 192.168.4.2,192.168.4.3;It will
IP4 and IP8 pairings, and be arranged in the same network segment, such as 192.168.5.2,192.168.5.3.
Multiple IP are set on first embedded computer 120 and the second embedded computer 140, it is necessary first to the first insertion
Formula computer 120 and the second embedded computer 140 can be established by multiple network ports and the network equipment 130 to be communicated to connect.
The network port can be RJ-11 interface or RJ-45 interfaces, both interfaces are relatively common in the network device.In addition, should
The network port can also be SC optical fiber interfaces, FDDI(FiberDistributed Data Interface, Fiber Distributed Data
Interface)Interface, AUI(Attachment UnitInterface, Attachment Unit Interface)Interface, BNC(Bayonet Nut
Connector, bayonet nut connector)Interface, Console interfaces, USB(Universal Serial BUS, general serial are total
Line)Interface etc..It is established and is communicated to connect by multiple network ports and the network equipment, and corresponding IP is configured for each network port
Address, the network throughput of the corresponding network port of IP address for the detection pairing that need to only be issued orders by control device, Bu Huiyin
It changes test network port and constantly pulls out line and plug wire, improve testing efficiency.
Control device 130 is additionally operable to the reference value of setting network throughput, and the network throughput that the test is obtained
Amount is compared with the reference value, if being less than the reference value, prompts the network throughput of the test abnormal.Specifically
, the reference value of network throughput is set according to the performance of the processor of the network equipment, such as the maximum bandwidth 100M of the network equipment,
The reference value of network throughput can be 40M, by the result of test compared with reference value, if being less than reference value, and the network of table test
There is exception in two ports of equipment, there are failures etc. for the circuit of abnormal i.e. finger tip mouth.
The test system of above-mentioned throughput of network device is used to test the handling capacity of the network equipment of 8 ports, such as Fig. 3 institutes
Show, PC210 connects the first embedded computer 220 by 1 serial ports, and the first embedded computer 220 is connect by 4 RJ-45
The mouth connection network equipment 230, the second embedded computer 240 pass through 4 interfacing between network equipment 230.It is embedded first
In computer 220 and the second embedded computer 240, increase the function that IP and MAC Address is respectively set in 4 ports of setting.It is embedding
Entering formula computer system, there are one Ethernet MAC on hardware(Ethernet hardware address), there are one four mouthfuls of Ethernet
switch(Ethernet switch)Chip connects four PHY(Physical layer, physical layer)Hardware, in embedding assembly
In machine software, four MAC Address and IP address are set for each port, using software come distinguish be which port data.It will
IP1, IP5 are arranged in the same network segment, such as 192.168.2.2,192.168.2.3;IP2, IP6 are arranged in the same net
Section, such as 192.168.3.2,192.168.3.3;IP3, IP7 are arranged in the same network segment, such as 192.168.4.2,
192.168.4.3;IP4, IP8 are arranged in the same network segment, such as 192.168.5.2,192.168.5.3.
PC210 orders the first embedded computer 220 of control in serial ports, and the second insertion is accessed using telnet modes
Formula computer 240, runs the iperf tools on the second embedded computer 240, and operation order is:Iperf-s-w256k-P2,
Make the second operation embedded computer 240 as the server-side of test handling capacity;The first embedded computer 220 is controlled again, is adjusted
With the iperf tools on the first embedded computer 220, with IP5(192.168.2.3)As parameter, operation order is:
Iperf-c192.168.2.3-w256k-r-P2 tests out IP1, the handling capacity size between IP5, the i.e. port of tested product
1, the first embedded computer 220 and the second embedding assembly are reruned in the handling capacity size between port 5, every time test
Iperf tools on machine 240 test the handling capacity size between IP2 and IP6, i.e. tested product using IP6 as parameter
Port 2, the handling capacity size between port 6;Using IP7 as parameter, IP3 is tested out, the handling capacity size between IP7 is that is, tested
The port 3 of trial product, the handling capacity size between port 7;Using IP8 as parameter, IP4 is tested out, the handling capacity between IP8 is big
It is small, i.e. the port 4 of tested product, the handling capacity size between port 8.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (8)
1. a kind of test method of throughput of network device, includes the following steps:
Control device is communicatively connected to the network equipment to be tested by the first embedded computer, and embedding by described first
Enter formula computer and is connected to the second embedded computer by the network device communications to be tested;
The far call order that control device is sent is obtained, according to the second embedding assembly described in the far call command calls
Iperf tools in machine, and using second embedded computer as server-side;
The test command that receiving control apparatus is sent, runs according to the test command in first embedded computer
Iperf tools, and using first embedded computer as client;
The client is tested to the network throughput between server-side, and returns to the network throughput test result described in
Control device;
The network equipment to be tested is communicatively connected to by the first embedded computer in control device, and embedding by described first
Before entering the step of formula computer is connected to the second embedded computer by the network device communications to be tested, further include
Step:
According to the port number of the network equipment to be tested in first embedded computer and the second embedded computer
On increase separately the port number that the network equipment to be tested is set half number IP;
IP on IP and the second embedded computer on first embedded computer is matched two-by-two, the IP settings of pairing
In the same network segment.
2. the test method of throughput of network device according to claim 1, which is characterized in that the acquisition control device
The step of far call order of transmission is:
The far call order that control device is sent is obtained by telnet modes or RS232 serial communication protocols;
The step of test command that the receiving control apparatus is sent is:
The test command sent by telnet modes or RS232 serial communication protocol receiving control apparatus.
3. the test method of throughput of network device according to claim 1, which is characterized in that when the net to be tested
The port number of network equipment is to increase separately setting 2 on 4, then first embedded computer and the second embedded computer
IP;When the port number of the network equipment to be tested is 8, then first embedded computer and the second embedding assembly
4 IP of setting are increased separately on machine.
4. the test method of throughput of network device according to claim 1, which is characterized in that in the test visitor
Family end returns to the step of network throughput test result is to the control device to the network throughput between server-side
Later, further include:
The reference value of network throughput is set;
The obtained network throughput of testing is compared with the reference value, if being less than the reference value, prompts institute
The network throughput for stating test is abnormal.
5. a kind of test system of throughput of network device, which is characterized in that including control device, the first embedded computer and
Second embedded computer, the control device are communicatively connected to the network equipment to be tested by the first embedded computer,
First embedded computer is connected to the second embedded computer by the network device communications to be tested;
Second embedded computer is used to obtain the far call order of control device transmission, and according to the far call
The iperf tools of command calls itself, and second embedded computer is as server-side;
First embedded computer is used for the test command that receiving control apparatus is sent, and is run according to the test command
The iperf tools of itself, and first embedded computer is as client;
Iperf tools on first embedded computer and the second embedded computer test the client to server-side
Between network throughput, and return to the network throughput test result to the control device;
First embedded computer and the second embedded computer are additionally operable to respectively according to the network equipment to be tested
Port number increase on itself the port number that the network equipment to be tested is set half number IP;
The control device is additionally operable to control the IP on the IP and the second embedded computer on first embedded computer
It matches two-by-two, and the IP of pairing is arranged in the same network segment.
6. the test system of throughput of network device according to claim 5, which is characterized in that the second embedded meter
Calculation machine obtains the far call order that control device is sent by telnet modes or RS232 serial communication protocols;Described first
The test command that embedded computer is sent by telnet modes or RS232 serial communication protocol receiving control apparatus.
7. the test system of throughput of network device according to claim 5, which is characterized in that when the net to be tested
The port number of network equipment is to increase separately setting 2 on 4, then first embedded computer and the second embedded computer
IP;When the port number of the network equipment to be tested is 8, then first embedded computer and the second embedding assembly
4 IP of setting are increased separately on machine.
8. the test system of throughput of network device according to claim 5, which is characterized in that the control device is also used
It is compared with the reference value in the reference value of setting network throughput, and by the obtained network throughput of testing,
If being less than the reference value, prompt the network throughput of the test abnormal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210436267.6A CN103812712B (en) | 2012-11-05 | 2012-11-05 | The test method and system of throughput of network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210436267.6A CN103812712B (en) | 2012-11-05 | 2012-11-05 | The test method and system of throughput of network device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103812712A CN103812712A (en) | 2014-05-21 |
CN103812712B true CN103812712B (en) | 2018-10-26 |
Family
ID=50708953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210436267.6A Active CN103812712B (en) | 2012-11-05 | 2012-11-05 | The test method and system of throughput of network device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103812712B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10152987B2 (en) * | 2014-06-23 | 2018-12-11 | Google Llc | Remote invocation of mobile device actions |
CN106210714B (en) * | 2016-07-20 | 2018-02-27 | 深圳创维数字技术有限公司 | A kind of system, method and device for testing set top box WIFI handling capacities |
US10565041B2 (en) * | 2017-05-19 | 2020-02-18 | Western Digital Technologies, Inc. | Managing phys of a data storage target device |
CN107666416B (en) * | 2017-09-07 | 2020-09-29 | 苏州浪潮智能科技有限公司 | Iperf test result judgment system |
CN116055371B (en) * | 2021-10-27 | 2024-04-02 | 成都鼎桥通信技术有限公司 | Communication module performance test system and method, upper computer, medium and program product |
CN114900450A (en) * | 2022-04-27 | 2022-08-12 | 北京计算机技术及应用研究所 | Network forwarding performance testing method based on high-speed data processing platform |
CN114629827A (en) * | 2022-04-29 | 2022-06-14 | 重庆长安新能源汽车科技有限公司 | System and method for testing throughput of vehicle-mounted Ethernet interface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000201202A (en) * | 1999-01-08 | 2000-07-18 | Nec Corp | Client server test system |
CN101184006A (en) * | 2007-12-07 | 2008-05-21 | 深圳国人通信有限公司 | Test method and system for WLAN equipment index |
CN102347810A (en) * | 2011-10-21 | 2012-02-08 | 迈普通信技术股份有限公司 | Centralized test system and method of machine room |
CN102413500A (en) * | 2011-12-08 | 2012-04-11 | 深圳市共进电子股份有限公司 | Method and system for testing throughput of wireless network card in wireless local area network |
-
2012
- 2012-11-05 CN CN201210436267.6A patent/CN103812712B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000201202A (en) * | 1999-01-08 | 2000-07-18 | Nec Corp | Client server test system |
CN101184006A (en) * | 2007-12-07 | 2008-05-21 | 深圳国人通信有限公司 | Test method and system for WLAN equipment index |
CN102347810A (en) * | 2011-10-21 | 2012-02-08 | 迈普通信技术股份有限公司 | Centralized test system and method of machine room |
CN102413500A (en) * | 2011-12-08 | 2012-04-11 | 深圳市共进电子股份有限公司 | Method and system for testing throughput of wireless network card in wireless local area network |
Also Published As
Publication number | Publication date |
---|---|
CN103812712A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103812712B (en) | The test method and system of throughput of network device | |
CN108111596B (en) | Method for debugging power acquisition terminal based on remote login | |
US20020170004A1 (en) | Storage area network monitor device and networked monitor system | |
CN1983969A (en) | System and realization for re-directing interface network | |
CN107423180A (en) | A kind of solid state hard disc and its diagnostic method | |
CN105991361A (en) | Monitoring method and monitoring system for cloud servers in cloud computing platform | |
CN105335316A (en) | Motor assembling line serial port server based on cloud computation | |
CN102347810B (en) | Centralized test system and method of machine room | |
CN111901197A (en) | Ethernet interface mode detection device and detection method | |
CN101202759A (en) | Method and device for computer management | |
EP3065387A1 (en) | Method and device for achieving matching between acquisition system and analysis system | |
TWM608116U (en) | Signal transmission device | |
CN103048667A (en) | Server positioning system | |
CN106850816A (en) | A kind of remote network control system based on VLAN | |
CN107357698A (en) | A kind of method and device of acquisition BMC Serial Port Informations | |
CN106713509A (en) | ARM cloud terminal system based on AOC optical fiber | |
CN107769960B (en) | BMC management architecture based on CAN bus | |
CN213817812U (en) | Test service system based on Router OS is built | |
CN109388598A (en) | A kind of information processing method and general-purpose serial bus USB cluster server | |
TW201324345A (en) | Server system and address configuration method for power distribution units | |
CN208156650U (en) | A kind of general multiplex roles protocol test equipment | |
TW202209101A (en) | Signal transmission device | |
CN108111376B (en) | Method for gateway passive IP to access internet based on bridge mode | |
CN207835500U (en) | A kind of detecting system monitoring communication module based on cloud | |
Zhu et al. | Remote intelligent monitoring system based on embedded internet technology |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |