Search

KR-102963968-B1 - Apparatus and method for transmitting Ethernet frame

KR102963968B1KR 102963968 B1KR102963968 B1KR 102963968B1KR-102963968-B1

Abstract

A gateway device according to one embodiment includes an input unit configured to receive an Ethernet frame, a control unit configured to control the transmission order of the data based on priority information regarding the data included in the Ethernet frame, and an output unit configured to output a first transmission frame based on the transmission order. The control unit controls the transmission of the second transmission frame within the current transmission cycle when the time required for transmission of the second transmission frame is shorter than the remaining available transmission time remaining after transmitting the first transmission frame in the current transmission cycle, and when the time required for transmission of the second transmission frame is longer than the remaining available transmission time, it can determine whether to preempt the second transmission frame based on the priority of the data within the second transmission frame.

Inventors

  • 전재욱
  • 도영수
  • 오성빈
  • 김민호
  • 김종훈
  • 이정주
  • 박재범
  • 김민규
  • 홍형근

Assignees

  • 성균관대학교산학협력단

Dates

Publication Date
20260511
Application Date
20221229

Claims (20)

  1. In a gateway device, An input section configured to receive Ethernet frames; A control unit configured to control the transmission order of the data based on priority information for the data included in the Ethernet frame; and It includes an output unit configured to output a first transmission frame based on the above transmission order, The above control unit is, If the time required to transmit the second transmission frame is shorter than the remaining available transmission time remaining after transmitting the first transmission frame in the current transmission cycle, the second transmission frame is controlled to be transmitted within the current transmission cycle. If the time required for the transmission of the second transmission frame is longer than the remaining available transmission time, a decision is made regarding whether to preempt the second transmission frame based on the priority of the data within the second transmission frame, and A device characterized by controlling the transmission of the third transmission frame to be prioritized over the second transmission frame based on the fact that, when the time required for transmission of the second transmission frame is longer than the remaining transmission time and the priority of the data within the second transmission frame is less than a set value, the priority of the data within the third transmission frame is less than the set value and the size of the data within the third transmission frame is less than a first threshold value.
  2. delete
  3. delete
  4. In paragraph 1, The above first threshold value is, A device characterized by being set based on the average value of the data size in which the above-mentioned preemption occurs.
  5. In paragraph 1, A device characterized in that the priority of data in the second transmission frame and the priority of data in the third transmission frame are the same.
  6. In paragraph 1, The above control unit is, If the time required for the transmission of the third transmission frame is shorter than the remaining available transmission time, the third transmission frame is controlled to be transmitted within the current transmission cycle, and A device characterized by determining whether to pre-empt the third transmission frame by comparing the size of the data within the third transmission frame with a second threshold value when the time required for transmission of the third transmission frame is longer than the remaining transmission time.
  7. In paragraph 6, The above second threshold value is, A device characterized by being set to at least 120 bytes.
  8. In paragraph 6, The above control unit is, Based on the fact that the size of the data within the third transmission frame is greater than or equal to the second threshold, the preemption is performed on the third transmission frame, and A device characterized by controlling the transmission of the third transmission frame in a transmission cycle after the current transmission cycle based on the fact that the size of the data within the third transmission frame is less than the second threshold value.
  9. In a transmission method using a gateway device, Step of receiving an Ethernet frame; A step of controlling the transmission order of the data based on priority information for the data included in the Ethernet frame; and The method includes the step of outputting a first transmission frame based on the above transmission order, If the time required to transmit the second transmission frame is shorter than the remaining available transmission time remaining after transmitting the first transmission frame in the current transmission cycle, the second transmission frame is transmitted within the current transmission cycle, and If the time required for the transmission of the second transmission frame is longer than the remaining available transmission time, whether to preempt the second transmission frame is determined based on the priority of the data within the second transmission frame, and A method characterized by the fact that when the time required for transmission of the second transmission frame is longer than the remaining transmission time and the priority of the data within the second transmission frame is less than a set value, the third transmission frame is transmitted preferentially over the second transmission frame based on the fact that the priority of the data within the third transmission frame is less than the set value and the size of the data within the third transmission frame is less than a first threshold value.
  10. delete
  11. delete
  12. In Paragraph 9, The above first threshold value is, A method characterized by being set based on the average value of the data size in which the above preemption occurs.
  13. In Paragraph 9, A method characterized in that the priority of data in the second transmission frame and the priority of data in the third transmission frame are the same.
  14. In Paragraph 9, If the time required for the transmission of the third transmission frame is shorter than the remaining available transmission time, the third transmission frame is transmitted within the current transmission cycle, and A method characterized by determining whether to pre-empt the third transmission frame by comparing the size of the data within the third transmission frame with a second threshold value when the time required for transmission of the third transmission frame is longer than the remaining transmission time.
  15. In Paragraph 14, The above second threshold value is, A method characterized by being set to at least 120 bytes.
  16. In Paragraph 14, The pre-emption is performed on the third transmission frame based on the fact that the size of the data within the third transmission frame is greater than or equal to the second threshold, and A method characterized in that the third transmission frame is transmitted in a transmission cycle after the current transmission cycle based on the fact that the size of the data in the third transmission frame is less than the second threshold value.
  17. In a gateway device, An input section configured to receive Ethernet frames; A control unit configured to store the data in a corresponding buffer among a plurality of buffers based on at least one of priority information and length information for the data included in the Ethernet frame, and to control the transmission order of the data within the plurality of buffers; and It includes an output unit configured to output a first transmission frame based on the above transmission order, The above control unit is, If the time required to transmit a second transmission frame containing data stored in the first buffer among the plurality of buffers is shorter than the remaining transmission time remaining after transmitting the first transmission frame in the current transmission cycle, the second transmission frame is controlled to be transmitted within the current transmission cycle. If the time required for the transmission of the second transmission frame is longer than the remaining available transmission time, the preemption of the second transmission frame is determined based on the size of the data in the second buffer among the plurality of buffers, and A device characterized by controlling the transmission of the third transmission frame to be prioritized over the second transmission frame based on the fact that, when the time required for transmission of the second transmission frame is longer than the remaining transmission time and the priority of the data within the second transmission frame is less than a set value, the priority of the data within the third transmission frame is less than the set value and the size of the data within the third transmission frame is less than a first threshold value.
  18. In a transmission method using a gateway device, Step of receiving an Ethernet frame; A step of storing the data in a corresponding buffer among a plurality of buffers based on priority information for the data included in the Ethernet frame; A step of controlling the transmission order of data within the plurality of buffers; and The method includes the step of outputting a first transmission frame based on the above transmission order, If the time required to transmit a second transmission frame containing data stored in the first buffer among the plurality of buffers is shorter than the remaining transmission time remaining after transmitting the first transmission frame in the current transmission cycle, the second transmission frame is transmitted within the current transmission cycle, and If the time required for the transmission of the second transmission frame is longer than the remaining transmission time, whether to preempt the second transmission frame is determined based on the size of the data in the second buffer among the plurality of buffers, and A method characterized by controlling the transmission of the third transmission frame to be prioritized over the second transmission frame based on the fact that, when the time required for transmission of the second transmission frame is longer than the remaining transmission time and the priority of the data within the second transmission frame is less than a set value, the priority of the data within the third transmission frame is less than the set value and the size of the data within the third transmission frame is less than a first threshold value.
  19. As a computer program stored on a computer-readable recording medium, When the above computer program is executed by a processor, A step of receiving an Ethernet frame, and A step of controlling the transmission order of the data based on priority information for the data included in the Ethernet frame, and The transmission method includes an instruction for the processor to perform the step of outputting a first transmission frame based on the above transmission order, wherein If the time required to transmit the second transmission frame is shorter than the remaining available transmission time remaining after transmitting the first transmission frame in the current transmission cycle, the second transmission frame is transmitted within the current transmission cycle, and If the time required for the transmission of the second transmission frame is longer than the remaining available transmission time, whether to preempt the second transmission frame is determined based on the priority of the data within the second transmission frame, and A computer program characterized by controlling the transmission of the third transmission frame to be prioritized over the second transmission frame based on the fact that, when the time required for transmission of the second transmission frame is longer than the remaining transmission time and the priority of the data within the second transmission frame is less than a set value, the priority of the data within the third transmission frame is less than the set value and the size of the data within the third transmission frame is less than a first threshold value.
  20. As a computer-readable recording medium in which a computer program is stored, When the above computer program is executed by a processor, A step of receiving an Ethernet frame, and A step of controlling the transmission order of the data based on priority information for the data included in the Ethernet frame, and The transmission method includes an instruction for the processor to perform the step of outputting a first transmission frame based on the above transmission order, wherein If the time required to transmit the second transmission frame is shorter than the remaining available transmission time remaining after transmitting the first transmission frame in the current transmission cycle, the second transmission frame is transmitted within the current transmission cycle, and If the time required for the transmission of the second transmission frame is longer than the remaining available transmission time, whether to preempt the second transmission frame is determined based on the priority of the data within the second transmission frame, and A computer-readable recording medium characterized by controlling the transmission of the third transmission frame to be prioritized over the second transmission frame based on the fact that, when the time required for transmission of the second transmission frame is longer than the remaining transmission time and the priority of the data within the second transmission frame is less than a set value, the priority of the data within the third transmission frame is less than the set value and the size of the data within the third transmission frame is less than a first threshold value.

