GPTP message processing method and device and readable storage medium

By updating the timestamp of gPTP message in the UPF network element, the timing disorder caused by the clock of 5G network and TSN network is solved, reducing the cost of hardware deployment and improving the synchronization accuracy of data transmission.

CN118944796APending Publication Date: 2024-11-12CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410986402.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The clock out-synchronization between the 5G network and the TSN network leads to disordered data transmission timing, increasing the deployment cost and complexity of the 5G-TSN network.

Method used

Determine whether the pending message is a gPTP message through the UPF network element, and update the first time stamp to the second time stamp based on the time difference coefficient, and send the updated gPTP message, avoiding the need to add hardware to the 5G core network to process gPTP messages. Reduces hardware deployment costs and improves the accuracy of time synchronization of data transmission.

Benefits of technology

There is no need to add hardware to the 5G core network to process gPTP messages, which reduces hardware deployment expenditure, reduces the deployment cost of 5G-TSN network, avoids data timing disorders, and improves the accuracy of time synchronization of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944796A_ABST
    Figure CN118944796A_ABST
Patent Text Reader

Abstract

The invention discloses a gPTP message processing method and device and a readable storage medium, relates to the technical field of communication, and is used for improving the time synchronization accuracy of data transmission. The method comprises the following steps: determining whether a message to be processed is a generalized clock synchronization protocol gPTP message; the to-be-processed message comprises a first timestamp when the sending device sends the to-be-processed message; under the condition that the to-be-processed message is the gPTP message, updating the first timestamp to a second timestamp based on the time difference coefficient; the updated gPTP message is obtained; the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending equipment; the second timestamp is the sum of the time difference coefficient and the first timestamp; and sending the updated gPTP message to a receiving device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a gPTP message processing method, device, and readable storage medium. Background Art

[0002] Time-sensitive networking (TSN) technology can be used to provide high reliability, deterministic transmission, and low latency services for end-to-end service flow transmission in industrial automation systems. For example, devices (such as robotic devices) in industrial automation systems can transmit data through a network that uses TSN technology (i.e., a TSN network).

[0003] Since 5G networks have the characteristics of enhanced mobile broadband, large-scale machine-type communications, ultra-high reliability and low-latency communications, no need for wiring, flexible deployment, and mobility support, TSN terminals can access TSN networks through 5G networks, but the clock of the 5G network is not synchronized with the clock of the TSN network. In this way, when using 5G networks to transmit data in TSN networks, the timing of the data will be disordered. Summary of the invention

[0004] The present application provides a gPTP message processing method, device and readable storage medium for improving the time synchronization accuracy of data transmission.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a gPTP message processing method is provided, the method comprising: determining whether a message to be processed is a generalized clock synchronization protocol gPTP message; the message to be processed comprises a first timestamp when a sending device sends the message to be processed; in the case that the message to be processed is a gPTP message, updating the first timestamp to a second timestamp based on a time difference coefficient; obtaining an updated gPTP message; the time difference coefficient is the time difference between a UPF clock and a sending device clock; the second timestamp is the sum of the time difference coefficient and the first timestamp; and sending the updated gPTP message to a receiving device.

[0007] Optionally, when the message to be processed belongs to downlink data, the sending device is a TSN network device and the receiving device is a TSN terminal; when the message to be processed belongs to uplink data, the sending device is a TSN terminal and the receiving device is a TSN network device.

[0008] Optionally, when the message to be processed belongs to downlink data, sending an updated gPTP message to the receiving device, including: sending an updated gPTP message to the receiving device based on the target gPTP session; one gPTP session corresponds to one receiving device.

[0009] Optionally, after determining that the message to be processed is a gPTP message, the method also includes: determining whether the message to be processed is a time synchronization message in the gPTP message; when the message to be processed is a time synchronization message, determining all gPTP sessions in the current UPF network element as target gPTP sessions; when the message to be processed is not a time synchronization message, determining a gPTP session that has a matching relationship with the message to be processed as the target gPTP session.

[0010] Optionally, when the message to be processed belongs to uplink data, determining whether the message to be processed is a generalized time synchronization protocol gPTP message includes: determining whether the message to be processed is an Ethernet session message; when the message to be processed is an Ethernet session message, determining whether the message to be processed is a gPTP message.

[0011] Optionally, the method also includes: receiving an Ethernet session establishment request message from a session management function SMF; the Ethernet session establishment request message includes preset rule information; the preset rule information includes at least one of the following: the type of packet data network, data packet detection rules, and service quality flow; sending an Ethernet session establishment request response message to the SMF, so that the SMF establishes an Ethernet session between the UPF and the TSN terminal; the Ethernet session establishment request response message includes the port address assigned by the UPF to the device-side time-sensitive network adapter DS-TT corresponding to the TSN terminal and the node information of the UPF.

