CN115695243A - Method and system for testing store-and-forward function of switch - Google Patents

Method and system for testing store-and-forward function of switch Download PDF

Info

Publication number
CN115695243A
CN115695243A CN202211330137.4A CN202211330137A CN115695243A CN 115695243 A CN115695243 A CN 115695243A CN 202211330137 A CN202211330137 A CN 202211330137A CN 115695243 A CN115695243 A CN 115695243A
Authority
CN
China
Prior art keywords
frames
switch
store
ethernet
frame
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.)
Pending
Application number
CN202211330137.4A
Other languages
Chinese (zh)
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.)
FAW Bestune Car Co Ltd
Original Assignee
FAW Bestune Car 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 FAW Bestune Car Co Ltd filed Critical FAW Bestune Car Co Ltd
Priority to CN202211330137.4A priority Critical patent/CN115695243A/en
Publication of CN115695243A publication Critical patent/CN115695243A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a system for testing the store-and-forward function of a switch. The switch store-and-forward function test is necessary test content required by the vehicle-mounted Ethernet switch, and the vehicle-mounted Ethernet switch can normally store and forward Ethernet frames. The system comprises a system power supply, a PC upper computer, a DUT power supply module and a signal input and output system. The signal input and output system comprises two sub-modules, can simulate to send and receive Ethernet frames in real time, can send marked frames and unmarked frames with different lengths according to configuration simulation, and can carry correct check sequences and wrong check sequences. According to the invention, the personalized test case can be designed according to the development requirement, so that the test quality and the test coverage degree are improved.

Description

