CN109151859A - A kind of multimachine test method of AP product of the network interface without fixed IP - Google Patents

A kind of multimachine test method of AP product of the network interface without fixed IP Download PDF

Info

Publication number
CN109151859A
CN109151859A CN201810796615.8A CN201810796615A CN109151859A CN 109151859 A CN109151859 A CN 109151859A CN 201810796615 A CN201810796615 A CN 201810796615A CN 109151859 A CN109151859 A CN 109151859A
Authority
CN
China
Prior art keywords
message
product
vlan
dynamic host
protocol server
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
Application number
CN201810796615.8A
Other languages
Chinese (zh)
Other versions
CN109151859B (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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics 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 Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN201810796615.8A priority Critical patent/CN109151859B/en
Publication of CN109151859A publication Critical patent/CN109151859A/en
Application granted granted Critical
Publication of CN109151859B publication Critical patent/CN109151859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Abstract

The multimachine test method of AP product the invention discloses a kind of network interface without fixed IP, comprising: AP product issues DHCPDISCOVERY message, is sent to interchanger;Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;Dynamic Host Configuration Protocol server parses VLAN ID after receiving request;Dynamic Host Configuration Protocol server searches the corresponding table of VLAN ID and IP, finds corresponding VLAN ID, and get corresponding IP address;Dynamic Host Configuration Protocol server forms DHCPOFFER message using this IP address and adds VLAN ID to message in link layer, is sent to interchanger.The present invention is able to use a test computer and once tests multiple products, to improve production efficiency.It avoids that IP distribution is caused to repeat to distribute unfixed problem with IP because multiple product MAC are identical simultaneously.

Description

A kind of multimachine test method of AP product of the network interface without fixed IP
Technical field
The present invention relates to AP production testing fields, and in particular to a kind of multimachine survey of AP product of the network interface without fixed IP Method for testing.
Background technique
Present many AP products can be accessed fixed IP address by network interface in production and be produced to access and AP is arranged Product parameter, but sometimes due to some particular/special requirements and Special use environment, the network interface of AP product is not provided with fixed IP, but needs An IP is distributed by Dynamic Host Configuration Protocol server, AP product (such as Web page etc.) is accessed by the IP of this distribution.
General mode is that AP product and test PC are all connected on the router that one has DHCP function, is given by router The fixed IP of product distribution one (only one IP of the pond IP of router, and period setting of renewing a contract is shorter, can thus divide With a constant IP), test PC can be accessed AP product and be tested by this IP address, but a disadvantage is that such Mode can only carry out single machine test, i.e., one test PC can only once test a product.
Following problem is further encountered when realizing multimachine test (i.e. one test PC can only once test multiple products):
1, the production product MAC Address on production line is identical (because at this time there are no the practical MAC of write-in product Location, or the default value of burn recording software), cause common DHCP function that the DHCP request of multiple products cannot be distinguished.
2, multimachine test must distribute a different IP to each product, but how test program is by product number Being mapped with IP address is also problem to be solved (because the IP of DHCP service distribution is unfixed).
Summary of the invention
A kind of multimachine test method of AP product the purpose of the present invention is to provide network interface without fixed IP, solves existing Separate unit test PC and when testing multiple products, be easy to appear IP distribution repeat and IP distribution is not fixed can not correspond to it is corresponding The problem of product.
In order to solve the above technical problems, the invention adopts the following technical scheme:
A kind of multimachine test method of AP product of the network interface without fixed IP, comprising the following steps:
Multiple AP products are connected on an interchanger, the port connected for each AP product distributes one VLAN ID;
Interchanger is connected to test PC by Dynamic Host Configuration Protocol server;
Configure the corresponding relationship of VLAN ID and IP;
AP product issues DHCPDISCOVERY message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server parses VLAN ID after receiving request;
Dynamic Host Configuration Protocol server searches the corresponding table of VLAN ID and IP, finds corresponding VLAN ID, and get corresponding IP Address;
Dynamic Host Configuration Protocol server forms DHCPOFFER message using this IP address and adds VLAN ID, hair to message in link layer Give interchanger;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product issues DHCPREQUEST message after receiving DHCPOFFER message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server forms DHCPACK message after receiving request and adds VLAN ID to message in link layer, sends To exchange;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product is assigned according to IP and parameter configuration network parameter, IP is got, and is tested.
Further technical solution is that the Dynamic Host Configuration Protocol server is the router containing DHCP function.
Further technical solution is before testing, to need to modify DHCP first and realize source code, establish VLAN ID with The correspondence table of IP, and the interface for editing corresponding table is provided.
Further technical solution is the IP distribution, specifically:
AP product initiates DHCPDISCOVERY message;
It, need to also be in link layer solution in addition to parsing normal message when Dynamic Host Configuration Protocol server receives DHCPDISCOVERY message It is precipitated vlan information (VLAN ID).
IP is searched from the corresponding table of VLAN ID and IP according to VLAN ID, forms DHCPOFFER message using this IP;
Dynamic Host Configuration Protocol server sends this DHCPOFFER message to AP product;
AP product sends DHCPREQUEST message;
After Dynamic Host Configuration Protocol server receives DHCPREQUEST message, DHCPACK message is formed using the IP previously found, and DHCPACK message is sent to AP product;
AP product is assigned according to information configuration TCP/IP parameter, IP is received.
Compared with prior art, the beneficial effects of the present invention are: being able to use a test computer once tests multiple productions Product, to improve production efficiency.It avoids that IP distribution is caused to repeat to distribute unfixed ask with IP because multiple product MAC are identical simultaneously Topic.
Detailed description of the invention
Fig. 1 is the system layout of test method of the present invention.
Fig. 2 is Dynamic Host Configuration Protocol server work flow diagram in the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows a kind of one embodiment of the multimachine test method of AP product of the network interface of the present invention without fixed IP: one The multimachine test method of AP product of the kind network interface without fixed IP, comprising the following steps:
Multiple AP products are connected on an interchanger, the port connected for each AP product distributes one VLAN ID;
Interchanger is connected to test PC by Dynamic Host Configuration Protocol server;
Configure the corresponding relationship of VLAN ID and IP;
AP product issues DHCPDISCOVERY message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server parses VLAN ID after receiving request;
Dynamic Host Configuration Protocol server searches the corresponding table of VLAN ID and IP, finds corresponding VLAN ID, and get corresponding IP Address;
Dynamic Host Configuration Protocol server forms DHCPOFFER message using this IP address and adds VLAN ID, hair to message in link layer Give interchanger;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product issues DHCPREQUEST message after receiving DHCPOFFER message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server forms DHCPACK message after receiving request and adds VLAN ID to message in link layer, sends To exchange;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product is assigned according to IP and parameter configuration network parameter, IP is got, and is tested.
As the preferred embodiment of above-described embodiment, the Dynamic Host Configuration Protocol server is the router containing DHCP function.
A kind of a kind of another embodiment of the multimachine test method of AP product of network interface without fixed IP according to the present invention: net The multimachine test method of AP product of the mouth without fixed IP, comprising the following steps:
Before testing, source code is realized as shown in Fig. 2, needing to modify DHCP first, it is corresponding with IP to establish VLAN ID Table, and the interface for editing corresponding table is provided;
Multiple AP products are connected on an interchanger, the port connected for each AP product distributes one VLAN ID;
Interchanger is connected to test PC by Dynamic Host Configuration Protocol server;
Configure the corresponding relationship of VLAN ID and IP;
AP product issues DHCPDISCOVERY message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server parses VLAN ID after receiving request;
Dynamic Host Configuration Protocol server searches the corresponding table of VLAN ID and IP, finds corresponding VLAN ID, and get corresponding IP Address;
Dynamic Host Configuration Protocol server forms DHCPOFFER message using this IP address and adds VLAN ID, hair to message in link layer Give interchanger;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product issues DHCPREQUEST message after receiving DHCPOFFER message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server forms DHCPACK message after receiving request and adds VLAN ID to message in link layer, sends To exchange;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product is assigned according to IP and parameter configuration network parameter, IP is got, and is tested.
According to a preferred embodiment of the present invention, the IP distribution, specifically:
AP product initiates DHCPDISCOVERY message;
It, need to also be in link layer solution in addition to parsing normal message when Dynamic Host Configuration Protocol server receives DHCPDISCOVERY message It is precipitated vlan information (VLAN ID).
IP is searched from the corresponding table of VLAN ID and IP according to VLAN ID, forms DHCPOFFER message using this IP;
Dynamic Host Configuration Protocol server sends this DHCPOFFER message to AP product;
AP product sends DHCPREQUEST message;
After Dynamic Host Configuration Protocol server receives DHCPREQUEST message, DHCPACK message is formed using the IP previously found, and DHCPACK message is sent to AP product;
AP product is assigned according to information configuration TCP/IP parameter, IP is received.
Although reference be made herein to invention has been described for multiple explanatory embodiments of the invention, however, it is to be understood that Those skilled in the art can be designed that a lot of other modification and implementations, these modifications and implementations will fall in this Shen It please be within disclosed scope and spirit.More specifically, disclose in the application, drawings and claims in the range of, can With the building block and/or a variety of variations and modifications of layout progress to theme combination layout.In addition to building block and/or layout Outside the modification and improvement of progress, to those skilled in the art, other purposes also be will be apparent.

Claims (4)

1. a kind of multimachine test method of AP product of network interface without fixed IP, it is characterised in that the following steps are included:
Multiple AP products are connected on an interchanger, distribute a VLAN for the port that each AP product is connected ID;
Interchanger is connected to test PC by Dynamic Host Configuration Protocol server;
Configure the corresponding relationship of VLAN ID and IP;
AP product issues DHCPDISCOVERY message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server parses VLAN ID after receiving request;
Dynamic Host Configuration Protocol server searches the corresponding table of VLAN ID and IP, finds corresponding VLAN ID, and get corresponding IP address;
Dynamic Host Configuration Protocol server forms DHCPOFFER message using this IP address and adds VLAN ID to message in link layer, is sent to Interchanger;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product issues DHCPREQUEST message after receiving DHCPOFFER message, is sent to interchanger;
Interchanger will be sent to Dynamic Host Configuration Protocol server after message addition VLAN tag after receiving message;
Dynamic Host Configuration Protocol server forms DHCPACK message after receiving request and adds VLAN ID to message in link layer, is sent to friendship It changes;
This is responded after packet removes VLAN tag according to VLANID and sends back to AP product by interchanger;
Product is assigned according to IP and parameter configuration network parameter, IP is got, and is tested.
2. a kind of multimachine test method of AP product of the network interface according to claim 1 without fixed IP, it is characterised in that: institute Stating Dynamic Host Configuration Protocol server is the router containing DHCP function.
3. a kind of multimachine test method of AP product of the network interface according to claim 1 without fixed IP, it is characterised in that: Before test, needs to modify DHCP first and realize source code, establish corresponding table of the VLAN ID with IP, and provide and edit corresponding table Interface.
4. a kind of multimachine test method of AP product of the network interface according to claim 1 without fixed IP, it is characterised in that: institute IP distribution is stated, specifically:
AP product initiates DHCPDISCOVERY message;
In addition to parsing normal message when Dynamic Host Configuration Protocol server receives DHCPDISCOVERY message, need to also be parsed in link layer VLAN ID。
IP is searched from the corresponding table of VLAN ID and IP according to VLAN ID, forms DHCPOFFER message using this IP;
Dynamic Host Configuration Protocol server sends this DHCPOFFER message to AP product;
AP product sends DHCPREQUEST message;
After Dynamic Host Configuration Protocol server receives DHCPREQUEST message, DHCPACK message is formed using the IP previously found, and send DHCPACK message is to AP product;
AP product is assigned according to information configuration TCP/IP parameter, IP is received.
CN201810796615.8A 2018-07-19 2018-07-19 Multi-machine test method for AP (access point) product without fixed IP (Internet protocol) at network port Active CN109151859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810796615.8A CN109151859B (en) 2018-07-19 2018-07-19 Multi-machine test method for AP (access point) product without fixed IP (Internet protocol) at network port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810796615.8A CN109151859B (en) 2018-07-19 2018-07-19 Multi-machine test method for AP (access point) product without fixed IP (Internet protocol) at network port

Publications (2)

Publication Number Publication Date
CN109151859A true CN109151859A (en) 2019-01-04
CN109151859B CN109151859B (en) 2021-09-07

Family

ID=64801035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810796615.8A Active CN109151859B (en) 2018-07-19 2018-07-19 Multi-machine test method for AP (access point) product without fixed IP (Internet protocol) at network port

Country Status (1)

Country Link
CN (1) CN109151859B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351401A (en) * 2019-07-10 2019-10-18 锐捷网络股份有限公司 A kind of method and system realizing STA in big double layer network and servicing nearby
CN114244701A (en) * 2021-12-24 2022-03-25 四川天邑康和通信股份有限公司 Large-scale production and test method for wireless router equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475545A (en) * 2013-09-24 2013-12-25 深圳市共进电子股份有限公司 Performance test system, method and device for electronic equipment to be tested
CN104753743A (en) * 2015-04-27 2015-07-01 太仓市同维电子有限公司 Automatic testing method based on automatic testing tool router function
CN104768179A (en) * 2014-01-06 2015-07-08 中国移动通信集团江苏有限公司 Monitoring system and monitoring method of access control device
EP3133793A1 (en) * 2015-08-20 2017-02-22 Cyberx Israel Ltd. Method for mitigation of cyber attacks on industrial control systems
CN106789402A (en) * 2016-11-30 2017-05-31 太仓市同维电子有限公司 A kind of Multi-netmouth based on automation platform maps multimachine test system and method
WO2018044281A1 (en) * 2016-08-30 2018-03-08 Ruckus Wireless, Inc. Virtual-machine dataplane with dhcp-server functionality
CN109560980A (en) * 2018-06-19 2019-04-02 深圳极智联合科技股份有限公司 A kind of multimachine test method and system based on telnet agreement

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475545A (en) * 2013-09-24 2013-12-25 深圳市共进电子股份有限公司 Performance test system, method and device for electronic equipment to be tested
CN104768179A (en) * 2014-01-06 2015-07-08 中国移动通信集团江苏有限公司 Monitoring system and monitoring method of access control device
CN104753743A (en) * 2015-04-27 2015-07-01 太仓市同维电子有限公司 Automatic testing method based on automatic testing tool router function
EP3133793A1 (en) * 2015-08-20 2017-02-22 Cyberx Israel Ltd. Method for mitigation of cyber attacks on industrial control systems
WO2018044281A1 (en) * 2016-08-30 2018-03-08 Ruckus Wireless, Inc. Virtual-machine dataplane with dhcp-server functionality
CN106789402A (en) * 2016-11-30 2017-05-31 太仓市同维电子有限公司 A kind of Multi-netmouth based on automation platform maps multimachine test system and method
CN109560980A (en) * 2018-06-19 2019-04-02 深圳极智联合科技股份有限公司 A kind of multimachine test method and system based on telnet agreement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钟大平: "无线局域网AP设备性能测试环境构建方法研究", 《移动通信》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351401A (en) * 2019-07-10 2019-10-18 锐捷网络股份有限公司 A kind of method and system realizing STA in big double layer network and servicing nearby
CN110351401B (en) * 2019-07-10 2022-10-14 锐捷网络股份有限公司 Method and system for realizing STA (station) nearby service in large two-layer network
CN114244701A (en) * 2021-12-24 2022-03-25 四川天邑康和通信股份有限公司 Large-scale production and test method for wireless router equipment
CN114244701B (en) * 2021-12-24 2024-04-12 四川天邑康和通信股份有限公司 Large-scale production and test method for wireless router equipment

Also Published As

Publication number Publication date
CN109151859B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US9485147B2 (en) Method and device thereof for automatically finding and configuring virtual network
CN1822570B (en) The automatic discovering method of the pseudo-circuit peer address carried out in based on the network of Ethernet
CN105577723B (en) Virtualize the method and apparatus that load balancing is realized in network
WO2010069181A1 (en) Method and system for configuring ipv6 address
US9225671B2 (en) Auto management of a virtual device context enabled network infrastructure
CN104579887A (en) Cloud gateway as well as cloud gateway creation and configuration system and method
CN114024880B (en) Network target range probe acquisition method and system based on proxy IP and flow table
WO2013185731A2 (en) Method and system for managing ipv6 address conflict automatically
CN102447746B (en) Information supply method, family gateway and family network system
CN106878181A (en) A kind of message transmitting method and device
CN106712988A (en) Virtual network management method and device
CN101753460A (en) Method and device for processing internet protocol version 6(IPV6) routing prefix
CN105227466A (en) Communication processing method and device
CN109151859A (en) A kind of multimachine test method of AP product of the network interface without fixed IP
US11522754B2 (en) Systems and methods for Zero-Touch Provisioning of a switch in intermediate distribution frames and main distribution frames
CN109936490A (en) Virtual home network share method and system based on VXLAN and OpenFlow
CN107820262A (en) Method for parameter configuration, apparatus and system
CN107809386A (en) IP address conversion method, routing device and communication system
CN103516599A (en) Host finding method, network device, and host
CN104754521B (en) A kind of message forwarding method, wireless access point, wireless controller and system
CN104104749B (en) The distribution method and device of a kind of tunnel IP address
CN103401787B (en) Static route issuing method and UPE (Ultimate Provider Edge)
CN104243454A (en) IPv6 message filtering method and device
WO2016101515A1 (en) Method and apparatus for determining information technology (it) device port
CN104780229A (en) Method of setting cloud server IP address through cloud terminal, system and cloud system

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
GR01 Patent grant
GR01 Patent grant