[0012] Based on the technical solution provided by the present application, the UPF network element determines that when the message to be processed is a gPTP message, the first timestamp is updated to the second timestamp based on the time difference coefficient; the updated gPTP message is obtained, and the updated gPTP message is sent to the receiving device. In this way, there is no need to add corresponding hardware to the 5G core network to process gPTP messages, which reduces the corresponding hardware deployment expenditure and reduces the deployment cost of the 5G-TSN network. The UPF network element considers the time deviation between the 5G core network and the TSN network, processes the gPTP message, avoids data timing disorder, and improves the time synchronization accuracy of data transmission.

[0013] In a second aspect, a gPTP message processing device is provided, and the device includes: a determination unit, a processing unit, and a sending unit; the determination unit is used to determine whether the message to be processed is a generalized clock synchronization protocol gPTP message; the gPTP message includes a first timestamp when the sending device sends the gPTP message; the processing unit is used to update the first timestamp to a second timestamp based on a time difference coefficient when the message to be processed is a gPTP message; the updated gPTP message is obtained; the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp; the sending unit is used to send the updated gPTP message to the receiving device.

[0014] Optionally, when the message to be processed belongs to downlink data, the sending device is a TSN network device and the receiving device is a TSN terminal; when the message to be processed belongs to uplink data, the sending device is a TSN terminal and the receiving device is a TSN network device.

[0015] Optionally, the sending unit is specifically used to: send an updated gPTP message to a receiving device based on the target gPTP session; one gPTP session corresponds to one receiving device.

[0016] Optionally, after determining that the message to be processed is a gPTP message, the determination unit is also used to determine whether the message to be processed is a time synchronization message in the gPTP message; the determination unit is also used to, when the message to be processed is a time synchronization message, determine all gPTP sessions in the current UPF network element as target gPTP sessions; the determination unit is also used to, when the message to be processed is not a time synchronization message, determine a gPTP session that has a matching relationship with the message to be processed as the target gPTP session.

[0017] Optionally, when the message to be processed belongs to uplink data, the determination unit specifically includes: determining whether the message to be processed is an Ethernet session message; when the message to be processed is an Ethernet session message, determining whether the message to be processed is a gPTP message.

[0018] Optionally, the processing unit is also used to receive an Ethernet session establishment request message from a session management function SMF; the Ethernet session establishment request message includes preset rule information; the sending unit is also used to send an Ethernet session establishment request response message to the SMF, so that the SMF establishes an Ethernet session between the UPF and the TSN terminal; the Ethernet session establishment request response message includes the port address allocated by the UPF to the device-side time-sensitive network adapter DS-TT corresponding to the TSN terminal and the node information of the UPF.

[0019] Optionally, the preset rule information includes at least one of the following: type of packet data network, data packet detection rule, and service quality flow.

[0020] In a third aspect, a gPTP message processing device is provided, which can implement the functions performed by the gPTP message processing device in the above-mentioned aspects or possible designs, and the functions can be implemented through hardware, such as: in one possible design, the gPTP message processing device may include: a processor and a communication interface, and the processor can be used to support the gPTP message processing device to implement the functions involved in the above-mentioned first aspect or any possible design of the first aspect.

[0021] In another possible design, the gPTP message processing device may further include a memory for storing computer execution instructions and data necessary for the gPTP message processing device. When the gPTP message processing device is running, the processor executes the computer execution instructions stored in the memory so that the gPTP message processing device performs the above-mentioned first aspect or any possible gPTP message processing method of the first aspect.

[0022] In a fourth aspect, a computer-readable storage medium is provided, which may be a readable non-volatile storage medium, and which stores computer instructions or programs. When the computer-readable storage medium is run on a computer, the computer can execute the first aspect or any possible GPTP message processing method of the above aspects.

[0023] In the fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the gPTP message processing method of the first aspect or any possible design of the above aspects.

[0024] In a sixth aspect, an electronic device is provided, the electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the gPTP message processing method as described in the first aspect or any possible design of the first aspect.

[0025] In the seventh aspect, a chip system is provided, the chip system including a processor and a communication interface, and the chip system can be used to implement the functions performed by the gPTP message processing device in the above-mentioned first aspect or any possible design of the first aspect. In one possible design, the chip system also includes a memory, which is used to store program instructions and / or data. The chip system can be composed of a chip, or it can include a chip and other discrete devices, without limitation. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the structure of a UPF provided in an embodiment of the present application;

[0027] Figure 2 A schematic diagram of the structure of a gPTP message processing system provided in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the interaction between a UPF and a TSN network provided in an embodiment of the present application;

