A Transmission Method and Device for IEC 104 Messages

By inserting the IEC104 packets into the corresponding transmission queue according to the priority of the IEC104 packets and controlling the maximum number of packets transmitted in each queue, the problem of blocking caused by high-priority packets is solved, and timely transmission of various types of packets is achieved.

CN116016352BActive Publication Date: 2025-07-29华能陇东能源有限责任公司 +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211522217.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-07-29
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

In the prior art, high priority packets of IEC104 packets occupy all bandwidth, resulting in other packets being blocked.

Method used

According to the application specification control information and application service data units in the IEC104 message, the priority of the message is determined and inserted into the corresponding transmission queue. Each queue corresponds to a different priority and maximum number of message transmissions, and the transmission of the message is controlled through the priority and maximum number of messages of the transmission queue.

Benefits of technology

It avoids the situation where high-priority packets occupy all bandwidth all the time, resulting in other packets being blocked, and ensures that all priority packets can be transmitted in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016352B_ABST
    Figure CN116016352B_ABST
Patent Text Reader

Abstract

In the transmission method, device and storage medium for IEC 104 messages proposed in this application, an IEC 104 message is received. The 104 message includes application protocol control information and application service data units. According to the application protocol control information and application service data units in the 104 message, the priority of the 104 message is determined. According to the priority of the 104 message, the 104 message is inserted into the corresponding transmission queue. Each transmission queue corresponds to a different priority and a maximum message transmission quantity. According to the priority and maximum message transmission quantity of each transmission queue, the 104 messages in each transmission queue are transmitted. It can be seen from this that in each transmission process of this application, the transmission queues of each priority can transmit 104 messages and occupy the corresponding bandwidth, thus avoiding the situation that "high-priority 104 messages always occupy all the bandwidth, resulting in other messages being blocked".
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information transmission, and in particular, to a method, apparatus, and storage medium for transmitting IEC104 messages. Background Art

[0002] Currently, the power system uses the IEC104 protocol for network transmission of telecontrol information to achieve real-time information sharing between the control station and the substation. The IEC104 (IEC60870-5-104) protocol is mainly used for power system control and information acquisition and is transmitted based on the TCP / IP network, located in the application layer of the network architecture. Among them, the real-time requirements for 104 messages with different functions are also different. Based on this, the 104 protocol defines the priority order of messages to distinguish the real-time nature of different functions. Among them, the 104 messages can be transmitted based on their priorities.

[0003] In the related art, the strategy of "strictly sending according to priority" is adopted. However, in this method, high-priority 104 messages always occupy all bandwidth, resulting in the blocking of other messages, thereby causing the expiration of the validity of data in other messages and unable to complete the transmission in a timely manner. Summary of the Invention

[0004] This application provides a method, apparatus, and storage medium for transmitting IEC104 messages to solve the technical problems that occur in the above-mentioned related art.

[0005] The first aspect embodiment of this application proposes a method for transmitting IEC104 messages, including:

[0006] Receiving an IEC104 message, where the 104 message includes application protocol control information and application service data units;

[0007] Determining the priority of the 104 message according to the application protocol control information and application service data units in the 104 message;

[0008] Inserting the 104 message into the corresponding transmission queue according to the priority of the 104 message, where each transmission queue corresponds to a different priority and a maximum message transmission quantity;

[0009] Transmitting the 104 messages in each transmission queue according to the priority and maximum message transmission quantity of each transmission queue.

[0010] The second aspect embodiment of this application proposes a device for transmitting IEC104 messages, including:

[0011] A receiving module, configured to receive an IEC104 message, where the 104 message includes application protocol control information and application service data units;

[0012] A determination module, configured to determine the priority of the 104 message according to the application protocol control information and the application service data unit in the 104 message;

[0013] An insertion module, configured to insert the 104 message into a corresponding transmission queue according to the priority of the 104 message, where each transmission queue corresponds to a different priority and a maximum message transmission quantity;

[0014] A transmission module, configured to transmit the 104 messages in each transmission queue according to the priority and the maximum message transmission quantity corresponding to each transmission queue.

[0015] The computer device provided in the third aspect embodiment of the present application is characterized by including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the method described in the first aspect above is implemented.

[0016] The computer storage medium provided in the fourth aspect embodiment of the present application, where the computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by a processor, the method described in the first aspect above can be implemented.

[0017] The technical solution provided in the embodiment of the present application at least brings the following beneficial effects:

[0018] In the IEC 104 message transmission method, device, and storage medium provided in the present application, an IEC 104 message is received, where the 104 message includes application protocol control information and an application service data unit. The priority of the 104 message is determined according to the application protocol control information and the application service data unit in the 104 message. The 104 message is inserted into a corresponding transmission queue according to the priority of the 104 message, where each transmission queue corresponds to a different priority and a maximum message transmission quantity. The 104 messages in each transmission queue are transmitted according to the priority and the maximum message transmission quantity of each transmission queue. It can be seen from this that in the present application, according to the priority of the 104 message, it is inserted into a corresponding transmission queue, and then the 104 messages in each transmission queue are transmitted according to the priority and the maximum message transmission quantity of each transmission queue. Specifically, in each transmission process, the transmission queues of each priority can transmit the 104 messages and occupy the corresponding bandwidth, thereby avoiding the situation that "the high-priority 104 messages always occupy all the bandwidth, resulting in other messages being blocked".

[0019] The additional aspects and advantages of the present application will be partially given in the following description, partially become obvious from the following description, or be understood through the practice of the present application. Description of the Drawings

[0020] The above and / or additional aspects and advantages of the present application will become apparent and readily understood from the following description of embodiments in conjunction with the accompanying drawings, where:

[0021] Figure 1 It is a schematic flowchart of a method for transmitting IEC 104 messages provided according to an embodiment of the present application;

[0022] Figure 2 It is a schematic structural diagram of an IEC 104 message provided according to an embodiment of the present application;

[0023] Figure 3 It is a schematic diagram of 104 message transmission provided according to an embodiment of the present application;

[0024] Figure 4 It is a schematic structural diagram of a transmission device for IEC 104 messages provided according to an embodiment of the present application. Detailed implementation manners

[0025] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present application, and should not be construed as limiting the present application.

[0026] The method and device for transmitting IEC 104 messages according to the embodiments of the present application will be described below with reference to the accompanying drawings.

[0027] Figure 1 It is a schematic flowchart of a method for transmitting IEC 104 messages provided according to an embodiment of the present application. As Figure 1 shown, the following steps may be included:

[0028] Step 101, receive an IEC 104 message.

[0029] Among them, in an embodiment of the present application, the 104 protocol is located at the application layer. Based on this, the IEC 104 message can be received through the application layer.

[0030] In addition, in an embodiment of the present application, the 104 message may include application protocol control information and application service data units. Among them, various types of 104 message formats are defined in the application protocol control information for realizing the transmission control of 104 messages; the application service data units may include TI (TYPE IDENTIFICATION), COT (CAUSE OF TRANSMISSION), and call qualifier (QOI) to distinguish 104 messages with different functions.

[0031] Step 102: Determine the priority of the 104 message according to the application protocol control information and the application service data unit in the 104 message.

[0032] Among them, in an embodiment of the present application, the method for determining the priority of the 104 message according to the application protocol control information and the application service data unit in the 104 message may include the following steps:

[0033] Step 1: Determine the format of the 104 message according to the application protocol control information in the 104 message;

[0034] Among them, Figure 2 is a schematic diagram of the structure of an IEC104 message provided by an embodiment of the present application. As Figure 2 shown, the format of the 104 message can be determined specifically according to control field octet ①, control field octet ②, control field octet ③, and control field octet ④.

[0035] Exemplarily, in an embodiment of the present application, according to control field octet ①, control field octet ②, control field octet ③, and control field octet ④ in the application protocol control information, the format of the 104 message is determined to be an I-format message.

[0036] Step 2: Determine the type of the application data of the 104 message according to the format of the 104 message and the type identifier, transmission cause, and call qualifier in the application service data unit;

[0037] Among them, in an embodiment of the present application, there is a corresponding relationship between the above-mentioned format of the 104 message and the type identifier, transmission cause, and call qualifier in the application service data unit and the type of the application data. The type of the application data of the 104 message can be determined according to the corresponding relationship between the format of the 104 message and the type identifier, transmission cause, and call qualifier in the application service data unit and the type of the application data.

[0038] Exemplarily, assuming that the format of the 104 message is a U-format message and an I-format message, the type identifier in the application service data unit is 100, the transmission cause is 7, and the call qualifier is 20, then according to the corresponding relationship, it can be determined that the type of the application data corresponding to this message is a response data message for a general call.

[0039] It should be noted that in an embodiment of the present application, the specific identification method can be customized by each system using IEC104. The above information is not completely fixed, but is customized according to the local implementation rules.

