CN108092842B - Router production test burning method - Google Patents

Router production test burning method Download PDF

Info

Publication number
CN108092842B
CN108092842B CN201710180917.8A CN201710180917A CN108092842B CN 108092842 B CN108092842 B CN 108092842B CN 201710180917 A CN201710180917 A CN 201710180917A CN 108092842 B CN108092842 B CN 108092842B
Authority
CN
China
Prior art keywords
router
mac
steps
address information
test
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
CN201710180917.8A
Other languages
Chinese (zh)
Other versions
CN108092842A (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.)
B Link Electronic Co ltd
Original Assignee
B Link Electronic 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 B Link Electronic Co ltd filed Critical B Link Electronic Co ltd
Priority to CN201710180917.8A priority Critical patent/CN108092842B/en
Publication of CN108092842A publication Critical patent/CN108092842A/en
Application granted granted Critical
Publication of CN108092842B publication Critical patent/CN108092842B/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/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The invention discloses a router production test burning method, which comprises the following steps: connecting a test PC with router burning detection software with a router through a cable; acquiring MAC address information of a router; after the router is powered on, detecting the throughput of the router; respectively detecting the network communication conditions of the LAN port and the WAN port; sequentially writing LAN MAC, WAN MAC, WLAN MAC and 5G WLAN MAC; reading key value pairs of partition write values in the router configuration file, writing in the key value pairs respectively, judging the final result, and displaying PASS if the key value pairs are successful; otherwise, failure is displayed; and detecting power-off, and ending the software. The invention adopts the mode of obtaining the MAC address information of the router to carry out burning detection, operators do not need to match burning software in advance aiming at different models of products, and burning programs can be directly realized through a testing machine, thereby reducing the operation difficulty and lowering the production cost.

Description