[0029] Figure 4 A schematic diagram of the structure of a gPTP message processing device provided in an embodiment of the present application;

[0030] Figure 5 A flowchart of a gPTP message processing method provided in an embodiment of the present application;

[0031] Figure 6 A flowchart of another gPTP message processing method provided in an embodiment of the present application;

[0032] Figure 7 A flowchart of another gPTP message processing method provided in an embodiment of the present application;

[0033] Figure 8 A schematic diagram of the structure of another gPTP message processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0036] It should also be understood that the term “comprising” indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or components.

[0037] The technical terms involved in this application are explained below.

[0038] 1. Time-sensitive networking (TSN) technology: It can be used to provide high reliability, deterministic transmission, and low latency services for the end-to-end transmission of service flows in industrial automation systems. For example, devices in industrial automation systems (such as robotic devices) can transmit TSN service flows through a network that uses TSN technology (i.e., a TSN network). However, in some scenarios, devices in industrial automation systems need to send TSN service flows to other devices outside the industrial automation system so that external devices can further process the TSN service flows.

[0039] 2. User Plane Function (UPF): responsible for the diversion of terminal user data traffic of the private network, traffic statistics, service message caching and service quality (QoS) control.

[0040] Figure 1 This is a schematic diagram of the structure of a UPF network element provided by this application. Figure 1 As shown in the figure, the UPF network element mainly includes: Control Manager (CM), Remote Dictionary Server (Redis), Operation Administration and Maintenance (OAM) and Traffic Manager (TM). The following are the descriptions of each part:

[0041] CM: Interacts with the Session Management Function (SMF) through the N4 interface via Packet Forwarding Control Protocol (PFCP) signaling to implement node management, session management and other functions, and publishes session information to Redis.

[0042] Redis: Provides publishing and subscription channels for session information and statistical information.

[0043] OAM: implements configuration management, service registration, system status monitoring, and interface display functions for signaling and statistical information. It supports the configuration of the binding relationship between a single network slice selection assistance information (S-NSSAI) / data network name (DNN) and each sub-interface, and supports the detailed configuration of DNN during static configuration startup.

[0044] TM: Subscribes to session information and creates table entries, matches the first data packet of the session with the Packet Detection Rule (PDR), reports statistical information, manages tens of millions of fast forwarding entries, receives data traffic from the N3, N6, and N9 interfaces, and efficiently forwards traffic based on the Forwarding Action Rule (FAR), Buffering Action Rule (BAR), QoS Enforcement Rule (QER), Usage Reporting Rule (URR), and other rules, and performs statistics and rate limits on the data on the logical interface.

[0045] TSN technology can provide the functional advantages of ultra-low latency, jitter and reliability, and can meet the needs of real-time applications. By implementing the network-side time-sensitive network adapter (NW-TT) function on UPF, the 5G private network can be integrated with the TSN network on the enterprise side. TSN terminal devices can access the TSN network through the 5G private network, solving the inherent defects in physical wiring. At the same time, UPF's Qos technology can provide reliability assurance for the traffic of the TSN network.

[0046] Traditional TSN networks have inherent defects in device mobility management, especially in physical cabling. For industrial application scenarios with a large coverage area, the cabling cost, subsequent maintenance cost, and capacity expansion cost are all very high.

[0047] TSN technology can be used to provide high reliability, deterministic transmission, and low latency services for the transmission of end-to-end business flows in industrial automation systems. For example, devices in industrial automation systems (such as robotic devices) can transmit data through a network that uses TSN technology (i.e., a TSN network).

[0048] Since 5G networks have the characteristics of enhanced mobile broadband, large-scale machine-type communications, ultra-high reliability and low-latency communications, no need for wiring, flexible deployment, and mobility support, TSN terminals can access TSN networks through 5G networks, but this requires the deployment of corresponding hardware in the 5G network, which is costly. In addition, the clock of the 5G network is not synchronized with the clock of the TSN network. Therefore, when using the 5G network to transmit data in the TSN network, the timing of the data will be disordered.

[0049] In view of this, an embodiment of the present application provides a gPTP message processing method, which includes: determining whether the message to be processed is a generalized clock synchronization protocol gPTP message; the message to be processed includes a first timestamp when the sending device sends the message to be processed; when the message to be processed is a gPTP message, updating the first timestamp to a second timestamp based on a time difference coefficient; obtaining an updated gPTP message; the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp; and sending the updated gPTP message to the receiving device.

[0050] The method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0051] It should be noted that the network system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of network systems and the emergence of other network systems, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0052] Figure 2 The structure diagram of a gPTP message processing system 10 provided in an embodiment of the present application is shown. Figure 2 As shown, the gPTP message processing system 10 may include a TSN terminal 11, a bridging network 12, and a TSN network 13.

