Data processing method and device based on terminal side TSN converter, equipment and medium

By performing clock synchronization and data classification processing in the terminal-side TSN converter, combined with the anti-packet loss algorithm, the problem that traditional Ethernet cannot meet the real-time and stability of the industrial Internet is solved, and the reliability and real-time nature of data transmission are improved.

CN119316371AActive Publication Date: 2025-01-14E SURFING IOT CO LTD

Patent Information

Application Number
CN202411508334.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-01-14
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

Traditional Ethernet cannot meet the real-time and stability requirements of the industrial Internet. When TSN is combined with 5G, there are differences in clock information, format information and scheduling resources, resulting in insufficient real-time and reliability of data transmission.

Method used

Using the data processing method based on the terminal-side TSN converter, time synchronization between the 5GS domain and the TSN domain is performed through the clock synchronization model, and using the TSN chip, 5G module and the main CPU to save service data to the interface forwarding according to the TSN stream characteristics and running time. Queue and forward through anti-packet loss algorithm.

Benefits of technology

It effectively improves the real-time and reliability of data transmission in industrial Internet scenarios, and realizes the interconnection function between the user terminal side and the network side.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316371A_ABST
    Figure CN119316371A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device based on a terminal side TSN converter, equipment and a medium, and can be applied to the technical field of communication. According to the invention, after a terminal side TSN converter comprising a TSN chip, a 5G module and a main CPU is arranged in a clock synchronization model, time synchronization of a 5GS domain is carried out on a transmission process of service data through the clock synchronization model, and time synchronization of a TSN domain is carried out through the clock synchronization model, so that cross-domain time synchronization of a data transmission process in an industrial internet scene is realized; after time synchronization is completed, the service data is stored in the interface forwarding queue according to the TSN flow characteristics and the operation time, and the service data of the interface forwarding queue is forwarded through a packet loss prevention algorithm, so that the reliability of data transmission in an industrial internet scene can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data processing method and apparatus, device and medium based on a terminal-side TSN converter. Background Art

[0002] In related technologies, traditional Ethernet cannot meet the real-time requirements of industrial Internet communications because it does not consider the transmission of real-time information. The heterogeneity of edge device nodes and limited computing and communication capabilities cannot meet the requirements for real-time and stability in industrial Internet scenarios. As an important bridge for integrating information technology and operational technology in the industrial field, TSN, combined with 5G networks, can improve the real-time and stability of data transmission. However, when TSN is combined with 5G for data transmission, there are differences in clock information, format information, and scheduling resources between the two, which cannot effectively improve the real-time and reliability of data transmission in industrial Internet scenarios.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a data processing method and device, equipment and medium based on a terminal-side TSN converter, which can effectively improve the real-time and reliability of data transmission in industrial Internet scenarios.

[0005] To achieve the above object, an embodiment of the present application provides a data processing method based on a terminal-side TSN converter, the method comprising the following steps:

[0006] Get business data;

[0007] The transmission process of the service data is synchronized in the 5GS domain through the clock synchronization model, and the time synchronization in the TSN domain is performed through the clock synchronization model. The terminal side TSN converter is provided in the clock synchronization model, and the terminal side TSN converter includes a TSN chip, a 5G module and a main CPU;

[0008] After time synchronization is completed, the service data is saved to the interface forwarding queue according to TSN flow characteristics and running time;

[0009] The service data of the interface forwarding queue is forwarded by using an anti-packet loss algorithm.

[0010] In some embodiments, the time synchronization of the service data transmission process in the 5GS domain through the clock synchronization model includes:

[0011] After the terminal completes air interface registration, the time synchronization operation between the TSN chip and the 5G module is completed through the first preset interface;

[0012] Sending the transmission protocol message to the main CPU through the TSN chip;

[0013] Parsing the transmission protocol message by the main CPU to obtain different types of transmission messages, obtaining a first timestamp according to the transmitted information, and sending the first timestamp to the 5G module;

[0014] The 5G module performs synchronization operation between the clock end time and the system time according to the first timestamp.

[0015] In some embodiments, performing time synchronization in the TSN domain by using a clock synchronization model includes:

[0016] When the main CPU receives the 5G clock message, the main CPU determines the type of the received message;

[0017] The main CPU determines that the current message is a new synchronization message according to the message type, records the hardware timestamp of the new synchronization message, and forwards the synchronization message to the TSN chip;

[0018] Determining, by the main CPU, that the current message is a follow-up message according to the message type, correcting the follow-up message, and forwarding the corrected follow-up message to the TSN chip;

[0019] The TSN chip is used to synchronize time to the downstream terminal according to the received message.

[0020] In some embodiments, the step of saving the service data to an interface forwarding queue according to TSN flow characteristics and running time includes:

[0021] Configure the runtime;

[0022] When the system time of the device reaches the running time, configuring TSN flow features, the TSN flow features including a message source file type, a message destination file type, a virtual local area network identifier, and a virtual local area network priority;

[0023] After the TSN flow feature is bound to the data interface, the service data received by the data interface is classified according to the TSN flow feature, and the service data is saved in the interface forwarding queue according to the classification result.

[0024] In some embodiments, forwarding the service data of the interface forwarding queue by using an anti-packet loss algorithm includes:

[0025] Configuration control linked list;

[0026] The service data of the interface forwarding queue is forwarded through the anti-packet loss algorithm and the control linked list.

[0027] In some embodiments, forwarding the service data of the interface forwarding queue by using the anti-packet loss algorithm and the control linked list includes:

[0028] When the forwarding process of the service data is an uplink message transmission process, the service data of the interface forwarding queue is forwarded through an uplink packet loss prevention algorithm and the control chain table;

[0029] When the forwarding process of the service data is a downlink message transmission process, the service data of the interface forwarding queue is forwarded through a downlink packet loss prevention algorithm and the control linked list.

[0030] In some embodiments, the architecture of the anti-packet loss algorithm is a 5G dual-module architecture.

[0031] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides a data processing device based on a terminal-side TSN converter, the device comprising:

[0032] The first module is used to obtain business data;

[0033] The second module is used to perform time synchronization in the 5GS domain and time synchronization in the TSN domain for the transmission process of the service data through a clock synchronization model, wherein the terminal side TSN converter is provided in the clock synchronization model, and the terminal side TSN converter includes a TSN chip, a 5G module and a main CPU;

[0034] The third module is used to save the service data to the interface forwarding queue according to the TSN flow characteristics and running time after the time synchronization is completed;

[0035] The fourth module is used to forward the business data of the interface forwarding queue through an anti-packet loss algorithm.

[0036] To achieve the above object, another aspect of an embodiment of the present application provides an electronic device, including:

[0037] at least one processor;

[0038] at least one memory for storing at least one program;

[0039] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0040] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0041] The embodiments of the present application include at least the following beneficial effects: The present application provides a data processing method and apparatus, equipment and medium based on a terminal-side TSN converter. The scheme provides a terminal-side TSN converter including a TSN chip, a 5G module and a main CPU in the clock synchronization model, and then performs time synchronization in the 5GS domain and in the TSN domain through the clock synchronization model for the service data transmission process, so as to realize cross-domain time synchronization of the data transmission process in the industrial Internet scenario; after the time synchronization is completed, the service data is saved in the interface forwarding queue according to the TSN flow characteristics and the running time, and the service data in the interface forwarding queue is forwarded through the anti-packet loss algorithm, thereby effectively improving the reliability of data transmission in the industrial Internet scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of a data processing method based on a terminal-side TSN converter provided in an embodiment of the present application;

[0043] Figure 2 is a schematic diagram of a clock synchronization model provided in an embodiment of the present application;

[0044] Figure 3 is a schematic diagram of a terminal-side TSN converter provided in an embodiment of the present application;

[0045] Figure 4 This is a flowchart of time synchronization in the 5GS domain provided in an embodiment of the present application;

[0046] Figure 5 This is a flowchart of time synchronization in a TSN domain provided by an embodiment of the present application;

[0047] Figure 6 The embodiment of this application provides Figure 1 Flow chart of step S140;

[0048] Figure 7 It is a flowchart of forwarding the service data of the interface forwarding queue through the anti-packet loss algorithm provided in an embodiment of the present application;

[0049] Figure 8 is a schematic diagram of a DS-TT model supporting FRER function provided in an embodiment of the present application;

[0050] Fig. 9 It is a structural schematic diagram of a data processing device based on a terminal-side TSN converter provided in an embodiment of the present application;

[0051] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application, they are only examples of devices and methods consistent with some aspects of the embodiments of the present application.

[0053] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0054] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0056] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:

[0057] 5G (5th Generation Mobile Communication Technology) is a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large connection. It is the network infrastructure for realizing the interconnection between man, machine and things.

[0058] 5GS, also known as the 5G core network, is one of the three main components of the 5G system. The other two components of the 5G system are the 5G access network (5G-AN) and the user equipment (UE). The 5G core network uses a cloud-aligned service-based architecture (SBA) to support authentication, security, session management, and traffic aggregation from connected devices, all of which require complex network function interconnection.

[0059] TSN (time scalar network) is also called the improved Gantt chart, which mainly adds logical dependencies between subtasks. TSN telecommunication support network enhances network functions and improves network service quality.

[0060] UDP (User Datagram Protocol) is a connectionless transport protocol supported by the Internet protocol suite. UDP provides a method for applications to send encapsulated IP datagrams without establishing a connection.

[0061] The IEEE 1588 protocol defines five types of transmission messages: synchronization message (sync), follow message (follow_up), delay request message (delay_req), delay response message (delay_resp) and management message (management). The first four messages are mainly used for timestamp exchange.

[0062] UPF: The full name of UPF is User plane Function. Its functions include session point for interconnection between external PDU and data network, packet routing and forwarding, such as supporting uplink classifier to route business flows to data network instances.

[0063] FRER (Fast Reroute) is a network protection mechanism that aims to provide backup protection for these important nodes or links when a link or node in the network fails, achieve fast rerouting, reduce the impact of link or node failure on traffic, and enable traffic to recover quickly. In the aviation field, FRER current transformers (such as TAT022200X05) can monitor the operating status of avionics equipment, provide data support for maintenance, and help maintenance personnel quickly locate faults and perform repairs, thereby improving the safety, operating efficiency and maintenance level of aircraft. In industrial automation, FRER leakage relays are used to measure leakage or unbalanced analysis of current caused by conductor and electrical insulation loss. If the set limit is exceeded, it will cut off the power supply of the defective system and avoid accidental power outages by continuously monitoring the insulation status and planned preventive maintenance. In automotive Ethernet, the IEEE 802.1CB protocol defines a solution for implementing redundant transmission, namely Frame Replication and Elimination for Reliability (FRER), which is used to ensure the reliable transmission of critical data streams.

[0064] A virtual local area network (VLAN) is a group of logical devices and users that are not restricted by physical location and can be organized based on functions, departments, and other factors. The communication between them is as if they are in the same network segment. The advantage of a virtual local area network is that the management overhead of moving, adding, and modifying network devices is reduced, broadcast activities can be controlled, and network security can be improved.

[0065] In 5G networks, UPF (User Plane Function), NW-TT (Network Side TSN Translator) and DS-TT (Device Side TSN Translator) are key components for supporting time-sensitive communication (TSC). Their functions are as follows:

[0066] DS-TT (Device Side TSN Translator): Located on the user equipment (UE) side, it is responsible for processing TSN (Time Sensitive Networking) packets from the UE. It can ensure that delay-sensitive communication packets are sent at the scheduled time through the retention and forwarding cache mechanism.

[0067] NW-TT (Network Side TSN Translator): Located on the UPF side, it is responsible for processing TSN packets from UPF and forwarding them to other UEs or networks. When TSN packets are transmitted within 5GS, TSN packets are sent from one UE to UPF, and then forwarded by UPF to another UE. During this process, TSN packets will not be forwarded through NW-TT1.

[0068] The differences between them are as follows:

[0069] DS-TT processes TSN traffic from UE to UPF, while NW-TT processes TSN traffic from UPF to UE or other network entities;

[0070] DS-TT can ensure deterministic forwarding of latency-sensitive communications, while NW-TT does not guarantee deterministic forwarding of internal TSN packets;

[0071] When NW-TT performs link layer connectivity discovery and reporting on behalf of DS-TT, LLDP (Link Layer Discovery Protocol) frames are transmitted between NW-TT and UE using the default QoS rules on QoS Flow.

[0072] In the related technologies, since traditional Ethernet does not consider the transmission of real-time information, it cannot meet the real-time requirements of industrial Internet communication during the data transmission process of the industrial Internet. Edge device nodes have weaknesses such as heterogeneity and limited computing and communication capabilities, and cannot achieve functions such as fast response of edge intelligence and low latency and efficient bandwidth utilization. Since low latency, determinism, and no jitter are required in the data transmission process of industrial Internet scenarios, many business scenarios of periodic communication cannot be met otherwise. TSN (as an important bridge for the integration of information technology and operational technology in the industrial field, combined with 5G networks, can achieve deterministic guarantees for data transmission, which is much better than traditional Ethernet in terms of real-time, reliability, and security.

[0073] However, there are currently three major difficulties in the integration of 5G technology and TSN: 1. How to eliminate the uncertainty of terminals in receiving two independent clocks, 5G clock and TSN clock; 2. How to eliminate the waste of resources caused by mismatch of service formats and mismatch of scheduling-free resources; 3. How to eliminate the problem of error accumulation due to different event granularity, which ultimately leads to mismatch of service sending time and scheduling-free resources.

[0074] In view of this, an embodiment of the present application provides a data processing method and apparatus, equipment and medium based on a terminal-side TSN converter. After a terminal-side TSN converter including a TSN chip, a 5G module and a main CPU is provided in the clock synchronization model, the present application performs time synchronization in the 5GS domain and in the TSN domain in the transmission process of the business data through the clock synchronization model, so as to realize cross-domain time synchronization of the data transmission process in the industrial Internet scenario; after the time synchronization is completed, the business data is saved in the interface forwarding queue according to the TSN flow characteristics and the running time, and the business data in the interface forwarding queue is forwarded through the anti-packet loss algorithm, thereby effectively improving the reliability of data transmission in the industrial Internet scenario, and then realizing the interconnection function between the user-side terminal side and the network side.

[0075] The data processing method based on the terminal side TSN converter provided in the embodiment of the present application relates to the field of communication technology. The data processing method based on the terminal side TSN converter provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server, and can also be software running in the terminal or the server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The cloud server, the server can also be a node server in the blockchain network; the software can be an application that implements the data processing method based on the terminal side TSN converter, etc., but is not limited to the above forms.

[0076] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0077] Figure 1 is an optional flow chart of a data processing method based on a terminal-side TSN converter provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S110 to S140:

[0078] Step S110: obtaining business data;

[0079] Step S120: Time synchronization of the service data transmission process in the 5GS domain is performed through the clock synchronization model, and time synchronization of the TSN domain is performed through the clock synchronization model;

[0080] Step S130: After time synchronization is completed, the service data is saved to the interface forwarding queue according to the TSN flow characteristics and the running time;

[0081] Step S140: forwarding the service data of the interface forwarding queue by using an anti-packet loss algorithm.

[0082] In the embodiments of the present application, Figure 2 As shown, a terminal-side TSN (Time Sensitive Network) converter is provided in the clock synchronization model, and the terminal-side TSN converter (DS-TT, Device-side TSN translator) is respectively provided in the terminal (UE) and the user plane function (UPF). Figure 3 As shown, the terminal-side TSN converter includes a TSN chip, a 5G module and a main CPU, and the TSN chip can interact with the terminal.

[0083] In an embodiment of the present application, the time synchronization of the 5GS domain can be completed inside the TSN converter on the terminal side; the TSN converter on the terminal side combines with the NW-TT built into the UPF to perform time synchronization in the TSN domain. Specifically, the time synchronization of the 5GS domain and the TSN domain both adopt a two-step implementation method. In the time synchronization of the 5GS domain, the PTP clock master is pre-configured as the TSN chip LAN9668, and the slave is the main CPULS1043A. Set 319 as the destination port of the IP event message at both ends. In the implementation of time synchronization in the TSN domain, DS-TT processes the time synchronization message sent by the TSN domain master clock forwarded by the UPF.

[0084] It is understandable that if Figure 4 As shown, the process of performing time synchronization in the 5GS domain on the service data transmission process through the clock synchronization model includes but is not limited to the following steps:

[0085] Step S410: After the terminal completes the air interface registration, the time synchronization operation between the TSN chip and the 5G module is completed through the first preset interface; wherein, the first preset interface includes but is not limited to PPS+TOD. In this step, the clock synchronization between the TSN chip and the 5G module can be completed through the PPS+TOD signal.

[0086] Step S420: Send the transport protocol (UDP) message to the main CPU through the TSN chip; the main CPU determines that the message is a time synchronization message through the port number 319 and enters subsequent processing.

[0087] Step S430, the main CPU parses the transmission protocol message to obtain different types of transmission messages, obtains the first timestamp according to the transmitted information, and sends the first timestamp to the 5G module; in this step, different types of transmission messages are synchronization (SYNC) messages, follow (FOLLOW_UP) messages, and delayed response (DELAY_RESP) messages. When the main CPU receives the above messages in sequence, it reads and records the hardware timestamp of the network card receiving the TSN chip SYNC message and the timestamp information of the TSN chip sending the SYNC message in the FOLLOW_UP message; after receiving the FOLLOW_UP message, it constructs a DELAY_REQ message and sends it to the TSN chip, and records the hardware timestamp sent by the DELAY_REQ message, and obtains and records the timestamp of the TSN chip sending the DELAY_RESP message carried by the DELAY_RESP message as the first timestamp.

[0088] Step S440, synchronize the clock end time with the system time through the 5G module according to the first timestamp; specifically, this step may be to calculate the time delay according to the timestamp stored in step S430 and finally complete the synchronization of the clock (PTP) end time with the system time.

[0089] In the embodiment of the present application, after completing the online process, the user performs time synchronization in the TSN domain. Specifically, Figure 5 As shown, the time synchronization process of the TSN domain includes but is not limited to the following steps:

[0090] Step S510: When the main CPU receives the 5G clock message, the main CPU determines the type of the received message. In this step, the main CPU receives the 5G clock message (gPTP message, protocol 0x88f7), first processes the SYNC message, and determines whether it is a new SYNC message or a SYNC message waiting for the FOLLOW_UP message according to the sequence ID. If it is a new message, the hardware timestamp of the received message is obtained and recorded, and the message is forwarded to the TSN chip.

[0091] Step S520: the main CPU determines that the current message is a new synchronization message according to the message type, records the hardware timestamp of the new synchronization message, and forwards the synchronization message to the TSN chip;

[0092] Step S530: The main CPU determines that the current message is a follow-up message according to the message type, modifies the message, and forwards the modified follow-up message to the TSN chip;

[0093] In step S520 and step S530, the main CPU receives the FOLLOW_UP message, matches it with the SYNC message according to the sequenceid, and calculates the corrected domain time according to Tse and Tsi; and after deleting the suffix field containing TSi in the gPTP message, the corrected FOLLOW_UP message is forwarded to the TSN chip.

[0094] Step S540, the downstream terminal is timed according to the received message through the TSN chip; specifically, this step can be that the TSN chip receives the gPTP messages of step S520 and step S530 and then acts as a bridge to complete the time synchronization for the downstream terminal.

[0095] In an embodiment of the present application, the flow control technology of the TSN converter on the terminal side can adopt the 802.1Qbv protocol. This method guides specific services to enter the designated interface forwarding queue by analyzing the relevant flow characteristics and running time of key services, and realizes the important indicators of zero packet loss and microsecond forwarding delay by periodically and flexibly scheduling the queue. The present invention is implemented through the following configuration method and related processing flow. In order to ensure the linear forwarding of TSN flows in the TSN network, all devices in the TSN network need to be synchronized at the microsecond level through network planning, and the same 802.1Qbv configuration needs to be deployed.

