CN112332951A - Ethernet frame preemption method, device, equipment and storage medium - Google Patents

Ethernet frame preemption method, device, equipment and storage medium Download PDF

Info

Publication number
CN112332951A
CN112332951A CN202011311912.2A CN202011311912A CN112332951A CN 112332951 A CN112332951 A CN 112332951A CN 202011311912 A CN202011311912 A CN 202011311912A CN 112332951 A CN112332951 A CN 112332951A
Authority
CN
China
Prior art keywords
frame
target data
data frame
sent
bytes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011311912.2A
Other languages
Chinese (zh)
Other versions
CN112332951B (en
Inventor
李占斌
徐凌云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kungao New Core Microelectronics Jiangsu Co ltd
Original Assignee
Kungao New Core Microelectronics Jiangsu Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kungao New Core Microelectronics Jiangsu Co ltd filed Critical Kungao New Core Microelectronics Jiangsu Co ltd
Priority to CN202011311912.2A priority Critical patent/CN112332951B/en
Publication of CN112332951A publication Critical patent/CN112332951A/en
Application granted granted Critical
Publication of CN112332951B publication Critical patent/CN112332951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of time-sensitive networks, in particular to a method, a device, equipment and a storage medium for preempting Ethernet frames. The method comprises the steps of obtaining a time sensitive frame and a target data frame which is being sent, wherein the target data frame comprises a plurality of fragment frames; determining the remaining number of bytes of the target data frame to be sent and the remaining number of bytes of the fragmented frame being sent in the target data frame, wherein the remaining number of bytes of the target data frame to be sent is a first remaining number of bytes, and the remaining number of bytes of the fragmented frame being sent is a second remaining number of bytes; when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value, caching the target data frame, interrupting the sending of the target data frame, and sending the time-sensitive frame; and after the time sensitive frame is sent, resending the cached target data. The invention can provide lower time delay guarantee for the instant sending of the time sensitive frame.

Description

Ethernet frame preemption method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of time-sensitive networks, in particular to a method, a device, equipment and a storage medium for preempting Ethernet frames.
Background
With the continuous integration of information technology and operation technology, the demand for a unified network architecture becomes urgent. The development of intelligent manufacturing, industrial internet of things and big data all make the integration more urgent. The different requirements of information technology and operation technology for communication have also led to a great obstacle for merging these two fields for a long time: data in the internet and information fields requires more bandwidth, and real-time and certainty are critical to the industry. These data cannot usually be transmitted in the same network. Therefore, finding a unified solution has become a necessary requirement for industry convergence.
Time-Sensitive Networking (TSN) is a new industrial communication technology that is being actively promoted by the international industry at present. Time sensitive networks allow periodic and aperiodic data to be transmitted in the same network, making standard ethernet have the advantage of deterministic transmission and have become a key technology of widespread focus through vendor independent standardization processes.
Time sensitive networks are a series of standards developed by the TSN working group that define the mechanism for time sensitive transmission over ethernet. IEEE802.3br introduces a technical scheme of MAC frame preemption, when a port has time sensitive frames to be transmitted, the common frame in transmission can be fragmented and cut off, the time sensitive frame is preferentially transmitted, and after the time sensitive frame is transmitted, the rest part of the common frame is transmitted, but extra data flow is introduced in the fragmentation process. In order to introduce as little extra data traffic as possible, the existing frame preemption standard has a limit on the length of the frames to be fragmented, the data fragmented by each frame cannot be smaller than 64 bytes in length, and no extra data traffic is added except for the data for the mCRC (Cyclic Redundancy Check). This results in that in the worst case, the time-sensitive frame needs to wait for the end of the transmission of the normal frame of a fixed byte before starting transmission, which causes extra uncertain delay for the transmission of the time-sensitive frame.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method, a device, equipment and a storage medium for preempting Ethernet frames, which can provide lower time delay guarantee for the instant transmission of time-sensitive frames when being applied.
In a first aspect, the present invention provides a method for preempting ethernet frames, including:
acquiring a time sensitive frame and a target data frame being sent, wherein the target data frame comprises a plurality of fragment frames;
determining the remaining number of bytes of the target data frame to be sent and the remaining number of bytes of the fragmented frame being sent in the target data frame, wherein the remaining number of bytes of the target data frame to be sent is a first remaining number of bytes, and the remaining number of bytes of the fragmented frame being sent is a second remaining number of bytes;
when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value, caching the target data frame, interrupting the sending of the target data frame, and sending the time-sensitive frame;
and after the time sensitive frame is sent, the cached target data frame is sent again.
Based on the technical content, when the first remaining byte number exceeds a first set threshold and the second remaining byte number exceeds a second set threshold, the target data frame is buffered, then the transmission of the target data frame is directly interrupted, the transmission of the time sensitive frame is rapidly carried out, lower time delay guarantee is provided for the time sensitive frame, the transmitted part of the interrupted target data frame is usually discarded by a receiving end because the frame check sequence check does not pass, the processing of the receiving end cannot be influenced, and the buffered target data frame is retransmitted after the time sensitive frame is transmitted, so that the frame preemption of the time sensitive frame is guaranteed not to lose the target data frame which is transmitted originally.
In one possible design, the interrupting the transmission of the target data frame for the transmission of the time-sensitive frame includes:
interrupting the transmission of the target data frame;
generating one byte of interrupt data for sending, and combining the interrupt data with the end of the sent part of the target data frame to ensure that the end four bytes for carrying out frame check sequence check are different from a frame check sequence check code;
the transmission of the time sensitive frame occurs after the completion of the transmission of the interrupted data.
Based on the technical content, after the transmission of the target data frame is interrupted, the data part of the target data frame which is transmitted may be judged to be accepted by the receiving end as a normal frame because the last four bytes are the same as the frame check sequence check code, and at this time, one byte of interrupted data is generated for transmission, so that after the interrupted data is combined to the end of the transmitted part of the target data frame, the last four bytes for carrying out the frame check sequence check are different from the frame check sequence check code, thereby effectively preventing the situation, and the transmission of the interrupted data of one byte cannot generate unacceptable delay influence on the transmission of the time-sensitive frame.
In one possible design, the interrupting the transmission of the target data frame for the transmission of the time-sensitive frame includes:
interrupting the transmission of the target data frame;
generating interrupted data with the same number of bytes as a frame check sequence check code, and sending the interrupted data, wherein the interrupted data is different from the frame check sequence check code;
the transmission of the time sensitive frame occurs after the completion of the transmission of the interrupted data.
Based on the technical content, after the transmission of the target data frame is interrupted, the data part of the target data frame which is transmitted can be judged to be accepted by the receiving end as a normal frame because the last four bytes are the same as the frame check sequence check code, and at the moment, the interrupted data with the same number of bytes as the frame check sequence check code is generated for transmission, so that the interrupted data is different from the frame check sequence check code, and the condition can be effectively avoided.
In one possible design, when the second remaining number of bytes does not exceed the second set threshold:
carrying out fragmentation processing on the target data frame, wherein the fragmentation mode conforms to the IEEE802.3br standard;
after the target data frame is sliced, sending a time sensitive frame;
and after the time sensitive frame is sent, sending the residual data of the target data frame.
Based on the technical content, when the fragmentation frame which is being sent by the target data frame has more bytes and the sending of the remaining bytes does not generate unacceptable delay influence on the sending of the time sensitive frame, the fragmentation processing can be performed on the target data frame firstly, the remaining part of the target data frame is reserved, then the time sensitive frame is sent, and the remaining data of the target data frame is sent after the time sensitive frame is sent, so that the smaller sending delay of the time sensitive frame can be ensured, the fragmentation frame which sends more bytes can be well reserved, and the sending bandwidth cannot be wasted because the sent bytes are discarded.
In one possible design, when the first remaining byte number does not exceed the first set threshold, monitoring whether the target data frame being transmitted is completely transmitted, and after the target data frame is judged to be completely transmitted, transmitting the time-sensitive frame.
Based on the technical content, when the number of remaining bytes of the whole target data frame is small, the time-sensitive frame is sent after the sending of the currently sent target data frame is finished, so that the time-sensitive frame is sent with reasonable and acceptable time delay, and the target data frame being sent is not influenced.
In one possible design, the first set threshold and the second set threshold are equal.
Based on the technical content, the delay of a few bytes does not have great influence on the sending of the time sensitive frame, and the method belongs to reasonable and acceptable time delay.
In a second aspect, the present invention provides an ethernet frame preemption device, including:
the device comprises an acquisition unit, a sending unit and a processing unit, wherein the acquisition unit is used for acquiring a time sensitive frame and a target data frame which is being sent, and the target data frame comprises a plurality of fragment frames;
the judging unit is used for judging the remaining byte number of the target data frame to be sent and the remaining byte number of the fragmented frame being sent in the target data frame, wherein the remaining byte number of the target data frame to be sent is a first remaining byte number, and the remaining byte number of the fragmented frame being sent is a second remaining byte number;
the interruption unit is used for caching the target data frame and interrupting the sending of the target data frame when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value;
and the sending unit is used for sending the time sensitive frame and resending the target data frame buffered by the interrupting unit after the time sensitive frame is sent.
In one possible design, the apparatus further includes a fragmentation unit, where the fragmentation unit is configured to perform fragmentation processing on the target data frame when the second remaining number of bytes does not exceed a second set threshold, and a fragmentation mode complies with an ieee802.3br standard; the sending unit is further configured to send the time-sensitive frame after the target data frame is fragmented, and send the remaining data of the target data frame after the time-sensitive frame is sent.
In a third aspect, the present invention provides an ethernet frame preemption device, including:
a memory to store instructions;
a processor configured to read the instructions stored in the memory and execute the method of any of the first aspects according to the instructions.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects described above.
In a fifth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects above.
The invention has the beneficial effects that:
when the number of remaining bytes of a target data frame to be sent and the number of remaining bytes of a fragment frame being sent in the target data frame are large, the method buffers the target data frame, directly interrupts the sending of the target data frame, and quickly sends the time-sensitive frame, so that lower time delay guarantee is provided for the time-sensitive frame, the sent part of the interrupted target data frame is usually discarded by a receiving end because the frame check sequence check does not pass, and the buffered target data frame is sent again after the time-sensitive frame is sent, so that the frame preemption of the time-sensitive frame can not cause the target data frame being sent to be lost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow diagram of the process of the present invention;
FIG. 2 is a schematic view of the apparatus according to the present invention;
FIG. 3 is a schematic diagram of the apparatus of the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. Specific structural and functional details disclosed herein are merely illustrative of example embodiments of the invention. This invention may, however, be embodied in many alternate forms and should not be construed as limited to the embodiments set forth herein.
It should be understood that the terms first, second, etc. are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance. Although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, B exists alone, and A and B exist at the same time, and the term "/and" is used herein to describe another association object relationship, which means that two relationships may exist, for example, A/and B, may mean: a alone, and both a and B alone, and further, the character "/" in this document generally means that the former and latter associated objects are in an "or" relationship.
It is to be understood that in the description of the present invention, the terms "upper", "vertical", "inside", "outside", and the like, refer to an orientation or positional relationship that is conventionally used for placing the product of the present invention, or that is conventionally understood by those skilled in the art, and are used merely for convenience in describing and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and therefore should not be considered as limiting the present invention.
It will be understood that when an element is referred to as being "connected," "connected," or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly adjacent" or "directly coupled" to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a similar manner (e.g., "between … …" versus "directly between … …", "adjacent" versus "directly adjacent", etc.).
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," and "connected" are to be construed broadly, e.g., as meaning fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, numbers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
In the following description, specific details are provided to facilitate a thorough understanding of example embodiments. However, it will be understood by those of ordinary skill in the art that the example embodiments may be practiced without these specific details. For example, systems may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, well-known processes, structures and techniques may be shown without unnecessary detail in order to avoid obscuring example embodiments.
Example 1:
the present embodiment provides an ethernet frame preemption method, as shown in fig. 1, including the following steps:
s101, a time sensitive frame and a target data frame which is being sent are obtained, and the target data frame comprises a plurality of fragment frames.
The method comprises a data acquisition step, wherein an acquired time sensitive frame is a preemption frame of a target data frame which is being transmitted, and the acquired target data frame is a complete data frame which comprises an unsent part and a transmitted part.
S102, judging the remaining byte number of the target data frame to be sent and the remaining byte number of the segmented frame being sent in the target data frame, wherein the remaining byte number of the target data frame to be sent is a first remaining byte number, and the remaining byte number of the segmented frame being sent is a second remaining byte number.
The target data frame is composed of several fragmented frames, and the data length of each fragmented frame is usually not less than 60 bytes.
And S103, when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value, caching the target data frame, interrupting the sending of the target data frame, and sending the time-sensitive frame.
In specific implementation, the step of interrupting the transmission of the target data frame and the step of transmitting the time-sensitive frame includes: interrupting the transmission of the target data frame; and then the transmission of the time sensitive frame. Or interrupting the transmission of the target data frame; generating one byte of interrupt data for sending, and combining the interrupt data with the end of the sent part of the target data frame to ensure that the end four bytes for carrying out frame check sequence check are different from a frame check sequence check code; the transmission of the time sensitive frame occurs after the completion of the transmission of the interrupted data. Or interrupting the transmission of the target data frame; generating interrupted data with the same number of bytes as a frame check sequence check code, and sending the interrupted data, wherein the interrupted data is different from the frame check sequence check code; the transmission of the time sensitive frame occurs after the completion of the transmission of the interrupted data.
After the transmission of the target data frame is interrupted, the data part of the target data frame which is transmitted can be judged to be accepted by the receiving end as a normal frame because the last bytes are the same as the corresponding frame check sequence check code, so that corresponding interrupted data is generated for transmission, and the condition can be effectively avoided.
And S104, after the time sensitive frame is sent, the cached target data frame is sent again.
The fragmentation mode of the ieee802.3br standard cannot immediately fragment in some cases, for example, the transmitted data length of a fragmented frame is less than 60 bytes. In these cases, time sensitive frames must wait for the normal frame to continue to be transmitted until the fragmentation requirement is met or transmission is complete, and in the worst case wait for a data transmission time of at least 123 bytes in length. On the basis of the standard based on the IEEE802.3br, the embodiment introduces a processing mode of directly interrupting a common frame, and provides a lower time delay guarantee for a time-sensitive frame. The interrupt processing can be compatible with a receiving end meeting the IEEE802.3br standard, and the problems of compatibility and interoperability do not exist.
Alternatively, in step S103, when the second remaining number of bytes does not exceed the second set threshold:
carrying out fragmentation processing on the target data frame, wherein the fragmentation mode conforms to the IEEE802.3br standard;
after the target data frame is sliced, sending a time sensitive frame;
and after the time sensitive frame is sent, sending the residual data of the target data frame.
The processing mode of directly interrupting the target data frame brings lower delay guarantee to the time sensitive frame and increases the consumption of bandwidth, so when the decision is directly interrupted, the threshold value of the decision basis can be set according to the actual requirement, for example, when the fragment frame has sent 58 bytes, the fragment can be completed only by 6 bytes, if the fragment frame is sent again, the sending bandwidth of 58 bytes can be wasted, and when the 6 bytes can meet the delay requirement of the time sensitive frame, the corresponding fragment processing can be performed instead of the interruption processing.
And when the first residual byte number does not exceed the first set threshold value, monitoring whether the target data frame being sent is sent completely, and sending the time-sensitive frame after judging that the target data frame is sent completely.
Example 2:
the present embodiment provides an ethernet frame preemption device, as shown in fig. 2, including:
the device comprises an acquisition unit, a sending unit and a processing unit, wherein the acquisition unit is used for acquiring a time sensitive frame and a target data frame which is being sent, and the target data frame comprises a plurality of fragment frames;
the judging unit is used for judging the remaining byte number of the target data frame to be sent and the remaining byte number of the fragmented frame being sent in the target data frame, wherein the remaining byte number of the target data frame to be sent is a first remaining byte number, and the remaining byte number of the fragmented frame being sent is a second remaining byte number;
the interruption unit is used for caching the target data frame and interrupting the sending of the target data frame when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value;
and the sending unit is used for sending the time sensitive frame and resending the target data frame buffered by the interrupting unit after the time sensitive frame is sent.
In one possible design, the apparatus further includes a fragmentation unit, where the fragmentation unit is configured to perform fragmentation processing on the target data frame when the second remaining number of bytes does not exceed a second set threshold, and a fragmentation mode complies with an ieee802.3br standard; the sending unit is further configured to send the time-sensitive frame after the target data frame is fragmented, and send the remaining data of the target data frame after the time-sensitive frame is sent.
Example 3:
the present embodiment provides an ethernet frame preemption device, as shown in fig. 3, including:
a memory to store instructions;
and the processor is used for reading the instruction stored in the memory and executing the Ethernet frame preemption method in the embodiment 1 according to the instruction.
The Memory may include, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Flash Memory (Flash Memory), a First In First Out (FIFO), a First In Last Out (FILO), and/or the like; the processor may include, but is not limited to, a single chip, an ARM processor, and the like.
Example 4:
the present embodiment provides a computer-readable storage medium having stored thereon instructions that, when executed on a computer, cause the computer to perform the ethernet frame preemption method of embodiment 1. The computer-readable storage medium refers to a carrier for storing data, and may include, but is not limited to, floppy disks, optical disks, hard disks, flash memories, flash disks and/or Memory sticks (Memory sticks), etc., and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
Example 5:
the present embodiment provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method for ethernet frame preemption described in embodiment 1. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the embodiments of the method may be implemented by hardware related to program instructions, the program may be stored in a computer-readable storage medium, and when executed, the program performs the steps including the embodiments of the method, and the storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus and devices of the embodiments. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above-described alternative embodiments, and various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.
The present invention is not limited to the above-described alternative embodiments, and various other forms of products can be obtained by anyone in light of the present invention. The above detailed description should not be taken as limiting the scope of the invention, which is defined in the claims, and which the description is intended to be interpreted accordingly.

Claims (10)

1. A method for preempting ethernet frames, comprising:
acquiring a time sensitive frame and a target data frame being sent, wherein the target data frame comprises a plurality of fragment frames;
determining the remaining number of bytes of the target data frame to be sent and the remaining number of bytes of the fragmented frame being sent in the target data frame, wherein the remaining number of bytes of the target data frame to be sent is a first remaining number of bytes, and the remaining number of bytes of the fragmented frame being sent is a second remaining number of bytes;
when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value, caching the target data frame, interrupting the sending of the target data frame, and sending the time-sensitive frame;
and after the time sensitive frame is sent, the cached target data frame is sent again.
2. An ethernet frame preemption method of claim 1, wherein said interrupting the transmission of the target data frame for the transmission of the time sensitive frame comprises:
interrupting the transmission of the target data frame;
generating one byte of interrupt data for sending, and combining the interrupt data with the end of the sent part of the target data frame to ensure that the end four bytes for carrying out frame check sequence check are different from a frame check sequence check code;
the transmission of the time sensitive frame occurs after the completion of the transmission of the interrupted data.
3. An ethernet frame preemption method of claim 1, wherein said interrupting the transmission of the target data frame for the transmission of the time sensitive frame comprises:
interrupting the transmission of the target data frame;
generating interrupted data with the same number of bytes as a frame check sequence check code, and sending the interrupted data, wherein the interrupted data is different from the frame check sequence check code;
the transmission of the time sensitive frame occurs after the completion of the transmission of the interrupted data.
4. An ethernet frame preemption method of claim 1, wherein, if the second remaining number of bytes does not exceed a second set threshold:
carrying out fragmentation processing on the target data frame, wherein the fragmentation mode conforms to the IEEE802.3br standard;
after the target data frame is sliced, sending a time sensitive frame;
and after the time sensitive frame is sent, sending the residual data of the target data frame.
5. An ethernet frame preemption method according to claim 1, wherein when the first remaining number of bytes does not exceed a first set threshold, monitoring whether the target data frame being transmitted is completely transmitted, and after determining that the target data frame is completely transmitted, transmitting the time-sensitive frame.
6. An ethernet frame preemption method of claim 1, wherein the first set threshold and the second set threshold are equal.
7. An ethernet frame preemption device, comprising:
the device comprises an acquisition unit, a sending unit and a processing unit, wherein the acquisition unit is used for acquiring a time sensitive frame and a target data frame which is being sent, and the target data frame comprises a plurality of fragment frames;
the judging unit is used for judging the remaining byte number of the target data frame to be sent and the remaining byte number of the fragmented frame being sent in the target data frame, wherein the remaining byte number of the target data frame to be sent is a first remaining byte number, and the remaining byte number of the fragmented frame being sent is a second remaining byte number;
the interruption unit is used for caching the target data frame and interrupting the sending of the target data frame when the first remaining byte number exceeds a first set threshold value and the second remaining byte number exceeds a second set threshold value;
and the sending unit is used for sending the time sensitive frame and resending the target data frame buffered by the interrupting unit after the time sensitive frame is sent.
8. The device according to claim 7, further comprising a fragmentation unit, configured to perform fragmentation processing on the target data frame when the second remaining number of bytes does not exceed a second set threshold, where the fragmentation mode complies with an ieee802.3br standard; the sending unit is further configured to send the time-sensitive frame after the target data frame is fragmented, and send the remaining data of the target data frame after the time-sensitive frame is sent.
9. An ethernet frame preemption device, comprising:
a memory to store instructions;
a processor for reading the instructions stored in the memory and executing the method of any one of claims 1-6 in accordance with the instructions.
10. A computer-readable storage medium having stored thereon instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-6.
CN202011311912.2A 2020-11-20 2020-11-20 Ethernet frame preemption method, device, equipment and storage medium Active CN112332951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011311912.2A CN112332951B (en) 2020-11-20 2020-11-20 Ethernet frame preemption method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011311912.2A CN112332951B (en) 2020-11-20 2020-11-20 Ethernet frame preemption method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112332951A true CN112332951A (en) 2021-02-05
CN112332951B CN112332951B (en) 2022-06-24

Family

ID=74321383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011311912.2A Active CN112332951B (en) 2020-11-20 2020-11-20 Ethernet frame preemption method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112332951B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556289A (en) * 2021-07-26 2021-10-26 南方电网数字电网研究院有限公司 Data sending method and device and field programmable gate array
CN114640639A (en) * 2022-01-24 2022-06-17 北京邮电大学 Frame transmission method and electronic equipment
CN114884890A (en) * 2022-04-25 2022-08-09 中国电子科技集团公司第五十八研究所 Time-sensitive network data frame preemption method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170033945A1 (en) * 2015-07-30 2017-02-02 Lsis Co., Ltd. Apparatus and method for detecting ethernet frame
CN108242977A (en) * 2017-12-26 2018-07-03 深圳市超思维电子股份有限公司 A kind of data processing method, data processing equipment and electronic equipment
CN111147184A (en) * 2019-12-23 2020-05-12 西安云维智联科技有限公司 Ethernet transmitting and receiving equipment and transmission device supporting multi-service preemption and continuous transmission

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170033945A1 (en) * 2015-07-30 2017-02-02 Lsis Co., Ltd. Apparatus and method for detecting ethernet frame
CN108242977A (en) * 2017-12-26 2018-07-03 深圳市超思维电子股份有限公司 A kind of data processing method, data processing equipment and electronic equipment
CN111147184A (en) * 2019-12-23 2020-05-12 西安云维智联科技有限公司 Ethernet transmitting and receiving equipment and transmission device supporting multi-service preemption and continuous transmission

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556289A (en) * 2021-07-26 2021-10-26 南方电网数字电网研究院有限公司 Data sending method and device and field programmable gate array
CN114640639A (en) * 2022-01-24 2022-06-17 北京邮电大学 Frame transmission method and electronic equipment
CN114640639B (en) * 2022-01-24 2023-08-18 北京邮电大学 Frame transmission method and electronic equipment
CN114884890A (en) * 2022-04-25 2022-08-09 中国电子科技集团公司第五十八研究所 Time-sensitive network data frame preemption method

Also Published As

Publication number Publication date
CN112332951B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN112332951B (en) Ethernet frame preemption method, device, equipment and storage medium
US9166917B2 (en) Link layer preemption
US9313140B2 (en) Packet preemption for low latency
EP2724505B1 (en) Header compression with a code book
CN109257143B (en) Method for fragmenting data packets for transmission in network transmission protocol with length limitation
CN113746744A (en) Method, device, equipment, system and storage medium for controlling network congestion
JP7046979B2 (en) Data transmission methods, equipment, systems, and devices
CN112565105A (en) Method, device and equipment for reducing time-sensitive frame forwarding time delay
CN115037700A (en) Complex network data packet transmission method, system, terminal and storage medium
US8665867B2 (en) Method and device for processing switching control command
CN114884890A (en) Time-sensitive network data frame preemption method
CN109728879B (en) Synchronous error correction method for serial burst access application layer SLIP protocol message
CN111224895A (en) Time-sensitive message transmission method, device and equipment in HSR network
CN112261142B (en) RDMA network data retransmission method, device and FPGA
CN111740922B (en) Data transmission method, device, electronic equipment and medium
CN111107182B (en) MAC address synchronization method, device, system, equipment and medium
CN115695576A (en) Data frame conversion method and device compatible with TSN frame preemption protocol
US11533121B2 (en) Method and apparatus for packet wash in networks
US20150047027A1 (en) Apparatus and method for transmitting and receiving messages
CN117014967A (en) Mobile communication system, method and user plane node
CN111585741B (en) Method for accessing non-time sensitive network data into time sensitive network
US9584410B2 (en) System and method for selecting layer-2 adapter
CN116893987B (en) Hardware acceleration method, hardware accelerator and hardware acceleration system
US20170265103A1 (en) Communication device, communication method, and non-transitory computer readable medium
WO2024017369A1 (en) Data packet processing method and apparatus, electronic device, and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant