CN115834502B - Control method for frame transmission time of time-sensitive network system - Google Patents
Control method for frame transmission time of time-sensitive network system Download PDFInfo
- Publication number
- CN115834502B CN115834502B CN202310153839.8A CN202310153839A CN115834502B CN 115834502 B CN115834502 B CN 115834502B CN 202310153839 A CN202310153839 A CN 202310153839A CN 115834502 B CN115834502 B CN 115834502B
- Authority
- CN
- China
- Prior art keywords
- time
- end system
- network
- tsn network
- transmission delay
- 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.)
- Active
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The application discloses a control method for frame sending time of a time sensitive network end system, which sends a time sensitive message to an end system through an API application program; the TSN network equipment sends a time notification control frame to a specific end system at a specific moment according to the configuration information; the end system senses the time of the TSN network by receiving the time announcement control frame and controls the time of injecting the time sensitive message into the TSN network; the time announcement control frame sending mechanism of the TSN network equipment and the end system work cooperatively to realize the time alignment of the end system and the TSN network together, so that the time sensitive network message is injected into the TSN network according to the appointed TSN network time without modifying the existing operating system time, the development difficulty is reduced, and the development period is shortened.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method for controlling frame transmission time of a time-sensitive network system.
Background
The TSN is a new generation network standard based on ethernet, and has functions of time synchronization, delay guarantee, etc. to ensure real-time performance, and the characteristic of delay certainty of the TSN network must depend on the following three conditions: (1) formulating a correct planning and scheduling scheme; (2) Controlling the time of injecting the time sensitive network message into the TSN network; and (3) precisely controlling the filtering and sending time of the flow. The core idea of controlling the time of the time-sensitive network message injection into the TSN network is that an end system needs to acquire the time of the TSN network, and the time-sensitive network message injection into the TSN network is controlled according to the time of the TSN network; because the end system cannot acquire the TSN network time, the time sensitive message cannot be ensured to be injected into the TSN network according to the designated TSN network time.
In the prior art, by modifying the existing operating system time on the end system, the operating system time on the end system is synchronized with the TSN network time, so that the time-sensitive network message is injected into the TSN network according to the designated TSN network time; however, the prior art has the problem that some end systems do not support the user to modify the operating system time; the method also has the problems that the development difficulty is high, the development period is long, and the deployment is difficult in a short period because the one-to-one adaptation development is required according to different processors on the end system.
Therefore, it is a urgent problem for those skilled in the art to provide a method and a system for controlling the frame transmission time of a time-sensitive network end system, which can not modify the existing operating system time on the end system, reduce the development difficulty and shorten the development period.
Disclosure of Invention
The invention provides a control method for the frame sending time of a time-sensitive network end system, which can realize that time-sensitive network messages are injected into a TSN network according to the appointed TSN network time by not modifying the existing operation system time on the end system, thereby effectively reducing the development difficulty and shortening the development period.
The technical scheme provided by the invention is as follows:
a method for controlling the frame transmission time of a time-sensitive network system comprises the following steps:
s1, an API application program sends a time sensitive message to an end system;
s2, the TSN network equipment sends a time notification control frame to the terminal system according to preset configuration information;
s3, the end system injects the time sensitive message into a TSN network according to the time of the TSN network;
wherein the TSN network time is obtained by the time announcement control frame.
Preferably, before S1, the method includes: and acquiring the transmission delay jitter of the end system.
Preferably, the transmission delay jitter of the acquiring end system specifically includes:
acquiring the maximum transmission delay of the end system and the minimum transmission delay of the end system;
and acquiring the transmission delay jitter of the end system according to the maximum transmission delay and the minimum transmission delay.
Preferably, the preset configuration information in S2 includes a time announcement table;
the time announcement table comprises a table lookup result field and a table lookup key field;
the table lookup result field comprises an MAC address, a task id and a check value of the end system device;
the lookup key field includes an announcement time.
Preferably, the notification time is obtained according to the minimum transmission delay of the end system, a preset time window and a preset cyclic scheduling period.
Preferably, the S2 specifically includes:
according to whether the current offset time relative to the start of the cyclic scheduling period is matched with the time announcement table or not;
and if the current offset time is matched with the time announcement table, generating and transmitting a time announcement control frame at the current offset time.
The invention provides a control method of time-sensitive network end system frame sending time, which is to send time-sensitive messages to an end system through an API application program; the TSN network equipment sends a time notification control frame to a specific end system at a specific moment according to the configuration information; the final system senses the time of the TSN network by receiving the time notification control frame and controls the time of injecting the time sensitive message into the TSN network; the TSN network equipment sends a time announcement control frame mechanism to work cooperatively with the end system to realize the time alignment of the end system and the TSN network together, and the time sensitive network message is injected into the TSN network according to the designated TSN network time without modifying the existing operating system time, so that the development difficulty is reduced, and the development period is shortened.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for controlling frame transmission time of a time sensitive network system according to an embodiment of the present invention;
fig. 2 is a flowchart of transmission delay jitter in an embodiment of the present invention;
fig. 3 is a flowchart of step S2 in the embodiment of the invention.
Detailed Description
As shown in fig. 1, an embodiment of the present invention provides a method for controlling a frame transmission time of a time sensitive network system, including the following steps:
s1, an API application program sends a time sensitive message to an end system;
s2, the TSN network equipment sends a time notification control frame to the terminal system according to preset configuration information;
s3, the end system injects the time sensitive message into the TSN according to the time of the TSN; wherein, the TSN network time is obtained by time announcement control frame.
In step S1, the API application program generates a time-sensitive message, and sends the time-sensitive message through the software API programming interface, and at this time, the software API programming interface will not immediately send the time-sensitive message to the TSN network, and the software API programming interface function will not return before the time-sensitive message is sent to the TSN network, and the API application program will be in a blocking waiting state; thus, in this embodiment, the time sensitive messages are stored in the end system by the API application.
It should be noted that, the API application needs to be programmed based on a software API to control the time-sensitive packet to be injected into the TSN network; an end system refers to all hosts connected to the internet.
In step S2, the TSN network device sends a time announcement control frame to the end system at a designated announcement time according to the preset configuration information; in this embodiment, the TSN network device refers to a first-hop TSN network device, where the first-hop TSN network device refers to a TSN network device that receives a time-sensitive packet first after injecting the time-sensitive packet into the TSN network every time in a preset time.
The time announcement control frame refers to that the TSN network equipment sends a control frame carrying the time information of the TSN network to the end system, is a beacon of time announcement, and aims to inform the end system to inject time sensitive messages into the TSN network according to the appointed time.
The time announcement control frame includes an ethernet frame header and a data field, as shown in table 1, the ethernet frame header including a MAC address of the end system device, a native SMAC address, and an ethernet type; the data field includes a task id, a check value, an announcement time, and a current hardware synchronization time of a transmission time announcement control frame, which is indicated by a SyncTime field.
Table 1 time announcement control frame format table
In step S3, after receiving the time announcement control frame, the end system perceives the TSN network time, and injects the time sensitive message into the TSN network, and at this time, the software API programming interface function will return immediately, and the application program ends the blocking waiting state, and then step S1 can be executed again.
Preferably, before step S1, the method further includes: and acquiring the transmission delay jitter of the end system.
In particular, transmission delay jitter refers to the change in transmission delay from an application program of an end system receiving a time-sensitive message from a network interface to sending the time-sensitive message to the network interface.
It should be noted that, the transmission delay jitter value is obtained to accurately calculate the time when the TSN network device sends the time announcement frame.
Preferably, as shown in fig. 2, the acquiring the transmission delay jitter of the end system specifically includes:
A1. acquiring the maximum transmission delay of the end system and the minimum transmission delay of the end system;
A2. and acquiring the transmission delay jitter of the end system according to the maximum transmission delay of the end system and the minimum transmission delay of the end system.
In the step A1 to the step A2, the maximum transmission delay max_delay of the end system and the minimum transmission delay min_delay of the end system are measured in advance; the difference between the maximum transmission delay max_delay and the minimum transmission delay min_delay is the transmission delay jitter of the end system; the maximum transmission delay max_delay of the end system refers to the maximum value of the transmission delay from the receiving of the time sensitive message by the application program of the end system from the network interface to the sending of the time sensitive message to the network interface; the minimum transmission delay min_delay of the end system refers to the minimum value of the transmission delay from the application program on the end system receiving the time sensitive message from the network interface to sending the time sensitive message to the network interface.
It should be noted that, by setting the optimization means such as the application program monopolizing the CPU core and improving the scheduling priority of the application program, the skilled person makes the transmission delay jitter on the end system stable and the transmission delay value become smaller.
Preferably, the preset configuration information in S2 includes a time announcement table;
the time announcement table comprises a table lookup result field and a table lookup key field;
the table lookup result field comprises the MAC address, task id and check value of the end system equipment;
the lookup key field includes the notification time.
It should be noted that, the MAC address of the end system device is indicated by a DMAC field, and is used to identify to which end system device the time announcement control frame is sent; the task id is represented by a task id field and is used for identifying which application program of the end system device the time announcement control frame is sent to; the check value is represented by a cookie field and is used for checking the time announcement control frame by an application program; the notification time is represented by a dispatchPit field and is used for identifying the time when the TSN network equipment sends the time notification control frame;
wherein, the announce time DispatchPit needs to be based on the planning information and the minimum transmission delay of the end systemCalculating; the planning information includes characteristics of the time sensitive message, such as traffic cycle, forwarding path, delay requirement, and priority queue, arrival time window and sending time of each hop of TSN network equipment in the TSN network.
Preferably, the notification time is based on the minimum transmission delay of the end systemThe method comprises the steps of obtaining the data through a preset time window and a preset cyclic scheduling period.
In this embodiment, the preset time window isWherein->And->、/>Offset time relative to the start of a preset cyclic schedule period; the formula for calculating the notification time is:
the time window of the time sensitive message injected into the TSN network from the end system is set to be not smaller than the transmission delay jitter value on the end system; cycleLen represents a preset cyclic schedule period.
It should be noted that, the scheduling of the TSN network for the time-sensitive message and the time-aware shaping are both in units of a fixed cyclic scheduling period; the time when the end system control time sensitive message is injected into the TSN network and the time when the TSN network equipment sends the time notification control frame are offset time relative to the beginning of a preset cyclic scheduling period.
Time-aware shaping refers to controlling output scheduling using a gating mechanism in order to support deterministic data exchange. Each port has a set of programmable gates, and the opening and closing of each queue is controlled by the corresponding gate. The state of gating is configured by a pre-planned schedule. Only when the corresponding gate is in an open state, the message in the corresponding queue is possible to be scheduled for transmission. The cyclic control of periodic time-sensitive traffic is achieved by repeatedly executing a sequence of gating events.
Preferably, as shown in fig. 3, step S2 specifically includes:
s21, according to whether the current offset time corresponding to the start of a preset cyclic scheduling period is matched with a time notification table or not;
s22, if the current offset time is matched with the time notification table, generating and transmitting a time notification control frame at the current moment.
In step S21 to step S22, in this embodiment, after the TSN network device synchronizes the network time, the offset time matching time notification table that is currently started with respect to the preset cyclic scheduling period is used, and if the current offset time matches the time notification table, a time notification control frame is generated and sent to the end system at the current time.
As used in this application and in the claims, the terms "a," "an," "the," and/or "the" are not specific to the singular, but may include the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that the steps and elements are explicitly identified, and they do not constitute an exclusive list, as other steps or elements may be included in a method or apparatus. The inclusion of an element defined by the phrase "comprising one … …" does not exclude the presence of additional identical elements in a process, method, article, or apparatus that comprises an element.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
If a flowchart is used in the present application, the flowchart is used to describe the operations performed by the system according to embodiments of the present application. It should be appreciated that the preceding or following operations are not necessarily performed in order precisely. Rather, the steps may be processed in reverse order or simultaneously. Also, other operations may be added to or removed from these processes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (5)
1.A method for controlling the frame transmission time of a time-sensitive network system is characterized by comprising the following steps:
the API application program sends a time sensitive message to the end system;
the TSN network equipment sends a time announcement control frame to the terminal system according to preset configuration information;
the end system injects the time sensitive message into a TSN network according to the time of the TSN network;
the TSN network equipment sends preset configuration information in a time notification control frame to an end system according to the preset configuration information, wherein the preset configuration information comprises a time notification table;
the time announcement table comprises a table lookup result field and a table lookup key field;
the table lookup result field comprises an MAC address, a task id and a check value of the end system device;
the table lookup key field comprises an announcement time;
the TSN network time is obtained by the time announcement control frame.
2. The method for controlling frame transmission time of a time sensitive network end system according to claim 1, wherein before the API application program transmits the time sensitive message to the end system, the method comprises: and acquiring the transmission delay jitter of the end system.
3. The method for controlling frame transmission time of a time sensitive network system according to claim 2, wherein the obtaining transmission delay jitter of the end system specifically includes:
acquiring the maximum transmission delay of the end system and the minimum transmission delay of the end system;
and acquiring the transmission delay jitter of the end system according to the maximum transmission delay and the minimum transmission delay.
4. The method for controlling frame transmission time of a time sensitive network end system according to claim 3, wherein the notification time is obtained according to a minimum transmission delay of the end system, a preset time window, and a preset cyclic scheduling period.
5. The method for controlling the frame transmission time of the time sensitive network end system according to claim 4, wherein the TSN network device transmitting the time announcement control frame to the end system according to the preset configuration information specifically comprises:
according to whether the current offset time relative to the start of the preset cyclic scheduling period is matched with a time announcement table or not;
and if the current offset time is matched with the time announcement table, generating and transmitting the time announcement control frame at the current offset time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310153839.8A CN115834502B (en) | 2023-02-23 | 2023-02-23 | Control method for frame transmission time of time-sensitive network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310153839.8A CN115834502B (en) | 2023-02-23 | 2023-02-23 | Control method for frame transmission time of time-sensitive network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115834502A CN115834502A (en) | 2023-03-21 |
CN115834502B true CN115834502B (en) | 2023-05-12 |
Family
ID=85522177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310153839.8A Active CN115834502B (en) | 2023-02-23 | 2023-02-23 | Control method for frame transmission time of time-sensitive network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115834502B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113645686A (en) * | 2021-08-12 | 2021-11-12 | 中国人民解放军国防科技大学 | Wireless self-organizing network time synchronization method with motion compensation |
CN114390009A (en) * | 2021-12-20 | 2022-04-22 | 中国电子科技集团公司第五十四研究所 | Data processing method and device in time-sensitive network |
CN115665057A (en) * | 2022-10-21 | 2023-01-31 | 网络通信与安全紫金山实验室 | Data processing method and device, nonvolatile storage medium and computer equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995453B (en) * | 2018-01-02 | 2020-12-18 | ***通信有限公司研究院 | Information processing method, device, equipment and computer readable storage medium |
CN111836355B (en) * | 2019-04-23 | 2022-05-10 | 华为技术有限公司 | Communication method, terminal, network device and storage medium |
US20220216932A1 (en) * | 2019-05-02 | 2022-07-07 | Telefonaktiebolaget Lm Ericsson (Publ) | 5g system signaling methods to convey tsn synchronization information |
CN110492960A (en) * | 2019-07-23 | 2019-11-22 | 中国航空无线电电子研究所 | Synchronized communication method based on Ethernet |
US11678284B2 (en) * | 2020-04-17 | 2023-06-13 | Electronics And Telecommunications Research Institute | Radio communication method for time-sensitive network, and apparatus therefor |
CN113541991B (en) * | 2020-04-20 | 2022-09-27 | 中车唐山机车车辆有限公司 | Train network control system and communication control method based on time sensitive network |
CN115086981A (en) * | 2021-03-11 | 2022-09-20 | 大唐移动通信设备有限公司 | Information processing method, device and storage medium |
-
2023
- 2023-02-23 CN CN202310153839.8A patent/CN115834502B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113645686A (en) * | 2021-08-12 | 2021-11-12 | 中国人民解放军国防科技大学 | Wireless self-organizing network time synchronization method with motion compensation |
CN114390009A (en) * | 2021-12-20 | 2022-04-22 | 中国电子科技集团公司第五十四研究所 | Data processing method and device in time-sensitive network |
CN115665057A (en) * | 2022-10-21 | 2023-01-31 | 网络通信与安全紫金山实验室 | Data processing method and device, nonvolatile storage medium and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115834502A (en) | 2023-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10218631B2 (en) | Method for traffic shaping of data frames in network and device and computer program product therefor | |
US9906320B2 (en) | Industrial network apparatus and data communication method | |
US10334545B2 (en) | Synchronizing time among two or more devices | |
CN112087804B (en) | Time-sensitive network gating time slot adjusting method and system | |
US20240214323A1 (en) | Packet transmission method and apparatus | |
US9042411B1 (en) | System and method for accurate time sampling in presence of output delay | |
US20220014485A1 (en) | Signalling of Dejittering Buffer Capabilities for TSN Integration | |
JP6265058B2 (en) | Network transmission system, its master node, slave node | |
WO2015027813A1 (en) | Method and device for determining ethernet clock source | |
WO2021000754A1 (en) | Measurement reporting method and network node | |
CN107040477B (en) | Switching of scheduling frames in a network in an Ethernet based vehicle | |
WO2018076641A1 (en) | Method and apparatus for reducing delay and storage medium | |
CN115834502B (en) | Control method for frame transmission time of time-sensitive network system | |
Hummen et al. | Tsn–time sensitive networking | |
CN111935691B (en) | Wireless low-power consumption configuration method and device | |
CN107040440B (en) | Method and apparatus for initiating triggers in a network in an Ethernet-based vehicle | |
US20220201682A1 (en) | Resource determination method and device, storage medium and terminal | |
CN116938822A (en) | Message transmission method and device of Ethernet | |
JP2008125073A (en) | Stale data removal using latency count in wimax scheduler | |
Krohn et al. | TOMAC–real-time message ordering in wireless sensor networks using the MAC layer | |
CN112995068B (en) | Data transmission method, device and system | |
WO2022079151A1 (en) | Method and apparatus for synchronising apparatuses of a wireless network | |
WO2024022010A1 (en) | Clock signal processing method and apparatus, and wireless distribution system | |
CN116233031B (en) | Implementation method of time-sensitive network switch model | |
KR20170007019A (en) | Sensor network managing method and system |
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 |