Cross-node communication time calculation method and device in real-time simulation
By calculating the event sending, forwarding and receiving time between nodes in real-time simulation tasks, the problem of difficult to quantify cross-node communication time is solved, the impact evaluation on simulation performance and performance comparison of communication modes is realized, and the overall performance of node parallel simulation is improved. .
Patent Information
- Application Number
- CN202411344294.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-09-25
AI Technical Summary
The prior art does not provide a calculation method for cross-node communication time, making it difficult to compare the performance advantages and disadvantages of different communication methods, and it is also difficult to quantify the impact of cross-node communication time on simulation performance in electromagnetic transient real-time simulation.
By determining the network channel composed of communication between any two nodes in the real-time simulation task, the event sending time of the first node, the network event forwarding time and the event reception time of the second node are calculated, thereby determining the cross-node communication time.
It provides a quantification method of cross-node communication time to help quantify its impact on simulation performance, and can compare the performance advantages and disadvantages of different communication methods, so as to improve the overall performance of parallel real-time simulation of large-scale nodes.
Smart Images

Figure CN119155194A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of simulation computing, and in particular to a method and device for calculating cross-node communication time in real-time simulation. Background Art
[0002] Real-time simulation of power systems is an effective means to understand the characteristics of power systems, support power system research, planning, operation, production, equipment manufacturing, and ensure the safe and reliable operation of power systems. With the rapid development of new power systems, massive new energy units and power electronic devices are connected to the grid, and the scale of the system is rapidly expanding, there is an urgent need for large-scale node parallel simulation.
[0003] Real-time simulation of power systems has strict time requirements for each link, among which the length of communication time has a great impact on the simulation step size of real-time simulation of power systems. When different nodes are jointly simulated, the communication performance between multiple nodes is crucial. Existing methods do not provide a calculation method for cross-node communication time, making it difficult to compare the performance of different communication methods, and it is also difficult to quantify the impact of cross-node communication time on simulation performance in real-time electromagnetic transient simulation. Summary of the invention
[0004] In view of this, the present invention provides a method and device for calculating the cross-node communication time in real-time simulation, which solves the technical problems that the existing methods do not provide a method for calculating the cross-node communication time, making it difficult to compare the performance advantages and disadvantages of different communication methods, and also difficult to quantify the impact of the cross-node communication time on the simulation performance in electromagnetic transient real-time simulation.
[0005] A first aspect of the present invention provides a method for calculating cross-node communication time in real-time simulation, the method comprising:
[0006] 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;
[0007] The cross-node communication time corresponding to the real-time simulation task is determined according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node.
[0008] Preferably, the network channel includes a plurality of CPU structures of the first node and a network card of the first node;
[0009] The event sending time of the first node is determined according to the time taken by the CPU of the first node to send the event and the time taken by the network card of the first node to send the event.
[0010] Preferably, the time taken by the CPU of the first node to construct a sending event is determined based on the time taken by the CPU of the first node to construct a sending event data structure, the time taken by the distributed memory management library of the first node to calculate the CPU construction address offset, the time taken by the distributed memory management library of the first node to calculate the CPU construction address and send it to the receiving end CPU construction address offset, and the time taken by the distributed memory management library of the first node to integrate the CPU construction sending event linked list.
[0011] Preferably, the step of obtaining the time taken by the network card of the first node to send the event includes:
[0012] Determine the longest time taken by the CPU structure of the first node to send an event to the network card according to the time taken by the multiple CPU structures of the first node to send the event to the network card respectively;
[0013] Determine the time taken by the network card driver of the first node according to the network card driver attribute of the first node, where 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 of the first node to schedule the memory management library, and the time taken by the network card addressing of the first node;
[0014] The time taken by the network card of the first node to send the event is determined based on the longest time taken by the CPU of the first node to send the event to the network card, the time taken by the network card driver of the first node, and the time taken by the network card of the first node to copy event data.
[0015] Preferably, the network channel includes hardware between the first node and the second node and a plurality of cascaded switches;
[0016] 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.
[0017] Preferably, the network channel includes a network card of the second node and a CPU structure of the second node;
[0018] The event receiving time of the second node is determined according to the receiving processing time of the network card of the second node and the time taken by the CPU structure of the second node to receive the event data.
[0019] Preferably, the network card receiving processing time of the second node is determined according to the time taken by the network card driver of the second node to schedule the memory management library, the time taken by the network card of the second node to address, and the time taken by the network card of the second node to copy event data.
[0020] Preferably, the time taken by the CPU structure of the second node to receive the event data is determined according to the interval time of the CPU structure of the second node receiving the event data through polling of the memory management library.
[0021] In a second aspect, the present invention further provides a device for calculating cross-node communication time in real-time simulation, the device comprising:
[0022] A node time calculation module is used 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;
[0023] The node communication calculation module is used 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.
[0024] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for calculating cross-node communication time in real-time simulation as described in the first aspect.
[0025] It can be seen from the above technical scheme that the present invention determines the event sending time of the first node, the network event forwarding time and the event receiving time of the second node through the network channel formed by 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, and provides a quantification method for the cross-node communication time, thereby quantifying its impact on the simulation performance, which is beneficial to large-scale node parallel real-time simulation. 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 THE DRAWINGS
[0026] Figure 1 An application environment for a method for calculating cross-node communication time in real-time simulation provided by an embodiment of the present invention;
[0027] Figure 2 A flow chart of a method for calculating cross-node communication time in real-time simulation provided by an embodiment of the present invention;
[0028] Figure 3 A schematic diagram of the structure of a network channel provided by an embodiment of the present invention;
[0029] Figure 4 A flow chart of obtaining the time taken by the network card of the first node to send an event provided by an embodiment of the present invention;
[0030] Figure 5 A schematic diagram of the structure of a device for calculating cross-node communication time in real-time simulation provided by an embodiment of the present invention;
[0031] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] The present invention provides a method for calculating the cross-node communication time in real-time simulation, which can be applied to Figure 1 In the application environment shown. Among them, the electromagnetic transient real-time simulation system communicates with the server 102 through the network, and the electromagnetic transient real-time simulation system includes multiple nodes, each of which is used to perform different real-time simulation calculation tasks. When different nodes perform joint simulation, multiple nodes communicate to forward event data. The data storage system can store the data that the server 102 needs to process. The data storage system can be integrated on the server 102, or it can be placed on the cloud or other network servers. The server 102 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; the cross-node communication time corresponding to the real-time simulation task is determined according to the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node. Among them, the server 102 can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers, or it can be a cloud server providing cloud computing services.
[0034] Among them, the first node and the second node are any two different nodes in the real-time simulation task, wherein 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.
[0035] like Figure 2 As shown, the embodiment of the present application provides a method for calculating the cross-node communication time in real-time simulation, and the method is applied to Figure 1 The server 102 in the example is used as an example to illustrate, including the following steps S1 to S2. Among them:
[0036] Step S1, according to a network channel formed by communication between any two different nodes in a real-time simulation task, determine an event sending time of a first node, a network event forwarding time, and an event receiving time of a second node.
[0037] Among them, the communication between any two different nodes constitutes a network channel, and the network channel should include but not be limited to the first node, the second node and the communication equipment between the two nodes.
[0038] 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.
[0039] In a general example, the communication time between the first node and the second node corresponding to the real-time simulation task, i.e., the cross-node communication time, can be determined by adding the event sending time of the first node, the network event forwarding time, and the event receiving time of the second node. When determining the cross-node communication time under multiple different communication modes, the cross-node communication time of different communication modes can be compared to determine the performance advantages and disadvantages of different communication modes.
[0040] It should be noted that the present invention determines the event sending time of the first node, the network event forwarding time and the event receiving time of the second node through the network channel formed by 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, and provides a quantification method for the cross-node communication time, thereby quantifying its impact on the simulation performance, which is beneficial to large-scale node parallel real-time simulation. 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.
[0041] In such Figure 3 In the structure of the network channel shown, the network channel includes a plurality of CPU structures of the first node and a network card of the first node.
[0042] The event sending time of the first node is determined according to the time taken by the CPU of the first node to send the event and the time taken by the network card of the first node to send the event.
[0043] Among them, the time used by the CPU of the first node to construct a sending event is determined based on the time used by the CPU of the first node to construct a sending event data structure, the time used by the distributed memory management library of the first node to calculate the CPU construction address offset, the time used by the distributed memory management library of the first node to calculate the CPU construction address and send it to the receiving end CPU construction address offset, and the time used by the distributed memory management library of the first node to integrate the CPU construction sending event linked list.
[0044] The method for calculating the time taken by the CPU of the first node to construct a sending event is specifically as follows:
[0045] t xi-send =t xi-str +t xi-calsend +t xi-calsave +t xi-int
[0046] In the formula, t xi-send The time taken by the i-th CPU of the first node x to construct a send event, t xi-str The time taken to construct the send event data structure for the i-th CPU of the first node x, t xi-calsend Calculate the time taken by the distributed memory management library of the first node x to construct the address offset of the i-th CPU, t xi-calsave Calculate the time taken by the distributed memory management library of the first node x to send the i-th CPU structure address to the receiving end CPU structure address offset, t xi-int The time taken by the distributed memory management library of the first node x to integrate the i-th CPU to construct and send the event linked list.
[0047] Among them, Figure 4 As shown, the step of obtaining the time taken by the network card of the first node to send the event includes steps S101 to S103. Among them:
[0048] Step S101: Determine the longest time taken by a CPU structure of a first node to send an event to a network card according to the time taken by multiple CPU structures of a first node to send events to a network card respectively.
[0049] It is understandable that the time taken by multiple CPU structures of the first node to send events to the network card is different. Therefore, it is necessary to filter out the longest time taken by the CPU structure of the first node to send events to the network card to improve the calculation accuracy of the time taken by the network card of the first node to send events.
[0050] Step S102: determining the time used by the network card driver of the first node according to the network card driver attributes of the first node, wherein 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 network card driver of the first node to schedule the memory management library, and the time used by the network card addressing of the first node.
[0051] The network card driver attributes are driver attributes determined based on the network card settings.
[0052] Step S103: determine the time taken by the network card of the first node to send the event according to the longest time taken by the CPU of the first node to send the event to the network card, the time taken by the network card driver of the first node, and the time taken by the network card of the first node to copy the event data.
[0053] It should be noted that the time taken by the network card to copy event data in the embodiment of the present invention is the time taken by the network card to copy the complete event data. When copying event data, the integrity detection mechanism is used to verify whether the copied event data is complete. If the copied data is incomplete, the copied data will be corrected until the copy is complete. The time taken by the network card to copy event data is the complete time determined by the accumulated copy time.
[0054] Specifically, the method for calculating the time taken by the network card of the first node to send the event is as follows:
[0055] 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
[0056] In the formula, t x-nc is the time taken by the first node x’s network card to send the event, t x1-iss The time taken for the send event constructed by the first CPU in the first node x to reach the network card; t x2-iss The time taken for the send event constructed by the second CPU in the first node x to reach the network card; t xi-iss is the time taken for the send event constructed by the i-th CPU in the first node x to reach the network card, (i=1,2,...); t x-ncs is the network card startup time in the first node x; t x-ncd The time taken by the network card driver in the first node x to schedule the memory management library; t x-ncf is the time taken by the network card in the first node x to address; t x-ncc It is the time taken by the network card in the first node x to copy the event data.
[0057] like Figure 3 As shown, the network channel includes hardware between a first node and a second node and a plurality of cascaded switches.
[0058] The network event forwarding time is determined based on the event transmission time of the hardware and the forwarding time of multiple switches.
[0059] Specifically, the method for calculating the network event forwarding time between the first node x and the second node y is as follows:
[0060] t xy-net =t xy-ht +n xy *t switch
[0061] 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 from the first node x to the second node y, n xy is the number of switches between the first node x and the second node y, t switch is the forwarding time of each level of switches between the first node x and the second node y.
[0062] 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 at the same time, the forwarding time of each level of switch is determined by the switch performance.
[0063] like Figure 3 As shown, the network channel includes the network card of the second node and the CPU structure of the second node.
[0064] The event receiving time of the second node is determined according to the receiving processing time of the network card of the second node and the time taken by the CPU structure of the second node to receive the event data.
[0065] The receiving processing time of the network card of the second node is determined according to the time taken by the network card driver of the second node to schedule the memory management library, the time taken by the network card of the second node to address, and the time taken by the network card of the second node to copy event data.
[0066] Specifically, the method for calculating the receiving processing time of the network card of the second node is as follows:
[0067] t y-nc = t y-ncd +t y-ncf +t y-ncc
[0068] In the formula, t y-nc is the network card receiving processing time of the second node y, t y-ncd The time taken by the network card driver of the second node y to schedule the memory management library, t y-ncf is the time taken by the network card of the second node y to address, t y-ncc It is the time taken by the network card of the second node y to copy the event data.
[0069] The time taken by the CPU structure of the second node to receive the event data is determined according to the interval time of the CPU structure of the second node polling and receiving the event data through the memory management library.
[0070] Specifically, the calculation method of the time taken by the CPU of the second node to receive event data is as follows:
[0071] t yj =tyj-polling
[0072] In the formula, t yj is the time taken by the CPU of the second node y to construct and receive event data, t yj-polling The interval time for polling and receiving event data through the memory management library is constructed for the CPU of the second node y.
[0073] Based on the same inventive concept, an embodiment of the present application also provides a device for calculating cross-node communication time in real-time simulation for implementing the above-mentioned method for calculating cross-node communication time in real-time simulation.
[0074] The implementation solution to the problem provided by the device is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in one or more embodiments of the device for calculating the cross-node communication time in real-time simulation provided below can be referred to the limitations on the method for calculating the cross-node communication time in real-time simulation above, and will not be repeated here.
[0075] like Figure 5 As shown, the embodiment of the present application also provides a device for calculating the cross-node communication time in real-time simulation, and the device includes:
[0076] The node time calculation module 100 is used 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;
[0077] The node communication calculation module 200 is used 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.
[0078] In some embodiments, the network channel includes a plurality of CPU fabrics of the first node and a network card of the first node;
[0079] The event sending time of the first node is determined according to the time taken by the CPU of the first node to send the event and the time taken by the network card of the first node to send the event.
[0080] In some embodiments, the time taken by the first node's CPU to construct a sending event is determined based on the time taken by the first node's CPU to construct a sending event data structure, the time taken by the first node's distributed memory management library to calculate the CPU construction address offset, the time taken by 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 by the first node's distributed memory management library to integrate the CPU construction sending event linked list.
[0081] In some embodiments, obtaining the time taken by the network card of the first node to send the event includes:
[0082] Determine the longest time taken by the CPU structure of the first node to send an event to the network card according to the time taken by the multiple CPU structures of the first node to send the event to the network card;
[0083] Determine the time taken by the network card driver of the first node according to the network card driver attribute of the first node, where 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 of the first node to schedule the memory management library, and the time taken by the network card addressing of the first node;
[0084] The time taken by the network card of the first node to send the event is determined based on the longest time taken by the CPU of the first node to send the event to the network card, the time taken by the network card driver of the first node, and the time taken by the network card of the first node to copy event data.
[0085] In some embodiments, the network channel includes hardware between the first node and the second node and a plurality of cascaded switches;
[0086] The network event forwarding time is determined by the event transmission time of the hardware and the forwarding time of multiple switches.
[0087] In some embodiments, the network channel includes a network card of the second node and a CPU structure of the second node;
[0088] The event reception time of the second node is determined according to the reception processing time of the network card of the second node and the time taken by the CPU structure of the second node to receive the event data.
[0089] In some embodiments, the network card receiving processing time of the second node is determined based on the time taken by the network card driver of the second node to schedule the memory management library, the time taken by the network card of the second node to address, and the time taken by the network card of the second node to copy event data.
[0090] In some embodiments, the time taken by the CPU structure of the second node to receive the event data is determined according to the interval time of the CPU structure of the second node polling and receiving the event data through the memory management library.
[0091] like Figure 6 As shown, an embodiment of the present application also provides an electronic device, the electronic device 10 includes a memory 20 and a processor 30, the memory 20 stores a computer program, and when the computer program is executed by the processor 30, the processor 30 executes the steps of the method for calculating the cross-node communication time in the real-time simulation of any of the above embodiments.
[0092] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and the electronic device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0093] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0094] In several embodiments provided by the present invention, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of a module, a program segment or a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0095] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, electronic devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for executing all or part of the steps of the method described in each embodiment of the present invention through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0099] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for calculating cross-node communication time in real-time simulation, characterized in that: The method comprises: 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; The cross-node communication time corresponding to the real-time simulation task is determined 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 for calculating cross-node communication time in real-time simulation according to claim 1, characterized in that: The network channel includes a plurality of CPU structures 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 taken by the CPU of the first node to send the event and the time taken by the network card of the first node to send the event.
3. The method for calculating the cross-node communication time in real-time simulation according to claim 2, characterized in that: The time taken by the first node's CPU to construct a sending event is determined based on the time taken by the first node's CPU to construct a sending event data structure, the time taken by the first node's distributed memory management library to calculate the CPU construction address offset, the time taken by 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 by the first node's distributed memory management library to integrate the CPU construction sending event linked list.
4. The method for calculating the cross-node communication time in real-time simulation according to claim 2, characterized in that: The step of obtaining the time taken by the network card of the first node to send the event includes: Determine the longest time taken by the CPU structure of the first node to send an event to the network card according to the time taken by the multiple CPU structures of the first node to send the event to the network card respectively; Determine the time taken by the network card driver of the first node according to the network card driver attribute of the first node, where 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 of the first node to schedule the memory management library, and the time taken by the network card addressing of the first node; The time taken by the network card of the first node to send the event is determined based on the longest time taken by the CPU of the first node to send the event to the network card, the time taken by the network card driver of the first node, and the time taken by the network card of the first node to copy event data.
5. The method for calculating the inter-node communication time in real-time simulation according to claim 1, characterized in that: The network channel includes hardware between the first node and the second node and a plurality of cascaded switches; 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 for calculating the inter-node communication time in real-time simulation according to claim 1, characterized in that: The network channel includes a network card of the second node and a CPU structure of the second node; The event receiving time of the second node is determined according to the receiving processing time of the network card of the second node and the time taken by the CPU structure of the second node to receive the event data.
7. The method for calculating the inter-node communication time in real-time simulation according to claim 6, characterized in that: The receiving processing time of the network card of the second node is determined according to the time taken by the network card driver of the second node to schedule the memory management library, the time taken by the network card of the second node to address, and the time taken by the network card of the second node to copy event data.
8. The method for calculating cross-node communication time in real-time simulation according to claim 6, characterized in that: The time taken by the CPU structure of the second node to receive the event data is determined according to the interval time of the CPU structure of the second node polling and receiving the event data through the memory management library.
9. A device for calculating cross-node communication time in real-time simulation, characterized in that: The device comprises: A node time calculation module is used 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; The node communication calculation module is used 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.
10. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for calculating cross-node communication time in real-time simulation as described in 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
Node abnormal event processing method, network card and storage cluster
CN118118321A
Ring type network system
JP2007306542A
Cited By
Method and apparatus for computing cross-node communication time during real-time simulation
WO2026065997A1
