Frame preemption method, transmitting device and receiving device for transmitting node and receiving node in time-sensitive network

Through loose frame preemption mode and shard length adjustment, the problem of high-speed frame preemption in the prior art sacrifices the preemption frame delay, and the guarantee of preemption frame delay and network efficiency are achieved.

CN120389835AActive Publication Date: 2025-07-29BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD

Patent Information

Application Number
CN202510873333.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-07-29
Estimated Expiration
2045-06-27

AI Technical Summary

Technical Problem

Although frame preemption technology in existing time-sensitive networks can ensure the delay of high-speed frames, it usually cannot meet the inherent delay requirements of preemptive frames at the expense of preemptive frames.

Method used

In a time-sensitive network, the sending node shards the preemptive frame through the loose frame preemption mode to determine whether the frame delay meets the requirements. If it is not met, adjust the default shard length to ensure that the delay of the preemptive frame and the medium-priority frame meets the requirements.

Benefits of technology

On the premise of ensuring the bounded delay of high-speed frames, the delay requirements for preemptable frames are met, network transmission efficiency is improved, and bandwidth insufficient or delay loss caused by service mixing is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120389835A_ABST
    Figure CN120389835A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of time-sensitive networks, in particular to a frame preemption method for a sending node and a receiving node in a time-sensitive network, sending equipment and receiving equipment. The frame preemption method comprises the following steps: when a current to-be-transmitted frame is a middle-priority frame and a currently-transmitted frame capable of being preempted meets a first frame preemption condition, performing frame preemption transmission on the current frame capable of being preempted according to a frame preemption loose mode; judging whether the time delay of the current preemptable frame and the middle-priority frame meets a time delay requirement or not; if yes, fragmenting the subsequently transmitted preemptible frame with a default fragmentation length to perform frame preemption transmission; and if not, adjusting the default fragment length, and fragmenting the subsequently transmitted preemptible frame according to the adjusted default fragment length so as to perform frame preemptive transmission. According to the invention, on the premise of ensuring the time delay bounded property of the high-speed frame, the time delay bounded property of the preemptable frame is ensured, and the resource utilization rate and the network efficiency in the time-sensitive network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of time sensitive networks (TSNs), and in particular to a frame preemption method, a sending device, and a receiving device for a sending node and a receiving node in a time sensitive network. Background Art

[0002] With the rapid development of the Internet of Things and the Industrial Internet, more and more services are being integrated into networked systems. This trend forces time-critical traffic and general traffic to share system resources, placing higher demands on network real-time performance and stability. To address this, time-sensitive networking (TSN) has emerged. TSN enhances standard Ethernet by adding clock synchronization, time-aware scheduling, frame preemption, and seamless redundancy technologies to improve the real-time and reliability of network data transmission.

[0003] Currently, most research on frame preemption in time-sensitive networks (TSNs) focuses on its impact on end-to-end transmission latency. Analysis of existing frame preemption technologies and actual test results show that when preempting frames, the latency of high-speed frames can be guaranteed, however, this comes at the expense of the latency of standard frames. It is worth noting that in actual network communications, some preemptible frames, while not classified as high-speed frames, still have fixed latency requirements. Therefore, a new frame preemption method is urgently needed to ensure bounded latency for different frames. This means that the latency of preemptible frames should not be sacrificed in exchange for the latency of high-speed frames. It is necessary to ensure bounded latency for both high-speed frames and preemptible frames. Summary of the invention

[0004] In order to solve the problems in the related art, the embodiments of the present disclosure provide a frame preemption method, a sending device, and a receiving device for a sending node and a receiving node in a time-sensitive network.

[0005] In a first aspect, an embodiment of the present disclosure provides a frame preemption method for a sending node in a time-sensitive network, the time-sensitive network including a sending node and a receiving node, the method comprising: When determining that the current frame to be transmitted is a medium priority frame, determining whether the current preemptible frame being transmitted meets the first frame preemption condition, and if so, performing frame preemptive transmission on the current preemptible frame according to the frame preemption loose mode; The frame preemption loose mode includes: fragmenting the untransmitted part of the current preemptible frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the current preemptible frame. After transmitting the first fragment frame, transmit the medium-priority frame, and after the medium-priority frame is transmitted, transmit the remaining fragment frames. The first fragment frame includes: the transmitted part of the current preemptible frame and a part of the default fragment length at the beginning of the untransmitted part; Determine whether the delay of the current preemptible frame and the medium-priority frame meets the delay requirement. The delay requirement includes: the sum of the first transmission delay of the first fragment frame of the current preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragment frames of the current preemptible frame is less than or equal to the maximum delay of the preemptible frame, and the sum of the second transmission delay of the medium-priority frame and the waiting delay is less than or equal to the maximum delay of the medium-priority frame; If so, fragment the subsequent transmitted preemptible frames according to the default fragment length for frame preemption transmission; if not, adjust the default fragment length, and fragment the subsequent transmitted preemptible frames according to the adjusted default fragment length for frame preemption transmission.

[0006] According to an embodiment of the present disclosure, the first frame preemption condition includes: The untransmitted part of the currently transmitted current preemptible frame is greater than or equal to the sum of the default fragment length and the minimum frame length allowed by the transmission protocol; The total frame length of the currently transmitted current preemptible frame is greater than or equal to the minimum fragment frame length allowed by the transmission protocol.

[0007] According to an embodiment of the present disclosure, the method further includes, when the sending node determines that the currently to-be-transmitted frame is a medium-priority frame and the currently transmitted current preemptible frame does not meet the first frame preemption condition: If the untransmitted part of the current preemptible frame is less than or equal to the default fragment length, continue to transmit the current preemptible frame until it is transmitted completely, and then transmit the medium-priority frame; If the untransmitted part of the current preemptible frame is greater than the default fragment length, after transmitting the medium-priority frame, transmit the untransmitted part of the current preemptible frame.

[0008] According to an embodiment of the present disclosure, the adjusting the default fragment length includes: When the sum of the second transmission delay and the waiting delay is less than or equal to the maximum delay of the medium-priority frame, and the sum of the first transmission delay, the second transmission delay, and the third transmission delay is greater than the maximum delay of the preemptible frame, increase the default fragment length by a specified frame length; When the sum of the second transmission delay and the waiting delay is greater than the maximum delay of the medium-priority frame, reduce the default fragmentation length by a specified frame length.

[0009] According to an embodiment of the present disclosure: After increasing the default fragmentation length by a specified frame length, the sum of the waiting delay of the medium-priority frame and the second transmission delay is less than or equal to the maximum delay of the medium-priority frame; After reducing the default fragmentation length by a specified frame length, the sum of the first transmission delay, the second transmission delay, and the third transmission delay is less than or equal to the maximum delay of the preemptable frame.

[0010] According to an embodiment of the present disclosure, adjusting the default fragmentation length includes: Obtain a plurality of sample data, each sample data from two adjacent frame preemption using the frame preemption loose mode. The sample data includes: the default fragmentation length used in the first frame preemption of the two frame preemption using the frame preemption loose mode; the length and the first transmission delay of the first fragmented frame of the preemptable frame in the first frame preemption; the length, the second transmission delay, and the waiting delay of the medium-priority frame to be transmitted in the first frame preemption; the length and the third transmission delay of the remaining fragmented frames of the preemptable frame in the first frame preemption; the adjusted default fragmentation length used in the second frame preemption of the two frame preemption using the frame preemption loose mode, wherein the delays of the preemptable frame and the medium-priority frame in the first frame preemption do not meet the delay requirements, and the delays of the preemptable frame and the medium-priority frame in the second frame preemption meet the delay requirements; Input the sample data into a neural network model for training to obtain a fragmentation length adjustment model; Input the default fragmentation length used in the frame preemption using the frame preemption loose mode when the current frame to be transmitted is a medium-priority frame, the length and the first transmission delay of the first fragmented frame of the current preemptable frame, the length, the second transmission delay, and the waiting delay of the current frame to be transmitted, and the length and the third transmission delay of the remaining fragmented frames of the current preemptable frame into the fragmentation length adjustment model to obtain the default fragmentation length used in the frame preemption using the frame preemption loose mode when the next frame to be transmitted is a medium-priority frame, wherein the delay of the current frame to be transmitted does not meet the delay requirements.