Router production test burning method
Technical Field
The invention relates to a test method for testing gateway equipment, in particular to a router production test burning method.
Background
Routers (routers), also called Gateway devices (gateways), are used to connect multiple logically separate networks, so-called logical networks representing a single network or a sub-network. This may be accomplished by the routing function of the router when data is transferred from one subnet to another. Therefore, the router has the functions of judging network addresses and selecting IP paths, can establish flexible connection in a multi-network interconnection environment, can be used for connecting various subnets by completely different data grouping and medium access methods, only receives information of a source station or other routers, and belongs to interconnection equipment of a network layer.
Currently, router products are tested by burning software installed on a computer. When router products of multiple models are tested simultaneously, the burning test of the router product test needs to be switched according to the burning process of different routers, so that burning is completed for multiple times respectively, and then the program is manually set to enter a test mode, so that burning software can further judge whether the program burning is successful. Aiming at different router products, the prior art can only realize different production test burning methods, so that the later maintenance is complex and difficult, the production efficiency is not high, and the production efficiency is reduced by manual setting.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a router production test burning method which can improve the test efficiency and reduce the maintenance cost.
The purpose of the invention is realized by the following technical scheme:
a router production test burning method comprises the following steps:
s1, connecting the testing PC with the router burning detection software with the router through a cable;
s2, obtaining MAC address information of the router;
s3, after the router is powered on, detecting the throughput of the router, and if the throughput reaches the standard, entering the next step; if the throughput test does not reach the standard, jumping to step S7;
s4, respectively detecting the network communication status of the LAN port and the WAN port, and entering the next step if the communication is successful; if the failure occurs, go to step S7;
s5, sequentially writing in LAN MAC, WAN MAC, WLAN MAC and 5G WLAN MAC; if the writing is successful, entering the next step; if one of the writes fails, go to step S7;
s6, reading the key value pair of the partition write value in the router configuration file, respectively writing, and entering the next step; if one fails, go to step S7;
s7, judging the final result, and if the final result is successful, displaying PASS; otherwise, failure is displayed;
and S8, detecting power-off, and ending the software.
Specifically, the following steps are further included between step S7 and step S8:
and uploading the test record and the test result to an FTP server, wherein the FTP server is opened and is communicated with a test computer.
As an optional option of the foregoing scheme, the acquiring the MAC address information of the router in step S2 specifically includes:
and after the software is opened, scanning a bar code on the router product and analyzing the bar code to obtain the target product.
As another optional option of the foregoing scheme, the acquiring the MAC address information of the router in step S2 specifically includes: and reading the MAC address information from the configuration file.
As a preferable mode of the above solution, the following steps are further included between steps S2 and S3:
carrying out range detection, length detection and parity detection on the MAC address information, and entering the next step if the detection meets the requirements; if one fails, go to step S7.
As a preferable mode of the above solution, the following steps are further included between steps S2 and S3:
detecting the electrification of the router, and if the electrification is successful, closing the shielding box through the serial port; if the power-on failure or the failure to close the shielding box is detected, the process goes to step S7.
Compared with the prior art, the invention has the following advantages and beneficial effects:
based on the above, the router production test burning method provided by the invention adopts the mode of obtaining the MAC address information of the router for burning detection, so that an operator does not need to match burning software in advance for different models of products, and can directly burn the burning program through a testing machine, thereby reducing the operation difficulty, reducing the production cost and improving the labor productivity.
Drawings
Fig. 1 is a flowchart of an implementation of a method for burning router production test provided by the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but the present invention is not limited thereto.
Examples
As shown in fig. 1, the present embodiment provides a method for producing, testing and burning a router, including the following steps:
s1, connecting the testing PC with the router burning detection software with the router through a cable;
s2, obtaining MAC address information of the router;
s3, after the router is powered on, detecting the throughput of the router, and if the throughput reaches the standard, entering the next step; if the throughput test does not reach the standard, jumping to step S7;
s4, respectively detecting the network communication status of the LAN port and the WAN port, and entering the next step if the communication is successful; if the failure occurs, go to step S7;
s5, sequentially writing in LAN MAC, WAN MAC, WLAN MAC and 5G WLAN MAC; if the writing is successful, entering the next step; if one of the writes fails, go to step S7;
s6, reading the key value pairs of the partition write values in the router configuration file, respectively writing the key value pairs into the configuration information of the router, and entering the next step; if one fails, go to step S7;
s7, judging the final result, and if the final result is successful, displaying PASS; otherwise, failure is displayed;
and S8, detecting power-off, and ending the software.
In this embodiment, the throughput reaching the standard refers to a sum of data volumes transmitted on a network in a performance test process, and the specific measurement value is defined according to test requirements of different products.
In order to achieve synchronization of data and facilitate subsequent tracing, the following steps are further included between step S7 and step S8:
and uploading the test record and the test result to an FTP server, wherein the FTP server is opened and is communicated with a test computer.
As an optional option of the foregoing scheme, the acquiring the MAC address information of the router in step S2 specifically includes:
and after the software is opened, scanning a bar code on the router product and analyzing the bar code to obtain the target product. The bar code is a bar code or a two-dimensional code.
As another optional option of the foregoing scheme, the acquiring the MAC address information of the router in step S2 specifically includes: and reading the MAC address information from the configuration file.
As a preferable mode of the above solution, the following steps are further included between steps S2 and S3:
carrying out range detection, length detection and parity detection on the MAC address information, and entering the next step if the detection meets the requirements; if one fails, go to step S7. By detecting the range, length, and parity of the MAC address information, it is possible to prevent the operator from flowing out defective products.
As a preferable mode of the above solution, the following steps are further included between steps S2 and S3:
detecting the electrification of the router, and if the electrification is successful, closing the shielding box through the serial port; if the power-on failure or the failure to close the shielding box is detected, the process goes to step S7. Through increasing the shielded cell, can guarantee the stability in the test procedure, avoid external interference.
The above embodiments are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents thereof, and all such changes, modifications, substitutions, combinations, and simplifications are intended to be included in the scope of the present invention.

Claims (3)

1. A router production test burning method is characterized by comprising the following steps:
s1, connecting the testing PC with the router burning detection software with the router through a cable;
s2, obtaining MAC address information of the router;
s3, after the router is powered on, detecting the throughput of the router, and if the throughput reaches the standard, entering the next step; if the throughput test does not reach the standard, jumping to step S7;
s4, respectively detecting the network communication status of the LAN port and the WAN port, and entering the next step if the communication is successful; if the failure occurs, go to step S7;
s5, sequentially writing in LAN MAC, WAN MAC, WLAN MAC and 5G WLAN MAC; if the writing is successful, entering the next step; if one of the writes fails, go to step S7;
s6, reading the key value pair of the partition write value in the router configuration file, respectively writing, and entering the next step; if one fails, go to step S7;
s7, judging the final result, and if the final result is successful, displaying PASS; otherwise, failure is displayed;
s8, detecting power-off, and ending the software;
the step S2 of acquiring the MAC address information of the router specifically includes: reading MAC address information from a configuration file to obtain the MAC address information;
the steps between S2 and S3 further include the following steps:
detecting the electrification of the router, and if the electrification is successful, closing the shielding box through the serial port; if the power-on failure or the failure to close the shielding box is detected, the process goes to step S7.
2. The router production test burning method according to claim 1, wherein: the steps between the step S7 and the step S8 further include the following steps:
and uploading the test record and the test result to an FTP server, wherein the FTP server is opened and is communicated with a test computer.
3. The router production test burning method according to claim 1, wherein: the steps between S2 and S3 further include the following steps:
carrying out range detection, length detection and parity detection on the MAC address information, and entering the next step if the detection meets the requirements; if one fails, go to step S7.
CN201710180917.8A 2017-03-24 2017-03-24 Router production test burning method Active CN108092842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710180917.8A CN108092842B (en) 2017-03-24 2017-03-24 Router production test burning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710180917.8A CN108092842B (en) 2017-03-24 2017-03-24 Router production test burning method

