Scheduling method, device, equipment and medium based on 5G intrinsic deterministic private network
By setting a time reference source in the 5G endogenous deterministic private network to generate synchronization packets, and local time correction is carried out in combination with the timestamp calculation error ratio, the problem that traditional networks cannot meet the low latency and high certainty requirements of industrial production is solved, and high-precision time synchronization and network stability are achieved.
Patent Information
- Application Number
- CN202411508316.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2044-10-28
AI Technical Summary
Traditional networks cannot meet the needs of medium and high bandwidth access, multi-terminal connection, low-latency transmission, etc. in industrial production, especially in harsh environments, high security risks, and traditional wireless networks are costly and poor mobility, which cannot meet the requirements of delay and jitter. The existing certainty guarantee solutions are large and costly.
By setting the converter of user plane function in the 5G endogenous deterministic private network as the time reference source, synchronous messages are generated, and synchronization messages carrying inlet timestamps are periodically sent using the time wheel to periodically send synchronization messages carrying inlet timestamps, combining the exit timestamp of the user terminal to determine the intermediate residence time, calculate the error ratio, and perform local time correction to achieve time synchronization.
Improve time synchronization accuracy, enhance network timeliness, improve reliability and stability, simplify time synchronization process, has strong compatibility and scalability, and is suitable for different types of networks and user terminals.
Smart Images

