Method and apparatus for computing cross-node communication time during real-time simulation

By calculating the inter-node communication time in real-time simulation tasks, the problem of unquantified cross-node communication time was solved, performance evaluation of different communication methods was realized, and the overall performance of real-time simulation of power systems was improved.

WO2026065997A1PCT designated stage Publication Date: 2026-04-02ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

Existing methods do not provide a way to calculate cross-node communication time, making it difficult to compare the performance of different communication methods and to quantify the impact of cross-node communication time on simulation performance in real-time electromagnetic transient simulation.

Method used

By determining the network channel between any two nodes in a real-time simulation task, the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node are calculated, thereby quantifying the cross-node communication time, including the time components of the node's CPU architecture, network card, hardware, and switch.

Benefits of technology

It provides a method for quantifying cross-node communication time, which improves the overall performance of large-scale node parallel real-time simulation, and can compare the performance advantages and disadvantages of different communication methods and quantify their impact on simulation performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025085637_02042026_PF_FP_ABST
    Figure CN2025085637_02042026_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for computing cross-node communication time during real-time simulation, relating to the technical field of simulation computing. The method comprises: on the basis of a network channel constituted by communication between any two different nodes in a real-time simulation task, determining an event sending time of a first node, a network event forwarding time and an event receiving time of a second node; on the basis of the event sending time of the first node, the network event forwarding time and the event receiving time of the second node, determine cross-node communication time corresponding to the real-time simulation task, so as to determine the cross-node communication time corresponding to the real-time simulation task, which provides a cross-node communication time quantization method, thereby quantizing the impact of the cross-node communication time on simulation performance, and facilitating parallel real-time simulation of large-scale nodes. In addition, the cross-node communication time of different communication modes can be quantized, so as to determine the performance advantages and disadvantages of different communication modes, thus facilitating improving the overall performance of real-time simulation of large-scale nodes.
Need to check novelty before this filing date? Find Prior Art

Description

A method and device for calculating cross-node communication time in real-time simulation

[0001] The present application claims priority to the Chinese patent application No. 202411344294.X, filed on September 25, 2024, and entitled "A method and device for calculating cross-node communication time in real-time simulation", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of simulation calculation, and in particular to a method and device for calculating cross-node communication time in real-time simulation. BACKGROUND

[0003] Real-time simulation of power systems is an effective means to understand the characteristics of power systems and support research, planning, operation, production, equipment manufacturing, and secure reliable operation of power systems. With the rapid development of new power systems, a large number of new energy units and power electronic devices are connected to the grid, and the system scale has expanded dramatically, requiring large-scale node parallel simulation.

[0004] Real-time simulation of power systems has strict requirements on the time of each link, and the length of the communication time has a great influence on the simulation step length of real-time simulation of power systems. When different nodes are jointly simulated, the communication performance between multiple nodes is crucial. The existing methods do not provide a method for calculating the cross-node communication time, making it difficult to compare the performance of different communication methods and quantify the impact of cross-node communication time on the simulation performance in electromagnetic transient real-time simulation. SUMMARY

[0005] Therefore, the present application provides a method and device for calculating cross-node communication time in real-time simulation, which solves the technical problem that the existing methods do not provide a method for calculating the cross-node communication time, making it difficult to compare the performance of different communication methods and quantify the impact of cross-node communication time on the simulation performance in electromagnetic transient real-time simulation.

[0006] The first aspect of the present application provides a method for calculating cross-node communication time in real-time simulation, the method comprising:

[0007] determining the event sending time of a first node, the network event forwarding time, and the event receiving time of a second node according to a network channel formed by the communication between any two different nodes in a real-time simulation task;

[0008] determining the cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node.

[0009] Preferably, the network channel comprises a plurality of CPU constructs of the first node and a network card of the first node.

[0010] The event sending time of the first node is determined according to the time for the CPU construct of the first node to send the event and the time for the network card of the first node to send the event.