[0053] The TSN terminal 11, the bridge network 12, and the TSN network 13 are connected to each other. For example, the connection may be made wirelessly or by wire.

[0054] Among them, the TSN terminal 11 involved in the embodiment of the present application is used to generate and send a service flow, which can be a normal service flow (such as a voice service flow) or a TSN service flow (such as an alarm information service flow generated by a sensor). For example, the TSN terminal 11 can be any terminal in the TSN system, a robot device, a sensor, an automated guided vehicle (AGV), a computer device or a server, etc., wherein the computer device includes but is not limited to a mobile phone, a tablet computer, a desktop computer, a laptop computer, a vehicle terminal, a handheld terminal, an augmented reality (AR) device, a virtual reality (VR) device, etc., and the present disclosure embodiment does not impose any special restrictions on the specific form of the TSN terminal 11. It can interact with the user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction or a handwriting device. In the embodiment of the present application, the specific technology and specific device form adopted by the TSN terminal 11 are not limited.

[0055] The bridging network 12 involved in the embodiment of the present application can be used to connect the TSN network 13 with the TSN terminal 11. For example, the bridging network 12 may include a device-side TSN translator (DS-TT), a user equipment (UE), an access and mobility management function (AMF), a session management function (SMF), a unified data management (UDM), a policy control function (PCF), a network exposure function (NEF), a TSN application function (TSN AF), and a user plane function (UPF).

[0056] The NW-TT function is implemented by the UPF N6 interface, which supports one NW-TT port to connect to one TSN network. The TSN bridge is implemented through the characteristics of the universal physical network card. Figure 3 As shown, Ethernet data interaction can reuse the existing N6 data transmission and reception and downlink data session matching of UPF.

[0057] It should be noted that the TSN clock synchronization message is carried on the gPTP message, and the subsequent processing of the gPTP message is actually the processing of the clock synchronization message.

[0058] Figure 2 This is just an exemplary framework diagram. Figure 2 The names of the individual devices included in the Figure 2 In addition to the functional nodes shown, other nodes may also be included, which is not limited in the embodiments of the present application.

[0059] When implementing it specifically, Figure 2 Each device in the Figure 4 The structure shown, or including Figure 4 Parts shown. Figure 4 The present invention provides a schematic diagram of a GPTP message processing device 200. The GPTP message processing device 200 may be a network device, or the GPTP message processing device 200 may be a chip or a system on a chip in a network device. Figure 4 As shown, the GPTP message processing device 200 includes a processor 201 , a communication interface 202 and a communication line 203 .

[0060] Furthermore, the GPTP message processing device 200 may further include a memory 204. The processor 201, the memory 204 and the communication interface 202 may be connected via a communication line 203.

[0061] The processor 201 is a CPU, a general processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 201 may also be other devices with processing functions, such as circuits, devices, or software modules, without limitation.

[0062] The communication interface 202 is used to communicate with other devices or other communication networks. The communication interface 202 can be a module, a circuit, a communication interface or any device capable of implementing communication.

[0063] The communication line 203 is used to transmit information between the components included in the GPTP message processing device 200.

[0064] The memory 204 is used to store instructions, where the instructions may be computer programs.

[0065] The memory 204 may be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.

[0066] It should be noted that the memory 204 can exist independently of the processor 201, or can be integrated with the processor 201. The memory 204 can be used to store instructions or program codes or some data, etc. The memory 204 can be located in the GPTP message processing device 200, or can be located outside the GPTP message processing device 200, without limitation. The processor 201 is used to execute the instructions stored in the memory 204 to implement the GPTP message processing method provided in the following embodiments of the present application.

[0067] In one example, the processor 201 may include one or more CPUs, for example, Figure 4 CPU0 and CPU1 in.

[0068] As an optional implementation, the GPTP message processing device 200 includes multiple processors, for example, Figure 4 In addition to the processor 201, a processor 205 may also be included.

[0069] It should be pointed out that Figure 4 The composition shown in the Figure 2 The limitations of each device in Figure 4 In addition to the parts shown, Figure 2 The individual devices in the Figure 4 More or fewer components, or combinations of certain components, or different arrangements of components.

[0070] In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.

[0071] In addition, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiments of the present application is only an example, and other names can also be used in the specific implementation without limitation.

[0072] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0073] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0074] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0075] Combine the following Figure 2 The gPTP message processing system shown describes the gPTP message processing method provided in the embodiment of the present application.

[0076] Figure 5 A gPTP message processing method is provided for an embodiment of the present application, which is applied to UPF network elements and can also be applied to devices in UPF network elements, such as chips.

