Scheduling method and device based on 5G endogenous deterministic private network, equipment and medium
By setting time reference sources and utilizing synchronization messages in 5G endogenous deterministic private network, the problem that traditional networks cannot meet the delay and jitter requirements of industrial scenarios is solved, and high-precision time synchronization and network stability are achieved, suitable for industrial use. environment.
Patent Information
- Application Number
- CN202411508316.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-10-28
AI Technical Summary
Traditional 4/5G wireless networks cannot meet the delay and jitter requirements in industrial manufacturing, industrial machine communication, and vehicle networking. Moreover, wireless high-density coverage is large and the deterministic terminal costs are high. Traditional networks cannot meet the communication guarantee of the industrial environment. need.
A scheduling method based on 5G endogenous deterministic private network is proposed. By setting the converter of user plane function as a time reference source, synchronous messages are generated, and synchronous messages are periodically sent using the time wheel, and combining the inlet and exit timestamps are determined. The intermediate residence time and error ratio are calculated, the delay parameters are realized, the local time correction of the user terminal, and the time synchronization of the time-efficient network is completed.
It improves time synchronization accuracy, enhances network timeliness and reliability, simplifies the time synchronization process, has strong compatibility and scalability, is suitable for different types of networks and user terminals, and meets the high-precision time synchronization needs of industrial environments.
Smart Images

