Data processing method, device, system and medium

By obtaining and utilizing the associated information of the replacement data and the MAC frame header data in the TAN device for reorganization processing and generating the target data packet, the problem of waste of TAN PDU transmission resources is solved and the network transmission efficiency and stability are improved.

CN116032440BActive Publication Date: 2025-09-09CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111233820.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2025-09-09
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

In deterministic networks, the transmission method of TAN PDU leads to waste of network transmission resources, reduces data transmission efficiency and increases network load. Especially in the small data packet transmission scenario in the industrial field, the 16-byte TAN header of TAN PDU significantly increases the network transmission burden.

Method used

The association information between the replacement data and the MAC frame header data is obtained through the first TAN device, and reorganized to generate a target data packet, and the network data packet is restored in the second TAN device, reducing the MAC frame header data carried in the target data packet and saving transmission resources.

Benefits of technology

Without increasing the amount of TAN frame header data, the data volume of the target data packet is reduced, saving 20% ​​of transmission resources, improving the transmission efficiency and performance of the deterministic network, and achieving stable transmission across device types and network types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032440B_ABST
    Figure CN116032440B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, device, system and medium, wherein the method is applied to a first time-clear network TAN device; the method includes: obtaining association information between replacement data for replacing media access control MAC frame header data and the MAC frame header data; when a network data packet is received, obtaining TAN frame header data associated with the network data packet; when it is determined that reassembly processing is required, based on the replacement data, performing the reassembly processing on the MAC payload data and the TAN frame header data in the network data packet to obtain a target data packet; sending the target data packet to a second TAN device, so that the second TAN device obtains the association information and then processes the target data packet based on the association information to obtain the network data packet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data transmission technology, and in particular to a data processing method, device, system and medium. Background Art

[0002] In actual applications, when a network data packet arrives at a Time Aware Network (TAN), the TAN switch directly adds TAN frame header data before the network data packet to obtain a TAN packet data unit (PDU), and then sends the TAN PDU out. The TAN frame header data is 16 bytes. Even when transmitting small data packets in the industrial field, a single TAN PDU can reach 80 bytes. When a large number of TAN PDUs are transmitted in the network, although this transmission method can improve data transmission stability, it will significantly increase the network transmission burden and reduce network transmission efficiency. Summary of the Invention

[0003] Based on the above problems, embodiments of the present application provide a data processing method, device, system, and medium.

[0004] The technical solution provided by the embodiments of this application is as follows:

[0005] An embodiment of the present application provides a data processing method, which is applied to a first-time-clear network (TAN) device; the method includes:

[0006] Obtaining association information between replacement data for replacing Media Access Control (MAC) frame header data and the MAC frame header data;

[0007] When a network data packet is received, obtaining TAN frame header data associated with the network data packet;

[0008] If it is determined that reassembly processing is required, reassembly processing is performed on the MAC payload data and the TAN frame header data in the network data packet based on the replacement data to obtain a target data packet;

[0009] The target data packet is sent to the second TAN device, so that the second TAN device obtains the association information and processes the target data packet based on the association information to obtain the network data packet.

[0010] In some embodiments, the replacement data includes encoded data associated with the MAC frame header data; and the reassembling of the MAC payload data and the TAN frame header data in the network data packet based on the replacement data to obtain the target data packet includes:

[0011] Determining target coded data associated with the MAC frame header data of the network data packet based on a matching relationship between the MAC frame header data in the network data packet and the MAC frame header data in the association information;

[0012] Setting a first identifier to a first position of the TAN frame header data, and setting the target coded data to a second position of the TAN frame header data, to obtain target TAN frame header data; wherein the first identifier indicates whether to perform the reassembly process;

[0013] The MAC payload data and the target TAN frame header data are reassembled to obtain the target data packet.

[0014] In some implementations, the network data packet is the (N+1)th network data packet received by the first TAN device; and obtaining association information between replacement data for replacing MAC frame header data and the MAC frame header data includes:

[0015] The association information is obtained based on the MAC frame header data of N received network data packets; wherein, the MAC frame header data of the N+1th network data packet is the same as any MAC frame header data of the MAC frame header data of the N network data packets; the MAC frame header data of the N network data packets are different; and N is an integer greater than or equal to 2.

[0016] In some implementations, obtaining the association information based on MAC frame header data of the N received network data packets includes:

[0017] Upon receiving an nth network data packet, obtaining MAC frame header data of the nth network data packet; wherein n is an integer greater than 1 and less than or equal to N;

[0018] If the MAC frame header data of the nth network data packet is different from the MAC frame header data of the previous n-1 network data packets, generating nth coded data associated with the MAC frame header data of the nth network data packet;

[0019] The association information is obtained based on the N pieces of encoded data and the MAC frame header data of the N network data packets.

[0020] In some implementations, after generating the nth encoded data associated with the MAC frame header data of the nth network data packet, the method further includes:

[0021] Generate nth TAN frame header data associated with the nth network data packet based on the MAC frame header data of the nth network data packet;

[0022] Setting the nth coded data to the nth TAN frame header data to obtain the nth TAN frame header data carrying the coded data;

[0023] Combining the nth TAN frame header data carrying the encoded data and the nth network data packet to obtain an nth TAN data packet carrying the encoded data;

[0024] The N TAN data packets carrying the encoded data are sent to the second TAN device, so that the second TAN device determines the association information based on the MAC frame header data in the N TAN data packets carrying the encoded data and the N encoded data.

[0025] In some embodiments, determining that a reassembly process needs to be performed includes:

[0026] When the reorganization confirmation identifier sent by the second TAN device is received, it is determined that the reorganization process needs to be performed.

[0027] In some embodiments, determining that a reassembly process needs to be performed includes:

[0028] Acquire first information of a first device that sends the network data packet;

[0029] When the first information indicates that the first device is not a TAN device, it is determined that the reassembly process needs to be performed.

[0030] In some embodiments, determining that a reassembly process needs to be performed includes:

[0031] A second identifier stored at a designated location of the network data packet is obtained, and if the second identifier is a designated identifier, it is determined that the reassembly process needs to be performed.

[0032] In some implementations, the replacement data includes the TAN frame header data; and obtaining the TAN frame header data associated with the network data packet includes:

[0033] Obtaining the MAC frame header data of the network data packet;

[0034] The TAN frame header data is obtained based on a matching relationship between the MAC frame header data of the network data packet and the MAC frame header data in the association information.

[0035] This embodiment of the present application further provides another data processing method, which is applied to a second TAN device and includes:

[0036] Receive a target data packet sent by a first TAN device; wherein the target data packet carries replacement data; the replacement data is used for the first TAN device to replace MAC frame header data in the received network data packet;

[0037] Obtaining association information between the replacement data and the MAC frame header data;

[0038] The target data packet is processed based on the association information to obtain the network data packet.

[0039] In some embodiments, the target data packet includes target TAN frame header data carrying target coded data; the replacement data includes at least coded data associated with MAC frame header data; and processing the target data packet based on the associated information to obtain the network data packet includes:

[0040] Determining target MAC frame header data based on a matching relationship between target coded data in the target TAN frame header data and the coded data in the association information;

[0041] The target MAC frame header data and the MAC payload data in the target data packet are combined and processed to obtain the network data packet.

[0042] In some implementations, obtaining association information between the replacement data and the MAC frame header data includes:

[0043] receiving N TAN data packets carrying coded data sent by the first TAN device;

[0044] The association information is obtained based on the coded data in the N TAN data packets carrying the coded data and the MAC frame header data in the N TAN data packets carrying the coded data.

[0045] In some implementations, after obtaining the association information, the method further includes:

[0046] Send a confirmation reorganization identifier to the first TAN device.

[0047] In some implementations, processing the target data packet based on the association information includes:

[0048] Acquire a first identifier from a first position of the target TAN frame header data;

[0049] If the first identifier indicates that the first TAN device has performed reassembly processing, the target data packet is processed based on the association information.

[0050] In some implementations, processing the target data packet based on the association information includes:

[0051] Acquire second information of a second device connected to the second TAN device and used to receive the network data packet;

[0052] In a case where the second information indicates that the second device is not a TAN device, the target data packet is processed based on the association information.

[0053] In some implementations, the replacement data includes TAN frame header data; and the processing of the target data packet based on the association information to obtain the network data packet includes:

[0054] Obtaining TAN frame header data of the target data packet;

[0055] Determining target MAC frame header data based on a matching relationship between the TAN frame header data of the target data packet and the TAN frame header data in the association information;

[0056] The target MAC frame header data and the MAC payload data in the target data packet are combined to obtain the network data packet.

[0057] The embodiment of the present application further provides a first TAN device, which includes a first transceiver module and a first processing module, wherein:

[0058] The first processing module is configured to obtain association information between replacement data for replacing media access control MAC frame header data and the MAC frame header data; upon receiving a network data packet, obtain TAN frame header data associated with the network data packet; and upon determining that reassembly processing is required, perform the reassembly processing on the MAC payload data and the TAN frame header data in the network data packet based on the replacement data to obtain a target data packet;

[0059] The first transceiver module is configured to send the target data packet to the second TAN device, so that the second TAN device obtains the association information and processes the target data packet based on the association information to obtain the network data packet.

