Time-sensitive network data processing method, device, equipment and storage medium
Converting non-TSN data packets into TSN data packets and configuring TSN resources through the TSN gateway solves the problem of being unable to serve non-TSN terminals due to the high cost of TSN terminals, and enables effective services for non-TSN terminals that require time-sensitive networks. The quality of its data transmission is ensured.
Patent Information
- Application Number
- CN202211129127.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-09-16
AI Technical Summary
In the existing technology, the cost of TSN terminals is high, resulting in a small number of TSN terminals, which cannot provide services for non-TSN terminals that require time-sensitive networks, resulting in non-TSN terminals being unable to use TSN's communication transmission and forwarding mechanism.
Obtain the business requirements of non-TSN terminals through the TSN gateway, convert non-TSN data messages into TSN data messages, and send business parameters to the CNC device so that the CNC device can send scheduling policies to the TSN switch, configure TSN resources, and provide services for non-TSN terminals. TSN service.
It realizes TSN services for non-TSN terminals that require time-sensitive networks, ensures low packet loss rate and low delay in data transmission, and expands the service scope of TSN terminals.
Smart Images

Figure CN115550271B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a time-sensitive network data processing method, device, equipment and storage medium. Background Art
[0002] Time-sensitive networking (TSN) technology places special emphasis on transmission determinism, low latency, and high availability. TSN terminals can ensure low packet loss and low latency when transmitting data through TSN.
[0003] Currently, due to the high cost of TSN terminals, there are fewer TSN terminals in the communication system and more non-TSN terminals. However, since TSN cannot provide services for non-TSN terminals, non-TSN terminals that require time-sensitive networks cannot use TSN's communication transmission and forwarding mechanism.
[0004] Therefore, how to provide TSN services for non-TSN terminals that require time-sensitive networks is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present application provides a time-sensitive network data processing method, device, equipment and storage medium to at least solve the technical problem of how to provide TSN services for non-TSN terminals that have demand for time-sensitive networks in the related art. The technical solution of the present application is as follows:
[0006] According to the first aspect of the technical solution of the present application, a time-sensitive network data processing method is provided, which is applied to a time-sensitive network TSN gateway, and the method includes: in response to a non-TSN data message sent by a non-TSN terminal, obtaining the service requirements of the non-TSN terminal; the service requirements include at least one of latency, latency jitter, and packet loss rate. When the service requirements meet the preset conditions, the non-TSN data message is converted into a TSN data message. The service parameters of the non-TSN terminal are sent to the centralized network configuration CNC device. The service parameters include the interval period for the non-TSN terminal to send data messages, the TSN service identifier, and the TSN data message. The service parameters are used to instruct the CNC to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch. The TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for the non-TSN terminal.
[0007] In a possible implementation, the service parameters also include a first timestamp and a second timestamp; the first timestamp is the timestamp for starting to convert the non-TSN data message into the TSN data message, and the second timestamp is the timestamp for completing the conversion of the non-TSN data message into the TSN data message, and the service parameters are used to instruct the CNC device to determine the total interval period for the non-TSN terminal to send data messages based on the first timestamp, the second timestamp, and the interval period, and determine the TSN scheduling strategy based on the total interval period, the TSN service identifier, and the TSN data message. In this way, the TSN gateway also reports the time when the non-TSN data message is converted into the TSN data message to the CNC device, so that the CNC device can obtain the total interval period for the non-TSN terminal to send data messages, so that the TSN scheduling strategy can be generated more accurately.
[0008] In a possible implementation, the above-mentioned "converting the non-TSN data message into the TSN data message" includes: parsing the non-TSN data message to obtain a first protocol identifier corresponding to the non-TSN data message, and adjusting the first protocol identifier to a second protocol identifier, encapsulating to obtain a TSN data message; the second protocol identifier is a TSN protocol identifier. In this way, the non-TSN data message is converted into a TSN data message.
[0009] In a possible implementation, the TSN data message includes a priority, and the method further includes: determining the priority of the non-TSN data message based on business requirements and preset priority rules. In the process of encapsulating the second protocol identifier, the priority is encapsulated into the TSN data message. In this way, the priority of the non-TSN data message is also encapsulated into the TSN data message, so that the converted TSN data message can be better transmitted.
[0010] In a possible implementation, the service demand meets the preset conditions, including: the delay is less than the preset delay threshold, and / or the delay jitter is less than the preset delay jitter threshold, and / or the packet loss rate is less than the preset packet loss threshold. In this way, it can be determined whether the non-TSN terminal has a demand for a time-sensitive network.
[0011] In a possible implementation, the data processing method further includes: receiving a target data message sent by the target terminal, parsing the target data message, and obtaining a protocol identifier of the target data message. If the protocol identifier is a non-TSN protocol identifier, determining that the target terminal is a non-TSN terminal, and determining that the target data message is a non-TSN data message. In this way, the TSN gateway can determine whether the target terminal is a TSN terminal.
[0012] In a possible implementation, TSN data packets are transmitted through the fifth generation 5G network, and the non-TSN terminal is a layer 2 Ethernet terminal. Before converting the non-TSN data packets into TSN data packets, the method further includes: encapsulating the non-TSN data packets based on a preset encapsulation protocol; the preset encapsulation protocol is any one of multi-protocol label switching MPLS, general routing encapsulation GRE, and virtual extensible local area network Vxlan. In this way, TSN data packets can be transmitted in the 5G network.
[0013] In the second aspect, a time-sensitive network data processing device is provided, which is applied to a time-sensitive network TSN gateway, and the device includes: an acquisition unit, a conversion unit and a sending unit. The acquisition unit is used to obtain the service requirements of the non-TSN terminal in response to the non-TSN data message sent by the non-TSN terminal; the service requirements include at least one of latency, latency jitter and packet loss rate. The conversion unit is used to convert the non-TSN data message into a TSN data message when the service requirements meet the preset conditions. The sending unit is used to send the service parameters of the non-TSN terminal to the centralized network configuration CNC device; the service parameters include the interval period of the non-TSN terminal sending the data message, the TSN service identifier and the TSN data message, the service parameters are used to instruct the CNC to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch, and the TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for the non-TSN terminal.
[0014] In a possible implementation, the service parameters also include a first timestamp and a second timestamp; the first timestamp is the timestamp for starting to convert the non-TSN data packet into the TSN data packet, and the second timestamp is the timestamp for completing the conversion of the non-TSN data packet into the TSN data packet; the service parameters are used to instruct the CNC device to determine the total interval period for the non-TSN terminal to send data packets based on the first timestamp, the second timestamp and the interval period, and determine the TSN scheduling strategy based on the total interval period, the TSN service identifier and the TSN data packet.
[0015] In a possible implementation, the conversion unit is specifically used to parse the non-TSN data message to obtain a first protocol identifier corresponding to the non-TSN data message, and adjust the first protocol identifier to a second protocol identifier to encapsulate to obtain a TSN data message; the second protocol identifier is a TSN protocol identifier.
[0016] In a possible implementation, the TSN data message includes a priority, and the data processing device further includes a determination unit and an encapsulation unit. The determination unit is further configured to determine the priority of the non-TSN data message based on business requirements and preset priority rules. The encapsulation unit is configured to encapsulate the priority into the TSN data message during the process of encapsulating the second protocol identifier.
[0017] In a possible implementation, the service demand meets preset conditions, including: the delay is less than a preset delay threshold, and / or the delay jitter is less than a preset delay jitter threshold, and / or the packet loss rate is less than a preset packet loss threshold.
[0018] In a possible implementation, the data processing device further includes a receiving unit and a parsing unit. The receiving unit is configured to receive a target data message sent by a target terminal. The parsing unit is configured to parse the target data message to obtain a protocol identifier of the target data message. The determining unit is further configured to determine that the target terminal is a non-TSN terminal if the protocol identifier is a non-TSN protocol identifier, and to determine that the target data message is a non-TSN data message.
[0019] In one possible implementation, TSN data packets are transmitted through the fifth-generation 5G network, the non-TSN terminal is a Layer 2 Ethernet terminal, and the encapsulation unit is also used to encapsulate the non-TSN data packets based on a preset encapsulation protocol; the preset encapsulation protocol is any one of multi-protocol label switching MPLS, general routing encapsulation GRE, and virtual extensible LAN Vxlan.
[0020] In a third aspect, a time-sensitive network TSN gateway is provided, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the data processing method of the first aspect.
[0021] In a fourth aspect, a computer-readable storage medium is provided. When the computer execution instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the data processing method of the first aspect.
[0022] In a fifth aspect, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the data processing method of the first aspect.
[0023] The technical solution of the first aspect provided by the present application brings at least the following beneficial effects: when a non-TSN terminal has a demand for a time-sensitive network, the TSN gateway converts the non-TSN data message into a TSN data message, and sends the service parameters of the non-TSN terminal to the CNC device, so that the CNC device sends the TSN scheduling policy to the TSN switch. In this way, the converted TSN data message can be transmitted through the communication transmission forwarding mechanism of TSN, so that TSN can provide TSN services for non-TSN terminals that have a demand for a time-sensitive network.
[0024] It should be noted that the technical effects brought about by any implementation of the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation of the first aspect, which will not be repeated here. It should be understood that the above general description and the detailed description below are only exemplary and explanatory and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0026] Figure 1 A structural diagram of a TSN architecture provided in an embodiment of the present application;
[0027] Figure 2 A structural diagram of a TSN data format provided in an embodiment of the present application;
[0028] Figure 3 A structural diagram of a TSN fusion structure provided in an embodiment of the present application;
[0029] Figure 4 A structural diagram of a data processing system provided in an embodiment of the present application;
[0030] Figure 5 A structural diagram of another data processing system provided in an embodiment of the present application;
[0031] Figure 6 A structural diagram of a TSN gateway provided in an embodiment of the present application;
[0032] Figure 7 One of the flowcharts of a data processing method provided in an embodiment of the present application;
[0033] Figure 8 A second flowchart of a data processing method provided in an embodiment of the present application;
[0034] Fig. 9 A third flowchart of a data processing method provided in an embodiment of the present application;
[0035] Fig.10 A fourth flowchart of a data processing method provided in an embodiment of the present application;
[0036] Fig.11 A fifth flowchart of a data processing method provided in an embodiment of the present application;
[0037] Fig.12 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0038] Fig.13 A schematic diagram of the structure of another TSN gateway provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0041] Before introducing the transaction method provided by this application in detail, a brief introduction to the relevant elements, application scenarios, and implementation environment involved in this application is first given.
[0042] First, a brief introduction to the relevant elements involved in this application is given.
[0043] TSN is a set of data link layer protocol specifications developed by the Institute of Electrical and Electronics Engineers (IEEE) 802.1 Task Group to build a more reliable, low-latency, and low-jitter Ethernet. Figure 1 As shown, it includes centralized user configuration (CUC) equipment, centralized network configuration (CNC) equipment, terminals, gateways and TSN switches. Among them, the CUC device is used to discover TSN terminal nodes and retrieve terminal node functions and business requirements. At the same time, the business information is sent to the CNC device. The CNC is a centralized network configuration with a global network view and configuration of TSN switch gating and other scheduling information. The TSN switch fully complies with the IEEE-defined 802.1AS time synchronization protocol, 802.1QBV gating protocol, 802.1QAV traffic shaping protocol, etc. to ensure the certainty of TSN business transmission.
[0044] TSN data formats, such as Figure 2As shown, the TSN data format includes the media access control address (MAC) target address, MAC source address, 802.1Q tag, length / type value, data and check data. Among them, the 802.1Q tag is 4 bytes, including the protocol identifier (TPID) and tag control information (TCI). TPID includes the protocol type protocol identifier (for example, 0x8100). TCI includes the priority (PCP), the common flash interface (CFI), and the virtual local area network identity document (VLAN ID), where the priority (PCP) is represented by any number from 0 to 7 as a binary integer, occupying 3 bits.
[0045] The fifth generation mobile communication technology (5G) network and TSN fusion architecture: With the improvement of 5G network performance, it is becoming more and more possible to empower vertical industries. 5G networks can get rid of the constraints of cables, so they are more flexible and have attracted the attention of the industry. Currently, the 3rd Generation Partnership Project (3GPP) standard organization has proposed an architecture that integrates 5G networks and TSN, that is, the 5G network acts as a TSN bridge and implements the carrying of TSN services in a black box manner. Specifically, combined with Figure 3, the 5G network in the converged architecture is configured with a network-side TSN translator (NW-TT) on the network side and a user equipment-side TSN translator (DS-TT) on the equipment side. The 5G network also includes access and mobility management function (AMF), session management function (SMF), user plane function (UPF), policy control function (PCF), unified data management function (UDM), network exposure function (NEF) TSN application function (AF), radio access network (RAN) and user equipment (UE) module. In addition, devices supporting the TSN system are connected to both sides of the 5G network.
[0046] In some examples, a higher PCP value indicates a higher priority of its data packet, and data packets with higher priority are transmitted first.
[0047] In other embodiments, a higher PCP value indicates a lower priority of its data packet.
[0048] Secondly, the application scenarios involved in this application are briefly introduced.
[0049] Among the related technologies, TSN technology pays special attention to the determinism, low latency and high availability of transmission. TSN terminals can ensure low packet loss rate and low latency when transmitting data through TSN. At present, due to the high cost of TSN terminals, there are fewer TSN terminals and more non-TSN terminals in the communication system. However, since TSN cannot provide services for non-TSN terminals, non-TSN terminals that require time-sensitive networks cannot use the communication transmission forwarding mechanism of TSN. Therefore, how to provide TSN services for non-TSN terminals that require time-sensitive networks is a technical problem that needs to be solved urgently.
[0050] In response to the above problems, the present application provides a data processing method, which is applied to a time-sensitive network TSN gateway. The method includes: the TSN gateway responds to the non-TSN data message sent by the non-TSN terminal to obtain the service requirements of the non-TSN terminal. The TSN gateway converts the non-TSN data message into a TSN data message when the service requirements meet the preset conditions. The service parameters of the non-TSN terminal are sent to the centralized network configuration CNC device. The service parameters include the interval period for the non-TSN terminal to send data messages, the TSN service identifier, and the TSN data message. The service parameters are used to instruct the CNC to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch. The TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for the non-TSN terminal. In this way, when the non-TSN terminal has a demand for a time-sensitive network, the TSN gateway converts the non-TSN data message into a TSN data message, and sends the service parameters of the non-TSN terminal to the CNC device, so that the CNC device sends the TSN scheduling strategy to the TSN switch. In this way, the converted TSN data message can be transmitted through the communication transmission forwarding mechanism of TSN, so that TSN can provide TSN services for non-TSN terminals that have requirements for time-sensitive networks.
[0051] Finally, the implementation environment (implementation architecture) involved in the method provided in this application is briefly introduced.
[0052] Figure 4 This is the implementation architecture diagram of this application. Figure 4 The schematic diagram of the structure of a time-sensitive network data processing system provided by the embodiment of the present application is shown. The data processing system 10 may include: a CUC device 11, a CNC device 12, a TSN switch 13 (in Figure 4 In the figure, a TSN switch is shown as an example. In actual applications, there may be more TSN switches), a TSN gateway 14 and a non-TSN terminal 15 (in Figure 3 A non-TSN terminal is shown as an example, and in actual applications, more non-TSN terminals may be included, and in addition, a TSN terminal may be included). The CUC device 11 is connected to the CNC device 12 and the non-TSN terminal 15 respectively. The CNC device 12 is connected to the TSN switch 13 and the TSN gateway 14 respectively. The TSN switch 13 is connected to the TSN gateway 14. The TSN gateway 14 is connected to the non-TSN terminal 15.
[0053] In some embodiments, the CUC device 11 and the CNC device 12 may be located in the same electronic device.
[0054] In other embodiments, the CUC device 11 and the CNC device 12 may be two different electronic devices.
[0055] The CUC device 11 is used to obtain the service requirements of the non-TSN terminal 15 and send the service requirements of the non-TSN terminal 15 to the CNC device 12. The service requirements include latency, latency jitter, and packet loss rate. The CUC device 11 can receive the service requirements actively reported by the non-TSN terminal 15, or send a service requirement request to the non-TSN terminal 15 to obtain the service requirements of the non-TSN terminal 15, which is not limited in the embodiment of the present application.
[0056] In some embodiments, the CUC device 11 is further used to obtain the TSN terminal, the function of the TSN terminal and the service requirements of the TSN terminal.
[0057] The CNC device 12 is used to obtain global network topology data and receive service parameters of the non-TSN terminal 15 sent by the TSN gateway 14. The service parameters include the interval period for the non-TSN terminal 15 to send data packets, the TSN service identifier, and the TSN data packet.
[0058] The CNC device 12 is also used to obtain the service requirements, service parameters and data messages of the non-TSN terminal reported by the TSN gateway 14, and configure the TSN scheduling strategy for the non-TSN terminal based on the service requirements, service parameters and message data of the non-TSN terminal.
[0059] The TSN switch 13 includes a TSN chip and can support standards such as TSN802.1AS, TSN802.Qbv, etc. At the same time, the TSN switch 13 can also be used as a general-purpose ordinary switch.
[0060] The TSN switch is also used to receive the TSN scheduling policy sent by the CNC device 12 and configure TSN resources for the non-TSN terminal.
[0061] The TSN gateway 14 includes a TSN chip and is used to convert non-TSN protocol data packets into TSN data packets, and is also used to encapsulate the data packets based on a preset encapsulation protocol so that the terminal can send service data to access the transmission network.
[0062] Exemplarily, the preset encapsulation protocol is multi-protocol labelswitching (MPLS), generic routing encapsulation (GRE) or virtual eXtensible local area network (Vxlan).
[0063] The TSN gateway 14 is also used to process data packets sent by different types of terminals, for example, by isolating them through a virtual local area network identity document (VLAN ID) or network slicing, and transmitting data packets through TSN, an industrial Ethernet wired transmission network, or a 5G network.
[0064] The TSN gateway 14 is also used to support network topology, neighbor device discovery, and protocols such as 802.Qcc, for example, link layer discovery protocol (LLDP) or neighbor discovery protocol (NDP).
[0065] In one design, Figure 5 As shown, the time-sensitive network data processing system 10 may also include a 5G base station 16, a core network 17, and a receiving device 18. Among them, the receiving device 18 may be a server, including an industrial application system.
[0066] In some embodiments, Figure 6 As shown, the TSN gateway 14 includes a 5G module 20, a radio frequency module 21, a clock unit 22, a TSN switching chip 23, a switching chip 24, a gateway sensing decision module 25, a storage and forwarding module 26, an Ethernet interface 27, an industrial serial port 28 and a gateway processing unit 29. Among them, the gateway processing unit 29 includes a traffic extraction module 31, a protocol processing module 32 and a timer module 33.
[0067] The store-and-forward module 26 is used to determine whether the terminal is a TSN terminal device, and to process the non-TSN data message of the non-TSN terminal that has a demand for the TSN network to obtain the TSN data message for forwarding in the TSN.
[0068] The storage and forwarding module 26 is also used to report the service requirements, service parameters and data messages of the terminal to the CNC 12 .
[0069] In some embodiments, the non-TSN terminal 15 sends a data message to the industrial server. The industrial server is installed with an industrial application system. The industrial application system is a system that carries industrial business applications, such as a remote control system, a video monitoring system, a distributed control system (DCS), and an industrial Internet platform system.
[0070] The non-TSN terminal 15 may be a terminal at an industrial site, and may include a programmable logic controller (PLC), a sensor, and a collector.
[0071] For ease of understanding, the data processing method provided by the present application is specifically introduced below with reference to the accompanying drawings.
[0072] Figure 7 FIG. 1 is a flowchart of a method for processing time-sensitive network data according to an exemplary embodiment, and the method is applied to a time-sensitive network TSN gateway. Figure 7 As shown, the time-sensitive network data processing method includes the following steps: S401-S404.
[0073] S401. The TSN gateway obtains a service demand of the non-TSN terminal in response to a non-TSN data message sent by the non-TSN terminal.
[0074] The service requirement includes at least one of delay, delay jitter and packet loss rate.
[0075] As a possible implementation method, the TSN gateway receives a data message sent by a non-TSN terminal, parses the data message, and determines that the data message is a non-TSN data message. Further, the TSN gateway responds to the non-TSN data message sent by the non-TSN terminal and sends a request to the CNC device to obtain the service requirements of the non-TSN terminal. Subsequently, the TSN gateway receives the service requirements of the non-TSN terminal sent by the CNC device.
[0076] For example, the non-TSN terminal is terminal A. The TSN gateway receives the data message sent by terminal A, parses the data message, and determines that the data message is a non-TSN data message. Further, the TSN gateway determines that terminal A is a non-TSN terminal, and in response to the non-TSN data message sent by terminal A, sends a request to the CNC device to obtain the service requirements of terminal A. Subsequently, the TSN gateway receives the service requirements of terminal A sent by the CNC device.
[0077] Specifically, after determining that the data message is a non-TSN data message, the TSN gateway obtains the identifier of the non-TSN terminal, and generates a request for service demand based on the identifier of the non-TSN terminal. Further, the TSN gateway sends a request for service demand to the CNC device. Correspondingly, after receiving the request for service demand sent by the TSN gateway, the CNC device obtains the service demand of the non-TSN terminal based on the identifier of the non-TSN terminal, and sends the service demand of the non-TSN terminal to the TSN gateway.
[0078] In another case, the TSN gateway responds to the TSN data message sent by the TSN terminal and obtains the service flow parameters of the TSN terminal from the storage and forwarding module based on the identification of the TSN terminal. The service flow parameters include the sending interval period, transmission rate and length of the TSN terminal data message. Further, the TSN gateway sends the service flow parameters of the TSN terminal and the TSN data message to the CNC device.
[0079] Accordingly, the CNC device generates a TSN scheduling strategy based on the service flow parameters of the TSN terminal and the TSN data message, and sends a startup instruction to the TSN switch in the TSN so that the TSN switch in the TSN starts the TSN function. Further, the CNC device sends the TSN scheduling strategy to the TSN switch in the TSN. In this way, the TSN switch can transmit the TSN data message according to the transmission standard (such as the 802.1TSN network transmission standard) to ensure the communication quality of the TSN data message.
[0080] In some embodiments, the service flow parameters of the TSN terminal in the storage and forwarding module are obtained by the TSN gateway based on the historical data messages sent by the TSN terminal.
[0081] S402: The TSN gateway determines whether the service demand meets the preset conditions.
[0082] As a possible implementation method, the TSN gateway determines whether the delay is less than a preset delay threshold, and / or whether the delay jitter is less than a preset delay jitter threshold, and / or whether the packet loss rate is less than a preset packet loss threshold.
[0083] This step can refer to the subsequent embodiments of the present application and will not be repeated here.
[0084] S403: When the service demand meets the preset conditions, the TSN gateway converts the non-TSN data message into a TSN data message.
[0085] As a possible implementation method, when the delay is less than a preset delay threshold, and / or the delay jitter is less than a preset delay jitter threshold, and / or the packet loss rate is less than a preset packet loss threshold, the TSN gateway parses the non-TSN data message to obtain a first protocol identifier corresponding to the non-TSN data message, and sets the protocol identifier in the non-TSN data message from the first protocol identifier to the second protocol identifier, and encapsulates the TSN data message. The second protocol identifier is the TSN protocol identifier.
[0086] This step can refer to the subsequent embodiments of the present application and will not be repeated here.
[0087] In another case, when the service demand does not meet the preset conditions, the TSN gateway sends a non-TSN data message to the TSN switch based on the preset network protocol.
[0088] In some embodiments, the preset network protocol may be an industrial Ethernet protocol.
[0089] It is understandable that when the business requirements do not meet the preset conditions, the TSN switch does not start the TSN function. Non-TSN data packets are transmitted between networks according to non-TSN. In this way, the time-sensitive network communication forwarding mechanism in the embodiment of the present application is compatible with the access of TSN terminals and non-TSN terminals, and can be processed according to the terminal type and business requirements, providing deterministic communication transmission guarantee for services with strict latency requirements, while ensuring normal communication bearer for other industrial services.
[0090] S404. The TSN gateway sends the service parameters of the non-TSN terminal to the centralized network configuration CNC device.
[0091] The service parameters include the interval period for non-TSN terminals to send data packets, TSN service identifiers, and TSN data packets. The service parameters are used to instruct the CNC to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch. The TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for non-TSN terminals.
[0092] As a possible implementation method, the TSN gateway generates a service message based on the identifier of the non-TSN terminal and the service parameters, and sends the service message to the CNC device.
[0093] In some embodiments, the service parameters may also include a transmission rate and a length of a data packet sent by a non-TSN terminal.
[0094] Subsequently, the CNC device receives the service message sent by the TSN gateway and parses the service message to obtain the identification and service parameters of the non-TSN terminal. Further, the CNC device determines the TSN scheduling strategy such as clock synchronization and gating of the non-TSN terminal based on the service parameters, and sends the TSN scheduling strategy to the TSN switch.
[0095] The data processing method provided by the embodiment of the present application brings the following beneficial effects: when a non-TSN terminal has a demand for a time-sensitive network, the TSN gateway converts the non-TSN data message into a TSN data message, and sends the service parameters of the non-TSN terminal to the CNC device, so that the CNC device sends the TSN scheduling policy to the TSN switch. In this way, the converted TSN data message can be transmitted through the communication transmission forwarding mechanism of TSN, so that TSN can provide TSN services for non-TSN terminals that have a demand for a time-sensitive network, and ensure the transmission quality of the data message transmitted by the non-TSN terminal.
[0096] In one design, in order to accurately obtain the interval period of sending data packets by the non-TSN terminal, in the data processing method provided in the embodiment of the present application, the service parameters also include a first timestamp and a second timestamp.
[0097] Among them, the first timestamp is the timestamp for starting to convert the non-TSN data message into the TSN data message, the second timestamp is the timestamp for completing the conversion of the non-TSN data message into the TSN data message, and the service parameter is used to instruct the CNC to determine the total interval period for the non-TSN terminal to send the data message based on the first timestamp, the second timestamp and the interval period, and determine the TSN scheduling strategy based on the total interval period, the TSN service identifier and the TSN data message.
[0098] In some embodiments, when the TSN gateway determines that the service requirements of the non-TSN terminal meet the preset conditions, it starts the timer module and obtains the first timestamp. Further, the TSN gateway converts the non-TSN data message into a TSN data message and obtains the service traffic parameters of the non-TSN terminal from the storage and forwarding module. Among them. The service traffic parameters include the interval period, transmission rate and length of the data message sent by the non-TSN terminal. Subsequently, when the SN gateway converts the non-TSN data message into a TSN data message, the timer module of the TSN gateway obtains the second timestamp.
[0099] Correspondingly, after receiving the first timestamp, the second timestamp and the interval period, the CNC device determines the total interval period for the non-TSN terminal to send data packets.
[0100] For example, taking the first timestamp as t1, the second timestamp as t2, and the interval period as p, the CNC device determines that the total interval period for the non-TSN terminal to send data packets is: p+(t2-t1).
[0101] In some embodiments, the TSN gateway obtains the service flow parameters of the non-TSN terminal based on the historical data messages sent by the non-TSN terminal, and stores the service flow parameters of the non-TSN terminal in the storage and forwarding module.
[0102] It can be understood that the time difference between the second timestamp and the first timestamp is the time when the TSN gateway converts the non-TSN data message into the TSN data message. In this way, the time when the non-TSN data message is converted into the TSN data message plus the interval period of the non-TSN terminal sending the data message is the period of the non-TSN terminal sending the data message.
[0103] In one design, in order to convert non-TSN data packets into TSN data packets, such as Figure 8 As shown, S404 provided in the embodiment of the present application specifically includes S4041-S4042.
[0104] S4041. The TSN gateway parses the non-TSN data message to obtain a first protocol identifier corresponding to the non-TSN data message.
[0105] S4042. The TSN gateway adjusts the first protocol identifier to a second protocol identifier and encapsulates the first protocol identifier to obtain a TSN data message.
[0106] The second protocol identifier is a TSN protocol identifier.
[0107] Specific, combined Figure 2 The TSN gateway adjusts the TPID from the first protocol identifier to the second protocol identifier and encapsulates it to obtain a TSN data message.
[0108] Exemplarily, the second protocol identifier is 0x8100.
[0109] In one design, in order to ensure the transmission quality of data packets, TSN data packets include priorities, such as Fig. 9 As shown, the data processing method provided in the embodiment of the present application also includes S405-S406.
[0110] S405. The TSN gateway determines the priority of the non-TSN data message based on business requirements and preset priority rules.
[0111] In some embodiments, there are multiple priority standards in the preset priority rules, and each priority corresponds to a delay interval. After obtaining the delay in the service demand, the TSN gateway determines the target delay interval to which the delay belongs, and then determines the target priority corresponding to the target delay interval. Further, the TSN gateway obtains the priority of the non-TSN data message as the target priority.
[0112] For example, the latency in the service requirement is 15 milliseconds (ms). After obtaining the latency in the service requirement as 15ms, the TSN gateway queries the latency interval (10ms-30ms) of 15ms in the preset priority rule, and then queries the latency interval (10ms-30ms) to be 3. In this way, the TSN gateway determines that the priority of the non-TSN data message is 3.
[0113] It should be noted that the preset priority rules are those in the TSN gateway that are set in advance by the operation and maintenance personnel.
[0114] S406. The TSN gateway encapsulates the priority into the TSN data message during the process of encapsulating the second protocol identifier.
[0115] Specific, combined Figure 2 , the TSN gateway writes the priority into the PCP corresponding to the 802.1Q tag.
[0116] In some embodiments, the TSN gateway also obtains the CFI, VLAN ID and first protocol identifier of the non-TSN data message, and in the process of encapsulating the second protocol identifier, also adds the CFI, VLAN ID and first protocol identifier to the TSN data message.
[0117] Specific, combined Figure 2 , the TSN gateway writes the CFI and VLAN ID into the position corresponding to the 802.1Q tag, and writes the first protocol identifier into the position corresponding to the length / type.
[0118] In one design, in order to determine whether the business requirements meet the preset conditions, the data processing method provided in the embodiment of the present application also includes the delay being less than a preset delay threshold, and / or the delay jitter being less than a preset delay jitter threshold, and / or the packet loss rate being less than a preset packet loss threshold.
[0119] In some embodiments, the TSN gateway obtains the service demand of the non-TSN terminal. Further, the TSN gateway determines that the delay is less than a preset delay threshold, and / or the delay jitter is less than a preset delay jitter threshold, and / or the packet loss rate is less than a preset packet loss threshold.
[0120] In one case, when the network is not congested, in order to ensure the communication quality of the non-TSN terminal, the TSN gateway determines that the business demand meets the preset conditions when it determines that the delay is less than the preset delay threshold, or the delay jitter is less than the preset delay jitter threshold, or the packet loss rate is less than the preset packet loss threshold.
[0121] In another case, in the case of network congestion, in order to avoid aggravating network congestion, the TSN gateway determines that the business demand meets the preset conditions when it determines that the delay is less than the preset delay threshold, the delay jitter is less than the preset delay jitter threshold, and the packet loss rate is less than the preset packet loss threshold.
[0122] Understandably, the TSN gateway can adjust the standards of whether the business demand meets the preset conditions according to the network congestion.
[0123] In one design, in order to determine the type of the target terminal, the data processing method provided in the embodiment of the present application is as follows: Fig.10 As shown, it also includes: S407-S4010.
[0124] S407: The TSN gateway receives the target data message sent by the target terminal.
[0125] S408. The TSN gateway parses the target data message to obtain a protocol identifier of the target data message.
[0126] S409: The TSN gateway determines whether the protocol identifier is a non-TSN protocol identifier.
[0127] As a possible implementation method, after obtaining the protocol identifier of the target data message, the TSN gateway determines whether the protocol identifier is consistent with the TSN protocol identifier.
[0128] S4010: If the protocol identifier is a non-TSN protocol identifier, the TSN gateway determines that the target terminal is a non-TSN terminal, and determines that the target data message is a non-TSN data message.
[0129] As a possible implementation method, the TSN gateway determines that the protocol identifier is a non-TSN protocol identifier when the protocol identifier is inconsistent with the TSN protocol identifier. Further, the TSN gateway determines that the target terminal is a non-TSN terminal when the protocol identifier is determined to be a non-TSN protocol identifier, and determines that the target data message is a non-TSN data message.
[0130] In one design, TSN data packets are transmitted through a fifth-generation 5G network, and the non-TSN terminal is a Layer 2 Ethernet terminal. In order to enable TSN data packets to be transmitted in the 5G network, before S404 provided in an embodiment of the present application, the method also includes: the TSN gateway encapsulates the non-TSN data packet based on a preset encapsulation protocol.
[0131] Among them, the preset encapsulation protocol is any one of Multi-Protocol Label Switching MPLS, Generic Routing Encapsulation GRE and Virtual Extensible Local Area Network Vxlan.
[0132] In another case, after S404 provided in the embodiment of the present application, the TSN gateway encapsulates the non-TSN data message based on a preset encapsulation protocol.
[0133] Specifically, when the transmission network where the TSN gateway is located includes a 5G network, if the TSN gateway determines that the service requirements of the non-TSN terminal meet the preset conditions, it reports the service parameters of the non-TSN terminal to the CNC device. Correspondingly, the CNC device sends an indication message to the TSN switch to instruct the TSN switch to enable the TSN function, and sends network resource guarantee policies to the 5G base station and the core network respectively.
[0134] For example, the CNC device sends ultra-reliable low-latency communication (URLLC), resource reservation strategy or quality of service (QOS) to the 5G base station and the core network. In this way, TSN data packets can be transmitted according to the 3GPP TSC network transmission standard.
[0135] It can be understood that when the TSN gateway is in a 5G network and a TSN converged network, and the non-TSN terminal is a Layer 2 Ethernet terminal, after receiving the data message, it is determined that the encapsulation of the data message is based on the Layer 2 Ethernet protocol. In this way, the data message cannot be transmitted in the 5G network. Therefore, the TSN gateway encapsulates the data message based on the preset encapsulation protocol to obtain the encapsulated data message. Since the preset encapsulation protocol is any one of multi-protocol label switching MPLS, general routing encapsulation GRE, and virtual extensible LAN Vxlan, the encapsulated data message can be transmitted at the network layer.
[0136] In order to better illustrate the time-sensitive network data processing flow of the embodiment of the present application, Fig.11As shown, the following steps are included: S501, the TSN gateway obtains the information of the adjacent device. S502, the TSN gateway determines whether the target terminal is a TSN terminal based on the data message sent by the target terminal. S503, if so, the TSN gateway sends the service parameters of the TSN terminal to the CNC device. S504, the CNC device sends the startup instruction and the TSN scheduling strategy to the TSN switch in response to the service parameters. S505, if not, the TSN gateway determines whether the service requirements meet the preset conditions based on the service requirements in the target. S506, if yes, the TSN gateway starts the timer module and obtains the first timestamp. S507, the TSN gateway converts the non-TSN data message into a TSN data message, and obtains the service flow parameters of the target terminal. S508, the TSN gateway obtains the second timestamp. S509, the TSN gateway sends the service parameters of the target terminal to the CNC device. Among them, the service parameters include the TSN service identifier, the first timestamp, the second timestamp, the service flow parameters and the converted TSN data message. For the subsequent, refer to S504. S5010: If not, the TSN gateway transparently transmits the non-TSN data message.
[0137] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, the transaction device or electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0138] The embodiment of the present application can exemplarily divide the functional modules of the data processing device or electronic device according to the above method. For example, the data processing device or electronic device may include various functional modules corresponding to the various functional divisions, or two or more functions may be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0139] For example, an embodiment of the present application also provides a time-sensitive network data processing device.
[0140] Fig.12 is a block diagram of a data processing device according to an exemplary embodiment. Fig.12 The data processing device 60 is applied to a time sensitive network TSN gateway. The data processing device 60 includes an acquisition unit 601, a conversion unit 602 and a sending unit 603. The acquisition unit 601 is used to obtain the service requirements of the non-TSN terminal in response to the non-TSN data message sent by the non-TSN terminal. The service requirements include at least one of delay, delay jitter and packet loss rate.
[0141] The conversion unit 602 is used to convert the non-TSN data message into a TSN data message when the service demand meets the preset conditions. The sending unit 603 is used to send the service parameters of the non-TSN terminal to the centralized network configuration CNC device. The service parameters include the interval period for the non-TSN terminal to send data messages, the TSN service identifier and the TSN data message. The service parameters are used to instruct the CNC to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch. The TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for the non-TSN terminal.
[0142] Optionally, the service parameters also include a first timestamp and a second timestamp; the first timestamp is the timestamp for starting to convert the non-TSN data packet into the TSN data packet, and the second timestamp is the timestamp for completing the conversion of the non-TSN data packet into the TSN data packet; the service parameters are used to instruct the CNC device to determine the total interval period for the non-TSN terminal to send data packets based on the first timestamp, the second timestamp and the interval period, and determine the TSN scheduling strategy based on the total interval period, the TSN service identifier and the TSN data packet.
[0143] Optionally, the conversion unit 602 is specifically used to parse the non-TSN data message to obtain a first protocol identifier corresponding to the non-TSN data message, and adjust the first protocol identifier to a second protocol identifier to encapsulate to obtain a TSN data message; the second protocol identifier is a TSN protocol identifier.
[0144] Optionally, the TSN data message includes a priority, and the data processing device further includes a determination unit 604 and an encapsulation unit 605. The determination unit 604 is further configured to determine the priority of the non-TSN data message based on business requirements and preset priority rules. The encapsulation unit 605 is configured to encapsulate the priority into the TSN data message during the process of encapsulating the second protocol identifier.
[0145] Optionally, the business requirements meet preset conditions, including: the delay is less than a preset delay threshold, and / or the delay jitter is less than a preset delay jitter threshold, and / or the packet loss rate is less than a preset packet loss threshold.
[0146] Optionally, the data processing device further includes a receiving unit 606 and a parsing unit 607. The receiving unit 606 is used to receive a target data message sent by the target terminal. The parsing unit 607 is used to parse the target data message to obtain a protocol identifier of the target data message. The determining unit is further used to determine that the target terminal is a non-TSN terminal if the protocol identifier is a non-TSN protocol identifier, and to determine that the target data message is a non-TSN data message.
[0147] Optionally, the TSN data message is transmitted through the fifth generation 5G network, the non-TSN terminal is a layer 2 Ethernet terminal, and the encapsulation unit 605 is also used to encapsulate the non-TSN data message based on a preset encapsulation protocol; the preset encapsulation protocol is any one of multi-protocol label switching MPLS, general routing encapsulation GRE and virtual extensible LAN Vxlan.
[0148] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of the TSN gateway involved in the above-mentioned embodiment. Fig.13 As shown, the TSN gateway 70 includes a processor 701, a memory 702 and a bus 703. The processor 701 and the memory 702 may be connected via the bus 703.
[0149] The processor 701 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 701 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0150] As an embodiment, the processor 701 may include one or more CPUs, such as Fig.12 CPU 0 and CPU 1 are shown in .
[0151] The memory 702 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0152] As a possible implementation, the memory 702 may exist independently of the processor 701, and the memory 702 may be connected to the processor 701 via a bus 703 to store instructions or program codes. When the processor 701 calls and executes the instructions or program codes stored in the memory 702, the sensor determination method provided in the embodiment of the present application can be implemented.
[0153] In another possible implementation, the memory 702 may also be integrated with the processor 701 .
[0154] The bus 703 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0155] It should be pointed out that Fig.13 The structure shown does not constitute a limitation on the TSN gateway 70. Fig.13 In addition to the components shown, the TSN gateway 70 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0156] Optionally, the TSN gateway 70 provided in the embodiment of the present application may further include a communication interface 704.
[0157] The communication interface 704 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 704 may include a receiving unit for receiving data and a sending unit for sending data.
[0158] In one design, in the TSN gateway 70 provided in the embodiment of the present application, the communication interface can also be integrated into the processor.
[0159] In another hardware structure of the TSN gateway provided in an embodiment of the present application, the electronic device may include a processor and a communication interface. The processor is coupled to the communication interface.
[0160] The functions of the processor may refer to the description of the above processor. In addition, the processor also has a storage function, which may refer to the functions of the above memory. The communication interface is used to provide data to the processor. The communication interface may be an internal interface of the communication device or an external interface of the communication device.
[0161] It should be pointed out that the above-mentioned another hardware structure does not constitute a limitation on the TSN gateway. In addition to the above-mentioned another hardware component, the TSN gateway may include more or fewer components, or a combination of certain components, or different component arrangements.
[0162] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the structural diagram of the middleware involved in the above-mentioned embodiments provided in the embodiments of the present application can refer to the structural diagram of the above-mentioned execution machine.
[0163] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the data processing method flow shown in the above method embodiment.
[0164] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the data processing method in the above method embodiment.
[0165] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0166] Since the server, user equipment, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present application will not be repeated here.
[0167] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A time-sensitive network data processing method, characterized in that: Applied to a time-sensitive network TSN gateway, the method includes: In response to a non-TSN data message sent by a non-TSN terminal, obtaining a delay of the non-TSN terminal; When the delay is less than a preset delay threshold, converting the non-TSN data message into a TSN data message; Sending the service parameters of the non-TSN terminal to the centralized network configuration CNC device; the service parameters include the interval period for the non-TSN terminal to send data packets, the TSN service identifier and the TSN data packet, the service parameters are used to instruct the CNC device to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch, and the TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for the non-TSN terminal; The service parameters also include a first timestamp and a second timestamp; the first timestamp is a timestamp for starting to convert the non-TSN data message into the TSN data message, and the second timestamp is a timestamp for completing the conversion of the non-TSN data message into the TSN data message, and the service parameters are used to instruct the CNC device to determine the total interval period for the non-TSN terminal to send data messages according to the first timestamp, the second timestamp and the interval period, and determine the TSN scheduling strategy according to the total interval period, the TSN service identifier and the TSN data message; The converting the non-TSN data message into a TSN data message includes: The non-TSN data message is parsed to obtain a first protocol identifier corresponding to the non-TSN data message, and the first protocol identifier is adjusted to a second protocol identifier, and encapsulated to obtain the TSN data message; the second protocol identifier is a TSN protocol identifier.
2. The method according to claim 1, characterized in that The TSN data message includes a priority, and the method further includes: Determine the priority of the non-TSN data message based on the business requirements and preset priority rules; In the process of encapsulating the second protocol identifier, the priority is encapsulated into the TSN data message.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Receiving a target data message sent by a target terminal, and parsing the target data message to obtain a protocol identifier of the target data message; If the protocol identifier is a non-TSN protocol identifier, the target terminal is determined to be a non-TSN terminal, and the target data message is determined to be a non-TSN data message.
4. The method according to claim 1 or 2, characterized in that: The TSN data message is transmitted through a fifth-generation 5G network, the non-TSN terminal is a layer 2 Ethernet terminal, and before converting the non-TSN data message into a TSN data message, the method further includes: The non-TSN data message is encapsulated based on a preset encapsulation protocol; the preset encapsulation protocol is any one of multi-protocol label switching MPLS, general routing encapsulation GRE and virtual extensible local area network Vxlan.
5. A time-sensitive network data processing device, characterized in that: Applied to a time-sensitive network TSN gateway, the device comprises: an acquisition unit, a conversion unit and a sending unit; The acquisition unit is used to acquire the delay of the non-TSN terminal in response to the non-TSN data message sent by the non-TSN terminal; The conversion unit is used to convert the non-TSN data message into a TSN data message when the delay is less than a preset delay threshold; The sending unit is used to send the service parameters of the non-TSN terminal to the centralized network configuration CNC device; the service parameters include the interval period for the non-TSN terminal to send data packets, the TSN service identifier and the TSN data packet, the service parameters are used to instruct the CNC device to determine the TSN scheduling strategy based on the service parameters and send the TSN scheduling strategy to the TSN switch, and the TSN scheduling strategy is used to instruct the TSN switch to configure TSN resources for the non-TSN terminal; The service parameters also include a first timestamp and a second timestamp; the first timestamp is a timestamp for starting to convert the non-TSN data message into the TSN data message, and the second timestamp is a timestamp for completing the conversion of the non-TSN data message into the TSN data message, and the service parameters are used to instruct the CNC device to determine the total interval period for the non-TSN terminal to send data messages according to the first timestamp, the second timestamp and the interval period, and determine the TSN scheduling strategy according to the total interval period, the TSN service identifier and the TSN data message; The conversion unit is specifically used to parse the non-TSN data message to obtain a first protocol identifier corresponding to the non-TSN data message, and adjust the first protocol identifier to a second protocol identifier to encapsulate the TSN data message; the second protocol identifier is a TSN protocol identifier.
6. A time-sensitive network TSN gateway, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the data processing method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can perform the data processing method according to any one of claims 1 to 4.
8. A computer program product, characterized in that The computer program product comprises computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the data processing method according to any one of claims 1 to 4.
