[go: up one dir, main page]

CN116032810A - A Test Topology and Analysis Method of Bus Equipment - Google Patents

A Test Topology and Analysis Method of Bus Equipment Download PDF

Info

Publication number
CN116032810A
CN116032810A CN202211607215.0A CN202211607215A CN116032810A CN 116032810 A CN116032810 A CN 116032810A CN 202211607215 A CN202211607215 A CN 202211607215A CN 116032810 A CN116032810 A CN 116032810A
Authority
CN
China
Prior art keywords
bus
dut
under test
device under
network side
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
CN202211607215.0A
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.)
Wuhan Maiwei Communications Co ltd
Original Assignee
Wuhan Maiwei Communications 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 Wuhan Maiwei Communications Co ltd filed Critical Wuhan Maiwei Communications Co ltd
Priority to CN202211607215.0A priority Critical patent/CN116032810A/en
Publication of CN116032810A publication Critical patent/CN116032810A/en
Pending legal-status Critical Current

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

本发明提出了一种总线设备的测试拓扑和分析方法,涉及总线自动化测试技术领域,包括以下步骤:S1,搭建总线设备物理测试环境,配置待测设备工作模式;S2,配置待测设备总线侧波特率,操作TCP/UDP工具开始发包;S3,达到发包时长后,TCP/UDP工具停止发包,采集数据并记录最终结果后,清除各节点数据,分析最终结果;S4,判断是否遍历所有波特率,若是则结束测试,否则重复步骤S2‑S3。采用本发明提供的方法,只需要在测试开始前搭建一次测试环境就可以完成所有测试,过程中不需要重新搭建测试环境或者修改环境中的参数,减少了重复劳动。

Figure 202211607215

The present invention proposes a test topology and analysis method of a bus device, relates to the technical field of bus automation testing, and includes the following steps: S1, building a physical test environment for a bus device, and configuring the working mode of the device to be tested; S2, configuring the bus side of the device to be tested Baud rate, operate the TCP/UDP tool to start sending packets; S3, after reaching the packet sending time, the TCP/UDP tool stops sending packets, collect data and record the final results, clear the data of each node, and analyze the final results; S4, judge whether to traverse all waves baud rate, if so, end the test, otherwise repeat step S2-S3. By adopting the method provided by the present invention, all tests can be completed only by setting up a test environment once before the start of the test, and there is no need to re-build the test environment or modify parameters in the environment during the process, reducing repeated labor.

Figure 202211607215

Description

一种总线设备的测试拓扑和分析方法A Test Topology and Analysis Method of Bus Equipment

技术领域technical field

本发明涉及总线自动化测试技术领域,尤其涉及一种总线设备的测试拓扑和分析方法。The invention relates to the technical field of bus automation testing, in particular to a test topology and analysis method of bus equipment.

背景技术Background technique

随着工业自动化的快速发展,各种工业设备和其他嵌入式设备对互联的需求越来越多,但总线存在各种接口和协议,难以直接进行通信。而以太网发展成熟,应用广泛,可以作为中间媒介进行各种工业总线协议和接口的转换。如何验证总线设备是否能够正常工作、可靠工作,也是设备制造商和使用者面临的问题。With the rapid development of industrial automation, various industrial equipment and other embedded devices have more and more demands for interconnection, but there are various interfaces and protocols on the bus, making it difficult to communicate directly. However, Ethernet is mature and widely used, and can be used as an intermediary to convert various industrial bus protocols and interfaces. How to verify whether the bus equipment can work normally and reliably is also a problem faced by equipment manufacturers and users.

中国专利CN105306292A《一种自动化测试系统》公开了一种自动化,通过控制单元控制测试脚本对测试设备进行测试,采用记录单元记录测试用例结果,可自动对测试设备进行测试。然而上述技术测试的步骤繁琐,且测试环境搭建需要反复进行,效率过低。Chinese patent CN105306292A "An Automated Test System" discloses a kind of automation. The test equipment is tested by controlling the test script through the control unit, and the test case results are recorded by the recording unit, so that the test equipment can be automatically tested. However, the above technical testing steps are cumbersome, and the test environment setup needs to be repeated, and the efficiency is too low.

发明内容Contents of the invention

有鉴于此,本发明提出了一种总线设备的测试拓扑和分析方法,用于解决现有技术测试总线设备步骤繁琐,需要反复修改测试环境,效率过低的问题。In view of this, the present invention proposes a test topology and analysis method for bus equipment, which is used to solve the problems of cumbersome testing of bus equipment in the prior art, the need to repeatedly modify the test environment, and low efficiency.

本发明的技术方案是这样实现的:本发明提供了一种总线设备的测试拓扑和分析方法,包括以下步骤:The technical scheme of the present invention is achieved in that the present invention provides a kind of test topology and analysis method of bus equipment, comprising the following steps:

S1,搭建总线设备物理测试环境,配置待测设备工作模式;S1, build a physical test environment for the bus device, and configure the working mode of the device under test;

S2,配置待测设备总线侧波特率,操作TCP/UDP工具开始发包;S2, configure the baud rate on the bus side of the device under test, and operate the TCP/UDP tool to start sending packets;

S3,达到发包时长后,TCP/UDP工具停止发包,采集数据并记录最终结果后,清除各节点数据,分析最终结果;S3, after the packet sending time is reached, the TCP/UDP tool stops sending packets, collects data and records the final result, clears the data of each node, and analyzes the final result;

S4,判断是否遍历所有波特率,若是则结束测试,否则重复步骤S2-S3。S4, judging whether to traverse all baud rates, if so, end the test, otherwise repeat steps S2-S3.

优选的,步骤S1具体包括:Preferably, step S1 specifically includes:

使用4台待测设备DUT-1、DUT-2、DUT-3和DUT-4级联,配置设备的IP,使用PC端包括TCP/UDP发包工具1和TCP/UDP发包工具2。Use 4 devices under test DUT-1, DUT-2, DUT-3 and DUT-4 to cascade, configure the IP of the device, and use the PC side to include TCP/UDP sending tool 1 and TCP/UDP sending tool 2.

优选的,步骤S1还包括:Preferably, step S1 also includes:

当待测设备网口数大于等于2时,总线的连接和工作模式配置为:When the number of network ports of the device under test is greater than or equal to 2, the connection and working mode configuration of the bus is as follows:

TCP/UDP发包工具1和TCP/UDP发包工具2,工作模式为udp组播;TCP/UDP contract sending tool 1 and TCP/UDP contract sending tool 2, the working mode is udp multicast;