[0060] An embodiment of the present application also provides a first TAN device, which includes a first processor and a first memory; wherein a computer program is stored in the first memory; when the first processor executes the computer program, it can implement any of the data processing methods described above for application to the first TAN device.

[0061] The embodiment of the present application further provides a second TAN device, which includes a second transceiver module and a second processing module, wherein:

[0062] The second transceiver module is configured to receive a target data packet sent by the first TAN device; wherein the target data packet carries replacement data; the replacement data is used by the first TAN device to replace MAC frame header data in the received network data packet;

[0063] The second processing module is configured to obtain association information between the replacement data and the MAC frame header data; and process the target data packet based on the association information to obtain the network data packet.

[0064] An embodiment of the present application also provides a second TAN device, which includes a second processor and a second memory; wherein a computer program is stored in the second memory; when the second processor executes the computer program, it can implement any of the above-described data processing methods applied to the second TAN device.

[0065] An embodiment of the present application further provides a data processing system, which includes the first TAN device as described above and the second TAN device as described above.

[0066] In some embodiments, the system further includes a configuration management device; the first TAN device and / or the second TAN device sends configuration parameters to the configuration management device; the configuration management device is configured to determine association information based on the configuration parameters and send the association information to the first TAN device and / or the second TAN device.

[0067] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it can implement any of the data processing methods described above.

[0068] From the above, it can be seen that in the data processing method provided in the embodiment of the present application, after receiving the network data packet, the first TAN device can, when determining that reassembly processing needs to be performed, reassemble the MAC frame header data and the TAN frame header data in the network data packet based on the replacement data in the associated information to obtain the target data packet. Since the target data packet no longer carries the MAC frame header data, the data volume of the target data packet is significantly reduced compared to the TAN PDU in the related technology. In this way, when transmitting the target data packet in the deterministic network, the transmission resources of the deterministic network can be saved, the network load can be reduced, and the efficiency and performance of the deterministic network can be improved.

[0069] Moreover, after receiving the target data packet, the second TAN device can process the target data packet based on the associated information to obtain a network data packet, thereby realizing the recovery of the network data packet. In this way, the stable transmission of the network data packet across device types and network types can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1A Schematic diagram of the structure of TAN PDU in the Open System Interconnection Reference Model (OSI) model in the related art;

[0071] Figure 1B Schematic diagram of the data structure of TAN PDU in related technology;

[0072] Figure 2 A first flow chart of the data processing method provided in an embodiment of the present application;

[0073] Figure 3 A first structural diagram of an implementation of the data processing method provided in an embodiment of the present application;

[0074] Figure 4 A second structural diagram of the data processing method provided in an embodiment of the present application;

[0075] Figure 5 A second flow chart of the data processing method provided in an embodiment of the present application;

[0076] Figure 6 A schematic diagram of the structure of a first TAN device provided in an embodiment of the present application;

[0077] Figure 7 A schematic diagram of the structure of a second TAN device provided in an embodiment of the present application;

[0078] Figure 8 A first structural diagram of a data processing system provided in an embodiment of the present application;

[0079] Figure 9 A second structural diagram of the data processing system provided in an embodiment of the present application;

[0080] Figure 10 This is a third structural diagram of the data processing system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0081] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0082] 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.

[0083] With the development of modern communications technology, Ethernet communication has been widely adopted in various fields, solving the problem of interoperability between different systems. In the industrial sector, deterministic data transmission is a key concern for enterprises. Furthermore, with the continuous advancement of industry digital transformation and the expansion of industry business, network connectivity will be widely used in various scenarios to realize data networking-related applications. Therefore, massive amounts of data, including high-definition video data, equipment operation data, personnel management data, and asset inventory data, require deterministic data transmission over the network.

[0084] At the same time, with the increase in industry application scenarios and the amount of data being transmitted, data transmission efficiency has become a key concern for enterprises, while the efficiency of network bandwidth and spectrum utilization has become a key focus for operators and industry users. In vertical industries, the inability to efficiently determine the relationships between massive amounts of data and transmit them can lead to serious problems such as equipment failure, production line downtime, business interruption, and increased energy consumption.

[0085] TAN integrates high-precision clocks with Ethernet data transmission, using high-precision timing as a benchmark for scheduling and controlling communications, thereby improving communication accuracy and stability. Data packets transmitted on a TAN network are TAN PDUs, which are based on the Ethernet packet structure but with a TAN header added. The more comprehensive identification information carried in the TAN PDU can serve as a basis for improving the scheduling and control capabilities of multi-service communications on the network. Building on the Ethernet specification, TAN defines a new data link layer frame format, the same as the OSI model.

[0086] Figure 1A FIG. 1 is a schematic diagram of the structure of TAN PDU in the OSI model in the related art. Figure 1A As shown, the OSI model includes the physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer. The data link layer data packet in the OSI model corresponds to the logical link control header, MAC control data (optional), and MAC frame header in GB / T15629.3. The physical layer data packet in the OSI model corresponds to the physical layer specification defined in GB / T15629.3. TAN inherits GB / T15629.3 and places TAN control data, or TAN header, before the MAC frame header, resulting in the TAN PDU.

[0087] Figure 1B Figure 1 is a schematic diagram of the data structure of TAN PDU in the related art. Figure 1BAs shown in the figure, the TAN PDU consists of a TAN header and a standard MAC data packet. The TAN header includes a 9-bit source TAN switch identification code (ID), a 9-bit destination TAN switch ID, a 1-bit reserved bit, a 5-bit path information, a 2-bit data frame type, a 6-bit reserved bit, a 24-bit data frame ID, an 8-bit TAN PDU length, a 1-bit packet loss indicator, a 1-bit packet loss sequence number, a 14-bit switch hop count, a 24-bit time information, a 12-bit static checksum, and a 12-bit dynamic checksum.

[0088] Among them, the source TAN switching device ID indicates the TAN switching device ID to which the source network device is connected; the destination TAN switching device ID indicates the TAN switching device ID to which the destination network device is connected; the path information indicates the transmission path relationship between the two network devices in the TAN, which is used to realize multi-path transmission under a composite topology; the data frame type is used to distinguish between timing PDU, fast TAN PDU and standard TAN PDU; the data frame ID indicates the data frame ID sent by the TAN switching device under different data frame types; the TAN PDU length indicates the TAN PDU length; the packet break flag is used to indicate whether the TAN PDU is an interrupted frame; the packet break sequence number is used to check and reassemble the packet break PDU; the switching device hop count indicates the number of transmission hops of the TAN PDU on the switching device; the time information represents the absolute time when the data enters the network when the data frame is a TAN PDU, and represents the accumulated delay when the data frame is a timing PDU; the static checksum ... The absolute cumulative sum in bytes of the information that remains unchanged during the transmission process of the PDU, including but not limited to the source TAN switching device ID, the destination TAN switching device ID, the data frame type, and the data frame ID; the dynamic checksum is the absolute cumulative sum in bytes of all information before the static checksum.

[0089] As can be seen above, the TAN header occupies 16 bytes. This 16-byte TAN header is used to distinguish data frame types and record the absolute time when Ethernet data enters the TAN network. Therefore, it is very important for deterministic networks. In other words, when an Ethernet data packet arrives at a TAN switch, the TAN switch directly adds a 16-byte TAN header to the Ethernet data packet to form a TAN PDU.

[0090] However, during data transmission on a deterministic network, many data packets may have the same source address, destination address, and even data type. In other words, these data packets may traverse the same transmission path. Consequently, these TAN PDUs carry a large number of identical 14-byte MAC headers. For example, industrial data packets are mostly small, with a complete MAC packet size of 64 bytes, including a 14-byte MAC header, a 46-byte MAC data frame, and a 4-byte cyclic redundancy check (CRC). Adding the 16-byte TAN header results in a total of 80 bytes for the TAN PDU. Repeated transmission of the 14-byte MAC header results in 17.5% waste of network resources. Therefore, the TAN PDU transmission method used in related technologies wastes network transmission resources, reduces data transmission efficiency, and increases network load.

[0091] Based on the above problems, embodiments of the present application provide a data processing method, device, system, and medium.

[0092] An embodiment of the present application first provides a data processing method, which is applied to a first TAN device.

[0093] In one embodiment, the first TAN device may be a TAN switch; illustratively, the first TAN device may be set in a deterministic network; illustratively, the first TAN device may be set at an ingress of the deterministic network.

[0094] Exemplarily, the data processing method applied to the first TAN device can be implemented by a processor of the first TAN device. Exemplarily, the processor can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor.

[0095] Figure 2 A first flow chart of the data processing method provided in the embodiment of the present application is shown as follows: Figure 2As shown, the method may include steps 201 to 204:

[0096] Step 201: Obtain association information between replacement data used to replace MAC frame header data and the MAC frame header data.

[0097] In one embodiment, the replacement data may be a single data item or a combination of at least two data items. For example, the replacement data may include only one type of data item or a combination of at least two types of data items. For example, the replacement data may be a number or a string of characters.

[0098] In one embodiment, the association information may include one-to-one association relationship information between the replacement data and the MAC frame header data. For example, the replacement data includes first data and second data, wherein the first data is correspondingly associated with the first MAC frame header data, and the second data is correspondingly associated with the second MAC frame header data; exemplarily, the MAC frame header data may be a MAC header or a MAC header.

