CN115834502A - Time-sensitive network end system method for controlling frame transmission time - Google Patents
Time-sensitive network end system method for controlling frame transmission time Download PDFInfo
- Publication number
- CN115834502A CN115834502A CN202310153839.8A CN202310153839A CN115834502A CN 115834502 A CN115834502 A CN 115834502A CN 202310153839 A CN202310153839 A CN 202310153839A CN 115834502 A CN115834502 A CN 115834502A
- Authority
- CN
- China
- Prior art keywords
- time
- end system
- tsn
- network
- sensitive
- 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
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 method for controlling frame sending time of a time-sensitive network end system, which sends a time-sensitive message to the end system through an API application program; the TSN network equipment sends a time announcement 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 by receiving the time announcement control frame and controls the time of injecting the time sensitive message into the TSN; the time alignment between the end system and the TSN network is realized through the cooperative work of the mechanism of sending the time announcement control frame by the TSN network equipment and the end system, the time of the time sensitive network message is injected into the TSN network according to the designated TSN network time without modifying the time of the existing operating system, the development difficulty is reduced, and the development period is shortened.
Description
Technical Field
The application relates to the technical field of network communication, in particular to a method for controlling frame sending time of a time-sensitive network end 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 characteristics of delay certainty of the TSN network must depend on the following three conditions: (1) making a correct planning and scheduling scheme; (2) Controlling the time for injecting the time sensitive network message into the TSN network; and (3) accurately controlling the filtering and sending time of the flow. The core idea of controlling the time of injecting the time sensitive network message into the TSN is that an end system needs to acquire the TSN time, and the time sensitive network message is controlled to be injected into the TSN according to the TSN time; because the end system cannot acquire the time of the TSN, the time-sensitive message cannot be ensured to be injected into the TSN according to the designated time of the TSN.
In the prior art, the time of an operating system on an end system is synchronized with the time of a TSN (time-to-network) by a method of modifying the time of the existing operating system on the end system, so that a time-sensitive network message is injected into the TSN according to the specified TSN time; however, the prior art has the problem that some end systems do not support the user to modify the operating system time; the problems of high development difficulty, long development period and difficulty in deployment in a short term caused by the fact that adaptive development needs to be carried out according to different processors on the end system exist.
Therefore, it is an urgent need to solve the problem of the art to provide a method and a system for controlling frame sending time of a time-sensitive network end system, which can reduce development difficulty and shorten development period without modifying the time of the existing operating system on the end system.
Disclosure of Invention
The invention provides a method for controlling the frame sending time of a time-sensitive network end system, which can realize that a time-sensitive network message is injected into a TSN network according to the specified TSN network time by not modifying the time of the existing operating system 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 sending time of a time-sensitive network end system comprises the following steps:
s1, the API application program sends a time-sensitive message to an end system;
s2, the TSN network equipment sends a time announcement control frame to an end system according to preset configuration information;
s3, the end system injects the time-sensitive message into a TSN according to the TSN time;
wherein the TSN network time is acquired through 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 an 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 list;
the time notification table comprises a table look-up result field and a table look-up keyword field;
the table lookup result field comprises an MAC address, a task id and a check value of the end system equipment;
the table lookup key field includes a notification time.
Preferably, 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.
Preferably, the S2 specifically includes:
according to whether the offset time relative to the beginning of the cycle scheduling period is matched with a time announcement list or not;
if the current offset time matches the schedule notification table, a time announcement control frame is generated and transmitted at the current offset time.
The invention provides a method for controlling the frame sending time of a time-sensitive network end system, which sends a time-sensitive message to the end system through an API application program; the TSN network equipment sends a time announcement 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 by receiving the time announcement control frame and controls the time of injecting the time sensitive message into the TSN; the TSN network equipment sends a time announcement control frame mechanism to work with the end system cooperatively, so that the time alignment of the end system and the TSN network is realized together, the time sensitive network messages are injected into the TSN network according to the designated TSN network time without modifying the time of the existing operating system, 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 used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for controlling frame transmission time of a time-sensitive network end system according to an embodiment of the present invention;
FIG. 2 is a flow chart of transmission delay jitter according to an embodiment of the present invention;
FIG. 3 is a flowchart of step S2 according to an embodiment of the present invention.
Detailed Description
As shown in fig. 1, an embodiment of the present invention provides a method for controlling a frame sending time of a time-sensitive network-side system, including the following steps:
s1, the API application program sends a time-sensitive message to an end system;
s2, the TSN network equipment sends a time announcement control frame to the end system according to preset configuration information;
s3, the end system injects the time-sensitive message into the TSN according to the TSN time; wherein, the TSN network time is acquired through a time announcement control frame.
In the step S1, an API application program generates a time-sensitive message and sends the time-sensitive message through a software API programming interface, at the moment, the software API programming interface cannot immediately send the time-sensitive message to a TSN (time series transport network) network, a software API programming interface function cannot return before the time-sensitive message is not sent to the TSN network, and the API application program is in a blocking waiting state; thus, in this embodiment, the time-sensitive message is stored in the end system through the API application.
It should be noted that the API application program needs to be programmed based on the 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 equipment sends a time announcement control frame to the end system at the appointed announcement time according to the preset configuration information; in this embodiment, the TSN network device refers to a first-hop TSN network device, and the first-hop TSN network device refers to a TSN network device that receives a time-sensitive packet first after each time of injecting the time-sensitive packet into the TSN network within a preset time.
The time announcement control frame refers to a control frame which carries TSN network time information and is sent to an end system by TSN network equipment, is a beacon of time announcement and aims to inform the end system to inject a time-sensitive message into the TSN network according to specified time.
The time announcement control frame includes an ethernet frame header and a data field, as shown in table 1, the ethernet frame header includes a MAC address of the end-system device, a native SMAC address, and an ethernet type; the data field includes task id, check value, notification time, and current hardware synchronization time for sending time notification control frames, represented by SyncTime field.
Table 1 time announcement control frame format table
In step S3, after receiving the time announcement control frame, the end system senses the time of the TSN network and injects the time-sensitive packet into the TSN network, and at this time, the software API programming interface function immediately returns, and if the application program finishes the blocking waiting state, step S1 may be executed again.
Preferably, before step S1, the method further includes: and acquiring the transmission delay jitter of the end system.
Specifically, the transmission delay jitter refers to a change in transmission delay from when an application program of the end system receives a time-sensitive packet from a network interface to when the application program sends the time-sensitive packet 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 an 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 steps A1 to 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 value 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 time when the application program of the end system receives the time sensitive message from the network interface to the time when the application program sends 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 time when the application program on the end system receives the time-sensitive message from the network interface to the time when the application program sends the time-sensitive message to the network interface.
It should be noted that, by setting the CPU core exclusively occupied by the application program and improving the scheduling priority of the application program, those skilled in the art make the transmission delay jitter on the end system stable and the transmission delay value small.
Preferably, the preset configuration information in S2 includes a time announcement list;
the time notification table comprises a table look-up result field and a table look-up key word field;
the table lookup result field comprises an MAC address, a task id and a check value of the end system equipment;
the lookup table key field includes the announcement time.
It should be noted that the MAC address of the end-system device is represented by a DMAC field, and is used to identify which end-system device the time announcement control frame is sent to; the task id is represented by a task id field and is used for identifying which application program of the end system equipment the time announcement control frame is sent to; the check value is represented by cookies fields and is used for checking the time announcement control frame by the application program; the notification time is represented by a DispatcPit field and is used for identifying the time when the TSN network equipment sends the time notification control frame;
wherein, the announce moment DispatcPit needs to be according to the minimum transmission delay of the planning information and the end systemCalculating; the planning information includes the characteristics of the time-sensitive message, such as the traffic period, the forwarding path, the delay requirement, and the priority queue, the arrival time window, and the sending time of the time-sensitive message in each hop of the TSN network device in the TSN network.
Preferably, the announcement time is based on the minimum transmission delay of the end systemA preset time window and a preset cycle scheduling period.
In this embodiment, the predetermined time window isWhereinAnd is and、is an offset time relative to the start of the preset cyclic scheduling period; the formula for calculating the announcement time is:
in this embodiment, a time window for injecting a time-sensitive packet from an end system into a TSN network is set to be not less than a transmission delay jitter value on the end system; cycleLen represents a preset cyclic scheduling period.
It should be noted that, the planning scheduling and the time-aware shaping of the time-sensitive packet by the TSN network are both based on a fixed cycle scheduling period as a unit; the time when the end system controls the time sensitive message to be injected into the TSN and the time when the TSN equipment sends the time announcement control frame are offset time relative to the beginning of the preset cycle 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 a respective gate. The gated state is configured by a pre-programmed schedule. Only if the corresponding gate is open, the message in its corresponding queue may be scheduled for transmission. Cyclic control of periodic time-sensitive traffic is achieved by repeatedly executing sequences of gating events.
Preferably, as shown in fig. 3, step S2 specifically includes:
s21, according to whether the offset time starting relative to the preset cyclic scheduling period currently matches a time announcement list or not;
and S22, if the current offset time is matched with the time notification table, generating and sending a time notification control frame at the current moment.
In steps S21 to S22, in this embodiment, after the TSN network device synchronizes the overall network time, the offset time matching schedule table corresponding to the start of the preset cyclic scheduling period is used, and if the current offset time is matched with the time matching schedule table, a time matching control frame is generated and sent to the end system at the current time.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements. An element defined by the phrase "comprising a … …" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
If used in this application, the flowcharts are intended to illustrate operations performed by the system according to embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the 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 (6)
1.A method for controlling frame sending time of a time-sensitive network end system is characterized by comprising the following steps:
the API application program sends the time-sensitive message to an end system;
the TSN network equipment sends a time announcement control frame to the end system according to preset configuration information;
the end system injects the time-sensitive message into a TSN according to the TSN time;
wherein the TSN network time is acquired through the time announcement control frame.
2. The method for controlling frame sending time of a time-sensitive network-end system according to claim 1, wherein the API application sends the time-sensitive message to a front end system, comprising: and acquiring the transmission delay jitter of the end system.
3. The method for controlling frame sending time of a time-sensitive network-side system according to claim 2, wherein the acquiring the transmission delay jitter of the side system specifically comprises:
acquiring the maximum transmission delay of an 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 of claim 3, wherein the preset configuration information in the TSN device sending a time announcement control frame to an end system according to preset configuration information comprises a time announcement list;
the time notification table comprises a table look-up result field and a table look-up keyword field;
the table lookup result field comprises an MAC address, a task id and a check value of the end system equipment;
the table lookup key field includes an advertisement time.
5. The method for controlling frame transmission time of a time-sensitive network end system according to claim 4, wherein the notification time is obtained according to a minimum transmission delay, a preset time window, and a preset cyclic scheduling period of the end system.
6. The method for controlling frame sending time of a time-sensitive network-end system according to claim 5, wherein the sending, by the TSN network device, the time announcement control frame to the end system according to the preset configuration information specifically includes:
according to whether the offset time relative to the beginning of the preset cyclic scheduling period at present is matched with a time announcement list or not;
and if the current offset time is matched with the time announcement list, generating and sending 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 true CN115834502A (en) | 2023-03-21 |
CN115834502B 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 (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995453A (en) * | 2018-01-02 | 2019-07-09 | 中国移动通信有限公司研究院 | A kind of information processing method, device, equipment and computer readable storage medium |
CN110492960A (en) * | 2019-07-23 | 2019-11-22 | 中国航空无线电电子研究所 | Synchronized communication method based on Ethernet |
US20210329580A1 (en) * | 2020-04-17 | 2021-10-21 | Electronics And Telecommunications Research Institute | Radio communication method for time-sensitive network, and apparatus therefor |
CN113541991A (en) * | 2020-04-20 | 2021-10-22 | 中车唐山机车车辆有限公司 | Train network control system and communication control method based on time sensitive network |
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 |
US20220216932A1 (en) * | 2019-05-02 | 2022-07-07 | Telefonaktiebolaget Lm Ericsson (Publ) | 5g system signaling methods to convey tsn synchronization information |
CN114845375A (en) * | 2019-04-23 | 2022-08-02 | 华为技术有限公司 | Communication method, terminal, network device and storage medium |
CN115086981A (en) * | 2021-03-11 | 2022-09-20 | 大唐移动通信设备有限公司 | Information processing method, device and storage medium |
CN115665057A (en) * | 2022-10-21 | 2023-01-31 | 网络通信与安全紫金山实验室 | Data processing method and device, nonvolatile storage medium and computer equipment |
-
2023
- 2023-02-23 CN CN202310153839.8A patent/CN115834502B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995453A (en) * | 2018-01-02 | 2019-07-09 | 中国移动通信有限公司研究院 | A kind of information processing method, device, equipment and computer readable storage medium |
CN114845375A (en) * | 2019-04-23 | 2022-08-02 | 华为技术有限公司 | 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 |
US20210329580A1 (en) * | 2020-04-17 | 2021-10-21 | Electronics And Telecommunications Research Institute | Radio communication method for time-sensitive network, and apparatus therefor |
CN113541991A (en) * | 2020-04-20 | 2021-10-22 | 中车唐山机车车辆有限公司 | 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 |
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 |
---|---|
CN115834502B (en) | 2023-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10218631B2 (en) | Method for traffic shaping of data frames in network and device and computer program product therefor | |
CN110661870B (en) | HPLC communication networking method, device, storage medium and electronic equipment | |
JP5563165B2 (en) | Method and apparatus for serial data transmission with switchable data rate | |
Jiang et al. | A time-sensitive networking (TSN) simulation model based on OMNET++ | |
EP1198079A2 (en) | Method for implementing system information broadcasting function in asynchronous mobile communication system | |
US9042411B1 (en) | System and method for accurate time sampling in presence of output delay | |
CN106708617A (en) | Service-based application process keep-alive system and keep-alive method | |
JP6265058B2 (en) | Network transmission system, its master node, slave node | |
WO2020104005A1 (en) | Signalling of dejittering buffer capabilities for tsn integration | |
WO2017166032A1 (en) | Method and device for nan device to send sync beacon message | |
CN114884904B (en) | Deterministic traffic scheduling method and device applicable to predictable time-critical service | |
CN115834502B (en) | Control method for frame transmission time of time-sensitive network system | |
CN111511013B (en) | Method, electronic device, and computer storage medium for synchronizing control signals | |
CN111935691B (en) | Wireless low-power consumption configuration method and device | |
WO2021000754A1 (en) | Measurement reporting method and network node | |
CN116938822A (en) | Message transmission method and device of Ethernet | |
JP4973452B2 (en) | Invalid data removal using WiMAX scheduler latency count | |
CN115065646B (en) | Message timing sending method and device based on software and hardware cooperation | |
CN100555927C (en) | In wireless network, have and confirm overtime frame synchronization | |
CN114205309B (en) | Method for precisely calculating frame sending time facing TSN output interface | |
CN111698059B (en) | Conflict-free transmission method for protocol control frame | |
Krohn et al. | TOMAC–real-time message ordering in wireless sensor networks using the MAC layer | |
WO2024022010A1 (en) | Clock signal processing method and apparatus, and wireless distribution system | |
CN116233031B (en) | Implementation method of time-sensitive network switch model | |
WO2024060913A1 (en) | Discontinuous reception method and apparatus |
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 |