CN108063697B - Method and system for simultaneously testing equipment with same IP address in batch - Google Patents

Method and system for simultaneously testing equipment with same IP address in batch Download PDF

Info

Publication number
CN108063697B
CN108063697B CN201711347914.5A CN201711347914A CN108063697B CN 108063697 B CN108063697 B CN 108063697B CN 201711347914 A CN201711347914 A CN 201711347914A CN 108063697 B CN108063697 B CN 108063697B
Authority
CN
China
Prior art keywords
equipment
tested
network card
switch
test result
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
CN201711347914.5A
Other languages
Chinese (zh)
Other versions
CN108063697A (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.)
Guangzhou lubangtong Intelligent Technology Co.,Ltd.
Original Assignee
Guangzhou Lubangtong Intelligent 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 Guangzhou Lubangtong Intelligent Technology Co ltd filed Critical Guangzhou Lubangtong Intelligent Technology Co ltd
Priority to CN201711347914.5A priority Critical patent/CN108063697B/en
Publication of CN108063697A publication Critical patent/CN108063697A/en
Application granted granted Critical
Publication of CN108063697B publication Critical patent/CN108063697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the field of production informatization management systems, in particular to a method for simultaneously testing equipment with the same IP address in batches, which comprises an MES server, agent equipment and a switch; a plurality of devices to be tested are connected to one switch, and each agent device corresponds to one switch; the proxy equipment is provided with a first network card and a second network card; the proxy equipment communicates with the MES server through a first network card; the agent equipment realizes communication with the equipment to be tested by using the MAC address of the second network card and the MAC address of the equipment to be tested through the switch; the proxy equipment sends a test instruction to the equipment to be tested, obtains a test result of the equipment to be tested, and feeds the test result back to the MES server through the first network card. The method improves the production efficiency and reduces the production cost, and simultaneously, the invention also discloses a system which is matched with the method and is used for simultaneously testing the equipment with the same IP address in batches.

Description