Figure CN119316924B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a scheduling method, apparatus, equipment and medium based on a 5G intrinsic deterministic private network. Background Art
[0002] Under the sweep of the Fourth Industrial Revolution, new-generation communication technologies, represented by 5G, TSN, and the Internet of Things, are gradually being integrated with the Industrial Internet to achieve intelligent, ubiquitous connectivity between humans, machines, and objects. The intelligent transformation and upgrade of industrial production has led to the emergence of typical application scenarios such as high-bandwidth access, multi-terminal connectivity, and low-latency transmission. In industries such as steel, metallurgy, and mining, production areas face harsh environmental conditions such as noise, air quality, temperature, and humidity, leading to high safety risks and difficulties in recruiting and employing workers. Remote control and intelligent applications are being deployed to replace manual labor, requiring network equipment for communication support. However, traditional wired equipment carries high communication costs, significantly restricting flexible production. Wi-Fi is susceptible to interference and suffers from poor mobility. Traditional 4G and 5G wireless networks cannot meet requirements for latency and jitter. Faced with the ever-emerging life scenarios such as industrial production and manufacturing, industrial machine communications, Internet of Vehicles, and remote surgery, the "best-effort" traditional network can no longer meet the needs of latency, jitter, etc. At present, deterministic guarantee solutions are mostly solved through wireless coverage and dual-transmit selective reception. The investment in high-density wireless coverage is large and the cost of deterministic terminals is high. In addition, to solve high determinism through TSN networks, the enterprise production network needs to be significantly transformed, and the investment cost is too high. Summary of the Invention
[0003] The present invention proposes a scheduling method, device, equipment and medium based on 5G intrinsic deterministic private network, aiming to solve one of the technical problems in the related technology at least to a certain extent. The embodiments of the present invention can efficiently and conveniently realize scheduling based on 5G intrinsic deterministic private network.
[0004] On the one hand, an embodiment of the present invention provides a scheduling method based on a 5G intrinsic deterministic private network, including:
[0005] In response to a control instruction of the control plane, a converter of the user plane function is set as a time reference source, and a synchronization message is generated through the converter; the synchronization message includes a first message and a second message;
[0006] Using the time wheel to periodically send out synchronization messages through the converter; the second message carries the entry timestamp;
[0007] Forwarding the synchronization message sent by the converter to the user terminal through the base station;
[0008] Determine the intermediate residence time based on the ingress timestamp combined with the egress timestamp of the user terminal;
[0009] determining an error ratio between the converter and the user terminal based on a transmission time of the first message at the converter and the user terminal;
[0010] The delay parameter is obtained based on the intermediate residence time and the error ratio, and the local time of the user terminal is corrected using the delay parameter to complete the time synchronization of the time-sensitive network.
[0011] Optionally, the method further comprises the following steps:
[0012] When the synchronization message leaves the port of the converter, the local timestamp is obtained as the entry timestamp;
[0013] The ingress timestamp is added to the destination field of the second message.
[0014] Optionally, the method further comprises the following steps:
[0015] Establishing a Layer 2 session with the user plane function through the user terminal;
[0016] Among them, the Layer 2 session is recorded in the user plane function.
[0017] Optionally, the user plane function is provided with a layer 2 session established by the user terminal; forwarding the synchronization message sent by the converter to the user terminal via the base station includes the following steps:
[0018] Based on the content of the Layer 2 session, the synchronization message sent by the converter is encapsulated through the user function plane and then sent to the base station;
[0019] The encapsulated synchronization message is decapsulated by the base station and then forwarded to the user terminal.
[0020] Optionally, determining the intermediate residence time based on the ingress timestamp combined with the egress timestamp of the user terminal comprises the following steps:
[0021] When the user terminal receives the second message, the local timestamp of the user terminal receiving the data packet is used as the egress timestamp;
[0022] The intermediate residence time is obtained based on the difference between the egress timestamp and the ingress timestamp of the user terminal.
[0023] Optionally, the transmission time includes a sending time and a receiving time; and determining an error ratio between the converter and the user terminal based on the transmission time of the first message in the converter and the user terminal comprises the following steps:
[0024] Obtaining a first time difference based on a difference between two sending times of the first message at the converter at intervals of a preset period;
[0025] Obtaining a second time difference based on a difference between two reception times of the first message at the user terminal at intervals of a preset period;
[0026] The error ratio between the converter and the user terminal is obtained according to the ratio of the second time difference to the first time difference.
[0027] Optionally, obtaining a delay parameter based on the intermediate dwell time and the error ratio includes the following steps:
[0028] The intermediate dwell time is taken as the delay difference; the error ratio is taken as the frequency ratio;
[0029] The delay difference is applied to the frequency ratio, and the delay parameter is obtained by multiplying the frequency ratio and the delay difference.
[0030] On the other hand, an embodiment of the present invention provides a scheduling device based on a 5G intrinsic deterministic private network, including:
[0031] The first module is configured to, in response to a control instruction of the control plane, set a converter of the user plane function as a time reference source, and generate a synchronization message through the converter; the synchronization message includes a first message and a second message;
[0032] The second module is used to periodically send a synchronization message through the converter using a time wheel; the second message carries an entry timestamp;
[0033] The third module is used to forward the synchronization message sent by the converter to the user terminal through the base station;
[0034] A fourth module is configured to determine an intermediate residence time based on an ingress timestamp combined with an egress timestamp of a user terminal;
[0035] A fifth module, configured to determine an error ratio between the converter and the user terminal based on a transmission time of the first message between the converter and the user terminal;
[0036] The sixth module is used to obtain a delay parameter based on the intermediate residence time and the error ratio, and to correct the local time of the user terminal using the delay parameter to complete the time synchronization of the time-sensitive network.
[0037] Optionally, the device further comprises:
[0038] The seventh module is used to obtain a local timestamp as an entry timestamp when the synchronization message leaves the port of the converter;
[0039] The eighth module is used to add the entry timestamp to the target field of the second message.
[0040] Optionally, the device further comprises:
[0041] A ninth module is configured to establish a layer 2 session between the user terminal and the user plane function through the user terminal;
[0042] Among them, the Layer 2 session is recorded in the user plane function.
[0043] On the other hand, an embodiment of the present invention provides an electronic device, including: a processor and a memory; the memory is used to store programs; the processor executes the program to implement the above-mentioned scheduling method based on the 5G intrinsic deterministic private network.
[0044] On the other hand, an embodiment of the present invention provides a computer storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the above-mentioned scheduling method based on the 5G intrinsic deterministic private network.
[0045] The embodiment of the present invention responds to a control instruction of the control plane, sets the converter of the user plane function as the time reference source, and generates a synchronization message through the converter; the synchronization message includes a first message and a second message; the synchronization message is periodically sent through the converter using a time wheel; the second message carries an entry timestamp; the synchronization message sent by the converter is forwarded to the user terminal through the base station; the intermediate residence time is determined based on the entry timestamp combined with the exit timestamp of the user terminal; the error ratio between the converter and the user terminal is determined based on the transmission time of the first message between the converter and the user terminal; the delay parameter is obtained based on the intermediate residence time and the error ratio, and the local time of the user terminal is corrected by the delay parameter to complete the time synchronization of the time-sensitive network. The present invention has the following beneficial effects:
[0046] Improving time synchronization accuracy: By setting the user plane converter as the time reference source and using a high-precision time wheel to periodically send synchronization messages, each node in the network (including user terminals) can receive accurate time information. By using the ingress and egress timestamps to determine the intermediate dwell time, and the error ratio between the converter and the user terminal based on the transmission time of the first message, the delay parameters can be further accurately calculated, thereby improving time synchronization accuracy.
[0047] Enhanced network timeliness: This invention ensures that all nodes in the network maintain a high degree of time consistency by monitoring and correcting the local time of user terminals in real time. This is crucial for time-sensitive networks that require high-precision time synchronization, such as real-time control systems, and effectively avoids various problems and risks caused by time asynchrony.
[0048] Improved network reliability and stability: By periodically sending synchronization messages and monitoring the time synchronization status of the network in real time, potential time synchronization issues can be discovered and resolved promptly. This helps improve network reliability and stability, ensuring that the network can operate normally in various complex environments.
[0049] Simplified time synchronization process: This invention uses a converter as a time reference source and forwards synchronization messages to user terminals via the base station, simplifying multiple steps in the traditional time synchronization process. This not only reduces the complexity of time synchronization but also improves its efficiency and flexibility.
[0050] Strong compatibility and scalability: This invention is applicable to different types of networks and user terminals, and has strong compatibility and scalability. As network technology continues to develop and user needs continue to change, this invention can be easily upgraded and expanded to meet future network time synchronization needs.
[0051] In summary, the present invention provides an efficient, accurate and reliable solution for time synchronization in time-sensitive networks by improving time synchronization accuracy, enhancing network timeliness, improving network reliability and stability, simplifying the time synchronization process, and having strong compatibility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.
[0053] Figure 1 A schematic diagram of an implementation environment for scheduling based on a 5G intrinsic deterministic private network provided by an embodiment of the present invention;
[0054] Figure 2 A flowchart of a scheduling method based on a 5G intrinsic deterministic private network provided by an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of an extended process of a scheduling method based on a 5G intrinsically deterministic private network provided in an embodiment of the present invention;
[0056] Figure 4 A schematic diagram illustrating the principle of frequency calculation between a UE and an NW-TT according to an embodiment of the present invention;
[0057] Figure 5 This is a schematic diagram of a standardized 5G+TSN scenario;
[0058] Figure 6 A diagram of the business process for 5G TSN cross-domain synchronization in a standardized 5G+TSN scenario;
[0059] Figure 7 A schematic diagram of the business process of the 5G endogenous deterministic solution provided by an embodiment of the present invention;
[0060] Figure 8A schematic diagram comparing the service logic of the intrinsic deterministic solution provided in an embodiment of the present invention and 5G+TSN;
[0061] Figure 9 A schematic diagram of the structure of a scheduling device based on a 5G intrinsic deterministic private network provided by an embodiment of the present invention;
[0062] Figure 10 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0064] It should be noted that although the system diagrams illustrate functional module divisions and the flowcharts illustrate a logical sequence, in certain circumstances, the steps shown or described may be performed in a sequence that differs from the module divisions in the system or the sequence in the flowcharts. The terms "first / S100," "second / S200," and the like in the specification, claims, and drawings are used to distinguish similar objects and are not necessarily intended to describe a specific sequence or precedence.
[0065] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0066] To facilitate understanding of the technical solution of the present invention, the proprietary technical features that may be applied to the technical solution of the present invention are first explained:
[0067] TSN (Time-Sensitive Networking): Time-sensitive networking, also known as time-sensitive networking, focuses on taking an inherently non-deterministic Ethernet network and making it have a deterministic minimum latency.
[0068] UPF (User Plane Function) is a basic component of the 5G Core infrastructure system architecture defined by 3GPP. UPF evolved from 4G EPC CUPS, which separated PGW into PGW-C and PGW-U. This enables PGW-U to perform packet processing and traffic aggregation closer to the edge of the network, thereby improving bandwidth efficiency while reducing network congestion. The PGW-C, which handles signaling services, is still located northbound on the MME. The main goal of CUPS is to support 5G in implementing new radio access (NR) to meet the needs of IoT applications and higher data transmission rates. However, completely realizing the separation of CP and UP is a complex project, so the 5G Core leverages the advantages of UPF to implement the design of network slicing.
[0069] It is understandable that the scheduling method based on the 5G endogenous deterministic private network provided in the embodiment of the present invention can be applied to any computer device with data processing and computing capabilities, and this computer device can be various terminals or servers. When the computer device in the embodiment is a server, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the terminal is a smart phone, tablet computer, laptop computer, desktop computer, etc., but is not limited to this.
[0070] like Figure 1 FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. Figure 1 , the implementation environment includes at least one terminal 102 and a server 101. The terminal 102 and the server 101 can be connected to the network in a wireless or wired manner to complete data transmission and exchange.
[0071] Server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0072] In addition, server 101 can also be a node server in a blockchain network. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm.
[0073] The terminal 102 may be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited thereto. The terminal 102 and the server 101 may be connected directly or indirectly via wired or wireless communication, which is not limited in this embodiment of the present invention.
[0074] Based on the example Figure 1 In the implementation environment shown, an embodiment of the present invention provides a scheduling method based on a 5G intrinsic deterministic private network. The following is an example of the scheduling method based on a 5G intrinsic deterministic private network being applied to a terminal 102. It can be understood that the scheduling method based on a 5G intrinsic deterministic private network can also be applied to a server 101.
[0075] Reference Figure 2 , Figure 2 The flowchart of the scheduling method based on 5G intrinsic deterministic private network applied to the terminal provided by the embodiment of the present invention, the execution subject of the scheduling method based on 5G intrinsic deterministic private network can be any of the aforementioned computer devices (including servers or terminals). Figure 2 , the method comprises the following steps:
[0076] S100, in response to a control instruction of the control plane, setting a converter of the user plane function as a time reference source, and generating a synchronization message through the converter;
[0077] The synchronization message includes a first message and a second message;
[0078] For example, in some specific implementations, the NW-TT can be set to TSN GM mode and synchronized using a two-step method, generating a Sync message (i.e., the first message) and a Follow_Up message (i.e., the second message) at the synchronization node. Specifically, by implementing the TSN GM function within 5G, the endogenous master clock function is implemented on the UPF / NW-TT side to act as the TSN GM, sending gPTP messages to the UE / DS-TT to achieve TSN domain time synchronization.
[0079] It's important to note that TSN GM mode: Time-Sensitive Networking (TSN) is a network architecture specifically designed for time-sensitive applications. In TSN, the GM (Grandmaster) is the time reference source, responsible for providing accurate time information to other devices in the network. Setting the NW-TT (which may refer to a network time transfer device or similar device) to TSN GM mode uses it as the time reference source, providing synchronized time to other devices in the network (such as UPFs, base stations, and UEs).
[0080] Two-step synchronization: A commonly used time synchronization method involves sending a Sync message and confirming it with a Follow_Up message. The Sync message initiates a synchronization request and carries a timestamp of the sending moment. The Follow_Up message confirms the Sync message and carries more precise time information (such as the actual timestamp after the Sync message was sent). By comparing the timestamps of the Sync and Follow_Up messages, the receiver can calculate network latency and clock skew, thereby achieving time synchronization.
[0081] S200, using the time wheel to periodically send synchronization messages through the converter;
[0082] For example, in some specific implementations, a time wheel may be used to periodically send synchronization messages Sync and Follow_Up.
[0083] The second message carries an ingress timestamp;
[0084] In some optional embodiments, such as Figure 3 As shown, the method further includes the following steps: T100, when the synchronization message leaves the port of the converter, obtaining a local timestamp as an entry timestamp; T200, adding the entry timestamp to the target field of the second message.
[0085] For example, in some specific implementations, when leaving the NW-TT port, the local timestamp tsi may be recorded as the entry timestamp into the UPF and added to the extension field (ie, the target field) in Follow_Up.
[0086] S300, forwarding the synchronization message sent by the converter to the user terminal via the base station;
[0087] In some optional embodiments, the method further includes the following steps: establishing a layer 2 session between the user terminal and the user plane function; wherein the layer 2 session is recorded in the user plane function.
[0088] It should be noted that the user plane function is provided with a layer 2 session established by the user terminal; in some embodiments, forwarding the synchronization message sent by the converter to the user terminal through the base station may include the following steps: based on the content of the layer 2 session, encapsulating the synchronization message sent by the converter through the user function plane and then sending it to the base station; decapsulating the encapsulated synchronization message through the base station and then forwarding it to the user terminal.
[0089] For example, in some specific implementations, the Layer 2 session established by the UE (i.e., user terminal) can be recorded on the UPF side, the local Layer 2 session content of the UPF can be queried, and the received synchronization message can be encapsulated with a GTP-U header and sent to the base station side; then, after the base station side receives the encoded synchronization message sent by the UPF, it decapsulates it and forwards it to the UE side.
[0090] In some specific application scenarios, when data leaves an NW-TT port, a local timestamp, tsi, is recorded. This timestamp represents the precise time the data leaves the NW-TT and is also the entry point before the data enters the UPF (User Platform Function). This timestamp is crucial for subsequent calculations of network latency and clock skew. This timestamp is added to the extension field of the Follow_Up message to allow the receiving end (such as the UE) to know the exact time the data leaves the NW-TT, enabling accurate time synchronization calculations.
[0091] S400, determining the intermediate residence time based on the ingress timestamp and the egress timestamp of the user terminal;
[0092] It should be noted that, in some embodiments, determining the intermediate residence time based on the entry timestamp combined with the exit timestamp of the user terminal may include the following steps: when the user terminal receives the second message, using the local timestamp of the data packet received by the user terminal as the exit timestamp; obtaining the intermediate residence time based on the difference between the exit timestamp and the entry timestamp of the user terminal.
[0093] For example, in some specific implementations, after receiving the Follow_Up_TLV, the UE side records the timestamp tse of the local received data packet as the egress timestamp and uses tse-tsi as the intermediate residence time.
[0094] S500: Determine an error ratio between the converter and the user terminal based on a transmission time of the first message between the converter and the user terminal;
[0095] It should be noted that the transmission time includes the sending time and the receiving time; in some embodiments, determining the error ratio between the converter and the user terminal based on the transmission time of the first message at the converter and the user terminal may include the following steps: obtaining a first time difference based on the difference between the two sending times of the first message at the converter at an interval of a preset period; obtaining a second time difference based on the difference between the two receiving times of the first message at the user terminal at an interval of a preset period; and obtaining the error ratio between the converter and the user terminal based on the ratio of the second time difference to the first time difference.
[0096] For example, in some specific implementations, in a 5G endogenous deterministic network, the frequency calculation method of the UE and the NW-TT is as follows: Figure 4 As shown in the figure, NW-TT sends gPTP synchronization messages at regular intervals and calculates the ratio of the time difference between the NW-TT side and the UE side over multiple time periods to obtain the frequency error caused by the different internal crystal oscillators of both sides. The specific formula for calculating the frequency difference is as follows:
[0097]
[0098] If Ratio>1, it means t 2N -t2 is greater than t 1N -t1, that is, the UE side clock frequency is faster; if Ratio≤1, it means t 2N -t2 is less than t 1N -t1 indicates that the clock frequency on the NW-TT side is faster. After calculating the frequency ratio, the frequency error is written to the network card register through the driver, achieving frequency adjustment through a combination of software and hardware.
[0099] S600: Obtain a delay parameter based on the intermediate residence time and the error ratio, and correct the local time of the user terminal using the delay parameter to complete time synchronization of the time-sensitive network.
[0100] It should be noted that, in some embodiments, obtaining the delay parameter based on the intermediate residence time and the error ratio may include the following steps: using the intermediate residence time as the delay difference; using the error ratio as the frequency ratio; applying the delay difference to the frequency ratio, and obtaining the delay parameter by multiplying the frequency ratio and the delay difference.
[0101] For example, in some specific implementations, after obtaining the frequency ratio, the UE side parses the Follow_Up_TLV message forwarded by the base station after receiving it, and finally obtains the NW-TT and UE side delay, as shown below:
[0102] Delay = Ratio * (tse - tsi);
[0103] After calculating the Delay, the UE is assisted in making local time corrections to achieve time synchronization with the other end.
[0104] In order to explain the principle of the technical solution of the present invention in detail, the overall process of the present invention is described below in combination with some specific embodiments. It is easy to understand that the following is an explanation of the technical principle of the present invention and cannot be regarded as a limitation of the present invention.
[0105] First of all, it should be noted that the standard 5G+TSN solution is specifically implemented as follows:
[0106] like Figure 5 As shown in Figure 2, the 5G+TSN scenarios specified in 3GPP 23.501 are as follows:
[0107] In a 5G+TSN network, there are two independent clock domains: the 5G clock domain and the TSN clock domain. The 5G clock domain includes the UE / DS-TT, gNB, and UPF / NW-TT. The gNB clock type is OC, as specified in IEEE Std 1588-2019. It acts as the 5G GM (GrandMaster) to implement the 1588 server. The UE receives time information from the SIB9 messages periodically broadcast by the gNB downlink through its local 5G module, which serves as the terminal-side time reference. The UPF clock type is OC, as specified in IEEE Std 1588-2019. It synchronizes with the gNB through 1588 through E2E synchronization, serving as the UPF-side time reference.
[0108] like Figure 6As shown in the figure, in the 5G TSN cross-domain synchronization process, the entire end-to-end 5GS can be regarded as a "time-aware system" defined by IEEE Std802.1AS-2020, and as a TSN bridge node, it is in the same TSN time domain with the upstream and downstream TSN end nodes. The TSN converter (TT) at the edge of the 5GS needs to support the clock type and operation mode defined by IEEE Std 802.1AS-2020. The NW-TT receives gPTP messages sent by the upstream TSN GM to calculate the clock frequency ratio, link delay, and other information. During the parsing of the synchronization message Follow_Up, it appends TSi (TimeStampingress) as the ingress timestamp of the TSN GM entering the 5GS to the gPTP message according to 3GPP TS24.535. The message is then forwarded to the corresponding DS-TT via Ethernet PDU session information. All gPTP messages are transmitted on the QoS flow that meets the residence time limit requirements specified in IEEE Std 802.1AS-2020. After receiving the gPTP message sent by the NW-TT to the local port, the DS-TT creates a TSe (TimeSteamp egress) egress timestamp as the time when the TSN GM leaves the 5GS. The difference between TSi and TSe is considered to be the residence time of the TSN GM transmitting the gPTP message in the 5GS. DS-TT then uses the cumulative clock frequency ratio contained in the gPTP message payload (carried in the Sync message for one-step operation, or in the Follow_Up message for two-step operation) to convert the dwell time spent in 5GS to TSN GM time and modifies the payload of the gPTP message it sends to the downstream TSN node.
[0109] In view of this, in response to the stringent requirements of end-to-end latency, jitter, and determinism in current industrial scenario communications, the 5G+TSN approach is proposed in the Industrial Internet, enabling 5G to carry the core production links, achieve end-to-end deterministic transmission, and differentiatedly guarantee business service quality. Furthermore, based on the 5G+TSN networking in the 3GPP standard specification, the present invention does not rely on external TSN devices as the master clock to provide time synchronization to UPF / NW-TT, but implements the TSN GM function within the UPF / NW-TT to achieve 5G endogenous determinism. The present invention provides a 5G endogenous deterministic solution, which can be specifically implemented as follows:
[0110] like Figure 7 As shown, the embodiment of the present invention implements the TSN GM function within 5G, implements the endogenous master clock function on the UPF / NW-TT side to act as the TSN GM, sends gPTP messages to the UE / DS-TT, and realizes TSN domain time synchronization.
[0111] In the 5G intrinsic deterministic solution, the DPDK+VPP architecture is used for fast data packet processing. The NW-TT master clock is abstracted as a node within the VPP to implement the PTP protocol stack. A time wheel is used to periodically send synchronization messages (Sync) and Follow_Up. The specific synchronization process is as follows:
[0112] 1) NW-TT is set to TSN GM mode and uses a two-step synchronization method to generate Sync and Follow_Up messages at the synchronization node respectively;
[0113] 2) When leaving the NW-TT port, the local timestamp tsi is recorded as the entry timestamp into the UPF and added to the extension field in Follow_Up;
[0114] 3) The Layer 2 session established by the UE is recorded on the UPF side, the UPF local Layer 2 session content is queried, and the received synchronization message is encapsulated in the GTP-U header and sent to the base station side;
[0115] 4) After receiving the encoded synchronization message sent by the UPF, the base station side decapsulates it and forwards it to the UE side;
[0116] 5) After receiving the Follow_Up_TLV, the UE records the local timestamp tse of the received data packet as the egress timestamp, uses tse-tsi as the intermediate dwell time, and calculates the frequency ratio with the NW-TT side. By applying the delay difference to the frequency ratio, the UE side local time is corrected to complete synchronization.
[0117] In the 5G intrinsic deterministic network, the frequency calculation method of UE and NW-TT is as follows: Figure 4 As shown in the figure, NW-TT sends gPTP synchronization messages at regular intervals and calculates the ratio of the time difference between the NW-TT side and the UE side over multiple time periods to obtain the frequency error caused by the different internal crystal oscillators of both sides. The specific formula for calculating the frequency difference is as follows:
[0118]
[0119] If Ratio>1, it means t 2N -t2 is greater than t 1N -t1, that is, the UE side clock frequency is faster; if Ratio≤1, it means t 2N -t2 is less than t 1N -t1 indicates that the clock frequency on the NW-TT side is faster. After calculating the frequency ratio, the frequency error is written to the network card register through the driver, achieving frequency adjustment through a combination of software and hardware.
[0120] After obtaining the frequency ratio, the UE parses the Follow_Up_TLV message forwarded by the base station and obtains the NW-TT and UE-side delays, as shown below:
[0121] Delay = Ratio * (tse - tsi);
[0122] After calculating the Delay, the UE corrects its local time to achieve time synchronization with the peer end.
[0123] It should be understood that if Figure 8 As shown, in the standard 5G+TSN solution 1, the 5G system is used as a virtual bridge in the TSN network to interconnect with external TSN nodes to carry the remote deterministic transmission of business system traffic. In addition to the 5G communication system, an external clock source is also required for synchronization of intermediate systems, which places high demands on the actual construction of the network topology. In the 5G+TSN solution 2 based on 5G intrinsic determinism (i.e., the embodiment of the present invention), it does not rely on external TSN equipment as the master clock to provide time to the UPF / NW-TT, and implements the TSN GM function inside the UPF / NW-TT to ensure that the 5G system is an independent deterministic system and realizes intrinsic determinism.
[0124] In some specific application scenarios, deterministic CPE (Customer Premises Equipment) integrating the logic algorithms based on the principles of the present invention can be used to access a 5G private network. The UPF sends synchronization messages over the air interface to the CPE. The CPE calculates the internal 5G latency by calculating the time information carried by the peer and local devices, and adjusts its own time domain to ensure low-latency forwarding of deterministic services across the 5G private network.
[0125] In summary, this paper proposes to achieve endogenous determinism in 5G systems through the UPF endogenous clock source model. Based on the TSN translator (NW-TT), deterministic latency and jitter are achieved within the 5G system without relying on an external TSN network, eliminating the need for service system modification and adaptation. The NW-TT implements the endogenous master clock function. In this scenario, referring to IEEE Std802.1AS-2020, the NW-TT clock type is a TSN end node, and it also acts as a TSN general manager, sending gPTP messages to the DS-TT to achieve TSN domain time synchronization.
[0126] On the other hand, Figure 9 As shown, an embodiment of the present invention provides a scheduling device 900 based on a 5G intrinsic deterministic private network, which may include:
[0127] The first module 901 is configured to, in response to a control instruction of the control plane, set a converter of the user plane function as a time reference source, and generate a synchronization message through the converter; the synchronization message includes a first message and a second message;
[0128] The second module 902 is configured to periodically send a synchronization message through the converter using a time wheel; the second message carries an entry timestamp;
[0129] The third module 903 is configured to forward the synchronization message sent by the converter to the user terminal via the base station;
[0130] A fourth module 904 is configured to determine an intermediate dwell time based on an ingress timestamp combined with an egress timestamp of a user terminal;
[0131] A fifth module 905 is configured to determine an error ratio between the converter and the user terminal based on a transmission time of the first message between the converter and the user terminal;
[0132] The sixth module 906 is configured to obtain a delay parameter based on the intermediate dwell time and the error ratio, and perform local time correction on the user terminal using the delay parameter to complete time synchronization of the time-sensitive network.
[0133] Optionally, the device further comprises:
[0134] The seventh module is used to obtain a local timestamp as an entry timestamp when the synchronization message leaves the port of the converter;
[0135] The eighth module is used to add the entry timestamp to the target field of the second message.
[0136] Optionally, the device further comprises:
[0137] A ninth module is configured to establish a layer 2 session between the user terminal and the user plane function through the user terminal;
[0138] Among them, the Layer 2 session is recorded in the user plane function.
[0139] The contents of the method embodiments of the present invention are all applicable to the device embodiments. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0140] In another aspect, an embodiment of the present invention further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the sensitive information protection method described above when executing the computer program. The electronic device can be any intelligent terminal, including a tablet computer and an in-vehicle computer.
[0141] It can be understood that the contents of the above method embodiments are applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0142] like Figure 10 As shown, Figure 10 A specific example of the hardware structure of an electronic device 1000 according to an embodiment is shown. The electronic device 1000 includes:
[0143] The processor 1001 may be implemented as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is configured to execute relevant programs to implement the technical solutions provided by the embodiments of the present invention.
[0144] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called by the processor 1001 to execute the network node population optimization method of the embodiment of the present invention.
[0145] Input / output interface 1003, used to implement information input and output;
[0146] Communication interface 1004, used to implement communication interaction between this device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WiFi, Bluetooth, etc.);
[0147] Bus 1005 , which transmits information between various components of the device (e.g., processor 1001 , memory 1002 , input / output interface 1003 , and communication interface 1004 );
[0148] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .
[0149] The electronic device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one location or distributed across multiple network units. Some or all of these modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0150] The contents of the method embodiments of the present invention are all applicable to the electronic device embodiments. The functions specifically implemented by the electronic device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0151] Another aspect of an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the above method.
[0152] It should be noted that the computer-readable medium shown in the embodiments of the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0153] The contents of the method embodiments of the present invention are all applicable to the computer-readable storage medium embodiments. The functions specifically implemented by the computer-readable storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0154] The present invention also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium and execute the computer instructions, causing the computer device to perform the above method.
[0155] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0156] It should be noted that although several modules of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0157] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD to ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present invention.
[0158] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided in an exemplary manner for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are contemplated in which the order of the various operations is changed and the sub-operations described as a part of a larger operation are performed independently.
[0159] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It will also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present invention. More specifically, given the properties, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the ordinary skill of an engineer. Therefore, a person skilled in the art will be able to implement the present invention as set forth in the claims using ordinary skill without undue experimentation. It will also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0160] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the present invention, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
[0161] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution apparatus, device, or apparatus (e.g., a computer-based apparatus, a device including a processor, or other apparatus that can fetch instructions from and execute instructions on an instruction execution apparatus, device, or apparatus). For purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution apparatus, device, or apparatus.
[0162] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.
[0163] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0164] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0165] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.
[0166] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A scheduling method based on 5G endogenous deterministic private network, characterized in that: The following steps are involved: In response to a control instruction from the control plane, a converter of the user plane function is set as a time reference source, and a synchronization message is generated through the converter; the synchronization message includes a first message and a second message; the endogenous determinism is achieved by implementing the TSN GM function within 5G and implementing the endogenous master clock function on the UPF / NW-TT side to act as the TSN GM; The synchronization message is periodically sent through the converter using a timing wheel; the second message carries an entry timestamp; forwarding the synchronization message sent by the converter to the user terminal via the base station; Determining an intermediate residence time based on the ingress timestamp in combination with an egress timestamp of the user terminal; determining an error ratio between the converter and the user terminal based on a transmission time of the first message between the converter and the user terminal; A delay parameter is obtained based on the intermediate residence time and the error ratio, and the local time of the user terminal is corrected using the delay parameter to complete time synchronization of the time-sensitive network.
2. The scheduling method based on the 5G endogenous deterministic private network according to claim 1 is characterized in that: The method further comprises the following steps: When the synchronization message leaves the port of the converter, obtaining a local timestamp as the entry timestamp; The ingress timestamp is added to the destination field of the second message.
3. The scheduling method based on the 5G endogenous deterministic private network according to claim 1 is characterized in that: The method further comprises the following steps: Establishing a layer 2 session between the user terminal and the user plane function through the user terminal; The layer 2 session is recorded in the user plane function.
4. The scheduling method based on 5G endogenous deterministic private network according to claim 3 is characterized in that: The user plane function is provided with a layer 2 session established by the user terminal; and the synchronization message sent by the converter is forwarded to the user terminal via the base station, comprising the following steps: Based on the content of the layer 2 session, encapsulate the synchronization message sent by the converter through the user plane function and then send it to the base station; The encapsulated synchronization message is decapsulated by the base station and then forwarded to the user terminal.
5. The scheduling method based on 5G endogenous deterministic private network according to claim 1, characterized in that: The determining of the intermediate residence time based on the ingress timestamp combined with the egress timestamp of the user terminal comprises the following steps: When the user terminal receives the second message, using the local timestamp of the user terminal receiving the data packet as the egress timestamp; The intermediate residence time is obtained according to the difference between the egress timestamp of the user terminal and the ingress timestamp.
6. The scheduling method based on 5G endogenous deterministic private network according to claim 1, characterized in that: The transmission time includes a sending time and a receiving time; and determining the error ratio between the converter and the user terminal based on the transmission time of the first message between the converter and the user terminal comprises the following steps: Obtaining a first time difference based on a difference between two sending times of the first message at the converter at intervals of a preset period; Obtaining a second time difference based on a difference between two reception times of the first message at the user terminal separated by the preset period; An error ratio between the converter and the user terminal is obtained according to a ratio of the second time difference to the first time difference.
7. The scheduling method based on 5G endogenous deterministic private network according to claim 1, characterized in that: The obtaining of the delay parameter based on the intermediate dwell time and the error ratio comprises the following steps: Taking the intermediate dwell time as the delay difference; taking the error ratio as the frequency ratio; The delay difference is applied to the frequency ratio, and the delay parameter is obtained by multiplying the frequency ratio by the delay difference.
8. A scheduling device based on 5G endogenous deterministic private network, characterized in that: include: The first module is configured to, in response to a control instruction from the control plane, set a converter of a user plane function as a time reference source, and generate a synchronization message through the converter; the synchronization message includes a first message and a second message; the endogenous determinism is achieved by implementing a TSN GM function within 5G and implementing an endogenous master clock function on the UPF / NW-TT side to act as the TSN GM; A second module is configured to periodically send the synchronization message through the converter using a time wheel; the second message carries an entry timestamp; A third module is configured to forward the synchronization message sent by the converter to the user terminal via the base station; A fourth module is configured to determine an intermediate residence time based on the ingress timestamp in combination with the egress timestamp of the user terminal; A fifth module, configured to determine an error ratio between the converter and the user terminal based on a transmission time of the first message between the converter and the user terminal; The sixth module is configured to obtain a delay parameter based on the intermediate residence time and the error ratio, and perform local time correction on the user terminal using the delay parameter to complete time synchronization of the time-sensitive network.
9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 7.
10. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Method and device for supporting configuration of time synchronization network in mobile communication network
US20220046570A1
Time sensitive communication support information updating method and device in mobile communication system
US20230068462A1