[0040] Step 3: Determine the priority of the 104 message according to the corresponding relationship between the type of the application data and the priority.

[0041] Among them, in an embodiment of the present application, the correspondence between the types and priorities of the above application data may be a correspondence table, and the correspondence table may be stored in the system in advance.

[0042] Exemplarily, Table 1 is a correspondence table between the types and priorities of an application data provided by an embodiment of the present application.

[0043] Table 1

[0044] Priority Type of application data 1 Initialization completed 2 Response data for general call (initialization) 3 Response message for remote control command 4 Change in status quantity (COS) 5 Response data for general call (non-initialization) 6 Sequence of events record (SOE) 7 Response message for clock synchronization 8 Changed telemetry 9 Reset process 10 Parameter setting

[0045] As shown in Table 1, each type of application data has a corresponding priority number. Exemplarily, assuming that the type of application data is the end of initialization, it can be obtained from Table 1 that the corresponding priority number is 1. Moreover, the levels of the priorities in the above correspondence table gradually decrease as the numbers increase. Specifically, the priority level corresponding to the priority number 1 is the highest, and the priority level corresponding to the priority number 10 is the lowest.

[0046] Step 103: Insert the 104 message into the corresponding transmission queue according to the priority of the 104 message, where each transmission queue corresponds to a different priority and a maximum message transmission quantity.

[0047] Among them, in an embodiment of the present application, before inserting the 104 message into the corresponding transmission queue according to the priority of the 104 message, it may further include: determining the number of transmission queues, the priority and the maximum message transmission quantity corresponding to each transmission queue, and the correspondence between each transmission queue and the priority of the 104 message according to all the priorities of the 104 message and the number of 104 messages corresponding to each priority within a preset time period.

[0048] Moreover, in an embodiment of the present application, the method for determining the number of transmission queues, the priority and the maximum message transmission quantity corresponding to each transmission queue, and the correspondence between each transmission queue and the priority of the 104 message according to all the priorities of the 104 message and the number of 104 messages corresponding to each priority within a preset time period may include: merging the message classes with adjacent priorities into one transmission queue, and determining the priority corresponding to each transmission queue in all the transmission queues according to the priority corresponding to the transmission queue. Among them, in an embodiment of the present application, the maximum message transmission quantity of each transmission queue may be determined according to the number of 104 messages corresponding to each priority within a preset time period.

[0049] Exemplarily, in an embodiment of the present application, ten types of messages with different priorities and other messages are divided into four transmission queues. The correspondence between each transmission queue and the 104 message priorities is as follows: 104 messages with priorities 1, 2, and 3 are in transmission queue 1 (numbered q1), 104 messages with priorities 4, 5, 6, 7, and 8 are in transmission queue 2 (numbered q2), 104 messages with priorities 9 and 10 are in transmission queue 3 (numbered q3), and other messages are in transmission queue 4 (numbered q4); the maximum message transmission quantities of each transmission queue are respectively: the maximum message transmission quantity c1 of transmission queue 1 = 4; the maximum message transmission quantity c2 of transmission queue 2 = 3; the maximum message transmission quantity c3 of transmission queue 3 = 2; the maximum message transmission quantity c4 of transmission queue 4 = 4; the priority corresponding to each transmission queue is: the priority number of transmission queue 1 is 1, the priority number of transmission queue 2 is 2, the priority number of transmission queue 3 is 3, the priority number of transmission queue 4 is 4, and the priorities of transmission queues 1 to 4 decrease in sequence.

[0050] Among them, other messages are those whose types of application data corresponding to the message are not in the types of application data in Table 1 above, and the priority number of other messages is 11, and the level of the priority is the lowest.

[0051] Further, in an embodiment of the present application, the method of inserting 104 messages into the corresponding transmission queue according to the priority of the 104 messages may include the following steps:

[0052] Step a: Determine the transmission queue corresponding to the 104 message according to the priority of the 104 message and the correspondence between each transmission queue and the 104 message priority.

[0053] Step b: Insert the 104 message into the determined transmission queue.

[0054] Among them, in an embodiment of the present application, inserting the 104 message into the determined transmission queue above may refer to the insertion of the queue data structure, that is, inserting behind the end of the current transmission queue.

[0055] Step 104: Transmit the 104 messages in each transmission queue according to the priority and the maximum message transmission quantity of each transmission queue.

[0056] Among them, in an embodiment of the present application, each transmission queue has a corresponding counter, and the value in the counter is the number of current 104 messages in the transmission queue.

