Dynamic aggregation management method and cloud-edge equipment for virtual power plant edge computing clusters
By performing clock synchronization and time slot scheduling of the edge computing cluster of virtual power plants, the control instruction jitter problem when there are many equipment in the virtual power plants is solved, and high-reliability and low-latency energy scheduling control is achieved, ensuring the peak-periodic transmission success rate of non-periodic events is achieved.
Patent Information
- Application Number
- CN202510827583.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2045-06-20
AI Technical Summary
When there are many equipment, network congestion or fierce resource competition in existing virtual power plant edge computing clusters, there is significant jitter in the transmission order and execution time of control instructions, making it difficult to achieve efficient and deterministic scheduling, especially when responding to non-periodic incidents, the transmission success rate is insufficient.
By clocking the virtual power plant cloud control center and edge computing cluster nodes, counting the average generation rate of periodic frames and event frames, dividing fixed time slots and reserved time slots, generating a slot schedule, and reserving resource blocks in the 5G-URLLC network slice, setting up a redundant sending mechanism to ensure the accurate transmission of energy scheduling instructions and the synchronization response of the equipment.
It realizes high-reliability and low-latency energy scheduling control for multiple devices during the millisecond-level control period, and forms a closed-loop adaptive optimization mechanism, ensuring the certainty and stability of scheduling response, which is significantly better than the single-network static resource configuration solution.
Smart Images