[0011] According to an embodiment of the present disclosure, the method further includes: When the sending node determines that the current frame to be transmitted is a high-priority frame, determine whether the currently transmitted preemptable frame meets the second frame preemption condition. If so, perform frame preemption transmission on the current preemptable frame according to the frame preemption strict mode; The frame preemption strict mode includes: before transmitting the remaining part of the current preemptible frame, transmitting the high-priority frame, and after the transmission of the high-priority frame is completed, transmitting the remaining part of the current preemptible frame.

[0012] According to an embodiment of the present disclosure, the second frame preemption condition includes: The length of the remaining part of the currently transmitting preemptible frame is greater than or equal to the minimum frame length allowed by the transmission protocol; The total frame length of the currently transmitting preemptible frame is greater than or equal to the minimum fragmented frame length allowed by the transmission protocol.

[0013] According to an embodiment of the present disclosure, the method further includes: when the sending node determines that the currently to-be-transmitted frame is a high-priority frame and the currently transmitting preemptible frame does not meet the second frame preemption condition, continuing to transmit the currently transmitting preemptible frame until the transmission is completed, and then transmitting the high-priority frame.

[0014] According to an embodiment of the present disclosure, the sending node includes a preemption layer processing module and a preemptible layer processing module; The method further includes: The preemption layer processing module sends a preemption request to the preemptible layer processing module; The preemptible layer processing module receives the preemption request, and determines whether the currently transmitting preemptible frame meets the corresponding frame preemption condition according to the type of the currently to-be-transmitted frame; if so, it sends an allow preemption response to the preemption layer processing module; if not, it sends a reject preemption response to the preemption layer processing module, where the type of the currently to-be-transmitted frame includes medium-priority frames and high-priority frames.

[0015] According to an embodiment of the present disclosure, the method further includes: When the sending node determines that the currently to-be-transmitted frame is a medium-priority frame and the currently transmitting frame is a medium-priority frame or a high-priority frame, after the currently transmitting frame is transmitted, the currently to-be-transmitted frame is transmitted.

[0016] According to an embodiment of the present disclosure, when the sending node fragments the untransmitted part of the current preemptible frame according to the default fragmentation length, a cyclic redundancy code is appended to the end of the first fragment at the fragmentation position to obtain the first fragment frame of the current preemptible frame, and a preamble is appended to the beginning of the remaining fragments at the fragmentation position to obtain the remaining fragment frames of the current preemptible frame.

[0017] In a second aspect, an embodiment of the present disclosure provides a frame preemption method for a receiving node in a time-sensitive network, the time-sensitive network including a sending node and a receiving node, the method including: When it is determined at the sending node that the currently to-be-transmitted frame is a medium-priority frame, and the currently preemptable frame being transmitted meets the first frame preemption condition, and frame preemption transmission is performed on the currently preemptable frame according to the frame preemption loose mode, obtain the first transmission delay of the first fragmented frame of the currently preemptable frame being transmitted, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragmented frames of the currently preemptable frame, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node; Among them, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptable frame according to the default fragment length to obtain the first fragmented frame and the remaining fragmented frames of the currently preemptable frame, after transmitting the first fragmented frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragmented frames, and the first fragmented frame includes: the transmitted part of the currently preemptable frame, and a part of the default fragment length at the beginning of the untransmitted part.

[0018] According to an embodiment of the present disclosure, the receiving node sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node by sending a link layer protocol message to the sending node, where the link layer protocol message includes a delay field, and the first transmission delay, the second transmission delay, and the third transmission delay are encapsulated in the delay field.

[0019] According to an embodiment of the present disclosure: The first transmission delay is the time from when the sending node starts to send the first fragmented frame to when the receiving node finishes receiving the first fragmented frame; The second transmission delay is the time from when the sending node starts to send the medium-priority frame to when the receiving node finishes receiving the medium-priority frame; The third transmission delay is the time from when the sending node starts to send the remaining fragmented frames to when the receiving node finishes receiving the remaining fragmented frames.

[0020] In a third aspect, an embodiment of the present disclosure provides a sending device, including: The first frame preemption transmission module is configured to, when determining that the currently to-be-transmitted frame is a medium-priority frame, determine whether the currently preemptible frame being transmitted meets the first frame preemption condition. If so, perform frame preemption transmission on the currently preemptible frame according to the frame preemption loose mode; wherein, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptible frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptible frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames, and the first fragment frame includes: the transmitted part of the currently preemptible frame, and a part with the default fragment length at the beginning of the untransmitted part; The judgment and adjustment module is configured to judge whether the time delays of the currently preemptible frame and the medium-priority frame meet the time delay requirements; if so, fragment the subsequently transmitted preemptible frames with the default fragment length to perform frame preemption transmission; if not, adjust the default fragment length, and fragment the subsequently transmitted preemptible frames with the adjusted default fragment length to perform frame preemption transmission; Wherein, the time delay requirements include: the sum of the first transmission time delay of the first fragment frame of the currently preemptible frame, the second transmission time delay of the medium-priority frame, and the third transmission time delay of the remaining fragment frames of the currently preemptible frame is less than or equal to the maximum time delay of the preemptible frame, and the sum of the second transmission time delay of the medium-priority frame and the waiting time delay is less than or equal to the maximum time delay of the medium-priority frame.

[0021] According to an embodiment of the present disclosure, the first frame preemption transmission module is further configured to: When determining that the currently to-be-transmitted frame is a medium-priority frame and the currently preemptible frame being transmitted does not meet the first frame preemption condition: If the untransmitted part of the currently preemptible frame is less than or equal to the default fragment length, continue to transmit the currently preemptible frame until it is transmitted completely, and then transmit the medium-priority frame; If the untransmitted part of the currently preemptible frame is greater than the default fragment length, after transmitting the medium-priority frame, transmit the untransmitted part of the currently preemptible frame.

[0022] According to an embodiment of the present disclosure, the device further includes a second frame preemption transmission module; the second frame preemption transmission module is configured to: When determining that the currently to-be-transmitted frame is a high-priority frame, determine whether the currently preemptible frame being transmitted meets the second frame preemption condition. If so, perform frame preemption transmission on the currently preemptible frame according to the frame preemption strict mode; The frame preemption strict mode includes: before transmitting the remaining part of the current preemptible frame, transmitting the high-priority frame, and after the transmission of the high-priority frame is completed, transmitting the remaining part of the current preemptible frame.

[0023] In a fourth aspect, an embodiment of the present disclosure provides a receiving device, including: An obtaining module, configured to obtain a first transmission delay of a first fragment frame of the currently preemptible frame being transmitted, a second transmission delay of the medium-priority frame, and a third transmission delay of the remaining fragment frames of the currently preemptible frame when a sending node determines that the currently to-be-transmitted frame is a medium-priority frame, the currently preemptible frame being transmitted satisfies a first frame preemption condition, and frame preemption transmission is performed on the currently preemptible frame according to the frame preemption loose mode, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node; Wherein, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptible frame according to a default fragment length to obtain a first fragment frame and remaining fragment frames of the currently preemptible frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the transmission of the medium-priority frame is completed, transmitting the remaining fragment frames, the first fragment frame including: the transmitted part of the currently preemptible frame, and a part of the default fragment length at the beginning of the untransmitted part.

[0024] According to an embodiment of the present disclosure, the device further includes a message sending module; The message sending module is configured to send a link layer protocol message to the sending node to send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node, wherein the link layer protocol message includes a delay field, and the first transmission delay, the second transmission delay, and the third transmission delay are encapsulated in the delay field.

[0025] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the method according to any one of the first aspect or the second aspect.

[0026] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the method according to any one of the first aspect or the second aspect is implemented.

[0027] According to the technical solution provided by the embodiments of the present disclosure, when the current frame to be transmitted is a medium-priority frame and the currently preemptable frame being transmitted satisfies the first frame preemption condition, frame preemption transmission is performed on the currently preemptable frame according to the frame preemption loose mode; it is determined whether the delay of the currently preemptable frame and the medium-priority frame meets the delay requirement; if so, the preemptable frames to be transmitted subsequently are fragmented with the default fragmentation length for frame preemption transmission; if not, the default fragmentation length is adjusted, and the preemptable frames to be transmitted subsequently are fragmented with the adjusted default fragmentation length for frame preemption transmission.

[0028] The present disclosure can support the selection of different frame preemption modes, meet the delay requirements in different scenarios, can not only meet the strict requirements for delay in specific scenarios, but also ensure the delay of preemptable frames to a certain extent. By dynamically adjusting the slice message length, while ensuring the boundedness of the delay of high-speed frames, the boundedness of the delay of preemptable frames is also ensured, improving the network transmission efficiency in the time-sensitive network and avoiding the problems of "either insufficient bandwidth or out-of-control delay" caused by service mixing in the existing network.

[0029] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In combination with the accompanying drawings, through the following detailed description of non-limiting embodiments, other features, objects, and advantages of the present disclosure will become more obvious. In the drawings: Figure 1 A flowchart showing a frame preemption method for a sending node in a time-sensitive network according to an embodiment of the present disclosure; Figure 2 A schematic diagram showing frame preemption transmission of the currently preemptable frame according to the frame preemption loose mode in an embodiment of the present disclosure; Figure 3 A schematic diagram showing fragmentation of the currently preemptable frame when performing frame preemption transmission on the currently preemptable frame according to the frame preemption loose mode in an embodiment of the present disclosure; Figure 4 A schematic diagram showing different transmission delays when performing frame preemption transmission on the currently preemptable frame according to the frame preemption loose mode in an embodiment of the present disclosure; Figure 5 A schematic diagram showing a frame transmission when the current frame to be transmitted is a medium-priority frame and the currently preemptable frame does not satisfy the first frame preemption condition in an embodiment of the present disclosure; Figure 6 A schematic diagram showing another frame transmission when the current frame to be transmitted is a medium-priority frame and the currently preemptable frame does not satisfy the first frame preemption condition in an embodiment of the present disclosure; Figure 7Flowchart showing a frame preemption method for a receiving node in a time-sensitive network according to an embodiment of the present disclosure; Figure 8 Block diagram showing the structure of a transmitting device according to an embodiment of the present disclosure; Figure 9 Block diagram showing the structure of a receiving device according to an embodiment of the present disclosure; Figure 10 Flowchart showing a complete frame preemption method for a time-sensitive network according to an embodiment of the present disclosure. Detailed implementation manners

[0031] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for clarity, parts irrelevant to the description of the exemplary embodiments are omitted in the drawings.

[0032] In the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the presence of features, numbers, steps, actions, components, parts, or combinations thereof disclosed in this specification, and are not intended to exclude the possibility of the presence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof.

[0033] In addition, it should be noted that, without conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the drawings and in combination with the embodiments.

[0034] In the present disclosure, if it involves an operation of obtaining user information or user data or an operation of presenting user information or user data to others, the operation is an operation authorized, confirmed, or actively selected by the user.

[0035] As described above, although the existing frame preemption technology can ensure the delay of high-speed frames, it sacrifices the delay of ordinary frames (preemptible frames). After research, the inventors found that among many preemptible ordinary frames, some ordinary frames, although not belonging to the high-speed frame category, also have delay requirements, but the existing method cannot meet the delay requirements of such frames.

[0036] The present disclosure provides a frame preemption method for a sending node in a time-sensitive network, including: when determining that the currently to-be-transmitted frame is a medium-priority frame, determining whether the currently preemptable frame being transmitted meets the first frame preemption condition, and if so, performing frame preemption transmission on the currently preemptable frame according to the frame preemption loose mode; the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptable frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptable frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames, where the first fragment frame includes: the transmitted part of the currently preemptable frame, and a part of the default fragment length at the beginning of the untransmitted part; Determining whether the time delays of the currently preemptable frame and the medium-priority frame meet the time delay requirements, where the time delay requirements include: the sum of the first transmission time delay of the first fragment frame of the currently preemptable frame, the second transmission time delay of the medium-priority frame, and the third transmission time delay of the remaining fragment frames of the currently preemptable frame is less than or equal to the maximum preemptable frame time delay, and the sum of the second transmission time delay of the medium-priority frame and the waiting time delay is less than or equal to the maximum medium-priority frame time delay; if so, fragmenting the subsequent preemptable frames to be transmitted according to the default fragment length for frame preemption transmission; if not, adjusting the default fragment length and fragmenting the subsequent preemptable frames to be transmitted according to the adjusted default fragment length for frame preemption transmission.

[0037] The present disclosure can not only meet the strict requirements for time delay in specific scenarios, but also ensure the time delay of preemptable frames to a certain extent. On the premise of ensuring the boundedness of the time delay of high-speed frames, the boundedness of the time delay of preemptable frames is also ensured, improving the network transmission efficiency in the time-sensitive network and avoiding the problems of "either insufficient bandwidth or out-of-control delay" caused by service mixing in the existing network.

[0038] Figure 1 The flowchart of a frame preemption method for a sending node in a time-sensitive network according to an embodiment of the present disclosure is shown. As Figure 1 shown, the frame preemption method includes the following steps S101 to S103.

[0039] In the present disclosure, the time-sensitive network includes a sending node and a receiving node. Among them, the sending node and the receiving node can be any device with two-way data processing and transmission capabilities, such as a terminal device, a switch, a relay device, etc. And before performing preemption, it must be confirmed whether both ends of the transmission link (the sending node and the receiving node) support frame preemption. If either end does not support it, the frame preemption method cannot be enabled.

[0040] In step S101, when it is determined that the current frame to be transmitted is a medium-priority frame, it is judged whether the currently preemptable frame being transmitted meets the first frame preemption condition. If so, the currently preemptable frame is transmitted with frame preemption according to the frame preemption loose mode.

[0041] In the present disclosure, the sending node can map the message to be sent to a high-priority frame, a medium-priority frame, or a preemptable frame according to the priority policy configured by the user. Specifically, after the message to be sent arrives at the MAC layer (Media Access Control, medium access control sublayer), the sending node determines the type of the message to be sent according to the preconfigured priority rules, and then encapsulates the message as a high-priority frame, a medium-priority frame, or a preemptable frame according to the type of the message to be sent.

[0042] Specifically, the high-priority frame, medium-priority frame, and preemptable frame are divided in order of decreasing priority. High-priority frames and medium-priority frames are high-priority or low-latency critical traffic (such as real-time control signals), and can interrupt the currently preemptable frame being transmitted through the preemption mechanism for frame preemption transmission. Among them, high-priority frames and medium-priority frames must be transmitted completely during the transmission process and are not allowed to be interrupted or fragmented; while the preemptable frame can be fragmented during transmission to provide an immediate channel for the transmission of high-priority frames and medium-priority frames.