[0057] And, in an embodiment of the present application, the method of transmitting the 104 messages in each transmission queue according to the priority and the maximum message transmission quantity corresponding to the transmission queue may include the following steps:

[0058] Step 1041: During each transmission process, compare the value in the counter of each transmission queue with the maximum number of message transmissions of each transmission queue in descending order of the priority of each transmission queue. If the value in the counter is greater than or equal to the maximum number of message transmissions, transmit the maximum number of 104 messages; otherwise, transmit the current value of the counter number of 104 messages.

[0059] Step 1042: Subtract the number of 104 messages transmitted from the counter corresponding to each transmission queue, and repeat the above steps.

[0060] In addition, in an embodiment of the present application, the above method further includes:

[0061] If the value of the counter corresponding to the transmission queue of a certain priority is 0, continue to transmit the 104 messages in the transmission queue of the next priority.

[0062] Furthermore, in an embodiment of the present application, the above method further includes: If the values of the counters corresponding to the transmission queues of all priorities are 0, re-determine the number of transmission queues, the priority and the maximum number of message transmissions corresponding to each transmission queue, and the correspondence between each transmission queue and the priority of the 104 messages according to all the priorities of the 104 messages and the number of 104 messages corresponding to each priority within a preset time period; Transmit the 104 messages in each transmission queue according to the re-determined priority and the maximum number of message transmissions corresponding to each transmission queue.

[0063] Exemplarily, in an embodiment of the present application, it is assumed that it is performed based on the transmission queue in the above step 103. Figure 3 It is a schematic diagram of a 104 message transmission proposed by the present application. As Figure 3 shown, the above steps 1041 to 1042 can be performed according to the transmission queue in Figure 3 .

[0064] Specifically, for the first transmission: The value in the counter in the transmission queue q1 is greater than or equal to c1, and 4 copies of 104 messages are transmitted to the TCP send window, and the value of the counter is 4; The value in the counter in the transmission queue q2 is greater than or equal to c2, and 3 copies of 104 messages are transmitted to the TCP send window, and the value of the counter is 7; The value in the counter in the transmission queue q3 is greater than or equal to c3, and 2 copies of 104 messages are transmitted to the TCP send window, and the value of the counter is 9; The value in the counter in the transmission queue q4 is greater than or equal to c4, and 1 copy of 104 message is transmitted to the TCP send window, and the value of the counter is 9.

[0065] Second transmission: When the value of the counter in transmission queue q1 is greater than or equal to c1, the 104 message is transmitted to the TCP send window, and the value of the counter becomes 0; when the value of the counter in transmission queue q2 is greater than or equal to c2, three 104 messages are transmitted to the TCP send window, and the value of the counter becomes 4; when the value of the counter in transmission queue q3 is greater than or equal to c3, two 104 messages are transmitted to the TCP send window, and the value of the counter becomes 7; when the value of the counter in transmission queue q4 is greater than or equal to c4, one 104 message is transmitted to the TCP send window, and the value of the counter becomes 8.

[0066] Third transmission: When the value of the counter in transmission queue q1 is equal to 0, the sending task of this transmission queue ends; when the value of the counter in transmission queue q2 is greater than or equal to c2, three 104 messages are transmitted to the TCP send window, and the value of the counter becomes 1; when the value of the counter in transmission queue q3 is greater than or equal to c3, two 104 messages are transmitted to the TCP send window, and the value of the counter becomes 5; when the value of the counter in transmission queue q4 is greater than or equal to c4, one 104 message is transmitted to the TCP send window, and the value of the counter becomes 7.

[0067] For the specific situations of subsequent transmission times, reference can be made to the above description.

[0068] It should be noted that in an embodiment of the present disclosure, when there are a large number of 104 messages waiting to be sent in each transmission queue, the ratio of the sending rates of different priority queues is the same as the ratio of the maximum transmission quantities of each transmission queue. For example, assuming that the ratio of the sending rates of the above four transmission queues is c1:c2:c3:c4, and the sending bandwidth of the data sending station is 100 Mbps, then when only considering that each transmission queue sends the maximum number of transmission messages, transmission queue 1 will be allocated 40 Mbps of bandwidth, transmission queue 2 will be allocated 30 Mbps of bandwidth, transmission queue 3 will be allocated 20 Mbps of bandwidth, and transmission queue 4 will be allocated 10 Mbps of bandwidth.

