CN103139012B - A kind of Ethernet interface method of testing and the network equipment - Google Patents

A kind of Ethernet interface method of testing and the network equipment Download PDF

Info

Publication number
CN103139012B
CN103139012B CN201210505514.3A CN201210505514A CN103139012B CN 103139012 B CN103139012 B CN 103139012B CN 201210505514 A CN201210505514 A CN 201210505514A CN 103139012 B CN103139012 B CN 103139012B
Authority
CN
China
Prior art keywords
test
ethernet interface
network
network equipment
flash
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
CN201210505514.3A
Other languages
Chinese (zh)
Other versions
CN103139012A (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 Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201210505514.3A priority Critical patent/CN103139012B/en
Publication of CN103139012A publication Critical patent/CN103139012A/en
Application granted granted Critical
Publication of CN103139012B publication Critical patent/CN103139012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a kind of Ethernet interface method of testing and the network equipment, wherein Ethernet interface method of testing includes: connected by netting twine by each two Ethernet interface of the network equipment, forms network loop; The power supply of opening network equipment, allows the network equipment receive and dispatch bag test under loop circuit state at full capacity voluntarily; Meanwhile, regularly suspend the transmitting-receiving bag of network, check running status and the statistical information of each Ethernet interface, and checking that result is saved in FLASH; Transmitting-receiving bag test removes netting twine after terminating, and reads the network equipment and is saved in the inspection result in FLASH. The application present invention, can save the test space, greatly reduce production test cost, and control of product quality is more efficient.

Description

A kind of Ethernet interface method of testing and the network equipment
Technical field
The present invention relates to network equipment production technical field, particularly relate to a kind of Ethernet interface method of testing and the network equipment.
Background technology
Enterprise, in producing the network equipment, owing to various zero devices occur occurring in that carelessness in substandard products or production operation, particularly in batch production process, can not ensure that conforming product rate is 100%. Generally for controlling quality, enterprise can add the production test flow process that some are basic, checks whether equipment can be used, but effect is undesirable; In order to improve quality, also can use the network testing instrument of specialty, such as SmartBits or NuStream, carry out beating current test. But owing to network test equipment is expensive, it is impossible to what each networking products all carried out high intensity beats current test, and one is that production cost is greatly improved, and two is to reduce production efficiency.
Summary of the invention
It is an object of the invention to provide a kind of Ethernet interface method of testing and the network equipment, reduce production test cost, improve production efficiency, effective control for product quality.
It is an object of the invention to be achieved through the following technical solutions:
A kind of Ethernet interface method of testing, including step:
The each two Ethernet interface of the network equipment is connected by netting twine, forms network loop;
The power supply of opening network equipment, allows the network equipment receive and dispatch bag test under loop circuit state at full capacity voluntarily; Meanwhile, regularly suspend the transmitting-receiving bag of network, check running status and the statistical information of each Ethernet interface, and checking that result is saved in FLASH;
Transmitting-receiving bag test removes netting twine after terminating, and reads the network equipment and is saved in the inspection result in FLASH.
Wherein, the method that the network equipment receives and dispatches bag at full capacity voluntarily under loop circuit state is allowed to be described in: first to construct broadcasting packet, send described broadcasting packet to each Ethernet interface; Each Ethernet interface is after receiving broadcasting packet, then by this broadcasting packet repeated broadcast to other Ethernet interfaces, circulation is gone down, and can reach the state of oepration at full load in the network equipment short time.
Wherein, also including: before transmitting-receiving bag test starts, the broadcast closing the network equipment suppresses function.
Wherein, if the exchange chip support of the described network equipment adapts to netting twine type automatically, then Straight-Through Cable or crossover network cables are used to connect two Ethernet interfaces;If the exchange chip of the described network equipment does not support adaptation netting twine type automatically, then crossover network cables are used to connect two Ethernet interfaces.
Wherein, if the number of the Ethernet interface of the described network equipment is odd number, then selects the upper united mouth do not tested in Ethernet interface or take the mode of upper united mouth mutual connection of two network equipments.
Wherein, described running status includes Ethernet interface negotiated speed, half/full-duplex mode; Described statistical information includes data transmit-receive byte number and transmitting-receiving bag number.
Wherein, described inspection result is saved in the current FLASH of the described network equipment the new subregion divided, or in external new FLASH.
A kind of network equipment, including the exchange chip being connected and CPU, also includes the package control module being connected with CPU;
Described exchange chip includes at least two Ethernet interface, and in transmitting-receiving bag test process, each two Ethernet interface is connected to form network loop;
Described package control module, for sending broadcasting packet in described network loop, makes network equipment transmitting-receiving bag test voluntarily at full capacity under loop circuit state; Meanwhile, regularly suspend the transmitting-receiving bag of network, check running status and the statistical information of each Ethernet interface, and checking that result is saved in FLASH.
Wherein, described package control module farther includes: package control unit and inspection record unit;
Described package control unit, is used for constructing broadcasting packet, sends broadcasting packet in transmitting-receiving bag test process in described network loop;
Described inspection record unit, for, in transmitting-receiving bag test process, making regular check on duty and the statistical information of each Ethernet interface, and will check that result is by the predetermined local FLASH of the consolidation form write subregion newly divided or in external FLASH.
Wherein, described package control module also includes: Product Status inspection unit, loop circuit state detection unit and/or query interface;
Described Product Status inspection unit, for checking the current state of the network equipment, if production status, then controls package control module and continues to run with, otherwise terminate the operation of package control module;
Described loop circuit state detection unit, for, in transmitting-receiving bag test process, periodically surveying whether present networks equipment is currently in loop circuit state, if it is not, then close the function of package control unit and inspection record unit;
Described query interface, for reading the inspection result preserved in described FLASH.
Each two Ethernet interface is first one group by the embodiment of the present invention and is connected to form external loop-around environment, carry out receiving the inspection of package control, each network interface working state and statistical information, checking the record etc. of result again through the package control module being built in the network equipment, namely product quality is can determine that according to record information, thus compared with prior art, have the advantages that
1) place, space that test is required is little, puts at many levels according to solid is cabinet type, more can save space during product test;
2) product is carried out stress test by the network testing instrument that need not purchase specialty in high volume;
3) enterprise according to the target customer of networking products and prescription, can control testing time intensity, and cooperate better effects if with high temperature ageing test voluntarily; After enterprise produces, the operation of test module of giving out a contract for a project can be cut off, and will not the use of user be impacted.
In a word, the present invention can greatly reduce production test cost, and control of product quality is more efficient.
Accompanying drawing explanation
Fig. 1 is Ethernet interface method of testing framework map in the embodiment of the present invention, and dotted line represents netting twine.
Fig. 2 is Ethernet interface method of testing flow chart in the embodiment of the present invention.
Fig. 3 is current FLASH concrete structure schematic diagram after dividing new subregion TestResult in the embodiment of the present invention.
Detailed description of the invention
The core concept of the present invention is: as it is shown in figure 1, the adaptive character according to exchange chip, with each two Ethernet interface for one group, with Straight-Through Cable or crossover network cables, each networking mouth is coupled together, and forms the environment of external loop. Then, send broadcasting packet to each Ethernet interface, by package control module newly-increased in the network device, whole test process is controlled and record.
The application present invention, enterprise has only to provide a test site, prepares enough netting twines, it is possible to multiple devices are tested simultaneously; Owing to being that multiple devices are tested simultaneously, the requirement to stability and quality according to place size and enterprise, enterprise can control the time intensity of test voluntarily. Although the transmitting-receiving bag test of Ethernet interface, but be actually and whole product is carried out comprehensive high intensity test, the damage of any zero device, all can cause that last Query Result is abnormal; Meanwhile, high intensity is tested, and also to a certain extent zero device of poor quality is spilt cruelly, filters out faulty item. Generally speaking, production test is with low cost, and test effect is more significantly.
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated. Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
The network equipment produces before and after delivery in enterprise, interiors of products can do different marks, be in production status to distinguish product, or the factory state after production. Different Product Status has different software and configuration, to meet the demand under different conditions.
Thus the present embodiment newly increases a package control module on network devices, in order to implement function such as:
A, inspection product current state, if production status, then this module continues to run with, and otherwise terminates all functions of this module;
The network connection state that B, the inspection network equipment are current, as fruit product is under loop circuit state, then continues to run with and gives out a contract for a project and other function; Otherwise suspend other function;
C, the duty making regular check on the work of each Ethernet interface and statistical information, and the result checked is written in the FLASH subregion of present networks equipment according to unified form or in external FLASH.
As in figure 2 it is shown, in the present embodiment, Ethernet interface method of testing specifically includes following steps:
201, on network devices before electricity, with Straight-Through Cable or crossover network cables, the Ethernet interface needing test is coupled together with each two for one group. Here it is only preferably operation order, is not that netting twine is plugged in restriction before device power. After the network equipment powers on, all transfer to package control resume module, it is no longer necessary to human intervention.
202, first check for whether product is production status, if being factory state, then cut off the operation of package control module, no longer product is impacted.
203, by giving out a contract for a project, check the source MAC receiving bag, judge whether product is under loop circuit state, be, carry out package control, otherwise according to the cycle set in advance, periodically survey whether network interface is operated under loop circuit state.
204, before package control, first construct broadcasting packet, then send to all Ethernet interfaces. Owing to being loop circuit state, the network equipment may proceed to after receiving broadcasting packet broadcast to all Ethernet interfaces, and circulation is gone down, and networking products quickly enter the state of oepration at full load. If the network equipment has the function that broadcast suppresses, then need first to close this function.
205, in package control process, give out a contract for a project polling cycle according to set in advance, when the cycle arrives, suspend the transmitting-receiving bag of network, check the duty of each Ethernet interface and detailed statistical information, and result is updated in FLASH subregion according to unified form.
206, reset the exchange chip of the network equipment, empty all statistical information on depositor. If giving out a contract for a project, test terminates, then perform step 207; Test if giving out a contract for a project and do not terminate, then return to step 203, carry out next round loop test.
207, after test of giving out a contract for a project terminates, close device power supply (DPS), remove netting twine, the network equipment is received the PC for collecting test record, by the query interface that the network equipment provides, the record data of test of giving out a contract for a project are transferred on PC, the prescription finally formulated by enterprise, it is determined that the quality of product quality.
Described test record includes total test result and the detailed data of the concrete detection of Ethernet interface each time. Whether wherein, total test result comprises testing time and each Ethernet interface failed number of times of detection, detect failed basis for estimation and meet with network interface working state and be contemplated to foundation; Call number that detailed data includes detecting each time, specific works state, the byte number of transceiving data and number-of-packet, detailed data is record in the way of entry. Total test result does simple judgement for enterprise, if test result does not meet expection, then detailed data is brought the analysis of the system of doing, to screen the credit rating of product.
Described detailed data, the size according to the FLASH subregion divided, set the number of entries of record. If FLASH subregion is only small, it is possible to record result the earliest or nearest result as required.
Described FLASH subregion is the one piece of subregion newly marked on current FLASH or external another block FLASH. Enterprise can remove the test record of new subregion as required before product export. As it is shown on figure 3, TestResult subregion is the new one piece of subregion divided on existing FLASH in the network device, it is specifically intended for storage test record.
Described query interface is a part of user interface UI, and UI also includes the content of test data partition is removed.
Described Ethernet interface duty includes network interface negotiated speed, half/full-duplex mode.
In the specific implementation, if enterprise needs to produce in enormous quantities, then need to prepare certain test site; If there is the place that high temperature ageing is tested in enterprise, then can together carry out with this test, test better effects if. Then according to the described network interface mode of connection assembles the network equipment, put according to cabinet type multilamellar, it is possible to make full use of space, place. Then open the power supply of all devices, the package control module of equipment whole test is operated and record. After test terminates, first the power supply of the network equipment is disconnected, then remove netting twine, the network equipment is put into flowing water on-line operation, use PC to read out test data by the query interface that the network equipment provides. Test data, according to the quality standard pre-established, are carried out quality identification by enterprise, and thus by low cost, high efficiency mode completes the Ethernet interface quality test of product.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all any amendment, equivalent replacement and improvement etc. made within the spirit and principles in the present invention, should be included within protection scope of the present invention.

