Boundary transparent clock and virtual power plant aggregation control communication network time synchronization method
By using boundary transparent clock and transparent clock technology in the virtual power plant communication network, the problem of time accumulation error in clock synchronization in the virtual power plant communication network is solved, high-precision global time synchronization is achieved, and precise power grid control of distributed resources is supported.
Patent Information
- Application Number
- CN202210935153.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-08-04
AI Technical Summary
The existing clock synchronization algorithm has a time accumulation error problem in the virtual power plant communication network, which leads to low accuracy of communication network time synchronization when distributed resources participate in power grid regulation, affecting the accuracy and stability of regulation.
The boundary transparent clock is used to solve the time accumulation error by setting up at least two physical interfaces, one of which is used in the ordinary slave clock mode for clock synchronization, and the other is used in the transparent clock mode to record the dwell time of the synchronization message for delay correction. problem, and allocate different types of nodes in the virtual power plant communication network to set corresponding clock types, and use the optimal master clock algorithm to select the master clock for clock synchronization.
It achieves high-precision global time synchronization in the virtual power plant communication network, improves the accuracy and stability of distributed resources participating in power grid control, avoids time accumulation errors, and is suitable for scenarios such as virtual power plant communication networks.
Smart Images

Figure CN115378535B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy business digitization, and in particular to a boundary transparent clock and a virtual power plant aggregation control communication network time synchronization method. Background Art
[0002] With the rise of flexible resources such as large-scale adjustable loads, distributed power sources, energy storage, and electric vehicles on the power distribution and consumption side, the demand for large-scale distributed flexible resources to participate in the interactive regulation of the power grid has become increasingly urgent. The virtual power plant technology is used to aggregate and interactively regulate large-scale flexible resources in different geographical spaces and response times. The communication network services of virtual power plants present characteristics such as network heterogeneity, bursty traffic, frequent adjustments, and different response time requirements. It is difficult to guarantee network operation status such as delay, packet loss rate, network bandwidth, and service operation quality, which leads to problems such as no guarantee of operation quality, difficulty in measuring service quality, reduced service reliability, unstable network status, and difficulty in controlling communication delay.
[0003] Different types of distributed "source, grid, and load" resources can participate in grid regulation at different time scales, corresponding to milliseconds, seconds, minutes, and hours in terms of business response time. Distributed "source, load, and storage" resources such as distributed power sources, adjustable loads, and energy storage participate in grid peak shaving, frequency regulation, and voltage regulation, which require fast response and precise regulation. High-precision global clock synchronization is the basis for distributed resources to participate in precise grid regulation. Therefore, it is necessary to establish a high-precision global time synchronization mechanism in the virtual power plant communication network to provide strong support for distributed "source, grid, and load" resources to participate in precise grid regulation and coordinated output.
[0004] However, the existing clock synchronization algorithms that can achieve time synchronization have time accumulation errors. Therefore, if the current clock synchronization algorithms are directly applied to the time synchronization of virtual power grid communication networks, there will be a problem of time accumulation errors caused by the cascading of network nodes. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method for synchronizing time in a communication network involving a boundary transparent clock and a virtual power plant aggregate control, so as to solve the technical problem of time accumulation error in the clock synchronization nodes used in the prior art, as well as the problem of high-precision synchronization of communication network time when distributed "source-load-storage" resources participate in precise control of the power grid.
[0006] The technical solution proposed by the present invention is as follows:
[0007] A first aspect of an embodiment of the present invention provides a boundary transparent clock, comprising: at least two physical interfaces, a first physical interface of the at least two physical interfaces is configured as a normal slave clock mode, for clock synchronization with an upstream node; a second physical interface of the at least two physical interfaces is configured as a transparent clock, for transparent transmission of synchronization messages.
[0008] Optionally, the boundary transparent clock also includes: a first local clock and a second local clock; the first local clock synchronizes its own clock through the timestamp information of the synchronization message sent by the external upstream node of the first physical interface; the second local clock records the residence time of the synchronization message through the timestamp information of the synchronization message sent by the external upstream node of the second physical interface, and the second physical interface delays the timestamp information of the synchronization message according to the residence time, and sends the corrected message to the downstream node.
[0009] A second aspect of an embodiment of the present invention provides a virtual power plant aggregate control communication network time synchronization system, comprising: an instruction issuing node, a policy making node, an instruction transparent transmission node and an action execution node, the instruction issuing node is configured with an ordinary clock, the policy making node is configured with a boundary transparent clock, the instruction transparent transmission node is configured with a transparent clock, the action execution node is configured with an ordinary clock, and the boundary transparent clock is the boundary transparent clock described in the first aspect of the embodiment of the present invention; the clocks corresponding to the instruction issuing node, the policy making node and the action execution node participate in the selection of the best master clock, the selected master clock obtains the coordinated universal time, and the remaining slave clocks and the master clock perform clock synchronization according to the exchanged synchronization message information.
[0010] Optionally, the instruction issuing nodes include a power grid dispatching system and a power grid marketing system; the strategy formulation nodes include a virtual power plant platform and a third-party aggregator system; the instruction transmission nodes include aggregation control devices for non-execution actions, security isolation devices, security boundary encryption gateways, switches, and 4G / 5G network equipment; the action execution nodes include aggregation control devices for performing relay protection, stabilization control, and scheduling.
[0011] Optionally, when the ordinary clock is the selected best master clock, the ordinary clock obtains the coordinated universal time; when the ordinary clock is a slave clock, the ordinary clock performs clock synchronization according to the synchronization message sent by the upstream node; the transparent clock is used to record the residence time of the synchronization message in the transparent clock and perform delay correction on the synchronization message.
[0012] A third aspect of an embodiment of the present invention provides a method for time synchronization of a virtual power plant aggregate control communication network, comprising: obtaining network nodes in the virtual power plant communication network; dividing the network nodes into instruction issuing nodes, policy making nodes, instruction transparent transmission nodes and action execution nodes according to the action types of the network nodes; configuring an ordinary clock for the instruction issuing node, a boundary transparent clock for the policy making node, a transparent clock for the instruction transparent transmission node, and an ordinary clock for the action execution node according to the actions executed by the network nodes, wherein the boundary transparent clock is the boundary transparent clock described in claim 1 or 2; selecting the best master clock from the clocks corresponding to the instruction issuing node, the policy making node and the action execution node according to the best master clock algorithm, and obtaining the coordinated universal time from the selected master clock; performing clock synchronization according to the synchronization message information exchanged between the remaining slave clocks and the master clock.
[0013] Optionally, obtaining network nodes in the virtual power plant communication network includes: determining typical scenarios in which distributed "source-load-storage" resources participate in grid regulation based on the working mode of the virtual power plant platform; and obtaining network nodes in the virtual power plant communication network according to the typical scenarios.
[0014] Optionally, the optimal master clock algorithm includes a data set comparison algorithm or a state determination algorithm; clock synchronization is performed according to the synchronization message information exchanged between the remaining slave clocks and the master clock, including: based on a delay request response measurement mechanism or a peer delay measurement mechanism, clock information is exchanged between the remaining slave clocks and the master clock.
[0015] The fourth aspect of an embodiment of the present invention provides a time synchronization device for a virtual power plant aggregation control communication network, including: a network node acquisition module, used to acquire network nodes in the virtual power plant communication network; a network node division module, used to divide the network nodes into instruction issuing nodes, policy making nodes, instruction transparent transmission nodes and action execution nodes according to the action type of the network nodes; a clock configuration module, used to configure an ordinary clock for the instruction issuing node, a boundary transparent clock for the policy making node, a transparent clock for the instruction transparent transmission node, and an ordinary clock for the action execution node according to the action executed by the network node, and the boundary transparent clock is the boundary transparent clock described in the first aspect of the present invention; a master clock selection module, used to select the best master clock from the clocks corresponding to the instruction issuing node, the policy making node and the action execution node according to the best master clock algorithm, and the selected master clock obtains the coordinated universal time; a clock synchronization module, used to perform clock synchronization according to the synchronization message information exchanged between the remaining slave clocks and the master clock.
[0016] A fifth aspect of an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the virtual power plant aggregation control communication network time synchronization method as described in the third aspect of the embodiment of the present invention and any one of the third aspects.
[0017] A sixth aspect of an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the virtual power plant aggregation control communication network time synchronization method as described in the third aspect and any one of the third aspects of the embodiment of the present invention.
[0018] The technical solution provided by the present invention has the following effects:
[0019] The boundary transparent clock provided by the embodiment of the present invention uses at least two interfaces to perform clock synchronization using one physical interface, and the other physical interface is configured as a transparent clock, and the transparent clock can record the residence time of the synchronization message. Therefore, the boundary transparent clock can not only achieve clock synchronization with the upstream node, but also solve the cumulative error caused by the boundary clock cascade switching network by recording the residence time of the synchronization message. That is, the boundary transparent clock solves the problem of time accumulation error existing in the existing time synchronization nodes, which facilitates the application of the boundary transparent clock in application scenarios that need to complete local clock synchronization but cannot have time accumulation error, such as virtual power plant communication networks and other scenarios.
[0020] The virtual power plant aggregation control communication network time synchronization system provided by the embodiment of the present invention divides the virtual power plant communication network nodes into four types: instruction issuing nodes, instruction transparent transmission nodes, policy formulation nodes, and action execution nodes, and sets them as ordinary clocks, transparent boundary clocks, transparent clocks, and ordinary clocks respectively. It realizes the redivision of virtual power plant communication network nodes according to business types, can set different clock types for different types of network nodes, and adopt different types of clock synchronization methods, thereby improving the time synchronization efficiency of the virtual power plant communication network.
[0021] The embodiment of the present invention provides a method and device for synchronizing the communication network time of a virtual power plant aggregation control. Aiming at the business needs of the scenario in which the virtual power plant aggregates distributed resources to participate in the power grid control, the network nodes are divided into four types: instruction issuing nodes, instruction transparent transmission nodes, policy formulation nodes, and action execution nodes. The nodes are correspondingly set as ordinary clocks, transparent boundary clocks, transparent clocks, and ordinary clocks. Then, the best master clock algorithm is used to select the best master clock, determine the master-slave relationship between the clock nodes, complete the hierarchical division of the communication network, and the best master clock obtains UTC time information. The nodes of the communication network perform time synchronization, which can achieve high-precision global time synchronization between the nodes of the virtual power plant communication network, and provide strong support for the distributed "source-grid-load" resources to participate in the precise control and coordinated output of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 is a schematic diagram of an end-to-end delay correction method according to an embodiment of the present invention;
[0024] Figure 2 is a schematic diagram of a point-to-point delay correction method according to an embodiment of the present invention;
[0025] Figure 3 is a flowchart of a method for time synchronization of a virtual power plant aggregation control communication network according to an embodiment of the present invention;
[0026] Figure 4 is a flowchart of a method for time synchronization of a virtual power plant aggregation control communication network according to another embodiment of the present invention;
[0027] Figure 5 Schematic diagram of a typical scenario in a method for time synchronization of a virtual power plant aggregation control communication network according to an embodiment of the present invention;
[0028] Figure 6 is a schematic diagram of a delay measurement mechanism for a delay request response path according to an embodiment of the present invention;
[0029] Figure 7 is a schematic diagram of a time synchronization method for a virtual power plant aggregation control communication network according to an embodiment of the present invention;
[0030] Figure 8 is a structural block diagram of a time synchronization device for a virtual power plant aggregation control communication network according to another embodiment of the present invention;
[0031] Fig. 9 is a schematic diagram of the structure of a computer-readable storage medium provided according to an embodiment of the present invention;
[0032] Fig.10 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] 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 should fall within the scope of protection of the present invention.
[0034] The terms "first", "second", "third", "fourth", 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 described herein can be implemented in an order other than that 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] Current clock nodes include ordinary clocks (OC), boundary clocks (BC) and transparent clocks (TC). These clock nodes are first logically organized into a master-slave synchronization hierarchy when performing clock synchronization. The top of the master-slave synchronization hierarchy is the best master clock, which is selected through the best master clock algorithm. The best master clock obtains the precise coordinated universal time (UTC) time information from the cesium atomic clock, GPS or Beidou satellite, and then transmits the time synchronization information to each clock node in the communication network. The clock node completes the time axis calibration of the clock node in the communication network by running the local clock synchronization algorithm.
[0036] Among them, the ordinary clock communicates with the communication network through a physical interface, and the interface contains an event interface and a general interface. The event interface is used to send and receive event messages, and has a timestamp function. It can obtain the timestamp of the event message entering and leaving the network interface. The event message adds a timestamp based on the timestamp generation block of the local clock value. The general interface is used to send and receive general messages. The ordinary clock node is at the end of the communication network and can be used as the master clock node or slave clock of the synchronization network, but it cannot be used as the sender of the synchronization message at the same time. When the ordinary clock node is used as the best master clock, it can obtain UTC time information through the cesium atomic clock, GPS or Beidou satellite, and then encapsulate the time information in the synchronization message and send it to each clock node through the communication network. When the ordinary clock node is used as a slave clock node, the slave clock node, as the end node of the communication network, will only complete clock synchronization according to the synchronization message sent by the upstream node, and the node's own clock information is not used for the synchronization of other clock nodes.
[0037] The boundary clock has two or more physical interfaces, and each physical interface communicates with the communication network through two logical interfaces (event interface and general interface). Each physical interface of the boundary clock is similar to the physical interface of the ordinary clock. The boundary clock acts as a relay node in the communication network, one of the physical interfaces of which is a slave clock port, receiving synchronization messages containing UTC time information and completing time synchronization with the upstream node. The other physical interfaces are master clock ports, performing the master clock function, and packaging the UTC time obtained after synchronization in the synchronization message again and sending it to the downstream clock node.
[0038] As a relay node in the communication network, the boundary clock directly stores and forwards non-PTP (Precision Time Protocol) message information like a router or switch. There is a certain time deviation in the process of receiving upstream synchronization messages to modify the local clock of the boundary clock node. The time deviation value will be accumulated in the synchronization message sent from the master clock port of the boundary clock node to the downstream node. Therefore, as the number of cascaded boundary clock nodes in the communication network increases, the time deviation between the downstream clock node and the best master clock node will increase, resulting in clock asynchrony.
[0039] A transparent clock is similar to a boundary clock. It has two or more physical interfaces, but these physical interfaces do not participate in clock synchronization and have no port status. Its main function is to forward PTP messages. It directly forwards general messages and calculates the time when the event message resides in the transparent clock. For non-PTP messages, the transparent clock directly stores and forwards them like the boundary clock. Among them, PTP messages refer to messages used for time synchronization and contain time synchronization information. Non-PTP messages are other messages in the communication network.
[0040] As a repeater of the communication network, the transparent clock maintains a free-running local clock inside the node, which is only responsible for recording the residence time of the synchronization message in the transparent clock node and performing delay correction on the synchronization message. Because the residence time of the message passing through the end-to-end transparent clock node is known, the process of the synchronization message passing through the end-to-end transparent clock node can be logically equivalent to the synchronization message passing through a link with a known period of time, so the end-to-end transparent clock node is quite "transparent". Regardless of how many transparent clock nodes the synchronization message passes through, the residence time of the synchronization message is known, so the downstream slave clock nodes are equivalent to clock synchronization directly completed with the master clock node, and there is no problem of cumulative error caused by cascading multiple switching nodes.
[0041] Boundary clocks and transparent clocks are usually implemented on switches or routers as repeaters of communication networks. However, when boundary clocks are used in cascade networks, cumulative errors will occur. Although transparent clocks solve the cumulative error problem, transparent clocks themselves cannot complete clock synchronization with the network. They are not suitable for application scenarios in which some network nodes in the virtual power plant communication network need to complete local clock synchronization but cannot have cumulative time errors.
[0042] In view of this, an embodiment of the present invention provides a boundary transparent clock, including: at least two physical interfaces, the first physical interface of the at least two physical interfaces is configured as a common slave clock mode, used for clock synchronization with an upstream node; the second physical interface of the at least two physical interfaces is configured as a transparent clock, used for transparent transmission of synchronization messages. Specifically, the physical interface includes two or more, that is, the physical interface includes a first physical interface, a second physical interface...the nth physical interface, and so on. Among them, the common slave clock mode corresponds to the working mode of the common clock as a slave clock node.
[0043] The boundary transparent clock provided by the embodiment of the present invention uses at least two interfaces to perform clock synchronization using one physical interface and configure the other physical interface as a transparent clock, and the transparent clock can record the residence time of the synchronization message. Therefore, the boundary transparent clock can not only achieve clock synchronization with the upstream node, but also solve the cumulative error caused by the boundary clock cascade switching network by recording the residence time of the synchronization message. That is, the boundary transparent clock solves the problem of time accumulation error existing in the existing time synchronization nodes, which facilitates the application of the boundary transparent clock in application scenarios that need to complete local clock synchronization but cannot have time accumulation error, such as virtual power plant communication networks and other scenarios.
[0044] In one embodiment, in order to achieve clock synchronization of a boundary transparent clock and delay correction of messages, a first local clock and a second local clock are set in the boundary transparent clock; the first local clock synchronizes its own clock through the timestamp information of the synchronization message sent by the external upstream node of the first physical interface; the second local clock records the residence time of the synchronization message through the timestamp information of the synchronization message sent by the external upstream node of the second physical interface, and the second physical interface performs delay correction on the timestamp information of the synchronization message according to the residence time, and sends the corrected message to the downstream node.
[0045] According to the different transparent clock modes in the boundary transparent clock, when the boundary transparent clock performs delay correction, it can adopt either an end-to-end (E2E) delay correction method or a peer-to-peer (P2P) delay correction method. Figure 1 As shown in the figure, in the end-to-end delay correction method, both the Sync message (synchronization message) and the Delay_Req message (delay request message) contain an 8-byte correction domain field, which is used to record the residence time of the data frame in the transparent clock node. Among them, c0 represents the initial time value of the correction domain of the Sync message; c1 represents the initial time value of the correction domain of the Delay_Req message. When the synchronization message is forwarded through the E2E boundary transparent clock node, the node will accumulate the residence time of the synchronization message in the message correction domain field, and then send it to the slave clock node. Because the residence time of the message passing through the E2E boundary transparent clock node is known, the process of the synchronization message passing through the E2E boundary transparent clock node can be logically equivalent to the synchronization message passing through a physical link with a known period of time, so that the E2E boundary transparent clock node is quite "transparent". Regardless of how many E2E boundary transparent clock nodes the synchronization message passes through, the retention time of the synchronization message is known. Therefore, the downstream slave clock nodes are equivalent to clock synchronization completed directly with the master clock node, and there is no cumulative error problem caused by multi-stage switching node cascading.
[0046] That is, when the end-to-end delay correction method is used, the end-to-end transparent boundary clock residence time bridge measures the residence time of the PTP event message, or the time required for the message to pass through the boundary transparent clock. These residence times are accumulated in a specific field, and the correction model completes the correction through the difference in the timestamps generated when the event message enters and leaves the transparent clock.
[0047] like Figure 2 As shown, when using a P2P border transparent clock node to transmit synchronization messages, it is necessary to calculate the link delay between the border transparent clock node and other clock nodes in advance, and accumulate the link delay of the synchronization message through the physical link and the delay in the border transparent clock node in the synchronization message correction domain field. Figure 2 In the figure, c0 represents the initial time value of the correction field of the Sync message; d1 represents the link delay between the master clock and the transparent clock; and d2 represents the link delay between the transparent clock and the slave clock.
[0048] After the synchronization message reaches the downstream slave clock through the P2P boundary transparent clock node, the slave clock can obtain all the delay information of the synchronization message from the source node to the slave clock node by parsing the correction domain field of the synchronization message. This delay information includes two parts: physical link delay and transparent clock retention delay. When the downstream slave clock node receives the synchronization message through the P2P boundary transparent clock node, it also directly completes the clock synchronization with the upstream master clock node, and there is no cascade error problem. The point-to-point boundary transparent clock node can not only record the time that the event message stays in the clock, but also calculate the link delay between any clocks connected to it.
[0049] When using the virtual power plant platform to aggregate and regulate distributed "source, load, and storage" resources, the distributed "source, load, and storage" resources need to be built on a good communication network. Poor communication network performance can be manifested as loss of operation data or unreliable control of the aggregate control terminal, which hinders the development of aggregate regulation services. Distributed "source, load, and storage" resources such as distributed power sources, adjustable loads, and energy storage participate in grid peak shaving, frequency regulation, and voltage regulation, which require fast response and precise regulation. Latency is a key parameter to ensure the quality of demand-side communication.
[0050] As shown in Table 1, the delay and reliability indicators of power grid regulation services. Power grid regulation and demand response services are mainly divided into peak load regulation, frequency regulation, emergency demand response, normal demand response, clean energy consumption and power market transactions. Among them, the delay requirements of frequency regulation and emergency demand response are millimeter level, and the delays of peak load regulation, normal demand response, clean energy consumption and power market transactions are seconds or minutes.
[0051] Table 1
[0052]
[0053] It can be seen that in the virtual power plant platform, reducing the network delay of each communication node in the communication network and maintaining high-precision global time synchronization between each communication node have a significant impact on the aggregated regulation of the virtual power plant.
[0054] In view of this, an embodiment of the present invention further provides a virtual power plant aggregation control communication network time synchronization method, such as Figure 3 and Figure 4 As shown, the method comprises the following steps:
[0055] Step S101: Obtain network nodes in the virtual power plant communication network; specifically, in order to achieve time synchronization of the communication network, it is necessary to first determine the communication networking mode in which distributed resources participate in the regulation and control, and determine the network nodes in the communication network. When determining the network nodes, the typical scenario in which distributed "source-load-storage" resources participate in the grid regulation and control can be determined based on the working mode of the virtual power plant platform; and the network nodes in the virtual power plant communication network are obtained according to the typical scenario.
[0056] In a virtual power plant, it mainly operates in the following working mode: the virtual power plant platform collects the operating status information of distributed "source, load and storage" resources through the aggregation control device, and aggregates the spatially dispersed "source, load and storage" resources into aggregated resources suitable for grid dispatch; and the aggregation control device can decompose the dispatch instructions for the aggregated resources according to the grid dispatch requirements, and issue action instructions to the distributed "source, load and storage" resources at the specified time through the grid dispatch instructions. The aggregation control device includes relay protection, stabilization control, dispatching and other devices, which can parse the sensor data uploaded by the distributed "source, load and storage" resources and encapsulate them into a form that can be safely transmitted on the public network. It can parse and decompose the control instructions transmitted through the public network, and control the distributed "source, load and storage" resources to act at the specified time.
[0057] Based on the above working mode, the typical scenarios of distributed "source-load-storage" resources participating in power grid regulation mainly include: Figure 5 The ten typical scenarios are shown. Figure 5 In the example, each transmission line represents a typical scenario. In these virtual power plant aggregation control scenarios, the network node types are complex and the access network is diverse and heterogeneous. In the entire aggregation control process, the power grid dispatching system, power grid marketing system, virtual power plant platform, aggregation control device, wireless / wired devices in heterogeneous networks and other nodes are included. The main typical scenarios include: according to the power grid dispatching business needs, the power grid dispatching system issues control instructions; the virtual power plant platform receives the dispatching task instructions, decomposes the tasks and formulates the dispatching strategy, and encapsulates them into messages that can be safely transmitted on the public network and sends them to the aggregation control device; the aggregation control device parses the control instructions and controls the distributed "source, load and storage" resources to act at the specified time.
[0058] Therefore, based on these typical scenarios, it can be determined that the network nodes include power grid dispatching system, power grid marketing system, virtual power plant platform, third-party aggregator system, aggregation control device, wireless / wired devices in multi-heterogeneous networks and other nodes. Wireless / wired network devices in multi-heterogeneous networks include network node data such as security isolation devices, security boundary encryption gateways, switches, and 4G / 5G network devices.
[0059] Step S102: Classify the network nodes into instruction issuing nodes, policy making nodes, instruction transparent transmission nodes and action execution nodes according to the action types of the network nodes. Specifically, different network nodes have different action types. Therefore, according to whether the network nodes participate in scheduling instruction task issuance, policy making, policy parsing and action execution, the network nodes are divided into four types: instruction issuing nodes, policy making nodes, instruction transparent transmission nodes and action execution nodes.
[0060] As shown in Table 2, network nodes are divided into four types: A1, A2, A3, and A4. Among them, A1 corresponds to the command issuing node, mainly including the power grid dispatching system, power grid marketing system, etc.; A2 corresponds to the task decomposition and strategy formulation node, mainly including the virtual power plant platform and the third-party aggregator system; A3 corresponds to the command transmission node, mainly including the aggregation control device of non-execution action, wireless / wired network equipment in the multi-heterogeneous network, including security isolation devices, security boundary encryption gateways, firewalls, switches, 4G / 5G network equipment, etc.; A4 corresponds to the strategy analysis and action execution node, mainly including the aggregation control devices such as relay protection, stability control, and dispatching.
[0061] Step S103: According to the actions executed by the network nodes, a common clock is configured for the instruction issuing node, a boundary transparent clock is configured for the policy making node, a transparent clock is configured for the instruction transparent transmission node, and a common clock is configured for the action execution node. The boundary transparent clock is the boundary transparent clock described in the above embodiment.
[0062] Specifically, according to the action types performed by different types of network nodes, corresponding clock types are configured for corresponding types of nodes. The instruction issuing node A1 (power grid dispatching system, power grid marketing system) and the A4 action execution node (aggregation control device) are at the end of the communication network and are set as ordinary clock nodes. When the ordinary clock node is used as the best master clock, it can obtain UTC time information through GPS / Beidou satellite, and then encapsulate the time information in the synchronization message and send it to other clock nodes through the communication network. When the ordinary clock node is used as a slave clock node, the slave clock node is the bottom node of the communication network, and completes clock synchronization according to the synchronization message sent by the upstream node. The node's own clock information is not used for the synchronization of other clock nodes.
[0063] The strategy-making node A2 (virtual power plant platform, third-party aggregator system) participates in the scheduling task decomposition and scheduling strategy formulation, and is set as a boundary transparent clock node. The dual-clock timing method adopted by the boundary transparent clock node completes the clock synchronization between the node and the master clock, and solves the cumulative error problem caused by the cascade switching network of the boundary clock node. It is suitable for virtual power plant network communication in complex heterogeneous and multi-layered situations.
[0064] The instruction transparent transmission node A3 mainly includes the aggregation control device of non-executing actions, wireless / wired network equipment in the multi-heterogeneous network (security isolation device, security boundary encryption gateway, switch, 4G / 5G network equipment, etc.), which is set as a transparent clock node. The transparent clock acts as a repeater of the communication network. The node maintains a free-running local clock inside, which is only responsible for recording the residence time of the synchronization message in the transparent clock node and performing delay correction on the synchronization message to solve the cumulative error problem caused by the cascade switching network of the clock node. The transparent clock can be an end-to-end (E2E) transparent clock or a peer-to-peer (P2P) transparent clock.
[0065] The specific configuration results are shown in Table 2 below.
[0066] Table 2
[0067]
[0068] Step S104: Select the best master clock from the clocks corresponding to the instruction issuing node, the policy making node, and the action executing node according to the best master clock algorithm, and the selected master clock obtains the coordinated universal time. Specifically, because the clock port of the transparent clock only participates in the transparent transmission of the synchronization message and has no clock state, it does not participate in the best master clock selection. Therefore, the best master clock selection is mainly participated by the ordinary clock of the instruction issuing node, the boundary transparent clock of the policy making node, and the ordinary clock of the action executing node.
[0069] Among them, the best master clock algorithm (BMC) such as the data set comparison algorithm or the state decision algorithm is used to select the best master clock, so that the master-slave relationship between multiple clocks can be determined, that is, the selected one is used as the master clock. The remaining clocks are used as slave clocks. The master clock is at the top of the master-slave synchronization hierarchy, and obtains the precise coordinated universal time (UTC) time information of the cesium atomic clock, GPS or Beidou satellite. The data set comparison algorithm or the state decision algorithm is the algorithm used in the IEEE 1588 protocol, which will not be repeated here.
[0070] Step S105: Perform clock synchronization according to the synchronization message information exchanged between the remaining slave clocks and the master clock. Specifically, when clock synchronization is performed between the slave clock and the master clock, the slave clock calculates the clock deviation and link delay with the master clock according to the synchronization principle to update the local clock. The time synchronization algorithm specifically includes a delay request response measurement mechanism or a peer delay measurement mechanism. When measuring the link delay, the clock ports at both ends of the link must use the same link delay measurement mechanism to measure the link delay normally. Each clock port of the ordinary clock and the boundary clock supports two measurement mechanisms. The end-to-end transparent clock must use the delay request response measurement mechanism to calculate the link delay, and the point-to-point transparent clock must use the peer delay measurement mechanism to calculate the link delay.
[0071] like Figure 6 As shown in the figure, the following is an explanation of the process of completing network clock synchronization by using the delay request response measurement mechanism: first, the master clock sends a Sync message according to the synchronization cycle set by the system, and records the precise sending time T1 of the Sync message; then the master clock continues to send a Follow_Up message (follow message), which carries the precise sending time T1 of the Sync message. When the slave clock receives the Sync message, the slave clock records the receiving time T2, and then the slave clock sends a Delay_Req message according to the set Delay_Req message sending cycle, and records the sending time T3; when the master clock receives the Delay_Req message, the master clock records the receiving time T4, and finally the master clock puts T4 into a Delay_Resp message (delay response message) and sends it to the slave clock. When the slave clock receives the Delay_Resp message, it starts to calculate the link delay T delay .
[0072] Assume that the clock deviation between the master and slave clocks at time T1 is T offset (Assuming that the clock frequencies of the master and slave clocks are consistent within a synchronization cycle), the link delay between the master and slave clocks is T delay , the master-slave link delay is T _ms , the slave-master link delay is T _sm , then:
[0073] T2-T1=T _ms +T offset
[0074] T4-T3=T _sm -T offset (1)
[0076] Assume that the round trip time between the master and slave clocks is equal, that is, T _ms =T _sm =T delay, so according to formula (1) we can get:
[0077]
[0078]
[0079] Calculate the link delay T from the clock delay After being saved in the node clock, the clock deviation T can be calculated in each Sync message cycle according to the synchronization principle. offset , and finally realize clock calibration.
[0080] The method for synchronizing the communication network for aggregated control of a virtual power plant provided in an embodiment of the present invention divides network nodes into four types: instruction issuing nodes, instruction transparent transmission nodes, policy formulation nodes, and action execution nodes, in response to the business needs of the scenario in which the virtual power plant aggregates distributed resources to participate in power grid control. The nodes are correspondingly set as ordinary clocks, transparent boundary clocks, transparent clocks, and ordinary clocks. Then, the best master clock algorithm is used to select the best master clock, determine the master-slave relationship between the clock nodes, complete the hierarchical division of the communication network, and the best master clock obtains UTC time information. The time synchronization algorithm is run on each node of the communication network, so as to establish high-precision global time synchronization between the nodes of the virtual power plant communication network, and provide strong support for the distributed "source-grid-load" resources to participate in the precise control and coordinated output of the power grid.
[0081] In one embodiment, if Figure 7 As shown, the virtual power plant aggregation control communication network time synchronization method can be implemented according to the following process:
[0082] 1. The virtual power plant communication network is divided into four types of nodes: A1, A2, A3, and A4. The clock types are set for the four types of nodes respectively: A1 and A4 are ordinary clocks, A2 is a transparent boundary clock, and A3 is a transparent clock. The best master clock is selected through the best master clock algorithm.
[0083] 2. If Figure 5 As shown, node 1 is determined to be a common clock node, and as the best master clock, it obtains UTC time information through GPS / Beidou satellite, then encapsulates the time information in a synchronization message, and sends the synchronization message to the downstream node through the M master clock port.
[0084] 3. Node 3, Node 4 and Node 5 are transparent clock nodes and do not participate in clock synchronization. They are only responsible for recording the residence time of the synchronization message in the transparent clock node, performing delay correction on the synchronization message passing through the node, and then forwarding it to the downstream node.
[0085] 4. Node 6 and Node 7 are boundary transparent clock nodes, which include an S master clock port and multiple M slave clock ports. At the same time, the S master clock port is configured as a slave clock state to obtain the synchronization message from the upstream node, and the M slave clock port is configured as a transparent clock mode to transparently transmit the synchronization message. The boundary transparent clock node maintains two local clocks internally. First, the first local clock receives the synchronization message from the upstream node from the clock node to complete its own clock synchronization. Then, the second local clock is used to record the residence time of the synchronization frame in the clock. The node will then perform delay correction on the synchronization message of the node, and accumulate the residence time value recorded by the second local clock in the correction domain field of the synchronization message, and finally send the synchronization message to the downstream node. The boundary transparent clock node not only completes the clock synchronization between the node and the master clock, but also solves the cumulative error caused by the cascade switching network of the boundary clock node.
[0086] 5. Node 2, node 8, node 9, node 10, node M and node N are common clock nodes, and complete their own clock synchronization after receiving synchronization messages from upstream nodes from the clock nodes.
[0087] An embodiment of the present invention also provides a virtual power plant aggregate control communication network time synchronization system, including: an instruction issuing node, a policy making node, an instruction transparent transmission node and an action execution node, the instruction issuing node is configured with an ordinary clock, the policy making node is configured with a boundary transparent clock, the instruction transparent transmission node is configured with a transparent clock, the action execution node is configured with an ordinary clock, and the boundary transparent clock is the boundary transparent clock described in the above embodiment; the clocks corresponding to the instruction issuing node, the policy making node and the action execution node participate in the selection of the best master clock, the selected master clock obtains the coordinated universal time, and the remaining slave clocks and the master clock perform clock synchronization according to the exchanged synchronization message information.
[0088] The virtual power plant aggregation control communication network time synchronization system provided by the embodiment of the present invention divides the virtual power plant communication network nodes into four types: instruction issuing nodes, instruction transparent transmission nodes, policy formulation nodes, and action execution nodes, and sets them as ordinary clocks, transparent boundary clocks, transparent clocks, and ordinary clocks respectively. It realizes the redivision of virtual power plant communication network nodes according to business types, can set different clock types for different types of network nodes, and adopt different types of clock synchronization methods, thereby improving the time synchronization efficiency of the virtual power plant communication network.
[0089] In one embodiment, the instruction issuing node includes a power grid dispatching system and a power grid marketing system; the strategy formulation node includes a virtual power plant platform and a third-party aggregator system; the instruction transmission node includes an aggregation control device for non-execution actions, a security isolation device, a security boundary encryption gateway, a switch, and 4G / 5G network equipment; the action execution node includes an aggregation control device for performing relay protection, stabilization control, and scheduling.
[0090] In one embodiment, when the ordinary clock is the selected best master clock, the ordinary clock obtains the coordinated universal time; when the ordinary clock is a slave clock, the ordinary clock performs clock synchronization according to the synchronization message sent by the upstream node; the transparent clock is used to record the residence time of the synchronization message in the transparent clock and perform delay correction on the synchronization message.
[0091] The embodiment of the present invention also provides a virtual power plant aggregation control communication network time synchronization device, such as Figure 8 As shown, the device comprises:
[0092] The network node acquisition module is used to acquire the network nodes in the virtual power plant communication network; the specific content can be found in the corresponding part of the above method embodiment, which will not be repeated here.
[0093] The network node division module is used to divide the network nodes into instruction issuing nodes, policy making nodes, instruction transparent transmission nodes and action execution nodes according to the action types of the network nodes; the specific content can be found in the corresponding part of the above method embodiment, which will not be repeated here.
[0094] A clock configuration module is used to configure an ordinary clock for the instruction issuing node, a boundary transparent clock for the policy making node, a transparent clock for the instruction transparent transmission node, and an ordinary clock for the action execution node according to the actions performed by the network node. The boundary transparent clock is the boundary transparent clock described in the above embodiment. For specific contents, please refer to the corresponding part of the above method embodiment, which will not be repeated here.
[0095] The master clock selection module is used to select the best master clock from the clocks corresponding to the instruction issuing node, the policy making node and the action execution node according to the best master clock algorithm, and the selected master clock obtains the coordinated universal time; the specific content refers to the corresponding part of the above method embodiment, which will not be repeated here.
[0096] The clock synchronization module is used to perform clock synchronization according to the synchronization message information exchanged between the remaining slave clocks and the master clock. For details, please refer to the corresponding part of the above method embodiment, which will not be repeated here.
[0097] The virtual power plant aggregation control communication network time synchronization device provided by the embodiment of the present invention divides network nodes into four types: instruction issuing nodes, instruction transparent transmission nodes, policy formulation nodes, and action execution nodes, according to the business needs of the virtual power plant aggregation distributed resources participating in the power grid control scenario, and sets them as ordinary clocks, transparent boundary clocks, transparent clocks, and ordinary clocks respectively. Then, the best master clock algorithm is used to select the best master clock, determine the master-slave relationship between the clock nodes, complete the hierarchical division of the communication network, and the best master clock obtains UTC time information. Time synchronization is performed on each node of the communication network, which can achieve high-precision global time synchronization between the nodes of the virtual power plant communication network, and provide strong support for distributed "source-grid-load" resources to participate in the precise control and coordinated output of the power grid.
[0098] For a detailed description of the functions of the virtual power plant aggregation control communication network time synchronization device provided in an embodiment of the present invention, please refer to the description of the virtual power plant aggregation control communication network time synchronization method in the above embodiment.
[0099] The embodiment of the present invention also provides a storage medium, such as Fig. 9 As shown, a computer program 601 is stored thereon, and when the instruction is executed by the processor, the steps of the time synchronization method of the virtual power plant aggregation control communication network in the above embodiment are implemented. The storage medium also stores audio and video stream data, feature frame data, interaction request signaling, encrypted data, and preset data size, etc. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0100] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0101] The embodiment of the present invention further provides an electronic device, such as Fig.10 As shown, the electronic device may include a processor 51 and a memory 52, wherein the processor 51 and the memory 52 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0102] The processor 51 may be a central processing unit (CPU). The processor 51 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0103] The memory 52 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the corresponding program instructions / modules in the embodiment of the present invention. The processor 51 executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory 52, that is, to implement the virtual power plant aggregation control communication network time synchronization method in the above method embodiment.
[0104] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store data created by the processor 51, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0105] The one or more modules are stored in the memory 52 and when executed by the processor 51, perform the following steps: Figure 1 -2 is a method for synchronizing the communication network time of a virtual power plant aggregation control in the embodiment shown in FIG.
[0106] For details of the above electronic equipment, please refer to Figure 1 to Figure 2The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.
[0107] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A virtual power plant aggregate control communication network time synchronization system, characterized in that: include: An instruction issuing node, a policy making node, an instruction transparent transmission node and an action execution node, wherein the instruction issuing node is configured with an ordinary clock, the policy making node is configured with a boundary transparent clock, the instruction transparent transmission node is configured with a transparent clock, and the action execution node is configured with an ordinary clock; The boundary transparent clock includes at least two physical interfaces, the first physical interface of the at least two physical interfaces is configured as a common slave clock mode for clock synchronization with an upstream node; the second physical interface of the at least two physical interfaces is configured as a transparent clock for transparently transmitting synchronization messages; the clocks corresponding to the instruction issuing node, the policy making node and the action executing node participate in the selection of the best master clock, the selected master clock obtains the coordinated universal time, and the remaining slave clocks and the master clock perform clock synchronization according to the exchanged synchronization message information.
2. The virtual power plant aggregate control communication network time synchronization system according to claim 1 is characterized in that: The instruction issuing nodes include the power grid dispatching system and the power grid marketing system; the strategy formulation nodes include the virtual power plant platform and the third-party aggregator system; the instruction transmission nodes include the aggregation control devices for non-execution actions, security isolation devices, security boundary encryption gateways, switches and 4G / 5G network equipment; the action execution nodes include the aggregation control devices for executing relay protection, stabilization control and scheduling.
3. The virtual power plant aggregate control communication network time synchronization system according to claim 1 is characterized in that: When the ordinary clock is the selected best master clock, the ordinary clock acquires the coordinated universal time; when the ordinary clock is a slave clock, the ordinary clock performs clock synchronization according to the synchronization message sent by the upstream node; The transparent clock is used to record the residence time of the synchronization message in the transparent clock and to perform delay correction on the synchronization message.
4. The virtual power plant aggregate control communication network time synchronization system according to claim 1 is characterized in that: The boundary transparent clock also includes: a first local clock and a second local clock; The first local clock synchronizes its own clock through the timestamp information of the synchronization message sent by the external upstream node of the first physical interface; The second local clock records the residence time of the synchronization message through the timestamp information of the synchronization message sent by the external upstream node of the second physical interface. The second physical interface performs delay correction on the timestamp information of the synchronization message according to the residence time and sends the corrected message to the downstream node.
5. A method for time synchronization of a virtual power plant aggregate control communication network, characterized in that: include: Obtain network nodes in the virtual power plant communication network; According to the action type of the network node, the network nodes are divided into instruction issuing nodes, strategy making nodes, instruction transparent transmission nodes and action execution nodes; According to the actions executed by the network nodes, a common clock is configured for the instruction issuing node, a boundary transparent clock is configured for the policy making node, a transparent clock is configured for the instruction transparent transmission node, and a common clock is configured for the action execution node, wherein the boundary transparent clock comprises at least two physical interfaces, a first physical interface of the at least two physical interfaces is configured as a common slave clock mode for clock synchronization with an upstream node; a second physical interface of the at least two physical interfaces is configured as a transparent clock for transparent transmission of synchronization messages; Selecting the best master clock from the clocks corresponding to the instruction issuing node, the policy making node, and the action executing node according to the best master clock algorithm, and obtaining the coordinated universal time from the selected master clock; Clock synchronization is performed based on the synchronization message information exchanged between the remaining slave clocks and the master clock.
6. The method for time synchronization of a virtual power plant aggregate control communication network according to claim 5, characterized in that: Get network nodes in the virtual power plant communication network, including: Determine the typical scenarios of distributed "source-load-storage" resources participating in power grid regulation based on the working mode of the virtual power plant platform; The network nodes in the virtual power plant communication network are obtained according to the typical scenario.
7. The method for time synchronization of a virtual power plant aggregate control communication network according to claim 5, characterized in that: The best master clock algorithm includes a data set comparison algorithm or a state decision algorithm; Clock synchronization is performed based on the synchronization message information exchanged between the remaining slave clocks and the master clock, including: Based on the delay request response measurement mechanism or the peer delay measurement mechanism, synchronization message information is exchanged between the remaining slave clocks and the master clock to carry out clock information.
8. The method for time synchronization of a virtual power plant aggregate control communication network according to claim 5, characterized in that: The boundary transparent clock also includes: a first local clock and a second local clock; The first local clock synchronizes its own clock through the timestamp information of the synchronization message sent by the external upstream node of the first physical interface; The second local clock records the residence time of the synchronization message through the timestamp information of the synchronization message sent by the external upstream node of the second physical interface. The second physical interface performs delay correction on the timestamp information of the synchronization message according to the residence time and sends the corrected message to the downstream node.
9. A virtual power plant aggregation control communication network time synchronization device, characterized in that: include: A network node acquisition module, used to acquire network nodes in the virtual power plant communication network; A network node division module is used to divide network nodes into instruction issuing nodes, strategy formulation nodes, instruction transparent transmission nodes and action execution nodes according to the action types of network nodes; A clock configuration module, configured to configure an ordinary clock for the instruction issuing node, a boundary transparent clock for the policy making node, a transparent clock for the instruction transparent transmission node, and an ordinary clock for the action execution node according to the action executed by the network node, wherein the boundary transparent clock includes at least two physical interfaces, a first physical interface of the at least two physical interfaces is configured as an ordinary slave clock mode for clock synchronization with an upstream node; a second physical interface of the at least two physical interfaces is configured as a transparent clock for transparent transmission of synchronization messages; A master clock selection module is used to select the best master clock from the clocks corresponding to the instruction issuing node, the policy making node and the action executing node according to the best master clock algorithm, and the selected master clock obtains the coordinated universal time; The clock synchronization module is used to perform clock synchronization based on the synchronization message information exchanged between the remaining slave clocks and the master clock.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the virtual power plant aggregation control communication network time synchronization method as described in any one of claims 5 to 8.
11. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the virtual power plant aggregation control communication network time synchronization method as described in any one of claims 5 to 8 by executing the computer instructions.
