A Smart Grid Communication Method Based on Temporal Resilient Protocol

By designing a temporal elastic protocol with big-endian and little-endian modes and optimizing the storage scheme for timestamps and emergency pointers, the success rate and accuracy of command forwarding in smart grids under extreme conditions are solved, enabling rapid response and efficient handling of emergency situations.

CN118138658BActive Publication Date: 2026-03-10NANJING UNIV OF POSTS & TELECOMM
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-06
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing smart grids struggle to respond quickly to emergencies under extreme conditions, leading to delayed handling of urgent issues. Furthermore, differences in response time caused by varying byte storage methods among devices affect the success rate and accuracy of command forwarding.

Method used

A temporal elastic protocol was designed for both big-endian and little-endian modes. The byte order of the receiving device was taken into account, and the storage schemes for timestamps, status, and emergency pointers were optimized to ensure that the emergency pointer is read first in order to achieve command forwarding with high success rate and high accuracy.

Benefits of technology

It achieves high success rate and high accuracy in command forwarding during smart grid emergencies, solves the performance differences caused by different device byte storage methods, and ensures rapid response in emergency situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118138658B_ABST
    Figure CN118138658B_ABST
Patent Text Reader

Abstract

This invention relates to the fields of network communication protocols and smart grid technology, specifically to a smart grid communication method based on a temporal elastic protocol. The method includes: considering different byte ordering methods at different receiving ends, designing corresponding storage schemes for timestamps, status, and emergency pointers in both big-endian and little-endian byte ordering modes; the control center judging the current smart grid status and determining the precision of the timestamp acquisition based on the corresponding smart grid status; designing temporal elastic protocol fields in the header of the entire data packet based on the smart grid status; and the receiving end analyzing the temporal elastic protocol fields after receiving the corresponding data packet header to immediately determine command forwarding in an emergency state. This invention, through the proposed temporal elastic protocol, designs storage schemes for both big-endian and little-endian modes, resolving the performance differences caused by endianness and achieving high success and accuracy in command forwarding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of network communication protocols and smart grid technology, and specifically to a smart grid communication method based on a temporal elastic protocol. Background Technology

[0002] With the ever-increasing demand for electricity, the structure and operation of traditional power grids can no longer meet the needs of high-quality power supply services and also pose safety hazards. This, in turn, has spurred the development of power systems, giving rise to the smart grid. A smart grid is a modern power transmission and distribution system that utilizes information and communication technologies to detect and collect data on power supply and consumption at both the supply and demand sides using digital or analog signals. This information is then used to adjust power production and transmission, or to regulate the power consumption of household appliances and businesses, thereby achieving the goals of energy conservation, reduced losses, and enhanced grid reliability.

[0003] Temporal resilience protocols are a cutting-edge network protocol that is increasingly being applied in the smart grid field, primarily to improve communication quality and efficiency in scenarios such as microgrids, distributed energy resources, and the power Internet of Things. Currently used smart grids often encounter emergencies that are difficult to respond to promptly under extreme natural conditions or when operational errors occur. For such problems, a reactive approach of addressing issues as they arise can easily lead to delays in handling critical and urgent issues, resulting in losses.

[0004] To address these issues and resolve existing problems, those skilled in the art have made numerous efforts. For example, Chinese patent application CN114530841A proposes a global coordination control architecture and its optimization method for emergency situations in power distribution networks. By prioritizing non-routine and emergency situations, it aims to filter out emergency situations from among numerous situations and prioritize their handling. However, this method does not consider the differences in response time caused by the different byte storage methods of different types of devices, resulting in shortcomings in the success rate and accuracy of command forwarding. Summary of the Invention

[0005] To address the aforementioned issues, this invention provides a smart grid communication method based on a temporal elastic protocol. The proposed temporal elastic protocol designs storage schemes for both big-endian and little-endian modes, resolving performance differences caused by device endianness and achieving high success and accuracy in command forwarding.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is a smart grid communication method based on a temporal elastic protocol, which includes the following steps:

[0007] Step S1: Consider the byte ordering methods of different receiving ends, and design the corresponding storage schemes for timestamps, statuses and urgent pointers for both big-endian and little-endian byte ordering methods.

[0008] Step S2: The control center determines the current state of the smart grid and decides on the accuracy of the timestamp based on the corresponding smart grid state;

[0009] Step S3: Design the temporal resilience protocol field in the header of the entire data packet according to the smart grid status;

[0010] Step S4: After receiving the corresponding data packet header, the receiving end analyzes the temporal elasticity protocol field to immediately know the command forwarding in an emergency.

