Frame pre-emption method for transmitting node and receiving node in time sensitive network, transmitting device and receiving device
By using fragmented transmission in loose and strict frame preemption modes and adjusting the default fragment length, the problem of sacrificing ordinary frame latency in existing frame preemption methods is solved. This achieves bounded latency for different frames and improves network efficiency, ensuring immediate access for critical traffic.
Patent Information
- Application Number
- CN202510873333.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2045-06-27
AI Technical Summary
Existing frame preemption techniques in time-sensitive networks sacrifice the latency of ordinary frames (preemptible frames) while ensuring high-speed frame latency, and cannot meet the needs of some preemptible frames with fixed latency requirements.
The system employs both loose and strict frame preemption modes. Frames are fragmented and transmitted based on frame type and latency requirements. The default fragment length is adjusted to meet the latency requirements of different frames. This includes using loose frame preemption mode when transmitting high-priority frames and strict frame preemption mode when transmitting high-priority frames.
While ensuring the bounded latency of high-speed frames, the bounded latency of preemptible frames is also satisfied, which improves the network transmission efficiency of time-sensitive networks, avoids bandwidth shortages or uncontrolled latency caused by mixed services, and ensures the immediate access of critical traffic.
Smart Images

Figure CN120389835B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of Time Sensitive Network (TSN) technology, specifically to a frame preemption method, a transmitting device, and a receiving device for transmitting and receiving nodes in a time-sensitive network. Background Technology
[0002] With the rapid development of the Internet of Things (IoT) and the Industrial Internet, more and more services are being integrated into a networked system. This trend forces time-critical traffic and ordinary traffic to share system resources, thus placing higher demands on network real-time performance and stability. Time-Sensitive Networking (TSN) has emerged to address this need. TSN improves the real-time performance and reliability of network data transmission by adding technologies such as clock synchronization, time-aware scheduling, frame preemption, and seamless redundancy to standard Ethernet.
[0003] Currently, most research on frame preemption in time-sensitive networks focuses on its impact on end-to-end transmission latency. Analysis of existing frame preemption techniques and actual test results show that while high-speed frame latency can be guaranteed during preemption, this comes at the cost of sacrificing the latency of ordinary frames. It is worth noting that in real-world network communication, some preemptible frames, although not high-speed frames, still have fixed latency requirements. Therefore, a new frame preemption method is urgently needed to ensure bounded latency for different frames; that is, it should not indiscriminately sacrifice the latency of preemptible frames for the latency of high-speed frames, but rather guarantee the bounded latency of both high-speed and preemptible frames. Summary of the Invention
[0004] To address the problems in related technologies, embodiments of this disclosure provide a frame preemption method, a sending device, and a receiving device for sending and receiving nodes in a time-sensitive network.
[0005] In a first aspect, this disclosure provides a frame preemption method for a transmitting node in a time-sensitive network, the time-sensitive network including a transmitting node and a receiving node, the method comprising:
[0006] When it is determined that the current frame to be transmitted is a medium priority frame, it is determined whether the current preemptible frame being transmitted meets the first frame preemption condition. If so, the current preemptible frame is preempted and transmitted according to the frame preemption loose mode.
[0007] The loose frame preemption mode includes: fragmenting the untransmitted portion 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. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the default fragment length at the beginning of the untransmitted portion.
[0008] Determine whether the delay of the current preemptible frame and the medium-priority frame meets the delay requirements. The delay requirements include: the sum of the first transmission delay of the first fragment of the current preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments 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 and the waiting delay of the medium-priority frame is less than or equal to the maximum delay of the medium-priority frame.
[0009] If yes, then the subsequent preemptible frames are fragmented using the default fragmentation length to perform frame preemptive transmission; if no, then the default fragmentation length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragmentation length to perform frame preemptive transmission.
[0010] According to embodiments of this disclosure, the preemption conditions for the first frame include:
[0011] The untransmitted portion of the currently preemptible 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;
[0012] The total frame length of the currently preemptible frames being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol.
[0013] According to embodiments of this disclosure, the method further includes, when the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted does not meet the preemption condition of the first frame:
[0014] If the untransmitted portion of the currently preemptible frame is less than or equal to the default fragment length, then continue transmitting the currently preemptible frame until transmission is complete, and then transmit the medium-priority frame.
[0015] If the untransmitted portion of the currently preemptible frame is greater than the default fragment length, then the untransmitted portion of the currently preemptible frame is transmitted after the medium-priority frame is transmitted.
[0016] According to embodiments of this disclosure, adjusting the default fragment length includes:
[0017] If 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, the default fragment length is increased by a specified frame length.
[0018] When the sum of the second transmission delay and the waiting delay is greater than the maximum delay of the medium-priority frame, the default fragment length is reduced by a specified frame length.
[0019] According to embodiments of this disclosure:
[0020] After increasing the default fragment 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;
[0021] After reducing the default fragment length to 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.
[0022] According to embodiments of this disclosure, adjusting the default fragment length includes:
[0023] Multiple sample data are acquired, each sample data comes from two adjacent frame preemptions using a loose frame preemption mode. The sample data includes: the default fragment length used in the first frame preemption of the two frame preemptions using a loose frame preemption mode; the length of the first fragment of the preemptible frame and the first transmission delay in the first frame preemption; the length of the medium-priority frame to be transmitted and the second transmission delay and waiting delay in the first frame preemption; the length of the remaining fragments and the third transmission delay in the first frame preemption; and the adjusted default fragment length used in the second frame preemption of the two frame preemptions using a loose frame preemption mode. The delays of the preemptible frames and medium-priority frames in the first frame preemption do not meet the delay requirements, while the delays of the preemptible frames and medium-priority frames in the second frame preemption meet the delay requirements.
[0024] The sample data is input into a neural network model for training to obtain a slice length adjustment model.
[0025] The default fragment length used in frame preemption using the loose preemption mode when the current frame to be transmitted is a medium-priority frame, the length of the first fragment of the currently preemptible frame and the first transmission delay, the length of the current frame to be transmitted and the second transmission delay and waiting delay, the length of the remaining fragments of the currently preemptible frame and the third transmission delay are input into the fragment length adjustment model to obtain the default fragment length used in frame preemption using the loose preemption 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 requirement.
[0026] According to embodiments of this disclosure, the method further includes:
[0027] When the sending node determines that the current frame to be transmitted is a high-priority frame, it determines whether the currently preemptible frame being transmitted meets the second frame preemption condition. If so, the current preemptible frame is preemptively transmitted according to the strict frame preemption mode.
[0028] 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 has been transmitted.
[0029] According to embodiments of this disclosure, the preemption conditions for the second frame include:
[0030] The length of the remaining portion of the currently preemptible frame being transmitted is greater than or equal to the minimum frame length allowed by the transmission protocol.
[0031] The total frame length of the currently preemptible frames being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol.
[0032] According to an embodiment of this disclosure, the method further includes: when the sending node determines that the current frame to be transmitted is a high-priority frame and the currently preemptible frame being transmitted does not meet the preemption condition of the second frame, continuing to transmit the currently preemptible frame until the transmission is completed, and then transmitting the high-priority frame.
[0033] According to embodiments of this disclosure, the sending node includes a preemptive layer processing module and a preemptible layer processing module;
[0034] The method further includes:
[0035] The preemption layer processing module sends a preemption request to the preemptible layer processing module;
[0036] The preemptible layer processing module receives the preemption request and determines whether the currently preemptible frame being transmitted meets the corresponding frame preemption condition based on the type of the currently to be transmitted frame. If yes, it sends a preemption permission response to the preemption layer processing module; if no, it sends a preemption rejection response to the preemption layer processing module. The type of the currently to be transmitted frame includes medium-priority frames and high-priority frames.
[0037] According to embodiments of this disclosure, the method further includes:
[0038] When the sending node determines that the current frame to be transmitted is a medium-priority frame, and the frame being transmitted is a medium-priority frame or a high-priority frame, the current frame to be transmitted will be transmitted after the frame being transmitted has been completed.
[0039] According to an embodiment of this disclosure, when the sending node fragments the untransmitted portion of the current preemptible frame according to the default fragment length, a cyclic redundancy code is appended to the end of the first fragment at the fragment 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 fragment position to obtain the remaining fragment frames of the current preemptible frame.
[0040] Secondly, this 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 comprising:
[0041] When the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted satisfies the first frame preemption condition, and performs frame preemption transmission of the currently preemptible frame according to the loose frame preemption mode, it obtains the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame, and sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node;
[0042] The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the untransmitted portion starting with the default fragment length.
[0043] According to an embodiment of this 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, 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.
[0044] According to embodiments of this disclosure:
[0045] The first transmission delay is the time from when the sending node starts sending the first fragment frame to when the receiving node completes receiving the first fragment frame;
[0046] The second transmission delay is the time from when the sending node starts sending the medium-priority frame to when the receiving node completes receiving the medium-priority frame;
[0047] The third transmission delay is the time it takes for the sending node to begin sending the remaining fragment frames to the receiving node to complete receiving the remaining fragment frames.
[0048] Thirdly, this disclosure provides a transmitting device, including:
[0049] The first frame preemptive transmission module is configured to, when determining that the current frame to be transmitted is a medium-priority frame, determine whether the currently preemptible frame being transmitted meets the first frame preemption condition. If so, it preemptively transmits the current preemptible frame according to the loose frame preemption mode. The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame after the medium-priority frame is transmitted; and transmitting the remaining fragment frames after the medium-priority frame is transmitted. The first fragment frame includes: the transmitted portion of the current preemptible frame and the portion of the default fragment length at the beginning of the untransmitted portion.
[0050] The judgment and adjustment module is configured to determine whether the delay of the current preemptible frame and the medium priority frame meets the delay requirement; if yes, then the subsequent preemptible frames are fragmented with the default fragment length to perform frame preemptive transmission; if no, then the default fragment length is adjusted, and the subsequent preemptible frames are fragmented with the adjusted default fragment length to perform frame preemptive transmission.
[0051] The latency requirements include: the sum of the first transmission latency of the first fragment of the currently preemptible frame, the second transmission latency of the medium-priority frame, and the third transmission latency of the remaining fragments of the currently preemptible frame is less than or equal to the maximum latency of the preemptible frame, and the sum of the second transmission latency and the waiting latency of the medium-priority frame is less than or equal to the maximum latency of the medium-priority frame.
[0052] According to embodiments of this disclosure, the first frame preemptive transmission module is further configured to:
[0053] When it is determined that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted does not meet the preemption condition of the first frame:
[0054] If the untransmitted portion of the currently preemptible frame is less than or equal to the default fragment length, then continue transmitting the currently preemptible frame until transmission is complete, and then transmit the medium-priority frame.
[0055] If the untransmitted portion of the currently preemptible frame is greater than the default fragment length, then the untransmitted portion of the currently preemptible frame is transmitted after the medium-priority frame is transmitted.
[0056] According to embodiments of this disclosure, the device further includes a second frame preemptive transmission module; the second frame preemptive transmission module is configured to:
[0057] When it is determined that the current frame to be transmitted is a high-priority frame, it is determined whether the current preemptible frame being transmitted meets the second frame preemption condition. If so, the current preemptible frame is preempted and transmitted according to the strict frame preemption mode.
[0058] 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 has been transmitted.
[0059] Fourthly, this disclosure provides a receiving device, including:
[0060] The acquisition module is configured to, when the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted satisfies the first frame preemption condition, and performs frame preemption transmission of the currently preemptible frame according to the frame preemption loose mode, acquire the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node;
[0061] The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the untransmitted portion starting with the default fragment length.
[0062] According to embodiments of this disclosure, the device further includes a message sending module;
[0063] 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.
[0064] Fifthly, embodiments of this disclosure provide an electronic device including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method as described in either the first or second aspect.
[0065] In a sixth aspect, embodiments of this disclosure provide a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the method as described in either the first or second aspect.
[0066] According to the technical solution provided in this disclosure, when the current frame to be transmitted is a medium-priority frame and the currently preemptible frame being transmitted meets the first frame preemption condition, the current preemptible frame is preemptively transmitted according to the loose frame preemption mode; it is determined whether the delay of the current preemptible frame and the medium-priority frame meets the delay requirement; if yes, the subsequent preemptible frames are fragmented with the default fragment length for preemptive transmission; if no, the default fragment length is adjusted, and the subsequent preemptible frames are fragmented with the adjusted default fragment length for preemptive transmission.
[0067] This disclosure supports the selection of different frame preemption modes to meet the latency requirements of different scenarios. It can satisfy the strict latency requirements of specific scenarios while also ensuring the latency of preemptible frames to a certain extent. By dynamically adjusting the slice packet length, it ensures the bounded latency of both high-speed frames and preemptible frames, thereby improving network transmission efficiency in time-sensitive networks and avoiding the problems of "insufficient bandwidth or uncontrolled latency" caused by mixed services in existing networks.
[0068] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0069] Other features, objects, and advantages of this disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:
[0070] Figure 1 A flowchart illustrating a frame preemption method for a transmitting node in a time-sensitive network according to an embodiment of the present disclosure is shown.
[0071] Figure 2 This diagram illustrates frame preemption transmission of the currently preemptible frame according to the loose frame preemption mode in an embodiment of this disclosure.
[0072] Figure 3This diagram illustrates the segmentation of a preemptible frame when performing frame preemptive transmission according to a loose frame preemption mode in an embodiment of this disclosure.
[0073] Figure 4 This diagram illustrates different transmission delays when preempting transmission of the current preemptible frame according to the loose frame preemption mode in an embodiment of this disclosure.
[0074] Figure 5 This diagram illustrates a frame transmission method in an embodiment of the present disclosure when the current frame to be transmitted is a medium-priority frame and the current preemptible frame does not meet the preemption condition of the first frame.
[0075] Figure 6 This diagram illustrates another frame transmission method in an embodiment of the present disclosure when the current frame to be transmitted is a medium-priority frame and the current preemptible frame does not meet the preemption condition of the first frame.
[0076] Figure 7 A flowchart illustrating a frame preemption method for a receiving node in a time-sensitive network according to an embodiment of the present disclosure is shown.
[0077] Figure 8 A structural block diagram of a transmitting device according to an embodiment of the present disclosure is shown;
[0078] Figure 9 A structural block diagram of a receiving device according to an embodiment of the present disclosure is shown;
[0079] Figure 10 A complete flowchart of a frame preemption method for a time-sensitive network according to an embodiment of the present disclosure is shown. Detailed Implementation
[0080] In the following, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to enable those skilled in the art to readily implement them. Furthermore, for clarity, portions unrelated to the description of exemplary embodiments have been omitted from the drawings.
[0081] In this disclosure, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, figures, steps, behaviors, 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, figures, steps, behaviors, components, parts or combinations thereof.
[0082] It should also be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0083] In this disclosure, any operation involving the acquisition of user information or user data, or the display of user information or user data to others, is an operation authorized or confirmed by the user, or actively selected by the user.
[0084] As mentioned earlier, while existing frame preemption techniques can guarantee the latency of high-speed frames, this comes at the cost of sacrificing the latency of ordinary frames (preemptible frames). After research, the inventors discovered that among the many preemptible ordinary frames, some ordinary frames, although not classified as high-speed frames, also have latency requirements, and existing methods cannot meet the latency needs of these frames.
[0085] This disclosure provides a frame preemption method for a transmitting node in a time-sensitive network, including determining whether the currently preemptible frame being transmitted satisfies the first frame preemption condition when the current frame to be transmitted is determined to be a medium-priority frame; if so, preempting transmission of the current preemptible frame is performed according to a loose frame preemption mode; the loose frame preemption mode includes: fragmenting the untransmitted portion of the current preemptible frame according to a default fragmentation length to obtain a first fragment frame and a remaining fragment frame of the current preemptible frame; transmitting the medium-priority frame after transmitting the first fragment frame; and transmitting the remaining fragment frame after the medium-priority frame is transmitted. The first fragment frame includes: the transmitted portion of the current preemptible frame and the portion of the default fragmentation length at the beginning of the untransmitted portion.
[0086] Determine whether the delays of the currently preemptible frame and the medium-priority frame meet the delay requirements. The delay requirements include: the sum of the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame is less than or equal to the maximum delay of the preemptible frame, and the sum of the second transmission delay and the waiting delay of the medium-priority frame is less than or equal to the maximum delay of the medium-priority frame. If yes, then the subsequent preemptible frames are fragmented using the default fragment length for frame preemptive transmission. If no, then the default fragment length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragment length for frame preemptive transmission.
[0087] This disclosure satisfies the stringent latency requirements in specific scenarios while also ensuring the latency of preemptible frames to a certain extent. It guarantees both the bounded latency of high-speed frames and preemptible frames, improving network transmission efficiency in time-sensitive networks and avoiding the problems of insufficient bandwidth or uncontrolled latency caused by mixed services in existing networks.
[0088] Figure 1 A flowchart illustrating a frame preemption method for a transmitting node in a time-sensitive network according to an embodiment of this disclosure is shown. Figure 1As shown, the frame preemption method includes the following steps S101 to S103.
[0089] In this disclosure, the time-sensitive network includes a sending node and a receiving node. The sending and receiving nodes can be any device with bidirectional data processing and transmission capabilities, such as terminal devices, switches, or relay devices. Furthermore, before executing preemption, it must be confirmed whether both ends of the transmission link (the sending and receiving nodes) support frame preemption; if either end does not support it, the frame preemption method cannot be enabled.
[0090] In step S101, when it is determined that the current frame to be transmitted is a medium priority frame, it is determined whether the current preemptible frame being transmitted meets the first frame preemption condition. If so, the current preemptible frame is preempted and transmitted according to the loose frame preemption mode.
[0091] In this disclosure, the sending node can map a message to be sent into a high-priority frame, a medium-priority frame, or a preemptible frame according to a user-configured priority policy. Specifically, after the message to be sent arrives at the MAC layer (Media Access Control sublayer), the sending node determines the type of the message to be sent according to the pre-configured priority rules, and then encapsulates the message into a high-priority frame, a medium-priority frame, or a preemptible frame according to the type of the message to be sent.
[0092] Specifically, the high-priority frames, medium-priority frames, and preemptible frames are divided in descending order of priority. High-priority and medium-priority frames are high-priority or low-latency critical traffic (such as real-time control signals), and can interrupt the transmission of preemptible frames through a preemption mechanism to perform frame preemption transmission. High-priority and medium-priority frames must be transmitted in their entirety during transmission and cannot be interrupted or fragmented; while preemptible frames can be fragmented during transmission to provide an immediate channel for the transmission of high-priority and medium-priority frames.
[0093] For example, high-priority frames and medium-priority frames can be eMAC frames (express MAC frames), and preemptible frames can be pMAC frames (preemptible MAC frames).
[0094] According to an embodiment of this disclosure, the first frame preemption condition includes: the untransmitted portion of the currently preemptible 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; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol.
[0095] The transmission protocol is a standard developed based on the characteristics of time-sensitive networks (TSNs) to achieve transmission goals (such as ensuring low latency, high reliability, and deterministic transmission). In this disclosure, the minimum frame length allowed by the transmission protocol is the minimum frame length that can be transmitted in a TSN, and the minimum fragmentation frame length allowed by the transmission protocol is the minimum frame length that a preemptible frame is allowed to be fragmented in a TSN. For example, the IEEE Std 802.3br standard specifies that the minimum frame length for transmission in a TSN must not be less than 64 bytes, and the minimum frame length that a preemptible frame is allowed to be fragmented must not be less than 124 bytes.
[0096] Figure 2 This diagram illustrates frame preemption transmission of the currently preemptible frame according to a loose frame preemption mode in an embodiment of this disclosure.
[0097] like Figure 2 As shown, the loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted.
[0098] Specifically, when the sending node fragments the untransmitted portion of the currently preemptible frame according to the default fragment length, a cyclic redundancy code is appended to the end of the first fragment at the fragment 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 fragment position to obtain the remaining fragment frames of the currently preemptible frame.
[0099] Specifically, when the sending node fragments the untransmitted portion of the current preemptible frame, a cyclic redundancy checksum (mCRC) code is appended to the end of the fragment location as a checksum, ensuring that the resulting first fragment can be transmitted as a complete Ethernet frame. After one inter-frame interval, transmission of medium-priority frames begins. After the transmission of medium-priority frames is complete, the remaining fragments of the paused current preemptible frame are appended with the corresponding preamble and transmission continues. The receiving node determines the frame type by parsing the information in the received frame. If a fragmented preemptible frame is detected, the first fragment and the remaining fragments are sequentially reassembled to restore the original preemptible frame, ultimately completing the reception and processing of the complete preemptible frame.
[0100] In this disclosure, high-priority frames, medium-priority frames, complete preemptible frames, and the first fragmented frame obtained after a preemptible frame is fragmented all include a preamble field, a frame delimiter field, a payload field, and an FCS (Frame Check Sequence) field; the remaining fragmented frames obtained after a preemptible frame is fragmented include a preamble field, a frame delimiter field, a fragment count field, a payload field, and an FCS field.
[0101] The preamble field has the same meaning as the preamble in traditional Ethernet frame formats, serving a synchronization function for reception. The frame delimiter field identifies the frame type and frame order. The payload field carries the Ethernet frame format information of the message to be transmitted, which may include, for example, the destination MAC address, source MAC address, frame length, etc. The FCS field is used by the receiving node to verify whether the received frame has encountered errors during transmission. The fragment count field is used by the receiving node to detect whether fragmented frames are transmitted continuously on the transmission link.
[0102] Figure 3 This diagram illustrates the segmentation of a preemptible frame during frame preemption transmission according to a loose frame preemption mode in an embodiment of this disclosure.
[0103] like Figure 3 As shown, the first fragment frame includes: the transmitted portion of the currently preemptible frame, and the portion of the untransmitted portion beginning with the default fragment length. The remaining fragment frames include the portion of the untransmitted portion of the currently preemptible frame excluding the portion with the default fragment length.
[0104] In step S102, it is determined whether the delays of the currently preemptible frame and the medium-priority frame meet the delay requirements. The delay requirements include: the sum of the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame is less than or equal to the maximum delay of the preemptible frame, and the sum of the second transmission delay and the waiting delay of the medium-priority frame is less than or equal to the maximum delay of the medium-priority frame. Figure 4 As shown.
[0105] In this disclosure, the maximum delay of a preemptible frame is the maximum delay when a complete preemptible frame is received by the receiving node. For a preemptible frame to meet the delay requirement, 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 preemptible frame. Similarly, the maximum delay of a medium-priority frame is the maximum delay when a medium-priority frame is received by the receiving node. For a medium-priority frame 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. The maximum delay of the preemptible frame and the maximum delay of the medium-priority frame can be set according to the frame transmission requirements.
[0106] In step S103, if yes, the subsequent preemptible frames are fragmented using the default fragmentation length to perform frame preemptive transmission; if no, the default fragmentation length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragmentation length to perform frame preemptive transmission.
[0107] In other words, if the latency of the current preemptible frame and the medium-priority frame meets the latency requirements, the subsequent preemptible frames can be fragmented using the default fragmentation length. However, if the latency of the current preemptible frame and the medium-priority frame does not meet the latency requirements, the default fragmentation length needs to be adjusted, and the subsequent preemptible frames should be fragmented using the adjusted default fragmentation length for frame preemption transmission.
[0108] This disclosure improves resource utilization and network efficiency in time-sensitive networks by adjusting the length of sliced packets, ensuring both the bounded latency of high-speed frames and preemptible frames. It avoids the problems of "insufficient bandwidth or uncontrolled latency" caused by mixed services in existing networks, prevents scheduling oscillations caused by "excessive preemption" of critical traffic, and ensures that non-critical traffic can obtain minimum service guarantees.
[0109] The following two specific examples illustrate how to adjust the default fragment length:
[0110] In one specific embodiment, adjusting the default fragment length includes:
[0111] If 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, the default fragment length is increased by a specified frame length; if the sum of the second transmission delay and the waiting delay is greater than the maximum delay of the medium-priority frame, the default fragment length is decreased by a specified frame length.
[0112] That is, when the sum of the second transmission delay and the waiting delay meets the delay requirement of a 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 a preemptible frame, the default fragment length is increased by a specified frame length, which can be 4 bytes, 8 bytes, etc., to obtain the adjusted default fragment length.
[0113] 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 the priority of the preemptible frame, there is no need to consider the delay requirement of the preemptible frame anymore. The default fragment length is directly reduced by the specified frame length to obtain the adjusted default fragment length.
[0114] According to embodiments of this disclosure, after increasing the default fragment 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.
[0115] According to an embodiment of this disclosure, after reducing the default fragment 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.
[0116] This disclosure can simultaneously guarantee the bounded latency of high-speed frames and preemptible frames by adjusting the default fragment length. That is, although some transmission latency of high-speed frames is sacrificed, the transmission efficiency of preemptible frames can be greatly improved, while ensuring the latency requirements of medium-priority frames and preemptible frames, thereby improving the network transmission efficiency of time-sensitive networks.
[0117] In another specific embodiment, adjusting the default fragment length includes:
[0118] Multiple sample data are acquired, each sample data comes from two adjacent frame preemptions using a loose frame preemption mode. The sample data includes: the default fragment length used in the first frame preemption of the two frame preemptions using a loose frame preemption mode; the length of the first fragment of the preemptible frame and the first transmission delay in the first frame preemption; the length of the medium-priority frame to be transmitted and the second transmission delay and waiting delay in the first frame preemption; the length of the remaining fragments and the third transmission delay in the first frame preemption; and the adjusted default fragment length used in the second frame preemption of the two frame preemptions using a loose frame preemption mode. The delays of the preemptible frames and medium-priority frames in the first frame preemption do not meet the delay requirements, while the delays of the preemptible frames and medium-priority frames in the second frame preemption meet the delay requirements.
[0119] The sample data is input into a neural network model for training to obtain a slice length adjustment model.
[0120] The default fragment length used in frame preemption using the loose preemption mode when the current frame to be transmitted is a medium-priority frame, the length of the first fragment of the currently preemptible frame and the first transmission delay, the length of the current frame to be transmitted and the second transmission delay and waiting delay, the length of the remaining fragments of the currently preemptible frame and the third transmission delay are input into the fragment length adjustment model to obtain the default fragment length used in frame preemption using the loose preemption 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 requirement.
[0121] In this embodiment, the fragment length adjustment model can be obtained by using data accumulated from historical frame preemption in a loose preemption mode as sample data to train a neural network model. This data guides the default fragment length used in the next medium-priority frame transmission. The sample data includes data from two consecutive frame preemption operations using the loose preemption mode. In the first preemption, the latency of the preemptible frame and the medium-priority frame did not meet the latency requirements, while in the second preemption, the latency of the preemptible frame and the medium-priority frame met the requirements. When using the loose preemption mode to transmit the current medium-priority frame, the corresponding data is input into the fragment length adjustment model to obtain the default fragment length used when the next frame to be transmitted is a medium-priority frame.
[0122] The fragment length adjustment model obtained by training in this publication can guide the default fragment length used for the next medium-priority frame to be transmitted based on the sample data corresponding to the medium-priority frame to be transmitted. This reduces the transmission latency of preemptible frames to a certain extent, improves the transmission efficiency of preemptible frames, and ensures the boundedness of latency for medium-priority frames and preemptible frames.
[0123] According to an embodiment of this disclosure, when the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted does not meet the preemption condition of the first frame:
[0124] If the untransmitted portion of the currently preemptible frame is less than or equal to the default fragment length, then the transmission of the currently preemptible frame continues until the transmission is complete, and then the medium-priority frame is transmitted.
[0125] Figure 5 This diagram illustrates a frame transmission method 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 preemption condition for the first frame. For example... Figure 5 As shown, if the untransmitted portion is not greater than the default fragment length, the current preemptible frame will not be fragmented. Instead, the medium-priority frame will be transmitted after the current preemptible frame has been transmitted.
[0126] If the untransmitted portion of the currently preemptible frame is greater than the default fragment length, then the untransmitted portion of the currently preemptible frame is transmitted after the medium-priority frame is transmitted.
[0127] Figure 6 This diagram illustrates another frame transmission method in an embodiment of the present disclosure when the current frame to be transmitted is a medium-priority frame and the current preemptible frame does not meet the preemption condition of the first frame. For example... Figure 6As shown, when the untransmitted portion is larger than the default fragment length, the transmitted portion is sliced, the transmission of the untransmitted portion is paused, and the medium-priority frame is transmitted first. After the medium-priority frame is transmitted, the untransmitted portion of the current preemptible frame is transmitted.
[0128] According to an embodiment of this disclosure, when the sending node determines that the current frame to be transmitted is a medium-priority frame and the frame being transmitted is a medium-priority frame or a high-priority frame, the current frame to be transmitted is transmitted after the frame being transmitted is completed.
[0129] That is, if the frame currently being transmitted is not a preemptible frame, the frame to be transmitted will be stored in the queuing system. Transmission can only begin after the medium-priority or high-priority frame being transmitted has been completed.
[0130] According to an embodiment of this disclosure, when the sending node determines that the current frame to be transmitted is a high-priority frame, it determines whether the currently preemptible frame being transmitted meets the second frame preemption condition. If so, the current preemptible frame is preemptively transmitted according to the strict frame preemption mode.
[0131] The strict frame preemption 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 has been transmitted.
[0132] Specifically, when the current preemptible frame being transmitted meets the preemption condition of the second frame, the untransmitted part and the transmitted part of the current preemptible frame are sliced, and the transmission of the untransmitted part of the current preemptible frame is paused in order to transmit the high-priority frame to be transmitted. After the high-priority frame is transmitted, the remaining part of the current preemptible frame is transmitted.
[0133] In this disclosure, the preemption conditions for the second frame include: the length of the remaining portion of the currently preemptible frame being transmitted is greater than or equal to the minimum frame length allowed by the transmission protocol; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol.
[0134] Assuming the minimum frame length allowed by the transmission protocol is 64 bytes and the minimum fragment frame length allowed by the transmission protocol is 124 bytes, then the length of the remaining part of the currently preemptible frame being transmitted must be no less than 64 bytes, and the total frame length of the currently preemptible frame being transmitted must be greater than or equal to 124 bytes.
[0135] According to an embodiment of this disclosure, when the sending node determines that the current frame to be transmitted is a high-priority frame and the currently preemptible frame being transmitted does not meet the preemption condition for the second frame, the current preemptible frame continues to be transmitted until the transmission is completed, and then the high-priority frame is transmitted.
[0136] That is, if the length of the remaining part of the currently preemptible frame being transmitted is less than the minimum frame length allowed by the transmission protocol, and / or the total frame length of the currently preemptible frame being transmitted is less than the minimum fragmentation frame length allowed by the transmission protocol, then the currently preemptible frame is not allowed to be fragmented. In this case, the remaining part of the currently preemptible frame continues to be transmitted until the transmission is completed, and then the high-priority frame is transmitted.
[0137] According to embodiments of this disclosure, the sending node includes a preemptive layer processing module and a preemptible layer processing module.
[0138] 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 transmitted preemptible frame meets the corresponding frame preemption condition based on the type of the frame to be transmitted. If yes, it sends a preemption permission response to the preemption layer processing module; otherwise, it sends a preemption rejection response to the preemption layer processing module. The type of the currently transmitted frame includes medium-priority frames and high-priority frames.
[0139] Specifically, after a high-priority or medium-priority frame to be 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 current preemptible frame meets the first or second frame preemption conditions based on the type of the frame to be transmitted; and thus sends a preemption permission response or a preemption rejection response to the preemption layer processing module.
[0140] Figure 7 A flowchart illustrating a frame preemption method for a receiving node in a time-sensitive network according to an embodiment of the present disclosure is shown.
[0141] like Figure 7 As shown, the method includes step S701.
[0142] The time-sensitive network includes sending nodes and receiving nodes.
[0143] In step S701, when the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted satisfies the first frame preemption condition, and performs frame preemption transmission of the currently preemptible frame according to the loose frame preemption mode, it obtains the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame, and sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node.
[0144] The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the untransmitted portion starting with the default fragment length.
[0145] According to an embodiment of this 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, 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.
[0146] The receiving node of this disclosure encapsulates the first transmission delay, the second transmission delay, and the third transmission delay in the delay field of the link layer protocol message, so that the sending node can obtain the first transmission delay, the second transmission delay, and the third transmission delay by parsing the delay field of the link layer protocol message.
[0147] Specifically, the first transmission delay is the time it takes for the sending node to start sending the first fragment frame to the receiving node to complete receiving the first fragment frame.
[0148] The second transmission delay is the time from when the sending node starts sending the medium-priority frame to when the receiving node completes receiving the medium-priority frame.
[0149] The third transmission delay is the time it takes for the sending node to begin sending the remaining fragment frames to the receiving node to complete receiving the remaining fragment frames.
[0150] In this disclosure, the time-sensitive network may include one or more relay nodes in addition to the sending and receiving nodes. Therefore, the first transmission delay, the second transmission delay, and the third transmission delay can all include the dwell time of the transmitted frame on different relay nodes. Specifically, the difference between the timestamp information obtained when the receiving port of a relay node receives a frame and the timestamp information obtained when the corresponding frame is sent at the sending port of the relay node is the dwell time of the corresponding frame on that relay node.
[0151] This disclosure satisfies the stringent latency requirements in specific scenarios while also ensuring the latency of preemptible frames to a certain extent. It avoids scheduling oscillations caused by "excessive preemption" of preemptible frames by critical traffic, thereby improving network transmission efficiency in time-sensitive networks.
[0152] Figure 8 A structural block diagram of a transmitting device according to an embodiment of the present disclosure is shown.
[0153] like Figure 8 As shown, the transmitting device 800 includes a first frame preemptive transmission module 810, a judgment and adjustment module 820, and a second frame preemptive transmission module 830.
[0154] The first frame preemptive transmission module 810 is configured to, when determining that the current frame to be transmitted is a medium-priority frame, determine whether the currently preemptible frame being transmitted meets the first frame preemption condition. If so, it preemptively transmits the current preemptible frame according to the loose frame preemption mode. The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame after the medium-priority frame is transmitted; and transmitting the remaining fragment frames after the medium-priority frame is transmitted. The first fragment frame includes: the transmitted portion of the current preemptible frame and the portion of the default fragment length at the beginning of the untransmitted portion.
[0155] The judgment and adjustment module 820 is configured to determine whether the delay of the current preemptible frame and the medium priority frame meets the delay requirement; if yes, then the subsequent preemptible frames are fragmented using the default fragmentation length to perform frame preemptive transmission; if no, then the default fragmentation length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragmentation length to perform frame preemptive transmission.
[0156] The latency requirements include: the sum of the first transmission latency of the first fragment of the currently preemptible frame, the second transmission latency of the medium-priority frame, and the third transmission latency of the remaining fragments of the currently preemptible frame is less than or equal to the maximum latency of the preemptible frame, and the sum of the second transmission latency and the waiting latency of the medium-priority frame is less than or equal to the maximum latency of the medium-priority frame.
[0157] The second frame preemptive transmission module 830 is configured to: when it is determined that the current frame to be transmitted is a high-priority frame, determine whether the currently preemptible frame being transmitted meets the second frame preemption condition; if so, perform frame preemptive transmission of the current preemptible frame according to the strict frame preemption mode; the strict frame preemption mode includes: transmitting the high-priority frame before transmitting the remaining part of the current preemptible frame, and transmitting the remaining part of the current preemptible frame after the high-priority frame transmission is completed.
[0158] According to embodiments of this disclosure, the first frame preemptive transmission module is further configured to:
[0159] When it is determined that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted does not meet the preemption condition of the first frame: if the untransmitted portion of the currently preemptible frame is less than or equal to the default fragment length, then the transmission of the currently preemptible frame continues until the transmission is completed, and then the medium-priority frame is transmitted; if the untransmitted portion of the currently preemptible frame is greater than the default fragment length, then the untransmitted portion of the currently preemptible frame is transmitted after the transmission of the medium-priority frame.
[0160] This disclosure allows for the selection of frame preemption modes, including loose frame preemption mode and strict frame preemption mode, to meet the frame latency requirements in different scenarios.
[0161] Figure 9 A structural block diagram of a receiving device according to an embodiment of the present disclosure is shown.
[0162] like Figure 9 As shown, the receiving device 900 includes an acquisition module 910 and a message sending module 920.
[0163] The acquisition module 910 is configured to, when the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted satisfies the first frame preemption condition, and performs frame preemption transmission of the currently preemptible frame according to the loose frame preemption mode, acquire the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node.
[0164] The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the untransmitted portion starting with the default fragment length.
[0165] The message sending module 920 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.
[0166] This disclosure allows the sending node (sending device) to easily obtain transmission delay information, and to determine whether frame preemption transmission can be performed according to the frame preemption loose mode based on the delay information, thereby improving network transmission efficiency.
[0167] The frame preemption method of this disclosure will be described below with a specific embodiment.
[0168] Figure 10 A complete flowchart of a frame preemption method for a time-sensitive network according to an embodiment of the present disclosure is shown.
[0169] like Figure 10 As shown, when the current frame to be transmitted is determined to be a medium-priority frame, it is determined whether the currently preemptible frame being transmitted meets the first frame preemption condition. If so, the current preemptible frame is preempted and transmitted according to the loose frame preemption mode. Then, it is determined whether the delay between the current preemptible frame and the medium-priority frame meets the delay requirement. If so, the next medium-priority frame to be transmitted is fragmented with the current default fragment length. If not, the default fragment length is adjusted, and the next medium-priority frame to be transmitted is fragmented with the adjusted default fragment length. If the currently preemptible frame being transmitted does not meet the first frame preemption condition, it is determined whether the untransmitted portion of the current preemptible frame is less than or equal to the default fragment length. If so, the current preemptible frame continues to be transmitted until transmission is complete, and then the medium-priority frame is transmitted. Otherwise, the transmitted and untransmitted portions of the current preemptible frame are sliced so that the untransmitted portion of the current preemptible frame is transmitted after the medium-priority frame is transmitted.
[0170] When it is determined that the current frame to be transmitted is a high-priority frame, it is determined whether the currently preemptible frame being transmitted meets the second frame preemption condition. If so, the current preemptible frame is preemptively transmitted according to the strict frame preemption mode; otherwise, the current preemptible frame is transmitted until the transmission is completed, and then the high-priority frame is transmitted.
[0171] The units or modules described in the embodiments of this disclosure can be implemented in software or programmable hardware. The described units or modules can also be located in a processor, and the names of these units or modules do not necessarily constitute a limitation on the unit or module itself.
[0172] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
Claims
1. A frame preemption method for a transmitting 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 current frame to be transmitted is a medium-priority frame, it is determined whether the currently preemptible frame being transmitted meets the first frame preemption condition. If so, the current preemptible frame is preempted and transmitted according to the loose frame preemption mode. The first frame preemption condition includes: the untransmitted portion of the currently preemptible 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; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment length allowed by the transmission protocol. The loose frame preemption mode includes: fragmenting the untransmitted portion 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. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the default fragment length at the beginning of the untransmitted portion. Determine whether the delay of the current preemptible frame and the medium-priority frame meets the delay requirements. The delay requirements include: the sum of the first transmission delay of the first fragment of the current preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments 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 and the waiting delay of the medium-priority frame is less than or equal to the maximum delay of the medium-priority frame. If yes, then the subsequent preemptible frames are fragmented using the default fragmentation length to perform frame preemptive transmission; if no, then the default fragmentation length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragmentation length to perform frame preemptive transmission.
2. 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 medium-priority frame, and the currently preemptible frame being transmitted does not meet the preemption condition of the first frame: If the untransmitted portion of the currently preemptible frame is less than or equal to the default fragment length, then continue transmitting the currently preemptible frame until transmission is complete, and then transmit the medium-priority frame. If the untransmitted portion of the currently preemptible frame is greater than the default fragment length, then the untransmitted portion of the currently preemptible frame is transmitted after the medium-priority frame is transmitted.
3. The method according to claim 1, characterized in that, The adjustment of the default fragment length includes: If 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, the default fragment length is increased 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, the default fragment length is reduced by a specified frame length.
4. The method according to claim 3, characterized in that: Even after increasing the default fragment length by a specified frame length, the following condition still holds true: 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 fragment length to a specified frame length, the following condition is still met: 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.
5. The method according to claim 1, characterized in that, The adjustment of the default fragment length includes: Multiple sample data are acquired, each sample data comes from two adjacent frame preemptions using a loose frame preemption mode. The sample data includes: the default fragment length used in the first frame preemption of the two frame preemptions using a loose frame preemption mode; the length of the first fragment of the preemptible frame and the first transmission delay in the first frame preemption; the length of the medium-priority frame to be transmitted and the second transmission delay and waiting delay in the first frame preemption; the length of the remaining fragments and the third transmission delay in the first frame preemption; and the adjusted default fragment length used in the second frame preemption of the two frame preemptions using a loose frame preemption mode. The delays of the preemptible frames and medium-priority frames in the first frame preemption do not meet the delay requirements, while the delays of the preemptible frames and medium-priority frames in the second frame preemption meet the delay requirements. The sample data is input into a neural network model for training to obtain a slice length adjustment model. The default fragment length used in frame preemption using the loose preemption mode when the current frame to be transmitted is a medium-priority frame, the length of the first fragment of the currently preemptible frame and the first transmission delay, the length of the current frame to be transmitted and the second transmission delay and waiting delay, the length of the remaining fragments of the currently preemptible frame and the third transmission delay are input into the fragment length adjustment model to obtain the default fragment length used in frame preemption using the loose preemption 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 requirement.
6. 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, it determines whether the currently preemptible frame being transmitted satisfies the second frame preemption condition. If so, the current preemptible frame is preemptively transmitted according to the strict frame preemption mode. The second frame preemption condition includes: the length of the remaining part of the currently preemptible frame being transmitted is greater than or equal to the minimum frame length allowed by the transmission protocol; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol. 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 has been transmitted.
7. The method according to claim 6, characterized in that, The method further includes: when the sending node determines that the current frame to be transmitted is a high-priority frame and the currently preemptible frame being transmitted does not meet the preemption condition of the second frame, continuing to transmit the currently preemptible frame until the transmission is completed, and then transmitting the high-priority frame.
8. The method according to claim 1, characterized in that, The sending node includes a preemptive 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 preemptible frame being transmitted meets the corresponding frame preemption condition based on the type of the currently to be transmitted frame. If yes, it sends a preemption permission response to the preemption layer processing module; if no, it sends a preemption rejection response to the preemption layer processing module. The type of the currently to be transmitted frame includes medium-priority frames and high-priority frames.
9. 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 medium-priority frame, and the frame being transmitted is a medium-priority frame or a high-priority frame, the current frame to be transmitted will be transmitted after the frame being transmitted has been completed.
10. The method according to claim 1, characterized in that, When the sending node fragments the untransmitted portion of the current preemptible frame according to the default fragment length, a cyclic redundancy code is appended to the end of the first fragment at the fragment 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 fragment position to obtain the remaining fragment frames of the current preemptible frame.
11. A frame preemption method for receiving nodes 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 current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted satisfies the first frame preemption condition, and performs frame preemption transmission of the currently preemptible frame according to the loose frame preemption mode, it obtains the first transmission delay of the first fragment of the currently preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame. The sending node then sends the first transmission delay, the second transmission delay, and the third transmission delay to the sending node. The sending node uses the first transmission delay, the second transmission delay, and the third transmission delay to determine the currently preemptible frame. The system checks whether the latency of the medium-priority frame meets the latency requirements, which include: the sum of the first transmission latency of the first fragment of the current preemptible frame, the second transmission latency of the medium-priority frame, and the third transmission latency of the remaining fragments of the current preemptible frame is less than or equal to the maximum latency of the preemptible frame, and the sum of the second transmission latency and the waiting latency of the medium-priority frame is less than or equal to the maximum latency of the medium-priority frame; if yes, then the subsequent preemptible frames are fragmented using the default fragment length for frame preemptive transmission; if no, then the default fragment length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragment length for frame preemptive transmission. The first frame preemption condition includes: the untransmitted portion of the currently preemptible 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; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol. The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the untransmitted portion starting with the default fragment length.
12. The method according to claim 11, characterized in that, 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, 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.
13. The method according to claim 11, characterized in that: The first transmission delay is the time from when the sending node starts sending the first fragment frame to when the receiving node completes receiving the first fragment frame; The second transmission delay is the time from when the sending node starts sending the medium-priority frame to when the receiving node completes receiving the medium-priority frame; The third transmission delay is the time it takes for the sending node to begin sending the remaining fragment frames to the receiving node to complete receiving the remaining fragment frames.
14. A transmitting device, characterized in that, include: The first frame preemptive transmission module is configured to, when determining that the current frame to be transmitted is a medium-priority frame, determine whether the currently preemptible frame being transmitted meets the first frame preemptive condition. If so, it preemptively transmits the current preemptible frame according to the loose frame preemptive mode. The first frame preemptive condition includes: the untransmitted portion of the currently preemptible 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 preemptible frame being transmitted is greater than or equal to the minimum fragment length allowed by the transmission protocol. The loose frame preemptive mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame transmission is completed. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the default fragment length at the beginning of the untransmitted portion. The judgment and adjustment module is configured to determine whether the delay of the current preemptible frame and the medium priority frame meets the delay requirement; if yes, then the subsequent preemptible frames are fragmented with the default fragment length to perform frame preemptive transmission; if no, then the default fragment length is adjusted, and the subsequent preemptible frames are fragmented with the adjusted default fragment length to perform frame preemptive transmission. The latency requirements include: the sum of the first transmission latency of the first fragment of the currently preemptible frame, the second transmission latency of the medium-priority frame, and the third transmission latency of the remaining fragments of the currently preemptible frame is less than or equal to the maximum latency of the preemptible frame, and the sum of the second transmission latency and the waiting latency of the medium-priority frame is less than or equal to the maximum latency of the medium-priority frame.
15. The transmitting device according to claim 14, characterized in that, The first frame preemptive transmission module is also configured as follows: When it is determined that the current frame to be transmitted is a medium-priority frame, and the currently preemptible frame being transmitted does not meet the preemption condition of the first frame: If the untransmitted portion of the currently preemptible frame is less than or equal to the default fragment length, then continue transmitting the currently preemptible frame until transmission is complete, and then transmit the medium-priority frame. If the untransmitted portion of the currently preemptible frame is greater than the default fragment length, then the untransmitted portion of the currently preemptible frame is transmitted after the medium-priority frame is transmitted.
16. The transmitting device according to claim 14, characterized in that, The device further includes a second frame preemptive transmission module; the second frame preemptive transmission module is configured to: When it is determined that the current frame to be transmitted is a high-priority frame, it is determined whether the currently preemptible frame being transmitted satisfies the second frame preemption condition. If so, the current preemptible frame is preemptively transmitted according to the strict frame preemption mode. The second frame preemption condition includes: the length of the remaining part of the currently preemptible frame being transmitted is greater than or equal to the minimum frame length allowed by the transmission protocol; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol. 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 has been transmitted.
17. A receiving device, characterized in that, include: The acquisition module is configured to, when the sending node determines that the current frame to be transmitted is a medium-priority frame, and the currently transmitted preemptible frame meets the first frame preemption condition, and performs frame preemption transmission of the currently preemptible frame according to the loose frame preemption mode, acquire the first transmission delay of the first fragment of the currently transmitted preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments of the currently preemptible frame, and send the first transmission delay, the second transmission delay, and the third transmission delay to the sending node. The first transmission delay, the second transmission delay, and the third transmission delay are used by the sending node to determine the current... Whether the delays of the preemptible frame and the medium-priority frame meet the delay requirements, the delay requirements include: the sum of the first transmission delay of the first fragment of the current preemptible frame, the second transmission delay of the medium-priority frame, and the third transmission delay of the remaining fragments 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 and the waiting delay of the medium-priority frame is less than or equal to the maximum delay of the medium-priority frame; if yes, then the subsequent preemptible frames are fragmented using the default fragment length for frame preemptive transmission; if no, then the default fragment length is adjusted, and the subsequent preemptible frames are fragmented using the adjusted default fragment length for frame preemptive transmission. The first frame preemption condition includes: the untransmitted portion of the currently preemptible 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; and the total frame length of the currently preemptible frame being transmitted is greater than or equal to the minimum fragment frame length allowed by the transmission protocol. The loose frame preemption mode includes: fragmenting the untransmitted portion 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; transmitting the first fragment frame; transmitting the medium-priority frame; and transmitting the remaining fragment frames after the medium-priority frame has been transmitted. The first fragment frame includes: the transmitted portion of the currently preemptible frame and the portion of the untransmitted portion starting with the default fragment length.
18. The receiving device according to claim 17, characterized in that, The device also 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.
19. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by a processor, the computer instructions implement the method described in any one of claims 1 to 13.
20. A computer program product comprising computer instructions, characterized in that, When executed by a processor, the computer instructions implement the method described in any one of claims 1 to 13.
Citation Information
Patent Citations
Time-sensitive network frame preemption optimization method
CN114500692A