A time-triggered network switch tt frame processing method
By configuring registers for each TT_VL and calculating the remainder to determine the transmission time, the problem of scarce switch resources was solved, and efficient utilization of logical resources was achieved.
Patent Information
- Application Number
- CN202211626053.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-12-15
AI Technical Summary
In time-triggered networks, the problem of switches configuring a large number of timers for each TT_VL leads to a shortage of logical resources.
The switch configures a set of registers for each TT_VL, and determines the transmission time point by calculating the remainder and comparing it with the time window, which simplifies the design and reduces the use of logical resources.
It simplifies the design of the switch, reduces the FPGA resource usage, and improves the utilization efficiency of logic resources.
Smart Images

Figure CN116248616B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computer communication, in particular to a time triggered network switch TT frame processing method. BACKGROUND
[0002] In the current time triggered network, data frames are forwarded through switches, and the switches need to receive and check time triggered frames TT frames according to a pre-planned time window, and send according to the planned time window. If the arrival time of the TT frame is within the planned time window, the frame passes the check, otherwise it is discarded; the frame that passes the TT time window check needs to be sent at the output port according to the configured time window. The time point of the arrival of the time triggered frame is random, and the window of the switch performs receiving and checking. The switch needs to configure a timer for each TT_VL to calculate the time window. When the number of TT_VL is large, the number of timers to be configured increases, resulting in a shortage of logical resources. SUMMARY
[0003] Therefore, the present application provides a time triggered network switch TT frame processing method, which solves the problems in the prior art and sends according to the calculated sending time point, simplifies the design, and reduces the use of FPGA resources.
[0004] The time triggered network switch TT frame processing method provided by the present application adopts the following technical scheme:
[0005] A time triggered network switch TT frame processing method, comprising:
[0006] The switch configures a group of registers for each TT_VL;
[0007] Calculate the remainder of the arrival time of the time triggered network switch TT data frame and the data frame transmission period;
[0008] Compare the remainder with the time window, and send the TT frame according to the calculated sending time point.
[0009] Optionally, the step of configuring a group of registers for each TT_VL by the switch comprises: configuring the receiving window start time, the receiving window end time, the data frame transmission period and the data transmission interval of the registers.
[0010] Optionally, after the step of configuring a group of registers for each TT_VL by the switch, the following steps are further included:
[0011] The switch establishes a timer, starts timing when the cluster period is 0, increments according to the synchronization time, and restarts timing from 0 when the next cluster period starts.
[0012] Optionally, the following steps are further included:
[0013] When the switch receiving port receives the TT frame, record the TT frame arrival time according to the time of the timer;
[0014] Find the window start receiving time, window end receiving time, data frame transmission period, data transmission interval of the VL corresponding to the TT frame ID.
[0015] Optionally, the step of calculating the remainder of the time-triggered network switch TT data frame arrival time and the data frame transmission period includes:
[0016] Set the remainder = TT frame arrival time;
[0017] If the remainder is greater than or equal to 200*data frame transmission period, calculate the remainder-(200*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0018] If the remainder is greater than or equal to 100*data frame transmission period, calculate the remainder-(100*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0019] If the remainder is greater than or equal to 50*data frame transmission period, calculate the remainder-(50*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0020] If the remainder is greater than or equal to 20*data frame transmission period, calculate the remainder-(20*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0021] If the remainder is greater than or equal to 10*data frame transmission period, calculate the remainder-(10*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0022] If the remainder is greater than or equal to 5*data frame transmission period, calculate the remainder-(5*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0023] If the remainder is greater than or equal to 2*data frame transmission period, calculate the remainder-2*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0024] If the remainder is greater than or equal to 1*data frame transmission period, calculate the remainder-(1*data frame transmission period), and assign the calculation value to the new remainder, and continue to calculate;
[0025] The remainder is less than the data frame transmission period, and the process ends.
[0026] Optionally, the step of using the remainder to compare with the time window and sending the TT frame according to the calculated sending time point includes:
[0027] Compare the remainder with the start time of the receiving window and the end time of the receiving window, if the remainder is greater than or equal to the start time of the receiving window and less than or equal to the end time of the receiving window, the frame passes the check, otherwise, the frame is filtered out;
[0028] For the frame that passes the check of the TT timing, calculate the sending time point, and send the sending time point and the corresponding TT frame to the output port;
[0029] The output port waits for a timer equal to the sending time point, and sends the TT frame.
[0030] Optionally, the sending time point = the arrival time of the TT frame + the data sending interval - (the remainder - the start time of the receiving window), and the sending time point and the TT frame are sent to the output port.
[0031] In summary, the present application includes the following beneficial technical effects:
[0032] Since the TT frames of a single port of the switch arrive in series, the arrival time of the received TT frame and the data cycle are based on a single port to obtain a remainder, the remainder is compared with the time window, and the sending time is sent according to the calculated sending time point, which can simplify the design.
[0033] The time for obtaining the remainder is determined, and when the remainder is not greater than 400*data frame transmission cycle, at most 8 clock ticks are used, and the remainder calculation can be realized before the shortest TT frame is received. Simplifying the design of TT frame related parameters, simplifying the logic design implementation, and greatly reducing the logic resource occupation BRIEF DESCRIPTION OF DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0035] Figure 1 It is a flow chart of the TT data frame time window check and sending according to the time window of the present application. DETAILED DESCRIPTION
[0036] The embodiments of the present application will be described in detail below with reference to the drawings.
[0037] Following, the embodiments of the present application are described through specific examples, and other advantages and effects of the present application can be easily understood by those skilled in the art from the disclosure. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific embodiments, and various modifications or changes can be made to the details in the specification based on different views and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0038] It should be noted that various aspects of the embodiments described below are within the scope of the appended claims. It should be apparent that the aspects described herein can be embodied in a wide variety of forms and that any specific structure and / or function described herein is merely illustrative. Based on the teachings herein one skilled in the art should appreciate that an aspect described herein can be implemented independently of any other aspects and that an aspect can be implemented both as any number of software standing on a computer readable medium and as an embodiment with hardware only. For example, an apparatus can be implemented using any number and combination of the aspects described herein. Additionally, an apparatus can be implemented using other structure and / or functionality not expressly described herein.
[0039] It should also be noted that the drawings included in the following description are included for illustrative purposes only and are not intended to limit the scope of the present application. The drawings are included to illustrate various aspects of the present application and to explain the principles and operation of the present application. The drawings are not intended to be exhaustive or to limit the present application to the precise form disclosed. One skilled in the art will recognize that the drawings are not necessarily to scale. The same or similar reference numerals in different drawings represent the same or similar elements.
[0040] In addition, in the following description, specific details are provided to thoroughly understand examples. However, one of ordinary skill in the art will understand that the described aspects can be practiced without these specific details.
[0041] The embodiments of the present application provide a time triggered network switch TT frame processing method.
[0042] As shown in the figure, a time triggered network switch TT frame processing method comprises: Figure 1
[0043] The switch configures a group of registers for each TT_VL.
[0044] The time triggered network switch TT data frame arrival time and data frame transmission cycle are calculated to obtain a remainder Trem.
[0045] The remainder is compared with the time window, and the TT frame is sent at the calculated sending time point.
[0046] The step of configuring a set of registers for each TT_VL by the switch includes configuring the register with a receiving window start time RxTs, a receiving window end time RxTe, a data frame transmission period Tp and a data sending interval Tint, the data sending interval representing the difference between the TT frame sending time point and the receiving window start time.
[0047] Before the step of calculating the remainder after the switch configures a set of registers for each TT_VL, the following steps are further included:
[0048] The switch sets up a timer, which starts counting when the cluster period is 0 and increments according to the synchronization time, and restarts counting from 0 when the next cluster period starts. When the switch receives a TT frame at the receiving port, the arrival time Ta of the TT frame is recorded according to the time of the timer. The window start receiving time, the window end receiving time, the data frame transmission period and the data sending interval of the VL corresponding to the TT frame are looked up.
[0049] The step of calculating the remainder of the arrival time of a TT data frame of a time-triggered network switch and the data frame transmission period includes:
[0050] The remainder is set to the arrival time of the TT frame.
[0051] If the remainder is greater than or equal to 200*the data frame transmission period, the remainder-(200*the data frame transmission period) is calculated, the calculated value is assigned to the new remainder, and the calculation is continued.
[0052] If the remainder is greater than or equal to 100*the data frame transmission period, the remainder-(100*the data frame transmission period) is calculated, the calculated value is assigned to the new remainder, and the calculation is continued.
[0053] If the remainder is greater than or equal to 50*the data frame transmission period, the remainder-(50*the data frame transmission period) is calculated, the calculated value is assigned to the new remainder, and the calculation is continued.
[0054] If the remainder is greater than or equal to 20*the data frame transmission period, the remainder-(20*the data frame transmission period) is calculated, the calculated value is assigned to the new remainder, and the calculation is continued.
[0055] If the remainder is greater than or equal to 10*the data frame transmission period, the remainder-(10*the data frame transmission period) is calculated, the calculated value is assigned to the new remainder, and the calculation is continued.
[0056] If the remainder is greater than or equal to 5*the data frame transmission period, the remainder-(5*the data frame transmission period) is calculated, the calculated value is assigned to the new remainder, and the calculation is continued.
[0057] If the remainder is greater than or equal to 2*data frame transmission period, calculate the remainder-2*data frame transmission period, and assign the calculated value to the new remainder, and continue the calculation.
[0058] If the remainder is greater than or equal to 1*data frame transmission period, calculate the remainder-(1*data frame transmission period), and assign the calculated value to the new remainder, and continue the calculation.
[0059] The remainder is less than the data frame transmission period, and the calculation is ended.
[0060] The step of transmitting the TT frame according to the calculated transmission time point includes:
[0061] The remainder is compared with the start time of the receiving window and the end time of the receiving window, and if the remainder is greater than or equal to the start time of the receiving window and less than or equal to the end time of the receiving window, the frame is passed, otherwise the frame is filtered.
[0062] The frame that passes the TT timing check is calculated for a transmission time point, and the transmission time point and the corresponding TT frame are transmitted to an output port.
[0063] The output port waits for a timer to be equal to the transmission time point, and the TT frame is transmitted.
[0064] The transmission time point is equal to the arrival time of the TT frame plus the data transmission interval minus the remainder minus the start time of the receiving window, and the transmission time point and the TT frame are transmitted to the output port.
[0065] In one embodiment, a time-triggered network switch TT frame processing method includes the following steps:
[0066] In the first step, the configuration information of the switch includes an integration period time of 10 ms, an integration period number of 5, two TT_VLs, and initial time window information as shown in Table 1.
[0067] Table 1
[0068]
[0069] In the second step, the switch establishes a timer Timer, and the cluster period is 10 ms*5=50 ms, and the Timer timing range is [0-50000 μs].
[0070] In the third step, when the receiving port of the switch receives the TT_VL_100 frame, the Timer value is recorded as Ta_100=10620 μs.
[0071] Fourth step, find the TT_VL_100 corresponding window start receive time RxTs_100 = 600, window end receive time RxTe_100 = 640, data frame transceive period Tp_100 = 10000, data transmit interval Tint_100 = 200.
[0072] Fifth step, calculate the frame arrival time Ta_100 divided by the data frame transceive period Tp_100 remainder Trem_100:
[0073] Ta_100 = 10620 greater than (1 * 10000) less than (2 * 10000), so Trem_100 = 10620 - 10000 = 620.
[0074] Sixth step, the remainder Trem_100 = 620 in the interval [600, 640], the frame through the check.
[0075] Seventh step, the frame TT_VL_100 through timing check, use the formula Tx = Ta + Tint - (Trem - RxTs) to calculate Tx_100 = 10620 + 200 - (620 - 600) = 10800, Tx_100 = 10800 and TT_VL_100 frame sent to the output port.
[0076] Eighth step, the output port waiting timer Timer equal to the transmit time point Tx_100 = 10800 μs, send the TT_VL_100 frame.
[0077] Ninth step, when the switch receiving port receives the TT_VL_101 frame, record Timer value for Ta_101 = 31050 μs.
[0078] Tenth step, find the TT_VL_101 corresponding window start receive time RxTs_101 = 2000, window end receive time RxTe_101 = 2040, data frame transceive period Tp_101 = 5000, data transmit interval Tint_101 = 300.
[0079] Eleventh step, calculate the frame arrival time Ta_101 divided by the data frame transceive period Tp_101 remainder Trem_101:
[0080] 1) Ta_101 = 31050 greater than (5 * 5000) less than (10 * 5000), calculate Trem_101 = 31050 - 25000 = 6050;
[0081] 2) Trem_101 = 6050 greater than (1 * 5000) less than (2 * 5000), calculate Trem_101 = 6050 - 5000 = 1050.
[0082] Twelfth step, remainder Trem_101 = 1050 not in the interval [2000, 2040], the frame is filtered.
[0083] The above merely provides a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which shall be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for processing TT frames in a time-triggered network switch, characterized in that, include: The switch configures a set of registers for each TT_VL; Calculate the remainder between the arrival time of a time-triggered (TT) data frame from a time-triggered network switch and the data frame transmission / reception cycle. The remainder is compared with the time window, and TT frames are sent according to the calculated sending time. After the switch configures a set of registers for each TT_VL, the following steps are also included: The switch establishes a timer that starts counting when the cluster period is 0, increments according to the synchronization time, and restarts counting from 0 when the next cluster period begins. The steps for calculating the remainder between the arrival time of a time-triggered (TT) data frame and the data frame transmission / reception period on a time-triggered network switch include: Set the remainder to the arrival time of the TT frame; If the remainder is greater than or equal to 200 * data frame transmission and reception cycle, calculate the remainder - (200 * data frame transmission and reception cycle), assign the calculated value to the new remainder, and continue the calculation; If the remainder is greater than or equal to 100 * data frame transmission and reception cycle, calculate the remainder - (100 * data frame transmission and reception cycle), assign the calculated value to the new remainder, and continue the calculation. If the remainder is greater than or equal to 50 * data frame transmission and reception cycle, calculate the remainder - (50 * data frame transmission and reception cycle), assign the calculated value to the new remainder, and continue the calculation. If the remainder is greater than or equal to 20 * data frame transmission and reception cycle, calculate the remainder - (20 * data frame transmission and reception cycle), assign the calculated value to the new remainder, and continue the calculation. If the remainder is greater than or equal to 10 * data frame transmission and reception cycle, calculate the remainder - (10 * data frame transmission and reception cycle), assign the calculated value to the new remainder, and continue the calculation. If the remainder is greater than or equal to 5 * data frame transmission and reception cycle, calculate the remainder - (5 * data frame transmission and reception cycle), assign the calculated value to the new remainder, and continue the calculation. If the remainder is greater than or equal to 2 * data frame transmission and reception period, calculate the remainder - (2 * data frame transmission and reception period), assign the calculated value to the new remainder, and continue the calculation; If the remainder is greater than or equal to 1 * data frame transmission and reception period, calculate the remainder - (1 * data frame transmission and reception period), assign the calculated value to the new remainder, and continue the calculation. The remainder is less than the data frame transmission / reception period, then the process ends.
2. The time-triggered network switch TT frame processing method according to claim 1, characterized in that, The steps for the switch to configure a set of registers for each TT_VL include: configuring the register's receive window start time, receive window end time, data frame transmission and reception period, and data transmission interval.
3. The time-triggered network switch TT frame processing method according to claim 1, characterized in that, It also includes the following steps: When the switch receives a TT frame, it records the arrival time of the TT frame according to the timer. Find the window start reception time, window end reception time, data frame transmission and reception period, and data transmission interval for the VL ID corresponding to the TT frame.
4. The time-triggered network switch TT frame processing method according to claim 1, wherein the step of comparing the remainder with the time window and sending the TT frame according to the calculated sending time point includes: Compare the remainder with the start time and end time of the receive window. If the remainder is greater than or equal to the start time and less than or equal to the end time of the receive window, the TT frame passes the check; otherwise, the TT frame is filtered. Calculate the transmission time point for the frames checked by TT timing, and send the transmission time point and the corresponding TT frame to the output port; The output port waits for the timer to equal the sending time point, then sends a TT frame.
5. The time-triggered network switch TT frame processing method according to claim 4, characterized in that, Sending time point = TT frame arrival time + data transmission interval - (remainder - receive window start time), send the sending time point and TT frame to the output port.
Citation Information
Patent Citations
Low-overhead time slot management system and management method based on virtual link receiving time point
CN114051004A