WO2018177320A1 - Procédé de traitement d'horloge, dispositif de réseau d'accès et dispositif terminal - Google Patents
Procédé de traitement d'horloge, dispositif de réseau d'accès et dispositif terminal Download PDFInfo
- Publication number
- WO2018177320A1 WO2018177320A1 PCT/CN2018/080836 CN2018080836W WO2018177320A1 WO 2018177320 A1 WO2018177320 A1 WO 2018177320A1 CN 2018080836 W CN2018080836 W CN 2018080836W WO 2018177320 A1 WO2018177320 A1 WO 2018177320A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- timestamp
- signal
- data packet
- terminal device
- access network
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 114
- 238000012545 processing Methods 0.000 claims description 255
- 230000008569 process Effects 0.000 claims description 60
- 238000004364 calculation method Methods 0.000 claims description 31
- 230000005540 biological transmission Effects 0.000 claims description 22
- 238000012937 correction Methods 0.000 claims description 20
- 240000007643 Phytolacca americana Species 0.000 claims 2
- 235000009074 Phytolacca americana Nutrition 0.000 claims 2
- 238000013461 design Methods 0.000 description 79
- 238000012795 verification Methods 0.000 description 65
- 230000006870 function Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000010267 cellular communication Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3297—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a clock processing method, an access network device, and a terminal device.
- multiple intelligent robots work together. At this time, multiple robots need to have unified clock information to achieve coordinated work.
- Multiple robots typically perform clock synchronization using the Precision Clock Synchronization Protocol standard of the Network Measurement and Control System (Institute of Electrical and Electronics Engineers 1588, IEEE 1588).
- the IEEE 1588 protocol is a clock synchronization scheme designed for the application layer of a wired network.
- the IEEE1588 protocol uses the data packets of the application layer to transmit synchronization information, and needs to be performed multiple times in the synchronization process.
- the data packet interaction therefore, can not effectively utilize the time-frequency resources of the wireless network, thereby leading to the inability to achieve high-accuracy clock synchronization.
- the embodiment of the invention provides a clock processing method, an access network device and a terminal device, so as to realize efficient use of time-frequency resources of the wireless network and provide high-precision clock synchronization.
- an embodiment of the present invention provides a clock processing method, including: determining a first timestamp for transmitting a first signal to a terminal device; and receiving, by the terminal device, a second signal corresponding to the first signal, determining Receiving a fourth timestamp of the second signal; transmitting, to the terminal device, a data packet including the first timestamp and the fourth timestamp, where the data packet is used to cause the terminal device to adjust the local clock of the terminal device.
- the two time stamps are combined into one transmission, and the time-frequency resources of the wireless network are utilized efficiently, thereby improving the accuracy of clock synchronization.
- the first timestamp is the time point at which the first signal starts or completes the setting step in the sending process
- the fourth timestamp is the time point at which the second signal starts or completes the setting step in the receiving process.
- the configuration information of the first signal to be transmitted and the configuration information of the second signal are configured; the first signal is sent to the terminal device according to the configuration information of the first signal; and the detection is performed according to the configuration information of the second signal.
- the second signal to be received, configuring the configuration information of the first signal and the second signal ensures the certainty of the first signal and the second signal and the uniqueness of the second signal.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the fourth timestamp is corrected for time processing, the recording time deviation of the timestamp is corrected, and the accuracy of the fourth timestamp is improved.
- the first time stamp and the fourth time stamp are compensated for time processing, which increases the hardware processing time of signal reception and/or transmission, improves the accuracy of the time stamp, and prevents leakage of device information.
- the correction time processing includes: correcting the time offset between the recording of the fourth timestamp and the actual arrival time of the second signal.
- the compensation time processing includes at least one of increasing an average time from recording the first timestamp to the access network device transmitting the first signal, and reducing receiving the second signal from the access network device to the record The average time of the fourth timestamp.
- the first timestamp and the fourth timestamp are used to generate a first type of data packet, and the first type of data packet is sent to the terminal device; or the first timestamp and the fourth timestamp are weighted Processing to generate a second type of data packet, and sending a second type of data packet to the terminal device; or performing differential processing on the first timestamp and the fourth timestamp to generate a third type of data packet, and sending the third type to the terminal device
- the data packet processes the first timestamp and the fourth timestamp in various forms, which increases the reliability of the timestamp, thereby improving the accuracy of clock synchronization.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match and verifying whether the third timestamp and the fourth timestamp are
- the second timestamp is a timestamp of the second signal received by the terminal device
- the third timestamp is a timestamp of the second signal sent by the terminal device to the access network device to ensure the authenticity of the timestamp, thereby improving the accuracy of the clock synchronization. degree.
- an embodiment of the present invention provides a clock processing method, including: receiving a first signal sent by an access network device, determining a second timestamp for receiving the first signal, and transmitting a first signal to the access network device. Corresponding second signal, determining a third timestamp for transmitting the second signal; receiving a data packet sent by the access network device and including the first timestamp and the fourth timestamp; adjusting the local clock according to the data packet; wherein, A timestamp is a timestamp of the first signal sent by the access network device, and the fourth timestamp is a timestamp of the second signal received by the access network device.
- the two time stamps are combined into one transmission, and the time-frequency resources of the wireless network are utilized efficiently, thereby improving the accuracy of clock synchronization.
- the configuration information of the first signal and the configuration information of the second signal sent by the access network device are received; the first signal to be received is detected according to the configuration information of the first signal; and the configuration according to the second signal
- the information transmits a second signal corresponding to the first signal to the access network device, and configures configuration information of the first signal and the second signal to ensure the certainty of the first signal and the second signal and the uniqueness of the second signal.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process;
- the third timestamp is the start of the sending of the second signal or the completion of the setting step in the sending process.
- the second time stamp is corrected for time processing, the time stamp recording deviation is corrected, and the accuracy of the fourth time stamp is improved.
- the second time stamp and the third time stamp are compensated for time processing, the hardware processing time of signal reception and/or transmission is increased, the time stamp accuracy is improved, and device information leakage is also prevented.
- the correction time processing includes: correcting the time offset between the recording of the second timestamp and the actual arrival time of the first signal.
- the compensation time processing includes at least one of reducing the average time from receiving the first signal from the terminal device to recording the second time stamp, and increasing the transmission of the second signal from recording the third timestamp to the terminal device Average time.
- the data packet is parsed to determine the type and timestamp information corresponding to the data packet; wherein, the type of the data packet is one of the following types: the first type generated by the first timestamp and the fourth timestamp a data packet, a second type of data packet generated by weighting the first timestamp and the fourth timestamp, and a third type of data packet generated by differentially processing the first timestamp and the fourth timestamp; timestamp information
- the information processed by the first timestamp and the fourth timestamp is included, the type of the data packet is determined, and the formula for calculating the clock deviation is conveniently determined.
- the data packet further includes verification information; parsing the data packet to obtain verification information; and verifying whether the timestamp information matches according to the verification information; wherein the verification information is used to verify at least one of: verifying the first timestamp and Whether the second timestamp matches, and verifying whether the third timestamp and the fourth timestamp match, ensuring the authenticity of the timestamp, thereby improving the accuracy of clock synchronization.
- the calculation formula of the corresponding clock deviation is determined according to the type of the data packet; the local clock is determined relative to the access network based on the calculation formula, the timestamp information, the second timestamp and the third timestamp.
- a third aspect of the present invention provides a clock processing method, including: determining a first timestamp for transmitting a first signal to a terminal device; receiving a second signal corresponding to the first signal sent by the terminal device, determining Receiving a fourth timestamp of the second signal; receiving a data packet that is sent by the terminal device and including the second timestamp and the third timestamp; determining, according to the data packet, the first timestamp, and the fourth timestamp, the terminal device relative to the access network
- the clock deviation of the device is sent to the terminal device, and the clock deviation is used to instruct the terminal device to adjust the local clock of the terminal device according to the clock deviation; wherein, the second timestamp is a timestamp of the terminal device receiving the first signal, and the third time
- the time stamp is used to send the second signal to the terminal device, and the two time stamps are combined into one transmission, thereby effectively utilizing the time-frequency resources of the wireless network, thereby improving the accuracy of the clock synchronization.
- the data packet is parsed to determine the type and timestamp information corresponding to the data packet; wherein the data packet type is one of the following types: the first type generated by the first timestamp and the fourth timestamp a data packet, a second type of data packet generated by weighting the first timestamp and the fourth timestamp, and a third type of data packet generated by differentially processing the first timestamp and the fourth timestamp;
- the information includes information processed by the second timestamp and the third timestamp, determining the type of the data packet, and facilitating determination of a formula for calculating the clock deviation.
- the data packet further includes verification information; parsing the data packet to obtain verification information; and verifying whether the timestamp information matches according to the verification information; wherein the verification information is used to verify at least one of: verifying the first timestamp and Whether the second timestamp matches, and verifying whether the third timestamp and the fourth timestamp match; the second timestamp is a timestamp of the terminal device receiving the second signal, and the third timestamp is the terminal device transmitting the first time to the access network device
- the time stamp of the two signals ensures the authenticity of the time stamp, thereby improving the accuracy of clock synchronization.
- the calculation formula of the corresponding clock deviation is determined according to the type of the data packet; and the clock of the terminal device is determined based on the calculation formula, the timestamp information, the first timestamp and the fourth timestamp.
- the clock deviation of the clock of the network access device determines the corresponding clock deviation formula according to different packet types, thereby improving the accuracy of calculating the clock deviation.
- the configuration information of the first signal to be transmitted and the configuration information of the second signal are configured; the first signal is sent to the terminal device according to the configuration information of the first signal; and the detection is performed according to the configuration information of the second signal.
- the second signal to be received, configuring the configuration information of the first signal and the second signal ensures the certainty of the first signal and the second signal and the uniqueness of the second signal.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the first timestamp is the time point at which the first signal starts or completes the setting step in the sending process
- the fourth timestamp is the time point at which the second signal starts or completes the setting step in the receiving process.
- the fourth timestamp is corrected for time processing, the recording time deviation of the timestamp is corrected, and the accuracy of the fourth timestamp is improved.
- the first time stamp and the fourth time stamp are compensated for time processing, which increases the hardware processing time of signal reception and/or transmission, improves the accuracy of the time stamp, and prevents leakage of device information.
- the correction time processing includes correcting the time offset of the fourth timestamp from which the second signal record is received and the actual arrival time of the second signal.
- the compensation time processing includes at least one of increasing an average time from recording the first timestamp to the access network device transmitting the first signal, and reducing receiving the second signal from the access network device to the record The average time of the fourth timestamp.
- a fourth aspect of the present invention provides a clock processing method, including: receiving a first signal sent by an access network device, determining a second timestamp for receiving the first signal, and transmitting the first time to the access network device. Determining a second signal corresponding to the signal, determining a third timestamp for transmitting the second signal; transmitting, to the access network device, a data packet including the second timestamp and the third timestamp; and determining, by the receiving access network device, the data packet according to the data packet Clock skew, adjusting the local clock based on the clock skew.
- receiving configuration information of the first signal and the second signal sent by the access network device detecting, according to the configuration information of the first signal, whether there is a first signal to be received; and arranging according to the configuration information of the second signal
- the network access device sends the second signal corresponding to the first signal, and combines the two time stamps into one transmission, thereby efficiently utilizing the time-frequency resources of the wireless network, thereby improving the accuracy of the clock synchronization.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process;
- the third timestamp is the start of the sending of the second signal or the completion of the setting step in the sending process.
- the second time stamp is corrected for time processing, the time stamp recording deviation is corrected, and the accuracy of the fourth time stamp is improved.
- the second time stamp and the third time stamp are compensated for time processing, the hardware processing time of signal reception and/or transmission is increased, the time stamp accuracy is improved, and device information leakage is also prevented.
- the correction time processing includes correcting the time offset of the second timestamp from which the first signal record is received and the actual arrival time of the first signal.
- the compensation time processing includes at least one of reducing the average time from receiving the first signal from the terminal device to recording the second time stamp, and increasing the transmission of the second signal from recording the third timestamp to the terminal device Average time.
- the second timestamp and the third timestamp generate a first type of data packet, and send a first type of data packet to the access network device; or, for the second timestamp and the third timestamp Performing a weighting process to generate a second type of data packet, and transmitting a second type of data packet to the access network device; or performing differential processing on the second timestamp and the third timestamp to generate a third type of data packet, and accessing
- the network device sends the third type of data packet, and processes the first timestamp and the fourth timestamp in various forms, which increases the reliability of the timestamp, thereby improving the accuracy of clock synchronization.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying the third timestamp and the fourth timestamp Whether the first timestamp is the timestamp of the first signal sent by the access network device, and the fourth timestamp is the timestamp of the second signal received by the access network device, ensuring the authenticity of the timestamp, thereby improving the accuracy of the clock synchronization. degree.
- a fifth aspect of the present invention is an access network device, where the access network device includes: a processing unit, configured to determine a first timestamp for transmitting a first signal to the terminal device; and a receiving unit, configured to receive, by the terminal device, a second signal corresponding to the first signal; the processing unit is further configured to determine a fourth timestamp for receiving the second signal, and the sending unit is configured to send, to the terminal device, the first timestamp and the fourth timestamp A data packet, which is used to enable the terminal device to adjust the local clock of the terminal device.
- the first timestamp is the time point at which the first signal starts or completes the setting step in the sending process; the fourth timestamp is the time point at which the second signal starts or completes the setting step in the receiving process. .
- the processing unit is further configured to configure configuration information of the first signal and the second signal to be sent, and the sending unit is further configured to send the first signal to the terminal device according to the configuration information of the first signal;
- the processing unit is further configured to detect, according to the configuration information of the second signal, whether there is a second signal to be received.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the processing unit is further configured to perform a modified time processing on the fourth time stamp.
- the processing unit is further configured to perform compensation time processing on the first timestamp and the fourth timestamp.
- the correction time processing includes: correcting the time offset between the recording of the fourth timestamp and the actual arrival time of the second signal.
- the compensation time processing includes at least one of increasing an average time from recording the first timestamp to the access network device transmitting the first signal, and reducing receiving the second signal from the access network device to the record The average time of the fourth timestamp.
- the processing unit is further configured to generate the first type of data packet by using the first timestamp and the fourth timestamp, and control the sending unit to send the first type of data packet to the terminal device; or Performing a weighting process on the first timestamp and the fourth timestamp to generate a second type of data packet, and controlling the sending unit to send the second type of data packet to the terminal device; or performing differential processing on the first timestamp and the fourth timestamp
- the third type of data packet and controls the sending unit to send a third type of data packet to the terminal device.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying the third timestamp and the fourth timestamp Whether the second timestamp is a timestamp of the terminal device receiving the second signal, and the third timestamp is a timestamp of the second signal sent by the terminal device to the access network device.
- a terminal device includes: a receiving unit, configured to receive a first signal sent by an access network device, where the processing unit is configured to determine a second timestamp for receiving the first signal; a sending unit, configured to send a second signal corresponding to the first signal to the access network device; the processing unit is further configured to determine a third timestamp for transmitting the second signal, and the receiving unit is further configured to receive, by the access network device, a data packet including a first timestamp and a fourth timestamp; the processing unit is further configured to adjust the local clock according to the data packet; wherein the first timestamp is a timestamp of the first signal sent by the access network device, and fourth The timestamp is a timestamp of the access network device receiving the second signal.
- the receiving unit is further configured to receive the configuration information of the first signal and the configuration information of the second signal that are sent by the access network device
- the processing unit is further configured to detect, according to the configuration information of the first signal, whether
- the transmitting unit is further configured to send, according to the configuration information of the second signal, the second signal corresponding to the first signal to the access network device.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process; the third timestamp is the start of the sending of the second signal or the completion of the setting step in the sending process.
- the processing unit is further configured to perform a modified time processing on the second time stamp.
- the processing unit is further configured to perform compensation time processing on the second timestamp and the third timestamp.
- the correction time processing includes: correcting the time offset between the recording of the second timestamp and the actual arrival time of the first signal.
- the compensation time processing includes at least one of reducing the average time from receiving the first signal from the terminal device to recording the second time stamp, and increasing the transmission of the second signal from recording the third timestamp to the terminal device Average time.
- the processing unit is further configured to parse the data packet, and determine the type and timestamp information corresponding to the data packet; wherein the data packet type is one of the following types: by the first timestamp and the fourth time Stamping the generated first type of data packet, weighting the first time stamp and the fourth time stamp to generate a second type of data packet, and performing a differential processing on the first time stamp and the fourth time stamp to generate a third type
- the timestamp information includes information processed after the first timestamp and the fourth timestamp.
- the data packet further includes verification information; the processing unit is further configured to parse the data packet to obtain verification information; and the processing unit is further configured to verify, according to the verification information, whether the timestamp information matches; wherein the verification information is used for Verify at least one of the following: verify that the first timestamp and the second timestamp match, and verify that the third timestamp and the fourth timestamp match.
- the processing unit is further configured to determine, when the verification matches, determine a calculation formula of the corresponding clock deviation according to the type of the data packet; and determine, based on the calculation formula, the timestamp information, the second timestamp, and the third timestamp.
- the clock skew of the local clock relative to the access network device clock; the local clock is adjusted based on the clock skew.
- a seventh aspect of the present invention provides an access network device, where the access network device includes: a processing unit, configured to determine a first timestamp for transmitting a first signal to the terminal device; and a receiving unit, configured to receive, by the terminal device, a second signal corresponding to the first signal; the processing unit is further configured to determine a fourth timestamp for receiving the second signal, and the receiving unit is further configured to receive, by the terminal device, the second timestamp and the third timestamp a processing unit, configured to determine, according to the data packet, the first timestamp and the fourth timestamp, a clock offset of the terminal device relative to the access network device; and a sending unit, configured to send the clock offset to the terminal device, the clock The deviation is used to instruct the terminal device to adjust the local clock of the terminal device according to the clock offset; wherein the second timestamp is a timestamp of the terminal device receiving the first signal, and the third timestamp is a timestamp of the second signal sent by the terminal device.
- the processing unit is further configured to parse the data packet, and determine the type and timestamp information corresponding to the data packet; wherein the type of the data packet is one of the following types: the first timestamp and the fourth time a first type of data packet generated by the timestamp, a second type of data packet generated by weighting the first timestamp and the fourth timestamp, and a third time generated by differential processing of the first timestamp and the fourth timestamp A type of data packet; the timestamp information includes information processed for the second timestamp and the third timestamp.
- the data packet further includes verification information; the processing unit is further configured to parse the data packet to obtain verification information; and the processing unit is further configured to verify, according to the verification information, whether the timestamp information matches; wherein the verification information is used for Verifying at least one of: verifying whether the first timestamp and the second timestamp match, and verifying whether the third timestamp and the fourth timestamp match; the second timestamp is a timestamp of the terminal device receiving the second signal, and the third The timestamp is a timestamp of the second signal sent by the terminal device to the access network device.
- the processing unit is further configured to: when the verification matches, determine a calculation formula of the corresponding clock deviation according to the type of the data packet; determine the terminal based on the calculation formula, the timestamp information, the first timestamp, and the fourth timestamp.
- the processing unit is further configured to configure configuration information of the first signal to be sent and configuration information of the second signal
- the sending unit is further configured to send the first signal to the configuration information according to the first signal.
- the processing unit is further configured to detect, according to the configuration information of the second signal, whether there is a second signal to be received.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the first timestamp is the time point at which the first signal starts or completes the setting step in the sending process; the fourth timestamp is the time point at which the second signal starts or completes the setting step in the receiving process. .
- the processing unit is further configured to perform a modified time processing on the fourth time stamp.
- the processing unit is further configured to perform compensation time processing on the first timestamp and the fourth timestamp.
- the correction time processing includes correcting the time offset of the fourth timestamp from which the second signal record is received and the actual arrival time of the second signal.
- the compensation time processing includes at least one of increasing an average time from recording the first timestamp to the access network device transmitting the first signal, and reducing receiving the second signal from the access network device to the record The average time of the fourth timestamp.
- a terminal device includes: a receiving unit, configured to receive a first signal sent by an access network device; and a processing unit, configured to determine a second timestamp for receiving the first signal; a sending unit, configured to send a second signal corresponding to the first signal to the access network device; the processing unit is further configured to determine a third timestamp for transmitting the second signal; and the receiving unit is further configured to access the network device Transmitting a data packet including a second timestamp and a third timestamp; the processing unit is further configured to receive a clock offset determined by the access network device according to the data packet, and adjust the local clock according to the clock offset.
- the receiving unit is further configured to receive the configuration information of the first signal and the configuration information of the second signal that are sent by the access network device
- the processing unit is further configured to detect, according to the configuration information of the first signal, whether
- the transmitting unit is further configured to send, according to the configuration information of the second signal, the second signal corresponding to the first signal to the access network device.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process; the third timestamp is the start of the sending of the second signal or the completion of the setting step in the sending process.
- the processing unit is further configured to perform a modified time processing on the second time stamp.
- the processing unit is further configured to perform compensation time processing on the second timestamp and the third timestamp.
- the correction time processing includes correcting the time offset of the second timestamp from which the first signal record is received and the actual arrival time of the first signal.
- the compensation time processing includes at least one of reducing the average time from receiving the first signal from the terminal device to recording the second time stamp, and increasing the transmission of the second signal from recording the third timestamp to the terminal device Average time.
- the processing unit is further configured to generate a first type of data packet by using the second timestamp and the third timestamp, and control the sending unit to send the first type of data packet to the access network device; or Weighting the second timestamp and the third timestamp to generate a second type of data packet, and controlling the sending unit to send the second type of data packet to the access network device; or, for the second timestamp and the third timestamp Performing differential processing to generate a third type of data packet, and controlling the transmitting unit to send a third type of data packet to the access network device.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying the third timestamp and the fourth timestamp Whether the first timestamp is a timestamp of the first signal sent by the access network device, and the fourth timestamp is a timestamp of the second signal received by the access network device.
- an embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program, the program being executed by a processor to implement the steps of the method described in the above aspects.
- an embodiment of the present invention provides a communication system, where the system includes the terminal device and the access network device.
- an embodiment of the present invention provides a computer readable storage medium, configured to store computer software instructions used by the access network device, where the method includes: configured to control the access network device to perform the foregoing aspects. program of.
- an embodiment of the present invention provides a computer readable storage medium for storing computer software instructions for the terminal device, which includes a program designed to control the terminal device to perform the above aspects.
- the clock processing scheme provided by the embodiment of the present invention sends the first timestamp and the fourth timestamp to the terminal device in a combined manner, and the terminal device calculates the clock offset, or uses the second timestamp and the third timestamp to The combined mode is sent to the access network device in one time, and the access network device calculates the clock offset; the utilization of the time-frequency resource is improved, and the time-frequency resources of the wireless network are more efficiently utilized to implement clock synchronization.
- FIG. 1 is a scene diagram of an application of a clock processing scheme according to an embodiment of the present invention
- FIG. 2 is a schematic interaction diagram of a method for clock processing according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a method for clock processing according to an embodiment of the present invention.
- FIG. 4 is a schematic interaction diagram of another method for clock processing according to an embodiment of the present invention.
- FIG. 5 is a schematic flowchart of another method for clock processing according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of an access network device according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of an entity of an access network device according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
- FIG. 9 is a schematic diagram of a physical structure of a terminal device according to an embodiment of the present invention.
- FIG. 1 is a schematic diagram of an application scenario of a clock processing scheme according to an embodiment of the present invention. As shown in FIG. 1, specifically, an access network device and one or more terminal devices are included.
- the access network device and the terminal device may be connected in a wireless manner; wherein the access network device has a standard clock, and the access network device is responsible for providing a standard clock reference to the terminal device.
- the clock processing method of the embodiment of the present invention can be applied to a wireless cellular communication network system (such as a Global System of Mobile communication (GSM) system, a Wideband Code Division Multiple Access (WCDMA) system, and a long-term In a Long Term Evolution (LTE), 5G communication system, a high-precision standard clock is provided for a terminal device connected to the wireless cellular communication network system.
- GSM Global System of Mobile communication
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- 5G communication system a high-precision standard clock is provided for a terminal device connected to the wireless cellular communication network system.
- the access network device in the embodiment of the present invention may have multiple types, but the access network device must have a standard clock, such as an Evolved Node B (eNB), a relay station, etc.; the terminal device may include any type of Equipment, such as User Equipment (UE), robots, etc.
- eNB Evolved Node B
- UE User Equipment
- the robot first accesses the access network device, and then obtains the standard clock information through the access network device.
- the step of the robot acquiring the standard clock information through the access network device is as follows:
- the access network device sends a signal to the robot and records the transmission timestamp T 1 of the signal; the robot receives the signal and records the reception time stamp T 2 , and returns a signal to the access network device, and records the transmission of the signal. Time stamp T 3 ; the access network device receives the signal and records the reception timestamp T 4 .
- the access network device Between the access network device sends a signal to the robot and the robot returns a signal to the access network device, the access network device needs to send the signal transmission timestamp T 1 recorded by the access network device to the robot; the access network device records After receiving the time stamp T 4 , the time stamp T 4 is also sent to the robot.
- the robot calculates the clock deviation of the robot from the access network device according to the received time stamp T 1 and the time stamp T 4 and the time stamp T 2 and the time stamp T 3 recorded by the robot end, and then adjusts the robot local according to the clock deviation. clock.
- FIG. 2 is a schematic interaction diagram of a method for clock processing according to an embodiment of the present invention. As shown in Figure 2, the method includes the following steps:
- the access network device determines a first timestamp for transmitting the first signal to the terminal device.
- the terminal device establishes information interaction with the access network device by accessing the access network device.
- the access network device transmits a first signal to the terminal device, transmitting a first recording signal to make a first timestamp T 1, wherein the access network device may be, but is not limited to: a base station, a relay station; first signal may be , but not limited to timing reference signals such as Sync Signal.
- the terminal device receives the first signal, and determines a second timestamp for receiving the first signal.
- the terminal device After transmitting a first signal to the device the access network terminal device, the terminal device receives the first signal, and determining a second timestamp of the first received signal for T 2, wherein the first signal may be, but is not limited to a timing reference signal, Such as Sync Signal.
- the terminal device sends a second signal corresponding to the first signal to the access network device, and determines a third timestamp for transmitting the second signal.
- a terminal device to a second signal corresponding to a first access network device transmits a signal, transmits a second signal to determine a third time stamp as T 3, wherein the second signal may be, but is not limited to a timing reference signal, such as Delay_req Signal.
- the first signal is a downlink signal, that is, a signal sent by the access network device to the terminal device
- the second signal is an uplink signal, that is, the terminal device sends the signal to the access network device.
- the timing relationship between the downlink signal and the uplink signal can be set according to the actual situation, such as in the order of S201-S202-S203, and in the order of S201-S203-S202 (ie, issued on the access network device)
- the terminal device sends the second signal to the access network device, which is not specifically limited in this embodiment.
- the access network device receives the second signal sent by the terminal device, and determines a fourth timestamp for receiving the second signal.
- the terminal device to the access network device transmits a second signal, the second access network device receives the signal, and determines a fourth time stamp the received second signal for T 4, wherein the second signal may be, but is not limited to the timing reference Signal, such as Delay_req Signal.
- the access network device sends, to the terminal device, a data packet that includes a first timestamp and a fourth timestamp.
- the terminal device adjusts a local clock of the terminal device according to the data packet.
- the first timestamp and the fourth timestamp are sent to the terminal device in the form of a data packet, and the data packet may be processed in multiple manners, such as directly
- the first timestamp and the fourth timestamp are combined, and the first timestamp and the fourth timestamp are weighted and combined, and the like.
- the terminal device After receiving the data packet, the terminal device processes the data packet, determines timestamp information that includes the first timestamp and the fourth timestamp in the data packet, and combines the second timestamp and the third timestamp recorded by the terminal device.
- the terminal device determines a processing result of the local clock and the access network device clock, and the terminal device adjusts the local clock according to the processing result to synchronize the local clock with the clock of the access network device.
- the clock processing method provided by the embodiment of the present invention sends the first timestamp and the fourth timestamp to the terminal device in a combined manner in one time, thereby improving the utilization rate of the time-frequency resource, thereby using the wireless more efficiently.
- the method shown in FIG. 3 further includes:
- the access network device configures configuration information of the first signal to be sent and configuration information of the second signal.
- the access network device configures the first signal to be sent according to the information of the terminal device (such as the device parameter of the terminal device).
- the configuration information of the two signals includes at least one of a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the period of the signal is the transmission period of the first signal or the second signal, such as 50 ms;
- the type of the signal may be, but not limited to, a Cell-Specific Reference Signal (CRS), and a Demodulation Reference Signal (DeModulation Reference Signal) , DMRS), Sounding Reference Signal (SRS), LTE/LTE-A system signals such as Random Access CHannel (RACH), or reference signals that can be multiplexed in 5G NR, or A specially designed reference signal for clock synchronization;
- the type of the antenna port for transmitting the signal may be, but not limited to, a signal transmission port 0 to 3 corresponding to the CRS, a signal transmission port 7 to 14 corresponding to the DMRS, and a signal transmission port corresponding to the SRS. 10, 20, 21, 40, 41, 42, 43;
- the frame information corresponding to the signal is the frame number and the subframe number corresponding to the signal, such as the CRS transmitted when the 5th subframe of each even frame is configured as the Sync Signal
- the CRS can be used as the first signal (ie, the downlink signal), the SRS and the RACH can be used as the second signal (ie, the uplink signal), and other forms of the signal can be used as the first signal or the first signal.
- the second signal is not specifically limited in this embodiment.
- the access network device after configuring the configuration information of the first signal and the second signal, sends the configuration information to the terminal device accessing the access network device, where the type of the configuration information may be, but is not limited to,
- the initial message where the initial message is the dynamic or semi-static scheduling information, may be, but is not limited to, broadcast, multicast, or unicast by the access network device to send the configuration information to the terminal device.
- the access network device sends the first signal to the terminal device according to the configuration information of the first signal.
- the access network device determines, according to the configuration information of the first signal, the sending period of the first signal, the type of the signal, the sending port, and the frame information corresponding to the signal, and sends the first signal to the terminal device according to the convention, such as the first signal Sync Signal
- the CRS the transmission period is 50 ms
- the transmission port is 0 to 3.
- the frame information corresponding to the appointment signal is that the CRS is transmitted in the fifth subframe of the even frame.
- the manner in which the access network device sends the first signal may be, but is not limited to, broadcast or multicast.
- configuring the configuration information of the first signal and the second signal can ensure the certainty of the first signal and the second signal, that is, ensuring that the access network device sends the first signal to the terminal device, and the terminal device accesses
- the flow and signal characteristics of the network device returning the second signal are clearly defined; the uniqueness of the second signal can also be ensured, that is, a second signal is uniquely corresponding to a first signal.
- the access network device in S204 may perform detection according to the configured configuration information of the second signal, that is, whether the second signal sent by the terminal device is to be received. If the second signal to be received is determined according to the frame information, when the second signal to be received is detected, S204 is performed.
- S207 and S208 can be performed before S201.
- the access network device determines a first timestamp and a fourth timestamp, and the terminal device determines that the second timestamp and the third timestamp are as follows:
- the determining, by the access network device, the first timestamp and the fourth timestamp may be performed by: when the first signal is sent by the access network device, the time point corresponding to the setting step in the first signal start or completion sending process is recorded as the first time A timestamp; when the access network device receives the second signal, the time point corresponding to the setting step in the receiving or completing the receiving process is recorded as the fourth timestamp.
- the determining, by the terminal device, the second timestamp and the third timestamp may be specifically as follows:
- the time point corresponding to the setting step in the first signal start or completion receiving process is recorded as the second timestamp; when the terminal device sends the second signal, the second signal starts or completes in the sending process.
- the time point corresponding to the setting step is recorded as the third time stamp.
- the sending or receiving process of the signal includes multiple steps, such as grouping, symbol generation, conversion, frequency conversion, etc.; therefore, the timestamp corresponding to the first signal starting or completing the setting step may be determined in multiple ways, for example, It is agreed that when the first signal completes the digital to analog (D/A) processing step, the marked point (time point) is recorded as the first time stamp, and other processing steps may be performed in addition to the digital to analog conversion processing step. Such as grouping, symbol generation, conversion, frequency conversion, etc.
- the manner of determining the second timestamp, the third timestamp, and the fourth timestamp is similar to that of the first timestamp, and is not described herein.
- the method shown in FIG. 3 further includes:
- the access network device performs a modified time processing on the fourth timestamp.
- the correction time processing includes: correcting the time deviation between the fourth time stamp and the actual arrival time of the second signal, and specifically determining the time deviation e by:
- the signal received by the access network device is:
- Estimating channel impulse response by frequency domain correlation detection Determine the true arrival time of the signal x(n).
- the deviation e of the start time of the received signal from the true arrival time of the signal can be determined, and the time deviation e 4 when the fourth time stamp is recorded can be determined.
- the method shown in FIG. 3 further includes:
- the access network device performs compensation time processing on the first timestamp and the fourth timestamp.
- the step of compensating time processing includes at least one of increasing an average time from recording the first timestamp to the access network device transmitting the first signal, and reducing receiving the second signal from the access network device to recording the fourth timestamp. Average time.
- the compensation time processing is the hardware processing time of the signal, which can be determined according to the specific model of the device by means of table lookup, that is, the hardware processing time is a set value, which is determined when the device is shipped from the factory.
- T 1,fixed T 1 +T tx,m
- T tx,m is the average time from the recording of the first timestamp to the access signal of the access network device.
- T 4,fixed T 4 -T rx,m
- T rx,m is the average time from receiving the second signal to the access network device to recording the fourth timestamp.
- the priority of the correction time processing and the compensation time processing may be set, for example, the time processing is performed on the time stamp first, and then the time stamp is compensated for the time processing; here, it is not specifically limited.
- processing steps of S205 specifically include the following:
- the first timestamp and the fourth timestamp are processed to generate a data packet, and the type of the data packet includes: the first type, the second type, and the third type, and the access
- the process of generating a data packet by the network device and sending the data packet to the terminal device is as follows: generating a first type of data packet by using the first timestamp and the fourth timestamp, and sending the first type of data packet to the terminal device; or The first time stamp and the fourth time stamp perform a weighting process to generate a second type of data packet, and send a second type of data packet to the terminal device; or perform differential processing on the first time stamp and the fourth time stamp to generate a third type of data packet A data packet that transmits a third type of data packet to the terminal device.
- the setting can be set according to actual needs.
- the manner of generating the foregoing three types of data packets may be selected according to actual needs, which is not specifically limited in this embodiment of the present invention.
- the manner in which the data packet is sent may be, but is not limited to, unicast or multicast, and the data packet may be a message, such as follow_up Message.
- the data packet of the previous cycle can be sent together with the timing reference signal of the current cycle.
- the verification information may be further added to the data packet, where the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, or Verifying that the third timestamp and the fourth timestamp match; the verification information may be, but is not limited to, an ID (Identification) number, a frame number, or a subframe number of the terminal device, eg, a frame number verification according to the first signal.
- the first timestamp and the second timestamp may be further added to the data packet, where the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, or Verifying that the third timestamp and the fourth timestamp match; the verification information may be, but is not limited to, an ID (Identification) number, a frame number, or a subframe number of the terminal device, eg, a frame number verification according to the first signal.
- the first timestamp and the second timestamp may be further added to the data packet, where the verification information
- the method shown in FIG. 3 further includes:
- the terminal device performs a modified time processing on the second timestamp.
- the step of correcting the time processing includes: correcting the time deviation between the recording of the second timestamp and the actual arrival time of the first signal, as follows:
- the terminal device performs compensation time processing on the second timestamp and the third timestamp.
- the terminal device performs compensation time processing on the second timestamp T 2 and the third time stamp T 3 , that is, compensates for hardware processing time of the first signal and the second signal, such as reducing reception of the first signal from the terminal device to recording the second time stamp.
- the average time, and the average time from the recording of the third timestamp to the transmission of the second signal by the terminal device as follows:
- T 2,fixed T 2 -T rx,s
- T rx,s is an average time from receiving the first signal to the terminal device to recording the second time stamp
- T 3,fixed T 3 +T tx,s
- T tx s is the average time from the recording of the third timestamp to the transmission of the second signal by the terminal device.
- the terminal device performs compensation time processing on the second timestamp and the third timestamp, and performs correction time processing on the second timestamp, and performs compensation time processing on the first timestamp and the fourth timestamp by referring to the access network device, and The correction time processing is performed on the fourth time stamp, and the specific principle is not described herein.
- S211-S212 may be executed in any order between S202-S216, which is not specifically limited in this embodiment.
- the method may also be performed separately, for example, the access network device performs compensation time processing on the first timestamp immediately after determining the first timestamp, and then determines the fourth timestamp and then the fourth time.
- the stamping is performed by the compensation time processing and the correction time processing; for details, the processing steps of the compensation time processing and the correction time may be referred to by the access network device, and details are not described herein.
- the method shown in FIG. 3 further includes:
- the terminal device receives a data packet that is sent by the access network device and includes a first timestamp and a fourth timestamp.
- the terminal device parses the data packet, and determines a type and timestamp information corresponding to the data packet.
- the terminal device After receiving the data packet, the terminal device parses the data packet to determine a corresponding type and timestamp information.
- the data packet type includes: a first type, a second type, and a third type; the timestamp information includes The first timestamp and the fourth timestamp processed information.
- the weighting factor is expressed.
- the setting of the weighting factor can be set according to actual needs.
- the parsed data packet when it is determined that the parsed data packet contains the verification information, it is also required to verify whether the time stamp matches according to the verification information, such as verifying whether the first timestamp and the second timestamp match, and Verifying that the third timestamp and the fourth timestamp match, may be verified according to the ID number of the terminal device, the frame number of the first signal, or the subframe number of the second signal, and when the verification does not match, the timestamp will not match. Delete, re-acquire new timestamp data as the detection object.
- S206 specifically includes the following:
- the terminal device determines a calculation formula of the corresponding clock offset according to the type of the data packet.
- the terminal device determines a clock offset of the local clock relative to the access network device based on the calculation formula, the timestamp information, the second timestamp, and the third timestamp.
- Each type of data packet corresponds to one or more calculation formulas for calculating the clock offset. Therefore, it is necessary to determine the corresponding data according to the type of the data packet.
- the formula for calculating the clock deviation is as follows:
- the timestamp information, the second timestamp, and the third timestamp are substituted into the corresponding calculation formula, and the clock deviation of the local clock of the terminal device relative to the access network device is calculated.
- the terminal device adjusts the local clock according to the clock offset.
- the terminal device adjusts the local clock according to the calculated clock offset to synchronize the local clock of the terminal device with the access network device. For example, when the clock deviation is positive, the terminal device slows down the local clock. When the clock deviation is negative, The terminal device speeds up the local clock.
- the deviation when recording the timestamp is corrected, and the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp are corrected.
- compensation time processing increasing signal hardware processing time and recording time deviation, so that the first timestamp, the second timestamp, the third timestamp, and the fourth timestamp are more accurate, thereby improving the accuracy of the clock synchronization scheme;
- the hardware processing time is added, and the hardware parameters of the access network device or the terminal device are also prevented from being leaked; the access network device combines the first timestamp and the fourth timestamp into one data packet and sends the data packet to the terminal device, which can save the wireless network.
- Time-frequency resources simplify scheduling overhead, shorten the completion time of a single process, improve the efficiency of clock synchronization, and add verification information to the data packet to ensure the matching degree of the first timestamp and the second timestamp, the third timestamp and the fourth
- the matching of time stamps reduces errors and improves the accuracy of clock synchronization.
- FIG. 4 is a schematic interaction diagram of another method for clock processing according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
- the access network device determines a first timestamp for transmitting the first signal to the terminal device.
- the terminal device receives the first signal sent by the access network device, and determines a second timestamp for receiving the first signal.
- the terminal device sends a second signal corresponding to the first information to the access network device, and determines a third timestamp for transmitting the second signal.
- the access network device receives the second signal sent by the terminal device, and determines a fourth timestamp for receiving the second signal.
- the access network device receives a data packet that is sent by the terminal device and includes a second timestamp and a third timestamp.
- the access network device determines, according to the data packet, the first timestamp, and the fourth timestamp, a clock offset of the terminal device relative to the access network device.
- the access network device sends a clock offset to the terminal device.
- the terminal device adjusts a local clock of the terminal device according to a clock offset.
- the computing power of the access network device is stronger than that of the terminal device. Therefore, the access network device calculates a fast speed and the calculation accuracy is high.
- the embodiment sends a data packet to the terminal device.
- the calculation scheme for calculating the clock deviation by the network access device is similar to the calculation scheme for the terminal device to calculate the clock offset in the above embodiment.
- S405 is the same as the principle of S205 in the foregoing embodiment, except that the execution subject is different from the data packet, and S205 is that the access network device sends the data packet including the first timestamp and the fourth timestamp, and S405 is sent by the terminal device.
- the data packet includes the second timestamp and the third timestamp, because S405 can refer to S205 here, and no further description is made.
- S406 is different from S214 in the foregoing embodiment in that S214 calculates a clock offset for the terminal device, and S406 calculates a clock offset for the access network device, and the calculation formulas and parameters of the two are the same. Therefore, S406 can refer to S214, where , do not repeat.
- the access network device needs to send the clock offset to the terminal device through S407, to instruct the terminal device to perform S408 to adjust the local clock of the terminal device according to the clock offset.
- the local clock of the terminal device is synchronized with the access network device.
- the terminal device sends the first timestamp and the third timestamp to the access network device in a combined manner, thereby improving the utilization of the time-frequency resource and further improving the efficiency.
- the time-frequency resources of the wireless network are utilized, and the access network device is faster than the terminal device, and the calculation accuracy is high.
- the method shown in FIG. 5 further includes:
- the access network device configures configuration information of the first signal to be sent and configuration information of the second signal.
- the access network device sends the first signal to the terminal device according to the configuration information of the first signal.
- S409 and S410 may be performed before S401, and S409 and S410 may refer to S207 and S208 in the foregoing embodiment, and details are not described herein.
- the method shown in FIG. 5 further includes:
- the terminal device performs correction time processing on the second timestamp.
- the terminal device performs compensation time processing on the second timestamp and the third timestamp.
- S411 can refer to S211 in the foregoing embodiment, and S412 can refer to S212 in the foregoing embodiment, and details are not described herein.
- the method shown in FIG. 5 further includes:
- the access network device performs a modified time processing on the fourth timestamp.
- the access network device performs compensation time processing on the first timestamp and the fourth timestamp.
- S406 may include the following processing steps:
- the access network device parses the data packet, and determines a type and timestamp information corresponding to the data packet.
- the access network device determines a calculation formula of the corresponding clock offset according to the type of the data packet.
- the access network device determines a clock offset of the local clock relative to the access network device based on the calculation formula, the timestamp information, the first timestamp, and the fourth timestamp.
- the S415-S417 is different from the S214-S216 in the foregoing embodiment in that the executor is different, and the foregoing embodiment is performed by the terminal.
- This embodiment is implemented by the access network device, and the principle of the processing is the same, and details are not described herein.
- the access network device sends a clock offset to the terminal device.
- the terminal device adjusts a local clock of the terminal device according to a clock offset.
- the terminal device sends the first timestamp and the third timestamp to the access network device in a combined manner, thereby improving the utilization of the time-frequency resource and further improving the efficiency.
- the time-frequency resources of the wireless network are utilized, and the access network device is faster than the terminal device, and the time stamp is compensated for time processing and corrected time processing, thereby improving the accuracy of the time stamp, thereby improving the accuracy of the time deviation.
- the compensation time processing can also prevent the leakage of the parameters of the access network device and the terminal device, and the verification information added in the data packet can ensure the matching degree of the first timestamp and the second timestamp, the third timestamp and the fourth timestamp.
- the degree of matching reduces errors and improves the accuracy of clock synchronization.
- the solution of the embodiment of the present invention is mainly introduced from the perspective of interaction between the access network device and the terminal device.
- the access network device, the terminal device, and the like in order to implement the above functions, include hardware structures and/or software modules corresponding to each function.
- the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
- the embodiments of the present invention may perform functional unit division on an access network device, a terminal device, and the like according to the foregoing method.
- each functional unit may be divided according to each function, or two or more functions may be integrated into one processing.
- the above integrated unit can be implemented either in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
- FIG. 6 shows a possible structural diagram of the access network device involved in the above embodiment.
- the access network device 600 may include a processing unit 601, a receiving unit 602, and a sending unit 603.
- the processing unit 601 is configured to determine a first timestamp for transmitting the first signal to the terminal device, and the receiving unit 602 is configured to receive, by the terminal device, a second signal corresponding to the first signal, where the processing unit 601 is further configured to determine to receive a fourth timestamp of the second signal; the sending unit 603 is configured to send, to the terminal device, a data packet that includes the first timestamp and the fourth timestamp, where the data packet is used to enable the terminal device to adjust the local clock of the terminal device.
- the access network device 600 of this embodiment has the function of the access network device in FIG. 2, and can implement the operations performed by the access network device in S201-S205 in FIG. 2, thereby implementing the technical effect of the S201-S205 corresponding clock processing method.
- S201-S205 in FIG. 2 for a brief description, and details are not described herein.
- the first timestamp is a time point corresponding to the first signal starting or completing the setting step in the sending process; the fourth timestamp is a time point corresponding to the second signal starting or completing the setting step in the receiving process.
- the processing unit 601 is further configured to configure the configuration information of the first signal to be sent and the configuration information of the second signal
- the sending unit 603 is further configured to send the first signal to the terminal according to the configuration information of the first signal.
- the processing unit 601 is further configured to detect, according to the configuration information of the second signal, whether there is a second signal to be received.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the processing unit 601 is further configured to perform a modified time processing on the fourth timestamp.
- the processing unit 601 is further configured to perform compensation time processing on the first timestamp and the fourth timestamp.
- the modifying the time processing comprises: correcting a time deviation between the recording of the fourth timestamp and the actual arrival time of the second signal.
- the compensation time processing includes at least one of: increasing an average time from recording the first timestamp to the access network device to transmit the first signal, or reducing receiving the second signal from the access network device to recording the fourth time The average time of the stamp.
- the processing unit 601 is configured to generate a first type of data packet by using the first timestamp and the fourth timestamp, and control the sending unit 603 to send the first type of data packet to the terminal device; or, for the first time And performing a weighting process on the stamp and the fourth timestamp to generate a second type of data packet, and controlling the sending unit 603 to send the second type of data packet to the terminal device; or performing differential processing on the first timestamp and the fourth timestamp to generate the first Three types of data packets, and the control transmitting unit 603 transmits a third type of data packet to the terminal device.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying whether the third timestamp and the fourth timestamp match;
- the second timestamp is a timestamp of the terminal device receiving the second signal
- the third timestamp is a timestamp of the second signal sent by the terminal device to the access network device.
- the access network device 600 including the foregoing unit has the function of the access network device in the clock processing method shown in FIG. 3, and can perform the operations performed by the access network device in S207-S217, thereby implementing the S207-S217 corresponding clock processing method.
- S207-S217 in FIG. 3 for the sake of brevity, and details are not described herein.
- processing unit 601, the receiving unit 602, and the sending unit 603 in the access network device 600 are also used to perform other operations, as follows:
- the processing unit 601 is configured to determine a first timestamp for transmitting the first signal to the terminal device, and the receiving unit 602 is configured to receive a second signal that is sent by the terminal device and corresponding to the first signal.
- the processing unit 601 is further configured to determine Receiving a fourth timestamp of the second signal;
- the receiving unit 602 is further configured to receive a data packet that is sent by the terminal device and includes the second timestamp and the third timestamp;
- the processing unit 601 is further configured to use the data packet, the first time
- the stamp and the fourth timestamp determine the clock offset of the terminal device relative to the access network device;
- the sending unit 603 is configured to send the clock offset to the terminal device, and the clock offset is used to instruct the terminal device to adjust the local clock of the terminal device according to the clock offset.
- the second timestamp is a timestamp of the terminal device receiving the first signal
- the third timestamp is a timestamp of the second signal sent by the terminal device.
- the access network device 600 of the present embodiment has the functions of the access network device in S401-S408 in the foregoing embodiment, and can perform all the actions of the access network device in S401-S408, thereby implementing the technology of the S401-S408 corresponding clock processing method.
- S401-S408 in FIG. 4 for the sake of brevity, and details are not described herein.
- the processing unit 601 is further configured to parse the data packet, and determine a type and timestamp information corresponding to the data packet;
- the type of the data packet is one of the following types: a first type of data packet generated by the first timestamp and the fourth timestamp, and a second type generated by weighting the first timestamp and the fourth timestamp.
- the data packet is a third type of data packet generated by differentially processing the first timestamp and the fourth timestamp; the timestamp information includes information processed after the second timestamp and the third timestamp.
- the data packet further includes verification information; the processing unit 601 is further configured to parse the data packet to obtain the verification information, and the processing unit 601 is further configured to verify, according to the verification information, whether the timestamp information matches;
- the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying whether the third timestamp and the fourth timestamp match; the second timestamp is that the terminal device receives the second signal.
- the timestamp, the third timestamp is a timestamp of the second signal sent by the terminal device to the access network device.
- the processing unit 601 is further configured to: when the verification is matched, determine a calculation formula of the corresponding clock deviation according to the type of the data packet; determine, according to the calculation formula, the timestamp information, the first timestamp, and the fourth timestamp, the terminal device The clock skew of the clock relative to the access network device clock.
- the processing unit 601 is further configured to configure configuration information of the first signal and the second signal to be sent, and the sending unit 603 is further configured to send the first signal to the terminal device according to the configuration information of the first signal;
- the unit 601 is further configured to detect, according to the configuration information of the second signal, whether there is a second signal to be received.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the first timestamp is a time point corresponding to the first signal starting or completing the setting step in the sending process; the fourth timestamp is a time point corresponding to the second signal starting or completing the setting step in the receiving process.
- the processing unit 601 is further configured to perform a modified time processing on the fourth timestamp.
- the processing unit 601 is further configured to perform compensation time processing on the first timestamp and the fourth timestamp.
- the correcting time processing comprises: correcting a time offset of the fourth timestamp from which the second signal recording is started to be received and the actual arrival time of the second signal.
- the compensation time processing includes at least one of: increasing an average time from recording the first timestamp to the access network device transmitting the first signal, and reducing receiving the second signal from the access network device to recording the fourth time The average time of the stamp.
- the access network device 600 including the foregoing unit has the function of the access network device in the clock processing method shown in FIG. 5, and can perform all actions of the access network device in S409-S408, thereby implementing the S409-S408 corresponding clock processing method.
- S409-S408 in FIG. 5 for a brief description, and details are not described herein.
- the processing unit 601 in the access network device 600 can be a processor/controller, the receiving unit 602 can be a receiver, and the sending unit 603 can be a transmitter. As shown in FIG. 7, the connection involved in the foregoing embodiment is shown in FIG. A physical schematic diagram of one possible design structure of a networked device.
- Access network device 600 includes a transmitter 701, a receiver 702, a controller/processor 703, a memory 704, and a modem processor 705.
- the controller/processor 703 can be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (ASIC). Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
- the program or instructions for executing FIG. 2 or FIG. 4 are stored in the memory 704, and the specific steps in FIG. 2 or FIG. 4 are performed by the controller/processor 703; as determined by the controller/processor 703 to transmit the first to the terminal device a first timestamp of the signal; the receiver 702 receives a second signal corresponding to the first signal transmitted by the terminal device, the controller/processor 703 determines a fourth timestamp for receiving the second signal; the transmitter 701 transmits to the terminal device
- the data packet includes a first timestamp and a fourth timestamp, and the data packet is used to enable the terminal device to adjust the local clock of the terminal device.
- the first timestamp is a time point corresponding to the first signal starting or completing the setting step in the sending process; the fourth timestamp is a time point corresponding to the second signal starting or completing the setting step in the receiving process.
- controller/processor 703 is further configured to configure configuration information of the first signal and the second signal to be sent, and the transmitter 701 is further configured to send the first signal to the terminal according to the configuration information of the first signal.
- the device 702 is further configured to detect, according to the configuration information of the second signal, whether there is a second signal to be received.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- controller/processor 703 is further configured to perform a modified time processing on the fourth timestamp.
- controller/processor 703 is further configured to perform compensation time processing on the first timestamp and the fourth timestamp.
- the modifying the time processing comprises: correcting a time deviation between the recording of the fourth timestamp and the actual arrival time of the second signal.
- the compensation time processing includes at least one of: increasing an average time from recording the first timestamp to the access network device to transmit the first signal, or reducing receiving the second signal from the access network device to recording the fourth time The average time of the stamp.
- the controller/processor 703 is further configured to generate the first type of data packet by using the first timestamp and the fourth timestamp, and control the transmitter 701 to send the first type of data packet to the terminal device; or Weighting the first timestamp and the fourth timestamp to generate a second type of data packet, and controlling the transmitter 701 to send the second type of data packet to the terminal device; or, performing the first timestamp and the fourth timestamp
- the differential processing generates a third type of data packet and controls the transmitter 701 to transmit a third type of data packet to the terminal device.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying whether the third timestamp and the fourth timestamp match;
- the second timestamp is a timestamp of the terminal device receiving the second signal
- the third timestamp is a timestamp of the second signal sent by the terminal device to the access network device.
- the first timestamp of transmitting the first signal to the terminal device is determined by the controller/processor 703; the receiver 702 receives the second signal corresponding to the first signal sent by the terminal device; the controller/processor 703 determines Receiving a fourth timestamp of the second signal; the receiver 702 receives the data packet that is sent by the terminal device and includes the second timestamp and the third timestamp; the controller/processor 703 is based on the data packet, the first timestamp, and the fourth time Determining a clock offset of the terminal device relative to the access network device; the transmitter 701 sends the clock offset to the terminal device to instruct the terminal device to adjust the local clock of the terminal device according to the clock offset; wherein the second timestamp is the terminal device receiving the first The timestamp of a signal, and the third timestamp is a timestamp of the second signal sent by the terminal device.
- the controller/processor 703 is further configured to parse the data packet, determine a type and timestamp information corresponding to the data packet, where the type of the data packet is one of the following types: the first timestamp and the first The first type of data packet generated by the fourth timestamp, the second type of data packet generated by weighting the first timestamp and the fourth timestamp, and the first timestamp and the fourth timestamp are differentially processed to generate the first Three types of data packets; the timestamp information includes information processed after the second timestamp and the third timestamp.
- the data packet further includes verification information; the controller/processor 703 is further configured to parse the data packet to obtain verification information; and verify, according to the verification information, whether the timestamp information matches; wherein the verification information is used to verify at least one of the following: : verifying whether the first timestamp and the second timestamp match or verifying whether the third timestamp and the fourth timestamp match; the second timestamp is a timestamp of the terminal device receiving the second signal, and the third timestamp is the terminal device direction The timestamp of the second signal sent by the access network device.
- the controller/processor 703 is further configured to parse the data packet to obtain verification information; and verify, according to the verification information, whether the timestamp information matches; wherein the verification information is used to verify at least one of the following: : verifying whether the first timestamp and the second timestamp match or verifying whether the third timestamp and the fourth timestamp match; the second timestamp is a timestamp of the terminal device receiving the second signal,
- the controller/processor 703 is configured to: when the verification matches, determine a calculation formula of the corresponding clock deviation according to the type of the data packet; determine the terminal based on the calculation formula, the timestamp information, the first timestamp, and the fourth timestamp.
- controller/processor 703 is further configured to configure configuration information of the first signal and the second signal to be sent, and the transceiver is further configured to send the first signal to the terminal device according to the configuration information of the first signal. And detecting, according to the configuration information of the second signal, whether there is a second signal to be received.
- the configuration information includes at least one of the following: a period of the signal, a type of the signal, an antenna port type of the transmitted signal, and frame information corresponding to the signal.
- the first timestamp is a time point corresponding to the first signal starting or completing the setting step in the sending process; the fourth timestamp is a time point corresponding to the second signal starting or completing the setting step in the receiving process.
- controller/processor 703 is further configured to perform a modified time processing on the fourth timestamp.
- controller/processor 703 is further configured to perform compensation time processing on the first timestamp and the fourth timestamp.
- the correcting time processing comprises: correcting a time offset of the fourth timestamp from which the second signal recording is started to be received and the actual arrival time of the second signal.
- the compensation time processing includes at least one of: increasing an average time from recording the first timestamp to the access network device to transmit the first signal, or reducing receiving the second signal from the access network device to recording the fourth time The average time of the stamp.
- modem processor 705 is used for encoding and modulating signals, and demodulating and decoding the signals.
- the foregoing access network device 700 can be used as an access network device in the clock processing method shown in FIG. 3, and executes S207-S217, which can implement the technical effect of the S207-S217 corresponding clock processing method; and can also be used as the clock shown in FIG.
- the access network device in the processing method performs S409-S408, and the technical effects of the S409-S408 corresponding clock processing method can be implemented, and details are not described herein.
- FIG. 8 is a schematic diagram showing a possible structure of a terminal device involved in the foregoing embodiment.
- the terminal device 800 includes a receiving unit 801, a processing unit 802, and a sending unit 803.
- the receiving unit 801 is configured to receive a first signal sent by the access network device, the processing unit 802 is configured to determine a second timestamp for receiving the first signal, and the sending unit 803 is configured to send the first signal to the access network device. a corresponding second signal; the processing unit 802 is further configured to determine a third timestamp for transmitting the second signal, and the receiving unit 801 is further configured to receive, by the access network device, the first timestamp and the fourth timestamp
- the processing unit 802 is further configured to adjust the local clock according to the data packet, where the first timestamp is a timestamp of the first signal sent by the access network device, and the fourth timestamp is the second timestamp of the access network device receiving the second signal. Timestamp.
- the terminal device 800 of the present embodiment has the functions of the terminal device in S201-S205 in the foregoing embodiment, and can perform all the actions of the terminal device in S201-S205, thereby implementing the technical effects of the S201-S205 corresponding clock processing method.
- 2 S201-S205 for the sake of brevity, hereby, no further description is given.
- the receiving unit 801 is further configured to receive the configuration information of the first signal and the configuration information of the second signal that are sent by the access network device, and the processing unit 802 is further configured to detect, according to the configuration information of the first signal, whether it is to be received.
- the first signal; the sending unit 803 is further configured to send, according to the configuration information of the second signal, the second signal corresponding to the first signal to the access network device.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process
- the third timestamp is a time point corresponding to the step of transmitting the second signal or completing the setting step in the sending process.
- the processing unit 802 is further configured to perform a modified time processing on the second timestamp.
- the processing unit 802 is further configured to perform compensation time processing on the second timestamp and the third timestamp.
- the correcting time processing includes: correcting a time deviation between the recording of the second timestamp and the actual arrival time of the first signal.
- the compensation time processing includes at least one of: reducing an average time from receiving the first signal from the terminal device to recording the second timestamp, and increasing from transmitting the third timestamp to transmitting the second signal by the terminal device Average time.
- the processing unit 802 is further configured to parse the data packet, and determine a type and timestamp information corresponding to the data packet;
- the type of the data packet is one of the following types: a first type of data packet generated by the first timestamp and the fourth timestamp, and a second type generated by weighting the first timestamp and the fourth timestamp.
- the data packet is a third type of data packet generated by differentially processing the first timestamp and the fourth timestamp; the timestamp information includes information processed after the first timestamp and the fourth timestamp.
- the data packet further includes verification information; the processing unit 802 is further configured to parse the data packet to obtain verification information; and the processing unit 802 is configured to verify, according to the verification information, whether the timestamp information matches; wherein the verification information is used to verify the following At least one of: verifying whether the first timestamp and the second timestamp match, or verifying whether the third timestamp and the fourth timestamp match.
- the processing unit 802 is further configured to: determine, when the verification matches, determine a calculation formula of the corresponding clock deviation according to the type of the data packet; determine the local clock based on the calculation formula, the timestamp information, the second timestamp, and the third timestamp. Clock skew relative to the access network device clock; local clock is adjusted based on clock skew.
- the terminal device 800 including the above unit has the function of the terminal device in the clock processing method shown in FIG. 3, and can perform all the actions of the terminal device in S207-S217, thereby implementing the technical effects of the S207-S217 corresponding clock processing method. Referring to S207-S217 in FIG. 3, for the sake of brevity, no further description is provided herein.
- the receiving unit 801, the processing unit 802, and the sending unit 803 in the terminal device 800 shown in FIG. 8 can also be used to perform other operations, as follows:
- the receiving unit 801 is configured to receive a first signal sent by the access network device, the processing unit 802 is configured to determine a second timestamp for receiving the first signal, and the sending unit 803 is configured to send the first signal to the access network device. a corresponding second signal; the processing unit 802 is further configured to determine a third timestamp for transmitting the second signal, and the receiving unit 801 is further configured to send, to the access network device, the second timestamp and the third timestamp. a data packet; a processing unit 802, configured to receive a clock offset determined by the access network device according to the data packet, and adjust the local clock according to the clock offset.
- the terminal device 800 of the present embodiment has the functions of the terminal device in S401-S408 in the foregoing embodiment, and can perform all the actions of the terminal device in S401-S408, thereby implementing the technical effects of the S401-S408 corresponding clock processing method.
- S401-S408 in 4 for the sake of brevity, hereby is not described.
- the receiving unit 801 is further configured to receive configuration information of the first signal and the second signal sent by the access network device, where the processing unit 802 is configured to detect, according to the configuration information of the first signal, whether the first signal to be received is received.
- the sending unit 803 is further configured to send, according to the configuration information of the second signal, the second signal corresponding to the first signal to the access network device.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process
- the third timestamp is a time point corresponding to the step of transmitting the second signal or completing the setting step in the sending process.
- the processing unit 802 is further configured to perform a modified time processing on the second timestamp.
- the processing unit 802 is further configured to perform compensation time processing on the second timestamp and the third timestamp.
- the correcting time processing comprises: correcting a time offset of the second timestamp from which the first signal record is received and the actual arrival time of the first signal.
- the compensation time processing includes at least one of: reducing an average time from receiving the first signal to the second time stamp by the terminal device, and increasing an average time from recording the third time stamp to transmitting the second signal by the terminal device .
- the processing unit 802 is configured to generate a first type of data packet by using the second timestamp and the third timestamp, and control the sending unit 803 to send the first type of data packet to the access network device; or
- the second timestamp and the third timestamp perform a weighting process to generate a second type of data packet, and control the sending unit 803 to send a second type of data packet to the access network device; or, perform the second timestamp and the third timestamp
- the differential processing generates a third type of data packet, and the control transmitting unit 803 transmits a third type of data packet to the access network device.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, or verifying whether the third timestamp and the fourth timestamp match;
- the first timestamp is a timestamp of the first signal sent by the access network device
- the fourth timestamp is a timestamp of the second signal received by the access network device.
- the terminal device 800 including the above-mentioned unit has the function of the terminal device in the clock processing method shown in FIG. 5, and can perform all the actions of the terminal device in S409-S408, thereby implementing the technical effect of the S409-S408 corresponding clock processing method. Referring to S409-S408 in FIG. 5, for the sake of brevity, no further details are provided herein.
- the processing unit 801 in the terminal device 800 shown in FIG. 8 may be a controller/processor, the receiving unit 801 may be a receiver, and the sending unit 803 may be a transmitter.
- the terminal involved in the foregoing embodiment is shown.
- the controller/processor 903 is a processor or a controller, and may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit (Application- Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
- the program or instruction for executing FIG. 2 or FIG. 4 is stored in the memory 904, and the specific steps in FIG. 2 or FIG. 4 are performed by the controller/processor 903; for example, the first signal transmitted by the access network device is received by the receiver 902.
- the controller/processor 903 determines a second timestamp to receive the first signal; the transmitter 901 transmits a second signal corresponding to the first signal to the access network device; the controller/processor 903 determines to transmit the second signal a third timestamp; the receiver 902 receives the data packet that is sent by the access network device and includes the first timestamp and the fourth timestamp; the controller/processor 903 adjusts the local clock according to the data packet; wherein the first timestamp is The timestamp of the first signal sent by the network access device, and the fourth timestamp is a timestamp of the second signal received by the access network device.
- the receiver 902 is further configured to receive configuration information of the first signal sent by the access network device and configuration information of the second signal, and detect whether the first signal to be received is received according to the configuration information of the first signal; 901.
- the 901 is further configured to send, according to configuration information of the second signal, a second signal corresponding to the first signal to the access network device.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process
- the third timestamp is a time point corresponding to the step of transmitting the second signal or completing the setting step in the sending process.
- controller/processor 903 is further configured to perform a modified time processing on the second timestamp.
- controller/processor 903 is further configured to perform compensation time processing on the second timestamp and the third timestamp.
- the correcting time processing includes: correcting a time deviation between the recording of the second timestamp and the actual arrival time of the first signal.
- the compensation time processing includes at least one of: reducing an average time from receiving the first signal to the second timestamp from the terminal device or increasing an average from recording the third timestamp to transmitting the second signal by the terminal device time.
- the controller/processor 903 is further configured to parse the data packet, determine a type and timestamp information corresponding to the data packet, where the type of the data packet is one of the following types: the first timestamp and the fourth a first type of data packet generated by the timestamp, a second type of data packet generated by weighting the first timestamp and the fourth timestamp, and a third time generated by differential processing of the first timestamp and the fourth timestamp A type of data packet; the timestamp information includes information processed for the first timestamp and the fourth timestamp.
- the data packet further includes verification information; the controller/processor 903 is further configured to parse the data packet to obtain verification information; and verify, according to the verification information, whether the timestamp information matches; wherein the verification information is used to verify at least one of the following: : Verify that the first timestamp and the second timestamp match, or verify that the third timestamp and the fourth timestamp match.
- the controller/processor 903 is configured to determine, according to the type of the data packet, a calculation formula for determining a corresponding clock offset when the verification is matched; determining, based on the calculation formula, the timestamp information, the second timestamp, and the third timestamp.
- the clock skew of the local clock relative to the access network device clock; the local clock is adjusted based on the clock skew.
- the first signal sent by the access network device is received by the receiver 902; the controller/processor 903 determines a second timestamp for receiving the first signal; and the transmitter 901 sends the first signal corresponding to the access network device.
- the network device determines the clock offset based on the data packet; the controller/processor 903 adjusts the local clock based on the clock offset.
- the receiver 902 is further configured to receive configuration information of the first signal and the second signal sent by the access network device, and detect whether there is a first signal to be received according to the configuration information of the first signal, and the transmitter 901 further And configured to send, according to the configuration information of the second signal, a second signal corresponding to the first signal to the access network device.
- the second timestamp is a time point corresponding to the step of receiving the first signal or completing the setting step in the receiving process
- the third timestamp is a time point corresponding to the step of transmitting the second signal or completing the setting step in the sending process.
- controller/processor 903 is further configured to perform a modified time processing on the second timestamp.
- controller/processor 903 is further configured to perform compensation time processing on the second timestamp and the third timestamp.
- the modifying the time processing comprises: correcting a time deviation of the recording of the second timestamp of the first signal record and the actual arrival time of the first signal.
- the compensation time processing includes at least one of: reducing an average time from receiving the first signal to the second time stamp by the terminal device, or increasing an average time from recording the third time stamp to transmitting the second signal by the terminal device .
- the controller/processor 903 is configured to generate a first type of data packet by using the second timestamp and the third timestamp, and control the transmitter 901 to send the first type of data packet to the access network device; or And weighting the second timestamp and the third timestamp to generate a second type of data packet, and controlling the transmitter 901 to send the second type of data packet to the access network device; or, for the second timestamp and the third timestamp
- the time stamp performs differential processing to generate a third type of data packet, and controls the transmitter 901 to transmit a third type of data packet to the access network device.
- the data packet further includes verification information, wherein the verification information is used to verify at least one of: verifying whether the first timestamp and the second timestamp match, and verifying whether the third timestamp and the fourth timestamp match;
- the first timestamp is a timestamp of the first signal sent by the access network device
- the fourth timestamp is a timestamp of the second signal received by the access network device.
- modem processor 805 is used for encoding and modulating signals, and demodulating and decoding the signals.
- the terminal device 900 can be used as the terminal device in the clock processing method shown in FIG. 3, and S207-S217 can be implemented to implement the technical effects of the S207-S217 corresponding clock processing method; and can also be used as the clock processing method in FIG.
- the terminal device, executing S409-S408, can implement the technical effects of the S409-S408 corresponding clock processing method, and details are not described herein.
- An embodiment of the present invention provides a computer readable storage medium for storing computer software instructions used by an access network device as described in FIG. 3 or FIG. 5, which is configured to control an access network device to perform the foregoing aspects. program.
- An embodiment of the present invention provides a computer readable storage medium for storing computer software instructions for a terminal device as described in FIG. 3 or FIG. 5, which includes a program designed to control a terminal device to perform the above aspects.
- Embodiments of the present invention provide a computer program product comprising instructions for causing a computer to perform functions performed by an access network device in a method design as described in FIG. 3 or FIG. 5 when the program is executed by a computer.
- Embodiments of the present invention provide a computer program product comprising instructions that, when executed by a computer, cause a computer to perform functions performed by a terminal device in a method design as described in FIG. 3 or FIG.
- the embodiment of the invention provides a communication system, which includes the above access network device and terminal device.
- the disclosed systems, devices, and methods may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
- the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
- the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
La présente invention concerne un procédé de traitement d'horloge, un dispositif de réseau d'accès et un dispositif terminal, le procédé consistant : à déterminer une première estampille temporelle d'envoi d'un premier signal à un dispositif terminal ; à recevoir un deuxième signal, envoyé par le dispositif terminal, correspondant au premier signal, et à déterminer une quatrième estampille temporelle de réception du deuxième signal ; et à envoyer un paquet de données comprenant la première estampille temporelle et la quatrième estampille temporelle au dispositif terminal, le paquet de données étant utilisé pour permettre au dispositif terminal de régler une horloge locale du dispositif terminal. La première estampille temporelle et la quatrième estampille temporelle sont envoyées au dispositif terminal une fois de manière fusionnée, ce qui permet d'améliorer le taux d'utilisation d'une ressource temps-fréquence, ce qui permet d'utiliser plus efficacement la ressource temps-fréquence d'un réseau sans fil et de réaliser une synchronisation d'horloge.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710197951.6 | 2017-03-29 | ||
CN201710197951.6A CN108667543B (zh) | 2017-03-29 | 2017-03-29 | 一种时钟处理方法、接入网设备和终端设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018177320A1 true WO2018177320A1 (fr) | 2018-10-04 |
Family
ID=63674262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/080836 WO2018177320A1 (fr) | 2017-03-29 | 2018-03-28 | Procédé de traitement d'horloge, dispositif de réseau d'accès et dispositif terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108667543B (fr) |
WO (1) | WO2018177320A1 (fr) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114731205B (zh) * | 2019-11-21 | 2025-05-16 | 华为技术有限公司 | 一种时钟同步方法及装置 |
CN112600639A (zh) * | 2020-12-17 | 2021-04-02 | 珠海市一微半导体有限公司 | 一种时间戳修正方法及系统 |
CN116700094B (zh) * | 2023-06-21 | 2024-03-01 | 哈尔滨博尼智能技术有限公司 | 一种数据驱动控制系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7496686B2 (en) * | 2005-01-28 | 2009-02-24 | Gencsus | Localizing a remote event timestamp from a network device with an independent clock method and apparatus |
CN102833062A (zh) * | 2012-09-25 | 2012-12-19 | 广东电网公司珠海供电局 | 智能变电站ieee1588主从时钟同步报文对时方法及系统 |
CN103929263A (zh) * | 2014-04-30 | 2014-07-16 | 北京华力创通科技股份有限公司 | 网络通信方法、延迟确定方法、本地时间同步方法 |
CN104918319A (zh) * | 2014-03-13 | 2015-09-16 | 北方工业大学 | 一种应用于无线传感器网络的时钟同步精简信息交互方法 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7577169B1 (en) * | 2005-11-30 | 2009-08-18 | The United States Of America As Represented By The Secretary Of The Navy | Time stamping |
US10772055B2 (en) * | 2015-04-08 | 2020-09-08 | Alcatel Lucent | Base station synchronization |
CN104993900B (zh) * | 2015-07-06 | 2018-03-09 | 江苏省电力公司南京供电公司 | 一种基于ieee1588时钟模型的同步校正方法 |
CN106488550B (zh) * | 2016-12-20 | 2019-11-12 | 华为技术有限公司 | 确定终端与基站时钟时间偏差的方法与装置 |
-
2017
- 2017-03-29 CN CN201710197951.6A patent/CN108667543B/zh active Active
-
2018
- 2018-03-28 WO PCT/CN2018/080836 patent/WO2018177320A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7496686B2 (en) * | 2005-01-28 | 2009-02-24 | Gencsus | Localizing a remote event timestamp from a network device with an independent clock method and apparatus |
CN102833062A (zh) * | 2012-09-25 | 2012-12-19 | 广东电网公司珠海供电局 | 智能变电站ieee1588主从时钟同步报文对时方法及系统 |
CN104918319A (zh) * | 2014-03-13 | 2015-09-16 | 北方工业大学 | 一种应用于无线传感器网络的时钟同步精简信息交互方法 |
CN103929263A (zh) * | 2014-04-30 | 2014-07-16 | 北京华力创通科技股份有限公司 | 网络通信方法、延迟确定方法、本地时间同步方法 |
Also Published As
Publication number | Publication date |
---|---|
CN108667543B (zh) | 2019-12-13 |
CN108667543A (zh) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3550899B1 (fr) | Procédé et appareil permettant de déterminer un écart de temps d'horloge entre un terminal et une station de base | |
CN102457371B (zh) | 时间同步方法和相关设备及系统 | |
US11178632B2 (en) | Time service method, terminal device, and network device | |
WO2020063535A1 (fr) | Procédé et appareil de détermination de temps de référence | |
WO2020001585A1 (fr) | Procédé et appareil de synchronisation d'horloge | |
EP3817250B1 (fr) | Procédé et appareil de synchronisation | |
WO2018120173A1 (fr) | Procédé d'échange de message de synchronisation temporelle, et dispositif de réseau | |
WO2018177320A1 (fr) | Procédé de traitement d'horloge, dispositif de réseau d'accès et dispositif terminal | |
CN106658696B (zh) | 无线授时方法和系统、终端 | |
CN110557823A (zh) | 时钟同步方法、装置、终端设备、芯片及可读存储介质 | |
WO2017076195A1 (fr) | Procédé de synchronisation d'horloges, et procédé et appareil d'émission d'informations de synchronisation | |
KR102684116B1 (ko) | 액세스 네트워크 장치를 인증하는 방법 및 관련 장치 | |
US12238667B2 (en) | Solutions to timing reference for detection and report of UL RSAT asynch nodes or nodes without a time frame structure | |
CN114731205B (zh) | 一种时钟同步方法及装置 | |
CN105325037A (zh) | 同步方法、同步装置和基站 | |
WO2024174941A1 (fr) | Procédé et appareil de synchronisation d'horloge | |
WO2017181384A1 (fr) | Procédé d'envoi ou de réception d'informations de synchronisation, station de base et nœud de communication | |
WO2015042955A1 (fr) | Procédé et appareil de synchronisation | |
WO2016115695A1 (fr) | Procédé, appareil et système de synchronisation | |
CN111447026B (zh) | 处理数据的方法和处理数据的装置 | |
US10554319B2 (en) | Wireless communications with time synchronization processing | |
WO2016000324A1 (fr) | Procede et appareil pour mettre en oeuvre une synchronisation temporelle | |
US20230300766A1 (en) | Method of propagation delay compensation and related devices | |
WO2018188080A1 (fr) | Procédé et dispositif de mesure d'une différence de temps | |
WO2014019151A1 (fr) | Procédé de localisation de frontière de canal, terminal d'utilisateur et station de base |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18776390 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18776390 Country of ref document: EP Kind code of ref document: A1 |