Periodic synchronization methods, systems, devices and electronic equipment
Patent Information
- Application Number
- CN202280002524.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2042-07-29
AI Technical Summary
而这对大多数低成本产品,硬件层面很难支撑时间同步
[0027]由以上技术方案可以看出,本申请实施例中,不再依赖两端传输节点在时钟上严格同步,只需要通过调整一端传输节点本地用于调度报文队列的调度周期的宽度,使得调整后的调度周期的宽度与另一传输节点本地用于调度报文队列的调度周期的宽度的偏差在预设同步范围内,实现两端传输节点在确定性流传输的弱同步,保证了确定性流的正常转发。
Smart Images

Figure CN117941288B_ABST
Abstract
Description
Technical Field
[0001] This application relates to network communication technology, and in particular to periodic synchronization methods, systems, devices and electronic equipment. Background Technology
[0002] In current deterministic streaming applications, clock synchronization between the two transmission nodes requires hardware-level support. For example, in a 5G system (5GS), clock synchronization between the transmission nodes at both ends requires hardware support from either the network-side TSN translator (NW-TT) or the device-side TSN translator (DS-TT). However, for most low-cost products, hardware-level support for time synchronization is difficult to achieve. Summary of the Invention
[0003] This application provides a periodic synchronization method, system, apparatus, and electronic device to synchronize the scheduling period of the local message queues of the two transmission nodes while keeping their clock domains independent.
[0004] This application provides a periodic synchronization method. The method is applied to a first transmission node, which is also connected to a second transmission node. The first clock domain of the first transmission node is different from the second clock domain of the second transmission node. The network system between the first and second transmission nodes is connected to the first transmission node via a first intermediate device and to the second transmission node via a second intermediate device. The first and second intermediate devices have the same third clock domain in the network system. The method includes:
[0005] When a message transmission event is detected, a periodic synchronization information message is sent to the second transmission node at time point t1[1] in the first clock domain. This message is used by the second transmission node to adjust the width of the scheduling period when it determines that the width of the scheduling period used by the second transmission node to schedule the message queue needs to be adjusted based on the first periodic synchronization information message. This ensures that the deviation between the adjusted width of the scheduling period and the width of the scheduling period used by the first transmission node to schedule the message queue is within a preset synchronization range.
[0006] The first periodic synchronization information message carries at least: the current period C1_1 of the first transmission node and the first time information; wherein, the current period is the scheduling period of the scheduling message queue in which the first transmission node is currently located, or the current period is the local system period of the first transmission node; the first time information is a time point under the third clock domain, which is determined based on the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain.
[0007] This application embodiment also provides a periodic synchronization method, which is applied to a second transmission node, the second transmission node being connected to a first transmission node, the first clock domain of the first transmission node being different from the second clock domain of the second transmission node, and the network system between the first transmission node and the second transmission node being connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device, respectively, the first intermediate device and the second intermediate device having the same third clock domain in the network system; the method includes:
[0008] At time point t2[1] in the second clock domain, the first period synchronization information message sent by the first transmission node is received, and the current period C2_1 of the second transmission node is determined;
[0009] Based on the period C1_1 and the first time information carried in the first period synchronization information message, the period C1_2 that the first transmission node is currently in at the time point t2[1] is determined;
[0010] Based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message, it is determined whether to adjust the width of the scheduling period used by the second transmission node for scheduling the message queue locally. If so, the width of the scheduling period used by the second transmission node for scheduling the message queue locally is adjusted so that the deviation between the adjusted scheduling period width and the scheduling period used by the first transmission node for scheduling the message queue is within a preset synchronization range. C2_0 represents the current period when the second transmission node receives the second periodic synchronization information message, and C1_0 represents the period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message.
[0011] This application embodiment also provides a periodic synchronization system, which includes: a first transmission node and a second transmission node; the first clock domain of the first transmission node is different from the second clock domain of the second transmission node; the network system between the first transmission node and the second transmission node is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device, respectively; the first intermediate device and the second intermediate device have the same third clock domain in the network system.
[0012] The first transmission node performs the steps described in the first method above;
[0013] The second transmission node performs the steps described in the second method above.
[0014] This application provides a periodic synchronization device applied to a first transmission node, which is also connected to a second transmission node. The first transmission node has a first clock domain different from the second transmission node's second clock domain. A network system between the first and second transmission nodes connects to the first transmission node via a first intermediate device and to the second transmission node via a second intermediate device. The first and second intermediate devices share the same third clock domain in the network system. The device includes:
[0015] The detection unit is used to detect message transmission events;
[0016] The sending unit is used to send a periodic synchronization information message to the second transmission node at time point t1[1] in the first clock domain when the detection unit detects a message sending event, so that the second transmission node can adjust the width of the scheduling period used by the second transmission node to schedule the message queue locally when it determines that the width of the scheduling period used by the second transmission node to schedule the message queue needs to be adjusted based on the first periodic synchronization information message, so that the deviation between the width of the adjusted scheduling period and the width of the scheduling period used by the first transmission node to schedule the message queue is within a preset synchronization range.
[0017] The first periodic synchronization information message carries at least: the current period C1_1 of the first transmission node and the first time information; wherein, the current period is the scheduling period of the scheduling message queue in which the first transmission node is currently located, or the current period is the local system period of the first transmission node; the first time information is a time point under the third clock domain, which is determined based on the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain.
[0018] This application provides a periodic synchronization device applied to a second transmission node, which is also connected to a first transmission node. The first clock domain of the first transmission node is different from the second clock domain of the second transmission node. The network system between the first and second transmission nodes is connected to the first transmission node via a first intermediate device and to the second transmission node via a second intermediate device. The first and second intermediate devices have the same third clock domain in the network system. The device includes:
[0019] The receiving unit is used to receive the first periodic synchronization information message sent by the first transmission node at time point t2[1] in the second clock domain, and to determine the current period C2_1 of the second transmission node;
[0020] The determining unit is used to determine the current period C1_2 of the first transmission node at time point t2[1] based on the period C1_1 carried by the first periodic synchronization information message and the first time information;
[0021] The adjustment unit is used to determine whether to adjust the width of the scheduling period used by the second transmission node for scheduling message queues locally, based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message. If so, the width of the scheduling period used by the second transmission node for scheduling message queues locally is adjusted so that the deviation between the adjusted scheduling period width and the scheduling period used by the first transmission node for scheduling message queues locally is within a preset synchronization range. C2_0 represents the current period when the second transmission node receives the second periodic synchronization information message, and C1_0 represents the period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message.
[0022] This application also provides an electronic device, which includes: a processor and a machine-readable storage medium;
[0023] The machine-readable storage medium stores machine-executable instructions that can be executed by the processor;
[0024] The processor is used to execute machine-executable instructions to implement any of the methods described above.
[0025] This application also provides a machine-readable storage medium storing machine-executable instructions that can be executed by a processor;
[0026] The machine-executable instructions are executed by the processor to implement any of the methods described above.
[0027] As can be seen from the above technical solutions, in this embodiment, it no longer relies on strict synchronization of the two transmission nodes on the clock. It is only necessary to adjust the width of the scheduling period used by one transmission node to schedule the message queue locally, so that the deviation between the adjusted scheduling period width and the scheduling period used by the other transmission node to schedule the message queue locally is within a preset synchronization range, thereby achieving weak synchronization of the two transmission nodes in deterministic stream transmission and ensuring the normal forwarding of the deterministic stream. Attached Figure Description
[0028] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0029] Figure 1 A flowchart illustrating the method provided in this application embodiment;
[0030] Figure 2 Another method flowchart provided for embodiments of this application;
[0031] Figure 3 This is a network topology diagram provided for an embodiment of this application;
[0032] Figure 4 A schematic diagram of the clock domain provided in an embodiment of this application;
[0033] Figure 5 This is a timing diagram illustrating the implementation of an embodiment of this application;
[0034] Figure 6 This is a structural diagram of the device provided in the embodiments of this application;
[0035] Figure 7 Another device structure diagram provided for an embodiment of this application;
[0036] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0037] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.
[0038] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application are also intended to include the plural forms unless the context clearly indicates otherwise.
[0039] The method provided in the embodiments of this application is described below:
[0040] See Figure 1 , Figure 1This is a flowchart illustrating a method provided in an embodiment of this application. The method is applied to a first transmission node, which is also connected to a second transmission node. Here, the first and second transmission nodes are merely names used for ease of description and are not intended to limit the scope. Taking the first and second transmission nodes as transmission nodes at both ends of a 5GS as an example, in this embodiment, one of the first and second transmission nodes is a DS-TT and the other is an NW-TT; alternatively, the first and second transmission nodes may be two different DS-TT nodes, etc. This embodiment does not specifically limit the scope.
[0041] In this embodiment, the first clock domain of the first transmission node is different from the second clock domain of the second transmission node.
[0042] In addition, in this embodiment, a network system exists between the first transmission node and the second transmission node. For example, the network system is 5GS or other mobile systems, etc., and this embodiment is not specifically limited. In this embodiment, the above-mentioned network system is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device, and the first intermediate device and the second intermediate device have the same third clock domain in the network system.
[0043] Taking the aforementioned network system as 5GS as an example, research on 5GS reveals that User Plane Functions (UPFs) and UEs share a unified clock domain, namely the 5GS clock domain (5GS Timer). Furthermore, 5GS connects to two transmission points through the UPF and UE, respectively, as intermediate devices. For instance, when the first transmission node is NW-TT and the second transmission node is DS-TT, 5GS connects to NW-TT (the first transmission node) through the UPF and to DS-TT (the second transmission node) through the UE. In this case, the first intermediate device is the UPF, the second intermediate device is the UE, and the third time domain is the 5GS clock domain.
[0044] Based on this, in this embodiment, the first transmission node and the second transmission node can respectively use the time information belonging to the aforementioned third time domain, such as the 5GS clock domain, on the connected first intermediate device and the second intermediate device as a reference, and achieve macroscopic period synchronization of the first transmission node and the second transmission node through interaction. The following describes... Figure 1 The steps shown are described with examples.
[0045] like Figure 1 As shown, the process may include the following steps:
[0046] Step 101: When a message sending event is detected, proceed to step 102.
[0047] In this embodiment, there are many ways to implement the message sending event, such as the message sending time arriving (e.g., the sending period arriving, the message sending timer arriving, etc.), external triggering, etc. This embodiment does not specifically define it.
[0048] Step 102: At time point t1[1] in the first clock domain, a constructed first periodic synchronization information message is sent to the second transmission node. This message is used by the second transmission node to adjust the width of the scheduling period when it determines that the width of the scheduling period used by the second transmission node for scheduling the message queue needs to be adjusted based on the first periodic synchronization information message. This ensures that the deviation between the adjusted width of the scheduling period and the width of the scheduling period used by the first transmission node for scheduling the message queue is within a preset synchronization range.
[0049] In this embodiment, the first periodic synchronization information message carries at least: the current period of the first transmission node (denoted as C1_1) and the first time information.
[0050] As an example, the current period is the scheduling period of the message queue currently occupied by the first transmission node, for example, indicating the i-th scheduling period. Here, the message queue is used to store messages belonging to a deterministic flow.
[0051] In another embodiment, the current period is the local system period of the first transmission node. In this embodiment, the system period refers to the total number of scheduling periods that the first transmission node has experienced. Each time a scheduling period is experienced, the system period increases by a set value, such as 1.
[0052] In this embodiment, the first time information is a time point under the third clock domain, which can be determined based on the time information (denoted as t3[1]) corresponding to the aforementioned time point t1[1] in the first clock domain under the third clock domain. t3[1] is a time point under the third clock domain. Taking the 5GS clock domain under 5GS as an example, the first time information can be a time point in the 5GS clock domain of 5GS, which can be determined based on the 5GS time point corresponding to the aforementioned time point t1[1] in 5GS.
[0053] As an example, in this embodiment, considering the transmission delay (denoted as a) of time information between the first transmission node and the aforementioned first intermediate device, the time information t3[1] corresponding to the time point t1[1] in the third clock domain and the time point t1[1] in the first clock domain can be expressed by formula 1:
[0054] t3[1]=t3_1[0]+a+Δt1 (Formula 1)
[0055] In Formula 1, t3_1[0] is the time information of the first transmission node in the third clock domain obtained at time point t1[0] in the first clock domain. This time information is sent at time t3_1[0] in the third clock domain and is obtained by the first transmission node at t1[0]. As an example, t3_1[0] is a time point in the third clock domain. Taking the third clock domain as the 5GS clock domain under 5GS as an example, t3_1[0] can be a time point in the 5GS clock domain of 5GS. t3_1[0] is less than t3[1].
[0056] In Formula 1, Δt1 represents the time difference between time point t1[1] and time point t1[0].
[0057] Based on t3[1] as described above, in one embodiment, the first time information mentioned above can be t3[1].
[0058] As another embodiment, taking into account accuracy, the aforementioned first time information can also be t3[1] and t1. CyclePast The difference. Here, t1 CyclePast It is the difference between time point t1[1] and the start time of the current cycle.
[0059] This concludes the process. Figure 1 The process is shown below.
[0060] pass Figure 1 As shown in the process, in this embodiment, the time information of the third clock domain, such as 5GS time information, under the network system connected to the first and second transmission nodes is used as a reference. The first transmission node sends a first period synchronization information message carrying at least the aforementioned period identifier C1_1 (used to identify the current period of the first transmission node) and first time information (a point in time under the third clock domain). This allows the second transmission node to determine, based on the first period synchronization information message, that the width of the scheduling period used by the second transmission node for scheduling message queues needs to be adjusted. The second transmission node then adjusts the width of the scheduling period used by the second transmission node for scheduling message queues so that the deviation between the adjusted width of the second transmission node and the width of the scheduling period used by the first transmission node for scheduling message queues is within a preset synchronization range. This macroscopically achieves synchronization of the scheduling periods used by the first and second transmission nodes for scheduling message queues, ensuring deterministic network application scenarios with higher jitter accuracy requirements.
[0061] Furthermore, the scheduling cycle synchronization method for the first and second transmission nodes provided in this embodiment no longer relies on strict clock synchronization between the two transmission nodes. It only needs to adjust the width of the scheduling cycle used by one transmission node for scheduling message queues so that the deviation between the adjusted scheduling cycle width and the scheduling cycle width used by the other transmission node for scheduling message queues is within a preset synchronization range. This achieves weak synchronization between the two transmission nodes in deterministic flow transmission, ensuring the normal forwarding of deterministic flow.
[0062] The method provided in this application embodiment is described below from the perspective of the second transmission node:
[0063] See Figure 2 , Figure 2 This is another method flowchart provided for an embodiment of this application. The method is applied to the second transmission node described above.
[0064] like Figure 2 As shown, the process may include the following steps:
[0065] Step 201: At time point t2[1] in the second clock domain, receive the first period synchronization information message sent by the first transmission node and determine the current period of the second transmission node.
[0066] In this embodiment, the current period of the second transmission node is denoted as C2_1.
[0067] As an example, the current period of the second transmission node is the scheduling period in which the second transmission node is currently located (used for scheduling the message queue). For example, if the second transmission node is in the Mth scheduling period at time t2[1], then the current period C2_1 of the second transmission node can be M.
[0068] As another embodiment, the current period of the second transmission node is also the local system period of the second transmission node. For example, if the second transmission node is in the Mth scheduling period at time t2[1], and the local system period recorded by the second transmission node at this time is 2M, then the above C2_1 can be 2M.
[0069] Step 202: Based on the period C1_1 and the first time information carried in the first period synchronization information message, determine the current period of the first transmission node at time point t2[1].
[0070] In this embodiment, the period at time point t2[1] is denoted as C1_2.
[0071] As an example, to facilitate the determination of C1_2, a second time information can be introduced here. The second time information is a time point under the third clock domain, which is determined based on the time information corresponding to the time point t2[1] in the second clock domain under the third clock domain. Since the first time information and the second time information are in the same third clock domain, such as the 5GS clock domain, the period of the first transmission node corresponding to the time point t2[1] can be easily determined based on the time difference between the first time information and the second time information.
[0072] As an example, the determination of the current period of the first transmission node at time point t2[1] in step 202 can be achieved through the following steps a1 to a3:
[0073] Step a1: Calculate the time difference between the second time information and the first time information.
[0074] The determination of the second time information is similar to the determination of the first time information mentioned above. It is based on the time information corresponding to time point t2[1] in the third clock domain. Here, the time information corresponding to time point t2[1] in the third clock domain is denoted as t3[2].
[0075] For example, the first time information is the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain, and correspondingly, the second time information is the time information t3[2] corresponding to the time point t2[1] in the second clock domain under the third clock domain.
[0076] For example, the first time information is t3[1] and the above t1. CyclePast The difference, correspondingly, the second time information is the above-mentioned t3[2] and t2. CyclePast The difference, of which t2 CyclePast It is the difference between the start time of time point t2[1] and the start time of the scheduling period corresponding to C1_2 (such as the Mth scheduling period mentioned above).
[0077] As an example, t3[2] is determined in a similar way to t3[1] above. For example, t3[2] is represented by the following formula 2:
[0078] t3[2]=t3_2[0]+b+Δt2 (Formula 2)
[0079] In Formula 2, t3_2[0] represents the time information obtained by the second transmission node in the third clock domain at time point t2[0] in the second clock domain. This time information is sent at time t3_2[0] in the third clock domain, and the second transmission node obtains it at t2[0]. As an example, in Formula 2, t3_2[0] is a time point in the third clock domain. Taking the third clock domain as the 5GS clock domain under 5GS as an example, t3_2[0] can be a time point in the 5GS clock domain of 5GS. t3_2[0] is less than t3[2].
[0080] In Formula 2, b represents the transmission delay of time information between the second transmission node and the second intermediate device. Δt2 represents the time difference between time point t2[0] and time point t2[1].
[0081] The second time information described above is determined in a similar way to the first time information. Both are in a third clock domain, such as the 5GS clock domain. The time difference between the first time information and the second time information can be directly calculated.
[0082] Step a2: Based on the time difference and the duration of the scheduling cycle of the first transmission node, determine the number of cycles of the scheduling cycle of the first transmission node corresponding to the time difference.
[0083] In this embodiment, the quotient of the time difference and the duration of the scheduling period of the first transmission node can be calculated, and the number of periods can be determined based on the quotient. For example, the positive integer closest to the quotient can be determined as the number of periods.
[0084] In this embodiment, although the above duration is not a fixed value due to synchronization reasons, the variation is very small and the accumulated error has little impact on the calculation, so it can be equivalent to a constant value.
[0085] Step a3: Based on the above number of cycles and C1_1, determine the current cycle (denoted as C1_2) of the first transmission node at time point t2[1].
[0086] As an example, C1_2 can be the scheduling period of the message queue that the first transmission node is currently in at time point t2[1]. Based on this, if C1_1 also represents the scheduling period of the first transmission node, then in step a3, C1_2 can be the sum of C1_1 and the number of periods. For example, if C1_1 is L (identifying the Lth scheduling period of the first transmission node) and the number of periods is 10, then C1_2 is L+10, representing the (L+10)th scheduling period of the first transmission node.
[0087] The specific implementation of step 202 is illustrated by the examples in steps a1 to a3 above. However, these are merely examples and not intended to be limiting.
[0088] Step 203: Based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message, determine whether to adjust the width of the scheduling period of the second transmission node. If so, adjust the width of the scheduling period of the second transmission node so that the deviation between the adjusted scheduling period width and the width of the scheduling period used by the first transmission node for scheduling the message queue is within a preset synchronization range. C2_0 represents the current period when the second transmission node receives the second periodic synchronization information message, and C1_0 represents the current period of the first transmission node when the second transmission node receives the second periodic synchronization information message.
[0089] In this embodiment, if C2_1 represents the scheduling period in which the second transmission node is currently located when it receives the first periodic synchronization information message, then correspondingly, C2_0 represents the scheduling period in which the second transmission node is currently located when it receives the second periodic synchronization information message. Similarly, if C2_1 represents the system period in which the second transmission node is currently located when it receives the first periodic synchronization information message, then correspondingly, C2_0 represents the system period in which the second transmission node is currently located when it receives the second periodic synchronization information message.
[0090] In this embodiment, if C1_2 is the scheduling period of the message queue currently in which the first transmission node is located at the time point t2[1], then correspondingly, C1_0 is the scheduling period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message. Similarly, if C1_2 is the system period in which the first transmission node is located at the time point t2[1], then correspondingly, C1_0 is the system period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message.
[0091] As an example, there are many ways to determine whether to adjust the width of the scheduling period of the second transmission node based on C2_1 and C1_2, such as the implementation described in steps b1 to b3 below:
[0092] Step b1: Calculate the first increment between C2_1 and C2_0.
[0093] As an example, the first increment can be the difference between C2_1 and C2_0. Of course, if there is no record of receiving the second-cycle synchronization information message yet, the current process can be terminated directly.
[0094] Step b2: Calculate the second increment between C1_2 and C1_0.
[0095] As an example, the second increment can be the difference between C1_2 and C1_0.
[0096] Step b3: Determine whether the difference between the first increment and the second increment is within the preset value range. If not, determine to adjust the width of the scheduling period of the second transmission node. If yes, determine not to adjust the width of the scheduling period of the second transmission node.
[0097] In this embodiment, the preset numerical range can be set according to actual needs, and this embodiment is not specifically limited.
[0098] In addition, in this embodiment, adjusting the width of the scheduling period of the second transmission node can also be done by adjusting the duration of the scheduling period of the second transmission node, such as increasing or decreasing the duration of the scheduling period of the second transmission node. Whether to increase or decrease depends mainly on the difference between the first increment and the second increment, which is not limited here. However, regardless of the adjustment, the ultimate goal is to ensure that the scheduling periods of the first transmission node and the second transmission node are synchronized at a macroscopic level.
[0099] It should be noted that, in this embodiment, in order to ensure accuracy, when adjusting the duration of the scheduling period of the second transmission node, the adjustment step size can be limited, and the scheduling period of the first transmission node and the second transmission node can be synchronized macroscopically through gradual adjustment.
[0100] It should also be noted that in this embodiment, when it is determined to adjust the scheduling period of the second transmission node, the records of previously received second period synchronization information messages (such as C2_0, C1_0, etc.) can be directly deleted.
[0101] This concludes the process. Figure 2 The process is shown below.
[0102] pass Figure 2 As can be seen from the process shown, in this embodiment, both transmission nodes use the time information of a third clock domain, such as the 5GS clock domain, as a reference. The first transmission node sends a first-period synchronization information message carrying at least the aforementioned period C1_1 (used to identify the current deterministic flow scheduling period of the first transmission node) and first time information. The second transmission node determines whether to adjust its scheduling period based on the first-period synchronization information message. When it is determined to adjust the scheduling period of the second transmission node, the scheduling period of the second transmission node is adjusted so that the deviation between the adjusted scheduling period and the scheduling period of the first transmission node is within a preset range. This macroscopically achieves synchronization of the scheduling periods of the first and second transmission nodes, ensuring deterministic network application scenarios with higher jitter accuracy requirements.
[0103] Furthermore, based on the implementation of the scheduling cycle synchronization of the first and second transmission nodes, it can be seen that this embodiment no longer relies on strict clock synchronization between the two transmission nodes. It only needs to adjust the width of the scheduling cycle used by one transmission node for scheduling the message queue locally, so that the deviation between the adjusted scheduling cycle width and the scheduling cycle width used by the other transmission node for scheduling the message queue is within a preset synchronization range. This achieves weak synchronization between the two transmission nodes in deterministic flow transmission, ensuring normal forwarding of the deterministic flow and ensuring that the clock domains of the two transmission nodes remain independent of each other.
[0104] The following describes the above method provided in the embodiments of this application using the transmission nodes at both ends of the 5GS as an example:
[0105] Applied to Figure 3 In the network shown, the NW-TT connects to the UPF in the 5GS via a channel. This channel, such as an Ethernet connection or an internal connection, depends on whether the NW-TT and UPF are integrated into the same device or implemented separately; this embodiment does not specifically limit this.
[0106] exist Figure 3 In the network shown, DS-TT connects to the UE in 5GS via 1PPS and TOD time information channels. Figure 4 An example is shown illustrating the clock domain (timer) relationship between NW-TT, 5GS, and DS-TT. 5GS has a unified clock domain (which can be referred to as the 5GS clock domain), and the time of the UPF and UE is synchronized within the 5GS clock domain.
[0107] If the first transmission node is NW-TT and the second transmission node is DS-TT, then:
[0108] like Figure 5 As shown in the timing diagram, NW-TT first obtains the current time information t of the UPF in the 5GS clock domain through a channel (such as an Ethernet connection or internal connection) with the UPF in 5GS. UPF[1] (For example, t3_1[0] above), obtain the time information t UPF[1] Let the elapsed time delay be a, and the timing on NW-TT at this time be t1. NW-TT[1] (That is, t1[0] mentioned above). t1 NW-TT[1] With t UPF[1] The mapping relationship between them is: t1 NW-TT[1] =t UPF[1] +a. In this embodiment, the transmission delay 'a' is fixed and very small, and can be considered a constant.
[0109] NW-TT at t1 NW-TT[2](That is, t1[1] above) sends the first periodic synchronization information message to DS-TT. Here, the first periodic synchronization information message carries C1_1 and t1. NW-TT2UPF[1] (That is, the aforementioned first-time information).
[0110] In this embodiment, C1_1 is used to represent NW-TT at t1 NW-TT[2] The current cycle. For example, C1_1 represents NW-TT at t1. NW-TT[2] This is the second scheduling cycle for scheduling message queues currently in progress, where C1_1 is 2; for example, C1_1 is NW-TT in t1. NW-TT[2] It is currently in the 20th system cycle, and C1_1 is 20.
[0111] As an example, t1 NW-TT2UPF[1] This can be expressed by Formula 3:
[0112] t1 NW-TT2UPF[1] =t UPF[1]+ a+Δt1-t1 CyclePast (Formula 3)
[0113] In formula 3, t1 CyclePast For time point t1 NW-TT[2] The difference between the start time of the period represented by C1_1 above and the start time of the period represented by C1_1 above.
[0114] In Formula 3, Δt1 represents time point t1. NW-TT[2] With time point t1 NW-TT[1] The time difference between them, where the time difference can include the time difference from time point t1 NW-TT[1] up to time point t1 NW-TT[2] The delay includes the construction of the first-cycle synchronization message and the internal processing of the first-cycle synchronization message. In the actual implementation, Δt1 is small. In such a short time, the clock accumulation deviation of NW-TT and 5GS independent timing can be ignored. Therefore, although Δt1 is the timing in the clock domain of NW-TT, it can also be approximated as the timing in the clock domain of 5GS.
[0115] DS-TT at t2 DS-TT[1] (That is, t2[1] above) receives the first periodic synchronization information message sent by NW-TT. At this time, DS-TT receives the first periodic synchronization information message sent by NW-TT at t2. DS-TT[1] The current period is C2_1. In one example, C2_1 could be DS-TT at t2. DS-TT[1] This refers to the current scheduling period of the message queue used for scheduling. For example, in DS-TT at t2... DS-TT[1] If we are currently in the second scheduling cycle, then C2_1 can be 2. In another example, C2_1 can be DS-TT at t2. DS-TT[1]The current system cycle. For example, DS-TT at t2 DS-TT[1] If we are currently in the 20th system cycle, then C2_1 can be 20.
[0116] In this embodiment, DS-TT at time point t2 DS-TT[1] Previously, for example at time point t2 DS-TT[2] (That is, the aforementioned t3_2[0]) accurately obtains the UE's time information t through the 1PPS and TOD time information channels between DS-TT and UE. UE[1] At this point in time t2 DS-TT[2] With 5GS clock domain t UE[1] The mapping relationship between them is: t2 DS-TT[2] =t UE[1] +b. Where b is the value obtained by DS-TT. UE[1] The transmission delay (i.e., the transmission delay between DS-TT and UE).
[0117] In this embodiment, the 5GS clock domain corresponds to the aforementioned time point t2. DS-TT[1] The corresponding time information (i.e., t3[2] mentioned above) can be approximated as: t UE[1] +b+Δt2. Although Δt2 uses the DS-TT clock domain for timing, its frequency offset is negligible due to its small size. Δt2 represents t2. DS-TT[1] With t2 DS-TT[2] difference.
[0118] Then, in conjunction with the above calculation t1 NW-TT2UPF[1] Similarly, t2 can also be calculated in a similar manner in this embodiment. DS-TT2UE[1] (That is, the second time information mentioned above). Therefore, in this embodiment, t2 DS-TT2UE[1] This can be expressed by Formula 4:
[0119] t2 DS-TT2UE[1] =t UE[1] +b+Δt2-t2 CyclePast (Formula 4)
[0120] In formula 4, t2 CyclePast For time point t2 DS-TT[1] The difference between the start time of the period represented by C2_1 above and the start time of the period represented by C2_1 above.
[0121] In this embodiment, DS-TT extracts t1 from the received first-cycle synchronization information message. Nw-TT2UPF[1] , C1_1.
[0122] Then, based on the extracted t1 NW-TT2UPF[1] And the above t2 DS-TT2UE[1] It can be calculated at time point t2 DS-TT[1]The current period C1_2 of NW-TT, for example: first calculate t2 DS-TT2UE[1] With t1 NW-TT2UPF[1] Time difference t between TT_Delay [1]. Because UE and UPF are in the same time domain, therefore t2 DS-TT2UE[1] With t1 NW-TT2UPF[1] It can be calculated directly. The calculated time difference approximates the internal transmission and processing latency of a 5GS signal. Then, further calculations are performed based on this time difference t. TT_Delay [1] and the duration t of the scheduling cycle of NW-TT NW-TTCyleLen [1] Calculate the number of NW-TT scheduling cycles C corresponding to this time difference. TT_Delay [1]. Among them, C TT_Delay [1] can be expressed by the following formula: In this embodiment, t NW-TTCyleLen [1] The change is very small, and the accumulated error based on the change has little impact on the calculation; therefore, t NW-TTCyleLen [1] can be equated to a constant value. Finally, based on the above period number C... TT_Delay [1] and the time point t2 determined by C1_1 above DS-TT[1] The current period of NW-TT is C1_2.
[0123] In this embodiment, C1_1 represents NW-TT at t1 NW-TT[2] The current scheduling period, C1_2 represents t2. DS-TT[1] The current scheduling cycle of NW-TT. C1_2 can be expressed by the following formula 5: C1_2=C1_1+C TT_Delay[1] (Formula 5).
[0124] Thus, the following record was finally obtained: DS-TT at time point t2 DS-TT[1] The current scheduling cycle C2_1, and at time point t2 DS-TT[1] The current scheduling cycle of NW-TT is C1_2. For ease of description, this is recorded as the I-th record.
[0125] If there is a record for the Jth time before the Ith time (all obtained in a similar manner as described above), the Jth record contains the following information: the current scheduling period C2_0 of DS-TT when it receives the second-cycle synchronization information message, and the current scheduling period C1_0 of NW-TT when DS-TT receives the second-cycle synchronization information message.
[0126] Based on this, the period increment ΔC of DS-TT and NW-TT are calculated respectively. DS-TT (that is, the first increment mentioned above) and △C NW-TT (That is, the second increment mentioned above).
[0127] △C DS-TT =C2_1-C2_0;
[0128] △C NW-TT =C1_2–C1_0.
[0129] Judgment △C DS-TT With △C NW-TT If the difference is within the preset range, adjust the DS-TT scheduling cycle. For example, if △C DS-TT Greater than △C NW-TT This increases the duration of the DS-TT scheduling cycle (the extent of the increase depends on ΔC). DS-TT , △C NW-TT (the difference); if △C DS-TT Less than △C NW-TT This reduces the duration of the DS-TT scheduling cycle (the reduction depends on ΔC). DS-TT , △C NW-TT (the difference).
[0130] After that, DS-TT can schedule and forward packets in the packet queue according to the adjusted scheduling period.
[0131] This concludes the description of the embodiments of this application.
[0132] The methods provided in the embodiments of this application have been described above. The systems and apparatus provided in the embodiments of this application are described below:
[0133] This embodiment provides a periodic synchronization system, which includes a first transmission node and a second transmission node; wherein the first transmission node performs the following... Figure 1 The steps in the process shown; the second transmission node performs as follows Figure 2 The steps in the process shown.
[0134] Correspondingly, embodiments of this application also provide, as follows: Figure 6 The diagram shows the device structure. This device is used in the first transmission node. This device corresponds to... Figure 1 The process is shown below.
[0135] like Figure 6 As shown, the device includes:
[0136] The detection unit is used to detect message transmission events;
[0137] The sending unit is used to send a periodic synchronization information message to the second transmission node at time point t1[1] in the first clock domain when the detection unit detects a message sending event. This is so that when the second transmission node determines that the width of the scheduling period used by the second transmission node to schedule the message queue needs to be adjusted based on the first periodic synchronization information message, the width of the scheduling period is adjusted so that the deviation between the width of the adjusted scheduling period and the width of the scheduling period used by the first transmission node to schedule the message queue is within a preset synchronization range.
[0138] The first periodic synchronization information message carries at least: the current period C1_1 of the first transmission node and the first time information; wherein, the current period is the scheduling period of the scheduling message queue in which the first transmission node is currently located, or the current period is the local system period of the first transmission node; the first time information is a time point under the third clock domain, which is determined based on the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain.
[0139] As an example, t3[1] is represented by the following formula:
[0140] t3[1]=t3[0]+a+Δt1;
[0141] Wherein, t3_1[0] represents the time information obtained by the first transmission node in the third clock domain at time point t1[0] in the first clock domain, and time point t1[0] is before time point t1[1]; a represents the transmission delay of time information between the first transmission node and the first intermediate device, and Δt1 represents the time difference between time point t1[1] and time point t1[0].
[0142] As one embodiment, the first time information is the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain; or,
[0143] The first time information is t3[1] and t1. CyclePast The difference, wherein t1 CyclePast It is the difference between the time point t1[1] and the start time of the current cycle.
[0144] As an example, the message sending event includes at least: the message sending time arrives, or an external sending command.
[0145] As one example, the network system is a 5G system 5GS;
[0146] The first transmission node is NW-TT, the first intermediate device is UPF, the second transmission node is DS-TT, and the second intermediate device is UE; or, the first transmission node is DS-TT, the first intermediate device is UE, the second transmission node is [missing information], and the second intermediate device is UPF; or...
[0147] The first transmission node and the second transmission node are two different DS-TTs, and the first intermediate device and the second intermediate device are two different UEs.
[0148] This concludes the process. Figure 6 Structural description of the device shown.
[0149] This application also provides embodiments that... Figure 7 The diagram shows the structure of the device. This device corresponds to... Figure 2 The process is shown. This device is applied to the second transmission node. (As shown...) Figure 7 As shown, the device includes:
[0150] The receiving unit is used to receive the first periodic synchronization information message sent by the first transmission node at time point t2[1] in the second clock domain, and to determine the current period C2_1 of the second transmission node;
[0151] The determining unit is used to determine the current period C1_2 of the first transmission node at time point t2[1] based on the period C1_1 carried by the first periodic synchronization information message and the first time information.
[0152] The adjustment unit is used to determine whether to adjust the width of the scheduling period used by the second transmission node for scheduling message queues locally, based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message. If so, the width of the scheduling period used by the second transmission node for scheduling message queues locally is adjusted so that the deviation between the adjusted scheduling period width and the scheduling period used by the first transmission node for scheduling message queues locally is within a preset synchronization range. C2_0 represents the current period when the second transmission node receives the second periodic synchronization information message, and C1_0 represents the period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message.
[0153] As an example, the determining unit determines the current period C1_2 of the first transmission node at time point t2[1] based on the period C1_1 carried in the first periodic synchronization information message and the first time information, including:
[0154] Calculate the time difference between the second time information and the first time information; the second time information is a time point in the third clock domain, which is determined based on the time information t3[2] corresponding to the time point t2[1] in the second clock domain in the third clock domain;
[0155] Based on the time difference and the duration of the scheduling cycle of the first transmission node, determine the number of cycles of the scheduling cycle of the first transmission node corresponding to the time difference.
[0156] Based on the above number of cycles and C1_1, the current cycle C1_2 of the first transmission node at time point t2[1] is determined.
[0157] As an example, t3[2] is expressed by the following formula: t3[2]=t3_2[0]+b+Δt2;
[0158] Wherein, t3_2[0] represents the time information obtained by the second transmission node in the third clock domain at time point t2[0] in the second clock domain, where time point t2[0] is before time point t2[1]; b represents the transmission delay of time information between the second transmission node and the second intermediate device, and Δt2 represents the time difference between time point t2[1] and time point t2[0].
[0159] As one embodiment, the second time information is t3[2]; or,
[0160] The second time information is t3[2] and t2. CyclePast The difference, wherein t2 CyclePast It is the difference between the time point t2[1] and the start time of the period represented by C2_1.
[0161] As one embodiment, the adjustment unit determines whether to adjust the width of the scheduling period used by the second transmission node for scheduling message queues based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message. This includes:
[0162] Calculate the first increment between C2_1 and C2_0;
[0163] Calculate the second increment between C1_2 and C1_0;
[0164] Determine whether the difference between the first increment and the second increment is within a preset value range. If not, determine to adjust the width of the scheduling period of the second transmission node. If yes, determine not to adjust the width of the scheduling period of the second transmission node.
[0165] As one example, the network system is a 5G system 5GS;
[0166] The first transmission node is NW-TT, the first intermediate device is UPF, the second transmission node is DS-TT, and the second intermediate device is UE; or, the first transmission node is DS-TT, the first intermediate device is UE, the second transmission node is NW-TT, and the second intermediate device is UPF; or...
[0167] The first transmission node and the second transmission node are two different DS-TTs, and the first intermediate device and the second intermediate device are two different UEs.
[0168] This concludes the process. Figure 7 Structural description of the device shown.
[0169] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of this application. Figure 8 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0170] Based on the same application concept as the above method, this application embodiment also provides a machine-readable storage medium storing a plurality of computer instructions, which, when executed by a processor, can implement the method disclosed in the above examples of this application.
[0171] For example, the aforementioned machine-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For instance, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0172] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.
[0173] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0174] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0175] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0176] Furthermore, these computer program instructions can also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in the process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0177] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0178] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A periodic synchronization method, characterized in that, This method is applied to a first transmission node, which is also connected to a second transmission node. The first clock domain of the first transmission node is different from the second clock domain of the second transmission node. The network system between the first and second transmission nodes is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device, respectively. The first and second intermediate devices have the same third clock domain in the network system. The method includes: When a message sending event is detected, a periodic synchronization information message is sent to the second transmission node at time point t1[1] in the first clock domain, so that when the second transmission node determines that the width of the scheduling period used by the second transmission node to schedule the message queue needs to be adjusted based on the first periodic synchronization information message, the width of the scheduling period is adjusted so that the deviation between the width of the adjusted scheduling period and the width of the scheduling period used by the first transmission node to schedule the message queue is within a preset synchronization range. The first periodic synchronization information message carries at least: the current period C1_1 of the first transmission node and the first time information; wherein, the current period is the scheduling period of the scheduling message queue in which the first transmission node is currently located, or the current period is the local system period of the first transmission node; the first time information is a time point under the third clock domain, which is determined based on the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain.
2. The method according to claim 1, characterized in that, The t3[1] is represented by the following formula: t3[1]=t3_1[0]+a+Δt1; Wherein, t3_1[0] represents the time information obtained by the first transmission node at time point t1[0] in the first clock domain under the third clock domain, time point t1[0] is before time point t1[1], a represents the transmission delay of time information between the first transmission node and the first intermediate device, and Δt1 represents the time difference between time point t1[1] and time point t1[0].
3. The method according to claim 1, characterized in that, The first time information is the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain; or, The first time information is t3[1] and t1. CyclePast The difference, wherein t1 CyclePast It is the difference between the time point t1[1] and the start time of the current cycle.
4. The method according to claim 1, characterized in that, The message sending event includes at least: the message sending time arrives, or an external sending command.
5. The method according to claim 1, characterized in that, The network system is a 5G system 5GS; The first transmission node is a network-side TSN converter (NW-TT), the first intermediate device is a user plane function element (UPF), the second transmission node is a device-side TSN converter (DS-TT), and the second intermediate device is a terminal (UE); or, the first transmission node is a device-side TSN converter (DS-TT), the first intermediate device is a UE, the second transmission node is a network-side TSN converter (NW-TT), and the second intermediate device is a UPF; or... The first transmission node and the second transmission node are two different DS-TTs, and the first intermediate device and the second intermediate device are two different UEs.
6. A periodic synchronization method, characterized in that, This method is applied to a second transmission node, which is also connected to a first transmission node. The first clock domain of the first transmission node is different from the second clock domain of the second transmission node. The network system between the first and second transmission nodes is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device. The first and second intermediate devices have the same third clock domain in the network system. The method includes: At time point t2[1] in the second clock domain, the first period synchronization information message sent by the first transmission node is received, and the current period C2_1 of the second transmission node is determined; Based on the period C1_1 and the first time information carried in the first period synchronization information message, the period C1_2 that the first transmission node is currently in at the time point t2[1] is determined; Based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message, it is determined whether to adjust the width of the scheduling period used by the second transmission node for scheduling the message queue locally. If so, the width of the scheduling period used by the second transmission node for scheduling the message queue locally is adjusted so that the deviation between the adjusted scheduling period width and the scheduling period used by the first transmission node for scheduling the message queue is within a preset synchronization range. C2_0 represents the current period when the second transmission node receives the second periodic synchronization information message, and C1_0 represents the period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message.
7. The method according to claim 6, characterized in that, The step of determining the current period C1_2 of the first transmission node at time point t2[1] based on the period C1_1 carried in the first periodic synchronization information message and the first time information includes: Calculate the time difference between the second time information and the first time information; the second time information is a time point under the third clock domain, which is determined based on the time information t3[2] corresponding to the time point t2[1] in the third clock domain and the time point t2[1] in the second clock domain; Based on the time difference and the duration of the scheduling cycle of the first transmission node, determine the number of cycles of the scheduling cycle of the first transmission node corresponding to the time difference. Based on the number of cycles and C1_1, the cycle C1_2 of the first transmission node at time point t2[1] is determined.
8. The method according to claim 7, characterized in that, t3[2] is expressed by the following formula: t3[2]=t3_2[0]+b+Δt2; Wherein, t3_2[0] represents the time information obtained by the second transmission node in the third clock domain at time point t2[0] in the second clock domain, where time point t2[0] is before time point t2[1]; b represents the transmission delay of time information between the second transmission node and the second intermediate device, and Δt2 represents the time difference between time point t2[1] and time point t2[0].
9. The method according to claim 7, characterized in that, The second time information is t3[2]; or, The second time information is t3[2] and t2. CyclePast The difference, wherein t2 CyclePast It is the difference between the time point t2[1] and the start time of the period represented by C2_1.
10. The method according to claim 6, characterized in that, The step of determining whether to adjust the width of the scheduling period used by the second transmission node for scheduling message queues locally, based on C2_1, C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message, includes: Calculate the first increment between C2_1 and C2_0; Calculate the second increment between C1_2 and C1_0; Determine whether the difference between the first increment and the second increment is within a preset value range. If not, determine to adjust the width of the scheduling period of the second transmission node. If yes, determine not to adjust the width of the scheduling period of the second transmission node.
11. The method according to claim 6, characterized in that, The network system is a 5G system 5GS; The first transmission node is a network-side TSN converter (NW-TT), the first intermediate device is a user plane function element (UPF), the second transmission node is a device-side TSN converter (DS-TT), and the second intermediate device is a terminal (UE); or, the first transmission node is a device-side TSN converter (DS-TT), the first intermediate device is a UE, the second transmission node is a network-side TSN converter (NW-TT), and the second intermediate device is a UPF; or... The first transmission node and the second transmission node are two different DS-TTs, and the first intermediate device and the second intermediate device are two different UEs.
12. A periodic synchronization system, characterized in that, The system includes: a first transmission node and a second transmission node; the first clock domain of the first transmission node is different from the second clock domain of the second transmission node; the network system between the first transmission node and the second transmission node is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device; the first intermediate device and the second intermediate device have the same third clock domain in the network system. The first transmission node performs the steps of the method as described in any one of claims 1 to 5; The second transmission node performs the steps of the method as described in any one of claims 6 to 11.
13. A periodic synchronization device, characterized in that, The device is applied to a first transmission node, which is also connected to a second transmission node. The first clock domain of the first transmission node is different from the second clock domain of the second transmission node. The network system between the first transmission node and the second transmission node is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device, respectively. The first intermediate device and the second intermediate device have the same third clock domain in the network system. The device includes: The detection unit is used to detect message transmission events; The sending unit is used to send a periodic synchronization information message to the second transmission node at time point t1[1] in the first clock domain when the detection unit detects a message sending event, so that the second transmission node can adjust the width of the scheduling period when it determines that the width of the scheduling period used by the second transmission node to schedule the message queue needs to be adjusted based on the first periodic synchronization information message, so that the deviation between the width of the adjusted scheduling period and the width of the scheduling period used by the first transmission node to schedule the message queue is within a preset synchronization range. The first periodic synchronization information message carries at least: the current period C1_1 of the first transmission node and the first time information; wherein, the current period is the scheduling period of the scheduling message queue in which the first transmission node is currently located, or the current period is the local system period of the first transmission node; the first time information is a time point under the third clock domain, which is determined based on the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain.
14. The apparatus according to claim 13, characterized in that, The t3[1] is represented by the following formula: t3[1]=t3_1[0]+a+Δt1; Wherein, t3_1[0] represents the time information obtained by the first transmission node at time point t1[0] in the first clock domain under the third clock domain, time point t1[0] is before time point t1[1], a represents the transmission delay of time information between the first transmission node and the first intermediate device, and Δt1 represents the time difference between time point t1[1] and time point t1[0].
15. The apparatus according to claim 13, characterized in that, The first time information is the time information t3[1] corresponding to the time point t1[1] in the first clock domain under the third clock domain; or, The first time information is t3[1] and t1. CyclePast The difference, wherein t1 CyclePast It is the difference between the time point t1[1] and the start time of the current cycle.
16. The apparatus according to claim 13, characterized in that, The message sending event includes at least: the message sending time arrives, or an external sending command.
17. The apparatus according to claim 13, characterized in that, The network system is a 5G system 5GS; The first transmission node is a network-side TSN converter (NW-TT), the first intermediate device is a user plane function element (UPF), the second transmission node is a device-side TSN converter (DS-TT), and the second intermediate device is a terminal (UE); or, the first transmission node is a device-side TSN converter (DS-TT), the first intermediate device is a UE, the second transmission node is a network-side TSN converter (NW-TT), and the second intermediate device is a UPF; or... The first transmission node and the second transmission node are two different DS-TTs, and the first intermediate device and the second intermediate device are two different UEs.
18. A periodic synchronization device, characterized in that, The device is applied to a second transmission node, which is also connected to a first transmission node. The first clock domain of the first transmission node is different from the second clock domain of the second transmission node. The network system between the first transmission node and the second transmission node is connected to the first transmission node through a first intermediate device and to the second transmission node through a second intermediate device, respectively. The first intermediate device and the second intermediate device have the same third clock domain in the network system. The device includes: The receiving unit is used to receive the first periodic synchronization information message sent by the first transmission node at time point t2[1] in the second clock domain, and to determine the current period C2_1 of the second transmission node; The determining unit is used to determine the current period C1_2 of the first transmission node at time point t2[1] based on the period C1_1 carried by the first periodic synchronization information message and the first time information; The adjustment unit is used to determine whether to adjust the width of the scheduling period used by the second transmission node for scheduling message queues locally, based on C2_1 and C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message. If so, the width of the scheduling period used by the second transmission node for scheduling message queues locally is adjusted so that the deviation between the adjusted scheduling period width and the scheduling period used by the first transmission node for scheduling message queues locally is within a preset synchronization range. C2_0 represents the current period when the second transmission node receives the second periodic synchronization information message, and C1_0 represents the period in which the first transmission node is located when the second transmission node receives the second periodic synchronization information message.
19. The apparatus according to claim 18, characterized in that, The determining unit determines the period C1_2 currently in which the first transmission node is located at time point t2[1] based on the period C1_1 carried in the first periodic synchronization information message and the first time information, including: Calculate the time difference between the second time information and the first time information; the second time information is a time point under the third clock domain, which is determined based on the time information t3[2] corresponding to the time point t2[1] in the third clock domain and the time point t2[1] in the second clock domain; Based on the time difference and the duration of the scheduling cycle of the first transmission node, determine the number of cycles of the scheduling cycle of the first transmission node corresponding to the time difference. Based on the number of cycles and C1_1, the cycle C1_2 of the first transmission node at time point t2[1] is determined.
20. The apparatus according to claim 19, characterized in that, t3[2] is expressed by the following formula: t3[2]=t3_2[0]+b+Δt2; Wherein, t3_2[0] represents the time information obtained by the second transmission node in the third clock domain at time point t2[0] in the second clock domain, where time point t2[0] is before time point t2[1]; b represents the transmission delay of time information between the second transmission node and the second intermediate device, and Δt2 represents the time difference between time point t2[1] and time point t2[0].
21. The apparatus according to claim 19, characterized in that, The second time information is t3[2]; or, The second time information is t3[2] and t2. CyclePast The difference, wherein t2 CyclePast It is the difference between the time point t2[1] and the start time of the period represented by C2_1.
22. The apparatus according to claim 18, characterized in that, The adjustment unit determines whether to adjust the width of the scheduling period used by the second transmission node for scheduling message queues based on C2_1, C1_2, and C2_0 and C1_0 determined when the second transmission node previously received the second periodic synchronization information message. This includes: Calculate the first increment between C2_1 and C2_0; Calculate the second increment between C1_2 and C1_0; Determine whether the difference between the first increment and the second increment is within a preset value range. If not, determine to adjust the width of the scheduling period of the second transmission node. If yes, determine not to adjust the width of the scheduling period of the second transmission node.
23. The apparatus according to claim 18, characterized in that, The network system is a 5G system 5GS; The first transmission node is a network-side TSN converter (NW-TT), the first intermediate device is a user plane function element (UPF), the second transmission node is a device-side TSN converter (DS-TT), and the second intermediate device is a terminal (UE); or, the first transmission node is a device-side TSN converter (DS-TT), the first intermediate device is a UE, the second transmission node is a network-side TSN converter (NW-TT), and the second intermediate device is a UPF; or... The first transmission node and the second transmission node are two different DS-TTs, and the first intermediate device and the second intermediate device are two different UEs.
24. An electronic device, characterized in that, The electronic device includes: a processor and a machine-readable storage medium; The machine-readable storage medium stores machine-executable instructions that can be executed by the processor; The processor is configured to execute machine-executable instructions to implement the method according to any one of claims 1 to 11.
25. A machine-readable storage medium, characterized in that, Machine-readable storage media store machine-executable instructions that can be executed by a processor; The machine-executable instructions are executed by a processor to implement the method of any one of claims 1 to 11.
Citation Information
Patent Citations
Scheduling rule determination method and device
CN111698787A
Time delay sensitive network service TSN processing method, device and system
CN111865830A