CN104683178B - A kind of test method and system of the more DUT of identical IP address - Google Patents

A kind of test method and system of the more DUT of identical IP address Download PDF

Info

Publication number
CN104683178B
CN104683178B CN201510048008.XA CN201510048008A CN104683178B CN 104683178 B CN104683178 B CN 104683178B CN 201510048008 A CN201510048008 A CN 201510048008A CN 104683178 B CN104683178 B CN 104683178B
Authority
CN
China
Prior art keywords
dut
network interface
tester
tftp
access
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
Application number
CN201510048008.XA
Other languages
Chinese (zh)
Other versions
CN104683178A (en
Inventor
别体军
方勇军
吴帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN JIZHI HUIYI TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN JIZHI HUIYI TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN JIZHI HUIYI TECHNOLOGY Co Ltd filed Critical SHENZHEN JIZHI HUIYI TECHNOLOGY Co Ltd
Priority to CN201510048008.XA priority Critical patent/CN104683178B/en
Publication of CN104683178A publication Critical patent/CN104683178A/en
Application granted granted Critical
Publication of CN104683178B publication Critical patent/CN104683178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of test method and system of the identical more DUT of IP address, which includes:Setting procedure, the IP numbers of the network interface 0 of tester are more than or equal to n+1, wherein, n represents DUT quantity, and wherein IP0 is DUT virtual IP addresses for tester IP in itself, IP1 to n, and each IP of network interface 0 corresponds to a DUT respectively;Change accessing step, it is assumed that DUT IP are X, and the IP of network interface 1 to the n of tester are X+1 to X+n, the access of all IP m to network interface 0 are converted to the access to DUT IP X, and tie up data packet and exported by network interface m.The beneficial effects of the invention are as follows:The present invention realizes single PC, and single tester tests the DUT of multiple identical IP, and network connection topologies are simple, while greatly reduce production cost.

Description

A kind of test method and system of the more DUT of identical IP address
Technical field
The present invention relates to network communication field, more particularly to a kind of test method and system of the more DUT of identical IP address.
Background technology
IP address is all identical to AP classes DUT in process of production, in order to improve production efficiency and instrument utilization rate, is reduced Cost, the method that an instrument test can be used to test multiple DUT at the same time.
The method that traditional one tester of use tests multiple identical IP address DUT:Using multiple pc, every PC passes through One network switch(Or double netcard)It is connected with tester and DUT, every PC controls DUT and instrument to be tested respectively.
Initial MAC Address due to all AP products in factory testing environment is identical with IP address, if to survey at the same time Try multiple DUT, traditional test method needs altogether an instrument, multiple pc and multiple switch, environmental structure it is complicated and into This is higher, is easier to malfunction.
DUT :It is devices under (Device Under Test);
IP :Internet protocol(Internet Protocol).
The content of the invention
In order to solve the problems of the prior art, the present invention provides a kind of test method of the identical more DUT of IP address.
The present invention provides a kind of test method of the identical more DUT of IP address, including:
Setting procedure, the IP numbers of the network interface 0 of tester are more than or equal to n+1, wherein, n represents DUT quantity, and wherein IP0 is survey It is DUT virtual IP addresses to try instrument IP in itself, IP1 to n, and each IP of network interface 0 corresponds to a DUT respectively;
Change accessing step, it is assumed that DUT IP are X, and the IP of network interface 1 to the n of tester are X+1 to X+n, will The access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up data packet and exported by network interface m.
As a further improvement on the present invention, which further includes file transmitting step, in file transmitting step TFTP ports are bound, while to the IP address section Y+N before network interface 1-n increase TFTP states.
As a further improvement on the present invention, in the file transmitting step, inside is route the access of TFTP ports It is mapped to the IP Y of TFTP states.
As a further improvement on the present invention, in the file transmitting step, the received ARP messages of network interface 1-n are monitored, Sent if ARP contents are uboot, actively send the arp response message of uboot needs.
As a further improvement on the present invention, which further includes terminal and multiple DUT, the terminal and the net Mouth 0 is connected, and multiple DUT are connected one by one respectively with the network interface 1 of tester to n.
Present invention also offers a kind of test system of the identical more DUT of IP address, including:
Setting module, for making the IP numbers of network interface 0 of tester be more than or equal to n+1, wherein, n represents DUT quantity, wherein IP0 is DUT virtual IP addresses for tester IP in itself, IP1 to n, and each IP of network interface 0 corresponds to a DUT respectively;
Change access modules, for assuming that DUT IP be X, the IP of network interface 1 to the n of tester be X+1 to X+ N, the access to DUT IP X is converted to by the access of all IP m to network interface 0, and is tied up data packet and exported by network interface m.
As a further improvement on the present invention, which further includes document transmission module, in document transmission module TFTP ports are bound, while to the IP address section Y+N before network interface 1-n increase TFTP states.
As a further improvement on the present invention, in the document transmission module, inside is route the access of TFTP ports It is mapped to the IP Y of TFTP states.
As a further improvement on the present invention, in the document transmission module, the received ARP messages of network interface 1-n are monitored, Sent if ARP contents are uboot, actively send the arp response message of uboot needs.
As a further improvement on the present invention, which further includes terminal and multiple DUT, the terminal and the net Mouth 0 is connected, and multiple DUT are connected one by one respectively with the network interface 1 of tester to n.
The beneficial effects of the invention are as follows:The present invention realizes single PC, and single tester tests the DUT of multiple identical IP, network Connection configuration is simple, while greatly reduces production cost;The invention just reduces 3 in common 4 DUT test environments The cost of PC, simultaneously because only needing a computer, operation also becomes simple, improves the efficiency of production line.
Brief description of the drawings
Fig. 1 is the principle of the present invention block diagram.
Embodiment
As shown in Figure 1, the invention discloses a kind of test method of the identical more DUT of IP address, including terminal, tester and Multiple DUT, terminal are connected with the network interface 0 of tester, and multiple DUT are connected one by one respectively with the network interface 1 of tester to n, as One embodiment of the invention, the terminal can be PC.
The test method further includes:
Setting procedure, the IP numbers of the network interface 0 of tester are more than or equal to n+1, wherein, n represents DUT quantity, and wherein IP0 is survey It is DUT virtual IP addresses to try instrument IP in itself, IP1 to n, and each IP of network interface 0 corresponds to a DUT respectively;
Change accessing step, it is assumed that DUT IP are X, and the IP of network interface 1 to the n of tester are X+1 to X+n, will The access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up data packet and exported by network interface m.
Instrument runs Linux system, by configuring routing table and policybased routing, by the access of all IP m to network interface 0 The access to DUT IP X is converted to, and ties up data packet and is flowed out by network interface m, so access to IP m has been converted into pair The access for the DUT that network interface m is connected.Mapping one by one in this way, each IP address of network interface 0 just correspond to a DUT respectively, For PC corresponding DUT can be accessed by accessing different virtual IP addresses.
Some DUT need PC to upload files to DUT, and then DUT restartings enter test mode, and before and after restarting IP address can change(If IP is Y before TFTP), conventional method PC needs to be further added by an IP and serviced for TFTP.
Include file transmitting step in the test method of the present invention, to binding for TFTP ports, while give network interface IP address section Y+N before 1-n increase TFTP states(This operation is realized to be internal, transparent to user), such user can when uploading Virtual IP address n is directly used, inside is route the IP Y of the access map of TFTP ports to TFTP states, can so reduce user Configuration.
Some DUT needs can just launch into test mode from PC download startup files in the uboot stages and (set uboot need The server ip to be accessed is Z), this stage needs first to send the mac addresses that ARP messages look into lower Y due to uboot, and some The uboot of version need to receive arp response content matches just identification completely, since instrument does not have IP Z in itself, do not have thus There is method to respond ARP, may result in uboot failed downloads.For this reason, in the file transmitting step of the present invention, network interface 1-n is monitored Received ARP messages, send if ARP contents are uboot, actively send the arp response message of uboot needs.
TFTP is the simple protocol of a transmission file, it is based on udp protocol and realizes.
Why uboot is Uboot similar to the BIOS bootstrap of pc, is the meaning because universal, i.e., general Bootstrap, Uboot can guide the CPU of X86, can also guide the CPU of ARM, also have PowerPC's, MIPS etc CPU。
The invention also discloses a kind of test system of the identical more DUT of IP address, including terminal, tester and multiple DUT, Terminal is connected with the network interface 0 of tester, and multiple DUT are connected one by one respectively with the network interface 1 of tester to n, as the present invention one Embodiment, the terminal can be PC.
In the test system of the present invention, further include:
Setting module, for making the IP numbers of network interface 0 of tester be more than or equal to n+1, wherein, n represents DUT quantity, wherein IP0 is DUT virtual IP addresses for tester IP in itself, IP1 to n, and each IP of network interface 0 corresponds to a DUT respectively;
Change access modules, for assuming that DUT IP be X, the IP of network interface 1 to the n of tester be X+1 to X+ N, the access to DUT IP X is converted to by the access of all IP m to network interface 0, and is tied up data packet and exported by network interface m.
The test system further includes document transmission module, TFTP ports is bound in document transmission module, at the same time Increase the IP address section Y+N before TFTP states to network interface 1-n.
In the document transmission module, inside is route the IP Y of the access map of TFTP ports to TFTP states.
In the document transmission module, the received ARP messages of network interface 1-n are monitored, are sent if ARP contents are uboot , then actively send the arp response message that uboot needs.
The present invention realizes single PC, and single tester tests the DUT of multiple identical IP, and network connection topologies are simple, while greatly Reduce production cost greatly;The invention just reduces the cost of 3 PC in common 4 DUT test environments, simultaneously because only A computer is needed, operation also becomes simple, improves the efficiency of production line.
Above content is that a further detailed description of the present invention in conjunction with specific preferred embodiments, it is impossible to is assert The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, On the premise of not departing from present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (10)

  1. A kind of 1. test method of the more DUT of identical IP address, it is characterised in that including:
    Setting procedure, the IP numbers of the network interface 0 of tester are more than or equal to n+1, wherein, n represents DUT quantity, and wherein IP0 is tester The IP of itself, IP1 to n are DUT virtual IP addresses, and each IP of network interface 0 corresponds to a DUT respectively;
    Change accessing step, it is assumed that DUT IP are X, and the IP of network interface 1 to the n of tester are X+1 to X+n, will be all Access to the IP m of network interface 0 is converted to the access to DUT IP X, and ties up data packet and exported by network interface m.
  2. 2. test method according to claim 1, it is characterised in that the test method further includes file transmitting step, TFTP ports are bound in file transmitting step, while to the IP address section Y+N before network interface 1-n increase TFTP states.
  3. 3. test method according to claim 2, it is characterised in that in the file transmitting step, inside route will The IP Y, DUT of the access map of TFTP ports to TFTP states need PC to upload files to DUT, and then DUT restartings enter Test mode, and restart front and rear IP address and can change, Y is IP before TFTP.
  4. 4. test method according to claim 2, it is characterised in that in the file transmitting step, monitor network interface 1-n Received ARP messages, send if ARP contents are uboot, actively send the arp response message of uboot needs.
  5. 5. test method according to any one of claims 1 to 4, it is characterised in that the test method further include terminal and Multiple DUT, the terminal are connected with the network interface 0, and multiple DUT are connected one by one respectively with the network interface 1 of tester to n.
  6. A kind of 6. test system of the more DUT of identical IP address, it is characterised in that including:
    Setting module, for making the IP numbers of network interface 0 of tester be more than or equal to n+1, wherein, n represents DUT quantity, and wherein IP0 is Tester IP in itself, IP1 to n are DUT virtual IP addresses, and each IP of network interface 0 corresponds to a DUT respectively;
    Access modules are changed, for assuming that DUT IP are X, the IP of network interface 1 to the n of tester are X+1 to X+n, will The access of all IP m to network interface 0 is converted to the access to DUT IP X, and ties up data packet and exported by network interface m.
  7. 7. test system according to claim 6, it is characterised in that the test system further includes document transmission module, TFTP ports are bound in document transmission module, while to the IP address section Y+N before network interface 1-n increase TFTP states.
  8. 8. test system according to claim 7, it is characterised in that in the document transmission module, inside route will The IP Y, DUT of the access map of TFTP ports to TFTP states need PC to upload files to DUT, and then DUT restartings enter Test mode, and restart front and rear IP address and can change, Y is IP before TFTP.
  9. 9. test system according to claim 7, it is characterised in that in the document transmission module, monitor network interface 1-n Received ARP messages, send if ARP contents are uboot, actively send the arp response message of uboot needs.
  10. 10. according to claim 6 to 9 any one of them test system, it is characterised in that the test system further include terminal and Multiple DUT, the terminal are connected with the network interface 0, and multiple DUT are connected one by one respectively with the network interface 1 of tester to n.
CN201510048008.XA 2015-01-30 2015-01-30 A kind of test method and system of the more DUT of identical IP address Active CN104683178B (en)

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 CN104683178A (en) 2015-06-03
CN104683178B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN116760756B (en) * 2023-08-15 2023-12-01 湖南天冠电子信息技术有限公司 Method for testing terminal equipment by test switch and test switch networking system

Citations (2)

* Cited by examiner, † Cited by third party
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
CN104270204A (en) * 2014-08-30 2015-01-07 杭州华为数字技术有限公司 Testing method and testing equipment for wireless communication module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9473381B2 (en) * 2013-03-08 2016-10-18 Airmagnet, Inc. Systems and methods for network testing

Patent Citations (2)

* Cited by examiner, † Cited by third party
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
CN104270204A (en) * 2014-08-30 2015-01-07 杭州华为数字技术有限公司 Testing method and testing equipment for wireless communication module

Also Published As

Publication number Publication date
CN104683178A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
US7440415B2 (en) Virtual network addresses
US9348771B1 (en) Cloud-based instrument driver system
CN105407140B (en) A kind of computing resource virtual method of networking test system
US9146826B2 (en) Method and apparatus for scaling network simulation
CN111258930A (en) Emulated endpoint configuration
JPWO2012127886A1 (en) Network system and policy route setting method
CN104993947A (en) Method for upgrading firmware in batches
US10621124B2 (en) Method, device and computer program product for enabling SR-IOV functions in endpoint device
KR102274178B1 (en) Emulating test distributed application on server
US20170126507A1 (en) Introducing Latency and Delay For Test or Debug Purposes in a SAN Environment
WO2017054549A1 (en) Device batch upgrading method and system
CN116204933B (en) Method for isolating PCIe network card based on jailhouse under ARM64 architecture
CN109005080B (en) Distributed packet forwarding implementation method, implementation system and automatic test method
CN110990110A (en) Virtual machine creation method and device based on Sriov network card
CN104683178B (en) A kind of test method and system of the more DUT of identical IP address
CN113886153B (en) Network card pressure testing method and device based on container
CN109660386B (en) Software upgrading method for semiconductor memory aging test system
CN103546556A (en) Virtual machine on-line migration method in future network XIA
CN106789449A (en) A kind of CAN exploitation and method of testing and system
CN108881502B (en) Multi-terminal IP address conversion method, device and system
CN109039765A (en) Network collocating method and device
JP5511017B2 (en) Failure analysis system, IPv4-IPv6 conversion device, failure analysis method, and program
CN107770029B (en) Communication method based on router bridging and router
CN106713008B (en) The method that a kind of pair of EOC local-side device is tested for the property
US10038649B2 (en) Packet generation and injection

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.