[0099] In one implementation, the association information may be stored in the first TAN device, or may be obtained by the first TAN device from a network or other device.

[0100] Step 202: When a network data packet is received, obtain TAN frame header data associated with the network data packet.

[0101] In one embodiment, the network data packet may be any data packet carrying MAC payload data; an exemplary network data packet may be an Ethernet data packet or a TAN data packet.

[0102] In one embodiment, the TAN frame header data associated with the network data packet may be a TAN header in the related art. Exemplarily, the TAN frame header data may be determined based on the MAC frame header data in the network data packet.

[0103] It should be noted that the order of step 201 and step 202 can be adjusted or performed in parallel, and this embodiment of the present application does not limit this.

[0104] Step 203: When it is determined that reassembly processing is required, the MAC payload data and the TAN frame header data in the network data packet are reassembled based on the replacement data to obtain a target data packet.

[0105] For example, if it is determined that the reorganization process does not need to be performed, the reorganization process may not be performed.

[0106] In one embodiment, based on the replacement data, the MAC payload data and the TAN frame header data in the network data packet are reassembled to obtain the target data packet, which can be achieved by any of the following methods:

[0107] The replacement data is analyzed to obtain structural information, and the MAC payload data, TAN frame header data and replacement data are reassembled according to the structural information to obtain a target data packet.

[0108] The MAC payload data and the TAN frame header data are processed to obtain third data, and then the replaced data and the third data are recombined to obtain a target data packet.

[0109] In one embodiment, the target data packet may include replacement data, MAC payload data and TAN frame header data; at this time, the data volume of the replacement data may be smaller than the MAC frame header data, and the data volume of the target data packet must be smaller than the data volume of the TAN PDU in the related technology.

[0110] In one embodiment, the target data packet may only include MAC payload data and TAN frame header data. In this case, the data volume of the target data packet is necessarily smaller than the data volume of the TAN PDU in the related art.

[0111] It should be noted that, in the embodiment of the present application, the target data packet still includes CRC.

[0112] Step 204: Send the target data packet to the second TAN device, so that the second TAN device can obtain the associated information and then process the target data packet based on the associated information to obtain a network data packet.

[0113] In one embodiment, the second TAN device may be a TAN switch; exemplarily, the second TAN device may be in the same network as the first TAN device; exemplarily, the network in which the second TAN device and the first TAN device are located may be a deterministic network; exemplarily, the second TAN device may be in a different network from the first TAN device; exemplarily, the second TAN device may be set at an exit position of the deterministic network.

[0114] In one embodiment, the second TAN device may store association information; the second TAN device may also obtain association information from a network or other device; illustratively, the other device may be the first TAN device or other device except the first TAN device.

[0115] In one embodiment, the second TAN device processes the target data packet based on the association information to obtain the network data packet, which may be achieved in the following manner;

[0116] The target data packet is parsed to obtain replacement data, and based on the matching relationship between the replacement data and the replacement data in the associated information, the target MAC frame header data associated with the target data packet is determined, and then the target data packet is processed based on the target MAC frame header data to obtain a network data packet.

[0117] From the above, it can be seen that in the data processing method provided in the embodiment of the present application, after receiving the network data packet, the first TAN device can, when determining that reassembly processing needs to be performed, reassemble the MAC frame header data and the TAN frame header data in the network data packet based on the replacement data in the associated information to obtain the target data packet. Since the target data packet no longer carries the MAC frame header data, the data volume of the target data packet is significantly reduced compared to the TAN PDU in the related technology. In this way, when transmitting the target data packet in the deterministic network, the transmission resources of the deterministic network can be saved, the network load can be reduced, and the efficiency and performance of the deterministic network can be improved.

[0118] Moreover, after receiving the target data packet, the second TAN device can process the target data packet based on the associated information to obtain a network data packet, thereby realizing the recovery of the network data packet. In this way, the stable transmission of the network data packet across device types and network types can be achieved.

[0119] In the related art, there are also methods for improving the transmission efficiency of network data packets, including methods for compressing Ethernet messages using algorithms, and methods for segmenting and compressing different fields of the Internet Protocol (IP) header.

[0120] The method for compressing Ethernet messages using an algorithm is implemented in the following manner: at a data message sending end, messages to be compressed and ordinary messages are identified, the messages to be compressed are compared with messages in a local compression table, a compression number corresponding to the messages to be compressed is generated and then transmitted, and the ordinary messages are directly transparently transmitted and processed; at a data message receiving end, messages to be decompressed and ordinary messages are identified, the compression number corresponding to the messages to be decompressed is extracted from a local decompression table according to the compression number, the messages to be decompressed are compared with the messages extracted from the local decompression table, and the original message content is restored. This method is mainly used to perform compression operations on Ethernet messages, while the data processing method provided in the embodiment of the present application does not involve any message compression operation, so this solution is different from the present application.

[0121] The method for segmenting and compressing different fields of the IP header includes: compressing the source address field and the destination address field of the IP header according to the type of the source address and the type of the destination address in the IP header; compressing the transmission type field and the flow label field in the IP header according to the transmission type and flow label in the IP header; compressing the header field of the next header in the IP header according to the header type of the next header in the IP header. The above compression processing can make the compressed IP header meet the hierarchical structure of the network protocol, which is convenient for subsequent parsing and processing. This solution is mainly aimed at the compression of the IP header, and segmented compression is performed on different fields of the IP header itself, which is also different from the data processing method provided in the embodiment of the present application.

[0122] Based on the aforementioned embodiment, in the data processing method provided in the embodiment of the present application, the replacement data includes the encoded data associated with the MAC frame header data.

[0123] Table 1

[0124] Encoded data MAC frame header data First code First MAC frame header data … … Nth code Nth MAC frame header data

[0125] In one embodiment, the encoded data may be numerical data, or any type of data such as characters, character strings, and structures, which is not limited in this embodiment of the present application.

[0126] Exemplarily, under the condition that the replacement data is coded data, the association information may be as shown in Table 1, wherein the first code is associated with the first MAC frame header data, and the Nth code is associated with the Nth MAC frame header data; N is an integer greater than or equal to 2.

[0127] In one embodiment, different types of coded data associated with different types of MAC frame header data may be different.

[0128] Exemplarily, based on the replacement data, the MAC payload data and the TAN frame header data in the network data packet are reassembled to obtain the target data packet, which can be achieved through steps A1 to A3:

[0129] Step A1: Determine target coded data associated with the MAC frame header data of the network data packet based on a matching relationship between the MAC frame header data in the network data packet and the MAC frame header data in the association information.

[0130] Table 2

[0131]

[0132] Exemplarily, the data structure of the network data packet received by the first TAN device may be as shown in Table 2, where the MAC frame header data in the network data packet may include the destination address, source address, and type / length; the MAC payload data is XXXXX, and the CRC is 1010; wherein the destination address and source address are respectively expressed in hexadecimal form.

[0133] Step A2: Set the first identifier to the first position of the TAN frame header data, set the target coded data to the second position of the TAN frame header data, and obtain the target TAN frame header data.

[0134] The first flag indicates whether to perform reorganization processing.

[0135] In one implementation, the first position may be the position of a 1-bit reserved bit in a TAN header in the related art; the second position may be the position of a 6-bit reserved bit in a TAN header in the related art.

[0136] In one embodiment, the first identifier may be a binary number. For example, when the first identifier is 1, it may indicate that the first TAN device has performed a reassembly process; when the first identifier is 0, it may indicate that the first TAN device has not performed a reassembly process.

[0137] Through the above operations, the first identifier and the target coding data can be added to the TAN frame header data without increasing the data volume of the TAN frame header data.

[0138] Step A3: reassemble the MAC payload data and the target TAN frame header data to obtain a target data packet.

[0139] In one embodiment, the target TAN frame header data can be set before the MAC payload data to obtain the target data packet; the reassembly structure can also be determined first, and then the target TAN frame header data and MAC payload data are reassembled based on the reassembly structure to obtain the target data packet.

[0140] For example, the communication requirements of vertical industries are relatively fixed. For example, the data transmission type, source address and destination address of the transmission equipment in an industrial production line are relatively fixed. Therefore, the associated information can be configured in advance.

[0141] Table 3

[0142] Target TAN frame header data MAC payload data CRC

[0143] In practical applications, when a TAN device in a vertical industry, such as a TAN switch, receives a network data packet, such as an Ethernet data packet, it can construct TAN frame header data based on the MAC frame header data of the Ethernet data packet, query the encoding data corresponding to the MAC frame header data from the associated information, and then add the encoding data to the TAN frame header data to obtain the target TAN frame header data. The target TAN frame header data, MAC payload data, and CRC are then combined to obtain the target data packet. Table 3 shows the data structure of the target data packet provided in an embodiment of the present application.

[0144] Figure 3 A first structural diagram of the data processing method provided in the embodiment of the present application is shown as follows: Figure 3 As shown, a first TAN device 301 and a second TAN device 302 are set in a TAN network 303. Exemplarily, at least one TAN device may be further set in the TAN network 303.