[0077] The present application embodiment is described by taking the application to the UPF network element as an example. Figure 5 As shown, the method includes the following S301-S303:

[0078] S301. Determine whether the message to be processed is a generalized time synchronization protocol gPTP message.

[0079] Among them, the gPTP message includes the first timestamp when the sending device sends the gPTP message. The first timestamp refers to the timestamp recorded based on the clock of the sending device. The clock of the sending device and the clock of the UPF (that is, the clock of the 5G core network) are different clocks, and there is a time deviation between the clock of the sending device and the clock of the UPF. For example, at the same time, the clock of the sending device can be five o'clock, and the clock of the UPF can be five o'clock plus 100 nanoseconds.

[0080] The sending device may be a TSN terminal or a TSN network device. For example, when the message to be processed is downlink data, the sending device is a TSN network device and the receiving device is a TSN terminal; when the message to be processed is uplink data, the sending device is a TSN terminal and the receiving device is a TSN network device.

[0081] As a possible implementation method, the UPF network element can determine the protocol identifier of the message to be processed, and when the protocol identifier of the message to be processed is the target identifier, determine that the message to be processed is a gPTP message.

[0082] In one example, if the identifier of the gPTP message is ab, the UPF network element can determine that the message to be processed is a gPTP message when the protocol identifier of the message to be processed is ab. If the protocol identifier of the message to be processed is not ab, it is determined that the message to be processed is not a gPTP message.

[0083] As another possible implementation, the UPF network element may determine the corresponding message structure of the message to be processed, and when the message structure corresponding to the message to be processed is the target message structure, determine that the message to be processed is a gPTP message. When the message structure corresponding to the message to be processed is not the target message structure, determine that the message to be processed is not a gPTP message.

[0084] In one example, the target message structure may include: a message header, a command / response field, a data field, and a checksum.

[0085] The message header contains key information such as the message type, length, and identifier, which is used to indicate the nature and content of the message. The command / response field is used to identify whether the message is a command message or a response message, so that the receiving device can perform the corresponding operation or send a response. The data field includes the actual data content, such as configuration parameters, status information, control instructions, etc. The checksum is used to ensure the integrity and correctness of the message.

[0086] In some embodiments, the UPF network element may also use other methods to determine whether the message to be processed is a gPTP message, which is not limited here.

[0087] During the downlink data processing, the UPF network element can receive the Ethernet message based on the NW-TT port, and parse the Ethernet message to obtain the message to be processed.

[0088] During the uplink data processing, the UPF network element can receive the uplink message and perform session matching on the uplink message to obtain the matching result of the uplink message. When the matching result of the uplink message is an Ethernet session, the uplink message is parsed to obtain a message to be processed.

[0089] In some embodiments, when the matching result of the uplink message is not an Ethernet session, the UPF network element can directly perform a packet forwarding process on the uplink message.

[0090] It should be noted that the matching result may include Ethernet sessions and IP sessions.

[0091] In some embodiments, when the message to be processed is not a gPTP message, the UPF network element can directly perform packet forwarding processing on the uplink message.

[0092] S302: When the message to be processed is a gPTP message, update the first timestamp to a second timestamp based on the time difference coefficient to obtain an updated gPTP message.

[0093] Among them, the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp.

[0094] As a possible implementation method, the UPF network element can determine the second timestamp by summing the first timestamps based on the time difference coefficient, delete the first timestamp, and then add the second timestamp to the gPTP message to obtain an updated gPTP message.

[0095] In some embodiments, after determining the second timestamp by summing the first timestamps based on the time difference coefficient, the UPF network element may add the first timestamp, the second timestamp and the time difference coefficient to the gPTP message to obtain an updated gPTP message.

[0096] S303. Send an updated gPTP message to the receiving device.

[0097] The receiving device is a TSN terminal or a TSN network device. For example, when the message to be processed is downlink data, the receiving device is a TSN terminal; when the message to be processed is uplink data, the receiving device is a TSN network device.

[0098] As a possible implementation method, when the receiving device is a TSN terminal, the UPF network element can perform a packet forwarding process based on the DS-TT port to send an updated gPTP message to the receiving device.

[0099] As another possible implementation method, when the receiving device is a TSN network device, the UPF network element can perform a packet forwarding process based on the N6 interface of the UPF network element to send an updated gPTP message to the receiving device.

[0100] Based on the technical solution provided by the present application, the UPF network element determines that when the message to be processed is a gPTP message, the first timestamp is updated to the second timestamp based on the time difference coefficient; the updated gPTP message is obtained, and the updated gPTP message is sent to the receiving device. In this way, there is no need to add corresponding hardware to the 5G core network to process gPTP messages, which reduces the corresponding hardware deployment expenditure and reduces the deployment cost of the 5G-TSN network. The UPF network element considers the time deviation between the 5G core network and the TSN network, processes the gPTP message, avoids data timing disorder, and improves the time synchronization accuracy of data transmission.

