[go: up one dir, main page]

CN113726592B - A transmission delay testing method, system and related components of an edge server - Google Patents

A transmission delay testing method, system and related components of an edge server Download PDF

Info

Publication number
CN113726592B
CN113726592B CN202110876905.5A CN202110876905A CN113726592B CN 113726592 B CN113726592 B CN 113726592B CN 202110876905 A CN202110876905 A CN 202110876905A CN 113726592 B CN113726592 B CN 113726592B
Authority
CN
China
Prior art keywords
interface
test
edge server
time
transmission delay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110876905.5A
Other languages
Chinese (zh)
Other versions
CN113726592A (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 CN202110876905.5A priority Critical patent/CN113726592B/en
Publication of CN113726592A publication Critical patent/CN113726592A/en
Application granted granted Critical
Publication of CN113726592B publication Critical patent/CN113726592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a transmission delay test method, a transmission delay test system, electronic equipment and a computer readable storage medium of an edge server, wherein the method comprises the following steps: determining any two different Ethernet interfaces as a first interface and a second interface; sending a test message to a first test interface of an edge server through a first interface, and recording sending time, so that the edge server adjusts current route configuration according to interface information, and a feedback message corresponding to the test message is returned to a second interface through a second test interface of the current route configuration; acquiring the receiving time of the feedback message, and calculating the delay time of the edge server according to the sending time and the receiving time; and when the delay time is not in the preset time range, judging that the design of the edge server is unreasonable. According to the method and the device, the transmission delay of any two Ethernet interfaces of the edge server is tested through the testing device, so that whether the design of the edge server is reasonable or not is judged, and the testing flexibility is improved.

Description

一种边缘服务器的传输延迟测试方法、系统及相关组件A transmission delay test method, system and related components of an edge server

技术领域technical field

本申请涉及边缘服务器领域,特别涉及一种边缘服务器的传输延迟测试方法、系统及相关组件。The present application relates to the field of edge servers, in particular to a transmission delay testing method, system and related components of an edge server.

背景技术Background technique

近年来,随着万物互联时代的到来和无线网络的普及,网络边缘的设备数量及其产生的数据量都急剧增长。在这种情况下,以云计算为代表的集中式处理模式将无法高效地处理边缘设备产生的数据,边缘服务器应运而生。由于云计算大多采用集中式管理的方法,这使云服务创造出较高的经济效益,而在万物互联的背景下,应用服务需要低延时、高可靠性以及数据安全,而传统云计算技术无法满足终端侧“大连接、低时延、大带宽”的需求问题,边缘计算为此得到了充分关注。相比云计算在大数据处理分析方面的优势,边缘计算在低延时与高可靠的场景中有着云计算无法替代的优势。它不仅能够解决云计算网络带宽与计算吞吐量的性能瓶颈,还能够更实时地处理终端设备的海量“小数据”,并在保证终端的数据安全。In recent years, with the advent of the Internet of Everything era and the popularity of wireless networks, the number of devices at the edge of the network and the amount of data they generate have increased dramatically. In this case, the centralized processing model represented by cloud computing will not be able to efficiently process the data generated by edge devices, and edge servers will emerge as the times require. Since cloud computing mostly adopts centralized management methods, this enables cloud services to create higher economic benefits, and in the context of the Internet of Everything, application services require low latency, high reliability, and data security, while traditional cloud computing technologies Edge computing has received full attention because it cannot meet the requirements of "large connection, low latency, and large bandwidth" on the terminal side. Compared with the advantages of cloud computing in big data processing and analysis, edge computing has irreplaceable advantages of cloud computing in low-latency and high-reliability scenarios. It can not only solve the performance bottleneck of cloud computing network bandwidth and computing throughput, but also process massive "small data" of terminal devices in real time, and ensure the data security of terminals.

在边缘存储的应用场景中,边缘计算是将数据的处理、应用程序的运行,甚至一些功能服务的实现,由中心服务器下放到网络边缘的节点上,它将应用程序的数据或服务的某些部分从一个或多个中心节点转移到另一个逻辑端点。在边缘计算的应用场景中,边缘服务器的1PPS(One Pulse Per Second,每秒一个脉冲信号)信号、千兆以太网信号、10G/25G/40G等大于千兆带宽的以太网信号接口主要用来传输时间同步报文。为满足同步要求,需要边缘服务器的传输延迟满足要求,但是目前还没有一种对边缘服务器的传输延迟进行测试的方案。In the application scenario of edge storage, edge computing is to transfer the processing of data, the operation of applications, and even the realization of some functional services from the central server to the nodes at the edge of the network. Portions are transferred from one or more central nodes to another logical endpoint. In the application scenario of edge computing, the 1PPS (One Pulse Per Second, one pulse signal per second) signal, Gigabit Ethernet signal, 10G/25G/40G and other Ethernet signal interfaces larger than Gigabit bandwidth of the edge server are mainly used for Transmission time synchronization message. In order to meet the synchronization requirement, the transmission delay of the edge server needs to meet the requirement, but currently there is no solution for testing the transmission delay of the edge server.

因此,如何提供一种解决上述技术问题的方案是本领域技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present.

发明内容Contents of the invention

本申请的目的是提供一种边缘服务器的传输延迟测试方法、系统、电子设备及计算机可读存储介质,通过测试装置对边缘服务器的任意两个以太网接口的传输延迟进行测试,从而判断边缘服务器的设计是否合理,提高测试灵活性。The purpose of this application is to provide a transmission delay testing method, system, electronic equipment, and computer-readable storage medium of an edge server. The transmission delay of any two Ethernet interfaces of the edge server is tested by the test device, thereby judging the transmission delay of the edge server. Whether the design is reasonable and improve test flexibility.

为解决上述技术问题,本申请提供了一种边缘服务器的传输延迟测试方法,应用于测试装置中的控制芯片,所述测试装置还包括与所述控制芯片连接的多个以太网信号接口,该传输延迟测试方法包括:In order to solve the above technical problems, the present application provides a transmission delay testing method of an edge server, which is applied to the control chip in the test device, and the test device also includes a plurality of Ethernet signal interfaces connected to the control chip. Transmission delay test methods include:

确定任意两个不同的所述以太网接口作为第一接口和第二接口;Determining any two different Ethernet interfaces as the first interface and the second interface;

通过所述第一接口向所述边缘服务器的第一测试接口发送测试报文,并记录发送时间,所述测试报文包括所述第二接口的接口信息,以便所述边缘服务器根据所述接口信息调整当前路由配置,将所述测试报文对应的反馈报文通过所述当前路由配置的第二测试接口回传至所述第二接口;Send a test message to the first test interface of the edge server through the first interface, and record the sending time, the test message includes the interface information of the second interface, so that the edge server according to the interface information to adjust the current routing configuration, and return the feedback message corresponding to the test message to the second interface through the second test interface of the current routing configuration;

获取接收到所述反馈报文的接收时间,根据所述发送时间和所述接收时间计算所述边缘服务器的延迟时间;Acquire the receiving time of receiving the feedback message, and calculate the delay time of the edge server according to the sending time and the receiving time;

当所述延迟时间未处于预设时间范围内,判定所述边缘服务器设计不合理。When the delay time is not within the preset time range, it is determined that the design of the edge server is unreasonable.

可选的,所述控制芯片为型号为ZYNC-7000的FPGA芯片。Optionally, the control chip is a ZYNC-7000 FPGA chip.

可选的,多个所述以太网接口包括一个或多个SFP接口以及一个或多个RJ45接口。Optionally, the plurality of Ethernet interfaces include one or more SFP interfaces and one or more RJ45 interfaces.

可选的,所述测试报文根据北斗发送的同步数据得到。Optionally, the test message is obtained according to the synchronization data sent by Beidou.

可选的,所述根据所述发送时间和所述接收时间计算第一接口和所述第二接口的延迟时间之后,该传输延迟测试方法还包括:Optionally, after the delay time of the first interface and the second interface is calculated according to the sending time and the receiving time, the transmission delay testing method further includes:

当所述延迟时间未处于预设时间范围内,生成告警提示信息,所述告警提示信息包括所述第二接口的接口信息及所述第一接口的接口信息。When the delay time is not within the preset time range, alarm prompt information is generated, where the alarm prompt information includes interface information of the second interface and interface information of the first interface.

为解决上述技术问题,本申请提供了一种边缘服务器的传输延迟测试系统,应用于测试装置中的控制芯片,所述测试装置还包括与所述控制芯片连接的多个以太网信号接口,该传输延迟测试系统包括:In order to solve the above technical problems, the present application provides a transmission delay test system of an edge server, which is applied to the control chip in the test device, and the test device also includes a plurality of Ethernet signal interfaces connected to the control chip. Transmission delay test system includes:

确定模块,用于确定任意两个不同的所述以太网接口作为第一接口和第二接口;A determining module, configured to determine any two different Ethernet interfaces as the first interface and the second interface;

输出模块,用于通过所述第一接口向所述边缘服务器的第一测试接口发送测试报文,并记录发送时间,所述测试报文包括所述第二接口的接口信息,以便所述边缘服务器根据所述接口信息调整当前路由配置,将所述测试报文对应的反馈报文通过所述当前路由配置的第二测试接口回传至所述第二接口;An output module, configured to send a test message to the first test interface of the edge server through the first interface, and record the sending time, the test message includes the interface information of the second interface, so that the edge server The server adjusts the current routing configuration according to the interface information, and returns the feedback message corresponding to the test message to the second interface through the second test interface of the current routing configuration;

接收模块,用于获取接收到所述反馈报文的接收时间,根据所述发送时间和所述接收时间计算所述边缘服务器的延迟时间;A receiving module, configured to obtain the receiving time of receiving the feedback message, and calculate the delay time of the edge server according to the sending time and the receiving time;

判定模块,用于当所述延迟时间未处于预设时间范围内,判定所述边缘服务器设计不合理。A judging module, configured to judge that the design of the edge server is unreasonable when the delay time is not within a preset time range.

可选的,所述控制芯片为型号为ZYNC-7000的FPGA芯片。Optionally, the control chip is a ZYNC-7000 FPGA chip.

可选的,多个所述以太网接口包括一个或多个SFP接口以及一个或多个RJ45接口。Optionally, the plurality of Ethernet interfaces include one or more SFP interfaces and one or more RJ45 interfaces.

为解决上述技术问题,本申请还提供了一种电子设备,包括:In order to solve the above technical problems, the present application also provides an electronic device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上文任意一项所述的传输延迟测试方法的步骤。A processor, configured to implement the steps of the transmission delay testing method described in any one of the above when executing the computer program.

为解决上述技术问题,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上文任意一项所述的传输延迟测试方法的步骤。In order to solve the above-mentioned technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it realizes any of the above-mentioned The steps of the transmission delay test method.

本申请提供了一种边缘服务器的传输延迟测试方法,通过测试装置对边缘服务器的任意两个以太网接口的传输延迟进行测试,测试装置通过第一接口向边缘服务器发送测试报文,并记录发送时间,测试报文包括第二接口的接口信息,以便边缘服务器按照该接口信息配置当前路由配置,提高测试灵活性,然后边缘服务器将测试报文对应的反馈报文按照当前路由设置回传至测试装置的第二接口,测试装置根据接收到反馈报文的时间和之前记录的发送时间即可得到边缘服务器中第一测试接口和第二测试接口之间的延迟时间,从而根据延迟时间是否超限确定边缘服务器的设计是否合理。本申请还提供了一种边缘服务器的传输延迟测试系统、电子设备及计算机可读存储介质,具有和上述传输延迟测试方法相同的有益效果。This application provides a method for testing transmission delay of an edge server. The transmission delay of any two Ethernet interfaces of the edge server is tested by a test device. The test device sends a test message to the edge server through the first interface, and records the sent Time, the test message includes the interface information of the second interface, so that the edge server can configure the current routing configuration according to the interface information, which improves the test flexibility, and then the edge server returns the feedback message corresponding to the test message to the test interface according to the current routing settings. The second interface of the device, the test device can obtain the delay time between the first test interface and the second test interface in the edge server according to the time of receiving the feedback message and the previously recorded sending time, and then according to whether the delay time exceeds the limit Determine if the edge server design is sound. The present application also provides a transmission delay testing system of an edge server, an electronic device, and a computer-readable storage medium, which have the same beneficial effect as the above-mentioned transmission delay testing method.

附图说明Description of drawings

为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本申请所提供的一种边缘服务器的传输延迟测试方法;Fig. 1 is a transmission delay testing method of an edge server provided by the present application;

图2为本申请所提供的一种边缘服务器的结构示意图;FIG. 2 is a schematic structural diagram of an edge server provided by the present application;

图3为本申请所提供的一种测试装置的结构示意图;Fig. 3 is a schematic structural view of a test device provided by the present application;

图4为本申请所提供的一种测试装置和边缘服务器的连接结构示意图;FIG. 4 is a schematic diagram of a connection structure between a test device and an edge server provided by the present application;

图5为本申请所提供的一种边缘服务器的传输延迟测试装置的结构示意图。FIG. 5 is a schematic structural diagram of an edge server transmission delay testing device provided by the present application.

具体实施方式Detailed ways

本申请的核心是提供一种边缘服务器的传输延迟测试方法、系统、电子设备及计算机可读存储介质,通过测试装置对边缘服务器的任意两个以太网接口的传输延迟进行测试,从而判断边缘服务器的设计是否合理,提高测试灵活性。The core of this application is to provide a transmission delay testing method, system, electronic equipment, and computer-readable storage medium of an edge server. The transmission delay of any two Ethernet interfaces of the edge server is tested by the test device, thereby judging the edge server Whether the design is reasonable and improve test flexibility.

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

请参照图1,图1为本申请所提供的一种边缘服务器的传输延迟测试方法的步骤流程图,该传输延迟测试方法包括:Please refer to FIG. 1. FIG. 1 is a flow chart of the steps of a transmission delay testing method of an edge server provided by the present application. The transmission delay testing method includes:

S101:确定任意两个不同的以太网接口作为第一接口和第二接口;S101: Determine any two different Ethernet interfaces as the first interface and the second interface;

S102:通过第一接口向边缘服务器的第一测试接口发送测试报文,并记录发送时间,测试报文包括第二接口的接口信息,以便边缘服务器根据接口信息调整当前路由配置,将测试报文对应的反馈报文通过当前路由配置的第二测试接口回传至第二接口;S102: Send a test message to the first test interface of the edge server through the first interface, and record the sending time, the test message includes the interface information of the second interface, so that the edge server can adjust the current routing configuration according to the interface information, and send the test message The corresponding feedback message is sent back to the second interface through the second test interface of the current routing configuration;

S103:获取接收到反馈报文的接收时间,根据发送时间和接收时间计算边缘服务器的延迟时间;S103: Obtain the receiving time of receiving the feedback message, and calculate the delay time of the edge server according to the sending time and receiving time;

S104:当延迟时间未处于预设时间范围内,判定边缘服务器设计不合理。S104: When the delay time is not within the preset time range, it is determined that the design of the edge server is unreasonable.

首先需要说明的是,边缘服务器包括多个以太网接口,分别用于传输1PPS信号、千兆以太网信号、10G/25G/40G等大于千兆带宽的以太网信号,本申请中对边缘服务器的传输延迟的测试实际上就对边缘服务器任意两个不同以外网接口的传输延迟的测试。参照图2所示,图2为一种边缘服务器的结构示意图,包括2个SFP接口、3个RJ45接口,其中,SFP接口1和RJ45接口1可以用来连接设备1和设备2,设备1和设备2是其他边缘服务器。图2所示的边缘服务器采用intel的Xeon-D平台CPU,其中,Xeon-D通过SFP链路连接到SFP(Small Form-factor Pluggable,小型化可热插拔模块)接口1,通过PCIE(Peripheral ComponentInterconnect Express,高速串行计算机扩展总线)链路连到一个网卡芯片,图2中的MAC(Media Access Control,媒体访问控制子层协议),MAC通过MDI(Media DependentInterface,介质依赖接口)链路连接到RJ45接口1,通过Xeon-D和MAC分别通过1PPS IN/OUT双向链路连接到一个Buffer芯片,Buffer芯片出2路1PPS IN/OUT,分别接到了RS485芯片和1个PCIE Slot槽位,RS485芯片将1PPS IN/OUT由单端转换成差分,接到RJ45接口2,PCIESlot上插上网卡,图2中的NIC(Network Interface Controller,网卡),NIC出1个SFP接口2和RJ45接口3。First of all, it needs to be explained that the edge server includes multiple Ethernet interfaces, which are respectively used to transmit 1PPS signal, Gigabit Ethernet signal, 10G/25G/40G and other Ethernet signals with a bandwidth greater than Gigabit. The transmission delay test is actually a test of the transmission delay of any two different external network interfaces of the edge server. Referring to Figure 2, Figure 2 is a schematic structural diagram of an edge server, including 2 SFP interfaces and 3 RJ45 interfaces, wherein SFP interface 1 and RJ45 interface 1 can be used to connect device 1 and device 2, and device 1 and Device 2 is the other edge server. The edge server shown in Figure 2 adopts Intel's Xeon-D platform CPU, wherein, Xeon-D is connected to SFP (Small Form-factor Pluggable, miniaturized hot-swappable module) interface 1 through SFP link, through PCIE (Peripheral ComponentInterconnect Express, high-speed serial computer expansion bus) link is connected to a network card chip, MAC (Media Access Control, media access control sublayer protocol) in Figure 2, MAC is connected through MDI (Media DependentInterface, medium dependent interface) link Connect to RJ45 port 1, connect to a Buffer chip via 1PPS IN/OUT two-way link through Xeon-D and MAC respectively, and the Buffer chip outputs 2 channels of 1PPS IN/OUT, respectively connected to the RS485 chip and 1 PCIE Slot slot, RS485 The chip converts 1PPS IN/OUT from single-ended to differential, and connects it to RJ45 interface 2, and inserts a network card into the PCIESlot. The NIC (Network Interface Controller, network card) in Figure 2 has an SFP interface 2 and RJ45 interface 3.

基于如图2所示边缘服务器结构,本申请的检测装置包括一个控制芯片,及与该控制芯片连接的多个以太网接口,具体可参照图3所示,该检测装置采用ZYNC-7000这款内置ARM Core的FPGA(Field Programmable Gate Array,可编程逻辑器件)芯片,也是一款嵌入式微处理器,节约硬件成本。ZYNC-7000通过SPI链路外挂Flash,用来存储用于继续测试的FW,并外挂DDR(Double Data Rate SDRAM,双倍数据速率SDRAM),板内的50Mhz Clock GEN(Clock Generator,时钟发生器)提供50Mhz的差分时钟给该控制芯片,同时该控制芯片通过1PPS链路连接到外置的RJ45接口,用来连接待测边缘服务器的1PPS接口,控制芯片通过千兆以太网链路连接到设备的另外一个RJ45接口,用来连接待测边缘服务器的一个以太网接口,控制芯片通过10G/25G/40G链路连接到外置的SFP接口,用来连接待测边缘服务器的SFP接口,还包括一个天线接口,用来插接天线模块连接到北斗卫星系统。Based on the edge server structure shown in Figure 2, the detection device of the present application includes a control chip and multiple Ethernet interfaces connected to the control chip. The FPGA (Field Programmable Gate Array, programmable logic device) chip with built-in ARM Core is also an embedded microprocessor, which saves hardware costs. ZYNC-7000 is connected with external Flash via SPI link to store FW for continuous testing, external DDR (Double Data Rate SDRAM, double data rate SDRAM), on-board 50Mhz Clock GEN (Clock Generator, clock generator) Provide a 50Mhz differential clock to the control chip, and at the same time, the control chip is connected to the external RJ45 interface through a 1PPS link, which is used to connect to the 1PPS interface of the edge server to be tested. The control chip is connected to the device’s Another RJ45 interface is used to connect an Ethernet interface of the edge server to be tested. The control chip is connected to an external SFP interface through a 10G/25G/40G link, which is used to connect to the SFP interface of the edge server to be tested. It also includes a Antenna interface, used to insert the antenna module to connect to the Beidou satellite system.

在进行测试时,需要将本实施例所提供的测试装置按图4所示的方案与边缘服务器连接,具体的,测试装置中的RJ45接口2与边缘服务器的RJ45接口2通过1PPS链路连接,测试装置中的RJ45接口3与边缘服务器的RJ45接口3通过千兆以太网链路连接,测试装置中的SFP接口2与边缘服务器的SFP接口2通过10G/25G/40G链路连接。当然,除了可以通过上述连接方式连接还可以采用其他连接方式,本申请在此不做具体的限定。When testing, the test device provided by this embodiment needs to be connected to the edge server according to the scheme shown in Figure 4. Specifically, the RJ45 interface 2 in the test device is connected to the RJ45 interface 2 of the edge server through a 1PPS link. The RJ45 interface 3 in the test device is connected to the RJ45 interface 3 of the edge server through a Gigabit Ethernet link, and the SFP interface 2 in the test device is connected to the SFP interface 2 of the edge server through a 10G/25G/40G link. Of course, in addition to the above-mentioned connection methods, other connection methods may also be used, and this application does not make specific limitations here.

一般的,在进行时间同步时,北斗导航系统直接将同步报文通过任意以太网接口传输至边缘服务器,边缘服务器对同步报文处理后在通过不同于输入接口的一个以太网接口输出,基于此,需要测试边缘服务器任意两个接口之间传输延迟是否满足标准。Generally, when performing time synchronization, the Beidou navigation system directly transmits the synchronization message to the edge server through any Ethernet interface, and the edge server processes the synchronization message and outputs it through an Ethernet interface different from the input interface. Based on this , it is necessary to test whether the transmission delay between any two interfaces of the edge server meets the standard.

在按照上述方案连接完后,选择第一接口和第二接口,第一接口用于发送测试报文,第二接口用于接收反馈报文,可以理解的是,边缘服务器上与第一接口连接的接口即为第一测试接口,与第二接口连接的接口即为第二测试接口,测试装置通过天线接收北斗导航系统发送的同步数据,生成带有时间戳的测试报文,将测试报文通过第一接口、第一测试接口发送给边缘服务器,并记录发送时间,边缘服务器在接收到该测试报文后,会进行解析处理,得到与第二接口的接口信息,从而确定边缘服务器上的第二待测接口,按照上述对应关系设置当前路由配置,以便将对测试报文进行处理分析后得到的反馈报文由第二测试接口、第二接口传输回测试装置,测试装置根据接收到反馈报文的时间,和发送时间的时间差,得到测试报文在边缘服务器的滞留时间,判断滞留时间是否在预设时间范围内,若测试报文在边缘服务器的任意两个测试接口的延迟时间都在预设时间范围内,则说明边缘服务器设计合理,任意两个测试接口的延迟时间不在预设时间范围内,均认为边缘服务器的设计不合理。其中,预设时间范围可以设置在100~200ns。举例说明,假设测试装置通过RJ45接口1向边缘服务器的RJ45接口1发送测试报文,若当前测试需要测试SFP接口2和RJ45接口1的传输延迟,则将SFP接口2的端口信息添加在测试报文中,以便边缘服务器接收到测试报文后,设置路由配置,以便将反馈报文经其SFP接口2回传到测试装置的SFP接口2。After connecting according to the above scheme, select the first interface and the second interface. The first interface is used to send test messages, and the second interface is used to receive feedback messages. It can be understood that the edge server is connected to the first interface The interface connected to the second interface is the first test interface, and the interface connected to the second interface is the second test interface. The test device receives the synchronization data sent by the Beidou navigation system through the antenna, generates a test message with a time stamp, and sends the test message to Send it to the edge server through the first interface and the first test interface, and record the sending time. After receiving the test message, the edge server will analyze and process it to obtain the interface information with the second interface, so as to determine the edge server. The second interface to be tested sets the current routing configuration according to the above-mentioned corresponding relationship, so that the feedback message obtained after the test message is processed and analyzed is transmitted back to the test device by the second test interface and the second interface, and the test device receives the feedback according to The time difference between the time of the message and the sending time is used to obtain the retention time of the test message on the edge server, and judge whether the retention time is within the preset time range. If the delay time of the test message on any two test interfaces of the edge server is If the delay time of any two test interfaces is not within the preset time range, it means that the design of the edge server is reasonable. Wherein, the preset time range may be set at 100-200 ns. For example, assume that the test device sends a test message to the RJ45 interface 1 of the edge server through RJ45 interface 1. If the current test needs to test the transmission delay between SFP interface 2 and RJ45 interface 1, the port information of SFP interface 2 is added to the test report. In this article, after the edge server receives the test message, it sets the routing configuration so that the feedback message can be returned to the SFP interface 2 of the test device through its SFP interface 2 .

作为一种可选的实施例,根据发送时间和接收时间计算第一接口和第二接口的延迟时间之后,该传输延迟测试方法还包括:As an optional embodiment, after calculating the delay times of the first interface and the second interface according to the sending time and the receiving time, the transmission delay testing method further includes:

当延迟时间未处于预设时间范围内,生成告警提示信息,告警提示信息包括第二接口的接口信息及第一接口的接口信息。When the delay time is not within the preset time range, alarm prompt information is generated, and the alarm prompt information includes interface information of the second interface and interface information of the first interface.

具体的,如果任意两个以太网接口的延迟时间不再预设范围内,生成对应的提示信息,已告知设计人员这两个以太网接口存在问题,便于定位同步失败的原因,提高运维效率。Specifically, if the delay time of any two Ethernet interfaces is no longer within the preset range, a corresponding prompt message is generated to inform the designer that there is a problem with the two Ethernet interfaces, which facilitates locating the cause of synchronization failure and improves operation and maintenance efficiency .

可见,本实施例中,通过测试装置对边缘服务器的任意两个以太网接口的传输延迟进行测试,测试装置通过第一接口向边缘服务器发送测试报文,并记录发送时间,测试报文包括第二接口的接口信息,以便边缘服务器按照该接口信息配置当前路由配置,提高测试灵活性,然后边缘服务器将测试报文对应的反馈报文按照当前路由设置回传至测试装置的第二接口,测试装置根据接收到反馈报文的时间和之前记录的发送时间即可得到边缘服务器中第一测试接口和第二测试接口之间的延迟时间,从而根据延迟时间是否超限确定边缘服务器的设计是否合理。It can be seen that in this embodiment, the transmission delay of any two Ethernet interfaces of the edge server is tested by the test device. The test device sends a test message to the edge server through the first interface, and records the sending time. The test message includes the first The interface information of the second interface, so that the edge server configures the current routing configuration according to the interface information to improve the test flexibility, and then the edge server returns the feedback message corresponding to the test message to the second interface of the test device according to the current routing setting, and the test The device can obtain the delay time between the first test interface and the second test interface in the edge server according to the time of receiving the feedback message and the previously recorded sending time, so as to determine whether the design of the edge server is reasonable according to whether the delay time exceeds the limit .

请参照图5,图5为本申请所提供的一种边缘服务器的传输延迟测试系统的结构示意图,应用于测试装置中的控制芯片,测试装置还包括与控制芯片连接的多个以太网信号接口,该传输延迟测试系统包括:Please refer to Figure 5, Figure 5 is a schematic structural diagram of a transmission delay test system for an edge server provided by the present application, which is applied to the control chip in the test device, and the test device also includes a plurality of Ethernet signal interfaces connected to the control chip , the transmission delay test system includes:

确定模块11,用于确定任意两个不同的以太网接口作为第一接口和第二接口;A determining module 11, configured to determine any two different Ethernet interfaces as the first interface and the second interface;

输出模块12,用于通过第一接口向边缘服务器的第一测试接口发送测试报文,并记录发送时间,测试报文包括第二接口的接口信息,以便边缘服务器根据接口信息调整当前路由配置,将测试报文对应的反馈报文通过当前路由配置的第二测试接口回传至第二接口;The output module 12 is configured to send a test message to the first test interface of the edge server through the first interface, and record the sending time, the test message includes the interface information of the second interface, so that the edge server adjusts the current routing configuration according to the interface information, Returning the feedback message corresponding to the test message to the second interface through the second test interface of the current routing configuration;

接收模块13,用于获取接收到反馈报文的接收时间,根据发送时间和接收时间计算边缘服务器的延迟时间;The receiving module 13 is used to obtain the receiving time of receiving the feedback message, and calculate the delay time of the edge server according to the sending time and receiving time;

判定模块14,用于当延迟时间未处于预设时间范围内,判定边缘服务器设计不合理。A judging module 14, configured to judge that the design of the edge server is unreasonable when the delay time is not within the preset time range.

可见,本实施例中,通过测试装置对边缘服务器的任意两个以太网接口的传输延迟进行测试,测试装置通过第一接口向边缘服务器发送测试报文,并记录发送时间,测试报文包括第二接口的接口信息,以便边缘服务器按照该接口信息配置当前路由配置,提高测试灵活性,然后边缘服务器将测试报文对应的反馈报文按照当前路由设置回传至测试装置的第二接口,测试装置根据接收到反馈报文的时间和之前记录的发送时间即可得到边缘服务器中第一测试接口和第二测试接口之间的延迟时间,从而根据延迟时间是否超限确定边缘服务器的设计是否合理。It can be seen that in this embodiment, the transmission delay of any two Ethernet interfaces of the edge server is tested by the test device. The test device sends a test message to the edge server through the first interface, and records the sending time. The test message includes the first The interface information of the second interface, so that the edge server configures the current routing configuration according to the interface information to improve the test flexibility, and then the edge server returns the feedback message corresponding to the test message to the second interface of the test device according to the current routing setting, and the test The device can obtain the delay time between the first test interface and the second test interface in the edge server according to the time of receiving the feedback message and the previously recorded sending time, so as to determine whether the design of the edge server is reasonable according to whether the delay time exceeds the limit .

作为一种可选的实施例,控制芯片为型号为ZYNC-7000的FPGA芯片。As an optional embodiment, the control chip is a ZYNC-7000 FPGA chip.

作为一种可选的实施例,多个以太网接口包括一个或多个SFP接口以及一个或多个RJ45接口。As an optional embodiment, the multiple Ethernet interfaces include one or more SFP interfaces and one or more RJ45 interfaces.

作为一种可选的实施例,测试报文根据北斗发送的同步数据得到。As an optional embodiment, the test message is obtained according to the synchronization data sent by Beidou.

作为一种可选的实施例,该传输延迟测试系统还包括:As an optional embodiment, the transmission delay test system also includes:

告警模块,用于当延迟时间未处于预设时间范围内,生成告警提示信息,告警提示信息包括第二接口的接口信息及第一接口的接口信息。The alarm module is configured to generate alarm prompt information when the delay time is not within the preset time range, and the alarm prompt information includes the interface information of the second interface and the interface information of the first interface.

另一方面,本申请还提供了一种电子设备,包括:On the other hand, the present application also provides an electronic device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行计算机程序时实现如上文任意一个实施例所描述的传输延迟测试方法的步骤。The processor is configured to implement the steps of the transmission delay testing method described in any one of the above embodiments when executing the computer program.

对于本申请所提供的一种电子设备的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of an electronic device provided in the present application, please refer to the foregoing embodiments, and the present application will not repeat it here.

本申请所提供的一种电子设备具有和上述传输延迟测试方法相同的有益效果。An electronic device provided by the present application has the same beneficial effects as the above transmission delay testing method.

另一方面,本申请还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上文任意一个实施例所描述的传输延迟测试方法的步骤。On the other hand, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the transmission delay testing method as described in any one of the above embodiments is implemented. step.

对于本申请所提供的一种计算机可读存储介质的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of a computer-readable storage medium provided by the present application, please refer to the above-mentioned embodiments, and the present application will not repeat it here.

本申请所提供的一种计算机可读存储介质具有和上述传输延迟测试方法相同的有益效果。A computer-readable storage medium provided by the present application has the same beneficial effects as the above transmission delay testing method.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. The method for testing the transmission delay of the edge server is characterized by being applied to a control chip in a testing device, wherein the testing device further comprises a plurality of Ethernet signal interfaces connected with the control chip, the plurality of Ethernet signal interfaces comprise one or more SFP interfaces and one or more RJ45 interfaces, and the method for testing the transmission delay comprises the following steps:
determining any two different Ethernet signal interfaces as a first interface and a second interface;
sending a test message to a first test interface of the edge server through the first interface, and recording sending time, wherein the test message comprises interface information of the second interface, so that the edge server adjusts current route configuration according to the interface information, and a feedback message corresponding to the test message is returned to the second interface through the second test interface of the current route configuration; the test message is generated based on the received synchronous data sent by the Beidou navigation system and provided with a time stamp;
acquiring the receiving time of the feedback message, and calculating the delay time of the edge server according to the sending time and the receiving time;
when the delay time is not in the preset time range, judging that the design of the edge server is unreasonable;
after calculating the delay time of the first interface and the second interface according to the sending time and the receiving time, the transmission delay test method further comprises the following steps:
when the delay time is not in the preset time range, generating alarm prompt information, wherein the alarm prompt information comprises interface information of the second interface and interface information of the first interface;
the interface connected with the first interface on the edge server is the first test interface, and the interface connected with the second interface on the edge server is the second test interface.
2. The transmission delay test method of claim 1, wherein the control chip is an FPGA chip of model ZYNC-7000.
3. A transmission delay test system of an edge server, wherein the transmission delay test system is applied to a control chip in a test device, the test device further comprises a plurality of ethernet signal interfaces connected with the control chip, the plurality of ethernet signal interfaces comprise one or more SFP interfaces and one or more RJ45 interfaces, and the transmission delay test system comprises:
the determining module is used for determining any two different Ethernet signal interfaces as a first interface and a second interface;
the output module is used for sending a test message to a first test interface of the edge server through the first interface and recording the sending time, wherein the test message comprises interface information of the second interface, so that the edge server adjusts the current route configuration according to the interface information, and a feedback message corresponding to the test message is returned to the second interface through the second test interface of the current route configuration; the test message is generated based on the received synchronous data sent by the Beidou navigation system and provided with a time stamp;
the receiving module is used for obtaining the receiving time of the feedback message and calculating the delay time of the edge server according to the sending time and the receiving time;
the judging module is used for judging that the design of the edge server is unreasonable when the delay time is not in the preset time range;
the transmission delay test system further includes:
the alarm module is used for generating alarm prompt information when the delay time is not in a preset time range, wherein the alarm prompt information comprises interface information of the second interface and interface information of the first interface;
the interface connected with the first interface on the edge server is the first test interface, and the interface connected with the second interface on the edge server is the second test interface.
4. A transmission delay test system according to claim 3 wherein the control chip is an FPGA chip of model ZYNC-7000.
5. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the transmission delay test method according to any one of claims 1-2 when executing said computer program.
6. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the transmission delay test method according to any of claims 1-2.
CN202110876905.5A 2021-07-31 2021-07-31 A transmission delay testing method, system and related components of an edge server Active CN113726592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110876905.5A CN113726592B (en) 2021-07-31 2021-07-31 A transmission delay testing method, system and related components of an edge server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110876905.5A CN113726592B (en) 2021-07-31 2021-07-31 A transmission delay testing method, system and related components of an edge server

Publications (2)

Publication Number Publication Date
CN113726592A CN113726592A (en) 2021-11-30
CN113726592B true CN113726592B (en) 2023-07-18

Family

ID=78674503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110876905.5A Active CN113726592B (en) 2021-07-31 2021-07-31 A transmission delay testing method, system and related components of an edge server

Country Status (1)

Country Link
CN (1) CN113726592B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114323067A (en) * 2021-12-02 2022-04-12 一汽奔腾轿车有限公司 Vehicle navigation data timeliness test method
CN115277499B (en) * 2022-07-20 2023-07-11 科东(广州)软件科技有限公司 Delay parameter determination method and device of MAC (media access control) equipment, hardware platform and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547063A (en) * 2009-04-30 2009-09-30 北京星网锐捷网络技术有限公司 Method and system for testing forward delay
CN102136959A (en) * 2010-01-22 2011-07-27 华为技术有限公司 Ethernet link management method, device and system
CN103297282A (en) * 2012-02-22 2013-09-11 株式会社Ntt都科摩 Network delay measuring device and method
CN112600735A (en) * 2020-12-14 2021-04-02 北京信而泰科技股份有限公司 Network delay testing method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SI3261357T1 (en) * 2016-06-23 2019-03-29 Roche Diabetes Care Gmbh Method for a wireless data communication between a sensor system and a receiver, a system for a wireless data communication, and computer program product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547063A (en) * 2009-04-30 2009-09-30 北京星网锐捷网络技术有限公司 Method and system for testing forward delay
CN102136959A (en) * 2010-01-22 2011-07-27 华为技术有限公司 Ethernet link management method, device and system
CN103297282A (en) * 2012-02-22 2013-09-11 株式会社Ntt都科摩 Network delay measuring device and method
CN112600735A (en) * 2020-12-14 2021-04-02 北京信而泰科技股份有限公司 Network delay testing method, device and system

Also Published As

Publication number Publication date
CN113726592A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN113726592B (en) A transmission delay testing method, system and related components of an edge server
CN103178872B (en) Method and the device of USB system transfers distance is extended by Ethernet
CN105450588A (en) RDMA-based data transmission method and RDMA network cards
WO2021052374A1 (en) Network congestion control method, node, system and storage medium
CN112948295B (en) A system and method for high-speed data packet transmission between FPGA and DDR based on AXI4 bus
CN117370264A (en) Interconnection system, method, device and medium between bare chips in chip
CN115514682B (en) A data transmission method, device, equipment and storage medium
CN117669441B (en) Interface time sequence checking method and device for design to be tested and electronic equipment
CN116226027B (en) Data transmission system, method, device, communication equipment and storage medium
CN101917322B (en) Self-adaptive multibus fusion method
CN104598430B (en) Network interface interconnection design and control system of CPU interconnection expansion system
US9942120B2 (en) Technique for monitoring component processing
CN104284351B (en) A kind of distance-finding method and device
CN214586880U (en) Information processing apparatus
CN117687889B (en) Performance test device and method for memory expansion equipment
CN114443400B (en) Signal testing method and device, system on chip, electronic equipment and storage medium
CN113645088B (en) Automatic regulation method, system, device and medium for network card NCSI signal
CN113645082B (en) AS5643 network dynamic simulation test method and device
CN115361083A (en) Method and device for determining delay time of dual systems and terminal equipment
Xiang-Dong et al. Design of dual redundancy CAN-bus controller based on FPGA
CN102810083A (en) A doorbell message distribution method, fast input and output controller and processor
CN116132552B (en) Cross-clock domain communication transmission method and system based on asynchronous handshake protocol
CN205754421U (en) Application server terminals for data clusters
CN117172205B (en) Performance analysis methods, devices, electronic equipment and storage media
CN117896205B (en) Internal communication method, device, electronic equipment and readable 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: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

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

Country or region after: China

Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

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

Country or region before: China