[0011] Furthermore, in step S1, the specific details of designing the storage schemes for the timestamps, states, and urgent pointers of the corresponding temporal elasticity protocol under both big-endian and little-endian byte ordering methods are as follows:

[0012] When the receiver's byte order is big-endian, the emergency pointer of the temporal elasticity protocol is in the first a bits; the status bits are in the (a+1)th to (a+b)th bits; and the timestamp is in the (a+b+1)th to (n)th bits.

[0013] When the receiver's byte order is little-endian, the storage position of the temporal elasticity protocol is adjusted based on the original position. The emergency pointer is stored starting from the n-7th bit. Each time, the pointer is moved forward by 8 bits, and so on. The 1st to 8th bits store the last 8 bits of the timestamp.

[0014] Furthermore, in step S2, the control center judges the current state of the smart grid and determines the specific content of the timestamp accuracy based on the corresponding smart grid state: when the smart grid is in an emergency state, obtain the C1-bit timestamp; when the smart grid is in a correction state or a prevention state, obtain the C-bit timestamp; where C1 < C.

[0015] Furthermore, in step S3, the specific content of the temporal resilience protocol field in the header of the entire data packet is designed according to the smart grid status as follows:

[0016] When the system is in an emergency state, the specific design of the temporal elastic protocol is as follows: the first a bits are the emergency pointer, a+1 to a+b are the status bits, a+b+1 to a+b+c1 are the obtained low-precision timestamps, and a+b+c1+1 to n bits are the fields under high precision.

[0017] When the system is in a correction or preventative state, the specific design of the temporal elasticity protocol is as follows: the first 'a' bits are the emergency pointer, 'a+1' to 'a+b' are the status bits, and 'a+b+1' to 'n' are the obtained high-precision timestamps.

[0018] Furthermore, in step S4, after receiving the corresponding data packet header, the receiving end analyzes the temporal elasticity protocol field. Specifically, when the receiving end uses big-endian storage, the storage order is consistent with the transmission order. When the receiving end uses little-endian storage, the low byte of the data is stored at the low address, and the high byte is stored at the high address. At this time, regardless of whether it is big-endian or little-endian temporal elasticity protocol, the actual storage of the receiving end is based on the following: the urgent pointer is located in the first a bits, the status bit is located in the (a+1) to (a+b)th bits, and the timestamp is located in the (a+b+1) to (n)th bits.

[0019] Furthermore, in step S4, the specific method by which the receiving end learns about the command forwarding in an emergency is as follows: when the emergency pointer is stored in the first a bits, the emergency pointer bit will be read first during reading, so that the receiving end can know whether the data packet contains a command forwarding in an emergency and thus process it immediately.

[0020] The beneficial effects of the technical solution described in this invention are as follows:

[0021] 1. This invention takes into account the difference in response time caused by the different byte storage methods of different types of devices. By proposing a temporal elastic protocol, storage schemes in big-endian and little-endian modes are designed respectively, which solves the performance difference caused by the difference between big-endian and little-endian modes of the protocol and achieves high success rate and high accuracy of command forwarding in power systems in emergency situations.

[0022] 2. The temporal elastic protocol designed in this invention takes into account the different endianness of the receiving devices. Therefore, in the actual storage at the receiving end, the emergency pointer is located in the first 'a' bits, the status bit is stored in the (a+1)th to (a+b)th bits, and the timestamp is stored in the (a+b+1)th to (n)th bits. This ensures that the emergency pointer is read first, allowing for immediate knowledge of command forwarding in emergency situations. Attached Figure Description

[0023] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings.

[0024] Figure 1 This is a flowchart of the smart grid communication method based on temporal elastic protocol described in this invention.

[0025] Figure 2This is a protocol data diagram of the temporal elastic protocol in big-endian byte order in this invention.

[0026] Figure 3 This is a protocol data diagram of the temporal elastic protocol in the little-endian byte order of this invention. Detailed Implementation

[0027] The technical solution of the present invention will be further described below with reference to the accompanying drawings, but it is not limited thereto. Any modifications or equivalent substitutions to the technical solution of the present invention that do not depart from the spirit and scope of the technical solution of the present invention should be covered within the protection scope of the present invention.

[0028] like Figure 1 As shown in the figure, this embodiment proposes a smart grid communication method based on a temporal elastic protocol, which includes the following steps:

[0029] Step S1: Considering that different receivers, such as programmable logic controllers, have different byte ordering methods, design corresponding storage schemes for timestamps, statuses, and emergency pointers for both big-endian and little-endian byte ordering methods.