[0043] For example, high-priority frames and medium-priority frames can be eMAC frames (express MAC Frame, priority MAC frames), and preemptable frames can be pMAC frames (preemptable MAC Frame, preemptable MAC frames).

[0044] According to an embodiment of the present disclosure, the first frame preemption condition includes: the untransmitted part of the currently preemptable frame being transmitted is greater than or equal to the sum of the default fragmentation length and the minimum frame length allowed by the transmission protocol; the total frame length of the currently preemptable frame being transmitted is greater than or equal to the minimum fragmented frame length allowed by the transmission protocol.

[0045] Among them, the transmission protocol is a standard formulated based on the characteristics of the time-sensitive network to achieve transmission goals (such as ensuring low latency, high reliability, deterministic transmission, etc.). In the present disclosure, the minimum frame length allowed by the transmission protocol is the minimum frame length that a frame can be transmitted in the time-sensitive network, and the minimum fragmented frame length allowed by the transmission protocol is the minimum frame length that a preemptable frame is allowed to be sliced in the time-sensitive network. For example, in the IEEE Std 802.3br standard protocol, it is stipulated that the minimum frame length for transmission in the time-sensitive network shall not be less than 64 bytes, and the minimum frame length that a preemptable frame is allowed to be sliced shall not be less than 124 bytes.

[0046] Figure 2Schematic diagram showing frame preemption transmission of a current preemptable frame according to the frame preemption loose mode in an embodiment of the present disclosure.

[0047] As Figure 2 shown, the frame preemption loose mode includes: fragmenting the untransmitted part of the current preemptable frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the current preemptable frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames.

[0048] Wherein, when the sending node fragments the untransmitted part of the current preemptable frame according to the default fragment length, a cyclic redundancy code is appended to the end of the first fragment at the fragmentation position to obtain the first fragment frame of the current preemptable frame, and a preamble is appended to the beginning of the remaining fragments at the fragmentation position to obtain the remaining fragment frames of the current preemptable frame.

[0049] Specifically, when the sending node fragments the untransmitted part of the current preemptable frame, a cyclic redundancy (mCRC) code is appended to the end at the fragmentation position as a checksum, so that the obtained first fragment frame can be regarded as a complete Ethernet frame for transmission. After an inter-frame gap, the transmission of the medium-priority frame starts. After the medium-priority frame is transmitted, the corresponding preamble is added to the beginning of the remaining fragments of the current preemptable frame that were paused and then transmitted. The receiving node will judge the type of the frame according to the information parsed from the received frame. If a fragmented preemptable frame is detected, the first fragment frame and the remaining fragment frames are spliced in order to restore the original preemptable frame, and finally the reception and processing of the complete preemptable frame are completed.

[0050] In the present disclosure, high-priority frames, medium-priority frames, complete preemptable frames, and the first fragment frames obtained after the preemptable frame is fragmented all include a preamble field, a frame delimiter field, a payload field, and an FCS (Frame Check Sequence) field; the remaining fragment frames obtained after the preemptable frame is fragmented include a preamble field, a frame delimiter field, a fragment count field, a payload field, and an FCS field.

[0051] Among them, the meaning of the preamble field is the same as that of the preamble in the traditional Ethernet frame format, which plays a role in receiving synchronization. The frame delimiter field is used to identify the type of the frame and the sorting of the frames. The payload field carries the Ethernet frame format information of the message to be transmitted. For example, it can include the destination MAC address, source MAC, frame length, etc. The FCS field is used for the receiving node to check whether the received frame has errors during transmission. The fragment count field is used for the receiving node to detect whether the transmission of the fragmented frame is continuous on the transmission link.

[0052] Figure 3 A schematic diagram showing fragmentation of a current preemptable frame during frame preemptive transmission according to the frame preemptive loose mode in an embodiment of the present disclosure.

[0053] As Figure 3 shown, the first fragmented frame includes: the transmitted part of the current preemptable frame, and a part with a default fragmentation length at the beginning of the untransmitted part. The remaining fragmented frames include the part of the untransmitted part of the current preemptable frame except for the part with the default fragmentation length.

[0054] In step S102, it is determined whether the delays of the current preemptable frame and the medium-priority frame meet the delay requirements, where the delay requirements include: the sum of the first transmission delay of the first fragmented frame of the current preemptable frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragmented frames of the current preemptable frame is less than or equal to the maximum delay of the preemptable frame, and the sum of the second transmission delay of the medium-priority frame and the waiting delay is less than or equal to the maximum delay of the medium-priority frame. As Figure 4 shown.

[0055] In the present disclosure, the maximum delay of the preemptable frame is the maximum delay when the complete preemptable frame is received by the receiving node. If the preemptable frame is to meet the delay requirements, the sum of the first transmission delay, the second transmission delay, and the third transmission delay should be less than or equal to the maximum delay of the preemptable frame; the maximum delay of the medium-priority frame is the maximum delay when the medium-priority frame is received by the receiving node. If the medium-priority frame is to meet the delay condition, the sum of the second delay and the waiting delay should be less than or equal to the maximum delay of the medium-priority frame. Among them, the maximum delay of the preemptable frame and the maximum delay of the medium-priority frame can be set according to the transmission requirements of the frame.

[0056] In step S103, if so, the subsequent preemptable frames to be transmitted are fragmented with the default fragmentation length for frame preemptive transmission; if not, the default fragmentation length is adjusted, and the subsequent preemptable frames to be transmitted are fragmented with the adjusted default fragmentation length for frame preemptive transmission.

[0057] That is, when the delays of the current preemptable frame and the medium-priority frame meet the delay requirements, the subsequent preemptable frames to be transmitted can be fragmented with the default fragmentation length. When the delays of the current preemptable frame and the medium-priority frame do not meet the delay requirements, the default fragmentation length needs to be adjusted, and the subsequent preemptable frames to be transmitted are fragmented with the adjusted default fragmentation length for frame preemptive transmission.

[0058] The present disclosure adjusts the sliced packet length to ensure the boundedness of the delay of high-speed frames and the boundedness of the delay of preemptible frames, improving the resource utilization rate and network efficiency in a time-sensitive network, avoiding the problems of "either insufficient bandwidth or out-of-control delay" caused by service mixing in the existing network, and avoiding scheduling oscillations caused by "excessive preemption" of critical traffic, enabling non-critical traffic to obtain the lowest service guarantee.

[0059] The following uses two specific embodiments to illustrate the method of adjusting the default fragmentation length: In a specific embodiment, adjusting the default fragmentation length includes: When the sum of the second transmission delay and the waiting delay is less than or equal to the maximum delay of the medium-priority frame, and the sum of the first transmission delay, the second transmission delay, and the third transmission delay is greater than the maximum delay of the preemptible frame, increase the default fragmentation length by a specified frame length; when the sum of the second transmission delay and the waiting delay is greater than the maximum delay of the medium-priority frame, decrease the default fragmentation length by a specified frame length.

[0060] That is, when the sum of the second transmission delay and the waiting delay meets the delay requirement of the medium-priority frame, but the sum of the first transmission delay, the second transmission delay, and the third transmission delay does not meet the delay requirement of the preemptible frame, increase the default fragmentation length by a specified frame length. The specified frame length can be 4 bytes, 8 bytes, etc., so as to obtain the adjusted default fragmentation length.