Method and system for testing store-and-forward function of switch
Technical Field
The invention belongs to the technical field of automobiles, and particularly relates to a method and a system for testing the store-and-forward function of an exchanger.
Background
The switch store-and-forward function test is a test which must be performed by a switch in a vehicle-mounted Ethernet, so that the function of the switch can be normally realized, and the normal communication of the relevant nodes of the whole vehicle Ethernet is ensured.
Currently, most host plants evaluate whether the controller switch function test is correct or not by means of approving third party laboratory test reports.
However, if the controller has a problem of functional defect in the process of testing and verifying the store-and-forward function of the ethernet switch, the problem cannot be reproduced. At present, mainstream Ethernet test service providers accept test tasks of a plurality of host computer factories simultaneously, test ranges are mostly general test items, the advantages are that the universal test items are suitable for development requirements of controllers of all the host computer factories, the defects are obvious, test contents are not targeted, and the coverage degree of the test ranges is low.
Disclosure of Invention
The invention provides a method and a system for testing the store-and-forward function of a switch, which comprise a system power supply, a PC upper computer, a DUT power supply module and a signal input and output system. The signal input and output system comprises two sub-modules, can simulate to send and receive Ethernet frames in real time, can send marked frames and unmarked frames with different lengths according to configuration simulation, and can carry correct check sequences and wrong check sequences. According to the invention, the personalized test case can be designed according to the development requirement, so that the test quality and the test coverage degree are improved.
The technical scheme of the invention is that the switch store-and-forward function test system comprises:
power supply: the power support is provided for the whole test system, and the stable work of each system and module is ensured;
PC host computer: controlling voltage output and current limit of the DUT power supply module; meanwhile, the signal input and output system is controlled, and the working modes of all sub-modules in the signal input and output system are coordinated;
a DUT power supply module: the stable working voltage is provided for the measured controller, and the measured controller is ensured to work under the rated voltage;
signal input output system: comprises two or more input/output modules.
Furthermore, each input/output module can respectively send analog data to the subnet where the module is located, and simultaneously can receive data in real time, simulate and output an Ethernet frame, and has a function of detecting data in real time.
Further, the input-output module can send the following classes of ethernet frames simultaneously or separately:
tagged or untagged ethernet frames;
an Ethernet frame with a valid or invalid check sequence;
an ethernet frame of size 64-1522 bytes.
A method for testing the store-and-forward function of a switch comprises the following steps:
s1, a measured controller is connected with a system;
s2, setting an input/output module in the signal input/output system to detect a communication port of the measured controller;
s3, simulating and sending an Ethernet frame from one port of the measured controller according to the development definition of the measured controller;
s4, whether the Ethernet frame is forwarded to other ports is detected.
Further, the input and output module in S2 can detect the communication port of the measured controller simultaneously or individually.
Further, the ethernet frame in S3 is 100 unmarked frames with invalid check sequences, and each frame has a length of 64 bytes.
Further, the ethernet frame in S3 is 100 unmarked frames with invalid check sequence, and each frame has a length of 1518 bytes.
Further, the ethernet frame in S3 is 100 tagged frames with invalid check sequences, and each frame is 64 bytes long.
Further, the ethernet frame in S3 is 100 tagged frames with invalid check sequences, and each frame has a length of 1522 bytes.
Further, all ports of the measured controller are detected.
The invention has the beneficial effects that:
according to the invention, the personalized test case can be designed according to the development requirement, and the test quality and the test coverage degree are improved.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention.
Detailed Description
A method and a system for testing the store-and-forward function of a switch can realize automatic test execution and result judgment through simple configuration and record data.
The system comprises: the system comprises a system power supply, a PC upper computer, a DUT power supply module and a signal input and output system.
The power supply provides power support for the PC upper computer, the DUT power supply module and the signal input and output system, and ensures that each system and module in the system can normally run.
The PC upper computer coordinates a DUT power supply, the signal input and output system is matched to work, and the signal input and output system comprises two identical and independent signal receiving and transmitting modules.
The DUT power supply module in the test system provides stable working voltage for a tested controller (DUT), the tested controller is guaranteed to work under rated voltage, the DUT power supply module provides two independent 2-channel power supplies, the control of KL30 and KL 15 power of the DUT is achieved respectively, and power supply requirements of different controllers are met.
The signal input and output system can receive instructions of a PC upper computer and send Ethernet frames in a simulated mode, and the system comprises two or more input and output modules, wherein each input and output module can send simulated data to a subnet where the module is located, and meanwhile data can be received in real time. The marked frame and the unmarked frame can be sent according to different requirements, the Ethernet frame with the minimum of 64 bytes and the maximum of 1522 bytes can be sent, and the Ethernet frame with the correct check sequence and the error check sequence can be sent.
A method for testing the store-and-forward function of a switch comprises the following steps:
1. ensuring that the tested controller is stably connected with a signal receiving and transmitting module of the test system;
2. setting all modules in a signal transceiving system to start to detect all DUT communication ports;
3. according to the DUT development definition, sending 100 unmarked frames with invalid check sequences from one port of the DUT in a simulation mode, wherein the length of each frame is 64 bytes;
4. simulating and sending 100 unmarked frames with invalid sequences, wherein the length of each frame is 1518 bytes;
5. simulating and sending 100 marked frames with invalid check sequences, wherein the length of each frame is 64 bytes;
6. simulating and sending 100 marked frames with invalid check sequences, wherein the length of each frame is 1522 bytes;
7. it is detected whether any of the above ethernet frames are forwarded to other ports, and any of the above ethernet frames should not be forwarded to any port.
The PC of the test system is connected with a system power supply through a power line matched with the PC to obtain power, and the PC is connected with the DUT power supply module through an RJ45 data line, so that the communication between the PC and the DUT power supply module is ensured. The PC is connected with the signal receiving and sending system through a USB data line, so that the command of the PC upper computer can be normally sent to the signal receiving and sending system, and the data collected by the signal receiving and sending system in real time can be transmitted back to the PC upper computer.
In the test system, the DUT power supply module is connected with the system power supply module through a self-matched power supply line to obtain power, the DUT power supply module provides two channels of external output voltage, stable working voltage is provided for the DUT, and the controller can work normally.
The signal receiving and sending system in the test system comprises two or more signal receiving and sending modules, the sub-modules can independently send and receive Ethernet frames, can simulate and send marked frames and unmarked frames, can send frames with effective check sequences and invalid check sequences, and can also send Ethernet frames with different data lengths according to the test requirements. The independent sub-modules in this system are connected to different ports of the DUT, respectively. Each signal transceiver module is provided with a standard banana head interface and is connected with different ports of the DUT through a pair of twisted-pair wires to carry out Ethernet data interaction. The power-taking mode in the system is that a power line matched with the power-taking mode is connected with a system power supply module. And the signal receiving and sending system is ensured to work under stable voltage.
The above description is only for the purpose of illustrating the embodiments of the present invention, and the scope of the present invention should not be limited thereto, and any modifications, equivalents and improvements made by those skilled in the art within the technical scope of the present invention as disclosed in the present invention should be covered by the scope of the present invention. And those not described in detail in this specification are well within the skill of those in the art.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Claims (10)