[0069] Moreover, in an embodiment of the present application, when the number of 104 messages sent by a certain transmission queue is less than the maximum number of transmission messages of this transmission queue, after the transmission of this transmission queue is completed, the transmission will immediately switch to a transmission queue with a lower priority, thereby ensuring that the queue with a lower priority can also complete the transmission task in a timely manner.

[0070] Furthermore, in an embodiment of the present application, the above-mentioned each transmission process is carried out according to the priority of the transmission queue, rather than strictly inserting and transmitting according to the message priority, thereby avoiding that high-priority 104 messages always occupy the sending bandwidth, resulting in the blocking of 104 messages with other priorities. At the same time, by adjusting the maximum message transmission quantity of each transmission queue, the sending speed of 104 messages with different priorities can also be controlled.

[0071] In the IEC 104 message transmission method proposed in this application, an IEC 104 message is received. The 104 message includes application protocol control information and application service data units. According to the application protocol control information and application service data units in the 104 message, the priority of the 104 message is determined. According to the priority of the 104 message, the 104 message is inserted into the corresponding transmission queue, where each transmission queue corresponds to a different priority and a maximum message transmission quantity. According to the priority and maximum message transmission quantity of each transmission queue, the 104 messages in each transmission queue are transmitted. It can be seen from this that in this application, according to the priority of the 104 message, it is inserted into the corresponding transmission queue, and then according to the priority and maximum message transmission quantity of each transmission queue, the 104 messages in each transmission queue are transmitted. Specifically, in each transmission process, the transmission queues of each priority can transmit 104 messages and occupy the corresponding bandwidth, thus avoiding the situation that "high-priority 104 messages always occupy all the bandwidth, resulting in other messages being blocked".

[0072] Figure 4 As shown in the structural schematic diagram of the IEC 104 message transmission device according to an embodiment of this application, Figure 4 it may include:

[0073] A receiving module 401, configured to receive an IEC 104 message, where the 104 message includes application protocol control information and application service data units;

[0074] A determining module 402, configured to determine the priority of the 104 message according to the application protocol control information and application service data units in the 104 message;

[0075] An inserting module 403, configured to insert the 104 message into the corresponding transmission queue according to the priority of the 104 message, where each transmission queue corresponds to a different priority and a maximum message transmission quantity;

[0076] A transmitting module 404, configured to transmit the 104 messages in each transmission queue according to the priority and maximum message transmission quantity corresponding to each transmission queue.

[0077] In the IEC 104 message transmission device proposed in this application, an IEC 104 message is received. Among them, the 104 message includes application protocol control information and application service data units. According to the application protocol control information and application service data units in the 104 message, the priority of the 104 message is determined. According to the priority of the 104 message, the 104 message is inserted into the corresponding transmission queue. Each transmission queue corresponds to a different priority and a maximum message transmission quantity. According to the priority and maximum message transmission quantity of each transmission queue, the 104 messages in each transmission queue are transmitted. It can be seen from this that this application inserts the 104 message into the corresponding transmission queue according to its priority, and then transmits the 104 messages in each transmission queue according to the priority and maximum message transmission quantity of each transmission queue. Specifically, in each transmission process, the transmission queues of each priority can transmit the 104 messages and occupy the corresponding bandwidth, thus avoiding the situation that "the high-priority 104 messages always occupy all the bandwidth, resulting in the blocking of other messages".

[0078] To implement the above embodiments, this application also proposes a computer device.

[0079] The computer device provided by the embodiments of this application includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it can implement the method as Figure 1 shown.

[0080] To implement the above embodiments, this application also proposes a computer storage medium.

[0081] The computer storage medium provided by the embodiments of this application stores computer-executable instructions. After the computer-executable instructions are executed by the processor, the method as Figure 1 shown can be implemented.

[0082] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0083] Any process or method description, whether in a flowchart or otherwise described herein, can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logical function or process. The scope of the preferred embodiments of the present application includes additional implementations where functions may be executed in a substantially simultaneous manner or in the reverse order according to the functions involved, rather than in the order shown or discussed. This should be understood by those skilled in the art to which the embodiments of the present application pertain.

[0084] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present application.

Claims