[0145] like Figure 3 As shown, after the first TAN device receives the network data packet, it generates TAN frame header data based on the MAC frame header data in the network data packet, obtains the target coding data corresponding to the MAC frame header data, and then sets the target coding data at the second position of the TAN frame header data to obtain the target TAN frame header, and then reassembles the TAN frame header data, MAC payload data and CRC to obtain the target data packet, and sends the target data packet to the second TAN device 302 through the TAN network 303.

[0146] After receiving the target data packet, the second TAN device 302 can determine the target MAC frame header data corresponding to the MAC payload data based on the matching relationship between the target encoded data in the target data packet and the encoded data in the pre-acquired association information, and then remove the target TAN frame header data in the target data packet, combine the target MAC frame header data with the MAC payload data and CRC, and thus restore the network data packet.

[0147] To implement the above steps, association information needs to be set in advance in the first TAN device and the second TAN device. In addition, both the first TAN device and the second TAN device need to have the function of querying association information, setting target coding data, and identifying target coding data.

[0148] From the above, it can be seen that compared with the TANPDU obtained by directly adding a TAN header to the Ethernet data packet in the related art, the data processing method provided in the embodiment of the present application reduces the data volume of the target data packet by 14 bytes. In the small data packet transmission scenario in the industrial field, the transmission process of the target data packet obtained by the data processing method provided in the embodiment of the present application can save 20% of the transmission resources, thereby improving the network bandwidth utilization efficiency by 20%.

[0149] As can be seen from the above, in the data processing method provided in the embodiment of the present application, after determining the target coded data, the target coded data can be added to the TAN frame header data to obtain the target TAN frame header data without changing the TAN frame header data structure or increasing the data volume of the TAN frame header data. The target TAN frame header data and MAC payload data are then reassembled to obtain the target data packet. In this way, compared to TAN data packets in related technologies, the data volume of the target data packet is reduced, which can reduce the waste of data transmission resources and improve data transmission efficiency. After receiving the target data packet, the second TAN device can also obtain the target coded data and the first identifier, thereby laying the foundation for obtaining a network data packet based on the target data packet.

[0150] Based on the foregoing embodiment, in the embodiment of the present application, the network data packet is the N+1th network data packet received by the first TAN device.

[0151] Exemplarily, obtaining the association information between the replacement data used to replace the MAC frame header data and the MAC frame header data can be achieved in the following manner:

[0152] Correlation information is obtained based on MAC frame header data of the N received network data packets.

[0153] Among them, the MAC frame header data of the N+1th network data packet is the same as any MAC frame header data of the MAC frame header data of the N network data packets; the MAC frame header data of the N network data packets are different; and N is an integer greater than or equal to 2.

[0154] In one embodiment, the N network data packets may be transmitted in accordance with a transmission order agreed upon between the first TAN device and the second TAN device, or may be transmitted in a random transmission order; illustratively, the N network data packets may be data packets specifically used to obtain associated information, or may be data packets used to transmit business data.

[0155] In the embodiment of the present application, the association information is obtained based on N network data packets received by the first TAN device. Therefore, the association information can more realistically reflect the actual data transmission requirements of the first TAN device, thereby improving the stability of target data packet transmission.

[0156] Based on the above embodiment, in the data processing method provided in the embodiment of the present application, the association information is obtained based on the MAC frame header data of the N received network data packets, which can be implemented through steps B1 to B4:

[0157] Step B1: When the nth network data packet is received, obtain the MAC frame header data of the nth network data packet.

[0158] Here, n is an integer greater than 1 and less than or equal to N.

[0159] Step B2: If the MAC frame header data of the nth network data packet is different from the MAC frame header data of the previous n-1 network data packets, generate nth coded data associated with the MAC frame header data of the nth network data packet.

[0160] For example, if the MAC frame header data of the n-th network data packet is the same as any MAC frame header data of the previous n-1 network data packets, the n-th coded data may not be generated.

[0161] In one embodiment, the nth encoded data may be implemented in any of the following ways:

[0162] The nth coded data is generated according to the time and / or sequence of the received nth network data packet; illustratively, the nth coded data at this time may be the number n.

[0163] A coding generation algorithm is determined, and when an nth network data packet is received, MAC frame header data of the nth network data packet is processed according to the coding generation algorithm to obtain nth coded data.

[0164] Step B3: Obtain association information based on the N coded data and the MAC frame header data of the N network data packets.

[0165] Exemplarily, the association information can be obtained by associating N coded data and MAC frame header data of N network data packets; it can also be obtained by mapping the MAC frame header data of N network data packets to N coded data according to a coding mapping algorithm.

[0166] From the above, it can be seen that in the data processing method provided in the embodiment of the present application, the encoded data in the associated information is generated based on the MAC frame header data of the N network data packets received by the first TAN device. In this way, the stability of the MAC frame header data during the transmission process is fully utilized, thereby improving the stability and reliability of the associated information.

[0167] Based on the foregoing embodiment, in the data processing method provided in the embodiment of the present application, after generating the nth coded data associated with the MAC frame header data of the nth network data packet, steps C1 to C4 may also be performed:

[0168] Step C1: Generate nth TAN frame header data associated with the nth network data packet based on the MAC frame header data of the nth network data packet.

[0169] Step C2: Set the nth coded data to the nth TAN frame header data to obtain the nth TAN frame header data carrying the coded data.

[0170] Exemplarily, since the data structure of the TAN frame header data carrying the coded data does not change, but the range of the valid information carried by the TAN frame header data is extended, the TAN frame header data carrying the coded data can be recorded as extended TAN frame header data.

[0171] Step C3: Combine the nth TAN frame header data carrying the encoded data and the nth network data packet to obtain the nth TAN data packet carrying the encoded data.

[0172] Illustratively, the data structure of the nth TAN data packet carrying the encoded data may be as shown in Table 4.

[0173] Table 4

[0174] TAN frame header data carrying coded data MAC frame header data MAC payload data CRC

[0175] As can be seen from Table 4, the nth TAN data packet carrying coded data, compared with the TAN PDU in the related art, only adds coded data to the TAN frame header data. Therefore, the nth TAN data packet carrying coded data can be recorded as the nth extended TAN data packet.

[0176] Step C4: Send N TAN data packets carrying the coded data to the second TAN device, so that the second TAN device can determine the association information based on the MAC frame header data in the N TAN data packets carrying the coded data and the N coded data.

[0177] Exemplarily, after receiving any TAN data packet carrying encoded data, the second TAN device can obtain the TAN frame header data of the TAN data packet carrying the encoded data, and obtain the encoded data from the second position; at the same time, the second TAN device can also obtain the MAC frame header data of the data packet, and combine the encoded data and the MAC frame header data; exemplarily, the second TAN device can obtain association information based on the combination results between N encoded data and N MAC frame header data.

[0178] Exemplarily, after receiving any TAN data packet carrying encoded data, the second TAN device can also remove the TAN frame header data carrying the encoded data in the data packet, combine the MAC payload data, MAC frame header data and CRC to obtain a network data packet, and send the network data packet out.

[0179] For example, when the first TAN device receives the N+1th network data packet, it can be determined that the association relationship is determined. At this time, the data processing method described in the above embodiment can be executed to obtain the target data packet; when the second TAN device receives the N+1th data packet, that is, the target data packet, it is determined that the target coding data carried in the target data packet matches a certain coding data in the association information, and then it can be determined that the association relationship is determined.

[0180] Table 5

[0181] TAN frame header data carrying target data MAC payload data CRC

[0182] Illustratively, the data structure of the target data packet may be as shown in Table 3, and the structure of the network data packet obtained by the second TAN device may be as shown in Table 5.

[0183] Exemplarily, the above method can be applied to a unidirectional link transmission process. During the unidirectional link transmission process, the data transmission between the first TAN device and the second TAN device is unidirectional. Through the unidirectional real-time data transmission operation between the first TAN device and the second TAN device, the associated information can be determined quickly and accurately in real time, thereby improving the flexibility of the data processing method provided in the embodiment of the present application and expanding the scope of application of the present application.

[0184] From the above, it can be seen that in the data processing method provided in the embodiment of the present application, when the association information is not pre-set in the first TAN device and the second TAN device, the association information can be determined in real time based on the data packet transmission between the first TAN device and the second TAN device. On the one hand, the flexibility of determining the association information is improved and the accuracy of the association information is improved. On the other hand, it can also improve the flexibility of the present application, thereby expanding the scope of application of the present application.

[0185] Based on the above embodiments, the data processing method provided in the embodiments of the present application determines that reorganization processing needs to be performed, which can be achieved by:

[0186] When the reassembly confirmation identifier sent by the second TAN device is received, it is determined that the reassembly process needs to be performed.

[0187] Exemplarily, a bidirectional transmission link may be established between the first TAN device and the second TAN device. Thus, the second TAN device may send a reassembly confirmation flag to the first TAN device to instruct the first TAN device to start the reassembly process.

[0188] In one embodiment, when there is a bidirectional transmission link between the first TAN device and the second TAN device, during the process of the first TAN device and the second TAN device determining the association information, the second TAN device can send a confirmation reassembly identifier to the first TAN device when receiving the N+1th network data packet, i.e., the target data packet; and can also send a confirmation reassembly identifier to the first TAN device at any time before receiving the target data packet, thereby realizing control of initiating reassembly processing on the first TAN device.

