A gateway routing conversion time test method, device, equipment and storage medium

By developing gateway message routing tables and using simulation modeling, the complexity and high cost of existing gateway transition time testing equipment have been solved, enabling automated testing of gateway routing transition time, applicable to different types of CAN gateways.

CN115811485BActive Publication Date: 2026-03-03DONGFENG AUTOMOBILE COMPANY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211441373.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2026-03-03
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

Existing gateway switching time testing equipment is complex and expensive, and cannot meet the testing needs of different types of gateways.

Method used

By writing a gateway message routing table, performing simulation modeling and obtaining absolute time, calculating the gateway routing conversion time, and using CAN bus tools to simulate message sending and receiving, automated testing is achieved.

Benefits of technology

It automates the testing of gateway routing conversion time, is simple, practical, efficient, inexpensive, and highly adaptable, suitable for different types of CAN gateways.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115811485B_ABST
    Figure CN115811485B_ABST
Patent Text Reader

Abstract

The application discloses a gateway routing conversion time testing method, device and equipment and a storage medium, and comprises the following steps: compiling gateway message routing tables according to the routing transmission relationship of gateway messages; simulating modeling the gateway message routing tables, and acquiring absolute time of each message; and calculating the gateway routing conversion time through the absolute time of each message. The application can realize automatic testing of the gateway, can be applied to different types of gateways, is simple and practical, high in efficiency, good in expansibility, low in price and strong in adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automotive electronics technology, and in particular to a gateway routing conversion time testing method, apparatus, device, and storage medium. Background Technology

[0002] With the widespread adoption of in-vehicle network technology, almost all intelligent controllers in automobiles use network bus communication, and CAN bus technology has become the most commonly used in-vehicle network communication technology. As the number of CAN nodes and network segments increases, gateways are also becoming more widely used in many vehicle models. Gateways offer functions such as optimized layout, increased bandwidth, security isolation, and route conversion. When designing an automotive CAN bus gateway, the gateway's route conversion time is a crucial technical indicator, as it determines the real-time performance of the entire network.

[0003] Currently available gateway transition time testing equipment is developed specifically for CAN gateways, but these CAN bus gateway testing methods are complex, expensive, and not universally applicable. As CAN gateways become increasingly complex, they cannot meet the testing needs of all gateways.

[0004] Therefore, how to test the routing conversion time of a gateway under complex gateway testing conditions is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] The main objective of this invention is to provide a gateway routing conversion time testing method, apparatus, device, and storage medium that can automate gateway testing. It is simple, practical, efficient, scalable, inexpensive, and highly adaptable.

[0006] Firstly, this application provides a gateway route conversion time testing method, which includes the following steps:

[0007] Compile routing tables for each gateway message based on the routing and sending / receiving relationships of the gateway messages;

[0008] Simulation modeling is performed on the routing table of each gateway message, and the absolute time of each message is obtained;

[0009] The gateway routing conversion time is calculated using the absolute time of each message.

[0010] In conjunction with the first aspect mentioned above, as an optional implementation method, the gateway routing conversion time is determined based on the difference between the absolute time when the gateway sends the message and the absolute time when the gateway receives the message. The gateway routing conversion time is the time difference between when the gateway sends the message and when it receives the message after routing conversion.

[0011] In conjunction with the first aspect mentioned above, as an optional implementation method, the routing table of each gateway message is simulated and modeled using the CAN bus tool, and the simulation model of the routing table of each message is saved on the host computer. The host computer is used to monitor the gateway's sending and receiving message signals and time.

[0012] In conjunction with the first aspect mentioned above, as an optional implementation method, the sending of routing messages is simulated using CAN bus tools, and the reception and monitoring of the messages output by the gateway routing are performed to determine the absolute time of each gateway message. The CAN bus tools mentioned include CANoe and VSPY.

[0013] In conjunction with the first aspect mentioned above, as an optional implementation method, the gateway message is obtained and the network segment receiving the gateway message is determined; the network segment sending the gateway message is determined through routing; and a routing table for each gateway message is compiled based on the sending and receiving network segments of the gateway message.

[0014] Secondly, this application provides a gateway routing conversion time testing device, which includes:

[0015] Write a module that is used to write routing tables for each gateway message based on the routing and sending relationships of gateway messages;

[0016] The processing module is used to simulate and model the routing table of each gateway message and obtain the absolute time of each message.

[0017] The calculation module is used to calculate the gateway routing conversion time using the absolute time of each message.

[0018] In conjunction with the second aspect above, as an optional implementation, the calculation module is further configured to: determine the gateway routing conversion time based on the difference between the absolute time the gateway sends the message and the absolute time the gateway receives the message, wherein the gateway routing conversion time is the time difference between the time the gateway sends the message and the time it receives the message after routing conversion.

[0019] In conjunction with the second aspect above, as an optional implementation, the processing module is further configured to: simulate and model the routing table of each gateway message using the CAN bus tool, and save the simulated routing table of each message to the host computer using the host computer, wherein the host computer is used to monitor the gateway's sending and receiving message signals and time.

[0020] Thirdly, this application also provides an electronic device, the electronic device comprising: a processor; and a memory storing computer-readable instructions, which, when executed by the processor, implement the method described in any one of the first aspects.

[0021] Fourthly, this application also provides a computer-readable storage medium storing computer program instructions that, when executed by a computer, cause the computer to perform the method described in any of the first aspects.

[0022] This application provides a gateway routing transition time testing method, apparatus, device, and storage medium. It compiles routing tables for each gateway message based on the routing and transmission relationships of the gateway messages; performs simulation modeling on the routing tables of each gateway message and obtains the absolute time of each message; and calculates the gateway routing transition time using the absolute time of each message. This method enables automated testing of gateways, is simple and practical, highly efficient, has good scalability, and is inexpensive and highly adaptable.

[0023] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit the invention. Attached Figure Description

[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0025] Figure 1 This is a flowchart of a gateway routing conversion time testing method provided in the embodiments of this application;

[0026] Figure 2 This is a schematic diagram of a gateway routing conversion time testing device provided in an embodiment of this application;

[0027] Figure 3 This is the gateway route conversion time test conversion table provided in the embodiments of this application;

[0028] Figure 4 This is a schematic diagram of an electronic device provided in an embodiment of this application;

[0029] Figure 5 This is a schematic diagram of a computer-readable program medium provided in an embodiment of this application. Detailed Implementation

[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0031] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the drawings represent functional entities and do not necessarily correspond to physically or logically independent entities.

[0032] This application provides a gateway routing conversion time testing method, apparatus, device, and storage medium, which can automate gateway testing. It is applicable to different types of CAN gateways, is simple and practical, highly efficient, has good scalability, and is inexpensive and highly adaptable.

[0033] To achieve the aforementioned technical effects, the general concept of this application is as follows:

[0034] A method for testing gateway route conversion time, the method comprising the following steps:

[0035] S101: Compile routing tables for each gateway message based on the routing and sending relationships of the gateway messages.

[0036] S102: Simulate and model the routing table of each gateway message, and obtain the absolute time of each message.

[0037] S103: Calculate the gateway routing conversion time using the absolute time of each message.

[0038] The embodiments of this application will be further described in detail below with reference to the accompanying drawings.

[0039] Reference Figure 1 , Figure 1 The diagram shown is a flowchart of a gateway routing conversion time testing method provided by the present invention. Figure 1 As shown, a flowchart for a gateway route conversion time test includes the following steps:

[0040] Step S101: Compile routing tables for each gateway message based on the routing and sending relationships of the gateway messages.

[0041] Specifically, compiling a routing table for each gateway message based on the routing and receiving relationships of gateway messages can be understood as obtaining gateway messages, determining which network segment the gateway receives from, and then routing to which network segments, thereby determining the routing relationships of gateway messages, and compiling a routing table for each gateway message based on the routing relationships of gateway messages.

[0042] It's important to note that a gateway, also known as an internetwork connector or protocol converter, is a complex network interconnection device that operates above the network layer. It's used only for interconnecting two networks with different high-level protocols. Gateways can be used for both wide area network (WAN) and local area network (LAN) interconnections. A gateway is a computer system or device that acts as a translator. Used between two systems with different communication protocols, data formats, languages, or even completely different architectures, a gateway is a translator. Unlike a bridge, which simply forwards information, a gateway repackages the received information to suit the needs of the destination system.

[0043] A network segment generally refers to the part of a computer network that can communicate directly using the same physical layer devices (transmission media, repeaters, hubs, etc.).

[0044] Routing is the process of determining the end-to-end path of a network when a packet travels from its source to its destination [1]. Routers operate at the network layer of the OSI reference model. Routers achieve network interconnection by forwarding data packets. Although routers can support multiple protocols (such as TCP / IP, IPX / SPX, AppleTalk, etc.), routers typically connect two or more logical ports identified by IP subnets or point-to-point protocols and have at least one physical port. Routers determine the output port and next-hop address based on the network layer address in the received data packet and the routing table maintained internally by the router, and rewrite the link layer data packet header to forward the data packet. Routers reflect the current network topology by dynamically maintaining the routing table and maintain the routing table by exchanging routing and link information with other routers on the network.

[0045] In one embodiment, a gateway message is obtained and the network segment receiving the gateway message is determined. The network segments to which the gateway message is sent are determined through routing. A reason table for each gateway message is compiled based on the network segments to which the gateway message is sent and the network segments to which it is received.

[0046] Step S102: Simulate and model the routing table of each gateway message and obtain the absolute time of each message.

[0047] Specifically, a routing table for each gateway message is written based on the routing relationship of the gateway messages. The routing table for each gateway message is simulated and modeled using a CAN bus tool. The sending of routing messages is simulated using the CAN bus tool, and the reception of the messages output by the gateway routing is monitored to determine the absolute time of each gateway message. The absolute time is the time when the gateway message is normally received, including year, month, day, hour, minute, and second.

[0048] It should be noted that the purpose of simulating and modeling the routing table of each gateway message using the CAN bus tool is to achieve automated gateway testing.

[0049] Gateway under test: The gateway used for testing must contain at least two or more CAN buses and have at least message routing or signal routing functions.

[0050] In addition, it should be noted that the CAN bus tool used to test the gateway's CAN bus tool can be CANoe, VSPY, etc. The CAN bus tool has the ability to record the absolute time of the message, but it must ensure that the number of CAN channels is not less than the number of gateway channels. This ensures that all routing conversion times can be tested at once, improving efficiency.

[0051] In one embodiment, after simulating and modeling the routing table of each gateway message using the CAN bus tool, the host computer simulates and models the routing table of each message and saves it on the host. The CAN bus tool is responsible for simulating the sending of routing messages and monitoring the reception of gateway routing outputs. Then, the routing conversion time is equal to the absolute time of the gateway sending the message minus the absolute time of the gateway receiving the message.

[0052] It should be noted that the host computer is the computer that runs the CAN gateway testing software, used to monitor the gateway's sending and receiving of message signals and timing.

[0053] In one embodiment, ID1 is routing message 1, which is received by CAN2 and routed to CAN4, CAN5, and CAN6 respectively. The CAN tool is used to simulate CAN2 sending a message to the gateway. The absolute time T1R_2 when the gateway CAN2 receives the message is recorded, and the absolute times T1S_4, T1S_5, and T1S_6 when the gateway CAN4, CAN5, and CAN6 send the message are recorded as T1S_4, T1S_5, and T1S_6 respectively. Then, the conversion time of ID1 in the CAN4, CAN5, and CAN6 network segments is T1S_4-T1R_2, T1S_5-T1R_2, and T1S_6-T1R_2 respectively.

[0054] Step S103: Calculate the gateway routing conversion time using the absolute time of each message.

[0055] Specifically, the gateway routing conversion time is determined by the difference between the absolute time the gateway sends the message and the absolute time the gateway receives the message. That is, the routing conversion time is equal to the absolute time the gateway sends the message minus the absolute time the gateway receives the message.

[0056] It should be noted that the gateway routing conversion time is the time difference between when the gateway receives a message, performs routing conversion, and then sends and receives the message.

[0057] Reference Figure 2 , Figure 2The diagram shown is a schematic of a gateway routing conversion time testing device provided by the present invention. Figure 2 As shown, the device includes:

[0058] Module 201: It is used to write routing tables for each gateway message based on the routing and sending relationships of gateway messages.

[0059] Processing module 202: It is used to simulate and model the routing table of each gateway message and obtain the absolute time of each message.

[0060] Calculation module 203: It is used to calculate the gateway routing conversion time using the absolute time of each message.

[0061] Furthermore, in one possible implementation, the calculation module 203 is also used to: determine the gateway routing conversion time based on the difference between the absolute time when the gateway sends the message and the absolute time when the gateway receives the message, wherein the gateway routing conversion time is the time difference between the time when the gateway sends the message and the time when it receives the message after routing conversion.

[0062] Furthermore, in one possible implementation, the processing module 202 is also used to: simulate and model the routing table of each gateway message according to the CAN bus tool, and use the host computer to save the simulated routing table of each message to the host, wherein the host computer is used to monitor the gateway's sending and receiving message signals and time.

[0063] Furthermore, in one possible implementation, the calculation module 203 is also used to: simulate the transmission of routing messages according to the CAN bus tool, monitor the reception of messages output by the gateway routing, and determine the absolute time of each gateway message, wherein the CAN bus tool includes CANoe and VSPY.

[0064] Furthermore, in one possible implementation, the writing module 201 is also used to: obtain gateway messages and determine the network segment receiving the gateway messages; determine the network segment sending the gateway messages through routing; and write each gateway message routing table according to the sending and receiving network segments of the gateway messages.

[0065] Reference Figure 3 , Figure 3 The table shown is a gateway route conversion time test conversion table provided by the present invention. Figure 3 As shown:

[0066] In one embodiment, ID1 is routing message 1, which is received by CAN2 and routed to CAN4, CAN5, and CAN6 respectively. The CAN tool is used to simulate CAN2 sending a message to the gateway. The absolute time T1R_2 when the gateway CAN2 receives the message is recorded, and the absolute times T1S_4, T1S_5, and T1S_6 when the gateway CAN4, CAN5, and CAN6 send the message are recorded as T1S_4, T1S_5, and T1S_6 respectively. Then, the conversion time of ID1 in the CAN4, CAN5, and CAN6 network segments is T1S_4-T1R_2, T1S_5-T1R_2, and T1S_6-T1R_2 respectively.

[0067] Optionally, ID2 is routing message 2, received by CAN1, and routed to CAN3 and CAN6 respectively. The CAN tool is used to simulate CAN1 sending a message to the gateway. The absolute time T2R_1 when the gateway CAN1 receives the message is recorded, and the absolute times T2S_3 and T2S_6 when the gateway CAN3 and CAN6 send the message are recorded respectively. Then the conversion time of ID2 in the CAN4, CAN5 and CAN6 network segments is T2S_3-T2R_1 and T2S_6-T2R_1 respectively.

[0068] Optionally, ID3 is routing message 3, received by CAN2, and routed to CAN4 and CAN5 respectively. Use a CAN tool to simulate CAN2 sending a message to the gateway, and record the absolute time T3R_2 when the gateway CAN2 receives the message, and record the absolute times T3S_4 and T3S_5 when the gateway CAN4 and CAN5 send the message respectively. Then the conversion time of ID4 in the CAN4 and CAN5 network segments is T3S_4-T3R_2 and T3S_5-T3R_2 respectively.

[0069] Optionally, ID4 is routing message 4, received by CAN3, and routed to CAN1 and CAN5 respectively. Use a CAN tool to simulate CAN3 sending a message to the gateway, and record the absolute time T4R_3 when the gateway CAN3 receives the message, and record the absolute times T4S_1 and T4S_5 when the gateway CAN1 and CAN5 send the message respectively. Then the conversion time of ID4 in the CAN1 and CAN5 network segments is T4S_1-T4R_3 and T4S_5-T4R_3 respectively.

[0070] Optionally, ID5 is routing message 5, received by CAN4, and routed to CAN2 and CAN6 respectively. Use a CAN tool to simulate CAN4 sending a message to the gateway, and record the absolute time T5R_4 when the gateway CAN4 receives the message, and record the absolute times T5S_2 and T5S_6 when the gateway CAN2 and CAN6 send the message respectively. Then the conversion time of ID5 in the CAN2 and CAN6 network segments is T5S_2-T5R_4 and T5S_6-T5R_5 respectively.

[0071] Optionally, ID6 is routing message 6, received by CAN5, and routed to CAN1 and CAN3 respectively. Use a CAN tool to simulate CAN5 sending a message to the gateway, and record the absolute time T6R_5 when the gateway CAN5 receives the message, and record the absolute times T6S_1 and T6S_3 when the gateway CAN1 and CAN3 send the message respectively. Then the conversion time of ID5 in the CAN1 and CAN3 network segments is T6S_1-T6R_5 and T6S_3-T6R_5 respectively.

[0072] The above describes the method for converting gateway routing time. This patent has multiple implementation methods, and it is not necessary to calculate them one by one as exemplified above. The implementation can be solved by programming with UI interface software or by programming with Excel function documents.

[0073] It is understood that the gateway routing conversion time testing method, apparatus, device and storage medium provided in this application are simple and practical, applicable to different types of CAN gateways, relatively inexpensive compared to dedicated equipment, and highly adaptable. They can be calculated by software programs or implemented using Excel function documents, making them highly adaptable.

[0074] To facilitate understanding of the distance explanation, in one embodiment, routing message 1 with route ID ID1 is received by CAN, and its absolute time is 16.0581. It is routed to CAN4, CAN5, and CAN6 respectively. Using a CAN tool to simulate CAN2 sending a message to the gateway, the absolute time of the gateway CAN2 receiving the message is recorded as 16.0581. The absolute times of the gateway CAN4, CAN5, and CAN6 sending messages are recorded as 16.0589, 16.0601, and 16.0595 respectively. Then, the conversion times of routing message 1 with ID1 in the CAN4, CAN5, and CAN6 network segments are 0.0008, 0.002, and 0.0014 respectively.

[0075] In one embodiment, ID2 is routing message 2, which is received by CAN1 and routed to CAN3 and CAN6 respectively. The CAN tool is used to simulate CAN1 sending a message to the gateway. The absolute time of the gateway CAN1 receiving the message is recorded as 18.4789, and the absolute times of the gateway CAN3 and CAN6 sending the message are recorded as 18.4801 and 18.4807 respectively. Then the conversion time of ID2 in the CAN4, CAN5 and CAN6 network segments is 0.0012 and 0.0018 respectively.

[0076] In one embodiment, ID3 is routing message 3, which is received by CAN2 and routed to CAN4 and CAN5 respectively. The CAN tool is used to simulate CAN2 sending a message to the gateway. The absolute time of the gateway CAN2 receiving the message is recorded as 20.6558, and the absolute times of the gateway CAN4 and CAN5 sending the message are recorded as 20.6687 and 20.6721 respectively. Then the conversion time of ID4 in the CAN4 and CAN5 network segments is 0.0129 and 0.0163 respectively.

[0077] In one embodiment, ID4 is routing message 4, which is received by CAN3 and routed to CAN1 and CAN5 respectively. The CAN tool is used to simulate CAN3 sending a message to the gateway. The absolute time of the gateway CAN3 receiving the message is recorded as 25.1631, and the absolute times of the gateway CAN1 and CAN5 sending the message are recorded as 25.1646 and 25.1801 respectively. Then the conversion time of ID4 in the CAN1 and CAN5 network segments is 0.0015 and 0.017 respectively.

[0078] In one embodiment, ID5 is routing message 5, which is received by CAN4 and routed to CAN2 and CAN6 respectively. The CAN tool is used to simulate CAN4 sending a message to the gateway. The absolute time of the gateway CAN4 receiving the message is recorded as 8.3652, and the absolute times of the gateway CAN2 and CAN6 sending the message are recorded as 8.3669 and 8.3676 respectively. Then the conversion time of ID5 in the CAN2 and CAN6 network segments is 0.0017 and 0.0024 respectively.

[0079] In one embodiment, ID6 is routing message 6, which is received by CAN5 and routed to CAN1 and CAN3 respectively. The CAN tool is used to simulate CAN5 sending a message to the gateway. The absolute time of the gateway CAN5 receiving the message is recorded as 30.4578, and the absolute times of the gateway CAN1 and CAN3 sending the message are recorded as 30.4586 and 30.4591 respectively. Then the absolute times of ID5 routing in the CAN1 and CAN3 network segments are 0.0008 and 0.0013 respectively.