[0101] In a possible implementation example, in order to enable the message to be processed to be downlink data, S303 of the present application may include the following S401.

[0102] S401. Send an updated gPTP message to a receiving device based on a target gPTP session.

[0103] Among them, one gPTP session corresponds to one receiving device.

[0104] As a possible implementation method, the UPF network element can determine whether the message to be processed is a time synchronization message in the gPTP message; when the message to be processed is a time synchronization message, all gPTP sessions in the current UPF network element are determined as target gPTP sessions; when the message to be processed is not a time synchronization message, a gPTP session that has a matching relationship with the message to be processed is determined as the target gPTP session, and further, an updated gPTP message is sent to the receiving device based on the target gPTP session.

[0105] It should be noted that gPTP messages include time synchronization messages and general messages. General messages are messages that include business data.

[0106] In one example, the UPF network element can determine the protocol number of the gPTP message, and when the protocol number of the gPTP message is the first protocol number, determine the gPTP message as a time synchronization message, and when the protocol number of the gPTP message is the second protocol number, determine the gPTP message as a general message.

[0107] The first protocol number is a pre-agreed protocol number of a time synchronization message, and the second protocol number is a pre-agreed protocol number of a general message.

[0108] In a possible embodiment, when the message to be processed belongs to uplink data, in order to determine whether the message to be processed is a generalized clock synchronization protocol gPTP message, the gPTP message processing method of the present application may also include the following S501-S502.

[0109] S501: Determine whether the message to be processed is an Ethernet session message.

[0110] The message to be processed may be an Ethernet session message or an IP session message.

[0111] As a possible implementation manner, the UPF network element may determine the data packet format of the message to be processed, and determine whether the message to be processed is an Ethernet session message based on the data packet format of the message to be processed.

[0112] In one example, the UPF network element may determine that the message to be processed is an Ethernet session message when the data packet format of the message to be processed includes information such as the source MAC address, the destination MAC address, and the type / length field.

[0113] The UPF network element may determine that the message to be processed is an IP session message when the data packet format of the message to be processed includes information such as an IP header, a source IP address, and a destination IP address.

[0114] In some embodiments, when the message to be processed is not an Ethernet session message, the UPF network element can directly send the message to be processed to the receiving device based on the packet forwarding process.

[0115] S502: When the message to be processed is an Ethernet session message, determine whether the message to be processed is a generalized time synchronization protocol gPTP message.

[0116] The specific process of this step may refer to the above S301 and will not be described in detail here.

[0117] In a possible embodiment, in order to establish an Ethernet session, the gPTP message processing method of the present application may also include the following S601-S602.

[0118] S601. Receive an Ethernet session establishment request message from a session management function SMF.

[0119] The Ethernet session establishment request message (also referred to as N4 session establishment request) includes preset rule information. The preset rule information includes at least one of the following: a packet data network type (PDN Type IE), a data packet detection rule (PDR IE), and a quality of service flow (QoS Flow).

[0120] The Ethernet session establishment request message is sent by the SMF when the SMF receives the first Ethernet session establishment request message from the TSN terminal. The first Ethernet session request message includes the MAC address of the DS-TT port.

[0121] It should be noted that the PDR IE is used to match Ethernet data packets, for example, it may include Ethernet Packet Filter(s) IE, Ethernet PDUSession Information IE, and definition and usage reporting rules (URR IE) (including Reporting Triggers IE and Ethernet Inactivity Timer IE).

[0122] The URR IE is used to report the source MAC address used by the UE in the uplink. For example, it may include reporting trigger information (Reporting Triggers IE) and Ethernet inactivity time information (Ethernet Inactivity Timer IE).

[0123] It should be noted that after receiving the Ethernet session establishment request, the UPF network element can establish an Ethernet type session for the TSN terminal, save the preset rule information sent by the SMF and the port number allocated to the TSN terminal DS-TT.

[0124] S602. Send an Ethernet session establishment request response message to the SMF, so that the SMF establishes an Ethernet session between the UPF and the TSN terminal.

[0125] Correspondingly, after receiving the Ethernet session establishment response, the SMF saves the DS-TT port number assigned by the UPF network element and sends the first Ethernet session establishment response to the TSN terminal.

[0126] A possible embodiment is as follows Figure 6 As shown, in the case of processing downlink data, the gPTP message processing method of the present application may also include the following S701-S707.

[0127] S701. Receive Ethernet message.

[0128] As a possible implementation manner, the UPF network element can receive Ethernet messages through the user NW-TT port.