Claims (4)

1. an Ethernet interface method of testing, it is characterised in that the method comprising the steps of: connected by netting twine by each two Ethernet interface of the network equipment, forms network loop; The power supply of opening network equipment, allows the network equipment receive and dispatch bag test under loop circuit state at full capacity voluntarily; Meanwhile, regularly suspend the transmitting-receiving bag of network, check running status and the statistical information of each Ethernet interface, and checking that result is saved in FLASH; Transmitting-receiving bag test removes netting twine after terminating, and reads the network equipment and is saved in the inspection result in FLASH; Concrete steps include:
201, on network devices before electricity, with Straight-Through Cable or crossover network cables, the Ethernet interface needing test is coupled together with each two for one group;
202, first check for whether product is production status, if being factory state, then cut off the operation of package control module, no longer product is impacted;
203, by giving out a contract for a project, check the source MAC receiving bag, judge whether product is under loop circuit state, be, carry out package control, otherwise according to the cycle set in advance, periodically survey whether network interface is operated under loop circuit state;
204, before package control, first construct broadcasting packet, then send to all Ethernet interfaces;
205, in package control process, give out a contract for a project polling cycle according to set in advance, when the cycle arrives, suspend the transmitting-receiving bag of network, check the duty of each Ethernet interface and detailed statistical information, and result is updated in FLASH subregion according to unified form;
206, reset the exchange chip of the network equipment, empty all statistical information on depositor; If giving out a contract for a project, test terminates, then perform step 207; Test if giving out a contract for a project and do not terminate, then return to step 203, carry out next round loop test;
207, after test of giving out a contract for a project terminates, close device power supply (DPS), remove netting twine, the network equipment is received the PC for collecting test record, by the query interface that the network equipment provides, the record data of test of giving out a contract for a project are transferred on PC.
2. Ethernet interface method of testing as claimed in claim 1, it is characterised in that described test record includes total test result and the detailed data of the concrete detection of Ethernet interface each time; Whether wherein, total test result comprises testing time and each Ethernet interface failed number of times of detection, detect failed basis for estimation and meet with network interface working state and be contemplated to foundation; Call number that detailed data includes detecting each time, specific works state, the byte number of transceiving data and number-of-packet, detailed data is record in the way of entry.
3. Ethernet interface method of testing as claimed in claim 2, it is characterised in that also include in the method: described detailed data, the size according to the FLASH subregion divided, set the number of entries of record; Described FLASH subregion is the one piece of subregion newly marked on current FLASH or external another block FLASH.
4. a network equipment, including the exchange chip being connected and CPU, it is characterised in that also include the package control module being connected with CPU; Described exchange chip includes at least two Ethernet interface, and in transmitting-receiving bag test process, each two Ethernet interface is connected to form network loop;Described package control module, for sending broadcasting packet in described network loop, makes network equipment transmitting-receiving bag test voluntarily at full capacity under loop circuit state; Meanwhile, regularly suspend the transmitting-receiving bag of network, check running status and the statistical information of each Ethernet interface, and checking that result is saved in FLASH; Described package control module farther includes: package control unit and inspection record unit; Described package control unit, is used for constructing broadcasting packet, sends broadcasting packet in transmitting-receiving bag test process in described network loop; Described inspection record unit, for, in transmitting-receiving bag test process, making regular check on duty and the statistical information of each Ethernet interface, and will check that result is by the predetermined local FLASH of the consolidation form write subregion newly divided or in external FLASH; Described package control module also includes: Product Status inspection unit, loop circuit state detection unit and/or query interface; Described Product Status inspection unit, for checking the current state of the network equipment, if production status, then controls package control module and continues to run with, otherwise terminate the operation of package control module; Described loop circuit state detection unit, for, in transmitting-receiving bag test process, periodically surveying whether present networks equipment is currently in loop circuit state, if it is not, then close the function of package control unit and inspection record unit; Described query interface, for reading the inspection result preserved in described FLASH.
CN201210505514.3A 2012-12-03 2012-12-03 A kind of Ethernet interface method of testing and the network equipment Active CN103139012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210505514.3A CN103139012B (en) 2012-12-03 2012-12-03 A kind of Ethernet interface method of testing and the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210505514.3A CN103139012B (en) 2012-12-03 2012-12-03 A kind of Ethernet interface method of testing and the network equipment