待测设备DUT-1的总线1网络侧工作模式为udp组播,总线1总线侧与总线2短接,总线2网络侧工作模式为tcp-server,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-1 is udp multicast, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is tcp-server, and the bus side of the bus 2 is shorted with the bus 1;

待测设备DUT-2的总线1网络侧工作模式为tcp-client,总线1总线侧与总线2短接,总线2网络侧工作模式为udp,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-2 is tcp-client, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is udp, and the bus side of the bus 2 is shorted with the bus 1;

待测设备DUT-3的总线1网络侧工作模式为udp,总线1总线侧与总线2短接,总线2网络侧工作模式为tcp-client,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-3 is udp, the bus side of the bus 1 is shorted to the bus 2, the working mode of the bus 2 network side is tcp-client, and the bus side of the bus 2 is shorted to the bus 1;

待测设备DUT-4的总线1网络侧工作模式为tcp-server,总线1总线侧与总线2短接,总线2网络侧工作模式为udp组播,总线2总线侧与总线1短接。The working mode of the bus 1 network side of the device under test DUT-4 is tcp-server, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is udp multicast, and the bus side of the bus 2 is shorted with the bus 1.

优选的,步骤S1还包括:Preferably, step S1 also includes:

当待测设备网口数为1时,4台待测设备通过一台辅助设备交换机做来完成级联。When the number of network ports of the device under test is 1, 4 devices under test are cascaded through an auxiliary device switch.

优选的,步骤S2具体包括:Preferably, step S2 specifically includes:

配置待测设备的波特率,每轮测试各个待测设备每路总线的波特率配置为相同值。Configure the baud rate of the device under test, and configure the baud rate of each bus of each device under test to the same value in each round of testing.

优选的,步骤S2还包括:Preferably, step S2 also includes:

发包内容和发包时长根据待测设备的要求填写,使用TCP/UDP发包工具1进行发包。Fill in the content and duration of the packet according to the requirements of the device under test, and use the TCP/UDP packet sending tool 1 to send the packet.

优选的,步骤S3具体包括:Preferably, step S3 specifically includes:

登录待测设备web页面,TCP/UDP发包工具1和TCP/UDP发包工具2的窗口,统计TCP/UDP发包工具1的发包字节数,TCP/UDP发包工具2的收包字节数以及待测设备每路总线网络侧和总线侧接收和发送的字节数,记录统计结果。Log in to the web page of the device under test, the windows of TCP/UDP sending tool 1 and TCP/UDP sending tool 2, and count the number of bytes sent by TCP/UDP sending tool 1, the number of bytes received by TCP/UDP sending tool 2, and the pending Measure the number of bytes received and sent by the network side and bus side of each bus of the device, and record the statistical results.

优选的,步骤S3还包括:Preferably, step S3 also includes:

分析最终结果包括:The final results of the analysis include:

当TCP/UDP发包工具1发包字节数不等于待测设备DUT-1总线1网络侧接收字节数时,记录“PC与DUT-1物理链路存在问题”;When the number of bytes sent by the TCP/UDP packet sending tool 1 is not equal to the number of bytes received by the network side of the DUT-1 bus 1 of the device under test, record "there is a problem with the physical link between the PC and DUT-1";

当待测设备DUT-1总线1网络侧接收字节数不等于待测设备DUT-1总线1总线侧发送字节数时,记录“udp组播模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-1 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-1 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in udp multicast mode";

当待测设备DUT-1总线1总线侧发送字节数不等于待测设备DUT-1总线2总线侧接收字节数时,记录“DUT-1总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-1 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-1 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-1 bus 1 and bus 2";

当待测设备DUT-1总线2总线侧接收字节数不等于待测设备DUT-1总线2网络侧发送字节数时,记录“tcp-server模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-1 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-1 bus 2 network side of the device under test, record "there is a problem in forwarding from the bus side to the network side in tcp-server mode";

当待测设备DUT-1总线2网络侧发送字节数不等于待测设备DUT-2总线1网络侧接收字节数时,记录“DUT-1与DUT-2物理链路存在问题”;When the number of bytes sent by the DUT-1 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-2 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-1 and DUT-2";

当待测设备DUT-2总线1网络侧接收字节数不等于待测设备DUT-2总线1总线侧发送字节数时,记录“tcp-client模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-2 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-2 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in tcp-client mode";

当待测设备DUT-2总线1总线侧发送字节数不等于待测设备DUT-2总线2总线侧接收字节数时,记录“DUT-2总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-2 bus side of the device under test is not equal to the number of bytes received by the DUT-2 bus side of the device under test, record "there is a problem with the physical link between DUT-2 bus 1 and bus 2";

当待测设备DUT-2总线2总线侧接收字节数不等于待测设备DUT-2总线2网络侧发送字节数时,记录“udp模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-2 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-2 bus 2 network side of the device under test, record "there is a problem in the forwarding from the bus side to the network side in udp mode";

当待测设备DUT-2总线2网络侧发送字节数不等于待测设备DUT-3总线1网络侧接收字节数时,记录“DUT-2与DUT-3物理链路存在问题”。When the number of bytes sent by the DUT-2 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-3 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-2 and DUT-3".

优选的,步骤S3还包括:Preferably, step S3 also includes:

当待测设备DUT-3总线1网络侧接收字节数不等于待测设备DUT-3总线1总线侧发送字节数时,记录“udp模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-3 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-3 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in udp mode";

当待测设备DUT-3总线1总线侧发送字节数不等于待测设备DUT-3总线2总线侧接收字节数时,记录“DUT-3总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-3 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-3 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-3 bus 1 and bus 2";

当待测设备DUT-3总线2总线侧接收字节数不等于待测设备DUT-3总线2网络侧发送字节数时,记录“tcp-client模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-3 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-3 bus 2 network side of the device under test, record "there is a problem in forwarding from the bus side to the network side in tcp-client mode";

当待测设备DUT-3总线2网络侧发送字节数不等于待测设备DUT-4总线1网络侧接收字节数时,记录“DUT-3与DUT-4物理链路存在问题”;When the number of bytes sent by the DUT-3 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-4 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-3 and DUT-4";

当待测设备DUT-4总线1网络侧接收字节数不等于待测设备DUT-4总线1总线侧发送字节数时,记录“tcp-server模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-4 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-4 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in tcp-server mode";

当待测设备DUT-4总线1总线侧发送字节数不等于待测设备DUT-4总线2总线侧接收字节数时,记录“DUT-4总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-4 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-4 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-4 bus 1 and bus 2";