[0189] In one embodiment, the confirmation reassembly identifier may be carried in a confirmation reassembly data packet. Exemplarily, the second TAN device may generate a confirmation reassembly data packet and set the confirmation reassembly identifier in the confirmation reassembly data packet. Exemplarily, the confirmation reassembly identifier may be set at the first position of the TAN frame header data in the confirmation reassembly data packet.

[0190] In one embodiment, when receiving a network data packet, a TAN device in the TAN network may determine the confirmation reassembly flag at the first position of the TAN frame header data. If the confirmation reassembly flag is not set, the TAN device may not initiate reassembly processing.

[0191] From the above, it can be seen that in the data processing method provided in the embodiment of the present application, the first TAN device can start the reassembly processing of the network data packet based on the confirmation reassembly identifier, thereby making the reassembly processing of the first TAN device controllable and adjustable, further improving the flexibility of the first TAN device in performing the reassembly processing.

[0192] Based on the above embodiments, in the data processing method provided in the embodiments of the present application, determining that reorganization processing needs to be performed can also be achieved in the following ways:

[0193] First information of a first device that sends a network data packet is obtained; when the first information indicates that the first device is not a TAN device, it is determined that reassembly processing needs to be performed.

[0194] Exemplarily, when the first information indicates that the first device is a TAN device, it can be determined that the reassembly process does not need to be performed.

[0195] Illustratively, when the first information identifies the first device as a TAN device, if a reassembly confirmation flag has been set in the network data packet, the first TAN device may still determine that reassembly processing needs to be performed.

[0196] In one embodiment, the first device may be an Ethernet device, that is, the data sent by the first device to the first TAN device is an Ethernet data packet. In this case, the first TAN device may initiate a reassembly process.

[0197] As can be seen above, the first TAN device can determine whether to initiate reassembly based on the first information of the first device sending the network data packet. Therefore, when network data packets originate from different devices, the device information of each device can be used to flexibly control whether the first TAN device performs reassembly. This effectively reduces network transmission load while also enabling flexible and adaptive control of the operating mode of the first TAN device.

[0198] Based on the above embodiments, in the data processing method provided in the embodiments of the present application, determining that reorganization processing needs to be performed can also be achieved in the following ways:

[0199] A second identifier stored at a designated location of the network data packet is obtained, and if the second identifier is a designated identifier, it is determined that reassembly processing needs to be performed.

[0200] Exemplarily, if the second identifier is not a designated identifier, it can be determined that the reassembly process does not need to be performed. Exemplarily, in order to improve data transmission efficiency, the second identifier can be a binary number; and exemplary, the designated identifier can be 1.

[0201] In one embodiment, the designated position of the network data packet may be the position of the reserved bit in the network data packet; exemplarily, when the network data packet is an Ethernet data packet and the reserved bit in the MAC frame header data is not occupied, the designated position may be the position of the reserved bit in the MAC frame header data; exemplarily, the reserved bit in the MAC frame header data may be the bit where the type / length identifier is located.

[0202] In one embodiment, when the network data packet is a TAN data packet in the related art, the designated position can be a reserved bit in the TAN frame header data or a reserved bit in the MAC frame header data. Exemplarily, the reserved bit in the TAN frame header data can be located at the first position or the second position. Exemplarily, when another identifier, such as a periodic identifier or an urgent data identifier, is already set at the first position, a bit can be added to the end of the TAN frame header data to store the second identifier. This is shown in Table 6:

[0203] Table 6

[0204] TAN frame header data Second identification MAC frame header data MAC payload data CRC

[0205] In one implementation, the second identifier may be set by a predecessor device of the first TAN device, or may be set by a source device that sends the network data packet.

[0206] From the above, it can be seen that in the data processing method provided in the embodiment of the present application, the first TAN device can determine whether to perform reassembly processing based on the second identifier at a specified position in the received network data packet, thereby making the control of the reassembly processing more flexible.

[0207] In the embodiment of the present application, the replacement data includes TAN frame header data.

[0208] Exemplarily, when the replacement data is TAN frame header data, the association information may include association relationship information between the TAN frame header data and the MAC frame header data. In this case, the association information may be as shown in Table 7:

[0209] Table 7

[0210] TAN frame header data MAC frame header data First TAN frame header data First MAC frame header data … … Nth TAN frame header data Nth MAC frame header data

[0211] As shown in Table 7, the association information may include first association relationship information between the first TAN frame header data and the first MAC frame header data, and Nth association relationship information between the Nth TAN frame header data and the Nth MAC frame header data.

[0212] Exemplarily, obtaining the TAN frame header data associated with the network data packet can be achieved through steps D1 to D2:

[0213] Step D1: Obtain MAC frame header data of the network data packet.

[0214] Step D2: Obtain TAN frame header data based on the matching relationship between the MAC frame header data of the network data packet and the MAC frame header data in the association information.

[0215] In this case, the TAN frame header data and the MAC payload data are reassembled based on the replacement data, and the TAN frame header data and the MAC payload data may be directly combined.

[0216] Exemplarily, since the TAN frame header data is generated based on the MAC frame header data, when the MAC frame header data changes, the TAN frame header data also changes accordingly.

[0217] Exemplarily, under the condition that there is a unidirectional transmission link between the first TAN device and the second TAN device, when the first TAN device receives N network data packets and the MAC frame headers of the N network data packets are different, the first TAN device can combine the N MAC frame header data and the corresponding TAN frame header data to obtain association information; exemplarily, the second TAN device can also combine the N MAC frame header data and the N frame header data based on the N received data packets carrying the first identifier to obtain association information; thereafter, the first TAN device can perform reassembly processing on the subsequently received network data packets based on the association information to obtain the target data packet, and the second TAN device can process the target data packet based on the association information to restore the network data packet.

[0218] From the above, it can be seen that the data processing method provided in the embodiment of the present application fully utilizes the one-to-one correspondence between the MAC frame header data and the TAN frame header data, reorganizes and processes the network data packet to obtain the target data packet. Compared with the TAN PDU in the related art, the data volume of the target data packet obtained by the above method is further reduced, thereby further improving the transmission efficiency of the target data packet.

[0219] The data processing method provided in the embodiments of the present application can also be applied to different deterministic networks. Figure 4 This is a second structural diagram of the data processing method provided in the embodiment of the present application. Figure 4 As shown, the deterministic network may include a first TAN network 401 and a second TAN network 402; wherein, the inlet of the first TAN network 401 is provided with a first TAN switch 403, and the outlet is provided with a second TAN switch 404; the second TAN switch 404 is connected to the third TAN switch 406 provided at the inlet of the second TAN network 402 through an Ethernet switch 405; and the outlet of the second TAN network 402 is provided with a fourth TAN switch 407.

[0220] For example, to improve data transmission efficiency between deterministic networks, association information can be predetermined and set in the first to fourth TAN switches 403 to 407. When the first TAN switch 403 receives an Ethernet data packet, it generates TAN header data based on the MAC header data in the Ethernet data packet, and adds replacement data associated with the MAC header data, such as target coding data, to the TAN header data to form a TAN PDU carrying the target coding data. The structure of the TAN PDU in this case can be shown in Table 4. The MAC header data is then removed from the TAN PDU carrying the target coding data to obtain a target data packet. The data structure of the target data packet can be shown in Table 5. The target data packet is then sent to the first TAN network 401. When the target data packet reaches the second TAN switch 404 after being transmitted through the first TAN network 401, the second TAN switch 404 can determine the target MAC header data based on the association information and the replacement data, such as the target coding data, and combine the target MAC header data with the MAC payload data to obtain an Ethernet data packet. The Ethernet data packet is then transmitted to the Ethernet switch 405.

[0221] The Ethernet switch 405 routes the Ethernet data packet to the third TAN switch 406 based on the routing information in the MAC frame header data. At this time, the third TAN switch 406 can perform the same operation as the first TAN switch to obtain the target data packet. When the data packet reaches the fourth TAN switch 407 after being transmitted through the second TAN network 402, the fourth TAN switch 407 can perform the same operation as the second TAN switch 404 to obtain the Ethernet data packet, thereby realizing the data transmission operation between the first TAN network 401 and the second TAN network 402.

[0222] Exemplarily, any TAN switch may determine whether to perform the reassembly process and the recovery process of the target data packet in the following manner:

[0223] If the preceding switch of the TAN switch is an Ethernet switch, it can be determined that reassembly processing needs to be performed; if the subsequent switch of the TAN switch is an Ethernet switch, it can be determined that a network data packet needs to be obtained based on the target data packet.

[0224] If the Type / Length field in the MAC frame header data is not occupied, the field can be identified. If the data stored in the field is 1, it can indicate that the current MAC frame header data was added during the process of recovering the network data packet, and reassembly processing can be performed at this time. If the data stored in the field is 0, it can indicate that reassembly processing is not performed. For example, if the Type / Length field in the MAC frame header data is occupied, the MAC frame header data is retained.

[0225] The encoded data is used to determine whether to execute the operation of obtaining the Ethernet data packet. If the encoded data exists in the data packet, it can be determined that the current data packet has been processed by the TAN switch and can be the target data packet. At this time, the target data packet can be processed to obtain the Ethernet data packet.