Publications (2)

Publication Number Publication Date
CN103139012A CN103139012A (en) 2013-06-05
CN103139012B true CN103139012B (en) 2016-06-08

Family

ID=48498349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210505514.3A Active CN103139012B (en) 2012-12-03 2012-12-03 A kind of Ethernet interface method of testing and the network equipment

Country Status (1)

Country Link
CN (1) CN103139012B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283730B (en) * 2013-07-08 2019-03-01 深圳市共进电子股份有限公司 Loop detecting method and system
CN103780458B (en) * 2014-01-08 2017-02-08 迈普通信技术股份有限公司 Ethernet interface testing method and Ethernet interface testing system
CN105897494A (en) * 2015-01-26 2016-08-24 明泰科技股份有限公司 Testing method of network transmission rate
CN105910600A (en) * 2016-06-14 2016-08-31 冯青元 Micro-region navigation system and method
CN106452964A (en) * 2016-10-31 2017-02-22 成都广达新网科技股份有限公司 Network equipment interface cache testing system and method
CN107707420B (en) * 2017-08-04 2021-04-09 郑州云海信息技术有限公司 Method for testing network cable plugging and unplugging stability
CN109428783B (en) * 2017-08-30 2022-02-25 迈普通信技术股份有限公司 Network equipment testing method and device
CN109962824A (en) * 2017-12-26 2019-07-02 新汉股份有限公司 High-speed network appliance and its self test method
CN108900317B (en) * 2018-05-11 2022-08-16 深圳赤马通信技术有限公司 Method for batch upgrading of multiple network devices in Ethernet broadcast mode
CN109889407A (en) * 2019-02-12 2019-06-14 太仓市同维电子有限公司 A kind of managed switches production test method
CN114697233A (en) * 2020-12-29 2022-07-01 慧盾信息安全科技(北京)有限公司 Software and method for network port test by single-device Ethernet port loop-back mode connection
CN115102878A (en) * 2022-06-08 2022-09-23 北京启明星辰信息安全技术有限公司 Network security equipment aging test system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030901A (en) * 2007-04-27 2007-09-05 中控科技集团有限公司 Distributed Ethernet system and method for inspecting fault based thereon
CN101252710A (en) * 2008-03-14 2008-08-27 姜群星 Enterprise level mobile communication and wireless command scheduling switch
CN101582809A (en) * 2008-05-14 2009-11-18 襄樊博创伟业电子有限公司 Loop-back detecting and inhibiting method of Ethernet exchanger chip port
CN101594222A (en) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 A kind of interface test method and device
CN202261345U (en) * 2011-09-20 2012-05-30 汉柏科技有限公司 Ethernet switch chip port loopback detection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030901A (en) * 2007-04-27 2007-09-05 中控科技集团有限公司 Distributed Ethernet system and method for inspecting fault based thereon
CN101252710A (en) * 2008-03-14 2008-08-27 姜群星 Enterprise level mobile communication and wireless command scheduling switch
CN101582809A (en) * 2008-05-14 2009-11-18 襄樊博创伟业电子有限公司 Loop-back detecting and inhibiting method of Ethernet exchanger chip port
CN101594222A (en) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 A kind of interface test method and device
CN202261345U (en) * 2011-09-20 2012-05-30 汉柏科技有限公司 Ethernet switch chip port loopback detection device