Method and system for simultaneously testing equipment with same IP address in batch
Technical Field
The invention relates to the field of production informatization management systems, in particular to a method and a system for simultaneously testing equipment with the same IP address in batches.
Background
The MES system is a production informatization management system facing to a workshop execution layer of a manufacturing enterprise. The MES can provide management modules for enterprises, such as manufacturing data management, planning scheduling management, production scheduling management, inventory management, quality management, human resource management, work center/equipment management, tool and tool management, purchasing management, cost management, project bulletin board management, production process control, bottom layer data integration analysis, upper layer data integration decomposition and the like, and create a solid, reliable, comprehensive and feasible manufacturing cooperative management platform for the enterprises.
The MES system is adopted in electronic equipment production enterprises, so that the production efficiency can be obviously improved, and the product flaws are reduced.
Chinese patent application CN 201610844185.3 discloses an electronic product testing production line and a testing method thereof, comprising: a detection device reads coding information on an electronic product and feeds the coding information back to a control device; the control device judges the type of the electronic product according to the received coding information and controls an adjusting device to adjust a conveying device according to the type of the electronic product so that the conveying device conveys the electronic product according to the type of the electronic product; and the control device calls a test plan of the electronic product according to the type of the electronic product so as to enable a test station to test the electronic product from the conveying device according to the corresponding test plan.
The reading equipment adopted by the method carries out corresponding test on the targeted information, and the test efficiency is low.
Most of on-line tests for electronic products produced in batch send test commands through servers after IP address addressing, and test results are returned after the test commands are executed by the equipment to be tested.
However, in the actual use process, most electronic products such as industrial routers do not set an individual IP address unique to a certain device to be tested, so that the server cannot accurately transmit the instruction to the device to be tested in the addressing process.
Disclosure of Invention
The invention aims to provide a method for simultaneously testing equipment with the same IP address in batches, which improves the production efficiency and reduces the production cost, and also discloses a system applying the method.
The specific scheme of the invention is as follows: a method for testing equipment with the same IP address simultaneously in batches comprises an MES server, agent equipment and a switch; a plurality of devices to be tested are connected to one switch, and each agent device corresponds to one switch; the proxy equipment is provided with a first network card and a second network card;
the proxy equipment communicates with the MES server through a first network card; the agent equipment realizes communication with the equipment to be tested by using the MAC address of the second network card and the MAC address of the equipment to be tested through the switch;
the proxy equipment sends a test instruction to the equipment to be tested, obtains a test result of the equipment to be tested, and feeds the test result back to the MES server through the first network card.
In the method for batch simultaneous testing of devices with the same IP address, the method specifically comprises:
step 1: the proxy equipment establishes a TCP/IP communication relation with the MES server through the first network card;
step 2: the agent equipment broadcasts the local area network to which the agent equipment belongs through the second network card and the corresponding switch; after receiving the broadcast, the device to be tested in the local area network feeds back confirmation information to the switch, wherein the confirmation information comprises the MAC address of the network card of the device to be tested;
and step 3: the agent equipment receives confirmation information of the equipment to be tested in the local area network to the broadcast through the second network card;
and 4, step 4: the agent equipment sends a test instruction to the equipment to be tested through the second network card according to the received confirmation information; the equipment to be tested is tested according to the test instruction to obtain a test result and sends the test result;
and 5: and the agent equipment receives the test result of the equipment to be tested through the second network card and feeds the test result back to the MES server through the first network card.
In the method for batch simultaneous testing of devices with the same IP address, different proxy devices configure different IP addresses.
Meanwhile, the invention also discloses a system for simultaneously testing the equipment with the same IP address in batches, which comprises an MES server, agent equipment and a switch; a plurality of devices to be tested are connected to one switch, and each agent device corresponds to one switch; the proxy equipment is provided with a first network card and a second network card;
the proxy equipment communicates with the MES server through a first network card; the agent equipment realizes communication with the equipment to be tested by using the MAC address of the second network card and the MAC address of the equipment to be tested through the switch;
the agent equipment is used for sending a test instruction to the equipment to be tested, acquiring a test result of the equipment to be tested, and feeding the test result back to the MES server through the first network card.
In the above system for batch simultaneous testing of devices having the same IP address, the proxy device includes:
a broadcasting module: the local area network broadcasting system is used for broadcasting the local area network to which the second network card belongs through the second network card and the corresponding switch;
the test instruction module: the second network card is used for sending a test instruction to the equipment to be tested according to the received confirmation information; the confirmation information is information which is generated by the equipment to be tested for broadcasting and is sent to the second network card;
a test result module: the MES server is used for receiving a test result of the equipment to be tested through the second network card and feeding the test result back to the MES server through the first network card; and the test result is obtained by executing the test instruction by the equipment to be tested.
Compared with the prior art, the invention has the beneficial effects that:
the invention realizes the automatic performance test of the equipment to be tested through the proxy equipment with the double network cards, test instructions and information do not need to be transmitted through IP addresses, the MAC addresses are used for communication in the two-layer exchanger through a three-layer network architecture, and the TCP/IP communication is used for transmission between the proxy equipment and the MES system.
Drawings
FIG. 1 is a block diagram showing the structures of examples 1 and 2 of the present invention;
FIG. 2 is a flowchart of the method of example 1 of the present invention.
Detailed Description
The invention will now be further described with reference to the following examples, which are not to be construed as limiting the invention in any way, and any limited number of modifications which can be made within the scope of the claims of the invention are still within the scope of the claims of the invention.
Example 1
As shown in fig. 1 and 2, a method for simultaneously testing equipment with the same IP address in batches comprises an MES server 1, a proxy equipment 2, a switch 3; a plurality of devices to be tested 4 are connected to one switch 3, and each agent device 2 corresponds to one switch 3; the agent device 2 is provided with a first network card and a second network card;
the agent equipment 2 communicates with the MES server 1 through a first network card; the agent device 2 is communicated with the device to be tested 4 by using the MAC address of the second network card and the MAC address of the device to be tested 4 through the switch 3;
the agent equipment 2 sends a test instruction to the equipment to be tested 4, obtains a test result of the equipment to be tested 4, and feeds the test result back to the MES server 1 through the first network card; specifically, the method comprises the following steps:
step 1: the agent equipment 2 establishes a TCP/IP communication relation with the MES server 1 through a first network card; in between the step 2, the proxy equipment 2 can carry out the step 2 once the MES server sends the test instruction to the proxy equipment 2, based on the contact established by the proxy equipment 2 and the MES server 1; the test instruction comprises data of items to be tested, such as whether the port of the device under test 4 is normal or not is tested by the MES instruction proxy equipment 2 to the local area network.
In step 1, the first network card of the agent device 2 is required to have an independent IP address, and IP addresses of different agent devices 2 cannot conflict with each other.
Step 2: the agent device 2 broadcasts the local area network through the second network card and the corresponding switch 3; after receiving the broadcast, the device to be tested 4 in the local area network feeds back confirmation information to the switch 3, wherein the confirmation information comprises the MAC address of the network card of the device to be tested 4;
the MAC address list of the switch 3 writes the MAC address included in the Acknowledgement (ACK) and, at the same time, writes the MAC address of the second network card of the proxy device 2;
and step 3: the agent device 2 receives confirmation information of the device to be tested 4 in the local area network for broadcasting through the second network card;
after receiving the confirmation information, the agent device 2 may obtain the MAC address of the device 4 to be tested;
and 4, step 4: the agent device 2 sends a test instruction to the device to be tested 4 through the second network card according to the received confirmation information; the equipment to be tested 4 tests according to the test instruction to obtain a test result and sends the test result; the second network card sending the test instruction is actually converted based on the test instruction sent by the MES server to the agent device 2.
The test instruction comprises the MAC address of the equipment to be tested 4 and the information of the relevant items to be tested, and the switch 3 inquires according to the MAC address list and sends the test instruction to the equipment to be tested 4;
and 5: the agent device 2 receives the test result of the device 4 to be tested through the second network card and feeds the test result back to the MES server 1 through the first network card.
After the device to be tested 4 executes the test instruction, the relevant test is performed, and the test result is sent to the switch 3, the test result includes the MAC address of the second network card of the agent device 2 and the MAC address of the device to be tested 4, and the switch 3 sends the test result to the agent device 2 according to the MAC address list.
The agent equipment 2 sends the test result to the MES server 1 through the TCP/IP protocol by the first network card.
The corresponding result will correspond to the MAC address of the device 4 to be tested; if a certain test fails, the worker finds out the device 4 to be tested for maintenance according to the MAC address of the device 4 to be tested.
The advantages of this embodiment are: the automatic performance test of the equipment to be tested 4 is realized through the agent equipment 2 with the double network cards, test instructions and information are not required to be transmitted through IP addresses, communication is carried out through a three-layer network architecture by using MAC addresses at the two-layer exchanger 3, and transmission is carried out between the agent equipment 2 and an MES system through TCP/IP communication.
Example 2
As shown in fig. 1, this embodiment proposes a system for batch simultaneous testing of devices with the same IP address for implementing the method of embodiment 1, which includes an MES server 1, an agent device 2, and a switch 3; a plurality of devices to be tested 4 are connected to one switch 3, and each agent device 2 corresponds to one switch 3; the agent device 2 is provided with a first network card and a second network card;
the agent equipment 2 communicates with the MES server 1 through a first network card; the agent device 2 is communicated with the device to be tested 4 by using the MAC address of the second network card and the MAC address of the device to be tested 4 through the switch 3;
the agent device 2 is configured to send a test instruction to the device under test 4, obtain a test result of the device under test 4, and feed back the test result to the MES server 1 through the first network card.
Specifically, the proxy device 2 includes, in addition to a first network card and a second network card:
a broadcasting module: the local area network broadcasting system is used for broadcasting the local area network through the second network card and the corresponding switch 3; after receiving the broadcast, the device to be tested 4 in the local area network feeds back confirmation information to the switch 3, wherein the confirmation information comprises the MAC address of the network card of the device to be tested 4;
the MAC address list of the switch 3 writes the MAC address included in the Acknowledgement (ACK) and, at the same time, writes the MAC address of the second network card of the proxy device 2;
the test instruction module: the second network card is used for sending a test instruction to the equipment to be tested 4 according to the received confirmation information; the confirmation information is information which is generated by the device to be tested 4 for broadcasting and is sent to the second network card;
after receiving the confirmation information, the test instruction module may obtain the MAC address of the device 4 to be tested; generating a test instruction containing a test task corresponding to the MAC address; the test instruction comprises the MAC address of the equipment to be tested 4 and the information of the relevant items to be tested, and the switch 3 inquires according to the MAC address list and sends the test instruction to the equipment to be tested 4; after the device to be tested 4 executes the test instruction, performing related tests, and sending a test result to the switch 3, wherein the test result is obtained by the device to be tested 4 executing the test instruction, and the test result comprises the MAC address of the second network card of the agent device 2 and the MAC address of the device to be tested 4;
a test result module: the MES server is used for receiving a test result of the equipment to be tested 4 through the second network card and feeding the test result back to the MES server 1 through the first network card;
the switch 3 transmits the test result to the agent device 2 according to the MAC address list.
And the test result module sends the test result to the MES server 1 through the TCP/IP protocol by the first network card.
The above is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that several variations and modifications can be made without departing from the structure of the present invention, which will not affect the effect of the implementation of the present invention and the utility of the patent.

Claims (4)

1. A method for testing equipment with the same IP address simultaneously in batches comprises an MES server, agent equipment and a switch; a plurality of devices to be tested are connected to one switch, and each agent device corresponds to one switch; the proxy equipment is provided with a first network card and a second network card; the method is characterized in that:
the proxy equipment communicates with the MES server through a first network card; the agent equipment realizes communication with the equipment to be tested by using the MAC address of the second network card and the MAC address of the equipment to be tested through the switch;
the proxy equipment sends a test instruction to the equipment to be tested, obtains a test result of the equipment to be tested, and feeds the test result back to the MES server through the first network card;
the method specifically comprises the following steps:
step 1: the proxy equipment establishes a TCP/IP communication relation with the MES server through the first network card;
step 2: the agent equipment broadcasts the local area network to which the agent equipment belongs through the second network card and the corresponding switch; after receiving the broadcast, the device to be tested in the local area network feeds back confirmation information to the switch, wherein the confirmation information comprises the MAC address of the network card of the device to be tested;
and step 3: the agent equipment receives confirmation information of the equipment to be tested in the local area network to the broadcast through the second network card;
and 4, step 4: the agent equipment sends a test instruction to the equipment to be tested through the second network card according to the received confirmation information; the equipment to be tested is tested according to the test instruction to obtain a test result and sends the test result;
and 5: and the agent equipment receives the test result of the equipment to be tested through the second network card and feeds the test result back to the MES server through the first network card.
2. The method of claim 1, wherein different proxy devices configure different IP addresses.
3. A system for simultaneously testing equipment with the same IP address in batch is characterized by comprising an MES server, agent equipment and a switch; a plurality of devices to be tested are connected to one switch, and each agent device corresponds to one switch; the proxy equipment is provided with a first network card and a second network card;
the proxy equipment communicates with the MES server through a first network card; the agent equipment realizes communication with the equipment to be tested by using the MAC address of the second network card and the MAC address of the equipment to be tested through the switch;
the agent equipment is used for sending a test instruction to the equipment to be tested, acquiring a test result of the equipment to be tested, and feeding the test result back to the MES server through the first network card.
4. The system for batch simultaneous testing of devices having the same IP address as set forth in claim 3, wherein said agent device comprises:
a broadcasting module: the local area network broadcasting system is used for broadcasting the local area network to which the second network card belongs through the second network card and the corresponding switch;
the test instruction module: the second network card is used for sending a test instruction to the equipment to be tested according to the received confirmation information; the confirmation information is information which is generated by the equipment to be tested for broadcasting and is sent to the second network card;
a test result module: the MES server is used for receiving a test result of the equipment to be tested through the second network card and feeding the test result back to the MES server through the first network card; and the test result is obtained by executing the test instruction by the equipment to be tested.
CN201711347914.5A 2017-12-15 2017-12-15 Method and system for simultaneously testing equipment with same IP address in batch Active CN108063697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711347914.5A CN108063697B (en) 2017-12-15 2017-12-15 Method and system for simultaneously testing equipment with same IP address in batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711347914.5A CN108063697B (en) 2017-12-15 2017-12-15 Method and system for simultaneously testing equipment with same IP address in batch