[0080] The following reference Figure 4 To describe an electronic device 400 according to this embodiment of the present invention. Figure 4 The electronic device 400 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0081] like Figure 4 As shown, the electronic device 400 is manifested in the form of a general-purpose computing device. The components of the electronic device 400 may include, but are not limited to: at least one processing unit 410, at least one storage unit 420, and a bus 430 connecting different system components (including storage unit 420 and processing unit 410).

[0082] The storage unit stores program code that can be executed by the processing unit 410, causing the processing unit 410 to perform the steps described in the "Embodiment Methods" section of this specification according to various exemplary embodiments of the present invention.

[0083] Storage unit 420 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 421 and / or cache memory 422, and may further include a read-only memory (ROM) 423.

[0084] Storage unit 420 may also include a program / utility 424 having a set (at least one) of program modules 425, such program modules 425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0085] Bus 430 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0086] Electronic device 400 can also communicate with one or more external devices (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 400, and / or any device that enables electronic device 400 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 450. Furthermore, electronic device 400 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 460. As shown, network adapter 460 communicates with other modules of electronic device 400 via bus 430. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0087] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0088] According to the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention can also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.

[0089] refer to Figure 5 As shown, a program product 500 for implementing the above-described method according to an embodiment of the present invention is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0090] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0091] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0092] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0093] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0094] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0095] In summary, this application provides a gateway routing transition time testing method, apparatus, device, and storage medium. The method includes the following steps: compiling a routing table for each gateway message based on the routing and receiving relationships of gateway messages; performing simulation modeling on the routing tables of each gateway message and obtaining the absolute time of each message; and calculating the gateway routing transition time using the absolute time of each message. This application enables automated testing of gateways, is applicable to different types of gateways, is simple and practical, highly efficient, has good scalability, and is inexpensive and highly adaptable.

[0096] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this 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 this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

[0097] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

Claims

1. A gateway route translation time test method, characterized by, Comprising: According to the gateway message routing relationship between the sending and receiving relationship of each gateway message routing table, wherein the gateway message is obtained and the network segment receiving the gateway message is determined; Determine the network segment of the gateway message sending through the route; According to the sending and receiving network segment of the gateway message, each gateway message routing table is written; The absolute time of each message is obtained by simulating and modeling the routing table of each gateway message. The gateway routing conversion time is calculated by the absolute time of each message. The gateway routing conversion time is determined according to the difference between the absolute time of the gateway sending message and the absolute time of the gateway receiving message, wherein the gateway routing conversion time is the time difference between the sending message and the receiving message after the gateway receives the message and converts the routing.

2. The method of claim 1, wherein, The absolute time of each message is obtained by simulating and modeling the routing table of each gateway message. According to the CAN bus tool, the routing table of each gateway message is simulated and modeled, and the routing table of each message is saved in the host computer by using the host computer, wherein the host computer is used to monitor the sending and receiving message signals and time of the gateway.

3. The method of claim 1, wherein, The absolute time of each message is obtained by simulating and modeling the routing table of each gateway message. According to the CAN bus tool, the routing table of each gateway message is simulated and modeled, and the routing table of each message is saved in the host computer by using the host computer, wherein the host computer is used to monitor the sending and receiving message signals and time of the gateway.

4. A gateway route translation time testing apparatus characterized by comprising: The electronic device comprises: A processor; A memory, the memory has computer readable instructions stored thereon, and the computer readable instructions are executed by the processor to implement the method of any one of claims 1 to 4. It stores computer program instructions, which makes the computer execute the method according to any one of claims 1 to 4 when the computer program instructions are executed by the computer. ​ ​ ​ ​ 5. The apparatus of claim 4, wherein, ​ ​ 6. An electronic device, comprising: ​ ​ ​ 7. A computer readable storage medium characterized by ​

Citation Information

Patent Citations

  • Method, device and system for testing routing performance of gateway

    CN114679396A

  • Gateway routing data test method and test system

    CN115242665A