[0096] It is understandable that if Figure 6 As shown, the process of saving service data to the interface forwarding queue according to TSN flow characteristics and running time includes but is not limited to the following steps:

[0097] Step S610, configure the running time; in this step, after the device is powered on and time synchronization is completed, configure the 802.1Qbv basic time (UTC time) to be greater than the current time, and the format is PTP; when the system time of the device reaches the basic time, enable the 802.1Qbv function;

[0098] Step S620: When the system time of the device reaches the running time, configure the TSN flow characteristics; wherein the TSN flow characteristics include the message source file type (MAC), the message destination file type (MAC), the virtual local area network identifier (VLAN ID) and the virtual local area network (VLAN) priority;

[0099] Step S630, after binding the TSN flow characteristics with the data interface, classify the business data received by the data interface according to the TSN flow characteristics, and save the business data to the interface forwarding queue according to the classification result; specifically, this step can bind the interface to the flow characteristics and the priority service type (CoS) value; when the interface receives a message, it can classify the message according to the flow characteristics, and distribute the message to the corresponding forwarding queue according to the priority Cos value.

[0100] In the embodiments of the present application, Figure 7 As shown, the process of forwarding the service data of the interface forwarding queue by using the anti-packet loss algorithm includes but is not limited to the following steps:

[0101] Step S710, configure the control linked list; it can be understood that the purpose of configuring the relevant control linked list is to ensure that the TSN flow is forwarded within a certain time. In the present invention, each node of the control linked list corresponds to one port and four forwarding queues, and each forwarding queue has a corresponding switching time (the transmission time of the flow in the queue), wherein the TSN flow occupies one queue, and the queues are switched cyclically to ensure the periodic sending of the TSN flow.

[0102] Step S720: forward the service data of the interface forwarding queue through the anti-packet loss algorithm and the control linked list.

[0103] It is understandable that the anti-packet loss algorithm can adopt the IEEE 802.1CB protocol and the 5G dual-module architecture to achieve zero packet loss indicators by duplicating and deduplicating messages. Specifically, when the forwarding process of business data is an uplink message transmission process, the business data of the interface forwarding queue is forwarded through the uplink anti-packet loss algorithm and the control chain table; when the forwarding process of business data is a downlink message transmission process, the business data of the interface forwarding queue is forwarded through the downlink anti-packet loss algorithm and the control chain table.

[0104] In the embodiment of the present application, the processing process of the uplink anti-packet loss algorithm includes but is not limited to the following steps:

[0105] Step 1.1, the TSN chip receives the uplink data packet sent by the terminal through the downstream ingress port. The stream identification component identifies the message that needs FRER processing based on the data stream characteristics and transmits it to the upper layer for processing by the FRER component;

[0106] Step 1.2: The sequence generation function component generates the number of the current data packet. The generation algorithm ensures that the data packet does not repeat within 1 minute.

[0107] Step 1.3, a sequence encoding function re-encodes the data packet in step 1.2 into a data frame, wherein the data frame includes an R-tag field;

[0108] Step 1.4, the Active Destination MAC and VLAN Stream identification component replaces the MAC, VLAN and other information of the data packet through the stream separation technology, thereby allowing the data packet to be transmitted along different paths;

[0109] Step 1.5: After packet replication, the TSN chip sends the message to the main CPU through the dual ports. The main CPU forwards the messages from different ingress ports to the corresponding upstream egress interface according to the Layer 2 bridge configuration.

[0110] The processing of the downlink packet loss prevention algorithm includes but is not limited to the following steps:

[0111] Step 2.1, the 5G dual-module receives the FRER data packet sent by the base station and forwards it to the main CPU for processing;

[0112] Step 2.2, the main CPU forwards the messages of different inbound ports to the corresponding downstream outbound interfaces according to the Layer 2 bridge configuration;

[0113] Step 2.3: After receiving the message from the dual ports, the TSN chip identifies the flow features, matches and parses the data frame, and completes the elimination and recovery;

[0114] Step 2.4: The stream identification component identifies the FRER data stream and passes it to the higher level for processing;