Publications (2)

Publication Number Publication Date
CN108063697A CN108063697A (en) 2018-05-22
CN108063697B true CN108063697B (en) 2021-06-04

Family

ID=62139161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711347914.5A Active CN108063697B (en) 2017-12-15 2017-12-15 Method and system for simultaneously testing equipment with same IP address in batch

Country Status (1)

Country Link
CN (1) CN108063697B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109068315B (en) * 2018-10-08 2021-06-29 中国联合网络通信集团有限公司 Method and module for accessing internet service, mobile terminal and data access system
CN111510467B (en) * 2019-01-30 2022-12-06 钉钉控股(开曼)有限公司 Screen projection code generation method, equipment connection code generation method and device
CN110995719B (en) * 2019-12-06 2022-07-12 北京天融信网络安全技术有限公司 NAT equipment identification method, device, system and storage medium
CN112187568B (en) * 2020-09-14 2022-11-01 杭州海康威视数字技术股份有限公司 Message transmission method, device and system
CN112235157B (en) * 2020-09-30 2022-05-17 广州鲁邦通物联网科技股份有限公司 Router equipment testing method and system
CN114244701B (en) * 2021-12-24 2024-04-12 四川天邑康和通信股份有限公司 Large-scale production and test method for wireless router equipment
CN116866236B (en) * 2023-05-20 2024-04-16 北京盛和信科技股份有限公司 Router reliability batch test method, system, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111304A (en) * 2009-12-25 2011-06-29 中兴通讯股份有限公司 Method for system for detecting modems in batches
CN103699063A (en) * 2013-11-28 2014-04-02 歌尔声学股份有限公司 Device and method for acquiring off-line data of MES (Manufacturing Execution Method) system
CN105978758A (en) * 2016-06-23 2016-09-28 深圳创维数字技术有限公司 VOIP test method and VOIP test system of set-top box

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050176376A1 (en) * 2004-02-11 2005-08-11 Accton Technology Corporation Batch testing system and method for wireless communication devices
US20080205286A1 (en) * 2007-02-26 2008-08-28 Inventec Corporation Test system using local loop to establish connection to baseboard management control and method therefor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111304A (en) * 2009-12-25 2011-06-29 中兴通讯股份有限公司 Method for system for detecting modems in batches
CN103699063A (en) * 2013-11-28 2014-04-02 歌尔声学股份有限公司 Device and method for acquiring off-line data of MES (Manufacturing Execution Method) system
CN105978758A (en) * 2016-06-23 2016-09-28 深圳创维数字技术有限公司 VOIP test method and VOIP test system of set-top box

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"10台IP相同的设备 我想用一个电脑同时访问 能实现吗?";佚名;《https://www.shoudian.org/thread-464653-3-1.html》;20160526;第1、2页 *
"相同IP和MAC地址的问题";佚名;《https://www.cnblogs.com/52Test/p/7504411.html》;20170911;第1页 *