Publications (2)

Publication Number Publication Date
CN108092842A CN108092842A (en) 2018-05-29
CN108092842B true CN108092842B (en) 2020-10-16

Family

ID=62171654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710180917.8A Active CN108092842B (en) 2017-03-24 2017-03-24 Router production test burning method

Country Status (1)

Country Link
CN (1) CN108092842B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079686A (en) * 2014-07-17 2014-10-01 福州瑞芯微电子有限公司 Setting method and distributing method for terminal equipment MAC address
CN104916327A (en) * 2015-05-22 2015-09-16 深圳创维-Rgb电子有限公司 Method and system of simultaneously burning multiple television KEY codes on line
CN105573743A (en) * 2015-11-19 2016-05-11 深圳市芯海科技有限公司 Chip burning system and method and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI326425B (en) * 2003-12-26 2010-06-21 Hon Hai Prec Ind Co Ltd Apparatus for burning mac address
US8532116B2 (en) * 2009-07-21 2013-09-10 Cisco Technology, Inc. Extended subnets
CN102045591B (en) * 2009-10-10 2012-08-29 上海广联电子有限公司 Method for recording media access control (MAC) address and K code of set top box of disposable recorder
CN104601737B (en) * 2013-10-31 2018-05-01 上海斐讯数据通信技术有限公司 The method that AP obtains client ip address
CN104077222A (en) * 2014-07-03 2014-10-01 上海斐讯数据通信技术有限公司 Method for automated testing of wireless router throughput
CN104349346B (en) * 2014-11-13 2018-05-29 广东欧珀移动通信有限公司 A kind of mobile terminal WiFi handling capacity automated testing methods
CN105357709A (en) * 2015-12-17 2016-02-24 上海斐讯数据通信技术有限公司 Wireless router throughput testing method and system as well as router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079686A (en) * 2014-07-17 2014-10-01 福州瑞芯微电子有限公司 Setting method and distributing method for terminal equipment MAC address
CN104916327A (en) * 2015-05-22 2015-09-16 深圳创维-Rgb电子有限公司 Method and system of simultaneously burning multiple television KEY codes on line
CN105573743A (en) * 2015-11-19 2016-05-11 深圳市芯海科技有限公司 Chip burning system and method and electronic equipment

Also Published As

Publication number Publication date
CN108092842A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN105450442B (en) A kind of network topology investigation method and its system
US10917311B2 (en) Network test instrument
EP2988454B1 (en) Network device detecting method and apparatus, and cloud detection system
CN102427445B (en) Safe auditing method of IT simulation infrastructure offline compliance
CN103686813B (en) Device and method for testing automatic switching stability of wireless AP (access point) channel
CN104104488A (en) Wireless sensor network protocol conformance testing system and method
CN109284140B (en) Configuration method and related equipment
US20150106669A1 (en) Methods, systems, and computer readable media for providing for specification or autodiscovery of device under test (dut) topology information
CN112752285B (en) Sniffing copy control equipment and method for Wi-SUN network test
CN110995764B (en) Mobile cellular network application layer data flow fuzzy test method, electronic equipment and storage medium
US20190068456A1 (en) Holistic Validation of a Network Via Native Communications Across a Mirrored Emulation of the Network
CN107124297B (en) Zabbix-based SNMP network topology discovery method and device
CN107612769B (en) Method and system for testing wireless transmission rate of router
CN108092842B (en) Router production test burning method
US9154409B2 (en) Method for debugging private VLAN
CN107888563A (en) A kind of determination method and apparatus of terminal access position
CN106304166B (en) System and method for testing number of concurrent users of wireless router
EP3178201B1 (en) Methods, systems, and computer readable media for providing user interfaces for specification of system under test (sut) and network tap topology and for presenting topology specific test results
CN102739460B (en) Interface wiring path detection device and detection method thereof
CN111371654B (en) Automatic testing system and method for intelligent fusion product network port
CN103067226A (en) Ethernet passive optional network (EPON) test system
CN108092843B (en) General test method for router
WO2022090809A1 (en) Machine learning life cycle management for networks
CN106789256B (en) Test system and test method for simulating wide area network environment
CN113032255A (en) Response noise recognition method, model, electronic device, and computer storage medium

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