1. A transmission method for IEC 104 messages, characterized in that, The method includes: Receiving an IEC 104 message, where the 104 message includes application protocol control information and application service data units; Determining the priority of the 104 message according to the application protocol control information and application service data units in the 104 message; Inserting the 104 message into the corresponding transmission queue according to the priority of the 104 message, where each transmission queue corresponds to a different priority and a maximum message transmission quantity; Transmitting the 104 messages in each transmission queue according to the priority and maximum message transmission quantity of each transmission queue; The application service data unit includes a type identifier, a transmission reason, and a call qualifier; The determining the priority of the 104 message according to the application protocol control information and application service data units in the 104 message includes: Determining the format of the 104 message according to the application protocol control information in the 104 message; Determining the type of application data of the 104 message according to the format of the 104 message and the type identifier, transmission reason, and call qualifier in the application service data unit; Determining the priority of the 104 message according to the corresponding relationship between the type of application data and the priority; Before inserting the 104 message into the corresponding transmission queue according to the priority of the 104 message, it further includes: Determining the number of transmission queues, the priority and maximum message transmission quantity corresponding to each transmission queue, and the corresponding relationship between each transmission queue and the 104 message priority according to all the priorities of the 104 messages and the number of 104 messages corresponding to each priority within a preset time period.

2. The method according to claim 1, wherein The inserting the 104 message into the corresponding transmission queue according to the priority of the 104 message includes: Determining the transmission queue corresponding to the 104 message according to the priority of the 104 message and the corresponding relationship between each transmission queue and the 104 message priority; Inserting the 104 message into the determined transmission queue.

3. The method according to claim 1, wherein Each transmission queue has a corresponding counter, and the value in the counter is the number of current 104 messages in the transmission queue; The transmitting the 104 messages in each transmission queue according to the priority and maximum message transmission quantity corresponding to the transmission queue includes: During each transmission process, comparing the value in the counter of each transmission queue with the maximum message transmission quantity of each transmission queue in turn from high to low according to the priority of each transmission queue. If the value in the counter is greater than or equal to the maximum message transmission quantity, then transmit the maximum message transmission quantity of 104 messages; otherwise, transmit the current value of the counter number of 104 messages; Subtracting the number of transmitted 104 messages from the counter corresponding to each transmission queue, and repeating the above steps.

4. The method according to claim 3, wherein The method further includes: If the value of the counter corresponding to the transmission queue of a certain priority is 0, then continue to transmit the 104 messages in the transmission queue of the next priority.

5. The method according to claim 4, characterized in that, The method further includes: If the counter values corresponding to the transmission queues of all priorities are all 0, then, based on all the priorities of the 104 messages and the number of 104 messages corresponding to each priority within a preset time period, re-determine the number of transmission queues, the priority corresponding to each transmission queue and the maximum message transmission quantity, and the correspondence between each transmission queue and the 104 message priority; Transmit the 104 messages in each transmission queue according to the priority and the maximum message transmission quantity corresponding to each re-determined transmission queue.

6. A transmission device for IEC 104 messages, characterized in that, The device includes: A receiving module, configured to receive IEC 104 messages, where the 104 messages include application protocol control information and application service data units; A determining module, configured to determine the priority of the 104 messages according to the application protocol control information and the application service data units in the 104 messages; An inserting module, configured to insert the 104 messages into corresponding transmission queues according to the priority of the 104 messages, where each transmission queue corresponds to a different priority and a maximum message transmission quantity; A transmitting module, configured to transmit the 104 messages in each transmission queue according to the priority and the maximum message transmission quantity corresponding to each transmission queue; The application service data unit includes a type identifier, a transmission cause, and a call qualifier; The determining the priority of the 104 messages according to the application protocol control information and the application service data units in the 104 messages includes: Determining the format of the 104 messages according to the application protocol control information in the 104 messages; Determining the type of the application data of the 104 messages according to the format of the 104 messages and the type identifier, the transmission cause, and the call qualifier in the application service data units; Determining the priority of the 104 messages according to the correspondence between the type of the application data and the priority; Before inserting the 104 messages into the corresponding transmission queues according to the priority of the 104 messages, it further includes: Determining the number of transmission queues, the priority corresponding to each transmission queue and the maximum message transmission quantity, and the correspondence between each transmission queue and the 104 message priority according to all the priorities of the 104 messages and the number of 104 messages corresponding to each priority within a preset time period.

7. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the method according to any one of claims 1-5.

8. A computer storage medium, wherein, The computer storage medium stores computer-executable instructions; after the computer-executable instructions are executed by the processor, they can implement the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Guaranteeing method and system for transmitting wide area power scheduling data

    CN107332788A

  • Method and apparatus for aging data packet buffers of switch

    CN108173784A

  • Message processing method and device and storage medium

    CN114500402A