Also Published As

Publication number Publication date
CN108063697A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108063697B (en) Method and system for simultaneously testing equipment with same IP address in batch
CN102185733B (en) Network card testing method and system
WO2007110329B1 (en) Apparatus, system and method for error assessment over a communication link
CN101789889A (en) Method and system for automatic testing communication equipment
US9348719B2 (en) Automated test equipment and control method thereof
CN105824726A (en) Remote automatic test system and method of mobile terminals
CN104917842A (en) System and method for processing batch tasks
CN112087740B (en) Data transmission method of electronic price tag system and electronic price tag system
CN103281215B (en) A kind of communication control management equipment test system
CN100546261C (en) The method and system of Wireless LAN testing
CN102238571B (en) Apparatus of Internet of Things machine to machine/man (M2M) business processing, system and method thereof
CN104184823B (en) A kind of method and system for automating task scheduling
CN205304831U (en) Testing system
CN103997509A (en) Service oriented architecture-based service processing method and apparatus
CN106302432B (en) A kind of communication device and control method based on car networking
CN111200519B (en) Data processing method and device, BBU, access network equipment and storage medium
CN103905392B (en) DynamicHost sets protocol DHCP server selection method, apparatus and system
CN111277303A (en) Production testing method and system based on universal asynchronous receiving and transmitting transmitter to Bluetooth
CN108874659B (en) Test method, test system and server of digital currency computing equipment
CN110757468A (en) Method and system for remotely diagnosing manipulator fault
CN113794767B (en) Data processing method, server and communication interaction system
CN107645727A (en) A kind of method and device of testing base station
CN103856300A (en) Method and device for transmitting user feedback information
CN112188623A (en) Communication method and apparatus, and computer storage medium
CN103179610A (en) Method and system for maintaining multi-mode base station

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210506

Address after: 510000 room 301-315, building 6, 95 daguanzhong Road, Tianhe District, Guangzhou City, Guangdong Province (office only) (not for factory use)

Applicant after: Guangzhou lubangtong Intelligent Technology Co.,Ltd.

Address before: 510000 room F308, 95 daguanzhong Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU ROBUSTEL TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant