CN116827474A - Time-sensitive network traffic transmission method and system - Google Patents

Time-sensitive network traffic transmission method and system Download PDF

Info

Publication number
CN116827474A
CN116827474A CN202310877234.3A CN202310877234A CN116827474A CN 116827474 A CN116827474 A CN 116827474A CN 202310877234 A CN202310877234 A CN 202310877234A CN 116827474 A CN116827474 A CN 116827474A
Authority
CN
China
Prior art keywords
tsn
time
network
message
register
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.)
Pending
Application number
CN202310877234.3A
Other languages
Chinese (zh)
Inventor
杨惠
金花
李论
刘治宇
李韬
郭阳
窦勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National University of Defense Technology
Original Assignee
National University of Defense Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National University of Defense Technology filed Critical National University of Defense Technology
Priority to CN202310877234.3A priority Critical patent/CN116827474A/en
Publication of CN116827474A publication Critical patent/CN116827474A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0602Systems characterised by the synchronising information used

Landscapes

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

Abstract

The application discloses a time sensitive network traffic transmission method and a system, wherein the method is that a TSN management message transmitted by a TSN network is acquired through an end system; generating a TSN data message by a terminal system; acquiring TSN network time through message parameters in a TSN management message and a functional module in an end system; and injecting the generated TSN data message into the TSN network through the acquired TSN network time. Compared with the prior art, the method and the device have the advantages that the TSN network time is acquired through the TSN management message without modifying the operating system time, and the high management control efficiency on the time-sensitive traffic can be effectively realized according to the acquired TSN network time and the generated TSN data message, so that the method and the device are suitable for deterministic and low-delay forwarding of the time-sensitive traffic in a TSN network end system. The system has the same beneficial effects.

Description

Time-sensitive network traffic transmission method and system
Technical Field
The present application relates to the field of time-sensitive network communication technologies, and in particular, to a method and a system for transmitting traffic in a time-sensitive network.
Background
Time sensitive networks (TSNs, time Sensitive Network) are a standard set of time sensitive networks that contain a variety of different algorithms and mechanisms, and sending time triggered traffic internally by the TSN network end system to the network is the core of the TSN network deterministic exchange of data.
The key idea of the end system controlling the injection of the time-sensitive network message into the TSN network is to enable the end system to acquire the TSN network time and then control the injection of the time-sensitive network message according to the TSN network time. Because the end system cannot acquire the TSN network time, the time sensitive data message cannot be ensured to be injected into the TSN network according to the designated TSN network time.
The prior art includes two modes: one is: the user synchronizes the operating system time and the TSN network time on the end system by modifying the existing operating system time method on the end system, and the time sensitive network message is injected into the TSN network according to the designated TSN network time. However, this prior art has the problem that some end systems do not support user modification of operating system time. The second step is: the application program running in the user mode is adopted to acquire time sensitive management message information through the commercial network card drive so as to sense the time of the TSN network, and the control method of the frame sending time of the time sensitive network end system is realized, so that time sensitive traffic is injected into the TSN network according to the designated time of the TSN network. But the time sensitive traffic of this prior art has the problem of large transmission delay time and data response time on the end system.
Therefore, providing a method and a system for time-sensitive network traffic transmission that can solve the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a time-sensitive network traffic transmission method and a system, wherein the method has clear logic, safety, effectiveness, reliability and simple and convenient operation, can effectively realize high management control efficiency on time-sensitive traffic on the premise of not modifying the time of an operating system, and is suitable for deterministic and low-delay forwarding of the time-sensitive traffic in a TSN network end system.
Based on the above purpose, the technical scheme provided by the application is as follows:
a time sensitive network traffic transmission method comprises the following steps:
the end system acquires a TSN management message transmitted by a TSN network;
the end system generates a TSN data message;
the end system obtains TSN network time according to the TSN management message;
and the end system injects the TSN data message into the TSN according to the TSN network time.
Preferably, the end system acquires a first TSN packet transmitted to by a TSN network, including:
the end system caches the TSN management messages in the TSN network to a time aware register in a preset format based on a DMA operation.
Preferably, the end system generates a TSN data packet, including:
mapping the configuration space of the time perception register and the physical address of the buffer area into a virtual space;
and generating TSN data messages in the virtual space.
Preferably, the obtaining, by the end system, the TSN network time according to the TSN management message includes:
acquiring a state value of the time perception register;
judging whether the state value of the time sensing register is equal to a preset state value or not;
if yes, the variable flag value of the time sensing register is adjusted, and the adjustment time is recorded to serve as the TSN network time.
Preferably, after the adjusting the variable flag value of the time sensing register and recording the adjustment time as the TSN network time if the time sensing register is positive, the method further includes:
initializing a state value of the time-aware register.
Preferably, the end system injects the TSN data packet into the TSN network according to the TSN network time, including:
analyzing the TSN data message to obtain a message parameter;
and injecting the TSN data message into the TSN network according to the message parameters and the TSN network time.
Preferably, after the end system injects the TSN data packet into the TSN network according to the TSN network time, the method further includes:
the TSN network judges whether the offset time of the current time relative to the beginning of a preset cyclic scheduling period is matched with a time period in a preset time notification table or not;
if yes, generating and injecting the TSN management message to the end system.
A time sensitive network traffic transmission system comprising: an end system and a TSN network;
the end system includes: the system comprises an application program, a user mode driving module, a kernel module and a network card communication module;
the user mode driving module is respectively connected with the application program and the kernel module;
the kernel module is respectively connected with the network card communication module and the user mode driving module;
the network card communication module is used for acquiring a TSN management message transmitted by the TSN network;
the application program is used for generating TSN data messages;
the kernel module and the user mode driving module are mutually matched and are used for acquiring TSN network time according to the TSN management message;
and the user mode driving module is used for injecting the TSN data message into the TSN according to the TSN network time.
Preferably, the network card communication module includes: a time-aware register;
the time perception register is used for caching the TSN management message in the TSN network in a preset format based on DMA operation;
the user mode driving module comprises: a resource initialization sub-module, a management register judging sub-module and a TSN message transmitting sub-module;
the resource initialization submodule is used for mapping the configuration space of the time perception register and the physical address of the buffer area into a virtual space;
the management register judging submodule is used for judging whether the state value of the time perception register is equal to a preset state value or not;
and the TSN message sending submodule is used for injecting the TSN data message into the TSN network according to the message parameter and the TSN network time.
The application discloses a time sensitive network flow transmission method, which is to acquire a TSN management message transmitted by a TSN network through an end system; generating a TSN data message by a terminal system; acquiring TSN network time through message parameters in a TSN management message and a functional module in an end system; and injecting the generated TSN data message into the TSN network through the acquired TSN network time.
Compared with the prior art, the method and the device have the advantages that the TSN network time is acquired through the TSN management message without modifying the operating system time, and the high management control efficiency on the time-sensitive traffic can be effectively realized according to the acquired TSN network time and the generated TSN data message, so that the method and the device are suitable for deterministic and low-delay forwarding of the time-sensitive traffic in a TSN network end system.
The application also discloses a time sensitive network flow transmission system, which belongs to the same technical conception and has the same beneficial effects as the method for solving the same technical problems, and is not repeated here.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that 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 time-sensitive network traffic transmission method according to an embodiment of the present application;
FIG. 2 is a flowchart of step S2 provided in an embodiment of the present application;
FIG. 3 is a flowchart of step S3 provided in an embodiment of the present application;
FIG. 4 is a flowchart of step S4 provided in an embodiment of the present application;
FIG. 5 is a flowchart after step S4 according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a time-sensitive network traffic transmission system according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a user mode driving module according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application is written in a progressive manner.
The embodiment of the application provides a time-sensitive network traffic transmission method and a system. The method mainly solves the technical problems that in the prior art, users are not supported to modify the time of an operating system and the transmission delay time and the data response time are relatively large.
As shown in fig. 1, a time sensitive network traffic transmission method includes the following steps:
s1, acquiring a TSN management message transmitted by a TSN network by an end system;
s2, the end system generates a TSN data message;
s3, the end system acquires TSN network time according to the TSN management message;
s4, the end system injects the TSN data message into the TSN according to the TSN network time.
In this embodiment, a user layer, a kernel layer, a hardware layer, and a file layer are provided in the end system; the user layer is provided with an application program and a user mode driving module, the file layer is provided with an equipment file module, the kernel layer is provided with a kernel component module, and the hardware layer is provided with a network card communication module; the end system is connected with the TSN network;
on the basis, in step S1, the network card communication module receives a TSN management message transmitted from a TSN network;
in step S2, the application program generates a TSN data message and sends the TSN data message to the network card communication module;
in step S3, the user mode driving module perceives the TSN network time according to the TSN management message transmitted by the network card communication module;
in step S4, the network card communication module injects the TSN data packet into the TSN network according to the acquired TSN network time.
Preferably, step S1 comprises:
the end system buffers TSN management messages in the TSN network to the time aware register in a preset format based on the DMA operation.
In this embodiment, the network card communication module uses DMA (Di rect Memory Access, DMA) operation to copy the time-sensitive management packet data in the TSN network from the cache of the host memory to its own internal cache, and then to transfer the management packet into the time-aware register form of the BAR (Base Address Regi ster, BAR) space of the network card device for CPU access.
As shown in fig. 2, preferably, S2 includes:
A1. mapping the configuration space of the time perception register and the physical address of the buffer area into a virtual space;
A2. and generating TSN data messages in the virtual space.
In this embodiment, before executing step A1, the kernel component is further used to complete the application of the character device file and the registration of the device file operation interface (such as open, ioct l, mmap, etc.) on the PCI bus, and apply for memory in the DMA-capable memory section for storing the message;
in step A1, a request for acquiring character equipment resources is sent to a kernel through mmap, and register configuration space (BAR 0 space) of a network card communication module and buffer physical address information of a storage message are mapped into a virtual address space driven by a user mode;
it should be noted that mmap is a method for mapping a file in a memory, that is, mapping a file or other objects to an address space of a process, so as to implement a one-to-one mapping relationship between a disk address of the file and a segment of virtual address in a virtual address space of the process. After the mapping relation is realized, the process can read and write the section of memory in a pointer mode, and the system can automatically write back the dirty page to the corresponding file disk, so that the operation on the file is finished without calling system calling functions such as read, wr ite and the like. On the contrary, the modification of the kernel space to the section of the region also directly reflects the user space, so that the file sharing among different processes can be realized;
the ioct l is a function of managing the I/O channels of the device in the device driver;
in step A2, the application program generates a time sensitive data packet, and sends the time sensitive data packet through a programming interface provided by the user state driving module, at this time, the user state driving module does not send the time sensitive data packet to the TSN network immediately, and only when the time of the TSN network is met, the user state driving module sends the packet to the TSN network, and when the time of the TSN network is not met, the application program is in a blocking waiting state.
As shown in fig. 3, preferably, step S3 includes:
B1. acquiring a state value of a time perception register;
B2. judging whether the state value of the time sensing register is equal to a preset state value or not; the method comprises the steps of carrying out a first treatment on the surface of the
B3. If yes, the variable flag value of the time sensing register is adjusted, and the adjustment time is recorded as the TSN network time.
In this embodiment, an application program perceives TSN network time through a judging interface of a time perceiving register state provided by a user state driving module, receives a virtual address message mapped to a user space by a kernel, and obtains a state value of a BAR space time perceiving register of a network card communication module;
in step B2 and step B3, the determining interface of the time-aware register state queries the time-aware register state to determine the type of the time-sensitive management message received by the end system, if the task value is the expected value, the task value continues to wait until the expected value is not the expected value. If the task value is the expected value, setting the flag processing flag bit to be 1 to end the blocking inquiry state, and submitting the flag value to a sending interface of the user state driven time sensitive data message;
the sending interface sending function of the time sensitive data message senses the TSN network time by inquiring the flag bit of the management register judgment submodule. If the flag bit is 1, the time sensitive data message is injected into the TSN network, and step 303 is executed again to transmit the next time sensitive data message. Time sensitive traffic is managed and controlled in the TSN network by time-aware shaping, which means that a gating mechanism is used to control output scheduling 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, after step B3, further comprising:
initializing a state value of the time-aware register.
In this embodiment, the state value of the time-aware register is configured to be an initial value, so as to facilitate the processing of the next time-sensitive management message.
As shown in fig. 4, preferably, step S4 includes:
C1. analyzing the TSN data message to obtain a message parameter;
C2. and injecting TSN data messages into the TSN network according to the message parameters and the TSN network time.
In this embodiment, the network card communication module converts the received time-sensitive management message into a 64-bit time-aware register format, where each time-sensitive management message carries key information of time-sensitive network management control. The format of the time sensitive management message is shown in table 1, and includes: destination terminal MAC address, source terminal MAC address, data frame Type field, task Type task, check value Cookies, notification time Dispatch, and SyncTime current hardware synchronization time field. The DMAC is used for identifying which end system device the time sensitive management message is sent to, the task is used for identifying which application program of the end system device the time sensitive management message is sent to, and the cookie is used for checking the time sensitive management message by the application program. The Dispatch is used for identifying the time when the TSN network device sends the time sensitive management message, and the time sensitive management message is acquired according to the minimum transmission delay and planning information of the end system. The planning information includes characteristics of the time sensitive data packet, such as traffic cycle, forwarding path, delay requirement, and priority queue, arrival time window and sending time of each hop TSN network device in the TSN network.
Table 1 time sensitive management message format
In step C2, the sending interface sending function of the time sensitive data packet senses TSN network time by querying the flag bit of the management register determination submodule. And if the flag bit is 1, the time sensitive data message is injected into the TSN network, and the next time sensitive data message is sent again.
It should be noted that, in the TSN network, time-sensitive traffic is managed and controlled through time-aware shaping, where time-aware shaping refers to controlling output scheduling by 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.
As shown in fig. 5, preferably, after step S4, further includes:
d1. the TSN network judges whether the offset time of the current time relative to the beginning of a preset cyclic scheduling period is matched with a time period in a preset time notification table or not;
D2. if yes, generating and injecting a TSN management message to the end system.
In this embodiment, after the whole network time synchronization, the TSN network device queries which time period of the offset time and the time announcement table of the current time relative to the start of the preset cyclic scheduling period (cyclic len) is matched, and if so, generates and sends a time sensitive management message to the end system at the current time. The TSN network device refers to a first-hop TSN network device, i.e., a TSN network device that receives a time-sensitive data packet first after injecting the time-sensitive data packet into the TSN network every time in a preset time. The notification time is calculated by a preset time window in which the CycleLen and the time sensitive data message are injected into the TSN network from the end system. Let the time window be [ t1, t2], t1, t2 be offset time relative to CycleLen, where t1< t2 and (t 2-t 1) > = (max_delay-min_delay). Announce time dispatch= (t1—min_delay+cycleLen)% cycleLen, where max_delay is the maximum value of the transmission delay of the end system and min_delay is the minimum value of the transmission delay of the end system. The transmission delay refers to the change in the application program of the end system from receiving the time sensitive data message from the network interface to transmitting the time sensitive data message to the network interface.
As shown in fig. 6, a time sensitive network traffic transmission system, comprising: an end system and a TSN network;
the end system comprises: the system comprises an application program, a user mode driving module, a kernel module and a network card communication module;
the user state driving module is respectively connected with the application program and the kernel module;
the kernel module is respectively connected with the network card communication module and the user mode driving module;
the network card communication module is used for acquiring a TSN management message transmitted by a TSN network;
the application program is used for generating TSN data messages;
the kernel module and the user mode driving module are mutually matched and used for acquiring TSN network time according to the TSN management message;
and the user state driving module is used for injecting the TSN data message into the TSN according to the TSN network time.
In the actual application process, a file layer can be arranged between the user layer and the kernel layer. The end system is internally provided with a user layer, a kernel layer, a hardware layer and a file layer; the user layer is provided with an application program and a user mode driving module, the file layer is provided with an equipment file module, the kernel layer is provided with a kernel component module, and the hardware layer is provided with a network card communication module; the end system is connected with the TSN network; the file layer is respectively connected with the kernel layer and the user layer, and the hardware layer is respectively connected with the kernel layer and the TSN network; and the device file module in the file layer is used for calling the device file to complete resource mapping under the driving of the user state driving module.
As shown in fig. 6 and 7, preferably, the network card communication module includes: a time-aware register;
the time perception register is used for caching TSN management messages in a TSN network in a preset format based on DMA operation;
the user state driving module comprises: a resource initialization sub-module, a management register judging sub-module and a TSN message transmitting sub-module;
the resource initialization sub-module is used for mapping the configuration space of the time perception register and the physical address of the buffer area into the virtual space;
the management register judging submodule is used for judging whether the state value of the time perception register is equal to a preset state value or not;
and the TSN message sending sub-module is used for injecting TSN data messages into the TSN network according to the message parameters and the TSN network time.
In the actual application process, a time sensing register is arranged in the network card communication module;
the time sensing register is used for copying time sensitive management message data in the TSN network from a cache of a host memory to an internal cache thereof by using DMA (Direct Memory Access, DMA) operation, and then transferring the management message into a time sensing register form of a BAR (Base Address Register, BAR) space of the network card equipment for CPU access;
and the user state driving module improves the processing performance of the key service flow through mechanisms such as DMA, zero copy and the like. The DMA technology avoids that the CPU is busy copying data from the I/O device to the memory, and reduces the load of the CPU. The idea of zero copy is that the user mode drive obtains the memory resource of the device file of the kernel through the mmap method of the character device, and reduces the delay of the whole data transmission process by avoiding the copying of data in the user space and the kernel space.
The design framework of the user mode driving module is as follows: a character device is registered in the kernel, and a driver controls the actual network card device by reading and writing the character device so as to realize that a user bypasses the kernel to directly read and write the network card, reduce the expenditure caused by the kernel in the network I/O process and obviously improve the network throughput.
The user state driving module comprises: a resource initialization sub-module, a management register judging sub-module and a TSN message transmitting sub-module;
the resource initialization submodule is used for completing mapping work of user-state driving memory resources, sending a request for acquiring character equipment resources to the kernel through mmap, and mapping register configuration space (BAR 0 space) of the network card communication module and buffer physical address information of a storage message into a virtual address space of the user-state driving;
the management register judging submodule is connected with the resource initializing module and is used for finishing the polling of the time-aware register information of the network card communication module, continuing to poll if the state of the time-aware register is not the expected value, forwarding the state information to the TSN message transmitting submodule if the state of the time-aware register is the expected value, and configuring the time-aware register as an initial value. The time sensing register is managed in a bitmap mode and is used for mapping time sensitive management messages received by the terminal system. For example, a time sensitive management message map with a time aware register value of bitmap [0] and a task of 1, a time sensitive management message map with bitmap [15] and a task of 15;
the TSN message sending submodule is connected with the management register judging submodule and is used for completing analysis of the data message submitted by the application program and obtaining the state of the time-aware register. The user mode driver classifies and stores the messages according to the destination port numbers of the messages, that is to say, the destination port numbers of the messages determine the index values of the sending buffer blocks used when the user mode driver sends the messages.
In the embodiments provided in the present application, it should be understood that the disclosed method and system may be implemented in other manners. The system embodiment described above is merely illustrative, for example, the division of modules is merely a logical function division, and there may be other division manners in actual implementation, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or modules, whether electrically, mechanically, or otherwise.
In addition, each functional module in each embodiment of the present application may be integrated in one processor, or each module may be separately used as one device, or two or more modules may be integrated in one device; the functional modules in the embodiments of the present application may be implemented in hardware, or may be implemented in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by program instructions and associated hardware, where the program instructions may be stored in a computer readable storage medium, and where the program instructions, when executed, perform steps comprising the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a read only memory (Read On ly Memory, ROM), a magnetic or optical disk, or other various media capable of storing program code.
It should be appreciated that the use of "systems," "devices," "units," and/or "modules" in this disclosure is but one way to distinguish between different components, elements, parts, portions, or assemblies at different levels. However, if other words can achieve the same purpose, the word can be replaced by other expressions.
As used in the specification and in the claims, the terms "a," "an," "the," and/or "the" are not specific to a singular, but may include a plurality, 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.
Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
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 a system according to an embodiment 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 method and the system for transmitting the time-sensitive network traffic provided by the application are described in detail. The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. 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 application. Thus, the present application 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 (9)

1. A method for transmitting time-sensitive network traffic, comprising the steps of:
the end system acquires a TSN management message transmitted by a TSN network;
the end system generates a TSN data message;
the end system obtains TSN network time according to the TSN management message;
and the end system injects the TSN data message into the TSN according to the TSN network time.
2. The method for traffic transmission in a time sensitive network of claim 1, wherein the end system obtaining the first TSN message transmitted by the TSN network comprises:
the end system caches the TSN management messages in the TSN network to a time aware register in a preset format based on a DMA operation.
3. The method for traffic transmission in a time sensitive network of claim 2, wherein the end system generates TSN data messages comprising:
mapping the configuration space of the time perception register and the physical address of the buffer area into a virtual space;
and generating TSN data messages in the virtual space.
4. The method for traffic transmission in a time sensitive network of claim 3, wherein the end system obtaining the TSN network time according to the TSN management message comprises:
acquiring a state value of the time perception register;
judging whether the state value of the time sensing register is equal to a preset state value or not;
if yes, the variable flag value of the time sensing register is adjusted, and the adjustment time is recorded to serve as the TSN network time.
5. The method of claim 4, wherein after adjusting the variable flag value of the time aware register and recording the adjustment time as the TSN network time if the time aware register is active, further comprising:
initializing a state value of the time-aware register.
6. The method for traffic transmission in a time sensitive network of claim 4, wherein said end system injecting said TSN data packets into said TSN network according to said TSN network time comprises:
analyzing the TSN data message to obtain a message parameter;
and injecting the TSN data message into the TSN network according to the message parameters and the TSN network time.
7. The time sensitive network traffic transmission method of claim 1, further comprising, after the end system injects the TSN data message into the TSN network according to the TSN network time:
the TSN network judges whether the offset time of the current time relative to the beginning of a preset cyclic scheduling period is matched with a time period in a preset time notification table or not;
if yes, generating and injecting the TSN management message to the end system.
8. A time sensitive network traffic transmission system, comprising: an end system and a TSN network;
the end system includes: the system comprises an application program, a user mode driving module, a kernel module and a network card communication module;
the user mode driving module is respectively connected with the application program and the kernel module;
the kernel module is respectively connected with the network card communication module and the user mode driving module;
the network card communication module is used for acquiring a TSN management message transmitted by the TSN network;
the application program is used for generating TSN data messages;
the kernel module and the user mode driving module are mutually matched and are used for acquiring TSN network time according to the TSN management message;
and the user mode driving module is used for injecting the TSN data message into the TSN according to the TSN network time.
9. The time sensitive network traffic transmission system of claim 8, wherein the network card communication module comprises: a time-aware register;
the time perception register is used for caching the TSN management message in the TSN network in a preset format based on DMA operation;
the user mode driving module comprises: a resource initialization sub-module, a management register judging sub-module and a TSN message transmitting sub-module;
the resource initialization submodule is used for mapping the configuration space of the time perception register and the physical address of the buffer area into a virtual space;
the management register judging submodule is used for judging whether the state value of the time perception register is equal to a preset state value or not;
and the TSN message sending submodule is used for injecting the TSN data message into the TSN network according to the message parameter and the TSN network time.
CN202310877234.3A 2023-07-17 2023-07-17 Time-sensitive network traffic transmission method and system Pending CN116827474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310877234.3A CN116827474A (en) 2023-07-17 2023-07-17 Time-sensitive network traffic transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310877234.3A CN116827474A (en) 2023-07-17 2023-07-17 Time-sensitive network traffic transmission method and system

Publications (1)

Publication Number Publication Date
CN116827474A true CN116827474A (en) 2023-09-29

Family

ID=88120219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310877234.3A Pending CN116827474A (en) 2023-07-17 2023-07-17 Time-sensitive network traffic transmission method and system

Country Status (1)

Country Link
CN (1) CN116827474A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118199782A (en) * 2024-05-20 2024-06-14 南昌智能新能源汽车研究院 Ethernet message time-sharing scheduling method, system, storage medium and intelligent device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118199782A (en) * 2024-05-20 2024-06-14 南昌智能新能源汽车研究院 Ethernet message time-sharing scheduling method, system, storage medium and intelligent device

Similar Documents

Publication Publication Date Title
CN114780458B (en) Data processing method and storage system
EP1839167B1 (en) Method and apparatus of reducing transfer latency in an soc interconnect
US8375145B2 (en) Doorbell handling with priority processing function
US20050149665A1 (en) Scratchpad memory
US7373467B2 (en) Storage device flow control
US20060182040A1 (en) Device and method for diagnosis in multi-channel-CAN-applications
US8725873B1 (en) Multi-server round robin arbiter
CN116827474A (en) Time-sensitive network traffic transmission method and system
US20110164616A1 (en) Methods and apparatus for processing superframes
CN103647726A (en) Message dispatching method and device thereof
JPH04312160A (en) Multiprocessor system and its message transmission and reception controller
CN106959929B (en) Multi-port access memory and working method thereof
CN103986585A (en) Message preprocessing method and device
WO2024088268A1 (en) Rdma event management methods, and device and storage medium
CN113127139B (en) Memory allocation method and device based on DPDK of data plane development kit
CN112035899A (en) Data communication system and method based on password card
CN110474828A (en) A kind of MBUS bus communication and system
CN106788842A (en) The processing method and SOC of a kind of PTP messages
KR102303424B1 (en) Direct memory access control device for at least one processing unit having a random access memory
US20040081108A1 (en) Arbitration system
CN113157465A (en) Message sending method and device based on pointer linked list
CN107911317B (en) Message scheduling method and device
CN115955441A (en) Management scheduling method and device based on TSN queue
WO2022048407A1 (en) Method and apparatus for mixed scheduling of messages, and electronic device and storage medium
CN112491620B (en) Multi-channel data transmission controller based on SRIO and adjusting method

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