Clock skew processing methods and apparatuses, computer-readable medium and electronic device
By calculating clock deviations using packet timestamps in 5G systems, a low-cost solution for clock synchronization without increasing hardware costs is achieved, solving the clock synchronization requirements in 5G systems and improving deployment flexibility.
Patent Information
- Application Number
- PCT/CN2024/089441
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-06
- Filing Date
- 2024-04-24
- Publication Date
- 2024-11-14
AI Technical Summary
Time-sensitive communications (TSN) technology introduced in 5G systems requires clock synchronization, but existing approaches rely on specific hardware and network devices, increasing cost and complexity and limiting deployment flexibility.
By adding and processing timestamps in the data packet, the delay information and clock deviation of the transmission link are calculated by using the third device to realize clock synchronization processing, avoiding the increase in hardware costs.
It realizes low-cost clock synchronization, meeting the needs of clock deviation calculation and synchronization without increasing hardware costs, and is suitable for a variety of link types, including asymmetric and symmetric links.
Smart Images

Figure CN2024089441_14112024_PF_FP_ABST
Abstract
Description
Clock deviation processing method, device, computer-readable medium and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 6, 2023, with application number 2023105111283 and entitled “Clock deviation processing method, device, computer-readable medium and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer and communication technology, and in particular to a clock deviation processing method, device, computer-readable medium, and electronic device.
[0003] background
[0004] TSN (Time Sensitive Network), defined by the IEEE (Institute of Electrical and Electronics Engineers), is a network technology that enables time synchronization and deterministic communication between nodes. It is primarily used for real-time communication and network control. TSN's Time Sensitive Communication (TSC) is also being introduced in 5G (fifth-generation) mobile communication systems to enable 5G systems to support industrial automation manufacturing applications requiring precise time control.
[0005] Technical content
[0006] An embodiment of the present application provides a clock deviation processing method, which is executed by a third device, including: receiving a data packet from a first device, wherein the data packet is transmitted from the first device to the third device via the second device, and the data packet contains a first timestamp when the first device sends the data packet; obtaining a local timestamp when the third device receives the data packet, and time information sent by the second device, wherein the time information is associated with the time when the second device receives the data packet; calculating the delay information of a specified link portion in the transmission link between the third device and the first device based on the first timestamp, the time information and the local timestamp; calculating the clock deviation corresponding to the specified link portion based on the delay information of the specified link portion and the link type of the specified link portion; and performing clock synchronization processing on the transmission node corresponding to the specified link portion based on the clock deviation.
[0007] An embodiment of the present application provides a clock deviation processing method, which is executed by a second device, including: receiving a data packet sent by a first device, the data packet containing a first timestamp when the first device sends the data packet; generating time information associated with the time when the data packet is received based on a second timestamp when the data packet is received; sending the time information and the data packet with the first timestamp added thereto to a third device; the first timestamp and the time information are used to calculate the delay information of a specified link portion in the transmission link between the third device and the first device, the delay information being used to calculate the clock deviation corresponding to the specified link portion based on the link type of the specified link portion; obtaining the clock deviation corresponding to the specified link portion; and performing clock synchronization processing on the transmission node corresponding to the specified link portion based on the clock deviation.
[0008] An embodiment of the present application provides a clock deviation processing device, including: a receiving unit, configured to receive a data packet from a first device, wherein the data packet is transmitted from the first device to a third device via a second device, and the data packet contains a first timestamp when the first device sends the data packet; an acquisition unit, configured to obtain a local timestamp when the third device receives the data packet, and time information sent by the second device, wherein the time information is associated with the time when the second device receives the data packet; a calculation unit, configured to calculate the delay information of a specified link portion in the transmission link between the third device and the first device based on the first timestamp, the time information and the local timestamp, and calculate the clock deviation corresponding to the specified link portion based on the delay information of the specified link portion and the link type of the specified link portion; a processing unit, configured to perform clock synchronization processing on the transmission node corresponding to the specified link portion based on the clock deviation.
[0009] An embodiment of the present application provides a clock deviation processing device, including: a receiving unit, configured to receive a data packet sent by a first device, the data packet containing a first timestamp when the first device sends the data packet; a processing unit, configured to generate time information associated with the time when the data packet is received based on a second timestamp when the data packet is received; a sending unit, configured to send the time information and the data packet with the first timestamp added to it to a third device; the first timestamp and the time information are used to calculate the delay information of a specified link portion in the transmission link between the third device and the first device, the delay information is used to calculate the clock deviation corresponding to the specified link portion according to the link type of the specified link portion; the processing unit is configured to obtain the clock deviation corresponding to the specified link portion; and clock synchronization processing is performed on the transmission node corresponding to the specified link portion based on the clock deviation.
[0010] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon. When the computer program is executed by a processor, the clock deviation processing method described in the above embodiment is implemented.
[0011] An embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more computer programs, wherein when the one or more computer programs are executed by the one or more processors, the electronic device implements the clock deviation processing method as described in the above embodiment.
[0012] Embodiments of the present application provide a computer program product, comprising a computer program stored in a computer-readable storage medium. A processor of an electronic device reads and executes the computer program from the computer-readable storage medium, causing the electronic device to perform the clock deviation processing method provided in various embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] FIG1 shows a schematic diagram of the architecture of a 5G system supporting time synchronization in an external time domain;
[0014] FIG2 is a schematic diagram showing an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied;
[0015] FIG3 shows a flowchart of a method for processing clock deviation according to an embodiment of the present application;
[0016] FIG4 shows a flowchart of a method for processing clock deviation according to an embodiment of the present application;
[0017] FIG5 shows a schematic diagram of an uplink transmission process between a UE, a 5G network element, and an AS according to an embodiment of the present application;
[0018] FIG6 shows a schematic diagram of a downlink transmission process between a UE, a 5G network element, and an AS according to an embodiment of the present application;
[0019] FIG7 shows a block diagram of a clock deviation processing apparatus according to an embodiment of the present application;
[0020] FIG8 shows a block diagram of a clock deviation processing apparatus according to an embodiment of the present application;
[0021] FIG9 shows a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present application.
[0022] Implementation Method
[0023] Example embodiments will now be described in a more complete manner with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to these examples; rather, these embodiments are provided to make this application more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art.
[0024] In addition, the features, structures or characteristics described in the present application may be combined in one or more embodiments in any suitable manner. In the following description, there are many specific details so that the embodiments of the present application can be fully understood. However, it will be appreciated by those skilled in the art that when implementing the technical solution of the present application, it is not necessary to use all the detailed features in the embodiments, one or more specific details may be omitted, or other methods, elements, devices, steps, etc. may be adopted.
[0025] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0026] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0027] It should be noted that the term "plurality" used in this document refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0028] With technological advancements, time-sensitive communications (TSN) has been introduced in 5G systems to enable them to support precisely timed industrial automated manufacturing applications. As shown in Figure 1, in a system architecture integrating 5G and TSN, the 5G system is integrated into the TSN system as a TSN bridge. This "logical" TSN bridge includes a TSN translator for user-plane interaction between the TSN and 5G systems. The 5GS (5G system) TSN translator functions include the DS-TT (Device-Side TSN Translator) and the NW-TT (Network TSN Translator). User equipment (UE) in the 5G system connects to one or more ESs (end stations) in the TSN data network (DN) outside the 5G system via DS-TT. These ESs are devices connected to a local area network (LAN) or metropolitan area network (MAN) that serve as the source and / or destination of traffic carried on the LAN or MAN. The UPF (User Plane Function) is connected to one or more ESs in the TSN DN (Data Network) through the NW-TT.
[0029] To implement TSN synchronization, the entire end-to-end 5G system can be viewed as an IEEE 802.1AS time-aware system. As shown in Figure 1, there are two time synchronization domains: the 5G time domain and the TSN time domain. The 5G system has its own time system (such as GPS (Global Positioning System) time). In Figure 1, the 5G GM (5G Grand Master, the 5G internal master clock) is used to represent the 5G system's clock domain (i.e., the 5G time domain).
[0030] The gNB in Figure 1 represents a 5G base station. All devices in the 5G system are synchronized to the 5G clock domain. These devices include the UPF, SMF (Session Management Function), UE (User Equipment), DS-TT, NW-TT, and NG RAN (NG Radio Access Network). The NG interface is the interface between the radio access network and the 5G core network.
[0031] As shown in Figure 1, the external TSN Time Domain clock source is external to the UPF. The ES device on the TSN UE side connects to the UE via DS-TT, accesses the 5G network, and then connects to the external TSN network via the UPF and the NW-TT on the UPF to synchronize time with the TSN clock source.
[0032] In Figure 1, the time synchronization message is sent by TSN GM through downlink (DL) data, that is, it is sent through the user plane of the UE. The downlink data including the time synchronization message of TSN GM first reaches the NW-TT / UPF, enters the 5G system, then reaches the UE and its DS-TT, and finally reaches the ES on the UE side.
[0033] The TSN GM marks the current time in the originTimestamp field of the time synchronization message it sends. When the UE's user plane transmits this time synchronization message, the NW-TT marks the reception time of the downlink data it received in the time synchronization message. The CorrectionField value in the packet is updated to the original CorrectionField value plus the transmission delay between the NW-TT and the Ethernet Bridge Port that sent the message. Before forwarding the downlink data to the ES, the DS-TT subtracts the reception time added by the NW-TT from the current time to obtain the transmission delay of the time synchronization message across the entire 5G system. This delay value is then added to the previous transmission time from the TSN master clock to the NW-TT (in the CorrectionField of the received time synchronization message) to obtain the updated transmission delay value. This updated transmission delay value is then added to the CorrectionField of the time synchronization message (i.e., the total transmission delay of the message), while the previous reception time marked by the NW-TT is removed. The modified time synchronization message is then sent to the ES.
[0034] ES adds the delay value on the time synchronization message marked by DS-TT (i.e., the CorrectionField value on the time synchronization message) to the transmission delay between DS-TT and ES to obtain the total transmission delay of the time synchronization message from the TSN master clock to the ES. This total transmission delay plus the originTimestamp field value on the time synchronization message can be used to obtain a calculated time value, and then its clock is set to this calculated time value, thereby achieving time synchronization between the ES and the TSN GM on the UE side.
[0035] In the above-mentioned time synchronization process, specific hardware devices and network devices, such as TSN converters, need to be added, which undoubtedly increases hardware costs and implementation complexity. This requirement for hardware or dedicated equipment limits the flexibility of actual deployment and increases costs. Based on this, the technical solution of the embodiment of the present application proposes a new clock deviation processing method, which can realize the measurement of clock deviation without increasing hardware costs, meeting the demand for low-cost clock synchronization.
[0036] Specifically, in the system architecture shown in FIG2 , a terminal device 201, a network element device of a mobile communication system, and an application server 202 are communicatively connected, and the terminal device 201 transmits data to the application server 202 via the network element device of the mobile communication system. Taking the example of terminal device 201 transmitting data to application server 202, terminal device 201 adds a first timestamp indicating the time of sending the data packet to be sent, and then sends the data packet to the network element device. After receiving the data packet with the first timestamp added, the network element device generates time information associated with the time of receipt of the data packet based on the second timestamp when the data packet was received, such as using the second timestamp as the time information, or using the difference between the second timestamp and the first timestamp as the time information. The network element device then sends the time information and the data packet with the first timestamp added to the application server 202.
[0037] When the application server 202 receives the data packet, it can obtain the local timestamp when the data packet is received, and then calculate the delay information of the specified link part in the transmission link between the application server 202 and the terminal device 201 based on the first timestamp, the received time information and the local timestamp when the application server receives the data packet, and then calculate the clock deviation corresponding to the specified link part based on the delay information of the specified link part and the link type of the specified link part.
[0038] For example, if the designated link portion is the link between the terminal device 201 and the network element device, and the designated link portion is an asymmetric link, then the second timestamp when the network element device receives the data packet can be determined using the time information, and then the transmission delay of the data packet in the designated link portion can be determined using the difference between the second timestamp and the first timestamp. In order to calculate the clock deviation corresponding to the designated link portion, the transmission delay of the designated link portion can be measured multiple times to infer a delay reference value for the designated link portion, and then the clock deviation corresponding to the designated link portion can be obtained by calculating the difference between the transmission delay during each measurement and the delay reference value.
[0039] If the designated link portion is the link between the terminal device 201 and the network element device, and the designated link portion is a symmetric link, then the second timestamp when the network element device receives the data packet can be determined based on the time information. The transmission delay of the data packet on the designated link portion can then be determined based on the difference between the second timestamp and the first timestamp. The transmission delay information of the data packet from the network element device to the terminal device 201 is then calculated. Furthermore, the clock offset corresponding to the designated link portion can be calculated based on the transmission delay from the terminal device 201 to the network element device and the delay information from the network device to the terminal device 201.
[0040] It should be noted that the terminal device 201 can be a smartphone, tablet computer, laptop computer, desktop computer, smart TV, smart home, vehicle terminal, aircraft, etc.; the application server 202 can be 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. The network element device can be a UPF or PSA (PDU Session Anchor).
[0041] The following is a detailed description of the implementation details of the technical solution of the embodiment of the present application:
[0042] Figure 3 shows a flowchart of a clock deviation processing method according to an embodiment of the present application. This clock deviation processing method is applied to a system including a first device, a second device, and a third device. This clock deviation processing method can be executed by the third device or by other devices with computing and processing capabilities. Referring to Figure 3 , the clock deviation processing method includes at least S310 to S340, which are described in detail below:
[0043] In S310 , a data packet is received from a first device. The data packet is transmitted from the first device to a third device via a second device. The data packet includes a first timestamp when the first device sends the data packet.
[0044] In some embodiments, the first device can add a local timestamp (i.e., a first timestamp) to a data packet when sending data, and the second device can obtain the first timestamp and the local timestamp when receiving the data packet (i.e., a second timestamp) when receiving the data packet.
[0045] In S320, a local timestamp when the third device receives the data packet and time information sent by the second device are obtained, where the time information is associated with the time when the second device receives the data packet.
[0046] In some embodiments, the timestamp of when the second device receives the data packet, i.e., the second timestamp, can be used as the time information, or the difference between the second timestamp and the first timestamp can be used as the time information. In this embodiment, the time information associated with the time when the second device receives the data packet is sent by the second device. This eliminates the need for the second device to write the second timestamp into the data packet, reduces reliance on the capabilities of the second device (e.g., the ability to write data packets), and avoids modifying the processing functions of the second device.
[0047] In S330, delay information of a designated link portion in the transmission link between the third device and the first device is calculated based on the first timestamp, the time information, and a local timestamp when the third device receives the data packet.
[0048] In some embodiments, the designated link portion represents a segment of a transmission link between the third device and the first device, such as a link between the first device and the second device, a link between the second device and the third device, or a link between the first device and the third device.
[0049] In some embodiments, the latency information for a specified link portion can be calculated by subtracting the transmission time of the data packet from the reception time of the data packet. For example, the latency information for a transmission link between a first device and a second device can be calculated by subtracting the first timestamp from the second timestamp when the data packet is received; the latency information for a transmission link between a second device and a third device can be calculated by subtracting the second timestamp from the local timestamp when the data packet is received by the third device; and the latency information for a transmission link between a first device and a third device can be calculated by subtracting the first timestamp from the local timestamp when the data packet is received by the third device.
[0050] In some embodiments, when the time information includes the difference between the second timestamp and the first timestamp, the delay information of the transmission link between the second device and the third device can be obtained by the following steps: obtaining the difference between the local timestamp and the first timestamp by subtracting the first timestamp when the first device sends the data packet from the local timestamp when the data packet is received; and obtaining the delay information of the transmission link between the second device and the third device based on the difference between the local timestamp and the first timestamp and the difference between the second timestamp and the first timestamp included in the time information.
[0051] In S340, a clock deviation corresponding to the designated link portion is calculated according to the delay information of the designated link portion and the link type of the designated link portion, and clock synchronization processing is performed on the transmission node corresponding to the designated link portion according to the clock deviation.
[0052] In some embodiments, the link type of the specified link portion may include an asymmetric link and a symmetric link. A symmetric link means that the communication link between the two communicating parties is symmetrical, that is, the communication link through which one party sends data to the other party and the communication link through which the party receives the data sent by the other party are the same communication link, or the communication distance, line length and other parameters of the two communication links are the same, thereby making the delays in the two data transmission directions (i.e., sending data and receiving data) basically the same. An asymmetric link means that the paths to and from a certain node are inconsistent, and the delays in the two data transmission directions (i.e., sending data and receiving data) are different, resulting in asymmetry in the communication links through which one party sends data to the other party and the party receives the data sent by the other party.
[0053] In some embodiments, if the link type of the specified link portion is an asymmetric link, then the process of calculating the clock deviation corresponding to the specified link portion based on the delay information of the specified link portion and the link type of the specified link portion can be: calculating the clock deviation corresponding to the specified link portion based on the delay information statistics of the specified link portion in different data transmission directions.
[0054] Specifically, for example, the delay reference information of the specified link part in the specified data transmission direction (such as the uplink transmission direction or the downlink transmission direction) can be obtained, and the delay reference information is obtained by statistically analyzing the historical delay information of the specified link part in the specified data transmission direction; then, the first difference between the delay information of the specified link part in the specified data transmission direction and the delay reference information in the specified data transmission direction is calculated, and the first difference is used as the clock deviation corresponding to the specified link part in the specified data transmission direction.
[0055] In some embodiments, the delay reference information in a specified data transmission direction is obtained by inferring the delay information using a specific algorithm after obtaining multiple historical delay information for a specified link portion in the specified data transmission direction. For example, the average of multiple historical delay information is calculated and used as the delay reference information. Alternatively, the delay reference information can be inferred based on multiple historical delay information using machine learning.
[0056] In some embodiments, in the case of an asymmetric link, the first device may be a terminal device, the second device may be a network element device of a mobile communication system, and the third device may be an application server; that is, the terminal device sends a data packet to the application server via the network element device. In this application scenario, the designated data transmission direction of the designated link portion may include at least one of the following: a transmission link from the terminal device to the network element device, a transmission link from the network element device to the application server, or a transmission link from the terminal device to the application server.
[0057] In some embodiments, in the case of an asymmetric link, the first device may be an application server, the second device may be a network element device of a mobile communication system, and the third device may be a terminal device; that is, the application server sends a data packet to the terminal device via the network element device. In this application scenario, the designated data transmission direction of the designated link portion may include at least one of the following: a transmission link from the application server to the network element device, a transmission link from the network element device to the terminal device, or a transmission link from the application server to the terminal device.
[0058] In some embodiments, if the link type of the specified link portion is a symmetric link, then the process of calculating the clock deviation corresponding to the specified link portion based on the delay information of the specified link portion and the link type of the specified link portion can be: obtaining the delay information of the specified link portion when transmitting data in reverse; calculating the clock deviation corresponding to the specified link portion based on the delay information of the specified link portion and the delay information of the specified link portion when transmitting data in reverse.
[0059] In some embodiments, the process of calculating the clock deviation corresponding to the designated link portion based on the delay information of the designated link portion and the delay information of the designated link portion during reverse data transmission may include calculating a second difference between the delay information of the designated link portion and the delay information of the designated link portion during reverse data transmission, and then using half of the second difference as the clock deviation corresponding to the designated link portion. Alternatively, the second difference may be compensated accordingly (e.g., increased or decreased by a certain value) to determine the clock deviation corresponding to the designated link portion.
[0060] In some embodiments, in the case of a symmetric link, one of the first and third devices is a terminal device, and the other is an application server; the second device may be a network element device of a mobile communication system. In this application scenario, the designated link portion includes at least one of the following: a transmission link between the terminal device and the network element device, a transmission link between the network element device and the application server, or a transmission link between the terminal device and the application server.
[0061] In some embodiments, after calculating the clock deviation corresponding to a specified link portion, clock synchronization processing can be performed on the transmission node corresponding to the specified link portion based on the clock deviation. For example, if the clock deviation between a first device and a second device is calculated, clock synchronization processing can be performed on the first device and the second device based on the clock deviation between the first device and the second device.
[0062] The following further describes the implementation details of the technical solution of the embodiment of the present application from the perspective of the second device in conjunction with FIG4 :
[0063] FIG4 shows a flowchart of a clock deviation processing method according to an embodiment of the present application. The clock deviation processing method is applied to a system including a first device, a second device, and a third device. The clock deviation processing method can be executed by the second device. Referring to FIG4 , the clock deviation processing method includes at least S410 to S430, which are described in detail as follows:
[0064] In S410 , a data packet sent by a first device is received, where the data packet includes a first timestamp when the first device sends the data packet.
[0065] In some embodiments, when sending data, the first device may add a local timestamp (ie, a first timestamp) to the data packet and then send it to the second device.
[0066] In S420 , time information associated with the time when the data packet is received is generated according to the second timestamp when the data packet is received.
[0067] In some embodiments, the timestamp when the second device receives the data packet, that is, the second timestamp, can be used as the time information, or the difference between the second timestamp and the first timestamp can be used as the time information.
[0068] In S430, time information associated with the time when the data packet is received and the data packet with a first timestamp added are sent to a third device; the first timestamp and time information are used to calculate the delay information of a specified link portion in the transmission link between the third device and the first device, and the delay information is used to calculate the clock deviation corresponding to the specified link portion based on the link type of the specified link portion.
[0069] In this embodiment, the time information associated with the time when the second device receives the data packet is sent by the second device, which can reduce the dependence on the capabilities of the second device (such as the data packet writing capability).
[0070] In some embodiments, the process of calculating the delay information of a specified link portion in the transmission link between the third device and the first device, and calculating the clock deviation corresponding to the specified link portion based on the delay information and the link type of the specified link portion can refer to the technical solutions of the aforementioned embodiments and will not be repeated here.
[0071] In some embodiments, the second device may also obtain the clock deviation corresponding to the specified link portion, and then perform clock synchronization processing with the transmission node corresponding to the specified link portion based on the clock deviation. For example, if the clock deviation between the first device and the second device is calculated, the clock synchronization processing of the first device and the second device may be performed based on the clock deviation between the first device and the second device.
[0072] In the technical solution provided in the embodiments of the present application, the delay information of the specified link part in the transmission link between the third device and the first device is calculated based on the first timestamp when the first device sends the data packet, the time information associated with the time of receiving the data packet sent by the second device, and the local timestamp when the third device receives the data. Then, based on the delay information of the specified link part and the link type of the specified link part, the clock deviation corresponding to the specified link part is calculated, so that the clock deviation can be estimated through the time nodes in the transmission process of the data packet between the first device, the second device and the third device. In this way, the clock deviation can be measured without modifying the processing function of the second device (such as a 5G network element) and without increasing the hardware cost, thereby meeting the demand for low-cost clock synchronization.
[0073] The following, in conjunction with Figures 5 to 7, takes a specific application scenario as an example to describe in detail the implementation details of the technical solution of the embodiment of the present application:
[0074] In a specific application scenario, one node among the UE (User Equipment, also known as the terminal device), 5G network element, and AS (Application Server) can be selected as the master clock node, while the clocks of other nodes are used as slave clocks to achieve time synchronization. In some embodiments, the 5G network element can be a UPF or PSA.
[0075] In some embodiments, when a data packet is sent between the UE and the AS, the UE and the AS can insert timestamp information into the data packet to record the time information of the data packet transmission, and the 5G network element can provide the relevant time information when the data packet is detected to the outside through capability exposure, and then determine the clock error by calculating the timestamp. Taking into account the asymmetry of the cellular network, the uplink and downlink can be detected and counted separately. For example, the calculation process of the uplink (i.e., the UE sends a data packet to the AS) can be placed in the AS, and the calculation process of the downlink (i.e., the AS sends a data packet to the UE) can be placed in the UE.
[0076] As shown in Figure 5, the uplink transmission process between the UE, 5G network elements, and the AS includes:
[0077] S501: UE, 5G network element and AS establish an IP data connection.
[0078] S502, the UE generates a data packet and adds a timestamp T1 when sending the packet.
[0079] S503: The data packet is sent from the UE to the AS.
[0080] S504, the 5G network element detects the data packet sent by the UE to the AS, obtains the local timestamp T2, and calculates the value of T2-T1.
[0081] S505a: The data packet is sent from the 5G network element to the AS.
[0082] S505b, the 5G network element sends T2-T1 to the AS.
[0083] It should be noted that S505a and S505b can be executed simultaneously; S505a can be executed first and then S505b; or S505b can be executed first and then S505a. In this embodiment, the example of a 5G network element sending T2-T1 as time information to the AS is used for explanation. In other embodiments of the present application, the 5G network element can also send T2 as time information to the AS.
[0084] S506 , after receiving the data packet, the AS calculates the delay information T3-T1 according to the local timestamp T3, and calculates T3-T2 according to (T3-T1)-(T2-T1).
[0085] Among them, T2-T1 represents the latency information in the uplink direction within the 5G network; T3-T2 represents the latency information in the uplink direction between the 5G network gateway and the AS.
[0086] As shown in Figure 6, the downlink transmission process between the UE, 5G network elements, and the AS includes:
[0087] S601: UE, 5G network element and AS establish an IP data connection.
[0088] S602, the AS generates a data packet and adds a timestamp T4 when sending the packet.
[0089] S603: The data packet is sent from the AS to the UE.
[0090] S604, the 5G network element detects the data packet sent by the AS to the UE, obtains the local timestamp T5, and calculates T5-T4.
[0091] S605a: The data packet is sent from the 5G network element to the UE.
[0092] S605b, the 5G network element sends T5-T4 to the UE.
[0093] It should be noted that S605a and S605b can be executed simultaneously; S605a can be executed first and then S605b; S605b can also be executed first and then S605a. In this embodiment, the description is based on the example of a 5G network element sending T5-T4 as time information to the UE. In other embodiments of the present application, the 5G network element can also send T5 as time information to the UE.
[0094] S606 , after receiving the data packet, the UE calculates the delay information T6 - T4 according to the local timestamp T6 , and calculates T6 - T5 according to ( T6 - T4 ) - ( T5 - T4 ) .
[0095] Among them, T5-T4 represents the downlink delay information between the AS and the 5G network gateway; T6-T5 represents the downlink delay information within the 5G network.
[0096] S607 , after calculating the delay information T6-T5 and T5-T4, the UE returns the delay information T6-T5 and T5-T4 to the AS to facilitate the calculation of the clock offset.
[0097] In some embodiments, based on the technical solutions of the embodiments shown in FIG. 5 and FIG. 6 , asymmetric links and symmetric links may be distinguished when calculating clock deviations, as follows:
[0098] For asymmetric links:
[0099] The delay information of the corresponding link can be collected multiple times in the above manner, and then the link delay value can be obtained through statistical analysis or other methods. After the link delay value (i.e., the above delay reference information) is obtained, the deviation between the delay information obtained each time and the delay value can be calculated as the clock deviation.
[0100] For example, for the link between the UE and the 5G network element, the delay information of the corresponding link (i.e., T2-T1) is collected multiple times through the above method, and then the delay value △t1 of the link is obtained through statistical analysis and other methods. Then, after each time the delay information T2-T1 of the link is detected, the deviation from the delay value △t1 can be calculated as the clock deviation of the link between the UE and the 5G network element.
[0101] Similarly, for the link between the 5G network element and the AS, the delay information of the corresponding link (i.e., T3-T2) is collected multiple times using the above method, and then the link delay value △t2 is obtained through statistical analysis and other methods. Then, after each detection of the link delay information T3-T2, the deviation from the delay value △t2 can be calculated as the clock deviation of the link between the 5G network element and the AS.
[0102] For the link between the UE and the AS, the delay information of the corresponding link (i.e., T3-T1) is collected multiple times using the above method. Then, the link delay value Δt3 is obtained through statistical analysis and other methods. Then, after each detection of the link delay information T3-T1, the deviation from the delay value Δt3 can be calculated as the clock deviation of the link between the UE and the AS.
[0103] For the link between the AS and the 5G network element, the delay information of the corresponding link (i.e., T5-T4) is collected multiple times using the above method. Then, the link delay value △t4 is obtained through statistical analysis and other methods. Then, after each detection of the link delay information T5-T4, the deviation from the delay value △t4 can be calculated as the clock deviation of the link between the AS and the 5G network element.
[0104] For the link between the 5G network element and the UE, the delay information of the corresponding link (i.e., T6-T5) is collected multiple times using the above method. Then, the link delay value △t5 is obtained through statistical analysis and other methods. Then, after each detection of the link delay information T6-T5, the deviation from the delay value △t5 can be calculated as the clock deviation of the link between the 5G network element and the UE.
[0105] For the link between the AS and the UE, the delay information of the corresponding link (i.e., T6-T4) is collected multiple times using the above method. Then, the link delay value Δt6 is obtained through statistical analysis and other methods. Then, after each detection of the link delay information T6-T4, the deviation from the delay value Δt6 can be calculated as the clock deviation of the link between the AS and the UE.
[0106] For symmetric links:
[0107] Assume that the communication link between terminals A and B is symmetric. The local timestamp when terminal A sends packet 1 is t1, and the local timestamp when terminal B receives packet 1 is t2. The local timestamp when terminal B sends packet 2 is t3, and the local timestamp when terminal A receives packet 2 is t4. Assuming the clock skew between terminals A and B is x, then theoretically, the local timestamp when terminal B receives packet 1 is t2' = t2 + x, and the local timestamp when terminal B sends packet 2 is t3' = t3 + x.
[0108] Considering that the links between ends A and B are symmetrical, t2'-t1=t4-t3'. Substituting t2'=t2+x and t3'=t3+x, we can obtain: t2-t1+x=t4-t3-x, and then we can obtain x=1 / 2[(t4-t3)-(t2-t1)].
[0109] Based on this and Figure 5 and Figure 6, it can be obtained that the clock error between the UE and the 5G network element is estimated to be 1 / 2[(T6-T5)-(T2-T1)]; the clock error between the UE and the AS is estimated to be 1 / 2[(T6-T4)-(T3-T1)]; and the clock error between the 5G network element and the AS is estimated to be 1 / 2[(T5-T4)-(T3-T2)].
[0110] The technical solution of the above-mentioned embodiment of the present application does not rely on dedicated hardware for clock synchronization measurement. Instead, it estimates the time points of data packets during transmission between the terminal, the network, and the application server. This solution can achieve synchronization between the UE, the network, and the server without relying on TSN-specific hardware and network equipment, meeting the demand for low-cost clock synchronization (such as the need for millimeter-level lightweight and low-cost synchronization solutions in scenarios such as smart transportation).
[0111] The following describes an apparatus embodiment of the present application, which can be used to implement the clock deviation processing method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the clock deviation processing method of the present application.
[0112] Figure 7 shows a block diagram of a clock deviation processing device according to an embodiment of the present application. The clock deviation processing device is applied to a system including a first device, a second device and a third device. The clock deviation processing device can be set in the third device and can also be applied to other devices with computing and processing functions.
[0113] 7 , a clock deviation processing apparatus 800 according to an embodiment of the present application includes: a receiving unit 802 , an acquiring unit 804 , and a calculating unit 806 .
[0114] Among them, the receiving unit 802 is configured to receive a data packet from a first device, which is transmitted by the first device to a third device via a second device, and the data packet contains a first timestamp when the first device sends the data packet; the acquiring unit 804 is configured to acquire a local timestamp when the third device receives the data packet, and the time information sent by the second device, and the time information is associated with the time when the second device receives the data packet; the calculating unit 806 is configured to calculate the delay information of a specified link portion in the transmission link between the third device and the first device based on the first timestamp, the time information and the local timestamp, and calculate the clock deviation corresponding to the specified link portion based on the delay information of the specified link portion and the link type of the specified link portion.
[0115] In some embodiments of the present application, based on the aforementioned solution, the link type includes an asymmetric link; and the calculation unit 806 calculates the clock deviation corresponding to the designated link portion based on the delay information of the designated link portion and the link type of the designated link portion, including:
[0116] If the link type of the designated link portion is the asymmetric link, the clock deviation corresponding to the designated link portion is calculated according to the statistical values of the delay information of the designated link portion in different data transmission directions.
[0117] In some embodiments of the present application, based on the aforementioned solution, the process of the calculation unit 806 calculating the clock deviation corresponding to the designated link portion based on the delay information statistics of the designated link portion in different data transmission directions includes: obtaining delay reference information of the designated link portion in the designated data transmission direction, where the delay reference information is obtained by statistically analyzing historical delay information of the designated link portion in the designated data transmission direction;
[0118] Calculate a first difference between the delay information of the specified link portion in the specified data transmission direction and the delay reference information in the specified data transmission direction, and use the first difference as the clock deviation corresponding to the specified link portion in the specified data transmission direction.
[0119] In some embodiments of the present application, based on the aforementioned scheme, the first device includes a terminal device, the second device includes a network element device of a mobile communication system, and the third device includes an application server; the specified data transmission direction of the specified link part includes at least one of the following: a transmission link from the terminal device to the network element device, a transmission link from the network element device to the application server, and a transmission link from the terminal device to the application server.
[0120] In some embodiments of the present application, based on the aforementioned scheme, the first device includes an application server, the second device includes a network element device of a mobile communication system, and the third device includes a terminal device; the specified data transmission direction of the specified link part includes at least one of the following: a transmission link from the application server to the network element device, a transmission link from the network element device to the terminal device, and a transmission link from the application server to the terminal device.
[0121] In some embodiments of the present application, based on the aforementioned scheme, the link type includes a symmetric link; the calculation unit 806 calculates the clock deviation corresponding to the specified link part according to the delay information of the specified link part and the link type of the specified link part, including: if the link type of the specified link part is the symmetric link, obtaining the delay information of the specified link part when transmitting data in reverse; calculating the clock deviation corresponding to the specified link part according to the delay information of the specified link part and the delay information of the specified link part when transmitting data in reverse.
[0122] In some embodiments of the present application, based on the aforementioned solution, the calculation unit 806 calculates the clock deviation corresponding to the designated link portion based on the delay information of the designated link portion and the delay information of the designated link portion when transmitting data in the reverse direction, including:
[0123] Calculating a second difference between the delay information of the designated link portion and the delay information of the designated link portion when transmitting data in the reverse direction;
[0124] Half of the second difference is used as the clock deviation corresponding to the designated link portion.
[0125] In some embodiments of the present application, based on the aforementioned scheme, one of the first device and the third device is a terminal device, and the other is an application server; the second device includes a network element device of a mobile communication system; the designated link part includes at least one of the following: a transmission link between the terminal device and the network element device, a transmission link between the network element device and the application server, and a transmission link between the terminal device and the application server.
[0126] In some embodiments of the present application, based on the aforementioned scheme, the clock deviation processing device 800 also includes: a processing unit, configured to, after calculating the clock deviation corresponding to the specified link part, perform clock synchronization processing on the transmission node corresponding to the specified link part according to the clock deviation.
[0127] In some embodiments of the present application, based on the aforementioned solution, clock synchronization is performed between the first device, the second device, and the third device via a precision time protocol.
[0128] In some embodiments of the present application, based on the aforementioned scheme, the time information includes at least one of the following: a second timestamp when the second device receives the data packet, and a difference between the second timestamp when the second device receives the data packet and the first timestamp.
[0129] FIG8 shows a block diagram of a clock deviation processing apparatus according to an embodiment of the present application. The clock deviation processing apparatus is applied to a system including a first device, a second device, and a third device. The clock deviation processing apparatus can be set in the second device.
[0130] 8 , a clock deviation processing apparatus 900 according to an embodiment of the present application includes: a receiving unit 902 , a processing unit 904 , and a sending unit 906 .
[0131] Among them, the receiving unit 902 is configured to receive a data packet sent by a first device, and the data packet contains a first timestamp when the first device sends the data packet; the processing unit 904 is configured to generate time information associated with the time when the data packet is received based on a second timestamp when the data packet is received; the sending unit 906 is configured to send the time information and the data packet with the first timestamp added to it to a third device; wherein, the first timestamp and the time information are used to calculate the delay information of a specified link portion in the transmission link between the third device and the first device, and the delay information is used to calculate the clock deviation corresponding to the specified link portion based on the link type of the specified link portion.
[0132] In some embodiments of the present application, based on the aforementioned solution, the processing unit 904 is further configured to: obtain the clock deviation corresponding to the specified link portion; and perform clock synchronization processing on the transmission node corresponding to the specified link portion according to the clock deviation.
[0133] FIG9 shows a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
[0134] It should be noted that the computer system 1000 of the electronic device shown in FIG9 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0135] As shown in Figure 9, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 into the random access memory (RAM) 1003, such as the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 1003. The CPU 1001, ROM 1002 and RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0136] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 1008 including a hard disk; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. Removable media 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1010 as needed, so that computer programs read therefrom can be installed into the storage section 1008 as needed.
[0137] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1009, and / or installed from a removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the various functions defined in the system of the present application are executed.
[0138] It should be noted that the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the 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 component, 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 (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0139] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and a computer program.
[0140] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.
[0141] As another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiments, or may exist independently without being incorporated into the electronic device. The computer-readable medium carries one or more computer programs, and when the one or more computer programs are executed by the electronic device, the electronic device implements the method described in the above embodiments.
[0142] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the application, the features and functions of two or more modules or units described above can be concretized in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0143] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application 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-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes 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 embodiments of the present application.
[0144] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0145] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A clock deviation processing method, performed by a third device, comprising: receiving a data packet from a first device, wherein the data packet is transmitted by the first device to a third device via a second device, and the data packet includes a first timestamp when the first device sends the data packet; Acquire a local timestamp when the data packet is received, and time information sent by the second device, where the time information is associated with the time when the second device receives the data packet; Calculate, according to the first timestamp, the time information and the local timestamp, delay information of a specified link portion in a transmission link between the third device and the first device; Calculating a clock deviation corresponding to the designated link portion according to the delay information of the designated link portion and the link type of the designated link portion; Clock synchronization processing is performed on the transmission nodes corresponding to the designated link portion according to the clock deviation.
2. The clock deviation processing method according to claim 1, wherein: The link type includes an asymmetric link; Calculating a clock deviation corresponding to the designated link portion according to the delay information of the designated link portion and the link type of the designated link portion includes: If the link type of the designated link portion is the asymmetric link, the clock deviation corresponding to the designated link portion is calculated according to the statistical value of the delay information of the designated link portion in different data transmission directions.
3. The clock deviation processing method according to claim 2, wherein: Calculating a clock deviation corresponding to the designated link portion according to the delay information statistics of the designated link portion in different data transmission directions includes: Acquire delay reference information of the specified link portion in a specified data transmission direction, where the delay reference information is obtained by statistically analyzing historical delay information of the specified link portion in the specified data transmission direction; A first difference between the delay information of the designated link portion in the designated data transmission direction and the delay reference information in the designated data transmission direction is calculated, and the first difference is used as the clock deviation corresponding to the designated link portion in the designated data transmission direction.
4. The clock deviation processing method according to claim 3, wherein: The first device includes a terminal device, the second device includes a network element device of a mobile communication system, and the third device includes an application server; The designated data transmission direction of the designated link part includes at least one of the following: a transmission link from the terminal device to the network element device, a transmission link from the network element device to the application server, and a transmission link from the terminal device to the application server.
5. The clock deviation processing method according to claim 3, wherein: The first device includes an application server, the second device includes a network element device of a mobile communication system, and the third device includes a terminal device; The designated data transmission direction of the designated link part includes at least one of the following: a transmission link from the application server to the network element device, a transmission link from the network element device to the terminal device, and a transmission link from the application server to the terminal device.
6. The clock deviation processing method according to claim 1, wherein: The link type includes a symmetric link; Calculating a clock deviation corresponding to the designated link portion according to the delay information of the designated link portion and the link type of the designated link portion includes: If the link type of the designated link portion is the symmetric link, obtaining delay information of the designated link portion when transmitting data in the reverse direction; The clock deviation corresponding to the designated link portion is calculated according to the delay information of the designated link portion and the delay information of the designated link portion when transmitting data in the reverse direction.
7. The clock deviation processing method according to claim 6, wherein: Calculating a clock deviation corresponding to the designated link portion according to the delay information of the designated link portion and the delay information of the designated link portion when transmitting data in the reverse direction includes: Calculating a second difference between the delay information of the designated link portion and the delay information of the designated link portion when transmitting data in the reverse direction; Half of the second difference is used as the clock deviation corresponding to the designated link portion.
8. The clock deviation processing method according to claim 6, wherein: One of the first device and the third device is a terminal device, and the other is an application server; the second device includes a network element device of a mobile communication system; The designated link portion includes at least one of the following: a transmission link between the terminal device and the network element device, a transmission link between the network element device and the application server, and a transmission link between the terminal device and the application server.
9. The clock deviation processing method according to any one of claims 1 to 8, wherein: The time information includes at least one of the following: A second timestamp when the second device receives the data packet, and a difference between the second timestamp when the second device receives the data packet and the first timestamp.
10. The clock deviation processing method according to claim 9, wherein: When the time information includes a difference between the second timestamp and the first timestamp, calculating the delay information of a specified link portion in the transmission link between the third device and the first device according to the first timestamp, the time information, and the local timestamp includes: Obtain a difference between the local timestamp and the first timestamp by subtracting the first timestamp when the first device sends the data packet contained in the data packet from the local timestamp when the data packet is received; The delay information of the transmission link between the second device and the third device is obtained according to the difference between the local timestamp and the first timestamp, and the difference between the second timestamp and the first timestamp included in the time information.
11. A clock deviation processing method, performed by a second device, comprising: Receiving a data packet sent by a first device, wherein the data packet includes a first timestamp when the first device sends the data packet; generating time information associated with the time when the data packet is received according to a second timestamp when the data packet is received; sending the time information and the data packet with the first timestamp added thereto to a third device; the first timestamp and the time information are used to calculate the delay information of a specified link portion in the transmission link between the third device and the first device, and the delay information is used to calculate the clock deviation corresponding to the specified link portion according to the link type of the specified link portion; Obtaining a clock deviation corresponding to the specified link portion; as well as Perform clock synchronization processing on the transmission node corresponding to the designated link portion according to the clock deviation.
12. A clock deviation processing device, comprising: a receiving unit, configured to receive a data packet from a first device, wherein the data packet is transmitted by the first device to a third device via a second device, and the data packet includes a first timestamp when the first device sends the data packet; an acquiring unit, configured to acquire a local timestamp when the third device receives the data packet, and time information sent by the second device, wherein the time information is associated with a time when the second device receives the data packet; a calculating unit configured to calculate, according to the first timestamp, the time information and the local timestamp, the delay information of a designated link portion in the transmission link between the third device and the first device, and to calculate, according to the delay information of the designated link portion and the link type of the designated link portion, the clock deviation corresponding to the designated link portion; The processing unit is configured to perform clock synchronization processing on the transmission node corresponding to the designated link part according to the clock deviation.
13. The clock deviation processing device according to claim 12, wherein: The link type includes an asymmetric link; The calculation unit is configured to: if the link type of the designated link portion is the asymmetric link, calculate the clock deviation corresponding to the designated link portion according to the delay information statistics of the designated link portion in different data transmission directions.
14. The clock deviation processing device according to claim 13, wherein: The calculation unit is configured to obtain delay reference information of the specified link portion in a specified data transmission direction, where the delay reference information is obtained by statistically analyzing historical delay information of the specified link portion in the specified data transmission direction; A first difference between the delay information of the designated link portion in the designated data transmission direction and the delay reference information in the designated data transmission direction is calculated, and the first difference is used as the clock deviation corresponding to the designated link portion in the designated data transmission direction.
15. The clock deviation processing device according to claim 12, wherein: The link type includes a symmetric link; The calculation unit is configured to: if the link type of the designated link portion is the symmetric link, obtain the delay information of the designated link portion when transmitting data in the reverse direction; The clock deviation corresponding to the designated link portion is calculated according to the delay information of the designated link portion and the delay information of the designated link portion when transmitting data in the reverse direction.
16. The clock deviation processing device according to any one of claims 12 to 15, wherein: The time information includes at least one of the following: A second timestamp when the second device receives the data packet, and a difference between the second timestamp when the second device receives the data packet and the first timestamp.
17. A clock deviation processing device, comprising: A receiving unit, configured to receive a data packet sent by a first device, wherein the data packet includes a first timestamp when the first device sends the data packet; a processing unit configured to generate time information associated with a time when the data packet is received according to a second timestamp when the data packet is received; a sending unit, configured to send the time information and the data packet added with the first timestamp to a third device; The said A timestamp and the time information are used to calculate delay information of a specified link portion in a transmission link between the third device and the first device, and the delay information is used to calculate a clock deviation corresponding to the specified link portion according to a link type of the specified link portion; The processing unit is configured to obtain a clock deviation corresponding to the designated link portion; Perform clock synchronization processing on the transmission node corresponding to the designated link portion according to the clock deviation.
18. A computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the clock deviation processing method according to any one of claims 1 to 11 is implemented.
19. An electronic device comprising: one or more processors; A memory for storing one or more computer programs, which, when executed by the one or more processors, enables the electronic device to implement the clock deviation processing method as described in any one of claims 1 to 11.
20. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the clock deviation processing method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Asymmetrically-delayed time synchronization method and system
CN103929293A
Dual-board system time synchronization method
CN105376043A
Synchronization method and device
CN111211852A
Communication method and device
CN112205028A
Time synchronization method, system and related device
CN114222360A
