Power service message scheduling method based on content exchange and related device
By identifying power service messages in a multimodal network and adjusting queue order according to the specific identification of the power grid and network topology, the real-time and deterministic problems of power service messages are solved, and efficient and reliable transmission of power service messages is achieved.
Patent Information
- Application Number
- CN202510509162.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-07-25
AI Technical Summary
The existing IP-based network architecture is difficult to meet the real-time and deterministic transmission requirements of power service messages in new power systems. How to ensure the real-time and deterministic transmission of power service messages in a multimodal network has not been effectively solved.
The switching chip identifies power service messages and sends them to the processor. The processor determines the forwarding port based on the specific identification of the power grid and network topology, and establishes a forwarding queue in the processor, adjusts the queue order according to the message priority and the remaining maximum transmission time, and finally sends it to the dedicated sending queue of the switching chip to avoid mixed transmission of power service messages and other messages, ensuring real-time and certainty.
It realizes the deterministic and real-time transmission of power service messages in a multimodal network, avoids congestion in power service messages in the switching chip and accumulation of traditional messages on the transmission port, and ensures priority transmission of important information.
Smart Images

Figure CN120378386A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power communication, and relates to a power service message scheduling method and related devices based on content switching. Background Art
[0002] The current single IP (Internet Protocol Address) system of the network restricts the transmission performance of the network in many aspects. The refined application scenarios put forward more comprehensive requirements for the network service capabilities. However, the existing solutions given by the IP-based network architecture usually include virtual private network (VPN), network slicing, and edge computing and other virtualization solutions. Although these virtualization solutions improve the flexibility and scalability of the network to a certain extent, they are only transitional solutions and cannot fundamentally solve the inherent problems of the network architecture, such as transmission efficiency, security, and reliability.
[0003] The safe and stable operation of the power system is related to the development of society. With the gradual development of the new power system, the requirements for the reliability and security of communication are further improved, and the deterministic requirements of some power service communications are extremely strict, which makes it difficult for the traditional IP-based network technology to meet the information interaction needs of the new power system.
[0004] To address this problem, the industry has proposed a multi-modal network. The multi-modal network is a new network architecture concept that supports the full-dimensional definition of addressing routing, switching mode, interconnection method, network element form, and transmission protocol, and can flexibly select and combine different network elements and modes according to different application scenarios and requirements to achieve multi-modal presentation. It can effectively support the evolutionary development of the Internet and fundamentally meet the business needs of network intelligence, diversification, personalization, and high efficiency. However, how to ensure the real-time and deterministic nature of power service messages during transmission in the multi-modal network has not been effectively solved. Summary of the Invention
[0005] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide a power service message scheduling method and related devices based on content switching.
[0006] To achieve the above purpose, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a method for dispatching electric power service messages based on content exchange, comprising: identifying electric power service messages in messages to be transmitted according to a preset electric power service message identification template through a switching chip, and sending the messages to a processor; obtaining a power grid-specific identifier of the electric power service message through the processor, and determining a forwarding port of the electric power service message according to the power grid-specific identifier combined with a network topology of a multimodal network, and adding the electric power service message to a forwarding queue of a corresponding forwarding port preset in the processor; adjusting the order of each electric power service message in the forwarding queue according to the message priority and the remaining maximum transmission time through the processor to obtain an adjusted forwarding queue; and sending each electric power service message in the adjusted forwarding queue to a dedicated sending queue of a corresponding forwarding port preset in the switching chip through the processor in order.
[0008] Optionally, the power service message identification template is set according to one or more of the following information of the power service message: source MAC, destination MAC, VLAN, Ethernet type, source IP address, destination IP address and message special fields.
[0009] Optionally, adjusting the order of each power service message in the forwarding queue according to the message priority and the remaining maximum transmission time includes: obtaining and obtaining the message priority of the power service message according to the type of the power service message; for the power service message with a time stamp, obtaining and obtaining the remaining maximum transmission time of the power service message according to the farthest remaining transmission hops of the power service message in the network topology of the multimodal network, the precise clock of the entire network, the message time stamp and the average forwarding time of the device message; for the power service message with a time stamp, sorting in order from small to large according to the remaining maximum transmission time to obtain a first sorting result; for the power service message without a time stamp, sorting in order from high to low according to the message priority, and sorting each power service message under the same message priority in order from small to large according to the remaining transmission time, and sorting each power service message from the same source in order from small to large according to the message sequence number to obtain a second sorting result; inserting the second sorting result into the first sorting result in order from high to low according to the message priority to obtain an adjusted forwarding queue.
[0010] Optionally, the method further includes: obtaining the message length, sending interval or change status of a special field of the power service message, and when the change status is changed, increasing the message priority of the power service message.
[0011] Optionally, the processor sends each power service message in the adjusted forwarding queue in sequence to the dedicated sending queue of the corresponding forwarding port preset by the switching chip, including: when the power service message in the dedicated sending queue of the corresponding forwarding port is in a sending state, the first frame of the power service message in the adjusted forwarding queue is sent to the dedicated sending queue of the corresponding forwarding port.
[0012] Optionally, the dedicated transmission queue presets dedicated transmission time slots.
[0013] Optionally, among the transmission queues of the same forwarding port, the queue priority of the dedicated transmission queue is higher than that of the ordinary transmission queue.
[0014] In a second aspect of the present invention, there is provided a power service message scheduling system based on content switching, including: a message recognition module, configured to recognize a power service message in a message to be transmitted according to a preset power service message recognition template through a switching chip and send it to a processor; a port determination module, configured to obtain a specific grid identifier of the power service message through the processor, determine a forwarding port of the power service message according to the specific grid identifier in combination with the network topology of the multi-modal network, and add the power service message to a forwarding queue corresponding to the preset forwarding port in the processor; a message adjustment module, configured to adjust the order of each power service message in the forwarding queue according to the message priority and the remaining maximum transmission time through the processor to obtain an adjusted forwarding queue; a message forwarding module, configured to sequentially send each power service message in the adjusted forwarding queue to a dedicated transmission queue corresponding to the preset forwarding port of the switching chip through the processor.
[0015] In a third aspect of the present invention, there is provided a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the above-mentioned power service message scheduling method based on content switching is implemented.
[0016] In a fourth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, where when the computer program is executed by a processor, the above-mentioned power service message scheduling method based on content switching is implemented.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] The power service message scheduling method based on content exchange of the present invention first uses a switching chip to identify power service messages in the messages to be transmitted according to a preset power service message identification template and sends them to a processor. Then, the processor obtains the specific grid identifier of the power service message, determines the forwarding port of the power service message according to the specific grid identifier in combination with the network topology of the multimodal network, and adds the power service message to the forwarding queue of the corresponding forwarding port preset in the processor. The purpose is to achieve a content exchange-based mode through the specific grid identifier, network topology, and pre-established dedicated transmission queue, so that important power service messages are not mixed with other messages and forwarded through the switching of the switching chip, avoiding congestion of power service messages in the switching chip. At the same time, according to the message priority and the remaining maximum transmission time, the order of each power service message in the forwarding queue is adjusted to avoid the situation where traditional messages pile up at the sending port of the switching chip and cannot be reordered. While ensuring the deterministic transmission of low-priority messages, high-priority and burst-important information messages are preferentially transmitted in real time. This power service message scheduling method based on content exchange ensures the deterministic and real-time transmission of power service messages through content exchange, queue control, and port reservation of a dedicated transmission queue. Description of the Drawings
[0019] Figure 1 It is a flowchart of the power service message scheduling method based on content exchange according to an embodiment of the present invention.
[0020] Figure 2 It is a detailed flowchart of the method for deterministic transmission of power service messages according to an embodiment of the present invention.
[0021] Figure 3 It is a schematic diagram of the implementation process of GOOS0E messages and SV messages according to an embodiment of the present invention.
[0022] Figure 4 It is a block diagram of the structure of the power service message scheduling system based on content exchange according to an embodiment of the present invention. Detailed Embodiments
[0023] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions 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 a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0025] The present invention will be further described in detail below with reference to the accompanying drawings:
[0026] See Figure 1 , in an embodiment of the present invention, a power service message scheduling method based on content exchange is provided, which can effectively ensure the deterministic and real-time transmission of power service messages in a multimodal network.
[0027] Specifically, the power service message scheduling method based on content exchange of the present invention includes the following steps:
[0028] S1: Identify the power service message in the message to be transmitted according to a preset power service message identification template through a switching chip, and send it to the processor.
[0029] S2: Obtain the specific grid identifier of the power service message through the processor, determine the forwarding port of the power service message according to the specific grid identifier in combination with the network topology of the multimodal network, and add the power service message to the forwarding queue of the corresponding forwarding port preset in the processor.
[0030] S3: Adjust the order of each power service message in the forwarding queue according to the message priority and the remaining maximum transmission time through the processor to obtain an adjusted forwarding queue.
[0031] S4: Send each power service message in the adjusted forwarding queue to the dedicated sending queue of the corresponding forwarding port preset in the switching chip in sequence through the processor.
[0032] The power service message scheduling method based on content switching of the present invention first uses a switching chip to identify power service messages in the to-be-transmitted messages according to a preset power service message identification template and send them to a processor. Then, the processor obtains the grid-specific identifier of the power service message, determines the forwarding port of the power service message based on the grid-specific identifier and the network topology of the multi-modal network, and adds the power service message to the forwarding queue of the corresponding forwarding port preset in the processor. The purpose is to achieve a content-switching-based mode through the grid-specific identifier, network topology, and pre-established dedicated sending queues, so that important power service messages are not mixed with other messages and forwarded through the switching of the switching chip, avoiding congestion of power service messages in the switching chip. At the same time, according to the message priority and the remaining maximum transmission time, the order of each power service message in the forwarding queue is adjusted, avoiding the situation where traditional messages pile up at the sending port of the switching chip and cannot be reordered. While ensuring the deterministic transmission of low-priority messages, high-priority and burst-important information messages are preferentially transmitted in real time. This power service message scheduling method based on content switching ensures the deterministic and real-time transmission of power service messages through content switching, queue control, and dedicated sending queues reserved for ports.
[0033] Explanatory, in response to the information interaction requirements of the new power system, the present invention proposes a power service message scheduling method based on content switching in a multi-modal network. Starting from the underlying architecture, a content-switching-based mode is designed, and the deterministic transmission of power service messages is ensured through queue scheduling.
[0034] Explanatory, see Figure 2 , before applying the power service message scheduling method based on content switching of the present invention, it is necessary to design the forwarding queue of the forwarding port and the dedicated sending queue of the forwarding port. Among them, the forwarding queue of the forwarding port can be set in the processor, and the dedicated sending queue of the forwarding port is set in the switching chip. At the same time, parameters such as the maximum transmission delay and priority of the power service message are set inside the processor.
[0035] Exemplarily, the switching chip of the switching device first identifies the power service messages in the to-be-transmitted messages according to a preset power service message identification template, and then transmits the power service messages to the processor. Non-power service messages are still exchanged and forwarded through the original exchange method; after receiving the power service messages, the processor determines the forwarding port through the message content and puts them into the forwarding queue of this forwarding port in the processor; in the same forwarding queue, the order of the messages in the queue is adjusted according to the message priority and the remaining maximum transmission time; then they are sent to the dedicated sending queue of the corresponding forwarding port in order.
[0036] Specifically, determining the forwarding port of the power service message includes: obtaining the grid specific identifier of the power service message by parsing the power service message, and determining the forwarding port of the power service message in combination with the network topology of the multi-modal network according to the grid specific identifier of the power service message.
[0037] Explanatorily, content addressing in a multi-modal network mainly refers to a named data network, which has two important roles: subscribers and publishers. Subscribers are data requesters who send interest packets, and publishers are data providers who reply with data packets. See again Figure 2 , content exchange in the present invention refers to realizing addressing and routing based on the grid specific identifier in the message content. The processor extracts the power service message through the switching chip, then identifies the grid specific identifier in the message content of the power service message, determines the message transmission target of the power service message, and then realizes the switching and forwarding function through the network topology and flow table.
[0038] Exemplarily, see Figure 3 , taking the substation GOOSE message and SV message as examples, the GOOSE message and SV message are multicast messages and have multiple destinations. The specific APPID field in the message consists of two parts: the APPID type and the actual ID value. The APPID type occupies the highest 2 bits, and the GOOSE message and SV message are 00 and 01 respectively. The APPID value range assigned to the GOOSE message is 0x0000 to 0x3FFF, and the APPID value range assigned to the SV message is 0x4000 to 0x7FFF. The APPID of each GOOSE control block is unique throughout the station, and the APPID of the SV control block is also unique throughout the station. Therefore, all destinations to which the message needs to be sent and the forwarding path can be determined based on the APPID and network topology, and the forwarding port of each power service message can be determined.
[0039] At this time, it is equivalent to setting all terminals in the station that need to receive the APPID message as "subscribers", the one that sends the message is the "publisher", and the message is the "reply data packet". The difference is that the message is actively sent instead of the subscriber sending an interest packet to request data. Therefore, this mode is a special mode that is different from the data network in the existing multi-modal network.
[0040] The method enables the power service message not to be mixed with other messages for switching and forwarding through the switching chip by the processor establishing a content-exchange-based mode, avoiding congestion of the power service message in the switching chip; a forwarding queue is established in the processor, and the message order in the forwarding queue can be adjusted in real time according to the message priority and the remaining maximum transmission time, avoiding the situation where messages pile up at the sending port of the switching chip and cannot be reordered in the traditional way; the processor directly reserves a dedicated sending queue and resources at the switching chip port, and controls the power service messages in the forwarding queue to enter the dedicated sending queue of the forwarding port according to the port status, ensuring that the power service messages can be sent in real time as soon as they enter the forwarding port. Through switching, queue control, and reserving a dedicated sending queue at the port, the real-time and deterministic scheduling of the power service messages is effectively guaranteed.
[0041] In a possible implementation manner, the power service message recognition template is set according to one or several of the following information of the power service message: source MAC, destination MAC, VLAN, Ethernet type, source IP address, destination IP address, and message special field.
[0042] Explanatorily, see again Figure 2 That is, by setting the power service message recognition template, the power service message can be extracted through information such as the source MAC (Media Access Control), destination MAC, VLAN (Virtual Local Area Network), Ethernet type, source IP (Internet Protocol Address) address, destination IP address, and message special field in the message, through the UDF (User-Defined Fields) function of the switching chip. Exemplarily, the switching chip directly sends the extracted power service message to the processor for the next step of processing, without performing switching and forwarding in the switching chip, and other messages can still perform switching and forwarding in the switching chip.
[0043] Exemplarily, see Figure 3 That is, taking the substation GOOSE message and SV message as examples, the first 3 bytes of the destination MAC of the GOOSE message and SV message are fixed as 0x010CCD. If the 4th byte is 0x01, it represents the GOOSE message, and if the 4th byte is 0x04, it represents the SV message. In addition, the Ethernet type value of the GOOSE message is 0x88B8, and the Ethernet type value of the SV message is 0x88BA. The specific GOOSE message or SV message can be accurately identified through the first 4 bytes of the destination MAC and the Ethernet type value.
[0044] In a possible implementation manner, see again Figure 2, the adjusting the order of each power service message in the forwarding queue according to the message priority and the remaining maximum transmission time includes: obtaining and obtaining the message priority of the power service message according to the type of the power service message; for the power service message with a time stamp, obtaining and obtaining the remaining maximum transmission time of the power service message according to the farthest remaining transmission hops of the power service message in the network topology of the multimodal network, the precise clock of the whole network, the message time stamp and the average forwarding time of the device message; for the power service message with a time stamp, sorting in an ascending order of the remaining maximum transmission time to obtain a first sorting result; for the power service message without a time stamp, sorting in an ascending order of the message priority, and sorting each power service message under the same message priority in an ascending order of the remaining transmission time, and sorting each power service message from the same source in an ascending order of the message sequence number to obtain a second sorting result; inserting the second sorting result into the first sorting result in an ascending order of the message priority to obtain an adjusted forwarding queue.
[0045] Explanatory, the processor can estimate the remaining transmission time T1=N*t based on the longest remaining transmission hop number N in the network topology, the precise clock T of the entire network, the message timestamp T0 and the average forwarding time t of the device message, and then estimate the remaining maximum transmission time T2=T-(T-T0)-T1.
[0046] For example, see again Figure 3 , taking the GOOSE message as an example, the PDU part of the message has a Tag value field of time t, and the default message priority is 4. The processor can estimate the remaining transmission time based on the network topology, the precise clock of the whole network, the Tag value of the message time t, and the average forwarding time of the device message. Let the farthest remaining transmission hops be NG, the precise clock of the whole network be T, the message time stamp be T0, the preset maximum message transmission time stamp be TG, and the average forwarding time of the processor for this type of message be tg, then the remaining transmission time TG1 of the message can be estimated to be N*tg, and the remaining maximum transmission time TG2 is TN-(T-T0)-TG1.
[0047] For example, taking SV message as an example, its message PDU part only has sampling counter field smpcnt, and the default message priority is 4. Let the farthest remaining transmission hops be NS, and the average forwarding time of the processor for this type of message be ts, then the remaining transmission time TS1=N*ts of the message can be estimated.
[0048] Explanatory, each power service message is sorted in ascending order according to the remaining maximum transmission time T2. For messages whose remaining maximum transmission time cannot be estimated (messages without time stamps), they are sorted in descending order according to the preset message priority. Under the same priority, they are sorted in ascending order according to the remaining transmission time T1. Messages from the same source are sorted according to the message sequence number, and then inserted into the existing queue according to the priority size. That is, while ensuring the deterministic transmission of low-priority messages, high-priority messages are preferentially transmitted in real time.
[0049] Exemplarily, taking substation GOOSE messages and SV messages as an example, in engineering applications, when the data in the GOOSE dataset does not change, the device generally sends the current status once every 5 seconds on average. The SV message is generally sent at a frequency of 4KHz, that is, with a 250us interval. Therefore, the processor presets the priority of the GOOSE message to 4 and raises the priority of the SV message to 5 for queue scheduling. At this time, the SV message is ranked before the GOOSE message. When the remaining maximum transmission time of the GOOSE message is less than 1ms, the priority of this GOOSE message is temporarily raised to 6 and re-sorted in the queue. That is, while ensuring the deterministic transmission of the GOOSE message, the SV message is preferentially transmitted in real time.
[0050] In a possible implementation manner, the power service message scheduling method based on content switching further includes: obtaining the message length, transmission interval or change status of special fields of the power service message, and when the change status is a change, raising the message priority of the power service message.
[0051] Explanatory, see again Figure 2 For power service messages with a relatively stable period, when the message length, transmission interval or special fields change, it may all indicate that there is important information to be transmitted. At this time, the processor monitors the power service message. After determining the change, by temporarily adjusting the message priority, the order of the message in the queue is scheduled. That is, while ensuring the deterministic transmission of low-priority messages, this message is preferentially transmitted in real time.
[0052] Exemplarily, see again Figure 3 Taking the substation GOOSE message as an example, in engineering applications, when an event occurs in the device (such as a switch status change), the data in the GOOSE dataset changes. The device immediately sends all the data of this dataset, and then sends the second and third frames at an interval of 2ms, the fourth and fifth frames at intervals of 4ms and 8ms, and so on for subsequent messages. The transmission interval gradually increases according to a rule of doubling until it increases to 5s. When the stNum (used to record the total number of times the GOOSE data changes) in the PDU field of the first frame message after the data change increases by 1, the sqNum (used to record the number of frames sent in the steady state) starts from zero. Subsequently, the stNum in the subsequent messages remains unchanged and the sqNum increases.
[0053] By monitoring the interval, stNum field, and sqNum of GOOSE messages from the same sending source, the processor can accurately determine that an event has occurred. At this time, the priority of this message is temporarily increased to 6, and it is rescheduled and sorted in the queue. At the same time, the stNum field and sqNum are used to ensure that the order is not disrupted. That is, after ensuring the transmission of GOOSE messages with a temporarily increased priority of 6 due to the low remaining maximum transmission time in the queue, the GOOSE message with a priority of 6 increased due to the event is transmitted first.
[0054] In a possible implementation, the step of sending each power service message in the adjusted forwarding queue to the dedicated sending queue corresponding to the forwarding port in sequence includes: when the power service message in the dedicated sending queue corresponding to the forwarding port is in the sending state, the first frame of the power service message in the adjusted forwarding queue is sent to the dedicated sending queue corresponding to the forwarding port.
[0055] Explanatorily, see again Figure 2 , the processor monitors the status of the dedicated sending queue of power service messages at the switch chip port in real time. When the previous frame of the power service message in the dedicated sending queue of the switch chip port is in the sending state, the first frame of the power service message in the processor queue is put into the dedicated sending queue of the switch chip port, so as to ensure that the power service message is always in a controllable state by the processor.
[0056] In a possible implementation, the dedicated sending queue presets a dedicated sending time slot.
[0057] Explanatorily, the switch chip reserves a dedicated sending time slot for the dedicated sending queue, and the power service message occupies this time slot; in non-dedicated sending time slots, since the priority of other ordinary queues is set lower than that of the dedicated sending queue of the power service message, the power service message can also be preferentially transmitted in real time in non-dedicated sending time slots.
[0058] In a possible implementation, among the sending queues of the same forwarding port, the queue priority of the dedicated sending queue is higher than that of the ordinary sending queue.
[0059] Explanatorily, setting the queue priority of the dedicated sending queue higher than that of the ordinary sending queue among the sending queues of the same forwarding port ensures that the power service message is transmitted prior to other messages.
[0060] In summary, in view of the information interaction requirements of the new power system, the present invention proposes a power service message scheduling method based on content switching. Starting from the underlying architecture, a mode based on content switching is designed, and through queue scheduling, the deterministic transmission of power service messages is ensured. Specifically, a mode based on content switching is established through a processor, so that power service messages are not mixed with other messages and are switched and forwarded through a switching chip, avoiding congestion of power service messages in the switching chip; a forwarding queue is established in the processor, and the order of power service messages in the queue can be adjusted in real time according to the remaining transmission time of the power service messages and the preset priority, avoiding the situation where traditional messages pile up at the sending port of the switching chip and cannot be adjusted; the processor directly reserves a dedicated sending queue and resources at the switching chip port, and controls the power service messages in the queue to enter the switching chip port according to the port status, ensuring that the power service messages can be sent in real time as soon as they enter the port. Through the comprehensive mechanisms of switching, queue control, and port reservation of dedicated queues and resources, the deterministic scheduling of power service messages is ensured.
[0061] The following is an apparatus embodiment of the present invention, which can be used to execute the method embodiment of the present invention. For details not disclosed in the apparatus embodiment, please refer to the method embodiment of the present invention.
[0062] See Figure 4 , in another embodiment of the present invention, a power service message scheduling system based on content switching is provided, which can be used to implement the above-mentioned power service message scheduling method based on content switching. Specifically, the power service message scheduling system based on content switching includes a message identification module, a port determination module, a message adjustment module, and a message forwarding module.
[0063] Among them, the message identification module is used to identify power service messages in the to-be-transmitted messages through a switching chip according to a preset power service message identification template and send them to the processor; the port determination module is used to obtain the grid-specific identifier of the power service message through the processor, determine the forwarding port of the power service message according to the grid-specific identifier and the network topology of the multi-modal network, and add the power service message to the forwarding queue of the corresponding forwarding port preset in the processor; the message adjustment module is used to adjust the order of each power service message in the forwarding queue through the processor according to the message priority and the remaining maximum transmission time to obtain an adjusted forwarding queue; the message forwarding module is used to send each power service message in the adjusted forwarding queue to the dedicated sending queue of the corresponding forwarding port preset in the switching chip in sequence through the processor.
[0064] All relevant contents of each step involved in the embodiment of the above-mentioned power service message scheduling method based on content switching can be cited in the function description of the corresponding functional modules of the power service message scheduling system based on content switching in the embodiment of the present invention, and will not be elaborated here.
[0065] In the embodiments of the present invention, the division of modules is illustrative, merely a logical function division. In actual implementation, there may be other division methods. Additionally, in each embodiment of the present invention, each functional module may be integrated in a processor, may exist physically alone, or two or more modules may be integrated in one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0066] In another embodiment of the present invention, a computer device is provided. The computer device includes a processor and a memory. The memory is used to store a computer program, and the computer program includes program instructions. The processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, and is suitable for implementing one or more instructions. Specifically, it is suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function. The processor in the embodiments of the present invention may be used for the operation of the power service message scheduling method based on content exchange.
[0067] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a computer device, used to store programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and, of course, the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, and the operating system of the terminal is stored in this storage space. Moreover, one or more instructions suitable for being loaded and executed by the processor are stored in this storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor to implement the corresponding steps of the method for scheduling power service messages based on content exchange in the above embodiments.
[0068] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0069] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in Figure 1 one or more of these flows Figure 1 or multiple flows and / or blocks
[0070] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the specified functions in Figure 1 one or more of these flowsFigure 1 The functions specified in one or more boxes.
[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide for implementing in the process Figure 1 One or more processes and / or boxes Figure 1 The steps of the functions specified in one or more boxes.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent replacements can still be made to the specific embodiments of the present invention. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.
Claims
1. A power service message scheduling method based on content exchange, characterized in that include: Identify the power service message in the message to be transmitted through the switching chip according to the preset power service message identification template, and send it to the processor; Obtaining a power grid-specific identifier of the power service message through a processor, determining a forwarding port of the power service message according to the power grid-specific identifier combined with a network topology of the multimodal network, and adding the power service message to a forwarding queue of a corresponding forwarding port preset in the processor; The processor adjusts the order of each power service message in the forwarding queue according to the message priority and the remaining maximum transmission time to obtain an adjusted forwarding queue; The processor sends each power service message in the adjusted forwarding queue in sequence to the dedicated sending queue of the corresponding forwarding port preset by the switching chip.
2. The power service message scheduling method based on content exchange according to claim 1, wherein The electric power service message identification template is set according to one or more of the following information of the electric power service message: source MAC, destination MAC, VLAN, Ethernet type, source IP address, destination IP address and message special fields.
3. The power service message scheduling method based on content exchange according to claim 1, wherein The step of adjusting the order of each power service message in the forwarding queue according to the message priority and the remaining maximum transmission time includes: Obtaining and obtaining the message priority of the power service message according to the type of the power service message; For power service messages with time stamps, obtain and obtain the remaining maximum transmission time of the power service messages based on the farthest remaining transmission hops of the power service messages in the network topology of the multimodal network, the precise clock of the entire network, the message time stamp and the average forwarding time of the device message; For the power service messages with time stamps, sort them in ascending order according to the remaining maximum transmission time to obtain a first sorting result; For power service messages without time stamps, the messages are sorted from high to low according to the message priority, and the power service messages under the same message priority are sorted from small to large according to the remaining transmission time, and the power service messages from the same source are sorted from small to large according to the message sequence number, to obtain a second sorting result; The second sorting result is inserted into the first sorting result in a descending order of message priority to obtain an adjusted forwarding queue.
4. The method for scheduling power service messages based on content exchange according to claim 3, wherein Also includes: The message length, the sending interval or the change status of the special field of the power service message is obtained, and when the change status is changed, the message priority of the power service message is increased.
5. The power service message scheduling method based on content exchange according to claim 1, wherein The step of sending each power service message in the adjusted forwarding queue to a dedicated sending queue of a corresponding forwarding port preset by the switching chip in sequence by the processor includes: When the electric power service message in the dedicated sending queue corresponding to the forwarding port is in the sending state, the first frame of the electric power service message in the adjusted forwarding queue is sent to the dedicated sending queue corresponding to the forwarding port.
6. The power service message scheduling method based on content exchange according to claim 1, characterized in that The dedicated sending queue presets a dedicated sending time slot.
7. The power service message scheduling method based on content exchange according to claim 1, characterized in that, In each sending queue of the same forwarding port, the queue priority of the dedicated sending queue is higher than that of the common sending queue.
8. A power service message scheduling system based on content exchange, characterized in that include: A message identification module, used to identify the power business message in the message to be transmitted through the switching chip according to the preset power business message identification template, and send it to the processor; A port determination module, configured to obtain a grid-specific identifier of an electric power service message through a processor, determine a forwarding port of the electric power service message according to the grid-specific identifier in combination with the network topology of a multimodal network, and add the electric power service message to a forwarding queue of a corresponding forwarding port preset in the processor; A message adjustment module, configured to adjust the order of each electric power service message in the forwarding queue through the processor according to the message priority and the remaining maximum transmission time, to obtain an adjusted forwarding queue; A message forwarding module, configured to sequentially send each electric power service message in the adjusted forwarding queue to a dedicated sending queue of a corresponding forwarding port preset in a switching chip through the processor.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the method for scheduling electric power service messages based on content switching according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the method for scheduling electric power service messages based on content switching according to any one of claims 1 to 7 is implemented.