1. A switch store-and-forward function test system, comprising:
power supply: the power support is provided for the whole test system, and the stable work of each system and each module is ensured;
a PC upper computer: controlling voltage output and current limit of the DUT power supply module; simultaneously controlling a signal input and output system and coordinating the working mode of each submodule in the signal input and output system;
a DUT power supply module: the stable working voltage is provided for the measured controller, and the measured controller is ensured to work under the rated voltage;
signal input output system: comprises two or more input/output modules.
2. The switch store-and-forward function test system of claim 1, wherein the input/output module is capable of sending analog data to the sub-network where the module is located, receiving data in real time, and outputting ethernet frames in analog, and has a function of detecting data in real time.
3. The switch store-and-forward functionality test system of claim 1, wherein the input-output module is capable of sending the following classes of ethernet frames simultaneously or separately:
tagged or untagged ethernet frames;
an Ethernet frame with a valid or invalid check sequence;
an ethernet frame of size 64-1522 bytes.
4. A method for testing a switch store-and-forward function test system according to any of claims 1-3, characterized by the steps of:
s1, a tested controller is connected with a switch store-and-forward function test system;
s2, setting an input/output module in a signal input/output system to detect a communication port of the measured controller;
s3, simulating and sending an Ethernet frame from one port of the measured controller according to the development definition of the measured controller;
s4, whether the Ethernet frame is forwarded to other ports is detected.
5. The method for testing the store-and-forward function of the switch as claimed in claim 4, wherein in step S2, the input/output module can detect the communication ports of the tested controllers simultaneously or individually.
6. The method as claimed in claim 4, wherein in step S3, the ethernet frames are 100 unmarked frames with invalid check sequences, and each frame has a length of 64 bytes.
7. The method as claimed in claim 4, wherein in step S3, the ethernet frames are 100 unmarked frames with invalid check sequences, and each frame has a length of 1518 bytes.
8. The method for testing the store-and-forward function of the switch according to claim 4, wherein in step S3, the ethernet frames are 100 tagged frames with invalid check sequences, and each frame has a length of 64 bytes.
9. The method as claimed in claim 4, wherein in step S3, the ethernet frames are 100 tagged frames with invalid check sequences, and each frame has a length of 1522 bytes.
10. The switch store-and-forward function testing method of claim 4, further comprising: and S5, detecting all ports of the measured controller.
CN202211330137.4A 2022-10-27 2022-10-27 Method and system for testing store-and-forward function of switch Pending CN115695243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211330137.4A CN115695243A (en) 2022-10-27 2022-10-27 Method and system for testing store-and-forward function of switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211330137.4A CN115695243A (en) 2022-10-27 2022-10-27 Method and system for testing store-and-forward function of switch

Publications (1)

Publication Number Publication Date
CN115695243A true CN115695243A (en) 2023-02-03

Family

ID=85045929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211330137.4A Pending CN115695243A (en) 2022-10-27 2022-10-27 Method and system for testing store-and-forward function of switch

Country Status (1)

Country Link
CN (1) CN115695243A (en)

Similar Documents

Publication Publication Date Title
CN110492906B (en) Method for rapidly and automatically detecting performance of HPLC carrier module
CN100487468C (en) Rear-panel testing system
CN111830376A (en) Comprehensive detection platform for distributor
CN106527401B (en) Automatic test system for flight control test
CN212112225U (en) Vehicle electronic control unit test system
CN108562843A (en) A kind of alternating current generator E3 controller circuit boards detecting system and method
CN113938159B (en) HPLC communication module detection method
CN115695243A (en) Method and system for testing store-and-forward function of switch
CN110850128A (en) On-site automatic test system bus for marine instrument
CN218866044U (en) Integrated hardware board card interface test system based on chip mounter
CN109870642B (en) High-temperature dynamic aging device and method for bus controller circuit
CN116489054A (en) FPGA-based CoaXPress link performance detection method and system
CN111277303A (en) Production testing method and system based on universal asynchronous receiving and transmitting transmitter to Bluetooth
CN115065426B (en) Production measurement and control system and method for wireless router product
CN115032520A (en) Automatic remote measurement and control system for testing power management chip
CN211669544U (en) Test system
CN114187957A (en) Memory test system and use method thereof
JP2000280999A (en) Interface checker
CN115378834B (en) Multi-network-segment gateway route testing method and device based on hardware-in-loop equipment
CN105403847A (en) Voltage monitoring system based on FPGA technology and verification method
CN111082880A (en) Test system and test method
CN115883412A (en) Switch VLAN test method and system
CN113922871B (en) Integrated comprehensive testing device and testing method based on same
CN220823083U (en) Radio frequency chip batch aging simulation test system
CN109302332B (en) Automatic testing arrangement of communication network controller

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