[0226] From the above, it can be seen that when the data processing method provided in the embodiment of the present application is applied to multiple deterministic networks, the data volume of the TAN PDU can be reduced; when there are many data nodes in the deterministic network or there are multiple deterministic subnet connections, the data processing method provided in the embodiment of the present application can effectively solve the problems of network performance degradation and service limitation caused by the repetitive MAC frame header data carried in the TAN PDU, thereby achieving efficient network resource allocation and improving the overall performance of the deterministic network.

[0227] Based on the above embodiments, the embodiments of the present application further provide a data processing method applied to a second TAN device.

[0228] It should be noted that the method can be implemented by a processor of the second TAN device, which can be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.

[0229] Figure 5 A second flow chart of the data processing method provided in the embodiment of the present application is shown as follows: Figure 5 As shown, the method may include steps 501 to 504:

[0230] Step 501: Receive a target data packet sent by a first TAN device.

[0231] The target data packet carries replacement data; the replacement data is used for the first TAN device to replace the MAC frame header data in the received network data packet.

[0232] Step 502: Obtain association information between the replacement data and the MAC frame header data.

[0233] Step 503: Process the target data packet based on the associated information to obtain a network data packet.

[0234] From the above, it can be seen that the data processing method provided in the embodiment of the present application can process the target data packet based on the associated information to obtain a network data packet after the second TAN device receives the target data packet. In this way, while the first TAN device can reduce the data volume of the network data packet and improve the network transmission efficiency, the second TAN device can also restore the target data packet to a network data packet, so that the network data packet can still be transmitted stably in the Ethernet, thereby expanding the application scope of the data processing method provided in the embodiment of the present application and improving the flexibility of the method.

[0235] Based on the above embodiment, the target data packet includes target TAN frame header data carrying target coded data; and the replacement data includes coded data associated with the MAC frame header data.

[0236] Exemplarily, processing the target data packet based on the association information to obtain the network data packet can be achieved in the following manner:

[0237] Based on the matching relationship between the target coding data in the target TAN frame header data and the coding data in the associated information, the target MAC frame header data is determined; the target MAC frame header data and the MAC payload data in the target data packet are combined and processed to obtain a network data packet.

[0238] From the above, it can be seen that the second TAN device can determine the target MAC frame header data based on the associated information and the target data packet, and combine the target MAC frame header data and the MAC payload data in the target data packet to obtain a network data packet, thereby achieving stable recovery of the network data packet and improving the transmission stability of the network data packet.

[0239] In the embodiment of the present application, obtaining the association information between the replacement data and the MAC frame header data can be achieved by the following methods:

[0240] N TAN data packets carrying coded data sent by a first TAN device are received; and association information is obtained based on the coded data in the N TAN data packets carrying coded data and the MAC frame header data in the N TAN data packets carrying coded data.

[0241] From the above, it can be seen that the second TAN device can obtain the association information based on the N received TAN data packets carrying the coded data, thereby achieving flexible determination of the association information and further improving the flexibility of the data processing method.

[0242] In the data processing method applied to the second TAN device provided in the embodiment of the present application, after obtaining the association information, the following operations may be performed:

[0243] Send a confirmation reassembly identifier to the first TAN device.

[0244] Exemplarily, the reassembly confirmation identifier may be set in a TAN reassembly confirmation data packet sent to the first TAN device.

[0245] As can be seen from the above, by sending the confirmation reorganization identifier to the first TAN device, synchronization and coordination of data processing operations between the first TAN device and the second TAN device can be achieved.

[0246] In the data processing method applied to the second TAN device provided in the embodiment of the present application, processing the target data packet based on the association information can be implemented in the following manner:

[0247] A first identifier is obtained from a first position of the target TAN frame header data; if the first identifier indicates that the first TAN device has performed reassembly processing, the target data packet is processed based on the associated information.

[0248] Correspondingly, if the first identifier indicates that the first TAN device does not perform reassembly processing, the target data packet may not be processed.

[0249] From the above, it can be seen that the second TAN device processes the target data packet based on the associated information only when the first identifier indicates that the first TAN device has performed reassembly processing, thereby improving the targeted processing of the target data packet by the second TAN device and saving the data processing resources of the second TAN device.

[0250] In the data processing method applied to the second TAN device provided in the embodiment of the present application, processing the target data packet based on the association information can be implemented in the following manner:

[0251] Second information of a second device connected to the second TAN device and used to receive network data packets is obtained; and when the second information indicates that the second device is not a TAN device, the target data packet is processed based on the association information.

[0252] Exemplarily, if the second information indicates that the second device is a TAN device, the target data packet may not be processed.

[0253] As can be seen from the above, the second TAN device can determine whether to process the target data packet in a variety of ways, thereby achieving flexible control over the second TAN device's processing of the target data packet.

[0254] In the embodiment of the present application, the replacement data includes TAN frame header data.

[0255] In the data processing method applied to the second TAN device provided in the embodiment of the present application, processing the target data packet based on the association information to obtain the network data packet can be achieved in the following manner:

[0256] Obtain TAN frame header data of the target data packet; determine target MAC frame header data based on the matching relationship between the TAN frame header data of the target data packet and the TAN frame header data in the associated information; combine the target MAC frame header data and the MAC payload data in the target data packet to obtain a network data packet.

[0257] From the above, it can be seen that the second TAN device can realize the recovery from the target data packet to the network data packet based on at least two kinds of association information, thereby further improving the flexibility of the data processing method.

[0258] It should be noted that the data processing method provided in the embodiment of the present application is applicable to all data encapsulation protocols similar to TAN. That is to say, the reassembly processing of network data packets and the recovery processing of target data packets based on the TAN protocol are only an example provided in the embodiment of the present application. The data processing method provided in the embodiment of the present application is applicable to the optimization of the transmission efficiency of network data packets generated by all nested protocols.

[0259] In practice, the most pressing demands placed on operator networks by vertical industry business development are reliability and timeliness. However, vertical industry businesses are diverse and fragmented, with different services and data types requiring specific services. Therefore, integrating 5th Generation Mobile Communication Technology (5G) with vertical industry businesses and improving the overall performance of 5G networks are key priorities for vertical industries, and are crucial for the future of 5G-enabled industries.

[0260] The data processing method provided in the embodiment of the present application can reduce the amount of data in network data packets passing through the deterministic network, thereby improving the efficiency of network data transmission; and, during the implementation of this method, the reorganization processing of the data packets can be flexibly controlled, solving the one-size-fits-all solution of compressing all or none of the data packets in the related art; it can also achieve efficient data transmission between multiple deterministic networks, thereby improving the intelligence of the deterministic network, and the saved network bandwidth resources can further expand the network scale and business scenarios.

[0261] Based on the above embodiment, the present embodiment further provides a first TAN device 301, Figure 6 This is a schematic diagram of the structure of the first TAN device 301 provided in the embodiment of the present application. Figure 6 As shown, the first TAN device 301 includes a first transceiver module 601 and a first processing module 602, wherein:

[0262] The first processing module 602 is configured to obtain association information between replacement data used to replace MAC frame header data and the MAC frame header data; upon receiving a network data packet, obtain TAN frame header data associated with the network data packet; and, if it is determined that reassembly processing is required, reassemble the MAC payload data and TAN frame header data in the network data packet based on the replacement data to obtain a target data packet;

[0263] The first transceiver module 601 is configured to send a target data packet to a second TAN device, so that the second TAN device can obtain correlation information and then process the target data packet based on the correlation information to obtain a network data packet.

[0264] In some embodiments, the replacement data includes encoded data associated with the MAC frame header data; the first processing module 602 is used to determine the target encoded data associated with the MAC frame header data of the network data packet based on the matching relationship between the MAC frame header data in the network data packet and the MAC frame header data in the associated information; set the first identifier to the first position of the TAN frame header data, set the target encoded data to the second position of the TAN frame header data, and obtain the target TAN frame header data; reassemble the MAC payload data and the target TAN frame header data to obtain the target data packet; wherein the first identifier indicates whether to perform reassembly processing.

[0265] In some embodiments, the network data packet is the N+1th network data packet received by the first TAN device; the first processing module 602 is used to obtain associated information based on the MAC frame header data of the N received network data packets; wherein, the MAC frame header data of the N+1th network data packet is the same as any MAC frame header data of the MAC frame header data of the N network data packets; the MAC frame header data of the N network data packets are different; N is an integer greater than or equal to 2.

[0266] In some embodiments, the first processing module 602 is used to obtain the MAC frame header data of the nth network data packet when the nth network data packet is received; if the MAC frame header data of the nth network data packet is different from the MAC frame header data of the previous n-1 network data packets, generate the nth coded data associated with the MAC frame header data of the nth network data packet; based on the N coded data and the MAC frame header data of the N network data packets, obtain association information; wherein n is an integer greater than 1 and less than or equal to N.