当待测设备DUT-4总线2总线侧接收字节数不等于待测设备DUT-4总线2网络侧发送字节数时,记录“udp组播模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-4 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-4 bus 2 network side of the device under test, record "there is a problem in the forwarding from the bus side to the network side in udp multicast mode";

当待测设备DUT-4总线2网络侧发送字节数不等于TCP/UDP发包工具2接收字节数时,记录“DUT-4与pc转发链路存在问题”。When the number of bytes sent by the network side of the DUT-4 bus 2 of the device under test is not equal to the number of bytes received by the TCP/UDP packet sending tool 2, record "there is a problem with the forwarding link between DUT-4 and pc".

优选的,步骤S4具体包括:Preferably, step S4 specifically includes:

每轮测试覆盖一种波特率,当需要测试的波特率都覆盖时,结束测试。Each round of testing covers one baud rate, and when all the baud rates to be tested are covered, the test ends.

本发明的一种总线设备的测试拓扑和分析方法相对于现有技术具有以下有益效果:Compared with the prior art, the test topology and analysis method of a bus device of the present invention have the following beneficial effects:

(1)只需要在测试开始前搭建一次测试环境就可以完成所有测试,过程中不需要重新搭建测试环境或者修改环境中的参数,减少了重复劳动;(1) It is only necessary to build a test environment once before the test starts to complete all the tests, and there is no need to re-build the test environment or modify the parameters in the environment during the process, reducing duplication of labor;

(2)通过分析方法,分析待测设备具体哪种工作模式哪个转发方向出现了问题,便于快速定位问题;(2) Through the analysis method, analyze which working mode and which forwarding direction of the equipment under test have problems, so as to quickly locate the problem;

(3)提供了两种物理拓扑环境,既可以满足具有多个网口的待测设备,也可以适应只有一个网口的待测设备,适应性强。(3) Two physical topology environments are provided, which can not only satisfy the equipment under test with multiple network ports, but also adapt to the equipment under test with only one network port, with strong adaptability.

附图说明Description of drawings

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

图1为本发明的一种总线设备的测试拓扑和分析方法流程图;Fig. 1 is the test topology and analysis method flowchart of a kind of bus equipment of the present invention;

图2为本发明的一种总线设备的测试拓扑和分析方法的各阶段示意图;Fig. 2 is the schematic diagram of each stage of the test topology and analysis method of a kind of bus equipment of the present invention;

图3为本发明的一种总线设备的测试拓扑和分析方法的测试拓扑图;Fig. 3 is the test topology diagram of the test topology and analysis method of a kind of bus equipment of the present invention;

图4为本发明的一种总线设备的测试拓扑和分析方法的另一测试拓扑图;Fig. 4 is another test topology diagram of the test topology and analysis method of a bus device of the present invention;

图5为传统方法测试网络侧工作模式tcp-server向总线侧发包的拓扑图;Fig. 5 is the topology diagram of traditional method testing network side working mode tcp-server sending a packet to the bus side;

图6为传统方法测试网络侧工作模式tcp-server接收总线侧发包的拓扑图;Fig. 6 is the topological diagram of traditional method testing network side working mode tcp-server receiving bus side to send packets;

图7为传统方法测试网络侧工作模式tcp-client向总线侧发包的拓扑图;Fig. 7 is the topology diagram of traditional method testing network side working mode tcp-client sending packets to the bus side;

图8为传统方法测试网络侧工作模式tcp-client接收总线侧发包的拓扑图;Fig. 8 is the topology diagram of traditional method testing network side working mode tcp-client receiving bus side sending packets;

图9为传统方法测试网络侧工作模式udp向总线侧发包的拓扑图;Fig. 9 is a topology diagram of traditional method testing network side working mode udp sending packets to the bus side;

图10为传统方法测试网络侧工作模式udp接收总线侧发包的拓扑图;Fig. 10 is the topology diagram of traditional method testing network side working mode udp receiving bus side sending packets;

图11为传统方法测试网络侧工作模式udp组播向总线侧发包的拓扑图;Fig. 11 is the topology diagram of traditional method testing network side working mode udp multicast sending packets to the bus side;

图12为传统方法测试网络侧工作模式udp组播接收总线侧发包的拓扑图。Fig. 12 is a topology diagram of traditional method testing network side working mode udp multicast receiving bus side sending packets.

具体实施方式Detailed ways

下面将结合本发明实施方式,对本发明实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式仅仅是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the implementation manners in the present invention, all other implementation manners obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.

实施例Example

提供一种总线设备的测试拓扑和分析方法,如图1所示,包括以下步骤:A test topology and analysis method of a bus device are provided, as shown in Figure 1, comprising the following steps:

S1,搭建总线设备物理测试环境,配置待测设备工作模式;S1, build a physical test environment for the bus device, and configure the working mode of the device under test;

S2,配置待测设备总线侧波特率,操作TCP/UDP工具开始发包;S2, configure the baud rate on the bus side of the device under test, and operate the TCP/UDP tool to start sending packets;

S3,达到发包时长后,TCP/UDP工具停止发包,采集数据并记录最终结果后,清除各节点数据,分析最终结果;S3, after the packet sending time is reached, the TCP/UDP tool stops sending packets, collects data and records the final result, clears the data of each node, and analyzes the final result;

S4,判断是否遍历所有波特率,若是则结束测试,否则重复步骤S2-S3。S4, judging whether to traverse all baud rates, if so, end the test, otherwise repeat steps S2-S3.

如图2所示,是本发明的一种总线设备的测试拓扑和分析方法的各阶段示意图,包括准备阶段、执行阶段、分析阶段和结束阶段。As shown in FIG. 2 , it is a schematic diagram of each stage of a bus device test topology and analysis method of the present invention, including a preparation stage, an execution stage, an analysis stage and an end stage.

准备阶段,即步骤S1具体包括:The preparatory stage, that is, step S1 specifically includes:

使用4台待测设备DUT-1、DUT-2、DUT-3和DUT-4级联,配置设备的IP,使用PC端包括TCP/UDP发包工具1和TCP/UDP发包工具2。Use 4 devices under test DUT-1, DUT-2, DUT-3 and DUT-4 to cascade, configure the IP of the device, and use the PC side to include TCP/UDP sending tool 1 and TCP/UDP sending tool 2.

待测设备可以为多个,本实施例使用4台仅为举例。There may be multiple devices to be tested, and the four devices used in this embodiment are only examples.

当待测设备网口数大于等于2时,拓扑图如图3所示,总线的连接和工作模式配置为:When the number of network ports of the device under test is greater than or equal to 2, the topology diagram is shown in Figure 3, and the connection and working mode of the bus are configured as follows:

TCP/UDP发包工具1和TCP/UDP发包工具2,工作模式为udp组播;TCP/UDP contract sending tool 1 and TCP/UDP contract sending tool 2, the working mode is udp multicast;

待测设备DUT-1的总线1网络侧工作模式为udp组播,总线1总线侧与总线2短接,总线2网络侧工作模式为tcp-server,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-1 is udp multicast, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is tcp-server, and the bus side of the bus 2 is shorted with the bus 1;

待测设备DUT-2的总线1网络侧工作模式为tcp-client,总线1总线侧与总线2短接,总线2网络侧工作模式为udp,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-2 is tcp-client, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is udp, and the bus side of the bus 2 is shorted with the bus 1;

待测设备DUT-3的总线1网络侧工作模式为udp,总线1总线侧与总线2短接,总线2网络侧工作模式为tcp-client,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-3 is udp, the bus side of the bus 1 is shorted to the bus 2, the working mode of the bus 2 network side is tcp-client, and the bus side of the bus 2 is shorted to the bus 1;

待测设备DUT-4的总线1网络侧工作模式为tcp-server,总线1总线侧与总线2短接,总线2网络侧工作模式为udp组播,总线2总线侧与总线1短接。The working mode of the bus 1 network side of the device under test DUT-4 is tcp-server, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is udp multicast, and the bus side of the bus 2 is shorted with the bus 1.

当待测设备网口数为1时,拓扑图如图4所示,4台待测设备通过一台辅助设备交换机做来完成级联。When the number of network ports of the device under test is 1, the topology diagram is shown in Figure 4, and 4 devices under test are cascaded through an auxiliary device switch.

执行阶段,即步骤S2具体包括:The execution stage, that is, step S2 specifically includes:

配置待测设备的波特率,每轮测试各个待测设备每路总线的波特率配置为相同值。Configure the baud rate of the device under test, and configure the baud rate of each bus of each device under test to the same value in each round of testing.

发包内容和发包时长根据待测设备的要求填写,使用TCP/UDP发包工具1进行发包。Fill in the content and duration of the packet according to the requirements of the device under test, and use the TCP/UDP packet sending tool 1 to send the packet.

分析阶段,即步骤S3具体包括:The analysis stage, that is, step S3 specifically includes:

登录待测设备web页面,TCP/UDP发包工具1和TCP/UDP发包工具2的窗口,统计TCP/UDP发包工具1的发包字节数,TCP/UDP发包工具2的收包字节数以及待测设备每路总线网络侧和总线侧接收和发送的字节数,记录统计结果。Log in to the web page of the device under test, the windows of TCP/UDP sending tool 1 and TCP/UDP sending tool 2, and count the number of bytes sent by TCP/UDP sending tool 1, the number of bytes received by TCP/UDP sending tool 2, and the pending Measure the number of bytes received and sent by the network side and bus side of each bus of the device, and record the statistical results.

分析最终结果包括:The final results of the analysis include:

当TCP/UDP发包工具1发包字节数不等于待测设备DUT-1总线1网络侧接收字节数时,记录“PC与DUT-1物理链路存在问题”;When the number of bytes sent by the TCP/UDP packet sending tool 1 is not equal to the number of bytes received by the network side of the DUT-1 bus 1 of the device under test, record "there is a problem with the physical link between the PC and DUT-1";

当待测设备DUT-1总线1网络侧接收字节数不等于待测设备DUT-1总线1总线侧发送字节数时,记录“udp组播模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-1 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-1 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in udp multicast mode";

当待测设备DUT-1总线1总线侧发送字节数不等于待测设备DUT-1总线2总线侧接收字节数时,记录“DUT-1总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-1 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-1 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-1 bus 1 and bus 2";

当待测设备DUT-1总线2总线侧接收字节数不等于待测设备DUT-1总线2网络侧发送字节数时,记录“tcp-server模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-1 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-1 bus 2 network side of the device under test, record "there is a problem in forwarding from the bus side to the network side in tcp-server mode";

当待测设备DUT-1总线2网络侧发送字节数不等于待测设备DUT-2总线1网络侧接收字节数时,记录“DUT-1与DUT-2物理链路存在问题”;When the number of bytes sent by the DUT-1 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-2 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-1 and DUT-2";

当待测设备DUT-2总线1网络侧接收字节数不等于待测设备DUT-2总线1总线侧发送字节数时,记录“tcp-client模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-2 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-2 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in tcp-client mode";

当待测设备DUT-2总线1总线侧发送字节数不等于待测设备DUT-2总线2总线侧接收字节数时,记录“DUT-2总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-2 bus side of the device under test is not equal to the number of bytes received by the DUT-2 bus side of the device under test, record "there is a problem with the physical link between DUT-2 bus 1 and bus 2";

当待测设备DUT-2总线2总线侧接收字节数不等于待测设备DUT-2总线2网络侧发送字节数时,记录“udp模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-2 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-2 bus 2 network side of the device under test, record "there is a problem in the forwarding from the bus side to the network side in udp mode";

当待测设备DUT-2总线2网络侧发送字节数不等于待测设备DUT-3总线1网络侧接收字节数时,记录“DUT-2与DUT-3物理链路存在问题”。When the number of bytes sent by the DUT-2 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-3 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-2 and DUT-3".

当待测设备DUT-3总线1网络侧接收字节数不等于待测设备DUT-3总线1总线侧发送字节数时,记录“udp模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-3 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-3 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in udp mode";

当待测设备DUT-3总线1总线侧发送字节数不等于待测设备DUT-3总线2总线侧接收字节数时,记录“DUT-3总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-3 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-3 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-3 bus 1 and bus 2";

当待测设备DUT-3总线2总线侧接收字节数不等于待测设备DUT-3总线2网络侧发送字节数时,记录“tcp-client模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-3 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-3 bus 2 network side of the device under test, record "there is a problem in forwarding from the bus side to the network side in tcp-client mode";

当待测设备DUT-3总线2网络侧发送字节数不等于待测设备DUT-4总线1网络侧接收字节数时,记录“DUT-3与DUT-4物理链路存在问题”;When the number of bytes sent by the DUT-3 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-4 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-3 and DUT-4";

当待测设备DUT-4总线1网络侧接收字节数不等于待测设备DUT-4总线1总线侧发送字节数时,记录“tcp-server模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-4 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-4 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in tcp-server mode";