[0129] S702: Determine whether the Ethernet message is a gPTP message.

[0130] When the Ethernet message is a gPTP message, the following S703 is executed.

[0131] When the Ethernet message is not a gPTP message, execute the following S707.

[0132] S703: Perform protocol processing on the gPTP message.

[0133] As a possible implementation method, the UPF network element can update the first timestamp in the gPTP message to the second timestamp based on the time difference coefficient to obtain an updated gPTP message.

[0134] It should be noted that the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp.

[0135] In some embodiments, before performing protocol processing on the gPTP message, the UPF network element may parse the gPTP payload, and after parsing the gPTP payload, determine whether the gPTP message is a gPTP event message, and perform protocol processing on the gPTP message if the gPTP message is a gPTP event message.

[0136] S704: Determine whether the gPTP message is a time synchronization message.

[0137] The specific content of this step may refer to the above S502 and will not be elaborated here.

[0138] When the gPTP message is a time synchronization message, execute the following S705.

[0139] When the gPTP message is not a time synchronization message, execute the following S706.

[0140] S705. Send a gPTP message to all gPTP sessions in the current UPF network element.

[0141] S706. Send a gPTP message to a gPTP session that matches the gPTP message.

[0142] S707: Packet forwarding processing.

[0143] A possible embodiment is as follows Figure 7As shown, in the case of processing uplink data, the gPTP message processing method of the present application may also include the following S801-S804.

[0144] S801. Determine whether the message to be processed is an Ethernet session message.

[0145] The specific content of this step may refer to the above S501 and will not be described in detail here.

[0146] When the message to be processed is an Ethernet session message, the following S802 is executed.

[0147] When the message to be processed is not an Ethernet session message, the following S804 is executed.

[0148] S802: Determine whether the message to be processed is a gPTP message.

[0149] The specific content of this step may refer to the above S301 and will not be elaborated here.

[0150] When the message to be processed is a gPTP message, execute the following S803.

[0151] When the message to be processed is not a gPTP message, execute the following S804.

[0152] S803: Perform protocol processing on the gPTP message.

[0153] The specific description of this step may refer to the content of S703 above, which will not be repeated here.

[0154] S804: Packet forwarding processing.

[0155] The various solutions in the above embodiments of the present application can be combined without contradiction.

[0156] The embodiment of the present application can divide the GPTP message processing device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0157] In the case of dividing each functional module into corresponding functional modules, Figure 8A structural schematic diagram of a gPTP message processing device 900 is shown. The gPTP message processing device can be a gPTP message processing device or a chip applied to a gPTP message processing device. The gPTP message processing device 900 can be used to execute the functions of the gPTP message processing device involved in the above-mentioned embodiments. Figure 8 The gPTP message processing device 900 shown may include: a determination unit 901, a processing unit 902, and a sending unit 903; the determination unit 901 is used to determine whether the message to be processed is a generalized clock synchronization protocol gPTP message; the gPTP message includes a first timestamp when the sending device sends the gPTP message; the processing unit 902 is used to update the first timestamp to a second timestamp based on a time difference coefficient when the message to be processed is a gPTP message; the updated gPTP message is obtained; the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp; the sending unit 903 is used to send the updated gPTP message to the receiving device.

[0158] Optionally, when the message to be processed belongs to downlink data, the sending device is a TSN network device and the receiving device is a TSN terminal; when the message to be processed belongs to uplink data, the sending device is a TSN terminal and the receiving device is a TSN network device.

[0159] Optionally, the sending unit 903 is specifically used to: send an updated gPTP message to a receiving device based on the target gPTP session; one gPTP session corresponds to one receiving device.

[0160] Optionally, after determining that the message to be processed is a gPTP message, the determination unit 901 is also used to determine whether the message to be processed is a time synchronization message in the gPTP message; the determination unit 901 is also used to, when the message to be processed is a time synchronization message, determine all gPTP sessions in the current UPF network element as target gPTP sessions; the determination unit 901 is also used to, when the message to be processed is not a time synchronization message, determine a gPTP session that has a matching relationship with the message to be processed as the target gPTP session.

[0161] Optionally, when the message to be processed belongs to uplink data, the determination unit 901 specifically includes: determining whether the message to be processed is an Ethernet session message; when the message to be processed is an Ethernet session message, determining whether the message to be processed is a gPTP message.

[0162] Optionally, the processing unit 902 is further used to receive an Ethernet session establishment request message from the session management function SMF; the Ethernet session establishment request message includes preset rule information; the preset rule information includes at least one of the following: the type of packet data network, data packet detection rules, and service quality flow; the sending unit 903 is also used to send an Ethernet session establishment request response message to the SMF, so that the SMF establishes an Ethernet session between the UPF and the TSN terminal; the Ethernet session establishment request response message includes the port address allocated by the UPF to the device-side time-sensitive network adapter DS-TT corresponding to the TSN terminal and the node information of the UPF.