[0030] Specifically, in this embodiment, the receiver CPU word length is 64 bits, so the designed temporal elasticity protocol is a 64-bit temporal elasticity protocol, which has a total of 64 bits, including a 1-bit emergency pointer, a 2-bit status bit and a 61-bit timestamp.

[0031] like Figure 2 As shown, when the receiver's byte order is big-endian, the 64-bit temporal elasticity protocol is as follows: the emergency pointer is in the first bit position, the status bit is in the second and third bits position, and the timestamp is in the fourth to sixth 64th bits position.

[0032] like Figure 3 As shown, when the receiver's byte order is little-endian, the temporal elasticity protocol will adjust the storage location based on the original configuration. Specifically, the 57th bit is used to store the emergency pointer, the 58th and 59th bits are used to store the status bit, the 60th to 64th bits are used to store the first 5 bits of the timestamp, the 48th to 56th bits are used to store the 6th to 13th bits of the timestamp, and so on. The 1st to 8th bits are used to store the last 8 bits of the timestamp.

[0033] Step S2: The control center judges the current state of the smart grid and determines the accuracy of the timestamp based on the state of the smart grid.

[0034] Specifically, when the smart grid is in an emergency, to save time, the timestamp is obtained with lower precision; a 34-bit timestamp is sufficient, achieving second-level accuracy. In this embodiment, the set time is 12:00:00 noon on January 20, 2024, so the binary version of the obtained timestamp is: 1100101101010101101010011000000000.

[0035] When the smart grid is in correction or prevention mode, it can fully utilize the 61-bit timestamp to achieve microsecond-level accuracy. In this embodiment, the time is set to 12:00:00 noon on January 20, 2024, and the microsecond is 0 microseconds. Therefore, the first 34 bits of the 61-bit timestamp obtained at this time are: 1100101101010101101010011000000000, and the last 27 bits are the default value of 0.

[0036] Step S3: Based on the smart grid status, complete the design of the temporal resilience protocol field in the header of the entire data packet.

[0037] Specifically, when the system is in an emergency state, the temporal elasticity protocol is designed as follows: the first bit is the emergency pointer, which is set to 1 to indicate that the system is in an emergency state; the second and third bits are the status bits, which are set to 0 by default in the emergency state; the fourth to 37 bits are the timestamps with second-level precision; and the 38th to 64th bits are the timestamp fields with higher precision, which are set to 0 by default in the emergency state.

[0038] When the system is in a corrective or preventative state, the specific design of the temporal elasticity protocol is as follows: the first bit is the emergency pointer, which is set to 0 to indicate that the system is in a non-emergency state; the second and third bits are the status bits, where 01 represents that the system is in a corrective state and 10 represents that the system is in a preventative state; and the fourth to sixth bits are the timestamps with microsecond-level accuracy.

[0039] Step S4: After receiving the corresponding data packet header, the receiving end can immediately know the command forwarding in an emergency by analyzing the temporal elasticity protocol field.

[0040] Specifically, in this embodiment, the set time is 12:00:00 on January 20, 2024, and the system state is in an emergency state. Since the emergency pointer bit is 1 in the emergency state, the status bit is the default value 00 in the emergency state. The timestamp is obtained with second-level precision in the emergency state and is a 34-bit binary number 1100101101010101101010011000000000. The last 27 bits of the 61-bit timestamp are set to 0 by default. When the receiving end uses big-endian storage, the Temporal Flexibility Protocol (TLP) field in the header of the data packet sent by the control center is 0x996AD15000000000. When the receiving end uses little-endian storage, the TLP field in the header of the data packet sent by the control center is 0x0000000050D16A99. However, regardless of whether the receiving end is big-endian or little-endian, because the least significant byte of data is stored at a higher address in big-endian mode and at a lower address in little-endian mode, the receiving end actually stores 0x996AD15000000000. Therefore, when the emergency pointer is stored in the first bit, when reading the first byte, the receiving end can determine whether the data packet contains an emergency command forwarding based on whether the first bit is 1, and thus process it immediately.

[0041] In this embodiment, when in an emergency state, the Temporal Resilience Protocol (TRP) field in the header of the data packet received by the receiver is: 0x996AD15000000000, where the first bit is set to "9" in hexadecimal and "1001" in binary. Therefore, by analyzing the Temporal Resilience field and reading the first bit "1", the receiver can know that the data packet contains a command forwarding under an emergency state, thus prioritizing the handling of emergency situations and ensuring a high success rate and high accuracy of command forwarding in the power system under emergency conditions.