Figure CN120358210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual power plants, and more specifically, to a dynamic aggregation management method and cloud-edge equipment for edge computing clusters of virtual power plants. Background Art
[0002] As an important form of integrating distributed resources and participating in market-based scheduling, virtual power plants need to coordinate and control heterogeneous equipment on a millisecond time scale to meet the needs of complex application scenarios such as rapid regulation, grid interaction and frequency support.
[0003] To achieve rapid response for dozens to hundreds of energy storage devices, electric vehicles, load-controllable terminals, and other equipment, the mainstream solution currently uses an edge computing cluster architecture. Edge nodes are deployed close to physical devices, allowing some control logic to be decentralized, reducing communication latency and improving response speed. This architecture has gradually become a key supporting platform for future virtual power plants.
[0004] However, existing virtual power plant edge computing clusters generally face the following technical pain points during operation:
[0005] 1. Current control strategies often use simple transmission and reception mechanisms on non-deterministic networks (such as Ethernet and Wi-Fi), which fail to provide strict time constraints. This is especially true when there are a large number of devices, network congestion, or intense resource competition. The transmission order and execution time of control instructions can fluctuate significantly, easily leading to scheduling mismatches.
[0006] 2. Existing technologies often separate the control and scheduling logic from the underlying communication system. Edge nodes only focus on task distribution and do not collaboratively manage network resources (such as link time slots and wireless resource blocks). This makes it difficult to form a closed-loop control of behaviors such as latency, packet loss, and retransmission, which in turn affects control quality.
[0007] 3. Virtual power plant operations often encounter non-periodic events such as fault alarms and grid disturbances, requiring highly real-time response windows. However, existing systems often employ a preemptive coupled queuing mechanism for event frames, making it difficult to guarantee transmission success rates during peak periods and impacting device synchronization. Summary of the Invention
[0008] The present invention provides a dynamic aggregation management method and cloud-edge equipment for a virtual power plant edge computing cluster to solve the technical problems raised in the background technology.
[0009] In a first aspect, the present invention provides a dynamic aggregation management method for a virtual power plant edge computing cluster, comprising:
[0010] Step 1: synchronize the clocks of the virtual power plant cloud control center and the edge computing cluster nodes;
[0011] Step 2: Based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles, the average generation rate of period frames and the average generation rate of event frames are calculated respectively;
[0012] Step 3, according to the average generation rate of periodic frames, the average generation rate of event frames, the preset time slot capacity and the reserved ratio of event frames, respectively, allocating fixed time slots for periodic frames and allocating reserved time slots for event frames to obtain a time slot schedule;
[0013] Step 4: According to the time slot scheduling table, each time slot number is matched with the switch gating list, and the window opening time and duration are generated in the order of the time slots;
[0014] Step 5: Reserving resource blocks for each time slot in the 5G-URLLC network slice and setting a redundant transmission mechanism based on the data load and target reliability of each time slot in the time slot scheduling table;
[0015] Step 6: Map the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp;
[0016] Step 7: The edge computing cluster node forwards the received energy scheduling instruction to the corresponding device, and the device outputs actual power according to the energy scheduling instruction and the maximum power of the device;
[0017] Step 8: Record the round-trip delay and reception success rate of the energy scheduling instruction, and compare them with the preset delay index and reliability index; when any index does not meet the preset requirements, adjust the event frame reservation ratio according to the preset adjustment coefficient, and regenerate the time slot scheduling table.
[0018] Furthermore, based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles, the average generation rate of period frames and event frames is calculated, including:
[0019] Periodic frames represent: equipment status monitoring data sent at fixed time intervals in communication records;
[0020] Event frames represent: non-periodic burst data in communication records;
[0021] The calculation formula for the average generation rate of periodic frames is as follows:
[0022]
[0023] The formula for calculating the average event frame generation rate is as follows:
[0024]
[0025] in, represents the average generation rate of periodic frames, Indicates the average rate at which event frames are generated. represents the number of control cycles, Indicates the duration of each control cycle, Indicates the number of periodic frames in the nth control cycle, Indicates the number of event frames in the nth control cycle.
[0026] Furthermore, according to the average generation rate of periodic frames, the average generation rate of event frames, the preset time slot capacity, and the event frame reserved ratio, fixed time slots are respectively allocated for periodic frames and reserved time slots are allocated for event frames to obtain a time slot scheduling table, including:
[0027] Determine communication resource parameters, which include: preset time slot capacity and average frame size ;
[0028] Determine the number of time slots in each control cycle The number of time slots is the length of the control cycle and the preset time slot length The ratio of
[0029] Fixed time slot allocation in periodic frames, including:
[0030] Calculate the total number of periodic frames in each control cycle , ;
[0031] Calculate the data volume of the periodic frame , , represents the average size of periodic frames;
[0032] Determine the number of time slots allocated to the periodic frame , ;
[0033] Event frame reserved slot allocation, including:
[0034] Loading event frame reservation ratio ζ, 0≤ζ≤1;
[0035] Determine the number of time slots allocated to the event frame , ;
[0036] A time slot scheduling table is generated, which includes: periodic frame time slots, event frame time slots, and flexible time slots; wherein the priorities of the periodic frame time slots and the event frame time slots are in descending order.
[0037] Furthermore, according to the time slot scheduling table, each time slot number is matched with the switch gating list, and the window opening time and duration are generated in the order of the time slots, including:
[0038] For the sth time slot in the time slot schedule, by comparing the sth time slot with the preset time slot length Multiply them to get the gating window opening offset of the sth time slot;
[0039] Set the preset time slot length The gating window duration used as the sth time slot;
[0040] If the sth time slot is less than the number of time slots allocated in the periodic frame , then map the sth time slot to the periodic frame queue mask; otherwise, map the sth time slot to the event frame queue mask;
[0041] Based on the combination of the gated window opening offset, the gated window duration, and the queue mask, a gated list entry for the switch is formed;
[0042] All gated list entries are sent down in time slot order and written into the switch's gated control list.
[0043] Furthermore, based on the data load and target reliability of each time slot in the time slot scheduling table, a resource block is reserved for each time slot in the 5G-URLLC network slice and a redundant transmission mechanism is set, including:
[0044] Read the predicted data load and preset target reliability rate of each time slot from the time slot scheduling table;
[0045] Determine the probability of single transmission failure on the 5G air interface without redundancy;
[0046] Calculate the number of redundant transmissions based on the target reliability rate and the probability of single transmission failure;
[0047] Determine the number of resource blocks required for the corresponding time slot based on the predicted data load of the time slot and the amount of data carried by each resource block;
[0048] In the 5G-URLLC network slice, the required number of resource blocks is reserved for each time slot, and the redundant transmission mechanism is executed according to the number of redundant transmissions.
[0049] Furthermore, the device energy scheduling instruction generated by the cloud control center is mapped to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp, including:
[0050] Obtaining the time slot corresponding to each device energy scheduling instruction generated by the cloud control center from the time slot scheduling table;
[0051] Calculate the sending timestamp of the device energy scheduling instruction based on the duration of the control cycle and the gated window opening offset corresponding to the time slot;
[0052] Adding the sending timestamp to the device energy scheduling instruction to generate an energy scheduling instruction with a timestamp;
[0053] The energy scheduling instructions with timestamps are sent to the corresponding edge computing nodes in chronological order.
[0054] Furthermore, the edge computing cluster node forwards the received energy scheduling instruction to the corresponding device, and the device performs actual power output according to the energy scheduling instruction and the maximum power of the device, including:
[0055] The edge computing cluster node forwards the received energy scheduling instructions with timestamps to the corresponding devices;
[0056] When the local clock of the device reaches the sending timestamp in the energy scheduling instruction with timestamp, the execution is triggered:
[0057] The device calculates the actual output power by multiplying the power ratio in the timestamped energy scheduling instruction by the rated maximum power of the device; the device encapsulates the actual output power and confirmation timestamp into an execution confirmation message and feeds the execution confirmation message back to the edge computing cluster node.
[0058] Furthermore, the round-trip delay and reception success rate of the energy scheduling instruction are recorded and compared with the preset delay index and reliability index; when any index does not meet the preset requirements, the event frame reservation ratio is adjusted according to the preset adjustment coefficient, and the time slot scheduling table is regenerated, including:
[0059] In each control cycle, the sending timestamp of the energy scheduling instruction with timestamp and the confirmation timestamp of the device are recorded, and the number of execution confirmation messages received by the cloud control center is counted;
[0060] Calculate the average round-trip delay and actual reception success rate of energy scheduling instructions with timestamps;
[0061] Compare the average round-trip delay with the preset maximum allowable round-trip delay, and the actual reception success rate with the target reliability rate;
[0062] When the average round-trip delay is greater than the maximum allowed round-trip delay, or the actual reception success rate is less than the target reliability rate, the event frame reservation ratio ζ is adjusted;
[0063] Based on the adjusted event frame reservation ratio ζ, return to step 3 to regenerate the time slot schedule.
[0064] In a second aspect, a cloud edge device of a virtual power plant edge computing cluster is applied to any of the above-mentioned methods for dynamic aggregation management of a virtual power plant edge computing cluster, and is characterized by comprising:
[0065] The clock synchronization module is used to synchronize the clocks of the virtual power plant cloud control center and the edge computing cluster nodes;
[0066] The data acquisition module is used to calculate the average generation rate of period frames and the average generation rate of event frames based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles;
[0067] a time slot scheduling module, configured to allocate fixed time slots for periodic frames and allocated reserved time slots for event frames according to the average periodic frame generation rate, the average event frame generation rate, the preset time slot capacity, and the event frame reservation ratio, so as to obtain a time slot scheduling table;
[0068] A time slot matching module is used to match each time slot number with the switch gating list according to the time slot scheduling table, and generate the window opening time and duration according to the time slot sequence;
[0069] A resource allocation module, configured to reserve resource blocks for each time slot in the 5G-URLLC network slice and set a redundant transmission mechanism based on the data load and target reliability of each time slot in the time slot scheduling table;
[0070] An instruction generation module is used to map the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp;
[0071] The device management module is used for the edge computing cluster node to forward the received energy scheduling instructions to the corresponding device, and the device outputs actual power according to the energy scheduling instructions and the maximum power of the device;
[0072] The parameter optimization module is used to record the round-trip delay and reception success rate of the energy scheduling instruction and compare them with the preset delay index and reliability index; when any index does not meet the preset requirements, the event frame reservation ratio is adjusted according to the preset adjustment coefficient, and the time slot scheduling table is regenerated.
[0073] The beneficial effects of the present invention are: by constructing a time slot scheduling table with unified numbering, the wired-end TSN and the wireless-end 5G-URLLC communication resources are precisely aligned in the time dimension, and combined with the priority separation and resource redundancy strategy of periodic frames and event frames, the virtual power plant realizes high-reliability, low-latency energy scheduling and control of multiple devices within a millisecond-level control cycle, and dynamically adjusts the event frame reservation ratio by real-time collection of round-trip delay and success rate indicators to form a closed-loop adaptive optimization mechanism, thereby continuously ensuring the certainty and stability of scheduling response in a complex network environment, which is significantly better than the existing solution that only supports static resource configuration of a single network segment. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a flow chart of the dynamic aggregation management method of the virtual power plant edge computing cluster of the present invention. DETAILED DESCRIPTION
[0075] The subject matter described herein will now be discussed with reference to exemplary embodiments. It should be understood that these embodiments are discussed solely to enable those skilled in the art to better understand and implement the subject matter described herein, and that the functions and arrangements of the elements discussed may be varied without departing from the scope of this specification. Various examples may omit, substitute, or add various processes or components as needed. In addition, features described with respect to some examples may also be combined in other examples.
[0076] Example 1, as Figure 1 As shown in FIG, the dynamic aggregation management method of the virtual power plant edge computing cluster includes:
[0077] Step 1: synchronize the clocks of the virtual power plant cloud control center and the edge computing cluster nodes;
[0078] It should be noted that clock synchronization processing is implemented based on the IEEE1588-PTP protocol.
[0079] Step 2: Based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles, the average generation rate of period frames and the average generation rate of event frames are calculated respectively;
[0080] In one embodiment of the present invention, based on the communication records between the cloud control center and each edge computing cluster node in the historical N control cycles, the average generation rate of period frames and event frames is calculated respectively, including:
[0081] Periodic frames represent: equipment status monitoring data sent at fixed time intervals in communication records;
[0082] Event frames represent: non-periodic burst data in communication records;
[0083] The calculation formula for the average generation rate of periodic frames is as follows:
[0084]
[0085] The formula for calculating the average event frame generation rate is as follows:
[0086]
[0087] in, represents the average generation rate of periodic frames, Indicates the average rate at which event frames are generated. represents the number of control cycles, Indicates the duration of each control cycle, Indicates the number of periodic frames in the nth control cycle, Indicates the number of event frames in the nth control cycle.
[0088] In detail, the purpose of step 2 is to quantify the traffic characteristics of periodic frames and event frames to provide data support for subsequent time slot scheduling, as follows:
[0089] Periodic frames refer to the equipment status monitoring data sent at fixed time intervals in a virtual power plant. Equipment status monitoring data includes: photovoltaic inverter power, energy storage battery SOC, etc. Equipment status monitoring data has the characteristics of periodicity, low jitter, and high certainty. It is the basic monitoring data for stable system operation.
[0090] Event frame: refers to non-periodic burst data, including equipment failure alarms, emergency power adjustment instructions, etc.
[0091] In the formula, For the The number of periodic frames within a period, is the number of historical statistical cycles, The duration of a single cycle. By accumulating and averaging multiple cycles, short-term fluctuations are smoothed to reflect long-term stable flow. For example, if 50 control cycles generate a total of 5000 cycle frames, then Frames / second, that is, 100 frames every 20ms.
[0092] The same is true for the average event frame generation rate.
[0093] Step 3, according to the average generation rate of periodic frames, the average generation rate of event frames, the preset time slot capacity and the reserved ratio of event frames, respectively, allocating fixed time slots for periodic frames and allocating reserved time slots for event frames to obtain a time slot schedule;
[0094] In one embodiment of the present invention, based on the average generation rate of periodic frames, the average generation rate of event frames, the preset time slot capacity, and the event frame reserved ratio, fixed time slots are allocated for periodic frames and reserved time slots are allocated for event frames to obtain a time slot schedule, including:
[0095] Determine communication resource parameters, which include: preset time slot capacity and average frame size ;
[0096] Determine the number of time slots in each control cycle The number of time slots is the length of the control cycle and the preset time slot length The ratio of
[0097] Fixed time slot allocation in periodic frames, including:
[0098] Calculate the total number of periodic frames in each control cycle , ;
[0099] Calculate the data volume of the periodic frame , , represents the average size of periodic frames;
[0100] Determine the number of time slots allocated to the periodic frame , ;
[0101] Event frame reserved time slot allocation, including:
[0102] Loading event frame reservation ratio ζ, 0≤ζ≤1;
[0103] Determine the number of time slots allocated to the event frame , ;
[0104] A time slot scheduling table is generated, which includes: periodic frame time slots, event frame time slots, and flexible time slots; wherein the priorities of the periodic frame time slots and the event frame time slots are in descending order.
[0105] It should be noted that step 3 generates a time slot schedule by quantitatively dividing the communication capacity requirements of the periodic frame and the event frame, and finally forms a time slot schedule including the periodic frame time slots and the event frame time slots.
[0106] The system needs to determine the communication resource parameters, that is, the maximum number of bytes that each time slot can carry Average data volume per frame .in, Depends on the throughput of the underlying physical link (the minimum transmission unit configuration of TSN and 5G-URLLC); It is obtained by counting the historical frame lengths, reflecting the average message size of periodic reports and event reports.
[0107] The system is based on the total length of a control cycle and the preset time slot duration , calculate the number of time slots that can be divided in this control cycle , ;
[0108] For periodic frames, use the average generation rate (frames / second) to estimate the number of periodic frames in one control cycle. Then multiply the number of periodic frames in one control cycle by the average frame size to get the total amount of data required. From this, calculate the number of periodic frame time slots allocated to the periodic frame. . Indicates the minimum communication bandwidth required for reporting within a one-time locked control period to prevent periodic control frames from being delayed or lost due to resource contention.
[0109] For event frames, the system first pre-sets an event frame reservation ratio ζ, 0≤ζ≤1, where ζ represents the proportion of time slots reserved for randomly arriving event frames in each control cycle, thereby determining the number of time slots allocated to event frames.
[0110] In getting and After that, the complete time slot schedule can be generated:
[0111] Time slot number 0 to -1: used for periodic frame transmission, with the highest priority;
[0112] Time slot number arrive : Used for event frame transmission, with higher priority;
[0113] Remaining time slots (numbered from arrive ): The elastic preemptible area used for event frames, with the lowest priority.
[0114] It should be noted that the preset time slot duration The fixed duration of each time slot is pre-set during the system design phase based on the communication physical layer characteristics (mini-slot duration of 5GNR, time scheduling granularity of TSN) and service requirements (periodic frame transmission period, event frame processing latency limit).
[0115] For example, if the virtual power plant edge computing cluster adopts 5GNR URLLC technology, the subcarrier spacing SCS = 75kHz, and the corresponding mini-slot duration is 125μs, that is, =125μs.
[0116] Step 4: According to the time slot scheduling table, each time slot number is matched with the switch gating list, and the window opening time and duration are generated in the order of the time slots;
[0117] In one embodiment of the present invention, according to the time slot scheduling table, each time slot number is matched with the switch gating list, and the window opening time and duration are generated in the order of the time slots, including:
[0118] For the sth time slot in the time slot schedule, by comparing the sth time slot with the preset time slot length Multiply them to get the gating window opening offset of the sth time slot;
[0119] Set the preset time slot length The gating window duration used as the sth time slot;
[0120] If the sth time slot is less than the number of time slots allocated in the periodic frame , then map the sth time slot to the periodic frame queue mask; otherwise, map the sth time slot to the event frame queue mask;
[0121] Based on the combination of the gated window opening offset, the gated window duration, and the queue mask, a gated list entry for the switch is formed;
[0122] All gated list entries are sent down in time slot order and written into the switch's gated control list.
[0123] It should be noted that step 4: configuring the TSN switch gating list directly maps the pre-calculated time slot schedule to the IEEE802.1Qbv gating list (GCL), enabling the wired network segment to release data queues of different priorities in a strict time slot order and on demand, thereby achieving end-to-end deterministic communication. The specific logic is as follows:
[0124] First, for the sth time slot in the time slot schedule ( ), the system takes out the sequence number s of the time slot in a control cycle and compares it with the preset time slot duration multiplication;
[0125]
[0126] in, Indicates the gating window opening offset after the start of the control period, ensuring that the sth time slot is released strictly within the sth gating window.
[0127] Then, the system will Directly used as the gating window duration of the sth time slot, that is, the gating window starts from Start, Continue It will automatically close after that. Thus, the time window corresponding to the sth time slot is defined. .
[0128] After that, you need to determine the time window The corresponding TSN queue.
[0129] If s≤ (i.e., if the sth time slot falls within the periodic frame time slot reserved for the periodic frame), then the time slot is mapped to the periodic frame queue mask ; Otherwise, map it to the event frame queue mask . Through the mask Specify entry time window The data category and priority are determined so that the periodic frame is always scheduled before the event frame.
[0130] Finally, for the sth time slot, the system will 、 as well as Combined into a gated list entry in GCL, it can be formally expressed as:
[0131]
[0132] all arrive The gate list entries are offset by the gate window opening After the sizes are sorted in order, they are sent to the switch and written to enable the IEEE802.1Qbv time slot scheduling function;
[0133] In this way, TSN switches can be Within a small level window, periodic frames and event frames are released in a fixed priority order to avoid contention delays within the queue.
[0134] Step 5: Reserving resource blocks for each time slot in the 5G-URLLC network slice and setting a redundant transmission mechanism based on the data load and target reliability of each time slot in the time slot scheduling table;
[0135] In one embodiment of the present invention, based on the data load and target reliability of each time slot in the time slot scheduling table, resource blocks are reserved for each time slot in the 5G-URLLC network slice and a redundant transmission mechanism is set, including:
[0136] Read the predicted data load and preset target reliability rate of each time slot from the time slot scheduling table;
[0137] Determine the probability of single transmission failure on the 5G air interface without redundancy;
[0138] Calculate the number of redundant transmissions based on the target reliability rate and the probability of single transmission failure;
[0139] Determine the number of resource blocks required for the corresponding time slot based on the predicted data load of the time slot and the amount of data carried by each resource block;
[0140] In the 5G-URLLC network slice, the required number of resource blocks is reserved for each time slot, and the redundant transmission mechanism is executed according to the number of redundant transmissions.
[0141] It should be noted that step 5: reserving resource blocks and setting up a redundant transmission mechanism in the 5G-URLLC network slice is responsible for providing end-to-end high reliability guarantee on the wireless side for each time slot determined by the time slot scheduling table. The details are as follows:
[0142] First, for the sth time slot in the time slot schedule, the system reads two predicted data loads from the time slot schedule and target reliability ; Among them, the predicted data load Indicates the total amount of messages that need to be transmitted in the sth time slot; target reliability rate It is a preset value, indicating the minimum probability requirement for successful data delivery in the sth time slot.
[0143] Next, the system queries the statistical characteristics of the 5G air interface link to obtain the probability of single transmission failure under the condition of non-redundant transmission. , This is derived from air interface quality measurements or operator slice commitments, such as the packet loss rate without any retransmissions. To meet the target reliability, the same batch of data must be transmitted multiple times independently in the sth time slot to reduce the overall failure probability.
[0144] According to the Bernoulli independent trial model, the minimum number of redundant transmissions required can be calculated as follows:
[0145]
[0146] in, Indicates the minimum number of redundant transmissions, represents the natural logarithm;
[0147] After determining the minimum number of redundant transmissions, the system predicts the data load based on the time slot and the amount of data that each resource block can carry (bytes) to calculate the total number of resource blocks required in the sth time slot ,as follows:
[0148]
[0149] in, It is the minimum number of resource blocks required for a single transmission, which is multiplied by the number of redundancies to get the total number of resource blocks required for the resource block in the sth time slot. .
[0150] The system will calculate the total number of required resource blocks for each time slot Directly configure the reserved resource blocks in the 5G-URLLC network slice and allocate them according to the number of redundancies. Multiple transmissions are initiated sequentially within the sth time slot. Step 5 not only establishes a wireless extension for the time-sensitive streams on the TSN wired side, but also forms a collaborative mode of time slot one-click drive + redundancy guarantee within the overall end-to-end communication link, ensuring that control commands and status reports in the virtual power plant edge-cloud architecture reach devices seamlessly and reliably.
[0151] Step 6: Map the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp;
[0152] In one embodiment of the present invention, mapping the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate the energy scheduling instruction with a timestamp includes:
[0153] Obtaining the time slot corresponding to each device energy scheduling instruction generated by the cloud control center from the time slot scheduling table;
[0154] Calculate the sending timestamp of the device energy scheduling instruction based on the duration of the control cycle and the gated window opening offset corresponding to the time slot;
[0155] Adding the sending timestamp to the device energy scheduling instruction to generate an energy scheduling instruction with a timestamp;
[0156] The energy scheduling instructions with timestamps are sent to the corresponding edge computing nodes in chronological order.
[0157] It should be noted that step 6: mapping the device energy scheduling instructions generated by the cloud control center to the time slot scheduling table and generating energy scheduling instructions with timestamps runs through the two links of scheduling decision and physical issuance, ensuring that each instruction can be strictly issued within the predetermined TSN / 5G time slot.
[0158] First, the system retrieves the time slot corresponding to each device energy scheduling instruction generated by the cloud control center from the time slot scheduling table. For example, the energy scheduling instruction that device i should execute in the τth control cycle is , the energy scheduling instruction is mapped to the number in the time slot scheduling table time slot.
[0159] Next, according to the control cycle length The system calculates the sending time of the energy scheduling instruction based on the gating window opening offset of the s-th time slot as follows:
[0160]
[0161] in, Indicates the time when the energy scheduling instruction is sent, Position to The starting time of a control cycle, Then the time is accurately shifted to the starting position of the sth time slot;
[0162] After the time calculation is completed, the system will Energy Scheduling Instructions Encapsulate them into a control instruction with a timestamp:
[0163] Finally, the system follows the time These time-stamped instructions are sent to the corresponding edge computing nodes in sequence.
[0164] Step 7: The edge computing cluster node forwards the received energy scheduling instruction to the corresponding device, and the device outputs actual power according to the energy scheduling instruction and the maximum power of the device;
[0165] In one embodiment of the present invention, the edge computing cluster node forwards the received energy scheduling instruction to the corresponding device, and the device performs actual power output according to the energy scheduling instruction and the maximum power of the device, including:
[0166] The edge computing cluster node forwards the received energy scheduling instructions with timestamps to the corresponding devices;
[0167] When the local clock of the device reaches the sending timestamp in the energy scheduling instruction with timestamp, the execution is triggered:
[0168] The device calculates the actual output power by multiplying the power ratio in the timestamped energy scheduling instruction by the rated maximum power of the device; the device encapsulates the actual output power and confirmation timestamp into an execution confirmation message and feeds the execution confirmation message back to the edge computing cluster node.
[0169] It should be noted that after receiving the energy scheduling instruction with timestamp from the cloud control center, the edge computing cluster node forwards it to the corresponding physical device. After receiving the instruction, the device will continuously monitor the local clock reading. , which triggers the subsequent energy output task. Once triggered, the device will output the power according to the power ratio given in the instruction. , ; Set the power ratio With its own rated maximum output power Multiply them together to calculate the actual target output power.
[0170] After completing the power setting and actual output, the device obtains the actual output power through its built-in current / voltage sensor and other measuring devices , and record the current local clock as the confirmation timestamp The device will and It is encapsulated into an execution confirmation message and sent back to the edge computing cluster node again.
[0171] Step 8: Record the round-trip delay and reception success rate of the energy scheduling instruction, and compare them with the preset delay index and reliability index; when any index does not meet the preset requirements, adjust the event frame reservation ratio according to the preset adjustment coefficient, and regenerate the time slot scheduling table.
[0172] In one embodiment of the present invention, the round-trip delay and reception success rate of the energy scheduling instruction are recorded and compared with a preset delay index and a reliability index; when any of the indicators does not meet the preset requirements, the event frame reservation ratio is adjusted according to a preset adjustment coefficient, and the time slot scheduling table is regenerated, including:
[0173] In each control cycle, the sending timestamp of the energy scheduling instruction with timestamp and the confirmation timestamp of the device are recorded, and the number of execution confirmation messages received by the cloud control center is counted;
[0174] Calculate the average round-trip delay and actual reception success rate of energy scheduling instructions with timestamps;
[0175] Compare the average round-trip delay with the preset maximum allowable round-trip delay, and the actual reception success rate with the target reliability rate;
[0176] When the average round-trip delay is greater than the maximum allowed round-trip delay, or the actual reception success rate is less than the target reliability rate, the event frame reservation ratio ζ is adjusted;
[0177] Based on the adjusted event frame reservation ratio ζ, return to step 3 to regenerate the time slot schedule.
[0178] It should be noted that in order to monitor the end-to-end communication performance in real time and perform closed-loop optimization, the system will fully record the energy scheduling instructions with timestamps and their feedback processes in each control cycle. Specifically, when the j-th energy scheduling instruction is sent from the edge computing cluster to the device, its sending time is ; The local clock of the device reaches After the actual output power is measured, the trigger is executed and the confirmation time stamp is added. The execution confirmation message is sent back to the cloud control center. The cloud control center counts the total number of instructions issued in a cycle as M, and the actual number of confirmation messages received is .
[0179] The system first calculates the average round-trip delay as follows:
[0180]
[0181] in, Represents the average round-trip latency. Dividing the sum of the latency from each instruction issuance to confirmation by the total number of instructions truly reflects the average latency of the entire edge→device→edge closed loop.
[0182] Calculate the actual reception success rate as follows:
[0183]
[0184] in, Indicates the actual reception success rate, Indicates the transmission reliability of the feedback message under the current link and load conditions.
[0185] The system will average round trip delay The preset maximum allowable round trip delay Compare and calculate the actual reception success rate Target reliability To perform the calibration, only and , the system considers that the time slot allocation meets the performance requirements.
[0186] If any indicator exceeds the limit, it means that the reserved ratio ζ for emergency frames cannot support the necessary delay and reliability guarantee, and it needs to be dynamically adjusted.
[0187] The dynamic adjustment method for the event frame reservation ratio ζ is to modify the event frame reservation ratio ζ in increments or decrements based on the pre-set adjustment coefficient κ and the indicator deviation, thereby changing the number of reserved time slots allocated for event frames in the next cycle. After the adjustment of ζ is completed, the system automatically returns to step 3 and recalculates the number of time slots allocated to the cycle frame and the number of time slots allocated to the event frame based on the new reservation ratio, and generates an updated time slot schedule.
[0188] Optimally, in a virtual power plant scenario, an edge computing cluster needs to dispatch power to 10 energy storage inverters, with a 20ms control period and a preset time slot length of 125μs. The system first synchronizes the edge and device clocks to ±100ns using IEEE1588-PTP and prepares minimum transmission units in both the TSN network and 5G-URLLC slices.
[0189] Periodic frame and event frame statistics:
[0190] The edge nodes measured that the average generation rate of periodic frames was 100 frames / s, the average generation rate of event frames was 10 frames / s, the average frame size was 600B, and the time slot capacity was 1200B.
[0191] Unified time slot table generation:
[0192] The number of time slots is 160 slots, the data volume of the periodic frame is 1200B, the number of time slots allocated to the periodic frame is 1, the number of time slots allocated to the event frame is 48, and the remaining elastic area time slots are 111.
[0193] This forms the time slot schedule:
[0194] Slot0→Periodic frame (highest priority)
[0195] Slot 1…48 → Event frame (reserved area)
[0196] Slot 49…159 → Event frame (flexible area, lowest priority)
[0197] TSNGCL configuration:
[0198] Map the above 160 time slots into the IEEE802.1Qbv gating list:
[0199] This mapping ensures that Slot 0 always releases periodic frames, and the rest release event frames, and they correspond one-to-one with the 5G timeslot numbers.
[0200] 5G-URLLC slice resource reservation:
[0201] For each event frame time slot, assume that the average load is 600B, the target reliability is 99.999%, and the probability of single transmission failure is 0.1%.
[0202] Due to low traffic volume, only 2 RBs are reserved in periodic frame timeslots to conserve slice resources. The slice controller delivers the redundancy count and RB reservation configuration to achieve timeslot-slice-redundancy coordination.
[0203] Issuance and Execution:
[0204] The edge device, according to the time slot table, timestamps 10×8 scheduling instructions (8 control cycles) and forwards them to the device. When the local clock reaches the timestamp, the device accurately outputs and provides feedback.
[0205] Closed-loop adaptation:
[0206] The cloud center counted 8×10=80 instructions, with an average round-trip latency of 1.3ms and an actual success rate of 99.9995%, which met the requirements and did not require adjustment.
[0207] When a sudden failure occurs, the actual success rate drops to 99.98%. The system automatically adjusts ζ from 0.3 to 0.35 and regenerates a new schedule.
[0208] By using the same numbered and prioritized timeslot schedule between TSN and 5G network elements, there is no need for multiple mappings or manual alignment.
[0209] The beneficial effects of this application are as follows:
[0210] Synchronize TSN gating and 5G-URLLC slice redundancy to deliver time slots and radio resources with one click, ensuring strict synchronization and consistent performance between wired and wireless segments.
[0211] Based on the real-time round-trip delay and success rate indicators, the event frame reservation ratio ζ is dynamically adjusted and the time slot table is recalculated immediately, taking into account both the determinism of periodic frames and the elasticity of event frames.
[0212] Embodiment 2, a cloud edge device of a virtual power plant edge computing cluster, is applied to any of the above-mentioned methods for dynamic aggregation management of a virtual power plant edge computing cluster, and is characterized by comprising:
[0213] The clock synchronization module is used to synchronize the clocks of the virtual power plant cloud control center and the edge computing cluster nodes;
[0214] The data acquisition module is used to calculate the average generation rate of period frames and the average generation rate of event frames based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles;
[0215] a time slot scheduling module, configured to allocate fixed time slots for periodic frames and allocated reserved time slots for event frames according to the average periodic frame generation rate, the average event frame generation rate, the preset time slot capacity, and the event frame reservation ratio, so as to obtain a time slot scheduling table;
[0216] A time slot matching module is used to match each time slot number with the switch gating list according to the time slot scheduling table, and generate the window opening time and duration according to the time slot sequence;
[0217] A resource allocation module, configured to reserve resource blocks for each time slot in the 5G-URLLC network slice and set a redundant transmission mechanism based on the data load and target reliability of each time slot in the time slot scheduling table;
[0218] An instruction generation module is used to map the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp;
[0219] The device management module is used for the edge computing cluster node to forward the received energy scheduling instructions to the corresponding device, and the device outputs actual power according to the energy scheduling instructions and the maximum power of the device;
[0220] The parameter optimization module is used to record the round-trip delay and reception success rate of the energy scheduling instruction and compare them with the preset delay index and reliability index; when any index does not meet the preset requirements, the event frame reservation ratio is adjusted according to the preset adjustment coefficient, and the time slot scheduling table is regenerated.
[0221] The above describes the embodiments of this embodiment, but this embodiment is not limited to the above specific implementation methods. The above specific implementation methods are merely illustrative and not restrictive. Ordinary technicians in this field can also make many forms based on the inspiration of this embodiment, all of which are protected by this embodiment.
Claims
1. A dynamic aggregation management method for a virtual power plant edge computing cluster, characterized in that: include: Step 1: synchronize the clocks of the virtual power plant cloud control center and the edge computing cluster nodes; Step 2: Based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles, the average generation rate of period frames and the average generation rate of event frames are calculated respectively; Step 3, according to the average generation rate of periodic frames, the average generation rate of event frames, the preset time slot capacity and the reserved ratio of event frames, respectively, allocating fixed time slots for periodic frames and allocating reserved time slots for event frames to obtain a time slot schedule; Step 4: According to the time slot scheduling table, each time slot number is matched with the switch gating list, and the window opening time and duration are generated in the order of the time slots; Step 5: Reserving resource blocks for each time slot in the 5G-URLLC network slice and setting a redundant transmission mechanism based on the data load and target reliability of each time slot in the time slot scheduling table; Step 6: Map the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp; Step 7: The edge computing cluster node forwards the received energy scheduling instruction to the corresponding device, and the device outputs actual power according to the energy scheduling instruction and the maximum power of the device; Step 8: Record the round-trip delay and reception success rate of the energy scheduling instruction, and compare them with the preset delay index and reliability index; when any index does not meet the preset requirements, adjust the event frame reservation ratio according to the preset adjustment coefficient, and regenerate the time slot scheduling table.
2. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 1 is characterized in that: Based on the communication records between the cloud control center and each edge computing cluster node within N historical control cycles, the average generation rate of period frames and event frames is calculated, including: Periodic frames represent: equipment status monitoring data sent at fixed time intervals in communication records; Event frames represent: non-periodic burst data in communication records; The calculation formula for the average generation rate of periodic frames is as follows: The formula for calculating the average event frame generation rate is as follows: in, represents the average generation rate of periodic frames, Indicates the average rate at which event frames are generated. represents the number of control cycles, Indicates the duration of each control cycle, Indicates the number of periodic frames in the nth control cycle, Indicates the number of event frames in the nth control cycle.
3. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 2 is characterized in that: According to the average generation rate of the periodic frames, the average generation rate of the event frames, the preset time slot capacity, and the event frame reservation ratio, fixed time slots are allocated for periodic frames and reserved time slots are allocated for event frames, so as to obtain a time slot scheduling table, including: Determine communication resource parameters, which include: preset time slot capacity and average frame size ; Determine the number of time slots in each control cycle The number of time slots is the length of the control cycle and the preset time slot length The ratio of Fixed time slot allocation in periodic frames, including: Calculate the total number of periodic frames in each control cycle , ; Calculate the data volume of the periodic frame , , represents the average size of periodic frames; Determine the number of time slots allocated to the periodic frame , ; Event frame reserved slot allocation, including: Loading event frame reservation ratio ζ, 0≤ζ≤1; Determine the number of time slots allocated to the event frame , ; A time slot scheduling table is generated, which includes: periodic frame time slots, event frame time slots, and flexible time slots; wherein the priorities of the periodic frame time slots and the event frame time slots are in descending order.
4. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 3 is characterized in that: According to the time slot scheduling table, each time slot number is matched with the switch gating list, and the window opening time and duration are generated in the order of the time slots, including: For the sth time slot in the time slot schedule, by comparing the sth time slot with the preset time slot length Multiply them to get the gating window opening offset of the sth time slot; Set the preset time slot length The gating window duration used as the sth time slot; If the sth time slot is less than the number of time slots allocated in the periodic frame , then map the sth time slot to the periodic frame queue mask; otherwise, map the sth time slot to the event frame queue mask; Based on the combination of the gated window opening offset, the gated window duration, and the queue mask, a gated list entry for the switch is formed; All gated list entries are sent down in time slot order and written into the switch's gated control list.
5. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 4 is characterized in that: Based on the data load and target reliability of each time slot in the time slot scheduling table, a resource block is reserved for each time slot in the 5G-URLLC network slice and a redundant transmission mechanism is set, including: Read the predicted data load and preset target reliability rate of each time slot from the time slot scheduling table; Determine the probability of single transmission failure on the 5G air interface without redundancy; Calculate the number of redundant transmissions based on the target reliability rate and the probability of single transmission failure; Determine the number of resource blocks required for the corresponding time slot based on the predicted data load of the time slot and the amount of data carried by each resource block; In the 5G-URLLC network slice, the required number of resource blocks is reserved for each time slot, and the redundant transmission mechanism is executed according to the number of redundant transmissions.
6. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 5 is characterized in that: Mapping the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp, including: Obtaining the time slot corresponding to each device energy scheduling instruction generated by the cloud control center from the time slot scheduling table; Calculate the sending timestamp of the device energy scheduling instruction based on the duration of the control cycle and the gated window opening offset corresponding to the time slot; Adding the sending timestamp to the device energy scheduling instruction to generate an energy scheduling instruction with a timestamp; The energy scheduling instructions with timestamps are sent to the corresponding edge computing nodes in chronological order.
7. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 6 is characterized in that: The edge computing cluster node forwards the received energy scheduling instruction to the corresponding device, and the device performs actual power output according to the energy scheduling instruction and the maximum power of the device, including: The edge computing cluster node forwards the received energy scheduling instructions with timestamps to the corresponding devices; When the local clock of the device reaches the sending timestamp in the energy scheduling instruction with timestamp, the execution is triggered: The device calculates the actual output power by multiplying the power ratio in the timestamped energy scheduling instruction by the rated maximum power of the device; the device encapsulates the actual output power and confirmation timestamp into an execution confirmation message and feeds the execution confirmation message back to the edge computing cluster node.
8. The dynamic aggregation management method of the virtual power plant edge computing cluster according to claim 7 is characterized in that: Recording the round-trip delay and reception success rate of the energy scheduling instruction, and comparing them with the preset delay index and reliability index; When any indicator does not meet the preset requirements, the event frame reservation ratio is adjusted according to the preset adjustment coefficient, and the time slot scheduling table is regenerated, including: In each control cycle, the sending timestamp of the energy scheduling instruction with timestamp and the confirmation timestamp of the device are recorded, and the number of execution confirmation messages received by the cloud control center is counted; Calculate the average round-trip delay and actual reception success rate of energy scheduling instructions with timestamps; Compare the average round-trip delay with the preset maximum allowable round-trip delay, and the actual reception success rate with the target reliability rate; When the average round-trip delay is greater than the maximum allowed round-trip delay, or the actual reception success rate is less than the target reliability rate, the event frame reservation ratio ζ is adjusted; Based on the adjusted event frame reservation ratio ζ, return to step 3 to regenerate the time slot schedule.
9. A cloud-edge device of a virtual power plant edge computing cluster, applied to the dynamic aggregation management method of a virtual power plant edge computing cluster according to any one of claims 1 to 8, characterized in that: include: The clock synchronization module is used to synchronize the clocks of the virtual power plant cloud control center and the edge computing cluster nodes; The data acquisition module is used to calculate the average generation rate of period frames and the average generation rate of event frames based on the communication records between the cloud control center and each edge computing cluster node in the past N control cycles; a time slot scheduling module, configured to allocate fixed time slots for periodic frames and allocated reserved time slots for event frames according to the average periodic frame generation rate, the average event frame generation rate, the preset time slot capacity, and the event frame reservation ratio, so as to obtain a time slot scheduling table; A time slot matching module is used to match each time slot number with the switch gating list according to the time slot scheduling table, and generate the window opening time and duration according to the time slot sequence; A resource allocation module, configured to reserve resource blocks for each time slot in the 5G-URLLC network slice and set a redundant transmission mechanism based on the data load and target reliability of each time slot in the time slot scheduling table; An instruction generation module is used to map the device energy scheduling instruction generated by the cloud control center to the corresponding time slot in the time slot scheduling table to generate an energy scheduling instruction with a timestamp; The device management module is used for the edge computing cluster node to forward the received energy scheduling instructions to the corresponding device, and the device outputs actual power according to the energy scheduling instructions and the maximum power of the device; The parameter optimization module is used to record the round-trip delay and reception success rate of the energy scheduling instruction and compare them with the preset delay index and reliability index; when any index does not meet the preset requirements, the event frame reservation ratio is adjusted according to the preset adjustment coefficient, and the time slot scheduling table is regenerated.
Citation Information
Patent Citations
Gating scheduling method suitable for multi-cycle application in time-sensitive network
CN113055303A
Message scheduling method and device, equipment, storage medium and program product
CN115766617A