[0115] Step 2.5, the sequence decode function component decodes the header of the data frame, obtains the sequence number (sequence_number) sub-parameter and other contents and saves them;

[0116] Step 2.6, the sequence recovery function forwards or deletes the data packet according to the sequence number (sequence_number);

[0117] Step 2.7: Stream identification changes the MAC or VLAN of the data frame. The new data will not include the R-tag field.

[0118] Step 2.8: The TSN chip forwards the processed data packet to the terminal via the downstream output port.

[0119] In the embodiment of the present application, during uplink or downlink transmission, the DS-TT model adopts the following Figure 8 The DS-TT model supporting FRER function is shown.

[0120] In summary, the method provided in the embodiment of the present application realizes a highly reliable terminal TSN converter for DS-TT located at the edge of 5GS by integrating multiple TSN technologies. In the DS-TT involved in the present application, the 5G module and the TSN chip complete clock synchronization through the PPS+TOD signal, and the 5GS system clock synchronization is realized between the TSN chip and the main CPU through the standard PTP 1588v2 protocol; the NW-TT in the UPF and the 802.1.AS protocol are used between the NW-TT and the DS-TT, and the TSN domain clock synchronization is realized by calculating the residence time correction message through Tsi and Tse.

[0121] In the DS-TT involved in this application, in order to achieve the purpose of deterministic latency, based on the 802.1Qbv protocol design, consistent devices are planned through the network, and the same service flow characteristics are configured on the devices, such as: source MAC, destination MAC, VLAN ID, VLAN priority and other parameters. During network operation, key services with relevant flow characteristics are analyzed and forwarded to the designated interface forwarding queue. Through periodic and flexible scheduling of queues, key services can be forwarded linearly and latency is controlled at a microsecond level.

[0122] In the DS-TT involved in this application, in order to achieve the purpose of zero packet loss, based on the 802.1CB protocol, DS-TT is responsible for identifying uplink messages, generating and encoding sequence numbers for messages that need FRER function, and sending duplicate messages to different 5G modules and then sending them to the next node; DS-TT is responsible for receiving FRER duplicate messages through two 5G modules, and analyzing the sequence numbers through decoding, eliminating duplicate messages, and reconstructing the messages and sending them to the terminal. Through frame replication and elimination technology, the zero packet loss indicator is achieved.

[0123] It can be seen that the DS-TT in the method provided in this application can achieve the characteristics of high reliability, latency determination and high stability in deterministic networks; it can be configured to meet the different needs of the industrial Internet for different services, and achieve differentiated rate and priority processing of services.

[0124] Reference Fig. 9 , the embodiment of the present application provides a data processing device based on a terminal-side TSN converter, the device comprising:

[0125] The first module 910 is used to obtain business data;

[0126] The second module 920 is used to perform time synchronization in the 5GS domain and in the TSN domain for the service data transmission process through the clock synchronization model, wherein a terminal-side TSN converter is provided in the clock synchronization model, and the terminal-side TSN converter includes a TSN chip, a 5G module and a main CPU;

[0127] The third module 930 is used to save the service data to the interface forwarding queue according to the TSN flow characteristics and the running time after the time synchronization is completed;

[0128] The fourth module 940 is used to forward the service data of the interface forwarding queue through an anti-packet loss algorithm.

[0129] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0130] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned data processing method based on the terminal side TSN converter when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.

[0131] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0132] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0133] The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0134] The memory 1020 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1020 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1020, and the processor 1010 calls and executes the data processing method based on the terminal-side TSN converter of the embodiment of this application;

[0135] Input / output interface 1030, used to implement information input and output;

[0136] The communication interface 1040 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0137] Bus 1050 , which transmits information between various components of the device (e.g., processor 1010 , memory 1020 , input / output interface 1030 , and communication interface 1040 );

[0138] The processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 are connected to each other in communication within the device via a bus 1050 .

[0139] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the data processing method based on the terminal-side TSN converter is implemented.

