[go: up one dir, main page]

CN115766526A - Test method, device and electronic equipment for switch physical layer chip - Google Patents

Test method, device and electronic equipment for switch physical layer chip Download PDF

Info

Publication number
CN115766526A
CN115766526A CN202211448725.8A CN202211448725A CN115766526A CN 115766526 A CN115766526 A CN 115766526A CN 202211448725 A CN202211448725 A CN 202211448725A CN 115766526 A CN115766526 A CN 115766526A
Authority
CN
China
Prior art keywords
port
phy
test
phy port
chip
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
CN202211448725.8A
Other languages
Chinese (zh)
Other versions
CN115766526B (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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211448725.8A priority Critical patent/CN115766526B/en
Publication of CN115766526A publication Critical patent/CN115766526A/en
Application granted granted Critical
Publication of CN115766526B publication Critical patent/CN115766526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for testing a physical layer chip of a switch and electronic equipment, wherein the method comprises the following steps: configuring each PHY port of a physical layer PHY chip to be in a loopback state through a management data clock MDC interface and a management data input/output MDIO interface; and obtaining a port test result of each PHY port by carrying out linear speed flow test on each PHY port, wherein the port test result is used for indicating whether the PHY port passes the test or not. According to the invention, each PHY port of the PHY chip can be configured to be in a loopback state through the MDC interface and the MDIO interface, so that linear speed flow test can be carried out on each PHY port, test case data sent to each PHY port of the PHY chip in the test process can be analyzed through loopback of the PHY chip, the port test result of each PHY port can be obtained, an external jig is not required in the test process, and the test efficiency can be improved.

Description

交换机物理层芯片的测试方法、装置及电子设备Test method, device and electronic equipment for switch physical layer chip

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种交换机物理层芯片的测试方法、装置及电子设备。The invention relates to the technical field of computers, in particular to a test method, device and electronic equipment for a switch physical layer chip.

背景技术Background technique

交换机物理层(Physical Layer,PHY),将介质访问控制层(Media AccessControl,MAC)的数据进行处理,并行数据转化为串行数据,按照物理层的规则编码,再变为模拟信号把数据送出去,且能够实现部分带有冲突检测的载波侦听多路存取(CarrierSense Multiple Access/Collision Detection,CSMA/CD)功能,是交换机的一个重要组成部分。随着网络技术的发展,PHY芯片在交换机上的使用规模越来越大。The physical layer (Physical Layer, PHY) of the switch processes the data of the media access control layer (Media Access Control, MAC), converts the parallel data into serial data, encodes according to the rules of the physical layer, and then turns it into an analog signal to send the data out , and can realize part of the Carrier Sense Multiple Access/Collision Detection (CSMA/CD) function with collision detection, which is an important part of the switch. With the development of network technology, the use of PHY chips on switches is increasing.

相关技术中的PHY端口测试技术,多采用外部治具(例如光模块、eload等治具),将每个lane的发送(tx)口和接收(rx)口通过隔直电容连接,然后进行流量测试,测试效率较低。The PHY port test technology in the related art mostly uses external fixtures (such as optical modules, eload and other fixtures), and connects the sending (tx) port and receiving (rx) port of each lane through a DC blocking capacitor, and then conducts traffic Test, the test efficiency is low.

发明内容Contents of the invention

针对现有技术存在的问题,本发明实施例提供一种交换机物理层芯片的测试方法、装置及电子设备。Aiming at the problems existing in the prior art, embodiments of the present invention provide a test method, device and electronic equipment for a physical layer chip of a switch.

第一方面,本发明提供一种交换机物理层芯片的测试方法,包括:通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;In a first aspect, the present invention provides a method for testing a physical layer chip of a switch, comprising: configuring each PHY port of the physical layer PHY chip to be in a loopback state through a management data clock MDC interface and a management data input and output MDIO interface;

通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。By performing a wire-speed flow test on each PHY port, a port test result of each PHY port is obtained, and the port test result is used to indicate whether the PHY port passes the test.

可选地,根据本发明提供的一种交换机物理层芯片的测试方法,所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,包括:Optionally, according to a method for testing a switch physical layer chip provided by the present invention, the port test results of each PHY port are obtained by performing a wire-speed flow test on each PHY port, including:

获取各PHY端口的连接状态;Obtain the connection status of each PHY port;

若确定各PHY端口的连接状态均为连接建立状态,则通过介质访问控制层MAC的发送TX端口,发送测试用例数据至各PHY端口;If it is determined that the connection state of each PHY port is a connection establishment state, then send the test case data to each PHY port through the sending TX port of the MAC of the medium access control layer;

通过MAC的接收RX端口,接收各PHY端口的环回数据;Receive the loopback data of each PHY port through the receiving RX port of the MAC;

基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果。Based on the test case data, the loopback data of each PHY port and the connection state monitoring data of each PHY port, the port test results of each PHY port are obtained.

可选地,根据本发明提供的一种交换机物理层芯片的测试方法,所述基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果,包括:Optionally, according to a method for testing a physical layer chip of a switch provided by the present invention, the data of each PHY port is obtained based on the test case data, the loopback data of each PHY port, and the connection status monitoring data of each PHY port. Port test results, including:

基于所述测试用例数据和各PHY端口的环回数据,确定各PHY端口的收发包数量差异信息以及各PHY端口的错误包信息;Based on the test case data and the loopback data of each PHY port, determine the difference information of the number of sending and receiving packets of each PHY port and the error packet information of each PHY port;

基于各PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,判断各PHY端口是否通过测试,获取各PHY端口的端口测试结果。Based on the connection state monitoring data of each PHY port, the difference information of the number of sent and received packets, and the error packet information, it is judged whether each PHY port has passed the test, and the port test result of each PHY port is obtained.

可选地,根据本发明提供的一种交换机物理层芯片的测试方法,在所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果之后,还包括:Optionally, according to the test method of a switch physical layer chip provided by the present invention, after the port test results of each PHY port are obtained by performing a wire-speed flow test on each PHY port, it also includes:

在目标PHY端口的端口测试结果指示所述目标PHY端口未通过测试的情况下,基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,确定目标故障关键词;When the port test result of the target PHY port indicates that the target PHY port has failed the test, based on the connection status monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, and the error packet information, determine the target failure keyword;

基于所述目标故障关键词和故障表,获取目标故障诊断指令,所述故障表用于表征故障关键词和故障诊断指令之间的映射关系,所述故障诊断指令用于辅助诊断PHY端口;Obtain a target fault diagnosis instruction based on the target fault keyword and a fault table, the fault table is used to characterize the mapping relationship between the fault keyword and the fault diagnosis instruction, and the fault diagnosis instruction is used to assist in the diagnosis of a PHY port;

通过执行所述目标故障诊断指令,获取所述目标PHY端口的故障诊断信息;Obtaining fault diagnosis information of the target PHY port by executing the target fault diagnosis instruction;

所述目标PHY端口为所述PHY芯片的任意一个PHY端口。The target PHY port is any PHY port of the PHY chip.

可选地,根据本发明提供的一种交换机物理层芯片的测试方法,在所述获取所述目标PHY端口的故障诊断信息之后,还包括:Optionally, according to a method for testing a physical layer chip of a switch provided in the present invention, after the acquisition of the fault diagnosis information of the target PHY port, it further includes:

基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息、错误包信息和故障诊断信息,确定所述目标PHY端口的故障上报信息;Determine the fault reporting information of the target PHY port based on the connection state monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, error packet information, and fault diagnosis information;

发送所述目标PHY端口的故障上报信息至服务器。Sending the fault report information of the target PHY port to the server.

可选地,根据本发明提供的一种交换机物理层芯片的测试方法,还包括:Optionally, according to a method for testing a switch physical layer chip provided by the present invention, it also includes:

通过MDC接口和MDIO接口,轮询所述PHY芯片的多个寄存器,获取所述多个寄存器的存储值,所述多个寄存器包括中断寄存器、控制寄存器和状态寄存器;Through the MDC interface and the MDIO interface, poll multiple registers of the PHY chip to obtain storage values of the multiple registers, the multiple registers include interrupt registers, control registers and status registers;

基于各寄存器的参考值和各寄存器的存储值,确定所述PHY芯片的运行状态信息,所述运行状态信息用于表征所述PHY芯片是否出现故障。Based on the reference value of each register and the storage value of each register, determine the operation status information of the PHY chip, where the operation status information is used to indicate whether the PHY chip has a fault.

可选地,根据本发明提供的一种交换机物理层芯片的测试方法,在所述确定所述PHY芯片的运行状态信息之后,还包括:Optionally, according to a method for testing a physical layer chip of a switch provided in the present invention, after the determination of the operating state information of the PHY chip, it further includes:

在所述运行状态信息表征所述PHY芯片出现故障的情况下,配置各寄存器的存储值为各寄存器的参考值。In the case where the running state information indicates that the PHY chip is faulty, the storage values of each register are configured as reference values of each register.

第二方面,本发明还提供一种交换机物理层芯片的测试装置,包括:In a second aspect, the present invention also provides a test device for a physical layer chip of a switch, comprising:

第一配置模块,用于通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;The first configuration module is used to configure each PHY port of the physical layer PHY chip to be in a loopback state through the management data clock MDC interface and the management data input and output MDIO interface;

测试模块,用于通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。The test module is used to obtain the port test result of each PHY port by performing a wire-speed flow test on each PHY port, and the port test result is used to indicate whether the PHY port passes the test.

第三方面,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述交换机物理层芯片的测试方法。In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, any of the above-mentioned The test method of the physical layer chip of the switch is described.

第四方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述交换机物理层芯片的测试方法。In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for testing a physical layer chip of a switch as described above is implemented.

本发明提供的交换机物理层芯片的测试方法、装置及电子设备,通过MDC接口和MDIO接口,可以配置PHY芯片的各PHY端口为环回状态,进而可以对各PHY端口进行线速流量测试,测试过程中向PHY芯片的各PHY端口发送的测试用例数据,可以通过PHY芯片环回,进而可以分析各PHY端口的环回数据,能够获取各PHY端口的端口测试结果,端口测试结果可以指示PHY端口是否通过测试,测试过程无需采用外部治具,能够提高测试效率。The test method, device and electronic equipment of the physical layer chip of the switch provided by the present invention can configure each PHY port of the PHY chip to be in a loopback state through the MDC interface and the MDIO interface, and then can perform a line-speed flow test on each PHY port, and test The test case data sent to each PHY port of the PHY chip during the process can be looped back through the PHY chip, and then the loopback data of each PHY port can be analyzed, and the port test results of each PHY port can be obtained. The port test results can indicate the PHY port Whether the test is passed or not, the test process does not need to use external fixtures, which can improve the test efficiency.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1是本发明提供的交换机物理层芯片的测试方法的流程示意图;Fig. 1 is the schematic flow sheet of the test method of switch physical layer chip provided by the present invention;

图2是本发明提供的线速流量测试的硬件连接结构示意图;Fig. 2 is a schematic diagram of the hardware connection structure of the wire-speed flow test provided by the present invention;

图3是本发明提供的交换机物理层芯片的测试装置的结构示意图;Fig. 3 is the structural representation of the testing device of switch physical layer chip provided by the present invention;

图4是本发明提供的电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

图1是本发明提供的交换机物理层芯片的测试方法的流程示意图,如图1所示,交换机物理层芯片的测试方法的执行主体可以是电子设备。该方法包括:FIG. 1 is a schematic flow chart of a test method for a physical layer chip of a switch provided by the present invention. As shown in FIG. 1 , the subject of the test method for a physical layer chip of a switch may be an electronic device. The method includes:

步骤101,通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;Step 101, configure each PHY port of the physical layer PHY chip to be in a loopback state through the management data clock MDC interface and the management data input and output MDIO interface;

具体地,为了提高测试效率,可以通过管理数据时钟(Management Data Clock,MDC)接口和管理数据输入输出(Management Data Input Output,MDIO)接口,配置PHY芯片的各PHY端口为环回状态,进而向PHY芯片的各PHY端口发送的测试用例数据,可以通过PHY芯片环回。Specifically, in order to improve test efficiency, each PHY port of the PHY chip can be configured to be in a loopback state through a management data clock (Management Data Clock, MDC) interface and a management data input and output (Management Data Input Output, MDIO) interface. The test case data sent by each PHY port of the PHY chip can be looped back through the PHY chip.

可以理解的是,通过MDC接口和MDIO接口,可以将PHY芯片的每个端口配置为Lineinternal环回,使流量能够从MAC端口tx发出后,经过PHY芯片再环回,回到MAC端口rx,从而实现不依赖外部治具进行测试。It is understandable that through the MDC interface and the MDIO interface, each port of the PHY chip can be configured as a Lineinternal loopback, so that the traffic can be sent from the MAC port tx, then loop back through the PHY chip, and return to the MAC port rx, thereby The implementation does not rely on external fixtures for testing.

步骤102,通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。In step 102, the port test result of each PHY port is obtained by performing a wire-speed flow test on each PHY port, and the port test result is used to indicate whether the PHY port passes the test.

具体地,在配置PHY芯片的各PHY端口为环回状态之后,可以对各PHY端口进行线速流量测试,测试过程中可以向PHY芯片的各PHY端口发送的测试用例数据,测试用例数据用于对各PHY端口进行测试,通过PHY芯片环回,可以分析各PHY端口的环回数据,获取各PHY端口的端口测试结果,端口测试结果可以指示PHY端口是否通过测试。Specifically, after configuring each PHY port of the PHY chip to be in the loopback state, each PHY port can be tested for wire-speed traffic, and the test case data can be sent to each PHY port of the PHY chip during the test, and the test case data is used for Each PHY port is tested, and the loopback data of each PHY port can be analyzed through the loopback of the PHY chip, and the port test result of each PHY port can be obtained. The port test result can indicate whether the PHY port has passed the test.

例如,PHY芯片可以包括3个PHY端口,分别是端口A、端口B和端口C,可以通过MDC接口和MDIO接口,可以配置端口A、端口B和端口C为环回状态,测试过程中可以向端口A、端口B和端口C发送测试用例数据,通过PHY芯片环回,可以分析端口A、端口B和端口C的环回数据,可以获取各PHY端口的端口测试结果。For example, the PHY chip can include 3 PHY ports, which are port A, port B and port C respectively. Through the MDC interface and MDIO interface, port A, port B and port C can be configured to be in the loopback state. Port A, port B, and port C send test case data, and through the loopback of the PHY chip, the loopback data of port A, port B, and port C can be analyzed, and the port test results of each PHY port can be obtained.

本发明提供的交换机物理层芯片的测试方法,通过MDC接口和MDIO接口,可以配置PHY芯片的各PHY端口为环回状态,进而可以对各PHY端口进行线速流量测试,测试过程中向PHY芯片的各PHY端口发送的测试用例数据,可以通过PHY芯片环回,进而可以分析各PHY端口的环回数据,能够获取各PHY端口的端口测试结果,端口测试结果可以指示PHY端口是否通过测试,测试过程无需采用外部治具,能够提高测试效率。The test method of switch physical layer chip provided by the present invention, through MDC interface and MDIO interface, each PHY port of PHY chip can be configured as the loopback state, and then each PHY port can be carried out wire-speed flow test, in the test process, send to PHY chip The test case data sent by each PHY port of the PHY chip can be looped back through the PHY chip, and then the loopback data of each PHY port can be analyzed, and the port test results of each PHY port can be obtained. The port test results can indicate whether the PHY port has passed the test. The process does not need to use external fixtures, which can improve the test efficiency.

可选地,本发明提供一种交换机物理层芯片的测试方法,所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,包括:Optionally, the present invention provides a method for testing a switch physical layer chip, wherein the port test results of each PHY port are obtained by performing a wire-speed flow test on each PHY port, including:

获取各PHY端口的连接状态;Obtain the connection status of each PHY port;

若确定各PHY端口的连接状态均为连接建立状态,则通过介质访问控制层MAC的发送TX端口,发送测试用例数据至各PHY端口;If it is determined that the connection state of each PHY port is a connection establishment state, then send the test case data to each PHY port through the sending TX port of the MAC of the medium access control layer;

通过MAC的接收RX端口,接收各PHY端口的环回数据;Receive the loopback data of each PHY port through the receiving RX port of the MAC;

基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果。Based on the test case data, the loopback data of each PHY port and the connection state monitoring data of each PHY port, the port test results of each PHY port are obtained.

具体地,在配置PHY芯片的各PHY端口为环回状态之后,可以获取各PHY端口的连接(Link)状态,判断各PHY端口的连接状态是否均处于连接建立状态(Link up),若确定各PHY端口的连接状态均为连接建立状态,则可以通过MAC的发送TX端口,发送测试用例数据至各PHY端口,测试用例数据用于对各PHY端口进行测试,进而通过MAC的接收RX端口,可以接收各PHY端口的环回数据,进而可以基于测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,可以对PHY端口的测试情况进行分析,获取各PHY端口的端口测试结果。Specifically, after each PHY port of the PHY chip is configured to be in the loopback state, the connection (Link) state of each PHY port can be obtained, and it is judged whether the connection state of each PHY port is in the connection establishment state (Link up). The connection status of the PHY port is the connection establishment state, then the test case data can be sent to each PHY port through the sending TX port of the MAC, and the test case data is used to test each PHY port, and then through the receiving RX port of the MAC, you can Receive the loopback data of each PHY port, and then based on the test case data, the loopback data of each PHY port and the connection status monitoring data of each PHY port, the test situation of the PHY port can be analyzed, and the port test of each PHY port can be obtained result.

例如,PHY芯片可以包括两个PHY端口,分别是端口A和端口B,可以通过MDC接口和MDIO接口,可以配置端口A和端口B为环回状态,进而可以判断端口A和端口B是否均处于Link up,若确定端口A和端口B均处于Link up,则通过MAC的发送TX端口,发送测试用例数据至端口A和端口B,进而通过MAC的接收RX端口,可以接收端口A和端口B的环回数据,进而可以基于测试用例数据,端口A和端口B的环回数据,以及端口A和端口B的连接状态监测数据,可以对端口A和端口B的测试情况进行分析,获取各PHY端口的端口测试结果。For example, the PHY chip may include two PHY ports, namely port A and port B. Through the MDC interface and the MDIO interface, port A and port B may be configured to be in a loopback state, and then it may be determined whether port A and port B are both in the loopback state. Link up, if it is determined that both port A and port B are in Link up, then send the test case data to port A and port B through the sending TX port of the MAC, and then receive the data of port A and port B through the receiving RX port of the MAC Loopback data, and then based on the test case data, the loopback data of port A and port B, and the connection status monitoring data of port A and port B, the test situation of port A and port B can be analyzed, and each PHY port can be obtained port test results.

可选地,图2是本发明提供的线速流量测试的硬件连接结构示意图,如图2所示,PHY芯片可以通过中央处理器(Central Processing Unit,CPU)的KR总线与CPU连接,PHY芯片可以包括物理介质连接(Physical Medium Attachment,PMA)子层,物理介质相关(Physical Medium Dependent,PMD)子层,物理编码子层(Physical Coding Sublayer,PCS),串行器(Serializer)以及解串器(De-Serializer)。如图2所示,可以配置PHY芯片的各PHY端口为环回状态,进而可以结合Lanconf工具,在每个PHY端口进行线速收发包测试,并实时统计每个端口的收发包数和错包数等。Optionally, Fig. 2 is a schematic diagram of the hardware connection structure of the wire-speed flow test provided by the present invention, as shown in Fig. 2, the PHY chip can be connected to the CPU through the KR bus of the central processing unit (Central Processing Unit, CPU), and the PHY chip Can include physical medium attachment (Physical Medium Attachment, PMA) sublayer, physical medium dependent (Physical Medium Dependent, PMD) sublayer, physical coding sublayer (Physical Coding Sublayer, PCS), serializer (Serializer) and deserializer (De-Serializer). As shown in Figure 2, each PHY port of the PHY chip can be configured to be in the loopback state, and then the Lanconf tool can be combined with the Lanconf tool to perform line-speed sending and receiving packet testing on each PHY port, and count the number of sending and receiving packets and error packets of each port in real time Count and so on.

因此,在配置PHY芯片的各PHY端口为环回状态之后,通过MAC的TX端口,发送测试用例数据至各PHY端口,以及通过MAC的RX端口,接收各PHY端口的环回数据,能够实现对各PHY端口的自动化测试,且测试过程无需采用外部治具,能够提高测试效率。Therefore, after each PHY port of the PHY chip is configured to be in the loopback state, the test case data is sent to each PHY port through the TX port of the MAC, and the loopback data of each PHY port is received through the RX port of the MAC, which can realize the The automatic test of each PHY port, and the test process does not need to use external fixtures, which can improve the test efficiency.

可选地,本发明提供一种交换机物理层芯片的测试方法,所述基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果,包括:Optionally, the present invention provides a method for testing a physical layer chip of a switch, wherein the port test of each PHY port is obtained based on the test case data, the loopback data of each PHY port, and the connection status monitoring data of each PHY port. Results, including:

基于所述测试用例数据和各PHY端口的环回数据,确定各PHY端口的收发包数量差异信息以及各PHY端口的错误包信息;Based on the test case data and the loopback data of each PHY port, determine the difference information of the number of sending and receiving packets of each PHY port and the error packet information of each PHY port;

基于各PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,判断各PHY端口是否通过测试,获取各PHY端口的端口测试结果。Based on the connection state monitoring data of each PHY port, the difference information of the number of sent and received packets, and the error packet information, it is judged whether each PHY port has passed the test, and the port test result of each PHY port is obtained.

具体地,通过比较测试用例数据的包数量和环回数据的包数量,可以确定收发包数量差异信息,通过对环回数据进行校验(例如循环冗余校验(Cyclic Redundancy Check,CRC))可以获取错误包信息,进而基于各PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,可以判断各PHY端口是否通过测试,进而可以获取各PHY端口的端口测试结果。Specifically, by comparing the number of packets of the test case data and the number of packets of the loopback data, the difference information of the number of packets sent and received can be determined, and the loopback data can be checked (for example, Cyclic Redundancy Check (CRC)) The error packet information can be obtained, and then based on the connection status monitoring data of each PHY port, the difference information of the number of sent and received packets, and the error packet information, it can be judged whether each PHY port has passed the test, and then the port test result of each PHY port can be obtained.

可选地,针对某一PHY端口,若连接状态监测数据表示在测试过程中该PHY端口的连接状态变为连接断开状态(Link down),则可以确定该PHY端口未通过测试。Optionally, for a certain PHY port, if the connection state monitoring data indicates that the connection state of the PHY port changes to a disconnected state (Link down) during the test, it can be determined that the PHY port fails the test.

可选地,针对某一PHY端口,若收发包数量差异信息表示测试用例数据的包数量和环回数据的包数量不相同,则可以确定该PHY端口未通过测试。Optionally, for a certain PHY port, if the information about the difference in the number of sent and received packets indicates that the number of packets of the test case data is different from the number of packets of the loopback data, it can be determined that the PHY port has failed the test.

可选地,针对某一PHY端口,若错误包信息表示环回数据中的一个或多个数据包未通过校验,则可以确定该PHY端口未通过测试。Optionally, for a certain PHY port, if the error packet information indicates that one or more data packets in the loopback data fail the check, it may be determined that the PHY port fails the test.

可选地,针对某一PHY端口,若同时满足以下三个条件,则可以确定PHY端口未通过测试:Optionally, for a certain PHY port, if the following three conditions are met at the same time, it can be determined that the PHY port has failed the test:

第一条件,连接状态监测数据表示在测试过程中该PHY端口的连接状态均为连接建立状态;The first condition, the connection state monitoring data indicates that the connection state of the PHY port during the test is the connection establishment state;

第二条件,收发包数量差异信息表示测试用例数据的包数量和环回数据的包数量相同;The second condition, the information about the difference in the number of sent and received packets indicates that the number of packets of the test case data is the same as the number of packets of the loopback data;

第三条件,错误包信息表示对环回数据进行校验的过程中,环回数据中所有数据包均通过检验。The third condition is that the error packet information indicates that during the process of verifying the loopback data, all data packets in the loopback data pass the verification.

因此,通过基于各PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,判断各PHY端口是否通过测试,能够实现对各PHY端口的自动化测试,且测试过程无需采用外部治具,能够提高测试效率。Therefore, by judging whether each PHY port has passed the test based on the connection status monitoring data of each PHY port, the difference information of the number of sent and received packets, and the error packet information, the automatic test of each PHY port can be realized, and the test process does not need to use external fixtures. Can improve test efficiency.

可选地,本发明提供一种交换机物理层芯片的测试方法,在所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果之后,还包括:Optionally, the present invention provides a test method for a physical layer chip of a switch, after the port test results of each PHY port are obtained by performing a wire-speed flow test on each PHY port, it also includes:

在目标PHY端口的端口测试结果指示所述目标PHY端口未通过测试的情况下,基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,确定目标故障关键词;When the port test result of the target PHY port indicates that the target PHY port has failed the test, based on the connection status monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, and the error packet information, determine the target failure keyword;

基于所述目标故障关键词和故障表,获取目标故障诊断指令,所述故障表用于表征故障关键词和故障诊断指令之间的映射关系,所述故障诊断指令用于辅助诊断PHY端口;Obtain a target fault diagnosis instruction based on the target fault keyword and a fault table, the fault table is used to characterize the mapping relationship between the fault keyword and the fault diagnosis instruction, and the fault diagnosis instruction is used to assist in the diagnosis of a PHY port;

通过执行所述目标故障诊断指令,获取所述目标PHY端口的故障诊断信息;Obtaining fault diagnosis information of the target PHY port by executing the target fault diagnosis instruction;

所述目标PHY端口为所述PHY芯片的任意一个PHY端口。The target PHY port is any PHY port of the PHY chip.

具体地,为了获取PHY端口的故障原因,可以分析各PHY端口的端口测试结果,若PHY芯片的目标PHY端口的端口测试结果指示目标PHY端口未通过测试,则可以基于连接状态监测数据、收发包数量差异信息以及错误包信息,提取故障关键词,以获取用于表征目标PHY端口故障情况的目标故障关键词,进而可以基于目标故障关键词,在故障表中查询,以获取与目标故障关键词相匹配的目标故障诊断指令,进而可以执行目标故障诊断指令,对目标PHY端口进行诊断,可以获取目标PHY端口的故障诊断信息。Specifically, in order to obtain the cause of the failure of the PHY port, the port test results of each PHY port can be analyzed. If the port test result of the target PHY port of the PHY chip indicates that the target PHY port has failed the test, then the data can be monitored based on the connection status, sending and receiving packets. Quantity difference information and error packet information, extracting fault keywords to obtain target fault keywords used to characterize target PHY port fault conditions, and then query in the fault table based on target fault keywords to obtain target fault keywords The matching target fault diagnosis command can further execute the target fault diagnosis command to diagnose the target PHY port and obtain the fault diagnosis information of the target PHY port.

可以理解的是,故障表可以表征故障关键词和故障诊断指令之间的映射关系,基于目标故障关键词,通过在故障表中查询,可以获取与目标故障关键词相匹配的目标故障诊断指令。可以通过分析历史测试数据,针对PHY端口的各类故障场景提取关键词,可以获取故障关键词,故障关键词可以表征PHY端口的一类故障场景。针对PHY端口的各类故障场景,可以预先配置各故障诊断指令,一项故障诊断指令可以针对一类故障场景进行故障诊断,以辅助诊断PHY端口。It can be understood that the fault table can represent the mapping relationship between fault keywords and fault diagnosis instructions, based on the target fault keywords, by querying in the fault table, the target fault diagnosis instructions matching the target fault keywords can be obtained. By analyzing historical test data, keywords can be extracted for various fault scenarios of PHY ports, and fault keywords can be obtained, which can represent a type of fault scenarios of PHY ports. For various fault scenarios of the PHY port, each fault diagnosis instruction can be pre-configured, and a fault diagnosis instruction can perform fault diagnosis for a type of fault scenario to assist in the diagnosis of the PHY port.

例如,连接状态监测数据表示在测试过程中,目标PHY端口的连接状态由Link up转变为Link down,则目标故障关键词可以包括“连接状态异常”,进而可以基于该关键词,在故障表中查询,可以获取与该关键词(“连接状态异常”)相匹配的目标故障诊断指令。For example, the connection status monitoring data indicates that during the test, the connection status of the target PHY port changes from Link up to Link down, then the target fault keyword can include "abnormal connection status", and then based on this keyword, in the fault table Query, the target fault diagnosis instruction matching the keyword ("abnormal connection state") can be obtained.

例如,针对目标PHY端口,若收发包数量差异信息表示测试用例数据的包数量和环回数据的包数量不相同,则目标故障关键词可以包括“收发包数量不一致”,进而可以基于该关键词,在故障表中查询,可以获取与该关键词(“收发包数量不一致”)相匹配的目标故障诊断指令。For example, for the target PHY port, if the information on the difference in the number of sent and received packets indicates that the number of packets of the test case data is different from the number of packets of the loopback data, then the target fault keyword may include "the number of sent and received packets is inconsistent", and then based on the keyword , query in the fault table, and the target fault diagnosis instruction matching the keyword ("inconsistent number of sent and received packets") can be obtained.

例如,针对目标PHY端口,若错误包信息表示环回数据中的一个或多个数据包未通过校验,则目标故障关键词可以包括“出现CRC错误”,进而可以基于该关键词,在故障表中查询,可以获取与该关键词(“出现CRC错误”)相匹配的目标故障诊断指令。For example, for the target PHY port, if the error packet information indicates that one or more data packets in the loopback data have not passed the check, the target fault keyword may include "CRC error occurs", and then based on this keyword, the Query in the table to obtain the target fault diagnosis instruction matching the keyword ("CRC error occurred").

例如,在目标故障关键词可以包括“出现CRC错误”,与该关键词相匹配的目标故障诊断指令可以是针对CRC错误场景进行故障诊断,目标故障诊断指令可以针对目标PHY端口获取眼图、浴盆曲线、CTLE参数以及判决反馈均衡器(Decision Feedback Equalier,DFE)参数,进而可以基于预设范围值,判断眼图、浴盆曲线、连续时间线性均衡(Continuous-time linear equalizer,CTLE)参数以及DFE参数是否在预设范围内,可以获取目标PHY端口的故障诊断信息。For example, the target fault keyword may include "CRC error occurs", and the target fault diagnosis instruction matching this keyword may be for fault diagnosis in CRC error scenarios, and the target fault diagnosis instruction may obtain eye diagrams, bathtubs for the target PHY port Curve, CTLE parameters and Decision Feedback Equalizer (Decision Feedback Equalier, DFE) parameters, and then based on the preset range value, can judge the eye diagram, bathtub curve, continuous-time linear equalizer (Continuous-time linear equalizer, CTLE) parameters and DFE parameters Whether it is within the preset range, the fault diagnosis information of the target PHY port can be obtained.

因此,在PHY端口未通过测试的情况下,可以通过查询故障表,获取目标故障诊断指令,运行该目标故障诊断指令可以获取故障诊断信息,能够实现自动诊断PHY端口的故障,且测试过程无需采用外部治具,能够提高测试效率。Therefore, in the case that the PHY port fails the test, the target fault diagnosis instruction can be obtained by querying the fault table, and the fault diagnosis information can be obtained by running the target fault diagnosis instruction, which can automatically diagnose the fault of the PHY port, and the test process does not need to use External fixtures can improve test efficiency.

可选地,本发明提供一种交换机物理层芯片的测试方法,在所述获取所述目标PHY端口的故障诊断信息之后,还包括:Optionally, the present invention provides a method for testing a physical layer chip of a switch, after the acquisition of the fault diagnosis information of the target PHY port, further comprising:

基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息、错误包信息和故障诊断信息,确定所述目标PHY端口的故障上报信息;Determine the fault reporting information of the target PHY port based on the connection state monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, error packet information, and fault diagnosis information;

发送所述目标PHY端口的故障上报信息至服务器。Sending the fault report information of the target PHY port to the server.

具体地,在获取目标PHY端口的故障诊断信息之后,可以收集目标PHY端口的信息,将连接状态监测数据、收发包数量差异信息、错误包信息和故障诊断信息打包进故障上报信息中,进而可以发送目标PHY端口的故障上报信息至服务器。Specifically, after obtaining the fault diagnosis information of the target PHY port, the information of the target PHY port can be collected, and the connection state monitoring data, the difference information of the number of sent and received packets, the error packet information and the fault diagnosis information can be packaged into the fault report information, and then can Send the fault reporting information of the target PHY port to the server.

因此,通过发送PHY端口的故障上报信息至服务器,使得服务器能够对各PHY芯片的故障信息进行收集和综合分析。Therefore, by sending the fault report information of the PHY port to the server, the server can collect and comprehensively analyze the fault information of each PHY chip.

可选地,本发明提供一种交换机物理层芯片的测试方法,还包括:Optionally, the present invention provides a method for testing a physical layer chip of a switch, further comprising:

通过MDC接口和MDIO接口,轮询所述PHY芯片的多个寄存器,获取所述多个寄存器的存储值,所述多个寄存器包括中断寄存器、控制寄存器和状态寄存器;Through the MDC interface and the MDIO interface, poll multiple registers of the PHY chip to obtain storage values of the multiple registers, the multiple registers include interrupt registers, control registers and status registers;

基于各寄存器的参考值和各寄存器的存储值,确定所述PHY芯片的运行状态信息,所述运行状态信息用于表征所述PHY芯片是否出现故障。Based on the reference value of each register and the storage value of each register, determine the operation status information of the PHY chip, where the operation status information is used to indicate whether the PHY chip has a fault.

具体地,为了实时监测PHY芯片的运行状态,可以通过MDC接口和MDIO接口,轮询PHY芯片的多个寄存器,获取多个寄存器的存储值,进而可以将各寄存器的参考值和各寄存器的存储值进行比较,以确定PHY芯片的运行状态信息。Specifically, in order to monitor the running status of the PHY chip in real time, multiple registers of the PHY chip can be polled through the MDC interface and the MDIO interface to obtain the storage values of multiple registers, and then the reference value of each register and the storage value of each register can be Values are compared to determine the operational status information of the PHY chip.

可以理解的是,相关技术中,对于PHY芯片运行时状态的检测,一般是在链路空闲阶段通过发送码流来检测,实时性较低。本发明通过MDC接口和MDIO接口,轮询PHY芯片的多个寄存器,能够实现实时监测PHY芯片的运行状态。It can be understood that, in related technologies, the detection of the running state of the PHY chip is generally performed by sending code streams during the link idle phase, and the real-time performance is low. The invention polls a plurality of registers of the PHY chip through the MDC interface and the MDIO interface, and can monitor the running state of the PHY chip in real time.

例如,可以比较中断寄存器(例如serdes中断寄存器)的存储值和中断寄存器的参考值,若确定中断寄存器的存储值和中断寄存器的参考值不相同,则可以确定PHY芯片出现故障。For example, the stored value of the interrupt register (such as serdes interrupt register) can be compared with the reference value of the interrupt register, and if it is determined that the stored value of the interrupt register is different from the reference value of the interrupt register, it can be determined that the PHY chip is faulty.

例如,可以比较控制寄存器的存储值和控制寄存器的参考值,若确定控制寄存器的存储值和控制寄存器的参考值不相同,则可以确定PHY芯片出现故障。For example, the stored value of the control register may be compared with the reference value of the control register, and if it is determined that the stored value of the control register is different from the reference value of the control register, it may be determined that the PHY chip is faulty.

例如,可以比较状态寄存器的存储值和状态寄存器的参考值,若确定状态寄存器的存储值和状态寄存器的参考值不相同,则可以确定PHY芯片出现故障。For example, the stored value of the status register can be compared with the reference value of the status register, and if it is determined that the stored value of the status register is different from the reference value of the status register, it can be determined that the PHY chip is faulty.

因此,通过MDC接口和MDIO接口,轮询PHY芯片的多个寄存器,能够实现实时监测PHY芯片的运行状态,且测试过程无需采用外部治具,能够提高测试效率。Therefore, by polling multiple registers of the PHY chip through the MDC interface and the MDIO interface, real-time monitoring of the operating status of the PHY chip can be realized, and the test process does not need to use external fixtures, which can improve test efficiency.

可选地,本发明提供一种交换机物理层芯片的测试方法,在所述确定所述PHY芯片的运行状态信息之后,还包括:Optionally, the present invention provides a method for testing a physical layer chip of a switch, after said determining the operating status information of said PHY chip, further comprising:

在所述运行状态信息表征所述PHY芯片出现故障的情况下,配置各寄存器的存储值为各寄存器的参考值。In the case where the running state information indicates that the PHY chip is faulty, the storage values of each register are configured as reference values of each register.

具体地,在确定PHY芯片的运行状态信息之后,可以判断PHY芯片是否出现故障,若确定PHY芯片出现故障,则可以通过配置各寄存器的存储值为各寄存器的参考值,对PHY芯片重置,以使PHY芯片恢复至正常运行状态。Specifically, after determining the operating status information of the PHY chip, it can be determined whether the PHY chip is faulty. If it is determined that the PHY chip is faulty, the PHY chip can be reset by configuring the storage value of each register as a reference value of each register. In order to restore the PHY chip to a normal operating state.

可选地,可以在交换机后台运行的PHY芯片debug工具,启用一个线程,通过MDC接口和MDIO接口轮询PHY芯片Serdes中断寄存器、控制寄存器或状态寄存器等,如果出现异常,自动干预,改写寄存器的值重新配置。Optionally, the PHY chip debug tool that can run in the background of the switch can enable a thread to poll the PHY chip Serdes interrupt register, control register or status register, etc. through the MDC interface and MDIO interface. If there is an exception, it will automatically intervene and rewrite the register Value reconfiguration.

因此,在PHY芯片出现故障的情况下,通过配置各寄存器的存储值为各寄存器的参考值,可以实现自动干预,实时性高,减少故障对业务的影响。Therefore, in the case of a failure of the PHY chip, by configuring the storage value of each register as a reference value of each register, automatic intervention can be realized, with high real-time performance, and the impact of failure on business can be reduced.

本发明提供的交换机物理层芯片的测试方法,通过MDC接口和MDIO接口,可以配置PHY芯片的各PHY端口为环回状态,进而可以对各PHY端口进行线速流量测试,测试过程中向PHY芯片的各PHY端口发送的测试用例数据,可以通过PHY芯片环回,进而可以分析各PHY端口的环回数据,能够获取各PHY端口的端口测试结果,端口测试结果可以指示PHY端口是否通过测试,测试过程无需采用外部治具,能够提高测试效率。The test method of switch physical layer chip provided by the present invention, through MDC interface and MDIO interface, each PHY port of PHY chip can be configured as the loopback state, and then each PHY port can be carried out wire-speed flow test, in the test process, send to PHY chip The test case data sent by each PHY port of the PHY chip can be looped back through the PHY chip, and then the loopback data of each PHY port can be analyzed, and the port test results of each PHY port can be obtained. The port test results can indicate whether the PHY port has passed the test. The process does not need to use external fixtures, which can improve the test efficiency.

以下为本发明的一个可选的示例,但不作为对本发明的限定。The following is an optional example of the present invention, but not as a limitation of the present invention.

CPU 10GBASE-KR通过PHY芯片做一个QSFP端口,将端口配置为4x10G,记作port1、port2、port3和port4,在高温(45摄氏度左右)下执行自动化测试,可以包括以下步骤401至步骤403:The CPU 10GBASE-KR makes a QSFP port through the PHY chip, configures the port as 4x10G, and records it as port1, port2, port3, and port4, and performs an automated test at a high temperature (about 45 degrees Celsius), which may include the following steps 401 to 403:

步骤401,将PHY芯片4个端口全部配置internal环回。Step 401, configure internal loopback on all four ports of the PHY chip.

步骤402,检测到配置环回后端口能够正常Link up,调用Lanconf工具进行发送接收(transmit and receive)测试,并实时统计端口计数。In step 402, it is detected that the port can link up normally after the loopback is configured, and the Lanconf tool is called to perform a transmit and receive test, and the port count is counted in real time.

可选地,测试过程中,后台运行的实时检测程序,通过轮询发现,LIVELNKSTAT1_00x20028寄存器值异常,值为0xFF0F,对比正常值,并将其写回0xFF87。Optionally, during the test, the real-time detection program running in the background finds by polling that the value of the LIVELNKSTAT1_00x20028 register is abnormal, the value is 0xFF0F, compared with the normal value, and written back to 0xFF87.

步骤403,根据步骤402的统计信息,确定测试过程中port1出现CRC错误,测试程序通过日志(log)关键字“流量出现CRC错误”(traffic crc occurred),查故障表找到故障诊断指令“TRAFFIC_CRC”,按照故障诊断指令首先通过MDC接口和MDIO接口dump寄存器(dump寄存器是指将寄存器的数据导出、转存成文件或静态形式),获取Port1眼图,确定眼高较小,分析浴盆曲线确定性抖动较大,进而分析端口CTLE或DFE等训练参数,确定与正常端口对比差异较大,进而判定CTLE初始值不合理,将该结果及收集信息返回到服务器。Step 403, according to the statistical information in step 402, it is determined that a CRC error occurs in port1 during the test, and the test program checks the fault table to find the fault diagnosis command "TRAFFIC_CRC" through the log (log) keyword "traffic crc occurred" According to the fault diagnosis instruction, firstly, through the MDC interface and the MDIO interface dump register (dump register refers to exporting and transferring the data of the register into a file or static form), obtain the Port1 eye diagram, determine that the eye height is small, and analyze the bathtub curve certainty If the jitter is large, then analyze the port CTLE or DFE and other training parameters to determine that there is a large difference compared with the normal port, and then determine that the initial value of CTLE is unreasonable, and return the result and collected information to the server.

本发明通过对PHY芯片配置internal环回,结合Lanconf工具,实现不依赖其他工装治具对PHY端口进行自动化测试,且测试程序通过查故障表,能够实现自动收集信息,自动分析测试失败原因。相比传统的测试方法,能够减少工装成本,减少人力,避免没有及时分析环境被破坏。通过后台程序实时轮询PHY芯片寄存器,能够实时检测PHY芯片运行状态,且能够自动干预,用户无感,不影响正常业务。The present invention configures the internal loopback on the PHY chip and combines the Lanconf tool to realize the automatic test of the PHY port without relying on other tooling fixtures, and the test program can automatically collect information and automatically analyze the cause of test failure by checking the fault table. Compared with traditional testing methods, it can reduce the cost of tooling, reduce manpower, and avoid damage to the environment that is not analyzed in time. The real-time polling of the PHY chip registers through the background program can detect the running status of the PHY chip in real time, and can automatically intervene without the user feeling, and will not affect the normal business.

下面对本发明提供的交换机物理层芯片的测试装置进行描述,下文描述的交换机物理层芯片的测试装置与上文描述的交换机物理层芯片的测试方法可相互对应参照。The test device for the switch physical layer chip provided by the present invention is described below, and the test device for the switch physical layer chip described below and the test method for the switch physical layer chip described above can be referred to each other correspondingly.

图3是本发明提供的交换机物理层芯片的测试装置的结构示意图,如图3所示,该装置包括:第一配置模块301和测试模块302,其中:Fig. 3 is a schematic structural diagram of a test device for a switch physical layer chip provided by the present invention. As shown in Fig. 3 , the device includes: a first configuration module 301 and a test module 302, wherein:

第一配置模块301,用于通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;The first configuration module 301 is used to configure each PHY port of the physical layer PHY chip to be in a loopback state through the management data clock MDC interface and the management data input and output MDIO interface;

测试模块302,用于通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。The test module 302 is configured to obtain a port test result of each PHY port by performing a wire-speed flow test on each PHY port, and the port test result is used to indicate whether the PHY port passes the test.

本发明提供的交换机物理层芯片的测试装置,通过MDC接口和MDIO接口,可以配置PHY芯片的各PHY端口为环回状态,进而可以对各PHY端口进行线速流量测试,测试过程中向PHY芯片的各PHY端口发送的测试用例数据,可以通过PHY芯片环回,进而可以分析各PHY端口的环回数据,能够获取各PHY端口的端口测试结果,端口测试结果可以指示PHY端口是否通过测试,测试过程无需采用外部治具,能够提高测试效率。The test device of the switch physical layer chip provided by the present invention can configure each PHY port of the PHY chip to be in a loopback state through the MDC interface and the MDIO interface, and then can carry out a line-speed flow test to each PHY port, and send data to the PHY chip during the test. The test case data sent by each PHY port of the PHY chip can be looped back through the PHY chip, and then the loopback data of each PHY port can be analyzed, and the port test results of each PHY port can be obtained. The port test results can indicate whether the PHY port has passed the test. The process does not need to use external fixtures, which can improve the test efficiency.

可选地,所述测试模块具体用于:Optionally, the test module is specifically used for:

获取各PHY端口的连接状态;Obtain the connection status of each PHY port;

若确定各PHY端口的连接状态均为连接建立状态,则通过介质访问控制层MAC的发送TX端口,发送测试用例数据至各PHY端口;If it is determined that the connection state of each PHY port is a connection establishment state, then send the test case data to each PHY port through the sending TX port of the MAC of the medium access control layer;

通过MAC的接收RX端口,接收各PHY端口的环回数据;Receive the loopback data of each PHY port through the receiving RX port of the MAC;

基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果。Based on the test case data, the loopback data of each PHY port and the connection state monitoring data of each PHY port, the port test results of each PHY port are obtained.

可选地,所述测试模块具体用于:Optionally, the test module is specifically used for:

基于所述测试用例数据和各PHY端口的环回数据,确定各PHY端口的收发包数量差异信息以及各PHY端口的错误包信息;Based on the test case data and the loopback data of each PHY port, determine the difference information of the number of sending and receiving packets of each PHY port and the error packet information of each PHY port;

基于各PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,判断各PHY端口是否通过测试,获取各PHY端口的端口测试结果。Based on the connection state monitoring data of each PHY port, the difference information of the number of sent and received packets, and the error packet information, it is judged whether each PHY port has passed the test, and the port test result of each PHY port is obtained.

可选地,所述装置还包括故障诊断模块,在所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果之后,所述故障诊断模块用于:Optionally, the device further includes a fault diagnosis module, after obtaining the port test results of each PHY port by performing a wire-speed flow test on each PHY port, the fault diagnosis module is used for:

在目标PHY端口的端口测试结果指示所述目标PHY端口未通过测试的情况下,基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,确定目标故障关键词;When the port test result of the target PHY port indicates that the target PHY port has failed the test, based on the connection status monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, and the error packet information, determine the target failure keyword;

基于所述目标故障关键词和故障表,获取目标故障诊断指令,所述故障表用于表征故障关键词和故障诊断指令之间的映射关系,所述故障诊断指令用于辅助诊断PHY端口;Obtain a target fault diagnosis instruction based on the target fault keyword and a fault table, the fault table is used to characterize the mapping relationship between the fault keyword and the fault diagnosis instruction, and the fault diagnosis instruction is used to assist in the diagnosis of a PHY port;

通过执行所述目标故障诊断指令,获取所述目标PHY端口的故障诊断信息;Obtaining fault diagnosis information of the target PHY port by executing the target fault diagnosis instruction;

所述目标PHY端口为所述PHY芯片的任意一个PHY端口。The target PHY port is any PHY port of the PHY chip.

可选地,所述装置还包括发送模块,在所述获取所述目标PHY端口的故障诊断信息之后,所述发送模块用于:Optionally, the device further includes a sending module, after the acquisition of the fault diagnosis information of the target PHY port, the sending module is configured to:

基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息、错误包信息和故障诊断信息,确定所述目标PHY端口的故障上报信息;Determine the fault reporting information of the target PHY port based on the connection state monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, error packet information, and fault diagnosis information;

发送所述目标PHY端口的故障上报信息至服务器。Sending the fault report information of the target PHY port to the server.

可选地,所述装置还包括运行状态监测模块,所述运行状态监测模块用于:Optionally, the device also includes a running state monitoring module, and the running state monitoring module is used for:

通过MDC接口和MDIO接口,轮询所述PHY芯片的多个寄存器,获取所述多个寄存器的存储值,所述多个寄存器包括中断寄存器、控制寄存器和状态寄存器;Through the MDC interface and the MDIO interface, poll multiple registers of the PHY chip to obtain storage values of the multiple registers, the multiple registers include interrupt registers, control registers and status registers;

基于各寄存器的参考值和各寄存器的存储值,确定所述PHY芯片的运行状态信息,所述运行状态信息用于表征所述PHY芯片是否出现故障。Based on the reference value of each register and the storage value of each register, determine the operation status information of the PHY chip, where the operation status information is used to indicate whether the PHY chip has a fault.

可选地,所述装置还包括第二配置模块,在所述确定所述PHY芯片的运行状态信息之后,所述第二配置模块用于:Optionally, the device further includes a second configuration module, after the determination of the operation state information of the PHY chip, the second configuration module is configured to:

在所述运行状态信息表征所述PHY芯片出现故障的情况下,配置各寄存器的存储值为各寄存器的参考值。In the case where the running state information indicates that the PHY chip is faulty, the storage values of each register are configured as reference values of each register.

本发明提供的交换机物理层芯片的测试装置,通过MDC接口和MDIO接口,可以配置PHY芯片的各PHY端口为环回状态,进而可以对各PHY端口进行线速流量测试,测试过程中向PHY芯片的各PHY端口发送的测试用例数据,可以通过PHY芯片环回,进而可以分析各PHY端口的环回数据,能够获取各PHY端口的端口测试结果,端口测试结果可以指示PHY端口是否通过测试,测试过程无需采用外部治具,能够提高测试效率。The test device of the switch physical layer chip provided by the present invention can configure each PHY port of the PHY chip to be in a loopback state through the MDC interface and the MDIO interface, and then can carry out a line-speed flow test to each PHY port, and send data to the PHY chip during the test. The test case data sent by each PHY port of the PHY chip can be looped back through the PHY chip, and then the loopback data of each PHY port can be analyzed, and the port test results of each PHY port can be obtained. The port test results can indicate whether the PHY port has passed the test. The process does not need to use external fixtures, which can improve the test efficiency.

图4是本发明提供的电子设备的结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行交换机物理层芯片的测试方法,例如该方法包括:FIG. 4 is a schematic structural diagram of an electronic device provided by the present invention. As shown in FIG. 4, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, Wherein, the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logical instructions in the memory 430 to execute the test method of the physical layer chip of the switch, for example, the method includes:

通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;Through the management data clock MDC interface and the management data input and output MDIO interface, configure each PHY port of the physical layer PHY chip to be in the loopback state;

通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。By performing a wire-speed flow test on each PHY port, a port test result of each PHY port is obtained, and the port test result is used to indicate whether the PHY port passes the test.

此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above logic instructions in the memory 430 may be implemented in the form of software function units and be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的交换机物理层芯片的测试方法,例如该方法包括:On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can Execute the test method of the physical layer chip of the switch provided by each of the above methods, for example, the method includes:

通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;Through the management data clock MDC interface and the management data input and output MDIO interface, configure each PHY port of the physical layer PHY chip to be in the loopback state;

通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。By performing a wire-speed flow test on each PHY port, a port test result of each PHY port is obtained, and the port test result is used to indicate whether the PHY port passes the test.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的交换机物理层芯片的测试方法,例如该方法包括:In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the test method for the physical layer chip of the switch provided by the above methods, For example the method includes:

通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;Through the management data clock MDC interface and the management data input and output MDIO interface, configure each PHY port of the physical layer PHY chip to be in the loopback state;

通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。By performing a wire-speed flow test on each PHY port, a port test result of each PHY port is obtained, and the port test result is used to indicate whether the PHY port passes the test.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种交换机物理层芯片的测试方法,其特征在于,包括:1. A method for testing a switch physical layer chip, characterized in that it comprises: 通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;Through the management data clock MDC interface and the management data input and output MDIO interface, configure each PHY port of the physical layer PHY chip to be in the loopback state; 通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。By performing a wire-speed flow test on each PHY port, a port test result of each PHY port is obtained, and the port test result is used to indicate whether the PHY port passes the test. 2.根据权利要求1所述交换机物理层芯片的测试方法,其特征在于,所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,包括:2. according to the test method of the described switch physical layer chip of claim 1, it is characterized in that, described by carrying out wire-speed flow test to each PHY port, obtain the port test result of each PHY port, comprising: 获取各PHY端口的连接状态;Obtain the connection status of each PHY port; 若确定各PHY端口的连接状态均为连接建立状态,则通过介质访问控制层MAC的发送TX端口,发送测试用例数据至各PHY端口;If it is determined that the connection state of each PHY port is a connection establishment state, then send the test case data to each PHY port through the sending TX port of the MAC of the medium access control layer; 通过MAC的接收RX端口,接收各PHY端口的环回数据;Receive the loopback data of each PHY port through the receiving RX port of the MAC; 基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果。Based on the test case data, the loopback data of each PHY port and the connection state monitoring data of each PHY port, the port test results of each PHY port are obtained. 3.根据权利要求2所述交换机物理层芯片的测试方法,其特征在于,所述基于所述测试用例数据、各PHY端口的环回数据和各PHY端口的连接状态监测数据,获取各PHY端口的端口测试结果,包括:3. according to the test method of the described switch physical layer chip of claim 2, it is characterized in that, described based on the loopback data of described test case data, each PHY port and the connection status monitoring data of each PHY port, obtain each PHY port Port test results, including: 基于所述测试用例数据和各PHY端口的环回数据,确定各PHY端口的收发包数量差异信息以及各PHY端口的错误包信息;Based on the test case data and the loopback data of each PHY port, determine the difference information of the number of sending and receiving packets of each PHY port and the error packet information of each PHY port; 基于各PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,判断各PHY端口是否通过测试,获取各PHY端口的端口测试结果。Based on the connection state monitoring data of each PHY port, the difference information of the number of sent and received packets, and the error packet information, it is judged whether each PHY port has passed the test, and the port test result of each PHY port is obtained. 4.根据权利要求1-3任一项所述交换机物理层芯片的测试方法,其特征在于,在所述通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果之后,还包括:4. according to the testing method of switch physical layer chip described in any one of claim 1-3, it is characterized in that, after described by carrying out wire-speed flow test to each PHY port, after obtaining the port test result of each PHY port, also include: 在目标PHY端口的端口测试结果指示所述目标PHY端口未通过测试的情况下,基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息以及错误包信息,确定目标故障关键词;When the port test result of the target PHY port indicates that the target PHY port has failed the test, based on the connection status monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, and the error packet information, determine the target failure keyword; 基于所述目标故障关键词和故障表,获取目标故障诊断指令,所述故障表用于表征故障关键词和故障诊断指令之间的映射关系,所述故障诊断指令用于辅助诊断PHY端口;Obtain a target fault diagnosis instruction based on the target fault keyword and a fault table, the fault table is used to characterize the mapping relationship between the fault keyword and the fault diagnosis instruction, and the fault diagnosis instruction is used to assist in the diagnosis of a PHY port; 通过执行所述目标故障诊断指令,获取所述目标PHY端口的故障诊断信息;Obtaining fault diagnosis information of the target PHY port by executing the target fault diagnosis instruction; 所述目标PHY端口为所述PHY芯片的任意一个PHY端口。The target PHY port is any PHY port of the PHY chip. 5.根据权利要求4所述交换机物理层芯片的测试方法,其特征在于,在所述获取所述目标PHY端口的故障诊断信息之后,还包括:5. the test method of switch physical layer chip according to claim 4, is characterized in that, after the fault diagnosis information of described target PHY port of described acquisition, also comprise: 基于所述目标PHY端口的连接状态监测数据、收发包数量差异信息、错误包信息和故障诊断信息,确定所述目标PHY端口的故障上报信息;Determine the fault reporting information of the target PHY port based on the connection state monitoring data of the target PHY port, the difference information of the number of sending and receiving packets, error packet information, and fault diagnosis information; 发送所述目标PHY端口的故障上报信息至服务器。Sending the fault report information of the target PHY port to the server. 6.根据权利要求1-3任一项所述交换机物理层芯片的测试方法,其特征在于,还包括:6. according to the testing method of switch physical layer chip described in any one of claim 1-3, it is characterized in that, also comprising: 通过MDC接口和MDIO接口,轮询所述PHY芯片的多个寄存器,获取所述多个寄存器的存储值,所述多个寄存器包括中断寄存器、控制寄存器和状态寄存器;Through the MDC interface and the MDIO interface, poll multiple registers of the PHY chip to obtain storage values of the multiple registers, the multiple registers include interrupt registers, control registers and status registers; 基于各寄存器的参考值和各寄存器的存储值,确定所述PHY芯片的运行状态信息,所述运行状态信息用于表征所述PHY芯片是否出现故障。Based on the reference value of each register and the storage value of each register, determine the operation status information of the PHY chip, where the operation status information is used to indicate whether the PHY chip has a fault. 7.根据权利要求6所述交换机物理层芯片的测试方法,其特征在于,在所述确定所述PHY芯片的运行状态信息之后,还包括:7. according to the test method of switch physical layer chip described in claim 6, it is characterized in that, after described determining the operation state information of described PHY chip, also comprise: 在所述运行状态信息表征所述PHY芯片出现故障的情况下,配置各寄存器的存储值为各寄存器的参考值。In the case where the running state information indicates that the PHY chip is faulty, the storage values of each register are configured as reference values of each register. 8.一种交换机物理层芯片的测试装置,其特征在于,包括:8. A test device for a switch physical layer chip, characterized in that it comprises: 第一配置模块,用于通过管理数据时钟MDC接口和管理数据输入输出MDIO接口,配置物理层PHY芯片的各PHY端口为环回状态;The first configuration module is used to configure each PHY port of the physical layer PHY chip to be in a loopback state through the management data clock MDC interface and the management data input and output MDIO interface; 测试模块,用于通过对各PHY端口进行线速流量测试,获取各PHY端口的端口测试结果,所述端口测试结果用于指示PHY端口是否通过测试。The test module is used to obtain the port test result of each PHY port by performing a wire-speed flow test on each PHY port, and the port test result is used to indicate whether the PHY port passes the test. 9.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至7任一项所述交换机物理层芯片的测试方法。9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor according to claim 1 is implemented when executing the program. The test method for the switch physical layer chip described in any one of to 7. 10.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述交换机物理层芯片的测试方法。10. A non-transitory computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the physical layer chip of the switch according to any one of claims 1 to 7 is implemented. Test Methods.
CN202211448725.8A 2022-11-18 2022-11-18 Switch physical layer chip testing method, device and electronic equipment Active CN115766526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211448725.8A CN115766526B (en) 2022-11-18 2022-11-18 Switch physical layer chip testing method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211448725.8A CN115766526B (en) 2022-11-18 2022-11-18 Switch physical layer chip testing method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN115766526A true CN115766526A (en) 2023-03-07
CN115766526B CN115766526B (en) 2024-06-21

Family

ID=85373531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211448725.8A Active CN115766526B (en) 2022-11-18 2022-11-18 Switch physical layer chip testing method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115766526B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319278A (en) * 2023-11-27 2023-12-29 苏州元脑智能科技有限公司 Switch testing method and device, electronic equipment and storage medium
CN120123161A (en) * 2025-03-26 2025-06-10 山东云海国创云计算装备产业创新中心有限公司 High-speed interconnect bus signal transmission test method, device, equipment and storage medium
CN120751292A (en) * 2025-08-29 2025-10-03 苏州元脑智能科技有限公司 Switch testing method and electronic equipment
CN120762975A (en) * 2025-09-09 2025-10-10 格创通信(浙江)有限公司 Chip-to-chip interconnection chip, chip-to-chip interconnection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262789A (en) * 2015-09-08 2016-01-20 天津光电聚能专用通信设备有限公司 FPGA (Field Programmable Gate Array)-based MAC (Media Access Control) layer to MAC layer communication system and control method
CN105354160A (en) * 2015-10-09 2016-02-24 中国科学院上海高等研究院 Connecting method and system for communication between rate configurable FPGA chips
US9859918B1 (en) * 2016-07-22 2018-01-02 Intel Corporation Technologies for performing speculative decompression
CN110971475A (en) * 2018-09-28 2020-04-07 迈普通信技术股份有限公司 Port forwarding test method, test system construction method and auxiliary test equipment
CN111220907A (en) * 2020-01-10 2020-06-02 苏州浪潮智能科技有限公司 A method and device for testing the maximum power consumption of a switching chip
CN115208805A (en) * 2022-07-01 2022-10-18 中国电子科技集团公司第五十四研究所 System and method for testing multi-path Ethernet physical layer transceiver

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262789A (en) * 2015-09-08 2016-01-20 天津光电聚能专用通信设备有限公司 FPGA (Field Programmable Gate Array)-based MAC (Media Access Control) layer to MAC layer communication system and control method
CN105354160A (en) * 2015-10-09 2016-02-24 中国科学院上海高等研究院 Connecting method and system for communication between rate configurable FPGA chips
US9859918B1 (en) * 2016-07-22 2018-01-02 Intel Corporation Technologies for performing speculative decompression
CN110971475A (en) * 2018-09-28 2020-04-07 迈普通信技术股份有限公司 Port forwarding test method, test system construction method and auxiliary test equipment
CN111220907A (en) * 2020-01-10 2020-06-02 苏州浪潮智能科技有限公司 A method and device for testing the maximum power consumption of a switching chip
CN115208805A (en) * 2022-07-01 2022-10-18 中国电子科技集团公司第五十四研究所 System and method for testing multi-path Ethernet physical layer transceiver

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319278A (en) * 2023-11-27 2023-12-29 苏州元脑智能科技有限公司 Switch testing method and device, electronic equipment and storage medium
CN120123161A (en) * 2025-03-26 2025-06-10 山东云海国创云计算装备产业创新中心有限公司 High-speed interconnect bus signal transmission test method, device, equipment and storage medium
CN120751292A (en) * 2025-08-29 2025-10-03 苏州元脑智能科技有限公司 Switch testing method and electronic equipment
CN120751292B (en) * 2025-08-29 2026-01-30 苏州元脑智能科技有限公司 Switch testing method and electronic equipment
CN120762975A (en) * 2025-09-09 2025-10-10 格创通信(浙江)有限公司 Chip-to-chip interconnection chip, chip-to-chip interconnection method and device

Also Published As

Publication number Publication date
CN115766526B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN115766526A (en) Test method, device and electronic equipment for switch physical layer chip
US8259587B2 (en) Pool-based network diagnostic systems and methods
CN109120522B (en) Multipath state monitoring method and device
CN116684256B (en) Node fault monitoring method, device and system, electronic equipment and storage medium
US8769152B2 (en) Align/notify compression scheme in a network diagnostic component
CN115499294B (en) A distributed storage environment network sub-health detection and fault automatic processing method
CN113872826B (en) Network card port stability test method, system, terminal and storage medium
CN117221091A (en) Isolation method and device for sub-health nodes in storage cluster and electronic equipment
CN120723528A (en) A method and device for quickly locating faults in an MGX system
CN101247412A (en) Device and method for dual-channel detection of physical layer/medium access control layer status
US7719992B1 (en) System for proactive time domain reflectometry
CN114816939A (en) Memory communication method, system, device and medium
CN120075167A (en) Fault-tolerant self-adaptive link design method for super-large-scale network-on-chip routers
US20190266055A1 (en) Electronic data-distribution control unit and method for operating such a control unit
CN118540242A (en) IIoT-oriented intelligent nondestructive network testing method
CN117155837A (en) Switch chip testing method and device, electronic equipment and storage medium
JP2010245589A (en) Communication system, communication device, method for specifying suspect portion, and program
CN117319172A (en) Spanning tree protocol anomaly detection method, system and terminal for industrial control network
CN101136807B (en) Switch chip port detection method based on port VLAN
CN117472625A (en) Method and device for determining abnormal information of PCIE link
CN119788576B (en) Congestion control capability testing method and electronic equipment
Ivanova et al. Fibre channel switch port state machine analysis based on the port log dump
CN120434251B (en) A dynamic testing method and system for database cluster
CN111444156A (en) A fault diagnosis method based on cloud computing
CN120743716B (en) Fault diagnosis method and device for storage system, electronic equipment and 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
CP03 Change of name, title or address

Address after: 215128 Building 9, No. 1, Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 215128 Building 9, No. 1, Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address