Method and system for quickly sending time-sensitive message
By preemptive transmission and truncation processing in the power system according to the priority of message in the power system, the transmission extension problem caused by network resource occupation by high real-time control services is solved, and the rapid transmission of time-sensitive messages and the response speed of the power system is improved.
Patent Information
- Application Number
- CN202411927093.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-25
AI Technical Summary
In power systems, control services with high real-time requirements are prolonged due to monitoring services with low real-time requirements, resulting in extended transmission time and inability to respond quickly.
By preemptively sending according to the message priority on the device outgoing port, the truncated part of the low-priority message is used as the truncated message, and the high-priority message is used as the preemptive message, the truncated mark and verification code are added, and cache and splicing are also cached and spliced on the incoming port to ensure the rapid transmission of high-priority messages.
It realizes the rapid transmission of time-sensitive packets, reduces transmission time, improves the response speed of real-time services and the overall reliability of the power system.
Smart Images

Figure CN119892960A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of power system control, and in particular relates to a method for quickly sending time-sensitive messages. Background Art
[0002] With the promotion and application of smart substations, new energy and intelligent power distribution, the application scope of fast services in power systems is becoming more and more extensive. Substation protection services, control services, drone inspections and robot inspections in the field of intelligent operation and maintenance have the business characteristics of fast action response, and all require rapid information transmission. Reducing the time for information interaction will improve the response speed of the business. Existing services are transmitted through traditional Ethernet networks, wireless networks, etc., and control services such as protection and control are transmitted on the same network as monitoring services. Various services share network resources. Monitoring services with lower real-time requirements may compete with control services for network resources, which will lead to longer transmission time for control services with high real-time requirements, and ultimately increase the control response time.
[0003] Prior art document 1 (CN116668376B) discloses an Ethernet controller, which has the disadvantage that the truncated message is limited by the Ethernet minimum frame length. The truncated message must be inserted with a 6-byte frame gap, a 1-byte start decomposition mark and a 1-byte slice counter. Therefore, messages with high real-time requirements cannot be truly preempted for transmission upon arrival. Summary of the invention
[0004] In order to address the deficiencies in the prior art, the present invention provides a method and system for quickly sending time-sensitive messages, so as to solve the technical problem that in the current scenario of multi-service shared network transmission in the power system, messages with low real-time requirements occupy the transmission channel, resulting in the inability to quickly transmit messages with high real-time requirements.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions.
[0006] A first aspect of the present invention provides a method for quickly sending a time-sensitive message, comprising:
[0007] Step 1: The device egress port sends messages according to the message priority. When a low-priority message is sent at the device egress port, a high-priority message that arrives at the egress port preempts the device egress port as a preempted message, and the truncated sent part of the low-priority message is used as a truncated message, thereby obtaining a truncated message and a preempted message.
[0008] Step 2: Add a truncation mark and a check code at the truncation position of the truncation message in step 1, process the preemption message according to whether the message is sent without gaps, and obtain a processed truncation message and a processed preemption message;
[0009] Step 3: After the ingress port determines that the truncated message received after the processing in step 2 is a truncated message, it is cached at the ingress port. When the truncated part of the low-priority message arrives at the ingress port, it is spliced with the cached truncated message after processing and cached at the ingress port to obtain the cached complete low-priority message;
[0010] Step 4, after the ingress port determines that the received preempted message processed in step 2 is a complete message, the complete high priority message and the complete low priority message cached in step 3 are sent in order of priority from high to low, to obtain a complete high priority message and a complete low priority message, thereby achieving rapid sending of time-sensitive messages.
[0011] Preferably, in step 1, the message includes an Ethernet frame format message and a custom format message, and the message length is greater than 16 bytes.
[0012] Preferably, in step 1, the egress port sends a low-priority message of the same frame, and when a higher-priority message arrives at the egress port, the egress port will continue to be preempted.
[0013] Preferably, in step 2, the high priority message is set whether to be sent without gaps with the truncated message. The high priority message is used as a preemptive message. When it is set to be sent without gaps, the information between the preemptive message and the truncated message does not include the frame gap and the preamble code; when it is set to be sent with gaps, the information between the preemptive message and the truncated message includes the frame gap and the preamble code.
[0014] Preferably, when the preemption message is sent without gaps, a 2-byte gapless sending identifier is inserted before the preemption message is sent to identify the preemption message, and the contents of the two bytes are 0xEB and 0xEB respectively.
[0015] Preferably, in step 2, the truncation identifier is represented by 4 bytes, and the contents of the 4 bytes are 0xEB, 0xEB, 0xBE and the truncation sequence number in sequence;
[0016] The check code contains 2 bytes, and CRC check is performed on all bytes of the message content sent before truncation.
[0017] Preferably, the truncation sequence number is represented by 1 byte, the upper 4 bits represent the truncated message number, and a maximum of 16 truncated messages are numbered; the lower 4 bits represent the number of truncation of the truncated message, and a frame of message can be truncated a maximum of 16 times.
[0018] Preferably, in step 3, after the ingress port receives the truncated part, it is spliced with the received part and then cached. When the ingress port receives the truncated second-highest priority message, it caches the message in the entry cache. Each port sets the cache queue depth of the ingress port according to the number of priority queues. When the ingress port receives the truncated message, it performs truncation check and reception identification.
[0019] Preferably, in step 3, a cache queue is set for each ingress port, the length of each cache entry is the maximum message length allowed to be transmitted, and the cache entry length is adjusted through setting.
[0020] A second aspect of the present invention provides a system for quickly sending a time-sensitive message, which is used to run a method for quickly sending a time-sensitive message, including:
[0021] The message sending and truncation module is used for the device egress port to send messages according to the message priority. When the low-priority message is sent at the device egress port, the high-priority message arrives at the egress port and preempts the device egress port as a preempted message. The truncated sent part of the low-priority message is used as a truncated message, thereby obtaining a truncated message and a preempted message.
[0022] The message preemption transmission module is used to add a truncation mark and a check code at the truncation position of the truncated message, process the preemption message according to whether the message is sent without gaps, and obtain the processed truncated message and the processed preemption message;
[0023] A message cache module is used to cache the received processed truncated message at the ingress port after determining that the received processed truncated message is a truncated message. When the truncated part of the low-priority message arrives at the ingress port, it is spliced with the cached processed truncated message and cached at the ingress port to obtain a cached complete low-priority message;
[0024] The message splicing and sending module is used for the ingress port to determine that the received processed preempted message is a complete message, and then send the complete high priority message and the cached complete low priority message in descending order of priority, so as to obtain a complete high priority message and a complete low priority message, thereby realizing the rapid sending of time-sensitive messages.
[0025] The beneficial effects of the present invention are as follows:
[0026] The present invention provides a method for quickly sending time-sensitive messages, which solves the problem that service messages with low real-time requirements occupy network transmission resources in the scenario of power business shared network transmission, resulting in service messages with high real-time requirements, thereby causing high real-time services to be unable to respond quickly;
[0027] The present invention provides two preemption modes. One is a preemption mode with frame gap, but it is not limited by the minimum Ethernet message length. Messages with high real-time requirements can be sent more quickly, reducing the transmission time. The other is a preemption mode without frame gap. In this mode, two bytes of preemption representation are inserted between the preemption frame and the preempted frame to isolate the two frames of messages. The preemption frame is sent more quickly, and the transmission time is further reduced. By preempting the non-real-time service message transmission mode, the real-time service message is preferentially transmitted to the receiving side, which reduces the transmission time of the real-time service on the network, thereby improving the response speed of the real-time service, and then improving the overall reliability of the power system. The message has high real-time performance, and two different preemption modes can be selected according to different scenarios.
[0028] The method of the present invention is applicable to the scenario where real-time services and non-real-time services are transmitted on the same network, which reduces the number of networks while ensuring the real-time transmission of real-time services, and has strong scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic diagram of the message preemption mechanism transmission process in the present invention.
[0030] Figure 2 It is a schematic diagram of the message structure before and after the message is sent and truncated in the present invention.
[0031] Figure 3 It is a schematic diagram of gapless transmission of truncated messages and preempted messages in the present invention.
[0032] Figure 4 It is a schematic diagram of the intermittent transmission of the truncated message and the preempted message in the present invention.
[0033] Figure 5 This is another schematic diagram of the intermittent transmission of the truncated message and the preempted message in the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0035] The embodiments described in this application are only some embodiments of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the protection scope of the present invention.
[0036] Example 1
[0037] Embodiment 1 of the present invention provides a method for quickly sending a time-sensitive message, which is also applicable to wireless network scenarios and specifically includes:
[0038] Step 1: The device egress port sends messages according to the message priority. When a low-priority message is sent at the device egress port, a high-priority message that arrives at the egress port preempts the device egress port as a preempted message, and the truncated sent part of the low-priority message is used as a truncated message, thereby obtaining a truncated message and a preempted message.
[0039] The message can be in Ethernet frame format or in a custom format. The message length should be greater than 16 bytes.
[0040] Step 2: Add a truncation mark and a check code at the truncation position of the truncation message in step 1, process the preemption message according to whether the message is sent without gaps, and obtain a processed truncation message and a processed preemption message;
[0041] The device sends messages according to the message priority at the egress port. When a message is being sent, a message with a higher priority than the current message will preempt the egress port for message sending.
[0042] The egress port can be preempted multiple times when sending the same frame of low-priority messages, and the ingress port receives the truncated message and splices it with the received part and caches it. When a higher-priority message arrives at the egress port, the egress port will continue to be preempted.
[0043] The truncation flag is represented by 4 bytes, and the contents of the four bytes are {0xEB, 0xEB, 0xBE, truncation sequence number} in sequence. It can be set according to the usage scenario, and the meaning of each byte can also be redefined through settings.
[0044] The check code contains 2 bytes, which is the message check code of the sent message part plus the truncated identifier part. CRC check is performed on all bytes of the message content sent before this truncation. The check code algorithm of the outbound port is consistent with the check code algorithm of the inbound port.
[0045] For high-priority messages, you can decide whether to send the truncated messages without gaps by setting them. When set to send without gaps, there is no frame gap, preamble, and other information between the preemption message and the truncated message. When the preemption message is sent without gaps, a 2-byte gapless sending identifier is inserted before the preemption message is sent to identify the preemption message. The contents of the two bytes are {0xEB, 0xEB} in sequence. It can be set according to the usage scenario. The meaning of each byte can also be redefined by setting. The preemption message sends the preamble and delimiter before sending the preemption frame. The preamble and delimiter are used to distinguish the two frames.
[0046] When it is set to non-immediate transmission, there is a true gap, preamble and other information between the forward-looking message and the truncated message. Before sending the preemption frame, first ensure that there is enough frame gap between the two frames, and then send the preamble, delimiter, message content, etc. in sequence.
[0047] Step 3: After the ingress port determines that the truncated message received after the processing in step 2 is a truncated message, it is cached at the ingress port. When the truncated part of the low-priority message arrives at the ingress port, it is spliced with the cached truncated message after processing and cached at the ingress port to obtain the cached complete low-priority message;
[0048] When the message received by the ingress port of the device is a truncated message, the message is cached in the ingress port cache, and the message is spliced when the truncated part of the message arrives; the cached message is cached in sequence according to the frame sequence number provided in the truncation identifier.
[0049] When the ingress port receives a truncated second-highest priority message, it caches the message in the ingress port cache. Each port sets the cache queue depth of the ingress port according to the number of priority queues. The truncated message adds a truncation mark and a check code at the truncation point. When the ingress port receives the truncated message, it performs truncation check and reception correctness identification.
[0050] A cache queue is set for each inbound port. The length of each cache entry is the maximum message length allowed to be transmitted. The cache entry length can be adjusted through settings.
[0051] The truncation sequence number is represented by 1 byte. The upper 4 bits represent the number of the truncated message, which can be a maximum of 16 truncated messages. The lower 4 bits represent the number of truncation times of the truncated message, and a frame of message can be truncated a maximum of 16 times.
[0052] Step 4, after the ingress port determines that the received preempted message processed in step 2 is a complete message, the complete high priority message and the complete low priority message cached in step 3 are sent in order of priority from high to low, to obtain a complete high priority message and a complete low priority message, thereby achieving rapid sending of time-sensitive messages.
[0053] The ingress port receives a complete message, calculates the checksum normally and compares them. If they are the same, they are forwarded directly; if they are different, the message is discarded.
[0054] After receiving the truncated message, the ingress port identifies the truncated message identifier, recalculates the check code of the message and compares it with the check code at the end of the message. If they are different, they are directly discarded. If they are the same, the truncation sequence number in the truncation identifier is further identified. If it is 1, it means the first truncation. This part of the message is cached in the ingress port queue and the number of truncation times is recorded. If it is not 1, the corresponding position of the cache queue is searched to see if there is a previous message required. If there is and it is continuous, this part of the message is cached in the ingress port queue to determine whether the message is complete. If it is complete, it enters the forwarding link. If it is incomplete, it continues to be cached and waits for the remaining part of the message.
[0055] The beneficial effect of the present invention is that the present invention provides a method for quickly sending time-sensitive messages, which solves the problem that service messages with low real-time requirements occupy network transmission resources in the scenario of power business shared network transmission, resulting in service messages with high real-time requirements, thereby causing high real-time services to be unable to respond quickly;
[0056] The present invention provides two preemption modes. One is a preemption mode with frame gap, but it is not limited by the minimum Ethernet message length. Messages with high real-time requirements can be sent more quickly, reducing the transmission time. The other is a preemption mode without frame gap. In this mode, two bytes of preemption representation are inserted between the preemption frame and the preempted frame to isolate the two frames of messages. The preemption frame is sent more quickly, and the transmission time is further reduced. By preempting the non-real-time service message transmission mode, the real-time service message is preferentially transmitted to the receiving side, which reduces the transmission time of the real-time service on the network, thereby improving the response speed of the real-time service, and then improving the overall reliability of the power system. The message has high real-time performance, and two different preemption modes can be selected according to different scenarios.
[0057] The method of the present invention is applicable to the scenario where real-time services and non-real-time services are transmitted on the same network, which reduces the number of networks while ensuring the real-time transmission of real-time services, and has strong scalability.
[0058] Example 2
[0059] Embodiment 2 of the present invention provides a system for quickly sending a time-sensitive message, which is used to run the method for quickly sending a time-sensitive message described in embodiment 1, including:
[0060] The message sending and truncation module is used for the device egress port to send messages according to the message priority. When the low-priority message is sent at the device egress port, the high-priority message arrives at the egress port and preempts the device egress port as a preempted message. The truncated sent part of the low-priority message is used as a truncated message, thereby obtaining a truncated message and a preempted message.
[0061] The message preemption transmission module is used to add a truncation mark and a check code at the truncation position of the truncated message, process the preemption message according to whether the message is sent without gaps, and obtain the processed truncated message and the processed preemption message;
[0062] A message cache module is used to cache the received processed truncated message at the ingress port after determining that the received processed truncated message is a truncated message. When the truncated part of the low-priority message arrives at the ingress port, it is spliced with the cached processed truncated message and cached at the ingress port to obtain a cached complete low-priority message;
[0063] The message splicing and sending module is used for the ingress port to determine that the received processed preempted message is a complete message, and then send the complete high priority message and the cached complete low priority message in descending order of priority, so as to obtain a complete high priority message and a complete low priority message, thereby realizing the rapid sending of time-sensitive messages.
[0064] Example 3
[0065] Figure 1 A message preemption sending process embodiment 3 is given. First, the device 1 outlet successively receives 3 frames of messages with different priorities. The priority relationship of the three frames of messages is: priority 1 < priority 2 < priority 3. The message with priority 1 enters the sending stage because it arrives the earliest and there are no other messages to be sent at the egress port.
[0066] Device 1 output port:
[0067] During the process of sending the message of priority 1, the message of priority 2 arrives at the egress port of device 1. Since the priority of the message of priority 2 is higher than that of the message of priority 1, the sending of the message of priority 1 is preempted. The remaining part of the message of priority 1 will continue to be cached by the egress port and wait for sending. The tail of the sent message part of the message of priority 1 is connected with the truncation identifier and the check code field. Because it is the first time that the first frame is truncated, the truncation identifier is filled with {0xEB, 0xEB, 0xBE, 0x11}. The check code is the message check code of the sent message part plus the truncation identifier part, which can be calculated by CRC. The check code algorithm on the sending side is consistent with the check code algorithm on the receiving side.
[0068] The message is truncated before and after Figure 2 As shown in the figure, the message before truncation is complete, and the message contains the leading code + delimiter, destination address, source address, data and check code. After truncation, the unsent message contains the source address, data and check code, and the truncated message contains the leading code + delimiter, destination address, truncation identifier and check code. The message of priority 2 can be used after the truncation identifier and check code inserted in the message of priority 1 are sent. Figure 3-Figure 5 The message is preemptively transmitted in this way. Figure 3 and Figure 4 Indicates that there is no gap between two frames. Figure 5 Indicates that there is a gap between two frames.
[0069] Figure 3 The method is that the priority 2 message is sent immediately after the priority 1 message. A 2-byte preemption frame identifier is inserted before sending to distinguish the two frames. The identifier value is {0xEB, 0xEB}. At this time, the preemption message contains the identifier and the destination address, and the truncated message contains the check code.
[0070] Figure 4The method is that the priority 2 message is not sent immediately after the priority 1 message. The preamble and delimiter are sent before sending the preemption frame. The preamble and delimiter are used to distinguish the two frames.
[0071] Figure 5 The method is that the priority 2 message is not sent immediately after the priority 1 message. Before sending the preemption frame, it is first ensured that there is enough frame gap between the two frames, and then the preamble, delimiter, message content, etc. are sent in sequence.
[0072] During the transmission of the priority 2 message, the priority 3 message arrives at the output port of device 1, and the priority 2 message will be truncated. Similarly, the remaining portion of the priority 2 message will continue to be cached at the output port, and the tail of the transmitted portion of the priority 2 message is connected to the truncation identifier and check code field. Because it is the first time that the second frame is truncated, the truncation identifier is filled with {0xEB, 0xEB, 0xBE, 0x21}. The check code is the message check code of the transmitted message part plus the truncation identifier part. The priority 3 message can be used after the truncation identifier and check code inserted in the priority 2 message are sent. Figure 3-Figure 5 The message is preemptively transmitted in this way.
[0073] After waiting for the message of priority 3 to be sent, the message of priority 2 enters the egress port for sending, and then the message of priority 1 enters the egress port for sending, and finally the sending of the messages of three priorities is completed.
[0074] Device 2 input port:
[0075] After receiving the truncated message of priority 1, the ingress port of device 2 identifies the truncated message identifier, recalculates the check code of the message and compares it with the check code at the end of the message. If they are different, they are directly discarded. If they are the same, the truncation sequence number in the truncation identifier is further identified. If it is 1, it indicates the first truncation. This part of the message is cached in the ingress port queue and the number of truncations is recorded. The cached messages are cached in order according to the frame sequence number provided in the truncation identifier. The truncated message of priority 1 will be cached in the first entry of the ingress port cache queue.
[0076] After receiving the truncated message of priority 2, the ingress port of device 2 identifies the truncated message identifier, recalculates the check code of the message and compares it with the check code at the end of the message. If they are different, they are directly discarded. If they are the same, they continue to identify the truncation sequence number in the truncation identifier. If it is 1, it means the first truncation. This part of the message is cached in the ingress port queue and the number of truncations is recorded. The cached messages are cached in order according to the frame sequence number provided in the truncation identifier. The truncated message of priority 2 will be cached in the second entry of the ingress port cache queue.
[0077] Device 2 receives a complete message with priority 3 at its ingress port. It calculates the checksums and compares them normally. If they are the same, it forwards the message directly. If they are different, it discards the message.
[0078] After receiving the truncated message of priority 2, the ingress port of device 2 identifies the truncated message identifier, recalculates the check code of the message and compares it with the check code at the end of the message. If they are different, they are directly discarded. If they are the same, the truncation sequence number in the truncation identifier is further identified. If it is not 1, the corresponding position of the cache queue is searched to see whether there is a previous message required. If there is and it is continuous, this part of the message is cached in the ingress port queue, and it is determined whether the message is complete. If it is complete, it enters the forwarding link. If it is incomplete, it continues to be cached and waits for the remaining part of the message.
[0079] After receiving the truncated message of priority 1, the ingress port of device 2 identifies the truncated message identifier, recalculates the check code of the message and compares it with the check code at the end of the message. If they are different, they are directly discarded. If they are the same, the truncation sequence number in the truncation identifier is further identified. If it is not 1, the corresponding position of the cache queue is searched to see whether there is a previous message required. If there is and it is continuous, the part of the message is cached in the ingress port queue, and it is determined whether the message is complete. If it is complete, it enters the forwarding link. If it is incomplete, it continues to be cached and waits for the remaining part of the message.
[0080] The ingress port of device 2 completes the reception of three frames of messages with different priorities.
[0081] Device 2 output port:
[0082] The outbound port of device 2 sends the message of priority 3, the message of priority 2, and the message of priority 1 in order.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for quickly sending time-sensitive messages, characterized in that: The following steps are involved: The device egress port sends messages according to the message priority. When a low-priority message is sent at the device egress port, a high-priority message that arrives at the egress port preempts the device egress port as a preempted message, and the truncated sent part of the low-priority message is used as a truncated message, thereby obtaining a truncated message and a preempted message. A truncation mark and a check code are added at the truncation position of the truncation message, and the preemption message is processed according to whether the message is sent without gaps, so as to obtain a processed truncation message and a processed preemption message; After the ingress port determines that the received processed truncated message is a truncated message, it is cached at the ingress port. When the truncated part of the low-priority message arrives at the ingress port, it is spliced with the cached processed truncated message and cached at the ingress port to obtain the cached complete low-priority message; After the ingress port determines that the received processed preempted message is a complete message, it sends the complete high priority message and the cached complete low priority message in descending order of priority, obtains a complete high priority message and a complete low priority message, and realizes the rapid sending of time-sensitive messages.
2. The method for quickly sending a time-sensitive message according to claim 1, characterized in that: The message includes Ethernet frame format message and user-defined format message, and the message length is greater than 16 bytes.
3. The method for quickly sending a time-sensitive message according to claim 1, characterized in that: The egress port sends a low-priority message of the same frame. When a higher-priority message arrives at the egress port, the egress port will continue to be preempted.
4. The method for quickly sending a time-sensitive message according to claim 1, characterized in that: Whether the high-priority message is set to be sent without gaps with the truncated message. The high-priority message is used as a preemption message. When it is set to be sent without gaps, the information between the preemption message and the truncated message does not include the frame gap and the preamble code; when it is set to be sent with gaps, the information between the preemption message and the truncated message includes the frame gap and the preamble code.
5. The method for quickly sending a time-sensitive message according to claim 4, characterized in that: When the preemption message is sent without gaps, a 2-byte gapless sending identifier is inserted before the preemption message is sent to identify the preemption message. The contents of the two bytes are 0xEB and 0xEB respectively.
6. The method for quickly sending a time-sensitive message according to claim 1, characterized in that: The truncation flag is represented by 4 bytes, and the contents of the 4 bytes are 0xEB, 0xEB, 0xBE and the truncation sequence number in sequence; The check code contains 2 bytes, and CRC check is performed on all bytes of the message content sent before truncation.
7. The method for quickly sending a time-sensitive message according to claim 6, characterized in that: The truncation sequence number is represented by 1 byte. The upper 4 bits represent the number of the truncated message, and a maximum of 16 truncated messages are numbered; the lower 4 bits represent the number of truncation times of the truncated message, and a frame of message can be truncated a maximum of 16 times.
8. The method for quickly sending a time-sensitive message according to claim 1, characterized in that: After receiving the truncated part, the ingress port will splice it with the received part and cache it. When the ingress port receives the truncated second-highest priority message, it will cache the message in the ingress cache. Each port sets the cache queue depth of the ingress port according to the number of priority queues. When the ingress port receives the truncated message, it will perform truncation check and reception identification.
9. The method for quickly sending a time-sensitive message according to claim 1, characterized in that: A cache queue is set for each ingress port. The length of each cache entry is the maximum message length allowed to be transmitted. The cache entry length is adjusted through settings.
10. A system for rapidly sending a time-sensitive message, used for running a method for rapidly sending a time-sensitive message according to any one of claims 1 to 9, characterized in that: include: The message sending and truncation module is used for the device egress port to send messages according to the message priority. When the low-priority message is sent at the device egress port, the high-priority message arrives at the egress port and preempts the device egress port as a preempted message. The truncated sent part of the low-priority message is used as a truncated message, thereby obtaining a truncated message and a preempted message. The message preemption transmission module is used to add a truncation mark and a check code at the truncation position of the truncated message, process the preemption message according to whether the message is sent without gaps, and obtain the processed truncated message and the processed preemption message; A message cache module is used to cache the received processed truncated message at the ingress port after determining that the received processed truncated message is a truncated message. When the truncated part of the low-priority message arrives at the ingress port, it is spliced with the cached processed truncated message and cached at the ingress port to obtain a cached complete low-priority message; The message splicing and sending module is used for the ingress port to determine that the received processed preempted message is a complete message, and then send the complete high priority message and the cached complete low priority message in descending order of priority, so as to obtain a complete high priority message and a complete low priority message, thereby realizing the rapid sending of time-sensitive messages.
Citation Information
Patent Citations
An Ethernet controller
CN116668376B
Time-sensitive network data transmission system and transmission method
CN112105080A
Ethernet controller
CN116668376A
Communication method and communication device
CN116938494A
Method and system for rapidly transmitting ECN congestion information
CN119011476A