[0267] In some embodiments, the first processing module 602 is used to generate the nth TAN frame header data associated with the nth network data packet based on the MAC frame header data of the nth network data packet; set the nth coded data to the nth TAN frame header data to obtain the nth TAN frame header data carrying the coded data; combine the nth TAN frame header data carrying the coded data and the nth network data packet to obtain the nth TAN data packet carrying the coded data; and send N TAN data packets carrying the coded data to the second TAN device, so that the second TAN device can determine the association information based on the MAC frame header data in the N TAN data packets carrying the coded data and the N coded data.

[0268] In some embodiments, the first processing module 602 is configured to determine that the network data packet needs to be reassembled upon receiving a confirmation reassembly identifier sent by the second TAN device.

[0269] In some embodiments, the first processing module 602 is configured to obtain first information of a first device that sends a network data packet; and determine that reassembly processing needs to be performed when the first information indicates that the first device is not a TAN device.

[0270] In some embodiments, the first processing module 602 is configured to obtain a second identifier stored at a designated location of the network data packet, and determine that reassembly processing needs to be performed if the second identifier is a designated identifier.

[0271] In some embodiments, the replacement data includes TAN frame header data, and the first processing module 602 is used to obtain MAC frame header data of the network data packet; based on the matching relationship between the MAC frame header data of the network data packet and the MAC frame header data in the associated information, the TAN frame header data is obtained.

[0272] The embodiment of the present application also provides another first TAN device 301, which includes a first processor and a first memory; wherein the first memory stores a computer program; when the first processor executes the computer program, it can implement any of the above data processing methods.

[0273] It should be noted that the first transceiver module 601 and the first processing module 602 can be implemented by a first processor, and the first processor can be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0274] The above-mentioned first memory can be a volatile memory (volatile memory), such as random access memory (RAM); or a non-volatile memory (non-volatile memory), such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid state drive (SSD); or a combination of the above types of memory, and provides instructions and data to the first processor.

[0275] From the above, it can be seen that after receiving the network data packet, the first TAN device 301, when determining that reassembly processing needs to be performed, can reassemble the MAC frame header data and TAN frame header data in the network data packet based on the replacement data in the associated information to obtain the target data packet. Since the target data packet no longer carries MAC frame header data, the data volume of the target data packet is significantly reduced compared to the TAN PDU in the related technology. In this way, when transmitting the target data packet in the deterministic network, it is possible to save the transmission resources of the deterministic network, reduce the network load, and improve the efficiency and performance of the deterministic network.

[0276] Moreover, after receiving the target data packet, the second TAN device can process the target data packet based on the associated information to obtain a network data packet, thereby realizing the recovery of the network data packet. In this way, the stable transmission of the network data packet across device types and network types can be achieved.

[0277] Based on the above embodiment, the embodiment of the present application further provides a second TAN device 302, Figure 7 This is a schematic diagram of the structure of the second TAN device 302 provided in the embodiment of the present application, as shown in FIG. Figure 7 As shown, the second TAN device 302 includes a second transceiver module 701 and a second processing module 702, wherein:

[0278] The second transceiver module 701 is configured to receive a target data packet sent by the first TAN device; wherein the target data packet carries replacement data; the replacement data is used by the first TAN device to replace the MAC frame header data in the received network data packet;

[0279] The second processing module 702 is configured to obtain correlation information between the replacement data and the MAC frame header data; and process the target data packet based on the correlation information to obtain a network data packet.

[0280] In some embodiments, the target data packet includes target TAN frame header data carrying target coding data; replacement data includes coding data associated with MAC frame header data, and the second processing module 702 is used to determine the target MAC frame header data based on the matching relationship between the target coding data in the target TAN frame header data and the coding data in the associated information; the target MAC frame header data and the MAC payload data in the target data packet are combined and processed to obtain a network data packet.

[0281] In some embodiments, the second transceiver module 701 is configured to receive N TAN data packets carrying coded data sent by the first TAN device;

[0282] The second processing module 702 is configured to obtain association information based on the coded data in the N TAN data packets carrying the coded data and the MAC frame header data in the N TAN data packets carrying the coded data.

[0283] In some embodiments, the second transceiver module 701 is configured to send a recombination confirmation identifier to the first TAN device.

[0284] In some embodiments, the second processing module 702 is configured to obtain a first identifier from a first position of the target TAN frame header data; if the first identifier indicates that the first TAN device has performed reassembly processing, process the target data packet based on the associated information.

[0285] In some embodiments, the second processing module 702 is used to obtain second information of a second device connected to the second TAN device for receiving network data packets; when the second information indicates that the second device is not a TAN device, the target data packet is processed based on the associated information.

[0286] In some embodiments, the replacement data includes TAN frame header data, and the second processing module 702 is used to obtain the TAN frame header data of the target data packet; determine the target MAC frame header data based on the matching relationship between the TAN frame header data of the target data packet and the TAN frame header data in the associated information; combine the target MAC frame header data and the MAC payload data in the target data packet to obtain a network data packet.

[0287] Based on the foregoing embodiments, the embodiments of the present application further provide another second TAN device 302, which includes a second processor and a second memory; wherein the second memory stores a computer program; when the second processor executes the computer program, it can implement any of the data processing methods applied to the second TAN device 302 as described above.

[0288] It should be noted that the second transceiver module 701 and the second processing module 702 can be implemented by a second processor, and the second processor can be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0289] The above-mentioned second memory can be a volatile memory (volatile memory), such as RAM; or a non-volatile memory (non-volatile memory), such as read-only memory ROM, flash memory, HDD or SSD; or a combination of the above types of memory, and provides instructions and data to the second processor.

[0290] From the above, it can be seen that the second TAN device 302 can determine the target MAC frame header data from the associated information and the target data packet, and combine the target MAC frame header data and the MAC payload data in the target data packet to obtain a network data packet, thereby achieving stable recovery of the network data packet and improving the transmission stability of the network data packet.

[0291] Based on the above embodiments, the present application also provides a data processing system 8. Figure 8 This is a first structural diagram of the data processing system 8 provided in the embodiment of the present application. Figure 8 As shown, the system may include a first TAN device 301 and a second TAN device 302 .

[0292] Figure 9 This is a second structural diagram of the data processing system 8 provided in an embodiment of the present application.

[0293] like Figure 9 As shown, the first TAN device 301 includes a first switching module 901, a first data processing module 902, a first control module 903, and a first transmission module 904. The first data processing module 902 includes a first reassembly unit 9021 and a first recovery unit 9022. The first reassembly unit 9021 is configured to perform reassembly processing, while the first recovery unit 9022 is configured to restore the target data packet to a network data packet.

[0294] The second TAN device 302 includes a second switching module 905, a second data processing module 906, a second control module 907, and a second transmission module 908. The second data processing module 906 includes a second reassembly unit 9061 and a second recovery unit 9062. The second reassembly unit 9061 is configured to perform reassembly processing; the second recovery unit 9062 is configured to restore the target data packet to a network data packet.

[0295] Among them, the first transmission module 904 and the second transmission module 908 are used to receive network data packets or target data packets, and are also used to receive TAN data packets carrying encoded data; the first reassembly unit 9021 is used to reassemble the MAC frame header data, TAN frame header data and CRC in the network data packet based on the replacement data in the associated information, such as the encoded data, to obtain the target data packet; the first recovery unit 9022 is used to process the target data packet based on the MAC frame header data in the associated information to restore the network data packet.

[0296] The first control module 903 is used to control whether the first data processing module 902 performs a reassembly operation or a recovery operation; illustratively, the first control module 903 can control the data processing state of the first data processing module 902 based on a network data packet or a target data packet.

[0297] The first switching module 901 is used to determine the address of the subsequent switching device based on the address information carried in the network data packet or the target data packet; the first transmission module 904 is used to implement data transmission operations between the first TAN device and other devices.

[0298] exist Figure 9 In the embodiment, the functions of the second switching module 905, the second data processing module 906, the second control module 907 and the second transmission module 908 in the second TAN device 302 are the same as those of the corresponding modules in the first TAN device 301, and are not described again here.

[0299] Based on the aforementioned embodiment, the data processing system 8 provided in the embodiment of the present application further includes a configuration management device 1001 . Figure 10 This is a third structural diagram of the data processing system 8 provided in an embodiment of the present application.

[0300] The first TAN device 301 and / or the second TAN device 302 sends configuration parameters to the configuration management device 1001 ; the configuration management device 1001 is configured to determine association information based on the configuration parameters and send the association information to the first TAN device 301 and / or the second TAN device 302 .

[0301] Illustratively, the data processing system 8 may further include a TAN network 303 .

[0302] In one embodiment, the configuration parameters may include requirement parameters for whether to perform reassembly processing; may also include MAC frame header data that requires reassembly processing, and / or TAN frame header data that requires recovery processing, etc.; may also include encoded data associated with the MAC frame header data.

[0303] Illustratively, after receiving the configuration parameters, the configuration management device 1001 may generate association information based on the configuration parameters, may also update the association information based on the configuration parameters, and send the final association information to the first TAN device 301 and / or the second TAN device 302 .

[0304] Exemplarily, the configuration parameters may be sent to the configuration management device 1001 in any of the following ways:

[0305] The configuration management device 1001 periodically sends instructions for collecting configuration parameters to the first TAN device 301 and / or the second TAN device 302; illustratively, the configuration management device 1001 can send the instructions according to a specified time period, which can be Δt. After receiving the instructions, the first TAN device 301 and / or the second TAN device 302 collect their respective configuration parameters and upload them.