[0061] When the sum of the second transmission delay and the waiting delay does not meet the delay requirement of the medium-priority frame, since the priority of the medium-priority frame is higher than that of the preemptible frame, at this time, there is no need to consider the delay requirement of the preemptible frame anymore, and directly decrease the default fragmentation length by a specified frame length to obtain the adjusted default fragmentation length.

[0062] According to an embodiment of the present disclosure, after increasing the default fragmentation length by a specified frame length, the sum of the waiting delay of the medium-priority frame and the second transmission delay is less than or equal to the maximum delay of the medium-priority frame.

[0063] According to an embodiment of the present disclosure, after decreasing the default fragmentation length by a specified frame length, the sum of the first transmission delay, the second transmission delay, and the third transmission delay is less than or equal to the maximum delay of the preemptible frame.

[0064] The present disclosure can adjust the default fragmentation length to ensure the boundedness of the delay of high-speed frames and preemptible frames at the same time. That is, although it sacrifices a part of the transmission delay of high-speed frames, it can greatly improve the transmission efficiency of preemptible frames, and at the same time ensure the delay requirements of medium-priority frames and preemptible frames, improving the network transmission efficiency of the time-sensitive network.

[0065] In another specific embodiment, adjusting the default shard length includes: Obtain multiple sample data, where each sample data comes from two adjacent frame pre-emptions using the loose frame pre-emption mode. The sample data includes: the default shard length used in the first frame pre-emption among the two frame pre-emptions using the loose frame pre-emption mode; the length and the first transmission delay of the first shard frame of the pre-emptable frame in the first frame pre-emption; the length, the second transmission delay, and the waiting delay of the medium-priority frame to be transmitted in the first frame pre-emption; the length and the third transmission delay of the remaining shard frames in the first frame pre-emption; the adjusted default shard length used in the second frame pre-emption among the two frame pre-emptions using the loose frame pre-emption mode, where the delays of the pre-emptable frame and the medium-priority frame in the first frame pre-emption do not meet the delay requirements, and the delays of the pre-emptable frame and the medium-priority frame in the second frame pre-emption meet the delay requirements; Input the sample data into a neural network model for training to obtain a shard length adjustment model; Input the default shard length used in the frame pre-emption using the loose frame pre-emption mode when the current frame to be transmitted is a medium-priority frame, the length and the first transmission delay of the first shard frame of the current pre-emptable frame, the length, the second transmission delay, and the waiting delay of the current frame to be transmitted, and the length and the third transmission delay of the remaining shard frames of the current pre-emptable frame into the shard length adjustment model to obtain the default shard length used in the frame pre-emption using the loose frame pre-emption mode when the next frame to be transmitted is a medium-priority frame, where the delay of the current frame to be transmitted does not meet the delay requirements.

[0066] That is, in this embodiment, the data accumulated during historical frame pre-emption transmissions using the loose frame pre-emption mode can be used as sample data and input into a neural network model for training to obtain a shard length adjustment model, so as to guide the default shard length used in the next medium-priority frame transmission. Among them, the sample data includes the data involved in two adjacent frame pre-emptions using the loose frame pre-emption mode, and the delays of the pre-emptable frame and the medium-priority frame in the first frame pre-emption do not meet the delay requirements, while the delays of the pre-emptable frame and the medium-priority frame in the second frame pre-emption meet the delay requirements. When performing frame pre-emption transmission on the current medium-priority frame to be transmitted using the loose frame pre-emption mode, input the corresponding data into the shard length adjustment model, and the default shard length used when the next frame to be transmitted is a medium-priority frame can be obtained.

[0067] The fragment length adjustment model obtained by the training of the present disclosure can, based on the sample data corresponding to the medium-priority frame to be currently transmitted, guide the default fragment length used for the next medium-priority frame to be transmitted, reduce the transmission delay of preemptible frames to a certain extent, improve the transmission efficiency of preemptible frames, and at the same time ensure the boundedness of the delays of medium-priority frames and preemptible frames.

[0068] According to an embodiment of the present disclosure, when the sending node determines that the currently to-be-transmitted frame is a medium-priority frame and the currently preemptible frame being transmitted does not meet the first frame preemption condition: If the untransmitted part of the currently preemptible frame is less than or equal to the default fragment length, continue to transmit the currently preemptible frame until transmission is completed, and then transmit the medium-priority frame.

[0069] Figure 5 FIG. shows a schematic diagram of a frame transmission in an embodiment of the present disclosure when the currently to-be-transmitted frame is a medium-priority frame and the currently preemptible frame does not meet the first frame preemption condition. As Figure 5 shown, when the untransmitted part is not greater than the default fragment length, the currently preemptible frame is not fragmented, but after the currently preemptible frame is transmitted, the medium-priority frame is transmitted.

[0070] If the untransmitted part of the currently preemptible frame is greater than the default fragment length, after transmitting the medium-priority frame, transmit the untransmitted part of the currently preemptible frame.

[0071] Figure 6 FIG. shows another schematic diagram of a frame transmission in an embodiment of the present disclosure when the currently to-be-transmitted frame is a medium-priority frame and the currently preemptible frame does not meet the first frame preemption condition. As Figure 6 shown, when the untransmitted part is greater than the default fragment length, slice the transmitted part, pause the transmission of the untransmitted part, first transmit the medium-priority frame, and after the medium-priority frame is transmitted, transmit the untransmitted part of the currently preemptible frame.

[0072] According to an embodiment of the present disclosure, when the sending node determines that the currently to-be-transmitted frame is a medium-priority frame and the frame being transmitted is a medium-priority frame or a high-priority frame, after the frame being transmitted is transmitted, then transmit the currently to-be-transmitted frame.

[0073] That is, when the currently transmitted frame is not a preemptible frame, the currently to-be-transmitted frame will be stored in the queuing system, and can only be transmitted after the medium-priority frame or high-priority frame being transmitted is transmitted.

[0074] According to an embodiment of the present disclosure, when the sending node determines that the currently to-be-transmitted frame is a high-priority frame, it determines whether the currently preemptable frame being transmitted meets the second frame preemption condition. If so, frame preemption transmission is performed on the currently preemptable frame according to the frame preemption strict mode.

[0075] Wherein, the frame preemption strict mode includes: before transmitting the remaining part of the currently preemptable frame, transmitting the high-priority frame, and after the high-priority frame is transmitted, transmitting the remaining part of the currently preemptable frame.

[0076] Specifically, when the currently preemptable frame being transmitted meets the second frame preemption condition, slicing is performed between the untransmitted part and the transmitted part of the currently preemptable frame, and the transmission of the untransmitted part of the currently preemptable frame is paused to transmit the to-be-transmitted high-priority frame. After the high-priority frame is transmitted, the remaining part of the currently preemptable frame is transmitted again.

[0077] In the present disclosure, the second frame preemption condition includes: the length of the remaining part of the currently preemptable frame being transmitted is greater than or equal to the minimum frame length allowed by the transmission protocol; the total frame length of the currently preemptable frame being transmitted is greater than or equal to the minimum fragmented frame length allowed by the transmission protocol.

[0078] Assume that the minimum frame length allowed by the transmission protocol is 64 bytes, and the minimum fragmented frame length allowed by the transmission protocol is 124 bytes. Then, the length of the remaining part of the currently preemptable frame being transmitted needs to be not less than 64 bytes, and the total frame length of the currently preemptable frame being transmitted is greater than or equal to 124 bytes.

[0079] According to an embodiment of the present disclosure, when the sending node determines that the currently to-be-transmitted frame is a high-priority frame and the currently preemptable frame being transmitted does not meet the second frame preemption condition, the currently preemptable frame is continuously transmitted until transmission is completed, and then the high-priority frame is transmitted.