Also Published As

Publication number Publication date
CN103139012A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN103139012B (en) A kind of Ethernet interface method of testing and the network equipment
CN103312037B (en) Device and method for testing pressure of intelligent substation
CN103188116B (en) A kind of network performance detection method of blade server and system
CN111130597B (en) HPLC communication unit detecting system
CN105322660B (en) The long-range control method and device of distribution communication apparatus
WO2014153764A1 (en) Method and device for automatic test of relay protection function of intelligent substation
CN105376534A (en) Integrated electric power information communication monitoring platform based on wireless transmission technology
CN103368263A (en) Detection method for communication states of IEC104 protocol of dispatching automation system
CN104300675A (en) Power distribution room remote monitoring method and system based on integrated substation system
CN107785998A (en) The monitoring method of power distribution automation equipment in a kind of distribution system
CN104578419B (en) A kind of transformer substation communication power supply monitoring system and method
CN104504537B (en) A kind of transformer station's AC power monitoring system and method
CN106777755B (en) Verification device and system for spacer layer locking logic
CN108462510A (en) Fault detection system based on power carrier and method
CN108053633A (en) The method and device of copy reading metering module electric energy indicating value data
CN103885422B (en) Hydrogen fuel stand-by power supply monitoring system and method
CN207588113U (en) Network interface plug-in and pull-off device and network interface insert-pull detection system
CN103647760B (en) The MMS communication platforms and its access method of a kind of intelligent transformer substation digital protection device
CN109870834A (en) A kind of liquid-crystalline glasses power-up detection system
CN108562805A (en) A kind of interactive mode break-make electric test device, system and method
CN106712298A (en) Monitoring system for power distribution automation system
CN207867293U (en) A kind of intelligent transportation monitoring system for conveyer belt
CN103378992A (en) Bus data test method for home bus system and apparatus
CN110889515A (en) Data processing method, device and system
CN205847321U (en) A kind of information transmitting terminal based on Linux system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant