CN101594222B - Interface testing method and device - Google Patents

Interface testing method and device Download PDF

Info

Publication number
CN101594222B
CN101594222B CN 200910151036 CN200910151036A CN101594222B CN 101594222 B CN101594222 B CN 101594222B CN 200910151036 CN200910151036 CN 200910151036 CN 200910151036 A CN200910151036 A CN 200910151036A CN 101594222 B CN101594222 B CN 101594222B
Authority
CN
China
Prior art keywords
interface
processing unit
data
centering
ethernet
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
CN 200910151036
Other languages
Chinese (zh)
Other versions
CN101594222A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910151036 priority Critical patent/CN101594222B/en
Publication of CN101594222A publication Critical patent/CN101594222A/en
Application granted granted Critical
Publication of CN101594222B publication Critical patent/CN101594222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention relates to an interface testing method and an interface testing device. The method comprises the following steps: forming a loop at an interface; sending broadcast data packets to the interface to form broadcast storm to make the interface in a linear speed state; and measuring multiple kinds of data of the interface. Because the loop is formed at the interface, and the multiple kinds of data is measured under the linear speed condition based on VLAN, the comprehensive testing for the interface is short in time, simple and convenient.

Description

A kind of interface test method and device
Technical field
The present invention relates to a kind of interface test method and device, relate in particular to a kind of interface test method and device of Ethernet.
Background technology
The single board interface functional test is in the veneer production link, be to guarantee a kind of means of testing that the welding quality of veneer production adopts, the characteristics of this means of testing be requirement convenient test, testing time short, realize automatic test.In the product of router or switch, all can there be a lot of Ethernet interfaces externally to connect.Test to Ethernet interface mainly is that various receiving and transmitting signal lines and clock line are tested; And the receiving and transmitting signal line of most of Ethernet interfaces and clock cable all are differential signal lines; For the various holding wires of Ethernet interface are carried out comprehensive functional test, need make Ethernet interface under the linear speed situation, data stream transmitted and receive.So many Ethernet interface need carry out under the linear speed situation, carrying out the data flow transmitting-receiving simultaneously, generally all need look for external test facility to test.
In the patent No. is in the Chinese patent " a kind of system of user plane flow rate test and implementation method " of CN1713597A, discloses a kind of system and method for user plane flow rate test.This system and method can't make Ethernet interface under the linear speed situation, carry out the forwarding and the reception of data flow, therefore can not carry out comprehensive functional test to Ethernet interface.And this method of testing testing time is long, testing complex, is difficult to realize the Board Functional Test, Board Function Test of production line.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of under the linear speed state, to need not the method that external equipment automatic butt mouth is tested.
In order to solve the problems of the technologies described above, the invention provides a kind of interface test method, comprising: form loopback at said interface; Send out broadcast data packet to said interface and form broadcast storm, make said interface be in the linear speed state; Measure the various data of said interface.
Further, said method comprises: form from ring at said interface; Send out broadcast data packet to said interface and form broadcast storm, make said interface be in the linear speed state; Measure the various data of said interface.
Further, said method comprises: form two or more interface receiving and transmitting signal butt joints at said interface; Send out broadcast data packet to said interface and form broadcast storm, make said interface be in the linear speed state; Measure the various data of said interface.
Further, said method comprises: it is right that interface is divided into N interface, and form loopback said interface centering, and said N is not less than 1; Said interface centering VLAN is set, the interface virtual lan of same interface centering is arranged to equally be arranged to the interface virtual lan of distinct interface centering different; Send out broadcast data packet to an interface of said interface centering and form broadcast storm, make said interface be in the linear speed state; Measure the various data of said interface.
Further, said at interface centering formation loopback, comprising: the interface each interface centering forms the individual interface receiving and transmitting signal from ring.
Further, said at interface centering formation loopback, comprising: the interface each interface centering forms two or more interface receiving and transmitting signals butt joints.
Another technical problem to be solved by this invention is, provides a kind of under state status, need not the device that external equipment automatic butt mouth is tested.
In order to solve the problems of the technologies described above; The invention provides a kind of Ethernet interface flow testing device; Said device comprises communication display platform, controlled processing unit, network processing unit; Said communication display platform is used for sending test command and rate parameter to controlled processing unit, and from the result of said controlled processing unit receiving interface functional test; The test result that said controlled processing unit is used to receive said test command and rate parameter and produces broadcast storm and obtain interface; Said network processing unit is used to receive and transmit the packet that transmits from said control unit, and said controlled processing unit is added up and reported to data traffic and other data of the transceive data bag of each Ethernet interface; The interface processing unit, said interface is handled at said interface and is formed loopback.
Further, it is right that said interface processing unit is used for that also interface is divided into N interface, and form loopback said interface centering, and said N is not less than 1.
Further, said interface processing unit is from encircling crystal head, optical module, optical fiber, crossover network cables, light mouth anchor clamps or electricity mouthful anchor clamps.
Further; Said network processing unit also comprises the interface configuration module; Said interface configuration module is used for said interface centering VLAN being set; The Ethernet interface VLAN of same interface centering is arranged to equally, and the Ethernet interface VLAN of distinct interface centering is arranged to different.
Interface test method of the present invention and equipment because it forms loopback at interface, and based on the various data of VLAN test interface under the linear speed situation, make that the full test of interface time that becomes is short, simple and convenient.
Description of drawings
Fig. 1 is the sketch map of Ethernet interface testing apparatus.
Fig. 2 is based on the flow chart of the Ethernet interface method of testing of vlan technology.
Embodiment
The method and apparatus of a kind of interface testing that this paper proposes; Form loopback at tested interface; Only need afterwards through the principle of broadcast storm, can let interface under the state of linear speed, oneself form the linear speed data flow by the inner broadcast packet data message of sending out of veneer; Do not need external test facility, thereby reach the purpose that docking port carries out functional test.
In the present embodiment, faster in order to test, the interface location is more accurate, has described method of testing and device based on the interface of VLAN (Virtual Local Area Network is called for short VLAN)
In the present embodiment, Ethernet interface is an example, in conjunction with accompanying drawing the present invention is done further detailed explanation.
Shown in Figure 1 is the structural representation of Ethernet interface testing apparatus.This Ethernet interface device for testing functions comprises communication display platform 101, controlled processing unit 102, network processing unit 103 and interface processing unit 104.
Communication display platform 101 can be PC or industrial computer, is used for sending test command and rate parameter to controlled processing unit 102, and receives the result of each Ethernet interface functional test from controlled processing unit 102.Adopt UDP (User Datagram Protocol is called for short UDP) to communicate between communication display platform 101 and the controlled processing unit 102.
Controlled processing unit 102 can be CPU and mini system or the network processing unit and the mini system thereof of tested Ethernet interface veneer.Controlled processing unit 102 comprises communication module 105, broadcast packet generation module 106, timer module 107, rate calculations and test result judge module 108.
Communication module 105 in the controlled processing unit 102 is used to receive test command and rate parameter and other data parameters that communication display platform 101 sends over, and sends to communication display platform 101 to test result.Broadcast packet generation module 106 is used for sending broadcast packet to network processing unit 103, produces the data source of packet broadcast storm as each Ethernet interface.Timer module 107 is obtained the time reference of the data packet transceive data of each Ethernet interface within a certain period of time as controlled processing unit.Rate calculations and test result judge module 108 are used for according to the reference time of the data packet transceive data traffic of each Ethernet interface and timer module 107 speed of each Ethernet interface being calculated; And the rate parameter that sends according to communication display platform 101 and other data parameters judge whether the flow rate of each Ethernet interface and other data are normal, obtains the test result of interface.
Network processing unit 103 can be the exchange chip or the network processing unit of tested interface single plate.Network processing unit 103 comprises packet forwarding processing module 109, interface configuration module 110, data packet transceive statistics and error statistics module 111.
Interface configuration module 110 is used for that each Ethernet interface is carried out VLAN and is provided with, and it is right on software, ethernet port to be divided into N interface.Packet in the network processing unit 103 is transmitted processing module 109 and is used for receiving and transmitting packet.Data packet transceive statistics and error statistics module 111 are used for controlled processing unit is added up and reported to data traffic and other data of the transceive data bag of each Ethernet interface.
Interface processing unit 104 can be from encircling crystal head, optical module, optical fiber, crossover network cables, light mouth anchor clamps, electricity mouthful anchor clamps etc.; Realize the receiving and transmitting signal butt joint of individual ethernet interface receiving and transmitting signal from ring or two Ethernet interfaces, it is right simultaneously Ethernet interface to be divided into N port on hardware
As shown in Figure 2, be described below based on the testing procedure of the Ethernet interface method of testing of vlan technology:
(1) interface processing unit 104 is distributed into N different interface to each tested Ethernet interface to (N is not less than 1); For the ease of fault location; Port comprises 2 Ethernet interfaces to the inside is minimum, is 2 above Ethernet interfaces sometimes, forms individual ethernet interface receiving and transmitting signal from ring at each Ethernet interface of same interface centering; Perhaps, form two or more Ethernet interface receiving and transmitting signal butt joints.
(2) the interface configuration module 110 of network processing unit 103 is carried out the VLAN configuration to each Ethernet interface, is divided into N interface to each Ethernet interface to (N is not less than 1).Be arranged to equally at the Ethernet interface VLAN of same interface centering, the right Ethernet interface VLAN of distinct interface is arranged to different.
(3) after communication display platform 101 is received operating personnel and carried out the instruction of Ethernet interface functional test, send test command, rate parameter and other data parameters to controlled processing unit 102.
(4) after the communication module 105 reception communication display platforms 101 of controlled processing unit 102 are sent test command, rate parameter and other data parameters, start Ethernet interface functional test flow process.
(5) the broadcast packet generation module 106 by controlled processing unit 102 produces the broadcast packet message data in veneer inside, and sends the broadcast packet messages to network processing unit 103.Group interface is right because Ethernet interface is assigned to N, and then the broadcast packet generation module 106 of controlled processing unit 102 sends N broadcast packet message to network processing unit 103.
(6) packet of network processing unit 103 is transmitted and respectively this N broadcast packet message is forwarded on the interface of each interface centering after processing module 109 is received N broadcasting packet.The principle of utilizing broadcast packet in same VLAN, to broadcast forms broadcast storm in each right Ethernet interface of same interface, so just make interface form the linear speed state.
(7) data packet transceive of network processing unit 103 statistics and error statistics module 111 are added up data traffic and other data message of the transceive data bag of each Ethernet interface.
(8) controlled processing unit 102 speed statistics and test result judge module 108; Time parameter according to timer module 107; And the data traffic and other data message that obtain the transceive data packet of each Ethernet interface from the data packet transceive of network processing unit 103 statistics and error statistics module 111; Speed to the data packet transceive packet of each Ethernet interface is calculated; And the rate parameter that sends according to communication display platform 101 and other data parameters judge whether the flow rate of each Ethernet interface and other data normal, obtain interface test result.
(9) communication module 105 of controlled processing unit 102 sends to communication display platform 101 with test result.
It is right that tested interface is divided into N interface; And the purpose of VLAN is set; Be to make the broadcast data packet of interface centering can be successfully arrive another right interface of same interface from an interface of interface centering; Form broadcast storm to be formed in said two interfaces, for example, two interfaces of same interface centering are connected by anchor clamps.And in the method for testing based on VLAN, the location of wrong interface is more accurate rapidly.
Under other a kind of situation, all Ethernet interfaces, it is right need not to be divided into N interface; VLAN need be set yet, only need, form from ring at each interface; Perhaps, form two or more Ethernet interface receiving and transmitting signal butt joints, and send out broadcast data packet formation broadcast storm to said tested interface; Make said tested interface under the linear speed state, measure the various data of said tested interface.
Interface test method of the present invention and device can be applicable in the Board Functional Test, Board Function Test instrument and system test instrument of electronics manufacturer, to single board interface carry out fast, comprehensively functional test.

Claims (10)

1. interface test method comprises:
Form loopback at said interface;
Send out broadcast data packet to said interface and form broadcast storm, make said interface be in the linear speed state;
Measure the various data of said interface;
Wherein, Reference time according to the data packet transceive data of the data packet transceive data traffic of each Ethernet interface and each Ethernet interface of obtaining within a certain period of time calculates the speed of each Ethernet interface; And judge according to rate parameter and other data parameters whether the flow rate of each Ethernet interface and other data are normal, obtain the test result of interface.
2. the method for claim 1 is characterized in that, comprising:
Form from ring at said interface;
Send out broadcast data packet to said interface and form broadcast storm, make said interface be in the linear speed state;
Measure the various data of said interface.
3. the method for claim 1 is characterized in that, comprising:
Form two or more interface receiving and transmitting signal butt joints at said interface;
Send out broadcast data packet to said interface and form broadcast storm, make said interface be in the linear speed state;
Measure the various data of said interface.
4. the method for claim 1 is characterized in that, comprising:
It is right that interface is divided into N interface, and form loopback said interface centering, and said N is not less than 1;
Said interface centering VLAN is set, the interface virtual lan of same interface centering is arranged to equally be arranged to the interface virtual lan of distinct interface centering different;
Send out broadcast data packet to an interface of said interface centering and form broadcast storm, make said interface be in the linear speed state;
Measure the various data of said interface.
5. method as claimed in claim 4 is characterized in that, and is said at interface centering formation loopback, and comprising: the interface each interface centering forms the individual interface receiving and transmitting signal from ring.
6. method as claimed in claim 4 is characterized in that, and is said at interface centering formation loopback, comprising: the interface each interface centering forms two or more interface receiving and transmitting signals butt joints.
7. an Ethernet interface flow testing device comprises communication display platform, controlled processing unit, network processing unit,
Said communication display platform is used for sending test command and rate parameter to controlled processing unit, and from the result of said controlled processing unit receiving interface functional test;
The test result that said controlled processing unit is used to receive said test command and rate parameter and produces broadcast storm and obtain interface;
Said network processing unit is used to receive and transmit the packet that transmits from said controlled processing unit, and said controlled processing unit is added up and reported to data traffic and other data of the transceive data bag of each Ethernet interface;
It is characterized in that, also comprise:
The interface processing unit is used for forming loopback at said interface;
Wherein, said controlled processing unit comprises communication module, broadcast packet generation module, timer module, rate calculations and test result judge module;
Wherein, said communication module is used for: receive test command and rate parameter and other data parameters that said communication display platform sends over, and send to said communication display platform to test result;
Said broadcast packet generation module is used for: send broadcast packet to said network processing unit, produce the data source of packet broadcast storm as each Ethernet interface;
Said timer module is used for: the time reference that obtains the data packet transceive data of each Ethernet interface within a certain period of time;
Said rate calculations and test result judge module are used for: according to the data packet transceive data traffic of each Ethernet interface and the reference time of said timer module the speed of each Ethernet interface is calculated; And the rate parameter that sends according to said communication display platform and other data parameters judge whether the flow rate of each Ethernet interface and other data are normal, obtains the test result of interface.
8. device as claimed in claim 7 is characterized in that, it is right that said interface processing unit is used for that also interface is divided into N interface, and forms loopback said interface centering, and said N is not less than 1.
9. device as claimed in claim 8 is characterized in that, said interface processing unit is from encircling crystal head, optical module, optical fiber, crossover network cables, light mouth anchor clamps or electricity mouthful anchor clamps.
10. like the arbitrary described device of claim 7 to 9; It is characterized in that; Said network processing unit also comprises the interface configuration module; Said interface configuration module is used for said interface centering VLAN being set, and the Ethernet interface VLAN of same interface centering is arranged to equally, and the Ethernet interface VLAN of distinct interface centering is arranged to different.
CN 200910151036 2009-06-29 2009-06-29 Interface testing method and device Active CN101594222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910151036 CN101594222B (en) 2009-06-29 2009-06-29 Interface testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910151036 CN101594222B (en) 2009-06-29 2009-06-29 Interface testing method and device

Publications (2)

Publication Number Publication Date
CN101594222A CN101594222A (en) 2009-12-02
CN101594222B true CN101594222B (en) 2012-12-19

Family

ID=41408686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910151036 Active CN101594222B (en) 2009-06-29 2009-06-29 Interface testing method and device

Country Status (1)

Country Link
CN (1) CN101594222B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877658A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 Method and device for detecting network port performance of IPTV set-top box
CN103139012B (en) * 2012-12-03 2016-06-08 深圳市共进电子股份有限公司 A kind of Ethernet interface method of testing and the network equipment
CN103236956B (en) * 2013-04-18 2016-12-28 神州数码网络(北京)有限公司 A kind of method and switch that communication apparatus is carried out testing throughput
CN104202215B (en) * 2014-09-10 2018-09-28 上海斐讯数据通信技术有限公司 A kind of test method of Ethernet exchanging electromechanics port full load
CN106100941B (en) * 2016-08-29 2019-04-26 迈普通信技术股份有限公司 Method and device based on communication reliability between distributed system test board
CN106533846A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Network configuration method and test method for testing forwarding performance of switch
CN108039909B (en) * 2017-10-17 2019-09-20 厦门市迅光电子有限公司 Townhouse audio optical fibre transmitting chip detection device and method
CN110505110B (en) * 2018-05-18 2021-07-20 杭州海康威视数字技术股份有限公司 Network interface test method and device and multi-network-port host
CN109861879A (en) * 2019-01-17 2019-06-07 杭州迪普科技股份有限公司 A kind of interface performance test system
CN111835411B (en) * 2020-06-24 2021-07-20 苏州浪潮智能科技有限公司 Testing method applied to optical module of white box switch
CN116055371B (en) * 2021-10-27 2024-04-02 成都鼎桥通信技术有限公司 Communication module performance test system and method, upper computer, medium and program product
CN118233307A (en) * 2022-12-19 2024-06-21 中兴通讯股份有限公司 Method for transmitting message, network equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411173A (en) * 2001-09-27 2003-04-16 华为技术有限公司 Universal testing method for broad band product interface single board
CN1713597A (en) * 2004-06-14 2005-12-28 华为技术有限公司 User plane flow testing system and realization
CN101197649A (en) * 2008-01-03 2008-06-11 福建星网锐捷网络有限公司 Peripheral unit interconnection high speed bus interface and switchboard port testing method and system
CN101272289A (en) * 2008-05-09 2008-09-24 中兴通讯股份有限公司 Method for port line-speed transmitting test data frame and Ethernet switchboard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411173A (en) * 2001-09-27 2003-04-16 华为技术有限公司 Universal testing method for broad band product interface single board
CN1713597A (en) * 2004-06-14 2005-12-28 华为技术有限公司 User plane flow testing system and realization
CN101197649A (en) * 2008-01-03 2008-06-11 福建星网锐捷网络有限公司 Peripheral unit interconnection high speed bus interface and switchboard port testing method and system
CN101272289A (en) * 2008-05-09 2008-09-24 中兴通讯股份有限公司 Method for port line-speed transmitting test data frame and Ethernet switchboard

Also Published As

Publication number Publication date
CN101594222A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
CN101594222B (en) Interface testing method and device
US9584218B2 (en) Method and arrangement for monitoring optical transmission lines
JP2012527660A5 (en)
CN105323080B (en) A kind of link backup, power supply backup method, apparatus and system
CN108173718A (en) The system and method for BFD link detectings and assessment based on SD-WAN scenes
CN108777649A (en) A kind of network intercepting device, system and method
CN104104488A (en) Wireless sensor network protocol conformance testing system and method
CN105227393A (en) A kind of bidirectional forwarding detection (BFD) method
CN102752161A (en) Test system
CN105703892A (en) Method of realizing PTP nanosecond precision based on hardware time stamp
CN110650066A (en) Embedded bus communication detection system and reliability detection method thereof
US20090003226A1 (en) Network intermediary device with connection test packets
Pocovi et al. Measurement framework for assessing reliable real-time capabilities of wireless networks
CN111683021A (en) Multi-protocol terminal with double-path redundant output for switch
CN108134645A (en) Radar signal synchronization system
CN100370765C (en) Method and device of detecting mono-board electrical interface by using optical modular
CN201667661U (en) Auxiliary measurement equipment and testing system of PPPOE client router
WO2012079324A1 (en) Media gateway and method for detecting high way resources thereof
WO2024119664A1 (en) Fpga-based communication network quality test method and apparatus
CN107819656A (en) A kind of FPGA remote onlines deployment device and method based on RS422 and CAN
CN101668228A (en) Device and method for testing interface
WO2014161361A1 (en) Fault locating method, system and device for remote device and computer storage medium
CN107835109B (en) Method and system for testing packet transport network defined by software
CN102984032A (en) Transmission delay testing method, device and system
CN108449221B (en) Method, device and system for testing centralized forwarding performance of wireless controller

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