[0306] The first TAN device 301 and / or the second TAN device 302 proactively reports configuration parameters. For example, when the first TAN device 301 and / or the second TAN device 302 detects an update in the MAC frame header data of a received data packet, it can be determined that a new switch device has joined the deterministic network. At this time, the new configuration parameters, such as the reassembly processing requirements, can be sent to the configuration management device 1001, so that the configuration management device 1001 updates the associated information based on the new configuration parameters and returns the updated associated information.

[0307] From the above, it can be seen that the data processing system 8 provided in the embodiment of the present application realizes centralized management of associated information, thereby improving the management efficiency of associated information and further improving the data transmission efficiency of the deterministic network.

[0308] Based on the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it can implement any of the foregoing data processing methods.

[0309] The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced with each other and will not be repeated herein for the sake of brevity.

[0310] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0311] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0312] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0313] It should be noted that the above-mentioned computer-readable storage medium can be a memory such as ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, magnetic surface storage, optical disc, or Compact Disc Read-Only Memory (CD-ROM); it can also be various electronic devices that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0314] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0315] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0316] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware nodes, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0317] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0318] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0319] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0320] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A data processing method, characterized in that: The method is applied to a first time-clear network (TAN) device; the method comprises: Obtaining association information between replacement data used to replace media access control MAC frame header data and the MAC frame header data; When a network data packet is received, obtaining TAN frame header data associated with the network data packet; If it is determined that reassembly processing is required, reassembly processing is performed on the MAC payload data and the TAN frame header data in the network data packet based on the replacement data to obtain a target data packet; The target data packet is sent to the second TAN device, so that the second TAN device obtains the association information and processes the target data packet based on the association information to obtain the network data packet.

2. The method according to claim 1, characterized in that The replacement data includes encoded data associated with the MAC frame header data; and the reassembly processing of the MAC payload data and the TAN frame header data in the network data packet based on the replacement data to obtain the target data packet includes: Determining target coded data associated with the MAC frame header data of the network data packet based on a matching relationship between the MAC frame header data in the network data packet and the MAC frame header data in the association information; Setting a first identifier to a first position of the TAN frame header data, and setting the target coded data to a second position of the TAN frame header data, to obtain target TAN frame header data; wherein the first identifier indicates whether to perform the reassembly process; The MAC payload data and the target TAN frame header data are reassembled to obtain the target data packet.

3. The method according to claim 2, characterized in that The network data packet is the N+1th network data packet received by the first TAN device; The obtaining of association information between replacement data for replacing MAC frame header data and the MAC frame header data includes: The association information is obtained based on the MAC frame header data of N received network data packets; wherein, the MAC frame header data of the N+1th network data packet is the same as any MAC frame header data of the MAC frame header data of the N network data packets; the MAC frame header data of the N network data packets are different; and N is an integer greater than or equal to 2.

4. The method according to claim 3, characterized in that The obtaining the association information based on the MAC frame header data of the N received network data packets includes: Upon receiving an nth network data packet, obtaining MAC frame header data of the nth network data packet; wherein n is an integer greater than 1 and less than or equal to N; If the MAC frame header data of the nth network data packet is different from the MAC frame header data of the previous n-1 network data packets, generating nth coded data associated with the MAC frame header data of the nth network data packet; The association information is obtained based on the N pieces of encoded data and the MAC frame header data of the N network data packets.

5. The method according to claim 4, characterized in that After generating the nth coded data associated with the MAC frame header data of the nth network data packet, the method further includes: Generate nth TAN frame header data associated with the nth network data packet based on the MAC frame header data of the nth network data packet; Setting the nth coded data to the nth TAN frame header data to obtain the nth TAN frame header data carrying the coded data; Combining the nth TAN frame header data carrying the encoded data and the nth network data packet to obtain an nth TAN data packet carrying the encoded data; N TAN data packets carrying the encoded data are sent to the second TAN device, so that the second TAN device determines the association information based on the MAC frame header data in the N TAN data packets carrying the encoded data and the N encoded data.

6. The method according to claim 1, characterized in that Determine the need for reorganization, including: When the reorganization confirmation identifier sent by the second TAN device is received, it is determined that the reorganization process needs to be performed.

7. The method according to claim 1, characterized in that Determine the need for reorganization, including: Acquire first information of a first device that sends the network data packet; When the first information indicates that the first device is not a TAN device, it is determined that the reassembly process needs to be performed.

8. The method according to claim 1, characterized in that Determine the need for restructuring, including: A second identifier stored at a designated location of the network data packet is obtained, and if the second identifier is a designated identifier, it is determined that the reassembly process needs to be performed.

9. The method according to claim 1, characterized in that The replacement data includes the TAN frame header data; The obtaining of TAN frame header data associated with the network data packet includes: Obtaining the MAC frame header data of the network data packet; The TAN frame header data is obtained based on a matching relationship between the MAC frame header data of the network data packet and the MAC frame header data in the association information.

10. A data processing method, characterized in that: The method is applied to a second TAN device, and includes: Receive a target data packet sent by a first TAN device; wherein the target data packet carries replacement data; the replacement data is used for the first TAN device to replace MAC frame header data in the received network data packet; Obtaining association information between the replacement data and the MAC frame header data; The target data packet is processed based on the association information to obtain the network data packet.

11. The method according to claim 10, characterized in that The target data packet includes target TAN frame header data carrying target coded data; the replacement data includes coded data associated with MAC frame header data; The processing of the target data packet based on the association information to obtain the network data packet includes: Determining target MAC frame header data based on a matching relationship between target coded data in the target TAN frame header data and the coded data in the association information; The target MAC frame header data and the MAC payload data in the target data packet are combined and processed to obtain the network data packet.

12. The method according to claim 11, characterized in that The obtaining of association information between the replacement data and the MAC frame header data includes: receiving N TAN data packets carrying coded data sent by the first TAN device; The association information is obtained based on the coded data in the N TAN data packets carrying the coded data and the MAC frame header data in the N TAN data packets carrying the coded data.

13. The method according to claim 12, characterized in that After obtaining the associated information, the method further includes: Send a confirmation reorganization identifier to the first TAN device.

14. The method according to claim 10, characterized in that The processing of the target data packet based on the association information includes: Acquire a first identifier from a first position of target TAN frame header data of the target data packet; If the first identifier indicates that the first TAN device has performed reassembly processing, the target data packet is processed based on the association information.

15. The method according to claim 10, characterized in that The processing of the target data packet based on the association information includes: Acquire second information of a second device connected to the second TAN device and used to receive the network data packet; In a case where the second information indicates that the second device is not a TAN device, the target data packet is processed based on the association information.

16. The method according to claim 10, characterized in that The replacement data includes TAN frame header data; and the processing of the target data packet based on the association information to obtain the network data packet includes: Obtaining TAN frame header data of the target data packet; Determining target MAC frame header data based on a matching relationship between the TAN frame header data of the target data packet and the TAN frame header data in the association information; The target MAC frame header data and the MAC payload data in the target data packet are combined to obtain the network data packet.

17. A first TAN device, characterized in that: The first TAN device includes a first transceiver module and a first processing module, wherein: The first processing module is configured to obtain association information between replacement data for replacing media access control MAC frame header data and the MAC frame header data; upon receiving a network data packet, obtain TAN frame header data associated with the network data packet; and upon determining that reassembly processing is required, perform the reassembly processing on the MAC payload data and the TAN frame header data in the network data packet based on the replacement data to obtain a target data packet; The first transceiver module is configured to send the target data packet to the second TAN device, so that the second TAN device obtains the association information and processes the target data packet based on the association information to obtain the network data packet.

18. A first TAN device, characterized in that: The first TAN device includes a first processor and a first memory; wherein the first memory stores a computer program; when the first processor executes the computer program, it can implement the data processing method according to any one of claims 1 to 9.

19. A second TAN device, characterized in that: The second TAN device includes a second transceiver module and a second processing module, wherein: The second transceiver module is configured to receive a target data packet sent by the first TAN device; wherein the target data packet carries replacement data; the replacement data is used by the first TAN device to replace MAC frame header data in the received network data packet; The second processing module is configured to obtain association information between the replacement data and the MAC frame header data; and process the target data packet based on the association information to obtain the network data packet.

20. A second TAN device, characterized in that: The second TAN device includes a second processor and a second memory; wherein the second memory stores a computer program; when the second processor executes the computer program, it can implement the data processing method according to any one of claims 10 to 16.

21. A data processing system, characterized in that: The system comprises the first TAN device according to any one of claims 17 to 18, and the second TAN device according to any one of claims 19 to 20.

22. The system according to claim 21, wherein: The system further includes a configuration management device; the first TAN device and / or the second TAN device sends configuration parameters to the configuration management device; The configuration management device is configured to determine association information based on the configuration parameters, and send the association information to the first TAN device and / or the second TAN device.

23. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can implement the data processing method according to any one of claims 1 to 9 or claims 10 to 16.

Citation Information

Patent Citations

  • Time clear network data packet transmission method and device, and storage medium

    CN115714991A

  • Network data packet transmission method and device, and storage medium

    CN115842853A