[0011] Preferably, the time for the CPU construct of the first node to send the event is determined according to the time for the CPU construct of the first node to send an event data structure, the time for a distributed memory management library of the first node to calculate a CPU construct address offset, the time for the distributed memory management library of the first node to calculate a CPU construct address sending to an acceptor CPU construct address offset, and the time for the distributed memory management library of the first node to integrate a CPU construct sending event chain table.

[0012] Preferably, the step of obtaining the time for the network card of the first node to send the event comprises:

[0013] The longest time for the CPU construct of the first node to send the event to reach the network card is determined according to the time for the plurality of CPU constructs of the first node to respectively send the event to reach the network card.

[0014] The time for the network card driver of the first node to be used is determined according to the network card driver attribute of the first node, and the time for the network card driver of the first node to be used comprises the time for the network card of the first node to start, the time for the network card driver of the first node to schedule a memory management library, and the time for the network card of the first node to address.

[0015] The time for the network card of the first node to send the event is determined according to the longest time for the CPU construct of the first node to send the event to reach the network card, the time for the network card driver of the first node to be used, and the time for the network card of the first node to copy event data.

[0016] Preferably, the network channel comprises hardware between the first node and the second node and a plurality of cascaded switches.

[0017] The network event forwarding time is determined according to the event transmission time of the hardware and the forwarding time of the plurality of switches.

[0018] Preferably, the network channel comprises a network card of the second node and a CPU construct of the second node.

[0019] The event receiving time of the second node is determined according to the time for the network card of the second node to receive processing and the time for the CPU construct of the second node to receive event data.

[0020] Preferably, the network card receiving processing time of the second node is determined according to the time used by the network card driver of the second node to schedule the memory management library, the time used by the network card of the second node to address, and the time used by the network card of the second node to copy event data.

[0021] Preferably, the time used by the CPU of the second node to construct received event data is determined according to the interval time at which the CPU of the second node polls received event data through the memory management library.

[0022] In a second aspect, the present application further provides a device for calculating cross-node communication time in real-time simulation, comprising:

[0023] a node time calculation module, configured to determine event sending time of a first node, network event forwarding time, and event receiving time of a second node according to a network channel formed by communication between any two different nodes in a real-time simulation task;

[0024] a node communication calculation module, configured to determine cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node.

[0025] In a third aspect, the present application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to cause the processor to perform the steps of the method for calculating cross-node communication time in real-time simulation according to the first aspect.

[0026] As can be seen from the above technical solutions, the present application determines event sending time of a first node, network event forwarding time, and event receiving time of a second node according to a network channel formed by communication between any two different nodes in a real-time simulation task, thereby determining cross-node communication time corresponding to the real-time simulation task, giving a quantitative method for cross-node communication time, thereby quantifying the influence of the cross-node communication time on simulation performance, which is beneficial to large-scale node parallel real-time simulation, and at the same time, the cross-node communication time under different communication modes can be quantified, thereby determining the performance advantages and disadvantages of different communication modes, which is beneficial to improving the overall performance of large-scale node real-time simulation. BRIEF DESCRIPTION OF DRAWINGS

[0027] FIG. 1 is an application environment of a method for calculating cross-node communication time in real-time simulation according to an embodiment of the present application;

[0028] FIG. 2 is a flowchart of a method for calculating cross-node communication time in real-time simulation according to an embodiment of the present application;

[0029] FIG. 3 is a structural schematic diagram of a network channel according to an embodiment of the present application;

[0030] FIG. 4 is a flowchart of a method for obtaining time for a network card of a first node to send an event according to an embodiment of the present application;

[0031] FIG. 5 is a structural diagram of a device for calculating cross-node communication time in real-time simulation according to an embodiment of the present application;

[0032] FIG. 6 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0034] The method for calculating cross-node communication time in real-time simulation provided by the embodiments of the present application can be applied in the application environment as shown in FIG. 1. The electromagnetic transient real-time simulation system communicates with the server 102 through a network, and the electromagnetic transient real-time simulation system includes multiple nodes, each node being used to perform different real-time simulation calculation tasks. When different nodes perform joint simulation, the multiple nodes communicate with each other to forward event data. The data storage system can store data required to be processed by the server 102. The data storage system can be integrated on the server 102, or can be placed on a cloud or other network server. The server 102 determines the event sending time of a first node, the network event forwarding time, and the event receiving time of a second node according to a network channel formed by communication between any two different nodes in a real-time simulation task; and determines the cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node. The server 102 can be an independent physical server, or a server cluster or distributed system formed by multiple physical servers, or a cloud server providing cloud computing services.

[0035] The first node and the second node are any two different nodes in the real-time simulation task, and the first node can be set as an event sending node and the second node can be set as an event receiving node, or the first node can be set as an event receiving node and the second node can be set as an event sending node.

[0036] As shown in FIG. 2, the method for calculating the cross-node communication time in real-time simulation provided by the embodiment of the application is applied to the server 102 in FIG. 1 as an example, and includes the following steps S1 to S2. Wherein:

[0037] Step S1, determining the event sending time of the first node, the network event forwarding time and the event receiving time of the second node according to the network channel formed by the communication between any two different nodes in the real-time simulation task.

[0038] Wherein, the network channel formed by the communication between any two different nodes should include but is not limited to the first node, the second node and the communication equipment between the two nodes.

[0039] Step S2, determining the cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time and the event receiving time of the second node.

[0040] Wherein, in a general example, the communication time between the first node and the second node, i.e. the cross-node communication time, can be determined by the sum of the event sending time of the first node, the network event forwarding time and the event receiving time of the second node. When the cross-node communication time under multiple different communication modes is determined, the performance of different communication modes can be determined by comparing the lengths of the cross-node communication times under different communication modes.

[0041] It should be noted that the application determines the event sending time of the first node, the network event forwarding time and the event receiving time of the second node according to the network channel formed by the communication between any two different nodes in the real-time simulation task, thereby determining the cross-node communication time corresponding to the real-time simulation task, providing a quantitative method for the cross-node communication time, thereby quantifying the influence of the cross-node communication time on the simulation performance, which is beneficial to the large-scale node parallel real-time simulation. Meanwhile, the cross-node communication time under different communication modes can be quantified, thereby determining the performance of different communication modes, which is beneficial to improving the overall performance of the large-scale node real-time simulation.

[0042] In the structure of the network channel as shown in FIG. 3, the network channel includes the CPU configuration of the first node and the network card of the first node.

[0043] The event sending time of the first node is determined according to the time for sending events by the CPU configuration of the first node and the time for sending events by the network card of the first node.

[0044] The time used by the CPU structure of the first node for sending the event is determined according to the time used by the event data structure of the CPU structure of the first node, the time used by the distributed memory management library of the first node for calculating the CPU structure address offset, the time used by the distributed memory management library of the first node for calculating the CPU structure address sent to the CPU structure address offset of the receiving end, and the time used by the distributed memory management library of the first node for integrating the CPU structure sending event chain table.

[0045] The calculation method of the time used by the CPU structure of the first node for sending the event is specifically as follows:

[0046] t xi-send = t xi-str + txi-calsend + txi-calsave + t xi-int .

[0047] In the formula, t xi-send is the time used by the i th CPU structure of the first node for sending the event, t xi-str is the time used by the event data structure of the CPU structure of the first node, txi-calsend is the time used by the distributed memory management library of the first node for calculating the i th CPU structure address offset, txi-calsave is the time used by the distributed memory management library of the first node for calculating the i th CPU structure address sent to the CPU structure address offset of the receiving end, and t xi-int is the time used by the distributed memory management library of the first node for integrating the i th CPU structure sending event chain table.

[0048] As shown in FIG. 4, the step of obtaining the time used by the network card of the first node for sending the event includes steps S101-S103. In the steps, the time used by the network card of the first node for sending the event is determined according to the time used by the plurality of CPU structures of the first node for sending the event to the network card.

[0049] In step S101, the longest time used by the CPU structure of the first node for sending the event to the network card is determined according to the time used by the plurality of CPU structures of the first node for sending the event to the network card.

[0050] It can be understood that the time used by the plurality of CPU structures of the first node for sending the event to the network card is different, and therefore, the longest time used by the CPU structure of the first node for sending the event to the network card is screened out to improve the calculation accuracy of the time used by the network card of the first node for sending the event.

[0051] In step S102, the time used by the network card driver of the first node is determined according to the network card driver attribute of the first node, and the time used by the network card driver of the first node includes the network card startup time of the first node, the time used by the memory management library scheduled by the network card driver of the first node, and the network card addressing time of the first node.

[0052] The network card driver attribute is determined based on a network card setting.

[0053] In step S103, the time for the network card of the first node to send an event is determined according to the longest time for a sending event of a CPU structure of the first node to reach the network card, the time for the network card driver of the first node, and the time for the network card of the first node to copy event data.

[0054] It should be noted that the time for the network card of the embodiment of the present application to copy event data is the time for the network card to copy complete event data. When copying event data, a completeness detection mechanism is used to verify whether the copied event data is complete. If the copied data is not complete, the copied data is corrected until it is complete. The time for the network card to copy event data is the complete time determined by accumulating the copying time.

[0055] Specifically, the calculation method of the time for the network card of the first node to send an event is as follows:

[0056] t x-nc = max(t x1-iss ,t x2-iss ,……,t xi-iss )+t x-ncs +t x-ncd +t x-ncf +t x-ncc .

[0057] In the formula, t x-nc is the time for the network card of the first node x to send an event, t x1-iss is the time for a sending event of a first CPU structure of the first node x to reach the network card; t x2-iss is the time for a sending event of a second CPU structure of the first node x to reach the network card; t xi-iss is the time for a sending event of an i-th CPU structure of the first node x to reach the network card (i=1, 2, …); t x-ncs is the network card startup time of the first node x; t x-ncd is the time for the network card driver of the first node x to schedule a memory management library; t x-ncf is the network card addressing time of the first node x; and t x-ncc is the time for the network card of the first node x to copy event data.

[0058] As shown in FIG. 3, the network channel includes hardware between the first node and the second node and a plurality of cascaded switches.

[0059] The network event forwarding time is determined according to the event transmission time of the hardware and the forwarding time of the plurality of switches.

[0060] Specifically, the method for calculating the network event forwarding time between the first node x and the second node y is specifically as follows:

[0061] t xy-net = t xy-ht + n xy * t switch .

[0062] In the formula, t xy-net is the network event forwarding time between the first node x and the second node y, t xy-ht is the hardware transmission time between the first node x and the second node y, n xy is the number of switches passed between the first node x and the second node y, and t switch is the forwarding time of each level of switch between the first node x and the second node y.

[0063] It can be understood that the hardware transmission time between the first node x and the second node y reflects the communication delay time, and the forwarding time of each level of switch is determined by the switch performance.

[0064] As shown in FIG. 3, the network channel includes a network card of the second node and a CPU structure of the second node.

[0065] The event receiving time of the second node is determined according to the network card receiving processing time of the second node and the time for the CPU structure of the second node to receive event data.

[0066] The network card receiving processing time of the second node is determined according to the time for the network card driver of the second node to schedule the memory management library, the time for the network card of the second node to address, and the time for the network card of the second node to copy event data.

[0067] Specifically, the method for calculating the network card receiving processing time of the second node is specifically as follows:

[0068] t y-nc = t y-ncd + t y-ncf + t y-ncc .

[0069] In the formula, t y-nc is the network card receiving processing time of the second node y, t y-ncd is the time for the network card driver of the second node y to schedule the memory management library, t y-ncf is the time for the network card of the second node y to address, and t y-ncc is the time for the network card of the second node y to copy event data.

[0070] The time for the CPU configuration of the second node to receive the event data is determined according to the interval time for the CPU configuration of the second node to poll the memory management library to receive the event data.

[0071] Specifically, the calculation method of the time for the CPU configuration of the second node to receive the event data is specifically:

[0072] t yj = tyj-polling.

[0073] In the formula, t yj is the time for the CPU configuration of the second node y to receive the event data, and tyj-polling is the interval time for the CPU configuration of the second node y to poll the memory management library to receive the event data.

[0074] Based on the same inventive concept, the embodiment of the present application also provides a cross-node communication time calculation device in real-time simulation for implementing the cross-node communication time calculation method in real-time simulation.

[0075] The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more cross-node communication time calculation device embodiments in real-time simulation provided below can refer to the limitations of the cross-node communication time calculation method in real-time simulation in the above, which will not be repeated here.

[0076] As shown in FIG. 5, the embodiment of the present application also provides a cross-node communication time calculation device in real-time simulation, and the device comprises:

[0077] The node time calculation module 100 is configured to determine the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node according to the network channel formed by the communication between any two different nodes in the real-time simulation task.

[0078] The node communication calculation module 200 is configured to determine the cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node.

[0079] In some embodiments, the network channel comprises a plurality of CPU configurations of the first node and a network card of the first node.

[0080] The event sending time of the first node is determined according to the time for the CPU configuration of the first node to send the event and the time for the network card of the first node to send the event.

[0081] In some embodiments, the time taken for the first node to construct and send CPU events is determined by the time taken to construct and send event data structures based on the first node's CPU construction data structure, the time taken for the first node's distributed memory management library to calculate the CPU construction address offset, the time taken for the first node's distributed memory management library to calculate the CPU construction address and send it to the receiving end's CPU construction address offset, and the time taken for the first node's distributed memory management library to integrate the CPU construction and send event linked list.

[0082] In some embodiments, the time taken to obtain the network interface card (NIC) sending event of the first node includes:

[0083] The longest time taken for the CPU architecture of the first node to send events to the network card is determined based on the time taken for the events to be sent to the network card by the multiple CPU architectures of the first node.

[0084] The time taken by the network card driver of the first node is determined based on the network card driver attributes of the first node. The time taken by the network card driver of the first node includes the network card startup time of the first node, the time taken by the network card driver to schedule the memory management library of the first node, and the time taken by the network card addressing of the first node.

[0085] The time taken for the first node's network card to send an event is determined based on the longest time taken for the first node's CPU to construct and send the event to the network card, the time taken for the first node's network card driver, and the time taken for the first node's network card to copy event data.

[0086] In some embodiments, the network channel includes hardware between the first node and the second node, as well as multiple cascaded switches;

[0087] Network event forwarding time is determined based on the hardware event transmission time and the forwarding time of multiple switches.

[0088] In some embodiments, the network channel includes the network interface card (NIC) of the second node and the CPU configuration of the second node;

[0089] The event reception time of the second node is determined based on the network card reception and processing time of the second node and the time taken by the CPU of the second node to construct and receive event data.

[0090] In some embodiments, the network interface card (NIC) receiving and processing time of the second node is determined based on the time used by the second node's NIC driver to schedule the memory management library, the time used by the second node's NIC to address, and the time used by the second node to copy event data.

[0091] In some embodiments, the time taken for the CPU configuration of the second node to receive event data is determined based on the interval at which the CPU configuration of the second node polls the event data received through the memory management library.

[0092] As shown in FIG. 6, the embodiment of the present application further provides an electronic device, the electronic device 10 comprises a memory 20 and a processor 30, the memory 20 stores a computer program, and the computer program is executed by the processor 30, so that the processor 30 executes the steps of the cross-node communication time calculation method in real-time simulation according to any one of the above-mentioned embodiments.

[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-mentioned system and electronic device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here.

[0094] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0095] In several embodiments provided by the present application, it can be understood that each block in the flowchart or block diagram can represent a module, a program segment or a part of code, and the module, the program segment or the part of code include one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different order from that noted in the figure. For example, two consecutive blocks can actually be executed substantially in parallel, and they can also be executed in reverse order, depending on the functions involved.