[0080] That is, when the length of the remaining part of the currently preemptable frame being transmitted is less than the minimum frame length allowed by the transmission protocol, and / or the total frame length of the currently preemptable frame being transmitted is less than the minimum fragmented frame length allowed by the transmission protocol, the currently preemptable frame is not allowed to be sliced. At this time, the remaining part of the currently preemptable frame is continuously transmitted until transmission is completed, and then the high-priority frame is transmitted.

[0081] According to an embodiment of the present disclosure, the sending node includes a preemption layer processing module and a preemptable layer processing module.

[0082] Among them, the preemption layer processing module sends a preemption request to the preemptible layer processing module. The preemptible layer processing module receives the preemption request and determines whether the currently preemptible frame being transmitted meets the corresponding frame preemption condition according to the type of the currently to-be-transmitted frame; if so, it sends an allow preemption response to the preemption layer processing module; if not, it sends a reject preemption response to the preemption layer processing module, where the type of the currently to-be-transmitted frame includes medium-priority frames and high-priority frames.

[0083] Specifically, after a high-priority frame or a medium-priority frame to be currently transmitted arrives at the preemption layer, the preemption layer processing module sends a preemption request to the preemptible layer processing module. The preemptible layer processing module then determines whether the currently preemptible frame meets the first or second frame preemption condition according to the type of the currently to-be-transmitted frame; and thus sends an allow preemption response or a reject preemption response to the preemption layer processing module.

[0084] Figure 7 The flowchart of a frame preemption method for a receiving node in a time-sensitive network according to an embodiment of the present disclosure is shown.

[0085] As Figure 7 shown, the method includes step S701.

[0086] The time-sensitive network includes a sending node and a receiving node.

[0087] In step S701, when the sending node determines that the currently to-be-transmitted frame is a medium-priority frame, and the currently preemptible frame being transmitted meets the first frame preemption condition, and performs frame preemption transmission on the currently preemptible frame according to the frame preemption loose mode, the first transmission delay of the first fragment frame of the currently preemptible frame being transmitted, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragment frames of the currently preemptible frame are obtained, and the first transmission delay, the second transmission delay, and the third transmission delay are sent to the sending node.

[0088] Among them, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptible frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptible frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames, where the first fragment frame includes: the transmitted part of the currently preemptible frame, and a part of the default fragment length at the beginning of the untransmitted part.

[0089] According to an embodiment of the present disclosure, the receiving node sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node by sending a link layer protocol message to the sending node, where the link layer protocol message includes a delay field, and the first transmission delay, the second transmission delay, and the third transmission delay are encapsulated in the delay field.

[0090] The receiving node of the present disclosure encapsulates the obtained first transmission delay, second transmission delay, and third transmission delay in the delay field of the link layer protocol message, so that the sending node can obtain the first transmission delay, second transmission delay, and third transmission delay by parsing the delay field of the link layer protocol message.

[0091] Specifically, the first transmission delay is the time from when the sending node starts to send the first fragmented frame to when the receiving node finishes receiving the first fragmented frame.

[0092] The second transmission delay is the time from when the sending node starts to send the medium-priority frame to when the receiving node finishes receiving the medium-priority frame.

[0093] The third transmission delay is the time from when the sending node starts to send the remaining fragmented frames to when the receiving node finishes receiving the remaining fragmented frames.

[0094] In the present disclosure, in addition to the sending node and the receiving node, the time-sensitive network may further include one or more relay nodes. Then, the first transmission delay, the second transmission delay, and the third transmission delay may all include the residence time of the transmitted frame on different relay nodes. Specifically, the difference between the timestamp information obtained when the receiving port of the relay node receives the frame and the timestamp information obtained when the corresponding frame is sent from the sending port of the relay node is the residence time of the corresponding frame on the relay node.

[0095] The present disclosure can not only meet the strict requirements for delay in specific scenarios, but also ensure the delay of preemptible frames to a certain extent. It avoids the scheduling oscillation caused by the "excessive preemption" of critical traffic for preemptible frames, and improves the network transmission efficiency in the time-sensitive network.

[0096] Figure 8 The structural block diagram of a sending device according to an embodiment of the present disclosure is shown.

[0097] As Figure 8 shown, the sending device 800 includes a first frame preemption transmission module 810, a judgment and adjustment module 820, and a second frame preemption transmission module 830.

[0098] The first frame preemption transmission module 810 is configured to, when determining that the currently to-be-transmitted frame is a medium-priority frame, determine whether the currently preemptable frame being transmitted meets the first frame preemption condition. If so, perform frame preemption transmission on the currently preemptable frame according to the frame preemption loose mode; wherein, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptable frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptable frame, transmitting the first fragment frame, then transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames. The first fragment frame includes: the transmitted part of the currently preemptable frame and a part with the default fragment length at the beginning of the untransmitted part.

[0099] The judgment and adjustment module 820 is configured to determine whether the transmission delays of the currently preemptable frame and the medium-priority frame meet the delay requirements; if so, perform frame preemption transmission by fragmenting the subsequently transmitted preemptable frames with the default fragment length; if not, adjust the default fragment length and perform frame preemption transmission by fragmenting the subsequently transmitted preemptable frames with the adjusted default fragment length.

[0100] Wherein, the delay requirements include: the sum of the first transmission delay of the first fragment frame of the currently preemptable frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragment frames of the currently preemptable frame is less than or equal to the maximum preemptable frame delay, and the sum of the second transmission delay of the medium-priority frame and the waiting delay is less than or equal to the maximum medium-priority frame delay.

[0101] The second frame preemption transmission module 830 is configured to: when determining that the currently to-be-transmitted frame is a high-priority frame, determine whether the currently preemptable frame being transmitted meets the second frame preemption condition. If so, perform frame preemption transmission on the currently preemptable frame according to the frame preemption strict mode; the frame preemption strict mode includes: transmitting the high-priority frame before transmitting the remaining part of the currently preemptable frame, and after the high-priority frame is transmitted, transmitting the remaining part of the currently preemptable frame.

[0102] According to an embodiment of the present disclosure, the first frame preemption transmission module is further configured to: When determining that the currently to-be-transmitted frame is a medium-priority frame and the currently preemptable frame being transmitted does not meet the first frame preemption condition: if the untransmitted part of the currently preemptable frame is less than or equal to the default fragment length, continue to transmit the currently preemptable frame until it is transmitted completely, and then transmit the medium-priority frame; if the untransmitted part of the currently preemptable frame is greater than the default fragment length, transmit the untransmitted part of the currently preemptable frame after transmitting the medium-priority frame.

[0103] The present disclosure can perform selection of frame preemption modes, including frame preemption loose mode and frame preemption strict mode, meeting the requirements for frame delay in different scenarios.

[0104] Figure 9 The structural block diagram of a receiving device according to an embodiment of the present disclosure is shown.

[0105] As Figure 9 shown, the receiving device 900 includes an acquisition module 910 and a packet sending module 920.

[0106] The acquisition module 910 is configured to, when the sending node determines that the currently to-be-transmitted frame is a medium-priority frame, and the currently preemptable frame being transmitted meets the first frame preemption condition, and performs frame preemption transmission on the currently preemptable frame according to the frame preemption loose mode, acquire the first transmission delay of the first fragment frame of the currently preemptable frame being transmitted, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragment frames of the currently preemptable frame, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node.

[0107] Among them, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptable frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptable frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames, and the first fragment frame includes: the transmitted part of the currently preemptable frame, and a part of the default fragment length at the beginning of the untransmitted part.