当待测设备DUT-4总线1总线侧发送字节数不等于待测设备DUT-4总线2总线侧接收字节数时,记录“DUT-4总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-4 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-4 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-4 bus 1 and bus 2";

当待测设备DUT-4总线2总线侧接收字节数不等于待测设备DUT-4总线2网络侧发送字节数时,记录“udp组播模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-4 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-4 bus 2 network side of the device under test, record "there is a problem in the forwarding from the bus side to the network side in udp multicast mode";

当待测设备DUT-4总线2网络侧发送字节数不等于TCP/UDP发包工具2接收字节数时,记录“DUT-4与pc转发链路存在问题”。When the number of bytes sent by the network side of the DUT-4 bus 2 of the device under test is not equal to the number of bytes received by the TCP/UDP packet sending tool 2, record "there is a problem with the forwarding link between DUT-4 and pc".

结束阶段,即步骤S4具体包括:The end stage, that is, step S4 specifically includes:

每轮测试覆盖一种波特率,当需要测试的波特率都覆盖时,结束测试。Each round of testing covers one baud rate, and when all the baud rates to be tested are covered, the test ends.

以总线侧波特率为10K为例,对于传统方法测试总线,测试其他波特率需要重复以下场景,有几种波特率就需要重复几次,而切换场景需要修改环境配置和待测设备DUT配置;Taking the baud rate of the bus side as 10K as an example, for the traditional method of testing the bus, the following scenarios need to be repeated for testing other baud rates. If there are several baud rates, it needs to be repeated several times, and the switching scene needs to modify the environment configuration and the device under test. DUT configuration;

场景1-网络侧工作模式tcp-server,网络侧向总线侧发包,拓扑图如图5所示,Scenario 1 - The network side works in tcp-server mode, and the network side sends packets to the bus side. The topology diagram is shown in Figure 5.

场景2-网络侧工作模式tcp-server,总线侧向网络侧发包,拓扑图如图6所示,Scenario 2 - The working mode of the network side is tcp-server, and the bus side sends packets to the network side. The topology diagram is shown in Figure 6.

场景3-网络侧工作模式tcp-client,网络侧向总线侧发包,拓扑图如图7所示,Scenario 3 - The network side works in tcp-client mode, and the network side sends packets to the bus side. The topology diagram is shown in Figure 7.

场景4-网络侧工作模式tcp-client,总线侧向网络侧发包,拓扑图如图8所示,Scenario 4 - The working mode of the network side is tcp-client, the bus side sends packets to the network side, and the topology diagram is shown in Figure 8.

场景5-网络侧工作模式udp,网络侧向总线侧发包,拓扑图如图9所示,Scenario 5 - The network side works in udp mode, and the network side sends packets to the bus side. The topology diagram is shown in Figure 9.

场景6-网络侧工作模式udp,总线侧向网络侧发包,拓扑图如图10所示,Scenario 6 - The network side works in udp mode, and the bus side sends packets to the network side. The topology diagram is shown in Figure 10.

场景7-网络侧工作模式udp组播,网络侧向总线侧发包,拓扑图如图11所示,Scenario 7 - network side working mode udp multicast, the network side sends packets to the bus side, the topology diagram is shown in Figure 11,

场景8-网络侧工作模式udp组播,总线侧向网络侧发包,拓扑图如图12所示,Scenario 8 - network side working mode udp multicast, the bus side sends packets to the network side, the topology diagram is shown in Figure 12,

且传统方法测试总线,包括以下步骤:And the traditional method of testing the bus includes the following steps:

1)搭建物理环境;1) Build a physical environment;

2)配置网络侧工作在一种工作模式;2) Configure the network side to work in a working mode;

3)配置TCP/UDP工具工作在相对应的工作模式;3) Configure the TCP/UDP tool to work in the corresponding working mode;

4)使用TCP/UDP发包工具向总线侧发包;4) Send a packet to the bus side using the TCP/UDP packet sending tool;

5)记录网络侧发包数和总线侧收包数;5) Record the number of packets sent by the network side and the number of packets received by the bus side;

6)清除统计结果;6) Clear statistical results;

7)使用总线发包工具向网络侧发包;7) Use the bus contract sending tool to send the contract to the network side;

8)记录总线侧发包数和网络侧收包数;8) Record the number of packets sent by the bus side and the number of packets received by the network side;

9)清除统计结果;9) Clear statistical results;

10)分析该轮测试结果;10) Analyze the test results of this round;

11)修改网络侧工作在另一种工作模式,重复步骤3-10;11) Modify the network side to work in another working mode, repeat steps 3-10;

12)修改总线工作波特率,重复步骤2-11。12) Modify the bus baud rate, repeat steps 2-11.

显然,传统方法测试总线的步骤过于繁琐,需要反复修改测试环境,每轮测试结束还需要人为分析结果,效率和可靠性难以保证。Obviously, the traditional method of testing the bus is too cumbersome, requiring repeated modification of the test environment, and manual analysis of the results after each round of testing, making it difficult to guarantee efficiency and reliability.

而采用本发明的一种总线设备的测试拓扑和分析方法,如图3所示,使用4台待测设备级联,配置设备的IP,而对于上述场景1-8,对于10K波特率,本发明仅需要配置一次环境,就可以测试得到TCP/UDP发包工具1和2的发包、收包字节数、4台待测设备每路总线网络侧和总线侧接收和发送字节数,从而判断pc、各设备内部和各设备之间的连接链路是否正常。每轮测试覆盖一种波特率,在需要对其他波特率进行测试时,开启新一轮测试即可。And adopt the test topology and analysis method of a kind of bus equipment of the present invention, as shown in Figure 3, use 4 equipments to be tested to cascade, configure the IP of equipment, and for above-mentioned scene 1-8, for 10K baud rate, The present invention only needs to configure the environment once, and can test and obtain the number of bytes sent and received by TCP/UDP contract sending tools 1 and 2, and the number of bytes received and sent by each bus network side and bus side of 4 devices to be tested, thereby Determine whether the connection links between the PC, each device, and each device are normal. Each round of testing covers one baud rate, and when other baud rates need to be tested, just start a new round of testing.

分析阶段的结果分析还可使用脚本完成,或者使用Excel公式完成。具体分析算法如下:Analysis of the results of the analysis phase can also be done using scripts, or using Excel formulas. The specific analysis algorithm is as follows:

IfTx1!=Rx11:IfTx1! =Rx11:

Print("pc与DUT-1物理链路存在问题")Print("there is a problem with the physical link between pc and DUT-1")

IfRx11!=Tx12:IfRx11! =Tx12:

Print("udp组播模式下网络侧向总线侧转发存在问题")Print("There is a problem in forwarding from the network side to the bus side in udp multicast mode")

IfTx12!=Rx13:IfTx12! =Rx13:

Print("DUT-1总线1与总线2物理链路存在问题")Print("There is a problem with the physical link between bus 1 and bus 2 of DUT-1")

IfRx13!=Tx14:IfRx13! =Tx14:

Print("tcp-server模式下总线侧向网络侧转发存在问题")Print("There is a problem in forwarding from the bus side to the network side in tcp-server mode")

IfTx14!=Rx21:IfTx14! =Rx21:

Print("DUT-1与DUT-2物理链路存在问题")Print("There is a problem with the physical link between DUT-1 and DUT-2")

IfRx21!=Tx22:IfRx21! =Tx22:

Print("tcp-client模式下网络侧向总线侧转发存在问题")Print("There is a problem in forwarding from the network side to the bus side in tcp-client mode")

IfTx22!=Rx23:IfTx22! =Rx23:

Print("DUT-2总线1与总线2物理链路存在问题")Print("There is a problem with the physical link between DUT-2 bus 1 and bus 2")

IfRx23!=Tx24:IfRx23! =Tx24:

Print("udp模式下总线侧向网络侧转发存在问题")Print("There is a problem in forwarding from the bus side to the network side in udp mode")

IfTx24!=Rx31:IfTx24! =Rx31:

Print("DUT-2与DUT-3物理链路存在问题")Print("There is a problem with the physical link between DUT-2 and DUT-3")

IfRx31!=Tx32:IfRx31! =Tx32:

Print("udp模式下网络侧向总线侧转发存在问题")Print("There is a problem in forwarding from the network side to the bus side in udp mode")

IfTx32!=Rx33:IfTx32! =Rx33:

Print("DUT-3总线1与总线2物理链路存在问题")Print("There is a problem with the physical link between bus 1 and bus 2 of DUT-3")

IfRx33!=Tx34:IfRx33! =Tx34:

Print("tcp-client模式下总线侧向网络侧转发存在问题")Print("There is a problem in forwarding from the bus side to the network side in tcp-client mode")

IfTx34!=Rx41:IfTx34! =Rx41:

Print("DUT-3与DUT-4物理链路存在问题")Print("There is a problem with the physical link between DUT-3 and DUT-4")

IfRx41!=Tx42:IfRx41! =Tx42:

Print("tcp-server模式下网络侧向总线侧转发存在问题")Print("There is a problem in forwarding from the network side to the bus side in tcp-server mode")

IfTx42!=Rx43:IfTx42! =Rx43:

Print("DUT-4总线1与总线2物理链路存在问题")Print("There is a problem with the physical link between DUT-4 bus 1 and bus 2")

IfRx43!=Tx44:If Rx43! =Tx44:

Print("udp组播模式下总线侧向网络侧转发存在问题")Print("There is a problem in forwarding from the bus side to the network side in udp multicast mode")

IfTx44!=Rx2:IfTx44! =Rx2:

Print("pc与DUT-4转发链路存在问题")Print("There is a problem with the forwarding link between pc and DUT-4")

上述算法中参数由图3可得。The parameters in the above algorithm can be obtained from Figure 3.

采用本发明提供的方法,只需要在测试开始前搭建一次测试环境就可以完成所有测试,过程中不需要重新搭建测试环境或者修改环境中的参数,减少了重复劳动;另外,该方法提供了两种物理拓扑环境,如图3和图4所示,既可以满足具有多个网口的待测设备,也可以适应只有一个网口的待测设备,适应性强;同时,结合本发明提供的分析方法,可以分析待测设备具体哪种工作模式哪个转发方向出现了问题,便于快速定位问题。With the method provided by the present invention, all the tests can be completed only by setting up a test environment once before the test starts, and there is no need to re-build the test environment or modify the parameters in the environment in the process, reducing duplication of labor; in addition, the method provides two A physical topology environment, as shown in Figure 3 and Figure 4, can satisfy the equipment under test with multiple network ports, and can also adapt to the equipment under test with only one network port, and has strong adaptability; at the same time, combined with the The analysis method can analyze which working mode and which forwarding direction of the device under test have problems, so as to quickly locate the problem.

以上所述仅为本发明的较佳实施方式而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (10)