[0042] This invention addresses the response time differences caused by varying byte storage methods across different types of devices. By proposing a temporal elastic protocol, it designs storage schemes for both big-endian and little-endian modes, resolving performance differences due to device endianness. The temporal elastic protocol takes into account the different endianness of the receiving devices. Therefore, in the actual storage at the receiving end, the emergency pointer is located in the first *a* bits, the status bits are from bits *a+1* to *a+b*, and the timestamp is stored in bits *a+b+1* to *n*. This ensures that the emergency pointer is read first, accurately determining whether the power system is in an emergency and guaranteeing immediate processing of commands forwarded in emergency situations. This achieves high success rate and high accuracy in command forwarding during power system attacks.

[0043] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A time-based elastic protocol based smart grid communication method, characterized in that, The method comprises the following steps: Step S1: considering the byte sequence ordering mode of different receiving ends, a corresponding storage scheme of the time stamp, state and emergency pointer of the time-flexible protocol is designed under the big-endian byte sequence and little-endian byte sequence respectively; Step S2: the control center judges the state of the current smart grid, and decides the precision of obtaining the time stamp according to the corresponding smart grid state; Step S3: the time-flexible protocol field of the whole data packet header part is designed according to the smart grid state; Step S4: after the receiving end receives the corresponding data packet header, the time-flexible protocol field is analyzed, and the command forwarding in the emergency state is known for the first time. In step S1, the specific content of designing the storage scheme of the time stamp, state and emergency pointer of the time-flexible protocol under the big-endian byte sequence and little-endian byte sequence respectively is as follows: When the byte sequence of the receiving end is big-endian byte sequence, the emergency pointer of the time-flexible protocol is in the position of the first a bits; the state bit is in the position of the a+1th to a+b bits; the time stamp is in the position of the a+b+1th to n bits; When the byte sequence of the receiving end is little-endian byte sequence, the storage position of the time-flexible protocol is adjusted on the basis of the original position, and the emergency pointer is stored from the n-7th bit; each time, the bit position is moved forward by 8 bits, and the 1st to 8th bit positions store the last 8 bits of the time stamp.

2. The time-based elastic protocol based smart grid communication method of claim 1, wherein, In step S2, the specific content of the control center judging the state of the current smart grid and deciding the precision of obtaining the time stamp according to the corresponding smart grid state is as follows: when the smart grid is in the emergency state, C1-bit time stamp is obtained, and when the smart grid is in the correction state or prevention state, C-bit time stamp is obtained; wherein C1 3. The time-based elastic protocol based smart grid communication method of claim 1, wherein, In step S3, the specific content of designing the time-flexible protocol field of the whole data packet header part according to the smart grid state is as follows: When the system state is the emergency state, the specific design of the time-flexible protocol is as follows: the first a bits are the emergency pointer, a+1 to a+b are the state bit, a+b+1 to a+b+c1 are the obtained low-precision time stamp, and a+b+c1+1 to n bits are the field under high precision; When the system state is the correction state or prevention state, the specific design of the time-flexible protocol is as follows: the first a bits are the emergency pointer, a+1 to a+b are the state bit, and a+b+1 to n are the obtained high-precision time stamp.

4. The time-based elastic protocol based smart grid communication method of claim 1, wherein, In step S4, after the receiving end receives the corresponding data packet header, the time-flexible protocol field is analyzed, and the specific content is as follows: when the receiving end is big-end storage, the storage order is consistent with the transmission order, and when the receiving end is little-end storage, the low byte of the data is stored in the low address and the high byte is stored in the high address; at this time, whether the receiving end is big-end time-flexible protocol or little-end time-flexible protocol, the actual storage of the receiving end is stored according to the emergency pointer in the first a bits, the state bit in the a+1th to a+b bits, and the time stamp in the a+b+1th to n bits.

5. The time-based elastic protocol based smart grid communication method of claim 4, wherein, In step S4, the specific method for the receiving end to know the command forwarding in the emergency state in the first time is: when the emergency pointer is stored in the first a bits, the emergency pointer bits are read first, so that the receiving end can know whether the data packet is the command forwarding in the emergency state, thereby processing in the first time.

Citation Information

Patent Citations

  • Global coordination control architecture in emergency state of power distribution network and optimization method thereof

    CN114530841A

  • Electrocardiogram data transmission method and system based on udp transmission protocol

    CN113438198A

  • Method and device for designing secure interaction protocol in energy internet scene

    CN115118756A