CN104683178A - Method and system for testing multiple DUTs (devices under test) with same IP (Internet Protocol) address - Google Patents
Method and system for testing multiple DUTs (devices under test) with same IP (Internet Protocol) address Download PDFInfo
- Publication number
- CN104683178A CN104683178A CN201510048008.XA CN201510048008A CN104683178A CN 104683178 A CN104683178 A CN 104683178A CN 201510048008 A CN201510048008 A CN 201510048008A CN 104683178 A CN104683178 A CN 104683178A
- Authority
- CN
- China
- Prior art keywords
- dut
- network interface
- tester
- access
- tftp
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a system for testing multiple DUTs (devices under test) with the same IP (Internet Protocol) address. The testing method comprises the following steps: a setting step: setting an IP number of a port 0 of a tester to be greater than or equal to n+1, wherein n represents the number of the DUTs, IP0 is the IP of the tester, IP1-IPn are virtual IPs of the DUTs, and each IP of the port 0 respectively corresponds to one DUT; an access transforming step: assuming that the IPs of the DUTs are X and the IPs of ports 1-n of the tester range from X+1 to X+n, completely transforming access to IPm of the port 0 into access to DUT IP X, and outputting a bound data packet by virtue of the port m. The testing method and system disclosed by the invention have the following beneficial effects: the multiple DUTs with the same IP are tested by a single PC (personal computer) and the single tester, network connection is simple in layout, and meanwhile the production cost is greatly reduced.
Description
Technical field
The present invention relates to network communication field, particularly relate to method of testing and the system of the many DUT of a kind of identical ip addresses.
Background technology
AP class DUT in process of production IP address is identical, in order to enhance productivity and instrument utilance, reduces costs, and an instrument test can be used to test the method for multiple DUT simultaneously.
The method of multiple identical ip addresses DUT tested by traditional use tester: use multiple pc, and every platform PC is connected with tester and DUT by a network switch (or double netcard), and every platform PC respectively control DUT and instrument tests.
Initial MAC Address due to all AP products in factory testing environment is identical with IP address, if will test multiple DUT simultaneously, traditional method of testing has needs instrument altogether, multiple pc and multiple switch, environmental structure is complicated and cost is higher, makes mistakes than being easier to.
DUT: tested equipment (Device Under Test);
IP: Internet protocol (Internet Protocol).
Summary of the invention
In order to solve the problems of the prior art, the invention provides the method for testing of the many DUT of a kind of identical ip addresses.
The invention provides the method for testing of the many DUT of a kind of identical ip addresses, comprising:
Setting procedure, the IP number of the network interface 0 of tester is more than or equal to n+1, and wherein, n represents DUT quantity, and wherein IP0 is the IP of tester itself, IP1 to n is DUT virtual IP address, each IP corresponding DUT respectively of network interface 0;
Conversion accessing step, assuming that DUT IP is X, the network interface 1 of tester is X+1 to X+n to the IP of n, and the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and exported by network interface m.
As a further improvement on the present invention, this method of testing also comprises file transfer step, binds in file transfer step to TFTP port, the IP address field Y+N before increasing TFTP state simultaneously to network interface 1-n.
As a further improvement on the present invention, in described file transfer step, inner route is by the IP Y of the access map of TFTP port to TFTP state.
As a further improvement on the present invention, in described file transfer step, monitor the ARP message that network interface 1-n receives, send if ARP content is uboot, then initiatively send the arp response message that uboot needs.
As a further improvement on the present invention, this method of testing also comprises terminal and multiple DUT, and described terminal is connected with described network interface 0, and multiple DUT is connected to n respectively one by one with the network interface 1 of tester.
Present invention also offers the test macro of the many DUT of a kind of identical ip addresses, comprising:
Setting module, the IP number for the network interface 0 making tester is more than or equal to n+1, and wherein, n represents DUT quantity, and wherein IP0 is the IP of tester itself, IP1 to n is DUT virtual IP address, each IP corresponding DUT respectively of network interface 0;
Conversion access modules, for supposing that DUT IP is X, the network interface 1 of tester is X+1 to X+n to the IP of n, and the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and exported by network interface m.
As a further improvement on the present invention, this test macro also comprises document transmission module, binds in document transmission module to TFTP port, the IP address field Y+N before increasing TFTP state simultaneously to network interface 1-n.
As a further improvement on the present invention, in described document transmission module, inner route is by the IP Y of the access map of TFTP port to TFTP state.
As a further improvement on the present invention, in described document transmission module, monitor the ARP message that network interface 1-n receives, send if ARP content is uboot, then initiatively send the arp response message that uboot needs.
As a further improvement on the present invention, this test macro also comprises terminal and multiple DUT, and described terminal is connected with described network interface 0, and multiple DUT is connected to n respectively one by one with the network interface 1 of tester.
The invention has the beneficial effects as follows: present invention achieves single PC, the DUT of the multiple identical IP of single tester test, network connection topologies is simple, greatly reduces production cost simultaneously; In 4 conventional DUT test environments, this invention just decreases the cost of 3 PC, and simultaneously owing to only needing a computer, operation also becomes simple, improves the efficiency of production line.
Accompanying drawing explanation
Fig. 1 is theory diagram of the present invention.
Embodiment
As shown in Figure 1, the invention discloses the method for testing of the many DUT of a kind of identical ip addresses, comprise terminal, tester and multiple DUT, terminal is connected with the network interface 0 of tester, multiple DUT is connected to n respectively one by one with the network interface 1 of tester, and as one embodiment of the invention, this terminal can be PC.
This method of testing also comprises:
Setting procedure, the IP number of the network interface 0 of tester is more than or equal to n+1, and wherein, n represents DUT quantity, and wherein IP0 is the IP of tester itself, IP1 to n is DUT virtual IP address, each IP corresponding DUT respectively of network interface 0;
Conversion accessing step, assuming that DUT IP is X, the network interface 1 of tester is X+1 to X+n to the IP of n, and the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and exported by network interface m.
Instrument runs Linux system, by configuration routing table and policybased routing, the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and flowed out by network interface m, like this access to the DUT that network interface m connects just has been converted into the access of IP m.By such mapping one by one, each IP address just corresponding DUT of difference of network interface 0, just can access corresponding DUT by the different virtual IP address of access concerning PC.
Some DUT needs PC upload file to DUT, and then DUT restarts and enters test mode, and the IP address before and after restarting can change (set before TFTP IP as Y), and conventional method PC needs to increase an IP again and serves for TFTP.
File transfer step is comprised in method of testing of the present invention, the carrying out of TFTP port is bound, to the IP address field Y+N(before network interface 1-n increase TFTP state, this is operating as inner realization simultaneously, to user transparent), virtual IP address n can be directly used when such user uploads, inner route, by the IP Y of the access map of TFTP port to TFTP state, can reduce user's configuration like this.
Some DUT needs to download startup file in the uboot stage from PC and could start and enter test mode (set server ip that uboot needs are accessed as Z), this stage needs first to send the mac address that ARP message looks into lower Y due to uboot, and the uboot of some version needs to receive arp response content mates just identification completely, because instrument itself does not have IP Z, so just have no idea to respond ARP, uboot failed download will be caused.For this reason, in file transfer step of the present invention, monitor the ARP message that network interface 1-n receives, send if ARP content is uboot, then initiatively send the arp response message that uboot needs.
TFTP is the simple protocol of a transfer files, and it realizes based on udp protocol.
Why the BIOS boot of the similar pc of uboot, be Uboot, is because the meaning of universal, and namely general boot, Uboot can guide the CPU of X86, also can guide the CPU of ARM, also has the CPU of PowerPC, MIPS and so on.
The invention also discloses the test macro of the many DUT of a kind of identical ip addresses, comprise terminal, tester and multiple DUT, terminal is connected with the network interface 0 of tester, and multiple DUT is connected to n respectively one by one with the network interface 1 of tester, as one embodiment of the invention, this terminal can be PC.
In test macro of the present invention, also comprise:
Setting module, the IP number for the network interface 0 making tester is more than or equal to n+1, and wherein, n represents DUT quantity, and wherein IP0 is the IP of tester itself, IP1 to n is DUT virtual IP address, each IP corresponding DUT respectively of network interface 0;
Conversion access modules, for supposing that DUT IP is X, the network interface 1 of tester is X+1 to X+n to the IP of n, and the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and exported by network interface m.
This test macro also comprises document transmission module, binds in document transmission module to TFTP port, the IP address field Y+N before increasing TFTP state simultaneously to network interface 1-n.
In described document transmission module, inner route is by the IP Y of the access map of TFTP port to TFTP state.
In described document transmission module, monitor the ARP message that network interface 1-n receives, send if ARP content is uboot, then initiatively send the arp response message that uboot needs.
Present invention achieves single PC, the DUT of the multiple identical IP of single tester test, network connection topologies is simple, greatly reduces production cost simultaneously; In 4 conventional DUT test environments, this invention just decreases the cost of 3 PC, and simultaneously owing to only needing a computer, operation also becomes simple, improves the efficiency of production line.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.
Claims (10)
1. a method of testing of the many DUT of identical ip addresses, is characterized in that, comprising:
Setting procedure, the IP number of the network interface 0 of tester is more than or equal to n+1, and wherein, n represents DUT quantity, and wherein IP0 is the IP of tester itself, IP1 to n is DUT virtual IP address, each IP corresponding DUT respectively of network interface 0;
Conversion accessing step, assuming that DUT IP is X, the network interface 1 of tester is X+1 to X+n to the IP of n, and the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and exported by network interface m.
2. method of testing according to claim 1, is characterized in that, this method of testing also comprises file transfer step, binds in file transfer step to TFTP port, the IP address field Y+N before increasing TFTP state simultaneously to network interface 1-n.
3. method of testing according to claim 2, is characterized in that, in described file transfer step, inner route is by the IP Y of the access map of TFTP port to TFTP state.
4. method of testing according to claim 2, is characterized in that, in described file transfer step, monitors the ARP message that network interface 1-n receives, and sends, then initiatively send the arp response message that uboot needs if ARP content is uboot.
5. the method for testing according to any one of Claims 1-4, is characterized in that, this method of testing also comprises terminal and multiple DUT, and described terminal is connected with described network interface 0, and multiple DUT is connected to n respectively one by one with the network interface 1 of tester.
6. a test macro of the many DUT of identical ip addresses, is characterized in that, comprising:
Setting module, the IP number for the network interface 0 making tester is more than or equal to n+1, and wherein, n represents DUT quantity, and wherein IP0 is the IP of tester itself, IP1 to n is DUT virtual IP address, each IP corresponding DUT respectively of network interface 0;
Conversion access modules, for supposing that DUT IP is X, the network interface 1 of tester is X+1 to X+n to the IP of n, and the access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up packet and exported by network interface m.
7. test macro according to claim 6, is characterized in that, this test macro also comprises document transmission module, binds in document transmission module to TFTP port, the IP address field Y+N before increasing TFTP state simultaneously to network interface 1-n.
8. test macro according to claim 7, is characterized in that, in described document transmission module, inner route is by the IP Y of the access map of TFTP port to TFTP state.
9. test macro according to claim 7, is characterized in that, in described document transmission module, monitors the ARP message that network interface 1-n receives, and sends, then initiatively send the arp response message that uboot needs if ARP content is uboot.
10. the test macro according to any one of claim 6 to 9, is characterized in that, this test macro also comprises terminal and multiple DUT, and described terminal is connected with described network interface 0, and multiple DUT is connected to n respectively one by one with the network interface 1 of tester.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510048008.XA CN104683178B (en) | 2015-01-30 | 2015-01-30 | A kind of test method and system of the more DUT of identical IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510048008.XA CN104683178B (en) | 2015-01-30 | 2015-01-30 | A kind of test method and system of the more DUT of identical IP address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104683178A true CN104683178A (en) | 2015-06-03 |
CN104683178B CN104683178B (en) | 2018-04-24 |
Family
ID=53317803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510048008.XA Active CN104683178B (en) | 2015-01-30 | 2015-01-30 | A kind of test method and system of the more DUT of identical IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104683178B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112953790A (en) * | 2021-01-27 | 2021-06-11 | 武汉虹信科技发展有限责任公司 | Test system and method for devices with same IP address |
CN116760756A (en) * | 2023-08-15 | 2023-09-15 | 湖南天冠电子信息技术有限公司 | Method for testing terminal equipment based on test switch and test switch network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103906091A (en) * | 2014-03-06 | 2014-07-02 | 深圳市共进电子股份有限公司 | Detecting method and system for wireless AP performance in WIFI |
US20140258504A1 (en) * | 2013-03-08 | 2014-09-11 | James Kahkoska | Systems and methods for network testing |
CN104270204A (en) * | 2014-08-30 | 2015-01-07 | 杭州华为数字技术有限公司 | Testing method and testing equipment for wireless communication module |
-
2015
- 2015-01-30 CN CN201510048008.XA patent/CN104683178B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140258504A1 (en) * | 2013-03-08 | 2014-09-11 | James Kahkoska | Systems and methods for network testing |
CN103906091A (en) * | 2014-03-06 | 2014-07-02 | 深圳市共进电子股份有限公司 | Detecting method and system for wireless AP performance in WIFI |
CN104270204A (en) * | 2014-08-30 | 2015-01-07 | 杭州华为数字技术有限公司 | Testing method and testing equipment for wireless communication module |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112953790A (en) * | 2021-01-27 | 2021-06-11 | 武汉虹信科技发展有限责任公司 | Test system and method for devices with same IP address |
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 |
---|---|
CN104683178B (en) | 2018-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9348771B1 (en) | Cloud-based instrument driver system | |
US9331899B2 (en) | Scalable BMC management stacks using virtual networks on single physical network device | |
JP2005006303A (en) | Virtual network address | |
KR102274178B1 (en) | Emulating test distributed application on server | |
CN107070752B (en) | Testing method and testing system for long connection capacity | |
CN105471673A (en) | Batch automatic test method for server BMC dedicated network port and shared network port | |
CN116204933B (en) | Method for isolating PCIe network card based on jailhouse under ARM64 architecture | |
CN105376754A (en) | Method for testing number of connectable wireless users of router | |
CN105071988A (en) | Multi-user test system and method | |
CN107171854A (en) | A kind of method that independent wide area network server is simulated in automatic test | |
AU2016334122B2 (en) | System and method to reconcile cabling test results with cabling test configurations | |
CN109660386B (en) | Software upgrading method for semiconductor memory aging test system | |
CN104683178A (en) | Method and system for testing multiple DUTs (devices under test) with same IP (Internet Protocol) address | |
CN102984034B (en) | A kind of test structure | |
CN102571474A (en) | Virtualized Radius testing system and method | |
CN105376116A (en) | Test device and test method for data packet capturing between wireless router and mobile terminal | |
CN106875765B (en) | Electronic classroom implementation method and device based on VDI | |
CN108881502B (en) | Multi-terminal IP address conversion method, device and system | |
CN111026662A (en) | Remote debugging method, system and medium for terminal equipment of Internet of things | |
CN104618196A (en) | Method for verifying compatibility of server and Citrix system | |
CN102694698B (en) | A kind of method quickly setting up mininet test system | |
CN106506268B (en) | Server access method and system | |
CN106713008B (en) | The method that a kind of pair of EOC local-side device is tested for the property | |
CN103809538A (en) | Server computer remote control system based on CAN bus | |
CN104331281B (en) | A kind of proxy server and method that remote control function is provided for LXI modules |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 518000 5C, 1, building No. 6, Ting Wei Road, 67 District, Xingdong community, Baoan District Xin'an, Shenzhen, Guangdong. Patentee after: SHENZHEN JIZHI HUIYI TECHNOLOGY CO., LTD. Address before: 518000 Building 2, Zone 2, Block 2, Honghualing Industrial South Zone, 1213 Liuxian Avenue, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province Patentee before: SHENZHEN JIZHI HUIYI TECHNOLOGY CO., LTD. |