1.一种总线设备的测试拓扑和分析方法,其特征在于,包括以下步骤:1. a test topology and analysis method of bus equipment, is characterized in that, comprises the following steps: S1,搭建总线设备物理测试环境,配置待测设备工作模式;S1, build a physical test environment for the bus device, and configure the working mode of the device under test; S2,配置待测设备总线侧波特率,操作TCP/UDP工具开始发包;S2, configure the baud rate on the bus side of the device under test, and operate the TCP/UDP tool to start sending packets; S3,达到发包时长后,TCP/UDP工具停止发包,采集数据并记录最终结果后,清除各节点数据,分析最终结果;S3, after the packet sending time is reached, the TCP/UDP tool stops sending packets, collects data and records the final result, clears the data of each node, and analyzes the final result; S4,判断是否遍历所有波特率,若是则结束测试,否则重复步骤S2-S3。S4, judging whether to traverse all baud rates, if so, end the test, otherwise repeat steps S2-S3. 2.如权利要求1所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S1具体包括:2. the test topology and analysis method of a kind of bus equipment as claimed in claim 1, is characterized in that, described step S1 specifically comprises: 使用4台待测设备DUT-1、DUT-2、DUT-3和DUT-4级联,配置设备的IP,使用PC端包括TCP/UDP发包工具1和TCP/UDP发包工具2。Use 4 devices under test DUT-1, DUT-2, DUT-3 and DUT-4 to cascade, configure the IP of the device, and use the PC side to include TCP/UDP sending tool 1 and TCP/UDP sending tool 2. 3.如权利要求2所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S1还包括:3. the test topology and analysis method of a kind of bus equipment as claimed in claim 2, is characterized in that, described step S1 also comprises: 当待测设备网口数大于等于2时,总线的连接和工作模式配置为:When the number of network ports of the device under test is greater than or equal to 2, the connection and working mode configuration of the bus is as follows: TCP/UDP发包工具1和TCP/UDP发包工具2,工作模式为udp组播;TCP/UDP contract sending tool 1 and TCP/UDP contract sending tool 2, the working mode is udp multicast; 待测设备DUT-1的总线1网络侧工作模式为udp组播,总线1总线侧与总线2短接,总线2网络侧工作模式为tcp-server,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-1 is udp multicast, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is tcp-server, and the bus side of the bus 2 is shorted with the bus 1; 待测设备DUT-2的总线1网络侧工作模式为tcp-client,总线1总线侧与总线2短接,总线2网络侧工作模式为udp,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-2 is tcp-client, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is udp, and the bus side of the bus 2 is shorted with the bus 1; 待测设备DUT-3的总线1网络侧工作模式为udp,总线1总线侧与总线2短接,总线2网络侧工作模式为tcp-client,总线2总线侧与总线1短接;The working mode of the bus 1 network side of the device under test DUT-3 is udp, the bus side of the bus 1 is shorted to the bus 2, the working mode of the bus 2 network side is tcp-client, and the bus side of the bus 2 is shorted to the bus 1; 待测设备DUT-4的总线1网络侧工作模式为tcp-server,总线1总线侧与总线2短接,总线2网络侧工作模式为udp组播,总线2总线侧与总线1短接。The working mode of the bus 1 network side of the device under test DUT-4 is tcp-server, the bus side of the bus 1 is shorted with the bus 2, the working mode of the bus 2 network side is udp multicast, and the bus side of the bus 2 is shorted with the bus 1. 4.如权利要求3所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S1还包括:4. the test topology and analysis method of a kind of bus equipment as claimed in claim 3, is characterized in that, described step S1 also comprises: 当待测设备网口数为1时,4台待测设备通过一台辅助设备交换机做来完成级联。When the number of network ports of the device under test is 1, 4 devices under test are cascaded through an auxiliary device switch. 5.如权利要求1所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S2具体包括:5. the test topology and analysis method of a kind of bus equipment as claimed in claim 1, is characterized in that, described step S2 specifically comprises: 配置待测设备的波特率,每轮测试各个待测设备每路总线的波特率配置为相同值。Configure the baud rate of the device under test, and configure the baud rate of each bus of each device under test to the same value in each round of testing. 6.如权利要求5所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S2还包括:6. the test topology and analysis method of a kind of bus equipment as claimed in claim 5, is characterized in that, described step S2 also comprises: 发包内容和发包时长根据待测设备的要求填写,使用TCP/UDP发包工具1进行发包。Fill in the content and duration of the packet according to the requirements of the device under test, and use the TCP/UDP packet sending tool 1 to send the packet. 7.如权利要求6所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S3具体包括:7. the test topology and analysis method of a kind of bus equipment as claimed in claim 6, is characterized in that, described step S3 specifically comprises: 登录待测设备web页面,TCP/UDP发包工具1和TCP/UDP发包工具2的窗口,统计TCP/UDP发包工具1的发包字节数,TCP/UDP发包工具2的收包字节数以及待测设备每路总线网络侧和总线侧接收和发送的字节数,记录统计结果。Log in to the web page of the device under test, the windows of TCP/UDP sending tool 1 and TCP/UDP sending tool 2, and count the number of bytes sent by TCP/UDP sending tool 1, the number of bytes received by TCP/UDP sending tool 2, and the pending Measure the number of bytes received and sent by the network side and bus side of each bus of the device, and record the statistical results. 8.如权利要求7所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S3还包括:8. the test topology and analysis method of a kind of bus equipment as claimed in claim 7, is characterized in that, described step S3 also comprises: 分析最终结果包括:The final results of the analysis include: 当TCP/UDP发包工具1发包字节数不等于待测设备DUT-1总线1网络侧接收字节数时,记录“PC与DUT-1物理链路存在问题”;When the number of bytes sent by the TCP/UDP packet sending tool 1 is not equal to the number of bytes received by the network side of the DUT-1 bus 1 of the device under test, record "there is a problem with the physical link between the PC and DUT-1"; 当待测设备DUT-1总线1网络侧接收字节数不等于待测设备DUT-1总线1总线侧发送字节数时,记录“udp组播模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-1 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-1 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in udp multicast mode"; 当待测设备DUT-1总线1总线侧发送字节数不等于待测设备DUT-1总线2总线侧接收字节数时,记录“DUT-1总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-1 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-1 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-1 bus 1 and bus 2"; 当待测设备DUT-1总线2总线侧接收字节数不等于待测设备DUT-1总线2网络侧发送字节数时,记录“tcp-server模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-1 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-1 bus 2 network side of the device under test, record "there is a problem in forwarding from the bus side to the network side in tcp-server mode"; 当待测设备DUT-1总线2网络侧发送字节数不等于待测设备DUT-2总线1网络侧接收字节数时,记录“DUT-1与DUT-2物理链路存在问题”;When the number of bytes sent by the DUT-1 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-2 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-1 and DUT-2"; 当待测设备DUT-2总线1网络侧接收字节数不等于待测设备DUT-2总线1总线侧发送字节数时,记录“tcp-client模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-2 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-2 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in tcp-client mode"; 当待测设备DUT-2总线1总线侧发送字节数不等于待测设备DUT-2总线2总线侧接收字节数时,记录“DUT-2总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-2 bus side of the device under test is not equal to the number of bytes received by the DUT-2 bus side of the device under test, record "there is a problem with the physical link between DUT-2 bus 1 and bus 2"; 当待测设备DUT-2总线2总线侧接收字节数不等于待测设备DUT-2总线2网络侧发送字节数时,记录“udp模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-2 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-2 bus 2 network side of the device under test, record "there is a problem in the forwarding from the bus side to the network side in udp mode"; 当待测设备DUT-2总线2网络侧发送字节数不等于待测设备DUT-3总线1网络侧接收字节数时,记录“DUT-2与DUT-3物理链路存在问题”。When the number of bytes sent by the DUT-2 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-3 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-2 and DUT-3". 9.如权利要求8所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S3还包括:9. the test topology and analysis method of a kind of bus equipment as claimed in claim 8, is characterized in that, described step S3 also comprises: 当待测设备DUT-3总线1网络侧接收字节数不等于待测设备DUT-3总线1总线侧发送字节数时,记录“udp模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-3 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-3 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in udp mode"; 当待测设备DUT-3总线1总线侧发送字节数不等于待测设备DUT-3总线2总线侧接收字节数时,记录“DUT-3总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-3 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-3 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-3 bus 1 and bus 2"; 当待测设备DUT-3总线2总线侧接收字节数不等于待测设备DUT-3总线2网络侧发送字节数时,记录“tcp-client模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-3 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-3 bus 2 network side of the device under test, record "there is a problem in forwarding from the bus side to the network side in tcp-client mode"; 当待测设备DUT-3总线2网络侧发送字节数不等于待测设备DUT-4总线1网络侧接收字节数时,记录“DUT-3与DUT-4物理链路存在问题”;When the number of bytes sent by the DUT-3 bus 2 network side of the device under test is not equal to the number of bytes received by the DUT-4 bus 1 network side of the device under test, record "there is a problem with the physical link between DUT-3 and DUT-4"; 当待测设备DUT-4总线1网络侧接收字节数不等于待测设备DUT-4总线1总线侧发送字节数时,记录“tcp-server模式下网络侧向总线侧转发存在问题”;When the number of bytes received by the DUT-4 bus 1 network side of the device under test is not equal to the number of bytes sent by the DUT-4 bus 1 bus side of the device under test, record "There is a problem in forwarding from the network side to the bus side in tcp-server mode"; 当待测设备DUT-4总线1总线侧发送字节数不等于待测设备DUT-4总线2总线侧接收字节数时,记录“DUT-4总线1与总线2物理链路存在问题”;When the number of bytes sent by the DUT-4 bus 1 side of the device under test is not equal to the number of bytes received by the DUT-4 bus 2 side of the device under test, record "there is a problem with the physical link between DUT-4 bus 1 and bus 2"; 当待测设备DUT-4总线2总线侧接收字节数不等于待测设备DUT-4总线2网络侧发送字节数时,记录“udp组播模式下总线侧向网络侧转发存在问题”;When the number of bytes received by the DUT-4 bus 2 bus side of the device under test is not equal to the number of bytes sent by the DUT-4 bus 2 network side of the device under test, record "there is a problem in the forwarding from the bus side to the network side in udp multicast mode"; 当待测设备DUT-4总线2网络侧发送字节数不等于TCP/UDP发包工具2接收字节数时,记录“DUT-4与pc转发链路存在问题”。When the number of bytes sent by the network side of the DUT-4 bus 2 of the device under test is not equal to the number of bytes received by the TCP/UDP packet sending tool 2, record "there is a problem with the forwarding link between DUT-4 and pc". 10.如权利要求1所述的一种总线设备的测试拓扑和分析方法,其特征在于,所述步骤S4具体包括:10. the test topology and analysis method of a kind of bus equipment as claimed in claim 1, is characterized in that, described step S4 specifically comprises: 每轮测试覆盖一种波特率,当需要测试的波特率都覆盖时,结束测试。Each round of testing covers one baud rate, and when all the baud rates to be tested are covered, the test ends.
CN202211607215.0A 2022-12-14 2022-12-14 A Test Topology and Analysis Method of Bus Equipment Pending CN116032810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211607215.0A CN116032810A (en) 2022-12-14 2022-12-14 A Test Topology and Analysis Method of Bus Equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211607215.0A CN116032810A (en) 2022-12-14 2022-12-14 A Test Topology and Analysis Method of Bus Equipment