Figure CN119316924A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a scheduling method, device, equipment and medium based on a 5G intrinsic deterministic private network. Background Art
[0002] Under the sweep of the Fourth Industrial Revolution, the new generation of communication technologies represented by 5G, TSN, and the Internet of Things are gradually combined with the industrial Internet to realize the intelligent ubiquitous connection of people, machines, and things. In the process of realizing intelligent transformation and upgrading of industrial production, typical application scenarios such as high-bandwidth access, multi-terminal connection, and low-latency transmission are proposed. In industries such as steel, metallurgy, and mining, the basic environment such as noise, air, temperature and humidity in the production area is poor, and the safety risks are high, which makes it difficult to recruit and employ workers. Remote control and intelligent applications are used to replace ordinary manpower, and network equipment is needed for communication guarantee. However, the communication cost of traditional wired equipment is high, which has great constraints on flexible production. The use of WIFI is susceptible to interference and has poor mobility. Traditional 4 / 5G wireless networks cannot meet the requirements of latency and jitter. Faced with 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, most deterministic guarantee solutions are solved through wireless coverage and dual-transmitter selection. 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] The timing wheel is used to periodically send out a synchronization message through the converter; the second message carries an 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 by 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 through 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 in combination 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 according to 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 the 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 a preset period interval;
[0025] Obtaining a second time difference based on a difference between two reception times of the first message at the user terminal at a preset period interval;
[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 comprises 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 by 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 used to respond to the control instruction of the control plane, set the converter of the user plane function as the 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 out 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 used to determine the intermediate residence time based on the ingress timestamp combined with the egress timestamp of the 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 through 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 for obtaining 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 used 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 sets the converter of the user plane function as the time reference source in response to the control instruction of the control plane, 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 in 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 includes the following beneficial effects:
[0046] Improve time synchronization accuracy: By setting the converter of the user plane function as the time reference source and using a high-precision time wheel to periodically send synchronization messages, it can be ensured that each node in the network (including the user terminal) can receive accurate time information. The intermediate residence time is determined by using the inlet timestamp and the outlet timestamp, and the error ratio between the converter and the user terminal is determined based on the transmission time of the first message, and the delay parameters can be further accurately calculated, thereby improving the accuracy of time synchronization.
[0047] Enhance network timeliness: The present invention ensures that each node in the network can maintain a high degree of time consistency by real-time monitoring and correction of the local time of the user terminal. This is crucial for time-sensitive networks (such as real-time control systems) that require high-precision time synchronization, and can effectively avoid various problems and risks caused by time asynchrony.
[0048] Improve network reliability and stability: By periodically sending synchronization messages and monitoring the time synchronization status in the network in real time, potential time synchronization problems can be discovered and resolved in a timely manner. This helps improve network reliability and stability and ensures that the network can operate normally in various complex environments.
[0049] Simplified time synchronization process: The present invention uses the converter as the time reference source and forwards the synchronization message to the user terminal through the base station, which simplifies multiple links in the traditional time synchronization process. This not only reduces the complexity of time synchronization, but also improves the efficiency and flexibility of time synchronization.
[0050] Strong compatibility and scalability: The present invention can be applied to different types of networks and user terminals, and has strong compatibility and scalability. With the continuous development of network technology and the continuous changes in user needs, the present invention can be easily upgraded and expanded to meet the needs of future network time synchronization.
[0051] In summary, the present invention provides an efficient, accurate and reliable solution for time synchronization of time-sensitive networks by achieving the beneficial effects of 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 on 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 in an embodiment of the present invention;
[0054] Figure 2 A flowchart of a scheduling method based on a 5G intrinsic deterministic private network provided in an embodiment of the present invention;
[0055] Figure 3 A schematic diagram of an extended process of a scheduling method based on a 5G intrinsic deterministic private network provided in an embodiment of the present invention;
[0056] Figure 4 A schematic diagram showing the principle of frequency calculation of UE and NW-TT provided in an embodiment of the present invention;
[0057] Figure 5 This is a schematic diagram of a standardized 5G+TSN scenario;
[0058] Figure 6 A schematic diagram of the business process of 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] Fig. 9 A schematic diagram of the structure of a scheduling device based on a 5G intrinsic deterministic private network provided in an embodiment of the present invention;
[0062] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with 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 used to limit the present invention.
[0064] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0065] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0066] To facilitate the 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 but 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. PGW-U is enabled to perform packet processing and traffic aggregation closer to the edge of the network, which improves 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, it is a complex project to completely separate CP and UP, so 5G Core uses 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 types of 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, a tablet computer, a laptop computer, a 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 a network wirelessly or wired 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, the server 101 can also be a node server in the 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, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 102 and the server 101 may be directly or indirectly connected via wired or wireless communication, which is not limited in the 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 explained using an example of applying the scheduling method based on a 5G intrinsic deterministic private network 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 A flowchart of a scheduling method based on a 5G intrinsic deterministic private network applied to a terminal provided in an embodiment of the present invention, wherein the execution subject of the scheduling method based on a 5G intrinsic deterministic private network can be any of the aforementioned computer devices (including a server or a terminal). 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, 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, and gPTP messages are sent to the UE / DS-TT to achieve TSN domain time synchronization.
[0079] It should be noted that TSN GM mode: Time Sensitive Network (TSN) is a network architecture designed specifically for handling time-sensitive applications. In TSN, GM (Grandmaster) is the time reference source responsible for providing accurate time information to other devices in the network. Setting NW-TT (which may refer to a network time transmission device or similar device) to TSN GM mode means using it as a time reference source to provide synchronized time to other devices in the network (such as UPF, base station, UE, etc.).
[0080] Two-step synchronization: The two-step method is a commonly used time synchronization method, which includes two steps: sending a Sync message and confirming a Follow_Up message. The Sync message is used to initiate a synchronization request and carries a timestamp of the sending time. The Follow_Up message is used to confirm the Sync message and carries more accurate time information (such as the actual timestamp after the Sync message is sent). By comparing the timestamps of the Sync message and the Follow_Up message, the receiving end can calculate the network delay and clock deviation, thereby achieving time synchronization.
[0081] S200, using the time wheel to periodically send out synchronization messages through the converter;
[0082] Exemplarily, in some specific implementations, a time wheel may be used to periodically send synchronization messages Sync and Follow_Up.
[0083] Wherein, the second message carries an entry timestamp;
[0084] In some optional embodiments, such as Figure 3 As shown, the method also includes the following steps: T100, when the synchronization message leaves the port of the converter, obtain the local timestamp as the entry timestamp; T200, add the entry timestamp to the target field of the second message.
[0085] Exemplarily, 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 through 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, the synchronization message sent by the converter is forwarded to the user terminal via the base station, which may include the following steps: 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; the encapsulated synchronization message is decapsulated through the base station and then forwarded to the user terminal.
[0089] Exemplarily, in some specific implementations, the Layer 2 session established by the UE (i.e., user terminal) can be recorded on the UPF side, the UPF local Layer 2 session content can be queried, and the received synchronization message can be encapsulated in the 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 the NW-TT port, a local timestamp tsi is recorded. This timestamp represents the exact time point when the data leaves the NW-TT, and is also the entry time before the data enters the UPF (User Flat Function). This timestamp is crucial for the subsequent calculation of network delay and clock deviation. This timestamp is added to the extension field of the Follow_Up message so that the receiving end (such as UE) can know the exact time when the data leaves the NW-TT, so as to perform accurate time synchronization calculation.
[0091] S400, determining the intermediate residence time based on the ingress timestamp combined with 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] Exemplarily, 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, determining an error ratio between the converter and the user terminal based on a transmission time of the first message in 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 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 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 according to 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 between the UE and the NW-TT is as follows: Figure 4 As shown, 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 in multiple time periods to obtain the frequency error caused by the different internal crystal oscillators of both sides. The specific calculation formula of 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, that is, the clock frequency on the NW-TT side is faster. After calculating the frequency ratio, the frequency error is written into the network card register through the driver to achieve frequency adjustment combined with software and hardware.
[0099] S600: Obtain a delay parameter based on the intermediate residence time and the error ratio, and use the delay parameter to correct the local time of the user terminal 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: taking the intermediate residence time as the delay difference; taking 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 performs parsing after receiving the Follow_Up_TLV message forwarded by the base station, 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 correcting the local time 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, the 5G+TSN scenarios specified in 3GPP 23.501 are as follows:
[0107] In the 5G+TSN network, there are two independent clock domains: 5G clock domain and TSN clock. The 5G clock domain includes UE / DS-TT, gNB, UPF / NW-TT. The gNB clock type is OC as specified in IEEE Std1588-2019. As the 5G GM (GrandMaster) implements the 1588 server, the UE receives the SIB9 message periodically broadcast by the gNB downlink through the local 5G module to obtain time information as the terminal side time reference; the UPF clock type is OC as specified in IEEE Std1588-2019, and is synchronized with the gNB through E2E synchronization 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 5GS needs to support the clock type and operation mode defined by IEEE Std 802.1AS-2020. NW-TT receives the gPTP message sent by the upstream TSN GM to calculate the clock frequency ratio, link delay and other contents of the two. In the process of parsing the synchronization message Follow_Up, according to 3GPP TS24.535, TSi (TimeStampingress) is attached to the gPTP message as the entry timestamp of TSN GM entering 5GS, and then forwarded to the corresponding DS-TT through Ethernet PDU session information. All gPTP messages are transmitted on the QoS flow in accordance with the upper limit of the residence time specified in IEEE Std 802.1AS-2020. After receiving the gPTP message sent by NW-TT to the local port, DS-TT creates TSe (TimeSteamp egress) egress timestamp as the time when TSN GM leaves 5GS. The difference between Tsi and TSe is considered to be the residence time of TSNGM transmitting gPTP message in 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 within 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 view of the strict requirements of end-to-end latency, jitter and determinism in current industrial scene communications, the 5G+TSN method is proposed in the industrial Internet, so that 5G has the ability to carry core production links, realize end-to-end deterministic transmission, and differentiate to ensure business service quality. And based on the 5G+TSN networking in the 3GPP standard specification, the present invention does not rely on external TSN equipment as the master clock to provide time to UPF / NW-TT, but implements the TSN GM function inside UPF / NW-TT to achieve 5G endogenous determinism. The present invention provides a 5G endogenous deterministic solution, which can be 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 UE / DS-TT, and realizes TSN domain time synchronization.
[0111] In the 5G endogenous deterministic solution, the DPDK+VPP architecture is used for fast data packet processing, the NW-TT master clock is abstracted as a node inside the VPP, the PTP protocol stack function is implemented, and the 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 method for synchronization, generating 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 content of the local Layer 2 session of the UPF 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 Follo_Up_TLV, the UE side records the timestamp tse of the local received data packet as the egress timestamp, uses tse-tsi as the intermediate residence time, and calculates the frequency ratio with the NW-TT side. By applying the delay difference to the frequency ratio, the local time on the UE side 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, 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 in multiple time periods to obtain the frequency error caused by the different internal crystal oscillators of both sides. The specific calculation formula of 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, that is, the clock frequency on the NW-TT side is faster. After calculating the frequency ratio, the frequency error is written into the network card register through the driver to achieve frequency adjustment combined with software and hardware.
[0120] After obtaining the frequency ratio, the UE side parses the Follow_Up_TLV message forwarded by the base station and finally obtains the NW-TT and UE side delay, as shown below:
[0121] Delay = Ratio * (tse - tsi);
[0122] After calculating the Delay, the UE corrects the local time to achieve time synchronization with the other 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 the intermediate system, which has high requirements 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 main clock to provide time to UPF / NW-TT, and implements the TSN GM function inside 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) that integrates the principle and logic algorithm of the embodiment of the present invention can be used to access the 5G private network. The UPF side sends a synchronization message to the CPE side via the air interface. The CPE side calculates the time information carried by the peer end and the local end, calculates the 5G internal delay and adjusts its own time domain, so that the deterministic services passing through the 5G private network can be forwarded with low delay.
[0125] In summary, the present invention proposes to realize the endogenous determinism of the 5G system through the UPF endogenous clock source model. Based on the TSN converter (NW-TT), the 5G system realizes deterministic delay and jitter without relying on the external TSN network, without the need for business system transformation and adaptation. NW-TT realizes the endogenous master clock function. In this scenario, refer to IEEE Std802.1AS-2020. The clock type of NW-TT is TSN end node, and it also acts as TSN GM, sending gPTP messages to DS-TT to realize TSN domain time synchronization.
[0126] On the other hand, Fig. 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 used to respond to the control instruction of the control plane, set the converter of the user plane function as the 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 used 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 used to forward the synchronization message sent by the converter to the user terminal through the base station;
[0130] A fourth module 904 is used to determine the intermediate residence time based on the ingress timestamp combined with the egress timestamp of the user terminal;
[0131] A fifth module 905, configured to determine an error ratio between the converter and the user terminal based on a transmission time of the first message in the converter and the user terminal;
[0132] The sixth module 906 is used to obtain a delay parameter based on the intermediate residence time and the error ratio, and perform local time correction on the user terminal according to the delay parameter to complete time synchronization of the time-sensitive network.
[0133] Optionally, the device further comprises:
[0134] The seventh module is used for obtaining 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 used 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] On the other hand, an embodiment of the present invention further provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above sensitive information method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0141] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0142] like Fig.10 As shown, Fig.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 by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present 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 solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes 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] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0147] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the 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, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[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 embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media 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 disk read-only memory (Compact Disc Read to Only Memory, CD to ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[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 embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.
[0155] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order 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 flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a 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 embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0157] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation 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, including several 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 implementation of the present invention.
[0158] In some selectable 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 by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0159] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also 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 several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform 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 codes.
[0161] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution device, apparatus or device (such as a computer-based device, a device including a processor, or other device that can fetch instructions from an instruction execution device, apparatus or device and execute the instructions), or in conjunction with such instruction execution device, apparatus or device. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution device, apparatus or device, or in conjunction with such instruction execution device, apparatus or device.
[0162] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), 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 disk read-only memory (CDROM). In addition, the computer-readable medium may even be a 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, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0163] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0164] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0165] Although the 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 present invention, and that the scope of the present 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 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; The synchronization message is periodically sent through the converter using a time 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; Determine 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; 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 by the delay parameter to complete the time synchronization of the time-sensitive network.
2. The scheduling method based on 5G intrinsic 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 target field of the second message.
3. The scheduling method based on 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; the synchronization message sent by the converter is forwarded to the user terminal through 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 function plane 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 intrinsic deterministic private network according to claim 1 is 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, the local timestamp of the user terminal receiving the data packet is used 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 intrinsic deterministic private network according to claim 1 is 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 includes the following steps: Obtaining a first time difference based on a difference between two sending times of the first message at the converter at a preset period; Obtaining a second time difference based on a difference between two reception times of the first message at the user terminal at an interval of 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 intrinsic deterministic private network according to claim 1 is 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: A first module is used to respond 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; A second module is used to periodically send the synchronization message through the converter using a time wheel; the second message carries an entry timestamp; A third module is used to forward the synchronization message sent by the converter to the user terminal through the base station; A fourth module is used to determine an intermediate residence time based on the ingress timestamp combined 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 used to obtain a delay parameter based on the intermediate residence time and the error ratio, and to perform local time correction on the user terminal according to 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
Polymer wire for fixation and orthopedic bone plate including the same
KR1020240057862A
Method and device for supporting configuration of time synchronization network in mobile communication network
US20220046570A1
Method for implementing time synchronization and related device
US20220174625A1
Time sensitive communication support information updating method and device in mobile communication system
US20230068462A1
Methods and apparatus for bandwidth efficient configuration of time synchronization services in 5g systems
US20240292348A1