[0096] In several embodiments provided by the present application, it should be understood that the disclosed system, electronic device and method can be implemented in other ways. For example, the above-mentioned device embodiments are only schematic, for example, the division of units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0097] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e. may be located in one place, or may be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0098] In addition, each functional unit in each embodiment of the application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0099] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the application, essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for executing all or part of the steps of the method described in each embodiment of the application by a computer device (which can be a personal computer, a server, or a network device, etc.). The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (English full name: Read-Only Memory, English abbreviation: ROM), a random access memory (English full name: Random Access Memory, English abbreviation: RAM), a magnetic disk or an optical disk, and various program code storage media.

[0100] The above embodiments are only used to illustrate the technical solutions of the application, but not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application.

Claims

1. A method for computing communication time across nodes in real-time simulation, characterized by, The method comprises: determining the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node according to a network channel formed by communication between any two different nodes in a real-time simulation task; determining the cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node.

2. The method of claim 1, wherein, The network channel comprises a plurality of CPU configurations of the first node and a network card of the first node. The event sending time of the first node is determined according to the time used for sending an event by the CPU configuration of the first node and the time used for sending an event by the network card of the first node.

3. The method of claim 2, wherein, The time used for sending an event by the CPU configuration of the first node is determined according to the time used for sending an event data structure by the CPU configuration of the first node, the time used for calculating a CPU configuration address offset by a distributed memory management library of the first node, the time used for sending the CPU configuration address offset to an acceptor CPU configuration address offset by the distributed memory management library of the first node, and the time used for integrating a CPU configuration to send an event link list by the distributed memory management library of the first node.

4. The method of claim 2, wherein, The step of obtaining the time used for sending an event by the network card of the first node comprises: determining the longest time used for sending an event by the CPU configuration of the first node to reach the network card according to the time used for sending an event by the plurality of CPU configurations of the first node to reach the network card respectively; determining the time used for the network card driver of the first node according to the network card driver attribute of the first node, wherein the time used for the network card driver of the first node comprises a network card startup time of the first node, a time used for scheduling a memory management library by the network card driver of the first node, and a network card addressing time of the first node; determining the time used for sending an event by the network card of the first node according to the longest time used for sending an event by the CPU configuration of the first node to reach the network card, the time used for the network card driver of the first node, and the time used for copying event data by the network card of the first node.

5. The method of claim 1, wherein, The network channel comprises a plurality of cascaded switches and hardware between the first node and the second node. The network event forwarding time is determined according to the event transmission time of the hardware and the forwarding time of the plurality of switches.

6. The method of claim 1, wherein, The network channel comprises a network card of the second node and a CPU configuration of the second node. The event receiving time of the second node is determined according to the network card receiving processing time of the second node and the time used for receiving event data by the CPU configuration of the second node.

7. The method of claim 6, wherein, The network card receiving processing time of the second node is determined according to the time used for scheduling a memory management library by the network card driver of the second node, the network card addressing time of the second node, and the time used for copying event data by the network card of the second node.

8. The method of claim 6, wherein, The time used for receiving event data by the CPU configuration of the second node is determined according to the interval time of polling to receive event data by the memory management library of the CPU configuration of the second node.

9. An apparatus for computing communication time across nodes in real-time simulation, characterized by: The device comprises: A node time calculation module is configured to determine an event sending time of a first node, a network event forwarding time, and an event receiving time of a second node according to a network channel formed by communication between any two different nodes in a real-time simulation task. A node communication calculation module is configured to determine a cross-node communication time corresponding to the real-time simulation task according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node.

10. An electronic device, comprising: The electronic device includes a memory and a processor, the memory stores a computer program, and the computer program is executed by the processor to make the processor execute the steps of the cross-node communication time calculation method in real-time simulation according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Non-real-time semi-physical simulation synchronization method and device for power grid information physical fusion system

    CN110399623A

  • Low-delay data transmission method

    CN113922907A

  • Cross-node communication time calculation method and device in real-time simulation

    CN119155194A

  • Ring type network system

    JP2007306542A