Publications (1)

Publication Number Publication Date
CN116032810A true CN116032810A (en) 2023-04-28

Family

ID=86071476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211607215.0A Pending CN116032810A (en) 2022-12-14 2022-12-14 A Test Topology and Analysis Method of Bus Equipment

Country Status (1)

Country Link
CN (1) CN116032810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119966858A (en) * 2025-04-03 2025-05-09 四川天邑康和通信股份有限公司 A method, device, equipment and medium for dispatching equipment of an OLT registration and streaming station

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144313A1 (en) * 2003-11-20 2005-06-30 International Business Machines Corporation Infiniband multicast operation in an LPAR environment
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN103647679A (en) * 2013-11-26 2014-03-19 上海斐讯数据通信技术有限公司 Automated topology dynamic mapping method and system
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN107562635A (en) * 2017-09-15 2018-01-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Embedded software test accessory system
CN113760773A (en) * 2021-09-23 2021-12-07 浪潮思科网络科技有限公司 Method, equipment and medium for automatically testing switch of software scheduling topology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050144313A1 (en) * 2003-11-20 2005-06-30 International Business Machines Corporation Infiniband multicast operation in an LPAR environment
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN103647679A (en) * 2013-11-26 2014-03-19 上海斐讯数据通信技术有限公司 Automated topology dynamic mapping method and system
CN107302477A (en) * 2017-08-09 2017-10-27 武汉微创光电股份有限公司 A kind of Ethernet switch interface test method
CN107562635A (en) * 2017-09-15 2018-01-09 西南电子技术研究所(中国电子科技集团公司第十研究所) Embedded software test accessory system
CN113760773A (en) * 2021-09-23 2021-12-07 浪潮思科网络科技有限公司 Method, equipment and medium for automatically testing switch of software scheduling topology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119966858A (en) * 2025-04-03 2025-05-09 四川天邑康和通信股份有限公司 A method, device, equipment and medium for dispatching equipment of an OLT registration and streaming station

Similar Documents

Publication Publication Date Title
US11258719B1 (en) Methods, systems and computer readable media for network congestion control tuning
US6958977B1 (en) Network packet tracking
CN104980317B (en) A kind of Auto-Test System and method of testing of dispatch data net equipment
US7428664B2 (en) Protocol replay system
CN101958810B (en) Method and system used for realizing fault positioning of intermediate node autonomously
CN108683558B (en) Railway safety communication protocol consistency testing method
CN1972219A (en) Network performance test method, system and network device
US9473346B2 (en) System and method for network path validation
Naing et al. Evaluation of tcp and udp traffic over software-defined networking
CN101854648A (en) Test method, device and test system for single board of communication equipment
CN113067738A (en) Network topology visualization function equipment compatibility testing method and system
CN106302027A (en) A kind of SDN controller performance tester and method of testing
CN106571979A (en) Link detection method for process-level switch of intelligent substation and switch
CN116032810A (en) A Test Topology and Analysis Method of Bus Equipment
CN100438452C (en) Method and device for detecting signaling or media path failure in next generation network
CN112003747A (en) Fault positioning method of cloud virtual gateway
CN112165408B (en) A test method and device for simulating a customer serial deployment environment
CN102209010A (en) A network testing system and method
CN107347014B (en) A network fault detection method and system
CN109005082A (en) A method and device for capturing Ethernet messages using CRC check fields
CN106301994B (en) Network communication abnormity testing method and device
CN112511375B (en) Automatic test method for intelligent substation process level GOOSE dual-network receiving mechanism
CN114765633A (en) Network message analysis method and device based on train real-time Ethernet protocol
CN106100805A (en) RJ45 network port test loop fixture and RJ45 network port test method
CN101331717B (en) Method and system for transmitting data in packet-based network

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