[0140] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0141] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0142] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0143] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0144] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0146] The terms "first", "second", "third", "fourth", etc. (if any) in the specification 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. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0147] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0148] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0149] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0152] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A data processing method based on a terminal-side TSN converter, characterized in that: The method comprises the following steps: Get business data; The transmission process of the service data is synchronized in the 5GS domain through the clock synchronization model, and the time synchronization in the TSN domain is performed through the clock synchronization model. The terminal side TSN converter is provided in the clock synchronization model, and the terminal side TSN converter includes a TSN chip, a 5G module and a main CPU; After time synchronization is completed, the service data is saved to the interface forwarding queue according to TSN flow characteristics and running time; The service data of the interface forwarding queue is forwarded by using an anti-packet loss algorithm.

2. The method according to claim 1, characterized in that The time synchronization of the service data transmission process in the 5GS domain by using the clock synchronization model includes: After the terminal completes air interface registration, the time synchronization operation between the TSN chip and the 5G module is completed through the first preset interface; Sending the transmission protocol message to the main CPU through the TSN chip; Parsing the transmission protocol message by the main CPU to obtain different types of transmission messages, obtaining a first timestamp according to the transmitted information, and sending the first timestamp to the 5G module; The 5G module performs synchronization operation between the clock end time and the system time according to the first timestamp.

3. The method according to claim 1, characterized in that The time synchronization of the TSN domain is performed by using a clock synchronization model, including: When the main CPU receives the 5G clock message, the main CPU determines the type of the received message; The main CPU determines that the current message is a new synchronization message according to the message type, records the hardware timestamp of the new synchronization message, and forwards the synchronization message to the TSN chip; Determining, by the main CPU, that the current message is a follow-up message according to the message type, correcting the follow-up message, and forwarding the corrected follow-up message to the TSN chip; The TSN chip is used to synchronize time to the downstream terminal according to the received message.

4. The method according to claim 1, characterized in that: The step of saving the service data to the interface forwarding queue according to the TSN flow characteristics and the running time includes: Configure the runtime; When the system time of the device reaches the running time, configuring TSN flow features, the TSN flow features including a message source file type, a message destination file type, a virtual local area network identifier, and a virtual local area network priority; After the TSN flow feature is bound to the data interface, the service data received by the data interface is classified according to the TSN flow feature, and the service data is saved in the interface forwarding queue according to the classification result.

5. The method according to claim 1, characterized in that The forwarding of the service data of the interface forwarding queue by using an anti-packet loss algorithm includes: Configuration control linked list; The service data of the interface forwarding queue is forwarded through the anti-packet loss algorithm and the control linked list.

6. The method according to claim 5, characterized in that The forwarding of the service data of the interface forwarding queue by using the anti-packet loss algorithm and the control linked list includes: When the forwarding process of the service data is an uplink message transmission process, the service data of the interface forwarding queue is forwarded through an uplink packet loss prevention algorithm and the control chain table; When the forwarding process of the service data is a downlink message transmission process, the service data of the interface forwarding queue is forwarded through a downlink anti-packet loss algorithm and the control linked list.

7. The method according to claim 6, characterized in that The architecture of the anti-packet loss algorithm is a 5G dual-module architecture.

8. A data processing device based on a terminal-side TSN converter, characterized in that: The device comprises: The first module is used to obtain business data; The second module is used to perform time synchronization in the 5GS domain and time synchronization in the TSN domain for the transmission process of the service data through a clock synchronization model, wherein the terminal side TSN converter is provided in the clock synchronization model, and the terminal side TSN converter includes a TSN chip, a 5G module and a main CPU; The third module is used to save the service data to the interface forwarding queue according to the TSN flow characteristics and running time after the time synchronization is completed; The fourth module is used to forward the business data of the interface forwarding queue through an anti-packet loss algorithm.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Timestamp acquisition method and device, electronic equipment and storage medium

    CN114138054A

  • Time synchronization processing method and device, storage medium and electronic device

    CN117062209A

  • Time synchronization method and system for 5G + TSN fusion network

    CN117641561A

  • Time synchronization method and device based on gPTP protocol, medium and equipment

    CN118353566A

  • 5GC-TSN fusion system and method

    CN118612798A

Cited By

  • Portable Bluetooth loudspeaker box system based on 5G network and distributed playing method thereof

    CN121262558A