[0108] The packet sending module 920 is configured to send a link layer protocol packet to the sending node to send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node, where the link layer protocol packet includes a delay field, and the first transmission delay, the second transmission delay, and the third transmission delay are encapsulated in the delay field.

[0109] The present disclosure can enable the sending node (sending device) to conveniently obtain transmission delay information, so as to judge whether frame preemption transmission can be performed according to the frame preemption loose mode based on the delay information, improving network transmission efficiency.

[0110] Next, a specific embodiment is used to illustrate the frame preemption method of the present disclosure.

[0111] Figure 10 The complete flowchart of a frame preemption method for a time-sensitive network according to an embodiment of the present disclosure is shown.

[0112] As Figure 10As shown, when it is determined that the current frame to be transmitted is a medium-priority frame, it is judged whether the currently preemptable frame being transmitted meets the first frame preemption condition; if so, the currently preemptable frame is transmitted with frame preemption according to the frame preemption loose mode, and then it is judged whether the delay of the currently preemptable frame and the medium-priority frame meets the delay requirement. If it meets, the next medium-priority frame to be transmitted is segmented with the current default segmentation length. If it does not meet, the default segmentation length is adjusted, and the next medium-priority frame to be transmitted is segmented with the adjusted default segmentation length; if the currently preemptable frame being transmitted does not meet the first frame preemption condition, it is judged whether the untransmitted part of the currently preemptable frame is less than or equal to the default segmentation length; if so, the currently preemptable frame is continuously transmitted until the transmission is completed, and then the medium-priority frame is transmitted; otherwise, slicing is performed on the transmitted part and the untransmitted part of the currently preemptable frame, so as to transmit the untransmitted part of the currently preemptable frame after transmitting the medium-priority frame.

[0113] When it is determined that the current frame to be transmitted is a high-priority frame, it is judged whether the currently preemptable frame being transmitted meets the second frame preemption condition. If so, the currently preemptable frame is transmitted with frame preemption according to the frame preemption strict mode; otherwise, the currently preemptable frame is continuously transmitted until the transmission is completed, and then the high-priority frame is transmitted.

[0114] The units or modules involved in the embodiments described in this disclosure can be implemented in software or in programmable hardware. The described units or modules can also be set in a processor, and the names of these units or modules do not constitute a limitation to the units or modules themselves in some cases.

[0115] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principle. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.

Claims

1. A frame preemption method for a sending node in a time-sensitive network, characterized in that, The time-sensitive network includes a sending node and a receiving node, and the method includes: When it is determined that the currently to-be-transmitted frame is a medium-priority frame, it is judged whether the currently preemptable frame being transmitted meets the first frame preemption condition. If so, frame preemption transmission is performed on the currently preemptable frame according to the frame preemption loose mode; The frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptable frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptable frame. After transmitting the first fragment frame, the medium-priority frame is transmitted, and after the medium-priority frame is transmitted, the remaining fragment frames are transmitted. The first fragment frame includes: the transmitted part of the currently preemptable frame and a part of the default fragment length at the beginning of the untransmitted part; Judge whether the time delays of the currently preemptable frame and the medium-priority frame meet the time delay requirements. The time delay requirements include: the sum of the first transmission time delay of the first fragment frame of the currently preemptable frame, the second transmission time delay of the medium-priority frame, and the third transmission time delay of the remaining fragment frames of the currently preemptable frame is less than or equal to the maximum time delay of the preemptable frame, and the sum of the second transmission time delay of the medium-priority frame and the waiting time delay is less than or equal to the maximum time delay of the medium-priority frame; If so, fragment the subsequent preemptable frames to be transmitted according to the default fragment length for frame preemption transmission; if not, adjust the default fragment length, and fragment the subsequent preemptable frames to be transmitted according to the adjusted default fragment length for frame preemption transmission.

2. The method according to claim 1, wherein The first frame preemption condition includes: The untransmitted part of the currently preemptable frame being transmitted is greater than or equal to the sum of the default fragment length and the minimum frame length allowed by the transmission protocol; The total frame length of the currently preemptable frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol.

3. The method according to claim 1, characterized in that, The method further includes that when the sending node determines that the currently to-be-transmitted frame is a medium-priority frame and the currently preemptable frame being transmitted does not meet the first frame preemption condition: If the untransmitted part of the currently preemptable frame is less than or equal to the default fragment length, continue to transmit the currently preemptable frame until it is transmitted completely, and then transmit the medium-priority frame; If the untransmitted part of the currently preemptable frame is greater than the default fragment length, after transmitting the medium-priority frame, transmit the untransmitted part of the currently preemptable frame.

4. The method according to claim 1, characterized in that, The adjustment of the default fragment length includes: When the sum of the second transmission time delay and the waiting time delay is less than or equal to the maximum time delay of the medium-priority frame, and the sum of the first transmission time delay, the second transmission time delay, and the third transmission time delay is greater than the maximum time delay of the preemptable frame, increase the default fragment length by a specified frame length; When the sum of the second transmission time delay and the waiting time delay is greater than the maximum time delay of the medium-priority frame, decrease the default fragment length by a specified frame length.

5. The method according to claim 4, wherein: After increasing the default fragment length by the specified frame length, the sum of the waiting time delay of the medium-priority frame and the second transmission time delay is less than or equal to the maximum time delay of the medium-priority frame; After reducing the default fragmentation length by a specified frame length, the sum of the first transmission delay, the second transmission delay, and the third transmission delay is less than or equal to the maximum preemptable frame delay.

6. The method according to claim 1, characterized in that, Adjusting the default fragmentation length includes: Obtaining a plurality of sample data, each sample data from two adjacent frame pre-emptions using the loose frame pre-emption mode. The sample data includes: the default fragmentation length used in the first frame pre-emption among the two frame pre-emptions using the loose frame pre-emption mode; the length and the first transmission delay of the first fragmented frame of the preemptable frame in the first frame pre-emption; the length, the second transmission delay, and the waiting delay of the medium-priority frame to be transmitted in the first frame pre-emption; the length and the third transmission delay of the remaining fragmented frames in the first frame pre-emption; the adjusted default fragmentation length used in the second frame pre-emption among the two frame pre-emptions using the loose frame pre-emption mode, wherein the delays of the preemptable frame and the medium-priority frame in the first frame pre-emption do not meet the delay requirements, and the delays of the preemptable frame and the medium-priority frame in the second frame pre-emption meet the delay requirements; Inputting the sample data into a neural network model for training to obtain a fragmentation length adjustment model; Inputting the default fragmentation length used in the frame pre-emption using the loose frame pre-emption mode when the current frame to be transmitted is a medium-priority frame, the length and the first transmission delay of the first fragmented frame of the current preemptable frame, the length, the second transmission delay, and the waiting delay of the current frame to be transmitted, and the length and the third transmission delay of the remaining fragmented frames of the current preemptable frame into the fragmentation length adjustment model to obtain the default fragmentation length used in the frame pre-emption using the loose frame pre-emption mode when the next frame to be transmitted is a medium-priority frame, wherein the delay of the current frame to be transmitted does not meet the delay requirements.

7. The method according to claim 1, characterized in that, The method further includes: When the sending node determines that the current frame to be transmitted is a high-priority frame, determining whether the currently transmitted preemptable frame meets the second frame pre-emption condition. If so, performing frame pre-emption transmission on the current preemptable frame according to the strict frame pre-emption mode; The strict frame pre-emption mode includes: before transmitting the remaining part of the current preemptable frame, transmitting the high-priority frame, and after the high-priority frame is transmitted, transmitting the remaining part of the current preemptable frame.