[0163] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by a computer program to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the gPTP message processing device (including a data transmitter and / or a data receiver) of any of the above embodiments, such as a hard disk or memory of the gPTP message processing device. The above computer-readable storage medium can also be an external storage device of the above terminal device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above terminal device. Further, the above computer-readable storage medium can also include both the internal storage unit of the above GPTP message processing device and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above GPTP message processing device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0164] It should be noted that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

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

[0166] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

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

[0168] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

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

[0170] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.

[0171] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A gPTP message processing method, characterized in that: Applied to a user plane function network element UPF, the method comprises: Determine whether the message to be processed is a generalized clock synchronization protocol gPTP message; the message to be processed includes a first timestamp when the sending device sends the message to be processed; In the case where the message to be processed is the gPTP message, the first timestamp is updated to a second timestamp based on the time difference coefficient; an updated gPTP message is obtained; the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp; Send the updated gPTP message to the receiving device.

2. The method according to claim 1, characterized in that In the case where the message to be processed belongs to downlink data, the sending device is a TSN network device, and the receiving device is a TSN terminal; In the case where the message to be processed belongs to uplink data, the sending device is the TSN terminal, and the receiving device is the TSN network device.

3. The method according to claim 1, characterized in that: In a case where the message to be processed belongs to downlink data, sending the updated gPTP message to the receiving device includes: The updated gPTP message is sent to the receiving device based on the target gPTP session; one gPTP session corresponds to one receiving device.

4. The method according to claim 3, characterized in that After determining that the message to be processed is the gPTP message, the method further includes: Determine whether the message to be processed is a time synchronization message in the gPTP message; In a case where the message to be processed is the time synchronization message, all gPTP sessions in the current UPF network element are determined as the target gPTP sessions; In a case where the message to be processed is not the time synchronization message, a gPTP session that has a matching relationship with the message to be processed is determined as the target gPTP session.

5. The method according to any one of claims 1 to 4, characterized in that In a case where the message to be processed is uplink data, determining whether the message to be processed is a generalized time synchronization protocol gPTP message includes: Determining whether the message to be processed is an Ethernet session message; In a case where the message to be processed is the Ethernet session message, it is determined whether the message to be processed is the gPTP message.

6. The method according to claim 5, characterized in that The method further comprises: Receiving an Ethernet session establishment request message from a session management function SMF; the Ethernet session establishment request message includes preset rule information; the preset rule information includes at least one of the following: type of packet data network, data packet detection rule, and service quality flow; An Ethernet session establishment request response message is sent to the SMF so that the SMF establishes an Ethernet session between the UPF and the TSN terminal; the Ethernet session establishment request response message includes the port address allocated by the UPF to the device-side time-sensitive network adapter DS-TT corresponding to the TSN terminal and the node information of the UPF.

7. A gPTP message processing system, characterized in that: Including UPF, sending equipment and receiving equipment; The sending device is used to send a message to be processed to the UPF; the message to be processed includes a first timestamp when the sending device sends the message to be processed; The UPF is used to determine whether the message to be processed is a generalized clock synchronization protocol gPTP message, and if the message to be processed is the gPTP message, update the first timestamp to a second timestamp based on the time difference coefficient; Get the updated gPTP message; The time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; The second timestamp is the sum of the time difference coefficient and the first timestamp; The UPF is also used to send the updated gPTP message to the receiving device.

8. A gPTP message processing device, characterized in that: The device comprises: a determination unit, a processing unit, and a sending unit; The determining unit is used to determine whether the message to be processed is a generalized clock synchronization protocol gPTP message; the gPTP message includes a first timestamp when the sending device sends the gPTP message; The processing unit is used for updating the first timestamp to a second timestamp based on a time difference coefficient when the message to be processed is the gPTP message; obtaining an updated gPTP message; the time difference coefficient is the time difference between the clock of the UPF and the clock of the sending device; the second timestamp is the sum of the time difference coefficient and the first timestamp; The sending unit is used to send the updated gPTP message to the receiving device.

9. A computer-readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 6 is implemented.

10. A gPTP message processing device, characterized in that: Includes: Processor, memory and communication interface; wherein the communication interface is used for the gPTP message processing device to communicate with other devices or networks; The memory is used to store one or more programs, which include computer-executable instructions. When the gPTP message processing device is running, the processor executes the computer-executable instructions stored in the memory so that the gPTP message processing device performs the method described in any one of claims 1-6.

Citation Information

Cited By

  • Data transmission system, method, device, medium and product

    CN119342118A