Description

Apparatus and method for transmitting Ethernet frame The present invention relates to an Ethernet frame transmission device and method, and more specifically, to a device and method capable of reducing the number of frame preemptions occurring when transmitting an Ethernet frame. While the reliability and performance of modern vehicles are improving due to the application of program-based control methods utilizing Electronic Control Units (ECUs), the structure of vehicle networks is becoming increasingly complex. Recently, central gateway-based networks are being used in vehicles, and there is a transition from domain-based to zone-based network structures. The IEEE 802.1 group has released the Time-Sensitive Networking (TSN) protocol to adapt to changing vehicle network systems. TSN uses the IEEE 802.1Qav, IEEE 802.1Qbv, and IEEE 802.1Qbu protocols to achieve limited (low) latency. Among these, estimating the guard band is essential for using the IEEE 802.1 Qav protocol. This is because if a frame is too long or transmission time is insufficient, the frame may exceed the guard band and encroach upon the scheduled traffic area where control data is scheduled to be transmitted. When the Time-Aware Shaper (TAS) algorithm is used to guarantee the regularity, losslessness, and latency of control data, a guard band is inevitably used. A guard band refers to a time region (an unused time region) where no information is transmitted to distinguish frames. However, when data such as video, audio, or text is transmitted via the Credit-Based Shaper (CBS) algorithm, if a frame is long and transmission begins close to the end of the frame transmission cycle, the transmitted frame may exceed the guard band and encroach upon the control data region of the next transmission cycle. Since control data consists of data sensitive to loss or delay, such a situation must be prevented. However, if the guard band is extended to prevent frames from encroaching upon the control data region, the waiting time during frame transmission becomes unnecessarily long, leading to a decrease in network system utilization. While using frame preemption is efficient for minimizing the guard band, its use consumes additional processing time to split or recombine a single frame. In addition, overhead occurs because a frame header is added to reassemble fragmented frames. Therefore, to improve network efficiency, a method is required to minimize unused areas within the guard band and reduce the frequency of frame preemption. FIG. 1 is a drawing showing a gateway device according to one embodiment of the present invention. FIG. 2 is a diagram showing the structure of an Ethernet frame used in a gateway device according to one embodiment of the present invention. FIG. 3 is a diagram showing the structure of a fragment frame generated when a gateway device according to one embodiment of the present invention performs frame pre-emption. FIGS. 4 to 8 are drawings for explaining the process of a gateway device determining the transmission order of frames according to an embodiment of the present invention. FIG. 9 is a diagram illustrating a method of transmitting a frame by a gateway device according to an embodiment of the present invention. FIG. 10 is a diagram showing the process of a gateway device receiving data according to one embodiment of the present invention. FIG. 11 is a diagram illustrating the process of a gateway device storing data according to one embodiment of the present invention. FIGS. 12 and FIGS. 13 are drawings illustrating the process of a gateway device processing data according to an embodiment of the present invention. The advantages and features of the present invention and the methods for achieving them will become clear by referring to the embodiments described below in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below but may be implemented in various different forms. These embodiments are provided merely to ensure that the disclosure of the present invention is complete and to fully inform those skilled in the art of the scope of the invention, and the present invention is defined only by the scope of the claims. We will briefly explain the terms used in this document and then describe the invention in detail. The terms used in this invention have been selected based on currently widely used general terms, taking into account their functions within the invention; however, these terms may vary depending on the intent of those skilled in the art, case law, the emergence of new technologies, etc. Additionally, in specific cases, terms have been arbitrarily selected by the applicant, and in such cases, their meanings will be described in detail in the relevant description of the invention. Therefore, the terms used in this invention should be defined not merely by their names, but based on their meanings and the overall content of the invention. When a