8. The method according to claim 7, wherein The second frame pre-emption condition includes: The length of the remaining part of the currently transmitted preemptable frame is greater than or equal to the minimum frame length allowed by the transmission protocol; The total frame length of the currently transmitted preemptable frame is greater than or equal to the minimum fragmented frame length allowed by the transmission protocol.

9. The method according to claim 7, wherein The method further includes: when the sending node determines that the current frame to be transmitted is a high-priority frame and the currently transmitted preemptable frame does not meet the second frame pre-emption condition, continuing to transmit the current preemptable frame until transmission is completed, and then transmitting the high-priority frame.

10. The method according to claim 1, characterized in that, The sending node includes a pre-emption layer processing module and a preemptable layer processing module; The method further includes: The pre-emption layer processing module sending a pre-emption request to the preemptable layer processing module; The preemptible layer processing module receives the preemption request, and determines whether the currently preemptible frame being transmitted meets the corresponding frame preemption condition according to the type of the currently to-be-transmitted frame; if so, it sends an allow preemption response to the preemption layer processing module; if not, it sends a reject preemption response to the preemption layer processing module, where the type of the currently to-be-transmitted frame includes medium-priority frames and high-priority frames.

11. The method according to claim 1, wherein The method further includes: When the sending node determines that the currently to-be-transmitted frame is a medium-priority frame and the frame being transmitted is a medium-priority frame or a high-priority frame, after the frame being transmitted is transmitted, the currently to-be-transmitted frame is transmitted.

12. The method according to claim 1, characterized in that, When the sending node fragments the untransmitted part of the currently preemptible frame according to the default fragmentation length, a cyclic redundancy code is appended to the end of the first fragment at the fragmentation position to obtain the first fragment frame of the currently preemptible frame, and a preamble is appended to the beginning of the remaining fragments at the fragmentation position to obtain the remaining fragment frames of the currently preemptible frame.

13. A frame preemption method for a receiving node in a time-sensitive network, characterized in that, The time-sensitive network includes a sending node and a receiving node, and the method includes: When the sending node determines that the currently to-be-transmitted frame is a medium-priority frame, the currently preemptible frame being transmitted meets the first frame preemption condition, and performs frame preemption transmission on the currently preemptible frame according to the frame preemption loose mode, it obtains the first transmission delay of the first fragment frame of the currently preemptible frame being transmitted, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragment frames of the currently preemptible frame, and sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node; Among them, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptible frame according to the default fragmentation length to obtain the first fragment frame and the remaining fragment frames of the currently preemptible frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames, where the first fragment frame includes: the transmitted part of the currently preemptible frame, and a part of the default fragmentation length at the beginning of the untransmitted part.

14. The method according to claim 13, wherein The receiving node sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node by sending a link layer protocol message to the sending node, where the link layer protocol message includes a delay field, and the first transmission delay, the second transmission delay, and the third transmission delay are encapsulated in the delay field.

15. The method according to claim 13, wherein: The first transmission delay is the time from when the sending node starts to send the first fragment frame to when the receiving node finishes receiving the first fragment frame; The second transmission delay is the time from when the sending node starts to send the medium-priority frame to when the receiving node finishes receiving the medium-priority frame; The third transmission delay is the time from when the sending node starts to send the remaining fragment frames to when the receiving node finishes receiving the remaining fragment frames.

16. A transmitting device, characterized in that, Including: The first frame preemption transmission module is configured to, when determining that the currently to-be-transmitted frame is a medium-priority frame, determine whether the currently preemptible frame being transmitted meets the first frame preemption condition. If so, perform frame preemption transmission on the currently preemptible frame according to the frame preemption loose mode; wherein, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptible frame according to the default fragment length to obtain the first fragment frame and the remaining fragment frames of the currently preemptible frame. After transmitting the first fragment frame, transmit the medium-priority frame, and after the medium-priority frame is transmitted, transmit the remaining fragment frames. The first fragment frame includes: the transmitted part of the currently preemptible frame and a part of the default fragment length at the beginning of the untransmitted part. The judgment and adjustment module is configured to determine whether the transmission delays of the currently preemptible frame and the medium-priority frame meet the delay requirements; if so, fragment the subsequent preemptible frames according to the default fragment length for frame preemption transmission; if not, adjust the default fragment length and fragment the subsequent preemptible frames according to the adjusted default fragment length for frame preemption transmission. Wherein, the delay requirements include: the sum of the first transmission delay of the first fragment frame of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragment frames of the currently preemptible frame is less than or equal to the maximum preemptible frame delay, and the sum of the second transmission delay of the medium-priority frame and the waiting delay is less than or equal to the maximum medium-priority frame delay.

17. The transmitting device according to claim 16, wherein The first frame preemption transmission module is further configured to: When determining that the currently to-be-transmitted frame is a medium-priority frame and the currently preemptible frame being transmitted does not meet the first frame preemption condition: If the untransmitted part of the currently preemptible frame is less than or equal to the default fragment length, continue to transmit the currently preemptible frame until it is transmitted completely, and then transmit the medium-priority frame; If the untransmitted part of the currently preemptible frame is greater than the default fragment length, after transmitting the medium-priority frame, transmit the untransmitted part of the currently preemptible frame.

18. The transmitting device according to claim 16, wherein The device further includes a second frame preemption transmission module; the second frame preemption transmission module is configured to: When determining that the currently to-be-transmitted frame is a high-priority frame, determine whether the currently preemptible frame being transmitted meets the second frame preemption condition. If so, perform frame preemption transmission on the currently preemptible frame according to the frame preemption strict mode; The frame preemption strict mode includes: transmitting the high-priority frame before transmitting the remaining part of the currently preemptible frame, and transmitting the remaining part of the currently preemptible frame after the high-priority frame is transmitted.

19. A receiving device, characterized in that, Includes: An acquisition module, configured to acquire a first transmission delay of a first fragment frame of the currently preemptable frame being transmitted, a second transmission delay of the medium-priority frame, and a third transmission delay of the remaining fragment frames of the currently preemptable frame when a sending node determines that the currently to-be-transmitted frame is a medium-priority frame, the currently preemptable frame being transmitted satisfies a first frame preemption condition, and frame preemption transmission is performed on the currently preemptable frame according to a frame preemption loose mode, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node; Wherein, the frame preemption loose mode includes: fragmenting the untransmitted part of the currently preemptable frame according to a default fragment length to obtain a first fragment frame and remaining fragment frames of the currently preemptable frame, after transmitting the first fragment frame, transmitting the medium-priority frame, and after the medium-priority frame is transmitted, transmitting the remaining fragment frames, the first fragment frame including: the transmitted part of the currently preemptable frame and a part of the default fragment length at the beginning of the untransmitted part.

20. The receiving device according to claim 19, wherein The device further includes a message sending module; The message sending module is configured to send a link layer protocol message to the sending node to send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node, wherein the link layer protocol message includes a delay field, and the first transmission delay, the second transmission delay, and the third transmission delay are encapsulated in the delay field.

21. A computer-readable storage medium having computer instructions stored thereon, characterized in that, When the computer instruction is executed by a processor, it implements the method according to any one of claims 1 to 15.

22. A computer program product comprising computer instructions, characterized in that, When the computer instruction is executed by a processor, it implements the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Slice frame sending method and device

    CN114363232A

  • Compatible network high-real-time data transmission device and method

    CN114465961A

  • Time-sensitive network frame preemption optimization method

    CN114500692A

  • Frame transmission method and electronic equipment

    CN114640639A

  • Frame preemption method and device, equipment and storage medium

    CN115086247A

Cited By

  • Dynamic splitting method for data frames in guard band of time sensitive network

    CN121691202A

  • Dynamic priority preemption and time-sensitive network fused low-delay networking method and device

    CN122137803A