CN116456444A - Propagation delay compensation method and device - Google Patents

Propagation delay compensation method and device Download PDF

Info

Publication number
CN116456444A
CN116456444A CN202210012218.3A CN202210012218A CN116456444A CN 116456444 A CN116456444 A CN 116456444A CN 202210012218 A CN202210012218 A CN 202210012218A CN 116456444 A CN116456444 A CN 116456444A
Authority
CN
China
Prior art keywords
time
pdc
message
terminal device
network device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210012218.3A
Other languages
Chinese (zh)
Inventor
唐小伟
范强
徐小英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210012218.3A priority Critical patent/CN116456444A/en
Publication of CN116456444A publication Critical patent/CN116456444A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a propagation delay compensation method and device. The network device determines a first message and sends the first message to the terminal device, where the first message is used to indicate whether the network device allows the terminal device to perform propagation delay compensation PDC for a time T, where the time T is a reference time indicated by the network device to the terminal device for air interface time synchronization. The terminal equipment receives a first message from the network equipment, and determines whether PDC is allowed to be carried out on the time T or not according to the first message; and when the PDC is allowed to be performed on the time T, performing PDC on the time T according to the configuration condition of RTT measurement. The method can realize that the network equipment controls the terminal equipment to carry out PDC, enhances the matching degree of the time synchronization of the terminal equipment and the network equipment, can avoid the reduction of the accuracy of the time synchronization caused by the PDC carried out by the terminal equipment and the network equipment, and is beneficial to realizing the high-accuracy time synchronization between the terminal equipment and the network equipment.

Description

传播时延补偿方法及装置Propagation delay compensation method and device

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种传播时延补偿方法及装置。The present application relates to the field of communication technologies, and in particular to a propagation delay compensation method and device.

背景技术Background technique

在时延敏感网络(time sensitive network,TSN)中,为了支持基于时间的操作控制,需要TSN设备之间保持时间同步。在第三代合作伙伴项目(3rd generationpartnership project,3GPP)Rel-16中提出了5G系统(5G system,5GS)支持TSN的方案,即将5GS作为TSN桥接设备。具体地,5GS中通过用户面功能(User Plane Function,UPF)网元接收来自TSN设备的消息,通过终端设备将消息转发该其他TSN设备。In a time-sensitive network (time sensitive network, TSN), in order to support time-based operation control, it is necessary to maintain time synchronization between TSN devices. In the 3rd generation partnership project (3rd generation partnership project, 3GPP) Rel-16, a solution for a 5G system (5G system, 5GS) to support TSN is proposed, that is, 5GS is used as a TSN bridge device. Specifically, in 5GS, a user plane function (User Plane Function, UPF) network element receives a message from a TSN device, and a terminal device forwards the message to other TSN devices.

其中,TSN网络使用高精度时间同步协议(precision time protocol,PTP)保证高精度时间同步时,5GS可作为PTP中的透明时钟,需计算PTP消息在5GS的逗留时间,即UPF接收来自TSN设备的PTP消息的时间与终端设备向其他TSN设备发送PTP消息的时间的时间差。可见,UPF与终端设备之间需保持时间同步。终端设备和UPF之间的时间同步可以是通过两者从相同时钟源获取时间来保证的。具体地,终端设备和UPF可分别与网络设备保持时间同步,从而实现终端设备和UPF之间的时间同步。其中,UPF与网络设备之间可基于PTP实现时间同步。那么,如何实现终端设备与网络设备之间的时间同步是一个亟待解决的问题。Among them, when the TSN network uses a high-precision time synchronization protocol (precision time protocol, PTP) to ensure high-precision time synchronization, 5GS can be used as a transparent clock in PTP, and it is necessary to calculate the stay time of PTP messages in 5GS, that is, UPF receives information from TSN equipment The time difference between the time of the PTP message and the time when the terminal device sends the PTP message to other TSN devices. It can be seen that time synchronization needs to be maintained between the UPF and the terminal equipment. The time synchronization between the terminal equipment and the UPF can be guaranteed by obtaining the time from the same clock source. Specifically, the terminal device and the UPF can respectively maintain time synchronization with the network device, so as to realize time synchronization between the terminal device and the UPF. Among them, the time synchronization between the UPF and the network equipment can be realized based on PTP. Then, how to realize the time synchronization between the terminal device and the network device is an urgent problem to be solved.

发明内容Contents of the invention

本申请实施例提供一种传播时延补偿方法及装置,有利于实现终端设备与网络设备之间的时间同步。Embodiments of the present application provide a propagation delay compensation method and device, which are beneficial to realize time synchronization between a terminal device and a network device.

第一方面,本申请提供一种传播时延补偿方法,该方法包括:终端设备接收来自网络设备的第一消息,该第一消息用于指示网络设备是否允许终端设备对时间T进行传播时延补偿(propagation delay compensation,PDC);时间T是网络设备向终端设备指示的用于空口时间同步的参考时间;终端设备根据第一消息,确定是否被允许对时间T进行PDC;终端设备确定被允许对时间T进行PDC时,根据往返时延(round-trip-time,RTT)测量的配置情况对时间T进行PDC。In a first aspect, the present application provides a propagation delay compensation method, which includes: a terminal device receives a first message from a network device, and the first message is used to indicate whether the network device allows the terminal device to perform propagation delay for time T Compensation (propagation delay compensation, PDC); time T is the reference time for air interface time synchronization indicated by the network device to the terminal device; the terminal device determines whether it is allowed to perform PDC on time T according to the first message; the terminal device determines that it is allowed When the PDC is performed on the time T, the PDC is performed on the time T according to the configuration of the round-trip time delay (round-trip-time, RTT) measurement.

可见,终端设备可基于网络设备的指示来确定是否被允许对时间T进行PDC,有效增强了终端设备和网络设备之间进行时间同步的配合程度,从而可避免终端设备和网络设备均进行PDC而导致时间同步的精确度降低,并且终端设备可基于根据RTT测量的配置情况灵活选择PDC方式,有利于实现终端设备与网络设备之间的高精度时间同步。It can be seen that the terminal device can determine whether it is allowed to perform PDC on the time T based on the indication of the network device, which effectively enhances the degree of cooperation between the terminal device and the network device for time synchronization, thereby preventing both the terminal device and the network device from performing PDC. As a result, the accuracy of time synchronization is reduced, and the terminal device can flexibly select the PDC mode based on the configuration of the RTT measurement, which is conducive to realizing high-precision time synchronization between the terminal device and the network device.

在一种可选的实施方式中,终端设备根据第一消息,确定是否被允许对时间T进行PDC,包括:终端设备在第一消息包括第一字段且第一字段所指示的是使能(enable)时,确定终端设备被允许对时间T进行PDC;终端设备在第一消息包括第一字段且第一字段所指示的是不使能(disable)时,确定终端设备被禁止对时间T进行PDC。可见,该实施方式中,终端设备可基于第一字段的指示确定是否被允许对时间T进行PDC,有效增强了终端设备和网络设备之间进行时间同步的配合程度。In an optional implementation manner, the terminal device determines whether to perform PDC on time T according to the first message, including: the terminal device includes the first field in the first message and the first field indicates enable ( enable), determine that the terminal device is allowed to perform PDC on time T; the terminal device determines that the terminal device is prohibited from performing PDC on time T when the first message includes the first field and the first field indicates disable (disable). PDC. It can be seen that in this embodiment, the terminal device can determine whether to perform PDC on the time T based on the indication of the first field, which effectively enhances the degree of cooperation between the terminal device and the network device for time synchronization.

可选的,该方法还可包括:终端设备在第一消息中不包括第一字段时,根据预设PDC方式进行PDC。Optionally, the method may further include: when the first message does not include the first field, the terminal device performs PDC according to a preset PDC manner.

在一种可选的实施方式中,终端设备确定被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC,包括:终端设备在配置了往返时延RTT测量时,基于RTT对时间T进行PDC;终端设备在未配置RTT测量时,基于定时提前(timing advance,TA)对时间T进行PDC。可见,该实施方式明确了终端设备被允许对时间T进行PDC时的相关行为。并且,终端设备基于是否配置了RTT测量确定的PDC方式更能满足终端设备的实际情况对PDC的需求,进而可有效提高终端设备和网络设备之间时间同步的精度。In an optional implementation manner, when the terminal device determines that it is allowed to perform the PDC on the time T, it performs the PDC on the time T according to the configuration of the RTT measurement, including: when the terminal device is configured with the round-trip delay RTT measurement, based on the RTT The PDC is performed on the time T; when the RTT measurement is not configured, the terminal device performs the PDC on the time T based on a timing advance (timing advance, TA). It can be seen that this embodiment clarifies the relevant behavior when the terminal device is allowed to perform PDC for the time T. Moreover, the PDC method determined by the terminal device based on whether RTT measurement is configured can better meet the actual situation of the terminal device for PDC requirements, thereby effectively improving the accuracy of time synchronization between the terminal device and the network device.

在一种可选的实施方式中,终端设备确定被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC,包括:终端设备在配置了往返时延RTT测量时且存在能够使用的往返时延RTT测量结果时,基于RTT测量结果对时间T进行PDC;终端设备在配置了往返时延RTT测量时且没有能够使用的往返时延RTT测量结果时,确定对时间T不进行PDC,或者,在接收到能够使用的RTT测量结果时,基于RTT测量结果对时间T进行PDC;终端设备在未配置RTT测量时,基于定时提前TA对时间T进行PDC。In an optional implementation manner, when the terminal device determines that it is allowed to perform PDC on the time T, it performs the PDC on the time T according to the configuration of the RTT measurement, including: when the terminal device is configured with the round-trip delay RTT measurement and there is a When the round-trip delay RTT measurement result is used, PDC is performed on the time T based on the RTT measurement result; when the terminal device is configured with the round-trip delay RTT measurement result and there is no available round-trip delay RTT measurement result, it determines not to perform the time T PDC, or, when receiving a usable RTT measurement result, perform PDC on time T based on the RTT measurement result; when RTT measurement is not configured, the terminal device performs PDC on time T based on timing advance TA.

可见,该实施方式明确了终端设备被允许对时间T进行PDC时的相关行为。并且,终端设备将是否配置了RTT测量以及是否存在能够使用的RTT测量结果作为确定PDC方式的开关,与仅基于是否配置了RTT测量来确定PDC方式的方式相比,还充分考虑了终端设备配置了RTT测量且不存在能够使用的RTT测量结果的情况,能够有效提高终端设备与网络设备之间时间同步的精度。It can be seen that this embodiment clarifies the relevant behavior when the terminal device is allowed to perform PDC for the time T. In addition, the terminal device uses whether RTT measurement is configured and whether there is a usable RTT measurement result as a switch to determine the PDC mode. Compared with the method of determining the PDC mode only based on whether RTT measurement is configured, it also fully considers the configuration of the terminal device. When the RTT measurement is performed and there is no usable RTT measurement result, the accuracy of time synchronization between the terminal device and the network device can be effectively improved.

在一种可选的实施方式中,终端设备确定被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC,包括:终端设备在配置了往返时延RTT测量时且存在的RTT测量结果在有效期内时,基于RTT测量结果对时间T进行PDC;终端设备在配置了往返时延RTT测量时且存在的RTT测量结果不在有效期内时,确定对时间T不进行PDC,或者,在预设时长内接收到RTT测量结果时,基于接收到的RTT测量结果对时间T进行PDC;终端设备在未配置RTT测量时,基于定时提前TA对时间T进行PDC。In an optional implementation manner, when the terminal device determines that it is allowed to perform the PDC on the time T, it performs the PDC on the time T according to the configuration of the RTT measurement, including: when the terminal device is configured with the round-trip delay RTT measurement and exists When the RTT measurement result is within the validity period, PDC is performed on time T based on the RTT measurement result; when the terminal device is configured with round-trip delay RTT measurement and the existing RTT measurement result is not within the validity period, it determines not to perform PDC on time T, or, When the RTT measurement result is received within the preset duration, the PDC is performed on the time T based on the received RTT measurement result; when the RTT measurement is not configured, the terminal device performs the PDC on the time T based on the timing advance TA.

可见,该实施方式明确了终端设备被允许对时间T进行PDC时的相关行为。并且,终端设备将是否配置了RTT测量以及存在的RTT测量结果是否在有效期内作为确定PDC方式的开关,与仅基于是否配置了RTT测量来确定PDC方式的方式相比,还充分考虑了终端设备配置了RTT测量且存在的RTT测量结果超过有效期的情况,能够有效提高终端设备与网络设备之间时间同步的精度。It can be seen that this embodiment clarifies the relevant behavior when the terminal device is allowed to perform PDC for the time T. In addition, the terminal device uses whether RTT measurement is configured and whether the existing RTT measurement result is within the validity period as a switch to determine the PDC method. Compared with the method of determining the PDC method based only on whether RTT measurement is configured, the terminal device also fully considers When the RTT measurement is configured and the RTT measurement result exceeds the validity period, the accuracy of time synchronization between the terminal device and the network device can be effectively improved.

在一种可选的实施方式中,RTT测量结果是否在有效期内是终端设备通过定时器确定的。In an optional implementation manner, whether the RTT measurement result is within the validity period is determined by the terminal device through a timer.

在一种可选的实施方式中,终端设备确定被禁止对时间T进行PDC时,该方法还包括:终端设备在配置了往返时延RTT测量时,向网络设备发送最新的终端设备的接收-发送时间差。该实施方式有利于网络设备可基于最新终端设备的接收-发送时间差进行PDC。In an optional implementation manner, when the terminal device determines that it is forbidden to perform PDC on the time T, the method further includes: when the round-trip delay RTT measurement is configured, the terminal device sends to the network device the latest reception of the terminal device- Sending time difference. This embodiment is beneficial for the network device to perform PDC based on the receiving-sending time difference of the latest terminal device.

第二方面,本申请提供一种传播时延补偿方法,该方法包括:网络设备确定第一消息,第一消息用于指示网络设备是否允许终端设备对时间T进行传播时延补偿PDC;时间T是网络设备向终端设备指示的用于空口时间同步的参考时间:网络设备向终端设备发送第一消息。In a second aspect, the present application provides a propagation delay compensation method, which includes: a network device determines a first message, and the first message is used to indicate whether the network device allows the terminal device to perform propagation delay compensation PDC for time T; time T is the reference time for air interface time synchronization indicated by the network device to the terminal device: the network device sends the first message to the terminal device.

可见,网络设备可指示是否允许终端设备对时间T进行PDC,使得终端设备可基于网络设备的指示对时间T进行PDC,从而可实现网络设备控制终端设备进行PDC,有效增强了终端设备和网络设备之间进行时间同步的配合程度,从而可避免网络设备和终端设备均进行PDC而导致时间同步的精确度降低,进而有利于实现网络设备与终端设备之间的高精度时间同步。It can be seen that the network device can indicate whether the terminal device is allowed to perform PDC on the time T, so that the terminal device can perform PDC on the time T based on the instruction of the network device, so that the network device can control the terminal device to perform PDC, effectively enhancing the terminal device and network device. The degree of cooperation between the time synchronization can avoid the reduction of the accuracy of time synchronization caused by both the network device and the terminal device performing PDC, which is conducive to the realization of high-precision time synchronization between the network device and the terminal device.

在一种可选的实施方式中,第一消息包括第一字段;网络设备允许终端设备对时间T进行PDC时,第一字段指示使能enable;网络设备禁止终端设备对时间T进行PDC时,第一字段指示不使能disable;该第二指示用于终端设备确定PDC方式。可选的,网络设备不指示终端设备是被允许对时间T进行PDC,还是被禁止对时间T进行PDC时,第一消息中不包括第一字段。In an optional implementation manner, the first message includes a first field; when the network device allows the terminal device to perform PDC on time T, the first field indicates enable; when the network device prohibits the terminal device from performing PDC on time T, The first field indicates that disable is not enabled; the second indication is used for the terminal device to determine the PDC mode. Optionally, when the network device does not indicate whether the terminal device is allowed to perform the PDC on the time T or is prohibited from performing the PDC on the time T, the first message does not include the first field.

在一种可选的实施方式中,网络设备为分布式单元(distributed unit,DU)与集中式单元(central unit,CU)相分离的架构,网络设备确定第一消息,包括:CU向DU发送第二消息,该第二消息包括第一消息的默认格式;DU接收到第二消息时,确定第一消息。网络设备向终端设备发送第一消息,包括:DU向终端设备发送第一消息,该第一线消息是无线资源控制(radio resource control,RRC)广播消息。可见,该实施方式可应用于广播场景中,由DU决定是否允许终端设备对时间T进行PDC,即是否允许终端设备对时间T进行PDC。In an optional implementation manner, the network device is a structure in which a distributed unit (distributed unit, DU) and a centralized unit (central unit, CU) are separated, and the network device determines the first message, including: the CU sends the DU to the The second message, where the second message includes the default format of the first message; when the DU receives the second message, it determines the first message. The network device sending the first message to the terminal device includes: the DU sending the first message to the terminal device, where the first line message is a radio resource control (radio resource control, RRC) broadcast message. It can be seen that this embodiment can be applied in a broadcasting scenario, and the DU decides whether to allow the terminal device to perform PDC on the time T, that is, whether to allow the terminal device to perform the PDC on the time T.

在一种可选的实施方式中,网络设备为DU与CU相分离的架构,网络设备确定第一消息,包括:DU向CU发送第二消息,该第二消息包括第一消息中第一字段的值;CU接收到第二消息时,确定第一消息。网络设备向终端设备发送第一消息,包括:CU向终端设备发送第一消息,该第一消息是无线资源控制RRC单播消息。可见,该实施方式可应用于单播场景中,由DU决定是否允许终端设备对时间T进行PDC,即是否允许终端设备对时间T进行PDC。In an optional implementation manner, the network device is a structure in which the DU and the CU are separated, and the network device determines the first message, including: the DU sends a second message to the CU, and the second message includes the first field in the first message The value of ; when the CU receives the second message, determine the first message. The network device sending the first message to the terminal device includes: the CU sending the first message to the terminal device, where the first message is a radio resource control RRC unicast message. It can be seen that this embodiment can be applied in a unicast scenario, and the DU decides whether to allow the terminal device to perform PDC on the time T, that is, whether to allow the terminal device to perform the PDC on the time T.

在一种可选的实施方式中,网络设备为分布式单元DU与集中式单元CU相分离的架构,网络设备确定第一消息,包括:DU向CU发送第二消息,该第二消息包括时间T的值以及PDC的值;CU根据时间T的值和PDC的值,确定第一消息。网络设备向终端设备发送第一消息,包括:CU向终端设备发送第一消息,该第一消息是无线资源控制RRC单播消息。可见,该实施方式可应用于单播场景中,由CU决定是否允许终端设备对时间T进行PDC,即是否允许终端设备对时间T进行PDC。In an optional implementation manner, the network device is a structure in which the distributed unit DU and the centralized unit CU are separated, and the network device determines the first message, including: the DU sends a second message to the CU, and the second message includes the time The value of T and the value of PDC; the CU determines the first message according to the value of time T and the value of PDC. The network device sending the first message to the terminal device includes: the CU sending the first message to the terminal device, where the first message is a radio resource control RRC unicast message. It can be seen that this implementation manner can be applied in a unicast scenario, and the CU decides whether to allow the terminal device to perform PDC on the time T, that is, whether to allow the terminal device to perform the PDC on the time T.

第三方面,本申请提供一种通信装置,有益效果可以参见第一方面的描述此处不再赘述。所述通信装置具有实现上述第一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, the present application provides a communication device, and the beneficial effects may refer to the description of the first aspect, which will not be repeated here. The communication device has the function of implementing the actions in the method example of the first aspect above. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

在一个可能的设计中,所述终端设备包括:通信单元,用于接收来自网络设备的第一消息,该第一消息用于指示网络设备是否允许通信装置对时间T进行传播时延补偿PDC;时间T是网络设备向通信装置指示的用于空口时间同步的参考时间;处理单元,用于根据第一消息,确定是否被允许对时间T进行PDC;处理单元,还用于确定被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC。In a possible design, the terminal device includes: a communication unit, configured to receive a first message from the network device, where the first message is used to indicate whether the network device allows the communication device to perform propagation delay compensation PDC for the time T; Time T is the reference time for air interface time synchronization indicated by the network device to the communication device; the processing unit is used to determine whether to allow PDC for time T according to the first message; the processing unit is also used to determine whether it is allowed to perform PDC for time T When T performs PDC, perform PDC on time T according to the configuration of RTT measurement.

这些模块可以执行上述第一方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。These modules can perform the corresponding functions in the method example of the first aspect above. For details, refer to the detailed description in the method example, and details are not repeated here.

第四方面,本申请提供一种通信装置,有益效果可以参见第二方面的描述此处不再赘述。所述通信装置具有实现上述第二方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, the present application provides a communication device, and the beneficial effects may refer to the description of the second aspect, which will not be repeated here. The communication device has the function of implementing the actions in the method example of the second aspect above. The functions described above may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.

在一个可能的设计中,所述通信装置包括:处理单元,用于确定第一消息,该第一消息用于指示通信装置是否允许终端设备对时间T进行传播时延补偿PDC;时间T是通信装置向终端设备指示的用于空口时间同步的参考时间;通信单元,用于向终端设备发送第一消息。In a possible design, the communication device includes: a processing unit, configured to determine a first message, and the first message is used to indicate whether the communication device allows the terminal device to perform propagation delay compensation PDC for time T; time T is communication A reference time for air interface time synchronization indicated by the device to the terminal device; a communication unit configured to send the first message to the terminal device.

这些模块可以执行上述第二方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。These modules can perform the corresponding functions in the method example of the second aspect above. For details, refer to the detailed description in the method example, and details are not repeated here.

第五方面,本申请提供一种通信装置,包括存储器和处理器。其中,存储器用于存储指令或计算机程序;处理器用于执行存储器所存储的计算机程序或指令,以使通信装置执行第一方面所述的方法,或者,执行第二方面所述的方法。In a fifth aspect, the present application provides a communication device, including a memory and a processor. Wherein, the memory is used to store instructions or computer programs; the processor is used to execute the computer programs or instructions stored in the memory, so that the communication device executes the method described in the first aspect, or executes the method described in the second aspect.

第六方面,本申请提供一种计算机可读存储介质,用于存储计算机程序,当计算机程序在计算机上运行时,使得计算机执行第一方面所述的方法,或者,执行第二方面所述的方法。In a sixth aspect, the present application provides a computer-readable storage medium, which is used to store a computer program, and when the computer program is run on a computer, it causes the computer to execute the method described in the first aspect, or to execute the method described in the second aspect. method.

第七方面,本申请实施例提供一种芯片或者芯片系统,该芯片或者芯片系统包括至少一个处理器和接口,接口和至少一个处理器通过线路互联,至少一个处理器用于运行计算机程序或指令,以执行第一方面所述的方法,或者,执行第二方面所述的方法。In a seventh aspect, an embodiment of the present application provides a chip or a chip system, the chip or chip system includes at least one processor and an interface, the interface and the at least one processor are interconnected through a line, and the at least one processor is used to run computer programs or instructions, To execute the method described in the first aspect, or to execute the method described in the second aspect.

其中,芯片中的接口可以为输入/输出接口、管脚或电路等。Wherein, the interface in the chip may be an input/output interface, a pin or a circuit, and the like.

上述方面中的芯片系统可以是片上系统(system on chip,SOC),也可以是基带芯片等,其中基带芯片可以包括处理器、信道编码器、数字信号处理器、调制解调器和接口模块等。The chip system in the above aspect may be a system on chip (system on chip, SOC), or a baseband chip, etc., where the baseband chip may include a processor, a channel encoder, a digital signal processor, a modem, and an interface module.

在一种可能的实现中,本申请中上述描述的芯片或者芯片系统还包括至少一个存储器,该至少一个存储器中存储有指令。该存储器可以为芯片内部的存储单元,例如,寄存器、缓存等,也可以是该芯片的存储单元(例如,只读存储器、随机存取存储器等)。In a possible implementation, the chip or the chip system described above in the present application further includes at least one memory, and instructions are stored in the at least one memory. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (eg, a read-only memory, a random access memory, etc.).

第八方面,本申请提供一种计算机程序或计算机程序产品,包括计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行第一方面所述的方法,或者,执行第二方面所述的方法。In an eighth aspect, the present application provides a computer program or a computer program product, including computer instructions, when the computer instructions are run on a computer, the computer is made to execute the method described in the first aspect, or to execute the second aspect the method described.

附图说明Description of drawings

图1a是本申请实施例提供的一种通信系统的结构示意图;Fig. 1a is a schematic structural diagram of a communication system provided by an embodiment of the present application;

图1b是本申请实施例提供的一种系统架构的结构示意图;Fig. 1b is a schematic structural diagram of a system architecture provided by an embodiment of the present application;

图1c是本申请实施例提供的另一种系统架构的结构示意图;Fig. 1c is a schematic structural diagram of another system architecture provided by an embodiment of the present application;

图2是本申请实施例提供的一种时钟节点的示意图;FIG. 2 is a schematic diagram of a clock node provided by an embodiment of the present application;

图3是本申请实施例提供的一种5GS作为TSN的桥接设备的示意图;FIG. 3 is a schematic diagram of a 5GS as a TSN bridging device provided by an embodiment of the present application;

图4是本申请实施例提供的一种5GS作为透明时钟的示意图;Fig. 4 is a schematic diagram of a 5GS as a transparent clock provided by the embodiment of the present application;

图5是本申请实施例提供的一种单播指示5G时间的示意图;FIG. 5 is a schematic diagram of a unicast indication of 5G time provided by an embodiment of the present application;

图6是本申请实施例提供的一种基于TA的PDC方式的示意图;FIG. 6 is a schematic diagram of a TA-based PDC method provided by an embodiment of the present application;

图7a是本申请实施例提供的一种基于RTT的PDC方式的示意图;Fig. 7a is a schematic diagram of an RTT-based PDC method provided by an embodiment of the present application;

图7b是本申请实施例提供的另一种基于RTT的PDC方式的示意图;Fig. 7b is a schematic diagram of another RTT-based PDC method provided by the embodiment of the present application;

图8是本申请实施例提供的一种传播时延补偿方法的流程示意图;FIG. 8 is a schematic flowchart of a propagation delay compensation method provided by an embodiment of the present application;

图9是本申请实施例提供的一种定时器运行过程的示意图;FIG. 9 is a schematic diagram of a timer running process provided by an embodiment of the present application;

图10a是本申请实施例提供的一种示例性的传播时延补偿方法的示意图;Fig. 10a is a schematic diagram of an exemplary propagation delay compensation method provided by an embodiment of the present application;

图10b是本申请实施例提供的另一种示例性的传播时延补偿方法的示意图;Fig. 10b is a schematic diagram of another exemplary propagation delay compensation method provided by an embodiment of the present application;

图10c是本申请实施例提供的又一种示例性的传播时延补偿方法的示意图;Fig. 10c is a schematic diagram of another exemplary propagation delay compensation method provided by an embodiment of the present application;

图11是本申请实施例提供的一种第一指示和第二指示的示意图;Fig. 11 is a schematic diagram of a first indication and a second indication provided by an embodiment of the present application;

图12是本申请实施例提供的一种侧链路通信场景的示意图;FIG. 12 is a schematic diagram of a side link communication scenario provided by an embodiment of the present application;

图13是本申请实施例提供的一种通信装置的结构示意图;Fig. 13 is a schematic structural diagram of a communication device provided by an embodiment of the present application;

图14是本申请实施例提供的另一种通信装置的结构示意图;FIG. 14 is a schematic structural diagram of another communication device provided by an embodiment of the present application;

图15是本申请实施例提供的一种芯片的结构示意图。FIG. 15 is a schematic structural diagram of a chip provided by an embodiment of the present application.

具体实施方式Detailed ways

下面结合本申请实施例中的附图对本申请实施例进行描述。Embodiments of the present application are described below with reference to the drawings in the embodiments of the present application.

首先,为了更好的理解本申请实施例公开的传播时延补偿方法,对本申请实施例适用的通信系统进行描述。First, in order to better understand the propagation delay compensation method disclosed in the embodiment of the present application, the communication system to which the embodiment of the present application is applicable is described.

本申请实施例的技术方案可应用于各种通信系统中。例如,全球移动通信系统、长期演进(Long Term Evolution,LTE)系统、第四代(4th-Generation,4G)移动通信技术系统、新一代无线接入技术(New Radio,NR)系统,以及随着通信技术的不断发展,本申请实施例的技术方案还可用于后续演进的通信系统,如第六代(6th-Generation,6G)移动通信技术系统、第七代(7th-Generation,7G)移动通信技术系统等等。The technical solutions of the embodiments of the present application can be applied to various communication systems. For example, Global System for Mobile Communications, Long Term Evolution (LTE) system, Fourth Generation (4th-Generation, 4G) mobile communication technology system, New Generation Radio Access Technology (New Radio, NR) system, and with With the continuous development of communication technology, the technical solution of the embodiment of the present application can also be used in subsequent evolution communication systems, such as the sixth generation (6th-Generation, 6G) mobile communication technology system, the seventh generation (7th-Generation, 7G) mobile communication system technology systems and more.

请参阅图1a,图1a是本申请实施例提供的一种通信系统的结构示意图。该通信系统可包括但不限于一个网络设备和一个终端设备。其中,网络设备和终端设备可通过无线连接进行通信,例如,网络设备和终端设备之间可通过Uu接口进行通信。图1a所示的设备数量和形态用于举例并不构成对本申请实施例的限定,实际应用中可包括两个或两个以上的网络设备,两个或两个以上的终端设备。图1a所示的通信系统以一个网络设备和一个终端设备为例进行阐述。图1a中网络设备以基站为例,终端设备以手机为例。Please refer to FIG. 1a. FIG. 1a is a schematic structural diagram of a communication system provided by an embodiment of the present application. The communication system may include but not limited to a network device and a terminal device. Wherein, the network device and the terminal device may communicate through a wireless connection, for example, the network device and the terminal device may communicate through a Uu interface. The number and form of devices shown in FIG. 1a are for example and do not constitute a limitation to the embodiment of the present application. In practical applications, two or more network devices and two or more terminal devices may be included. The communication system shown in FIG. 1a is described by taking a network device and a terminal device as an example. In Fig. 1a, a network device is taken as an example of a base station, and a terminal device is taken as an example of a mobile phone.

本申请实施例中,网络设备为接入网设备,可以是将终端设备接入到无线网络的无线接入网(radio access network,RAN)节点(或称为无线接入网设备),该网络设备包括但不限于:演进型节点B(evolved node B,eNB)、无线网络控制器(radio networkcontroller,RNC)、节点B(Node B,NB)、网络设备控制器(base station controller,BSC)、网络设备收发台(base transceiver station,BTS)、家庭网络设备(例如,home evolvedNode B,或home Node B,HNB)、基带单元(baseband unit,BBU),无线保真(wirelessfidelity,WIFI)系统中的接入点(access point,AP)、无线中继节点、无线回传节点、收发节点(transmission and reception point,TRP)、传输点(transmission point,TP)等;还可以为第五代(5th-Generation,5G)、6G甚至7G系统中使用的设备,如NR系统中的gNB,或传输点(TRP或TP),5G系统中的网络设备的一个或一组(包括多个天线面板)天线面板,或者,还可以为构成gNB或传输点的网络节点,如基带单元(BBU),或,分布式单元(distributedunit,DU),或,车联网(vehicle to everything,V2X)或者智能驾驶场景中的路侧单元(road side unit,RSU)。In the embodiment of the present application, the network device is an access network device, which may be a radio access network (radio access network, RAN) node (or called a radio access network device) that connects a terminal device to a wireless network. The equipment includes but not limited to: evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (Node B, NB), network device controller (base station controller, BSC), Network equipment transceiver station (base transceiver station, BTS), home network equipment (for example, home evolvedNode B, or home Node B, HNB), baseband unit (baseband unit, BBU), wireless fidelity (wirelessfidelity, WIFI) system in Access point (access point, AP), wireless relay node, wireless backhaul node, transmission and reception point (TRP), transmission point (transmission point, TP), etc.; it can also be the fifth generation (5th- Generation, 5G), equipment used in 6G and even 7G systems, such as gNB in NR system, or transmission point (TRP or TP), one or a group (including multiple antenna panels) of network equipment in 5G system antenna panels , or, it can also be a network node that constitutes a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU), or a vehicle to everything (V2X) or intelligent driving scene Road side unit (road side unit, RSU).

在一些部署中,网络设备可包括集中式单元(centralized unit,CU)和DU等。该网络设备还可以包括射频单元(radio unit,RU)。其中,CU实现网络设备的部分功能,DU实现网络设备的部分功能,比如,CU实现无线资源控制(radio resource control,RRC),分组数据汇聚层协议(packet data convergence protocol,PDCP)层的功能,DU实现无线链路控制(radio link control,RLC)、媒体接入控制(media access control,MAC)和物理(physical,PHY)层的功能。由于RRC层的信息最终会变成物理层的信息,或者,由物理层的信息转变而来,因而,在这种架构下,高层信令,如RRC层信令或PDCP层信令,也可以认为是由DU发送的,或者,由DU+RU发送的。可以理解的是,网络设备可以为CU节点、或DU节点、或包括CU和DU的设备。In some deployments, network devices may include centralized units (centralized units, CUs), DUs, and the like. The network device may also include a radio frequency unit (radio unit, RU). Among them, the CU implements some functions of the network equipment, and the DU implements some functions of the network equipment. For example, the CU implements radio resource control (radio resource control, RRC), packet data convergence protocol (packet data convergence protocol, PDCP) layer functions, The DU implements the functions of radio link control (radio link control, RLC), media access control (media access control, MAC) and physical (physical, PHY) layer. Because the information of the RRC layer will eventually become the information of the physical layer, or be converted from the information of the physical layer, therefore, under this framework, high-level signaling, such as RRC layer signaling or PDCP layer signaling, can also be It is considered to be sent by DU, or sent by DU+RU. It can be understood that the network device may be a CU node, or a DU node, or a device including a CU and a DU.

其中,网络设备为包括CU和DU的设备且进行广播通信时,可通过DU与终端设备进行通信,如图1b所示。网络设备为包括CU和DU的设备且进行单播通信时,网络设备向终端设备发送的数据需由CU加密后再发给终端设备,因此,网络设备通过CU与终端设备进行通信,如图1c所示。Wherein, when the network device is a device including a CU and a DU and performs broadcast communication, it can communicate with a terminal device through the DU, as shown in FIG. 1b. When the network device is a device including CU and DU and performs unicast communication, the data sent by the network device to the terminal device must be encrypted by the CU before being sent to the terminal device. Therefore, the network device communicates with the terminal device through the CU, as shown in Figure 1c shown.

本申请实施例中,终端设备可以是向用户提供语音和/或数据连通性的设备。终端设备也可以称为用户设备(user equipment,UE)、终端、接入终端、用户单元、用户站、移动站、移动台(mobile station,MS)、移动终端(mobile terminal,MT)、远方站、远程终端、移动设备、用户终端、用户代理或用户装置,可以应用于4G、5G甚至6G系统。本申请实施例中的终端设备可以是普通电话线上进行数字信号传送和接收的关节设备,还可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrialcontrol)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remotemedical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportationsafety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、前述的无线终端类型的RSU等等。终端设备还可以是能够进行侧链路(sidelink)通信的设备,例如,终端设备可以是车载终端,或者能进行V2X通信的手持终端等。In this embodiment of the present application, the terminal device may be a device that provides voice and/or data connectivity to a user. Terminal equipment may also be called user equipment (user equipment, UE), terminal, access terminal, subscriber unit, subscriber station, mobile station, mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), remote station , remote terminal, mobile device, user terminal, user agent or user device, which can be applied to 4G, 5G or even 6G systems. The terminal device in the embodiment of the present application may be a joint device for transmitting and receiving digital signals on an ordinary telephone line, or it may be a mobile phone, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (virtual reality) reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, wireless terminals in industrial control (industrial control), wireless terminals in self-driving (self driving), wireless terminals in remote medical (remotemedical), Wireless terminals in smart grid, wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, RSUs of the aforementioned wireless terminal types etc. The terminal device may also be a device capable of sidelink (sidelink) communication, for example, the terminal device may be a vehicle-mounted terminal, or a handheld terminal capable of V2X communication.

为了便于理解本申请公开的实施例,作以下两点说明。In order to facilitate understanding of the embodiments disclosed in the present application, the following two points are explained.

(1)本申请公开的实施例中场景以无线通信网络中NR网络的场景为例进行说明,应当指出的是,本申请公开的实施例中的方案还可以应用于其他无线通信网络中,相应的名称也可以用其他无线通信网络中的对应功能的名称进行替代。(1) The scenarios in the embodiments disclosed in the present application are described by taking the scenario of the NR network in the wireless communication network as an example. It should be pointed out that the solutions in the embodiments disclosed in the present application can also be applied to other wireless communication networks. The name of can also be replaced by the name of the corresponding function in other wireless communication networks.

(2)本申请公开的实施例将围绕包括多个设备、组件、模块等的系统来呈现本申请的各个方面、实施例或特征。应当理解和明白的是,各个系统可以包括另外的设备、组件、模块等,并且/或者可以并不包括结合附图讨论的所有设备、组件、模块等。此外,还可以使用这些方案的组合。(2) Embodiments disclosed in the application will present various aspects, embodiments or features of the application around a system including a plurality of devices, components, modules, and the like. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc. and/or may not include all of the devices, components, modules etc. discussed in connection with the figures. Additionally, combinations of these schemes can also be used.

其次,对本申请实施例涉及的相关概念进行简单的介绍。Secondly, a brief introduction is given to related concepts involved in the embodiments of the present application.

1.高精度时间同步协议(precision time protocol,PTP)1. Precision time protocol (PTP)

PTP是一种可用于实现设备之间精确时间同步(timing synchronization)的协议,基于PTP实现的时间同步可达到亚微秒级的精度。其中,时间同步还可称为时钟同步。针对时间同步,在PTP中定义了三种基本的时钟节点的类型,包括:普通时钟(ordinary,clock,OC)、边界时钟(boundary,clock,BC)以及透明时钟(transparent,clock,TC)。下面对这三种类型的时钟节点进行介绍:PTP is a protocol that can be used to implement precise time synchronization (timing synchronization) between devices, and the time synchronization based on PTP can achieve sub-microsecond precision. Wherein, time synchronization may also be referred to as clock synchronization. For time synchronization, three basic types of clock nodes are defined in PTP, including: ordinary clock (ordinary, clock, OC), boundary clock (boundary, clock, BC) and transparent clock (transparent, clock, TC). The three types of clock nodes are introduced below:

(1)OC中只存在一个时钟端口,该时钟端口可用于在网络中与其他时钟通信。OC可以作为主时钟(grandmaster clock,GM)或从时钟(slave clock,SC)。其中,GM是指用于向下游节点发布时间信息的时钟;SC是指基于接收的来自上游节点的时间信息,与上游节点同步时间的时钟。其中,基于PTP进行时间同步过程中的时间信息可由PTP消息携带。例如,时钟1向时钟2发送时间信息以实现时钟1与时钟2之间的时间同步时,时钟1为上游节点,时钟2为下游节点。(1) There is only one clock port in OC, which can be used to communicate with other clocks in the network. The OC can be used as a master clock (grandmaster clock, GM) or a slave clock (slave clock, SC). Among them, GM refers to a clock used to issue time information to downstream nodes; SC refers to a clock that synchronizes time with upstream nodes based on received time information from upstream nodes. Wherein, the time information in the process of time synchronization based on PTP may be carried in a PTP message. For example, when clock 1 sends time information to clock 2 to implement time synchronization between clock 1 and clock 2, clock 1 is the upstream node and clock 2 is the downstream node.

另外,GM可通过主时钟端口(即M端口)向下游节点发布时间信息,SC可通过从时钟端口(即S端口)接收来自上游节点的时间信息。例如,结合图2,图2中,OC-1作为主时钟,OC-2、OC-3以及OC-4均作为从时钟。In addition, the GM can issue time information to downstream nodes through the master clock port (ie, the M port), and the SC can receive time information from the upstream node through the slave clock port (ie, the S port). For example, referring to FIG. 2 , in FIG. 2 , OC-1 serves as a master clock, and OC-2, OC-3, and OC-4 all serve as slave clocks.

(2)BC中存在多个时钟端口,每个时钟端口均可用于在网络中与其他时钟通信。在BC的多个时钟端口中,存在一个时钟端口用于与上游节点同步时间,除该时钟端口外的其他时钟端口用于向下游节点发布时间信息。例如,结合图2,BC-1包括端口1、端口2和端口3;其中,端口1为S端口,可用于BC-1接收来自TC-1的时间信息;端口2和端口3均为M端口,端口2可用于BC-1向OC-2发送时间信息,端口3可用于BC-1向TC-2发送时间信息。(2) Multiple clock ports exist in BC, and each clock port can be used to communicate with other clocks in the network. Among the multiple clock ports of the BC, there is a clock port for synchronizing time with the upstream node, and other clock ports are used for publishing time information to the downstream nodes. For example, in combination with Figure 2, BC-1 includes port 1, port 2, and port 3; among them, port 1 is an S port, which can be used for BC-1 to receive time information from TC-1; port 2 and port 3 are both M ports , Port 2 can be used for BC-1 to send time information to OC-2, and port 3 can be used for BC-1 to send time information to TC-2.

另外,BC需与其他时钟保持时间同步。具体地,BC在接收到来自上游节点的PTP消息后,会基于该PTP消息与上游节点同步时间,但不会将接收的PTP消息直接转发出去,而是基于该PTP消息生成新的PTP消息,再将新的PTP消息发送给下游节点。例如,结合图2,BC-1通过S端口(即端口1)接收来自TC-1的PTP消息后,基于该PTP消息与OC-1同步时间,且基于该PTP消息生成新的PTP消息,再通过M端口(即端口2)将新的PTP消息发送给OC-2。In addition, BC needs to maintain time synchronization with other clocks. Specifically, after the BC receives the PTP message from the upstream node, it will synchronize the time with the upstream node based on the PTP message, but will not directly forward the received PTP message, but will generate a new PTP message based on the PTP message, Then send the new PTP message to the downstream node. For example, in conjunction with Fig. 2, after BC-1 receives the PTP message from TC-1 through the S port (ie port 1), it synchronizes time with OC-1 based on the PTP message, and generates a new PTP message based on the PTP message, and then Send a new PTP message to OC-2 through the M port (ie, port 2).

(3)TC中存在多个时钟端口,这些时钟端口用于转发PTP消息。TC可对PTP消息进行转发时延校正,且TC不需要与其他时钟保持时间同步。具体地,TC对PTP消息进行转发时延校正,可包括:TC配置PTP消息的修正域(correctionField)字段,该correctionField字段用于指示该PTP消息在本节点的逗留时间,PTP消息在本节点的逗留时间也可称为修正值。从而TC的下游节点在接收到PTP消息后,可基于PTP消息携带的时间信息以及correctionField字段所指示的修正值进行时间同步。例如,结合图2,TC-1接收来自OC-1的PTP消息,对该PTP消息进行转发时延校正后将其发送给BC-1。(3) Multiple clock ports exist in the TC, and these clock ports are used to forward PTP messages. The TC can correct the forwarding delay of the PTP message, and the TC does not need to keep time synchronization with other clocks. Specifically, the TC performs forwarding delay correction on the PTP message, which may include: the TC configures the correction field (correctionField) field of the PTP message, and the correctionField field is used to indicate the stay time of the PTP message at the local node. Dwell time may also be referred to as a correction value. Therefore, after receiving the PTP message, the downstream node of the TC can perform time synchronization based on the time information carried in the PTP message and the correction value indicated by the correctionField field. For example, referring to FIG. 2 , TC-1 receives a PTP message from OC-1, corrects the forwarding delay of the PTP message, and sends it to BC-1.

2.时延敏感网络(time sensitive network,TSN)2. Time sensitive network (TSN)

TSN可应用于工业控制场景。在工业控制场景中,主节点(如控制台)发出的控制信令可在指定时间内到达从节点(如操作臂),且从节点可在指定的时间点执行相应操作,可见工业控制网络通常是一种TSN。TSN中通常使用高精度时间同步协议来实现TSN设备之间精确的时间同步,从而来支持基于时间的操作控制。其中,高精度时间同步协议可以是PTP,或是电气和电子工程师协会(Institute of Electrical and Electronics Engineers,IEEE)1588协议。TSN can be applied to industrial control scenarios. In the industrial control scenario, the control signaling sent by the master node (such as the console) can reach the slave node (such as the operating arm) within a specified time, and the slave node can perform the corresponding operation at the specified time point. It can be seen that the industrial control network usually is a TSN. TSN usually uses a high-precision time synchronization protocol to achieve precise time synchronization between TSN devices, thereby supporting time-based operation control. Wherein, the high-precision time synchronization protocol may be PTP, or the Institute of Electrical and Electronics Engineers (Institute of Electrical and Electronics Engineers, IEEE) 1588 protocol.

可见,在工业制造等场景中,通常通过TSN来进行产品线控制。目前,TSN基本承载在有线网络上,而基于有线方式部署的TSN存在线缆部署成本高、存在安全风险、灵活性低等固有缺陷。若基于无线方式部署TSN可有效避免上述问题,特别是在TSN网络的最后一跳采用无线方式,即在TSN设备与终端设备之间采用无线连接。在第三代合作伙伴项目(3rdgeneration partnership project,3GPP)Rel-16中讨论了5G系统(5G system,5GS)支持TSN的方案。结合图3,在TSN中,可将5GS看成是一个TSN桥接设备(TSN bridge),TSN设备之间可通过5GS对TSN的业务数据包进行上行传输或下行传输。另外,在5GS支持TSN的方案中,TSN中的时间同步要求TSN主时钟和TSN从时钟之间的同步误差在1微秒(us)内。It can be seen that in scenarios such as industrial manufacturing, product line control is usually performed through TSN. At present, TSN is basically carried on the wired network, but the TSN based on the wired network has inherent defects such as high cable deployment costs, security risks, and low flexibility. Deploying TSN based on the wireless method can effectively avoid the above problems, especially when the last hop of the TSN network adopts a wireless method, that is, a wireless connection is used between the TSN device and the terminal device. In the 3rd generation partnership project (3rd generation partnership project, 3GPP) Rel-16, the scheme of 5G system (5G system, 5GS) supporting TSN is discussed. Combined with Figure 3, in TSN, 5GS can be regarded as a TSN bridge device (TSN bridge), and TSN devices can perform uplink or downlink transmission of TSN service data packets through 5GS. In addition, in the 5GS solution supporting TSN, the time synchronization in TSN requires that the synchronization error between the TSN master clock and the TSN slave clock be within 1 microsecond (us).

另外,在5G系统支持TSN的方案中,TSN使用PTP来实现TSN设备之间精确的时间同步时,还需5GS与PTP适配。在3GPP采取的方案中,可将5GS视为PTP中的透明时钟,那么,TSN中的GM发出的PTP消息可通过5GS转发给TSN网络端设备。另外,在5GS和TSN相连接的边界位置还需使用TSN适配器对PTP相关的消息或数据包进行处理。例如,结合图4,设备侧TSN适配器(Device-side TSN Translator,DS-TT)(或称为UE-TT)是5GS中的终端设备与TSN设备连接处所使用的TSN适配器,DS-TT可以是与终端设备连接的一个处理设备或是终端设备的一个逻辑功能;网络侧TSN适配器(network-side TSN translator,NW-TT)是5GS中的用户面功能(User Plane Function,UPF)网元与TSN设备连接处所使用的TSN适配器,NW-TT可以是与UPF连接的一个处理设备或是UPF的一个逻辑功能。In addition, in the solution where the 5G system supports TSN, when TSN uses PTP to achieve precise time synchronization between TSN devices, 5GS and PTP adaptation is also required. In the scheme adopted by 3GPP, 5GS can be regarded as a transparent clock in PTP, then, the PTP message sent by GM in TSN can be forwarded to the TSN network end device through 5GS. In addition, at the border where 5GS and TSN are connected, a TSN adapter needs to be used to process PTP-related messages or data packets. For example, referring to Figure 4, the Device-side TSN Translator (Device-side TSN Translator, DS-TT) (or UE-TT) is the TSN adapter used at the connection between the terminal device and the TSN device in 5GS, and DS-TT can be A processing device connected to the terminal device or a logical function of the terminal device; the network-side TSN adapter (network-side TSN translator, NW-TT) is the user plane function (User Plane Function, UPF) network element in 5GS and TSN The TSN adapter used at the device connection, NW-TT can be a processing device connected to the UPF or a logical function of the UPF.

5GS作为透明时钟,需获得PTP消息在5GS内的逗留时间以配置PTP消息的correctionField字段。为了获得PTP消息在5GS内的逗留时间,还需保证5GS中终端设备和UPF之间的5G时间同步。其中,终端设备和UPF之间的时间同步是通过两者从相同时钟源获取时间来保证的。具体地,结合图4,gNB和5G GM进行时间同步,UE和UPF分别与gNB进行时间同步以实现UE和UPF之间的时间同步。其中,UE和gNB可通过空口同步方案实现时钟同步,UPF和gNB之间可通过PTP实现时钟同步。As a transparent clock, the 5GS needs to obtain the residence time of the PTP message in the 5GS to configure the correctionField field of the PTP message. In order to obtain the residence time of the PTP message in 5GS, it is also necessary to ensure the 5G time synchronization between the terminal equipment and UPF in 5GS. Wherein, the time synchronization between the terminal equipment and the UPF is guaranteed by obtaining the time from the same clock source. Specifically, referring to FIG. 4 , the gNB and the 5G GM perform time synchronization, and the UE and the UPF perform time synchronization with the gNB respectively to realize time synchronization between the UE and the UPF. Among them, UE and gNB can realize clock synchronization through the air interface synchronization scheme, and UPF and gNB can realize clock synchronization through PTP.

PTP消息在5GS内的逗留时间是基于UPF接收到来自TSN设备的5G时间和终端设备向TSN设备发送PTP消息的5G时间确定的。结合图4,当UPF对应的NW-TT接收到来自TSN设备的PTP消息时,会打上5G时间戳tin;UE对应的DS-TT向TSN设备发送PTP消息的5G时间为tout;那么,PTP消息在5GS内的逗留时间即为tout-tinThe residence time of the PTP message in 5GS is determined based on the 5G time received by the UPF from the TSN device and the 5G time when the terminal device sends the PTP message to the TSN device. In combination with Figure 4, when the NW-TT corresponding to the UPF receives the PTP message from the TSN device, it will stamp the 5G time stamp t in ; the 5G time for the DS-TT corresponding to the UE to send the PTP message to the TSN device is t out ; then, The stay time of the PTP message in the 5GS is t out -t in .

3.5G空口时间同步和传播时延补偿(propagation delay compensation,PDC)3.5G air interface time synchronization and propagation delay compensation (propagation delay compensation, PDC)

5G空口时间同步是通过网络设备向终端设备指示一个5G时间参考点来实现的。网络设备可通过广播方式或单播方式向终端设备进行5G授时。其中,网络设备通过广播方式向终端设备发送的5G参考时间可以是由系统消息块(system information block,SIB)(如SIB9)携带的;网络设备通过单播方式向终端设备发送的5G参考时间可以是由下行消息传输(DLInformationTransfer)消息携带的。The 5G air interface time synchronization is realized by indicating a 5G time reference point to the terminal device through the network device. Network devices can provide 5G timing to terminal devices through broadcast or unicast. Wherein, the 5G reference time sent by the network device to the terminal device by broadcasting may be carried by a system information block (SIB) (such as SIB9); the 5G reference time sent by the network device to the terminal device by unicast may be It is carried by a downlink message transfer (DLInformationTransfer) message.

下面以网络设备通过单播方式向终端设备进行5G授时为例,对5G空口时间同步作进一步阐述。结合图5,网络设备在系统帧号(System Frame Number,SFN)为x-3(即SFN x-3)的时隙上向终端设备发送DLInformationTransfer消息,该DLInformationTransfer消息携带了时间T和时间参考点SFN x。其中,时间T是网络设备向终端设备指示的时间参考点对应的时间;该时间参考点可以是网络设备向终端设备发送的一个或多个无线帧上的某个时间位置。例如,时间参考点可以是某个无线帧的起始位置或结束位置。终端设备接收到DLInformationTransfer消息后,可获知离接收到DLInformationTransfer消息的时刻最近的SFN x对应的无线帧(radio frame)结束位置对应的5G参考时间为时间T。例如,时间参考点为无线帧1的起始位置,那么,终端设备在接收到无线帧1的起始位置时,可确定无线帧1的起始位置对应的时间为时间T。The following takes the network device to provide 5G time service to the terminal device through unicast as an example, and further elaborates on the time synchronization of the 5G air interface. In conjunction with Figure 5, the network device sends a DLInformationTransfer message to the terminal device on a time slot where the System Frame Number (SFN) is x-3 (ie, SFN x-3), and the DLInformationTransfer message carries the time T and the time reference point SFN x. The time T is the time corresponding to the time reference point indicated by the network device to the terminal device; the time reference point may be a certain time position on one or more wireless frames sent by the network device to the terminal device. For example, the time reference point may be the start position or the end position of a certain radio frame. After the terminal device receives the DLInformationTransfer message, it can know that the 5G reference time corresponding to the end position of the radio frame (radio frame) corresponding to the SFN x closest to the moment when the DLInformationTransfer message is received is time T. For example, if the time reference point is the start position of radio frame 1, then, when the terminal device receives the start position of radio frame 1, it may determine that the time corresponding to the start position of radio frame 1 is time T.

PDC可用于设备之间进行精确地时间同步。网络设备与终端设备之间进行时间同步时,网络设备发送信号到终端设备接收到该信号的过程中存在传播时延,即网络设备发送的下行信号的帧边界与终端设备接收的下行信号的帧边界之间存在时间差。那么,图5中,若时间T为网络设备发送SFN x对应的无线帧结束位置的5G时间,则终端设备基于单播授时消息进行5G时间同步的过程中还需进行PDC,包括:基于时间T和传播时延来确定接收到SFN x对应的无线帧结束位置的实际5G时间,即接收到SFN x对应的无线帧结束位置的实际5G时间是时间T与传播时延之和。PDC can be used for precise time synchronization between devices. When time synchronization is performed between the network device and the terminal device, there is a propagation delay between the network device sending a signal and the terminal device receiving the signal, that is, the frame boundary of the downlink signal sent by the network device and the frame of the downlink signal received by the terminal device There is a time difference between boundaries. Then, in Figure 5, if the time T is the 5G time at the end position of the wireless frame corresponding to the network device sending SFN x, then the terminal device needs to perform PDC in the process of 5G time synchronization based on the unicast timing message, including: based on the time T and the propagation delay to determine the actual 5G time of receiving the end position of the radio frame corresponding to SFN x, that is, the actual 5G time of receiving the end position of the radio frame corresponding to SFN x is the sum of the time T and the propagation delay.

本申请实施例中,终端设备进行PDC是指终端设备基于时间T和传播时延确定终端设备接收到时间参考点的实际时间;网络设备进行PDC是指网络设备基于传播时延确定终端设备接收到时间参考点的实际时间。可见,网络设备向终端设备发送的时间T可能是网络设备针对时间参考点未进行PDC的时间,也可能是针对时间参考点进行PDC后的时间,即计算的终端设备接收到时间参考点的实际时间。另外,本申请实施例中,网络设备进行PDC还可称为网络设备进行PDC的预补偿。In this embodiment of the application, the terminal device performing PDC means that the terminal device determines the actual time when the terminal device receives the time reference point based on the time T and the propagation delay; the network device performing PDC means that the network device determines that the terminal device receives The actual time at the time reference point. It can be seen that the time T sent by the network device to the terminal device may be the time when the network device has not performed PDC for the time reference point, or it may be the time after performing PDC for the time reference point, that is, the calculated actual time when the terminal device receives the time reference point time. In addition, in this embodiment of the present application, the network device performing PDC may also be referred to as the network device performing PDC pre-compensation.

4.定时提前(timing advance,TA)机制和基于TA的PDC方式4. Timing advance (TA) mechanism and TA-based PDC method

TA机制的本质是终端设备发送上行子帧的时间相比于接收下行子帧的时间提前一定的时间,即终端设备接收下行子帧的起始时间与传输上行子帧的起始时间之间存在一个负偏移(即TA值)。在正交多址接入系统中,网络设备基于TA机制适当地控制每个终端设备对应的负偏移,以控制来自不同终端设备的上行信号到达网络设备的时间,从而可使得来自同一个子帧但不同频域资源的不同终端设备的信号到达网络设备的时间基本上是对齐的,进而保证上行传输的正交性,避免小区内干扰。The essence of the TA mechanism is that the time for the terminal device to send the uplink subframe is a certain time ahead of the time for receiving the downlink subframe, that is, there is a gap between the start time of the terminal device receiving the downlink subframe and the start time of transmitting the uplink subframe. A negative offset (i.e. TA value). In the orthogonal multiple access system, the network device properly controls the negative offset corresponding to each terminal device based on the TA mechanism to control the time when the uplink signals from different terminal devices arrive at the network device, so that the signals from the same subframe can However, the arrival time of signals of different terminal devices with different frequency domain resources to the network device is basically aligned, thereby ensuring the orthogonality of uplink transmission and avoiding interference in the cell.

结合图6,终端设备相对于接收的下行信号的帧边界的时间提前2Tp(即理想情况下的TA值)发送上行信号;那么,上行信号经过Tp的传播时延后,到达网络设备的时间和网络设备发送的下行信号的帧边界的时间是对齐的。可见,通过该方式,小区内的终端设备在同一个子帧发送的上行信号到达网络设备的时间是对齐的。Referring to Figure 6, the terminal device sends the uplink signal 2T p ahead of the time of the frame boundary of the received downlink signal (that is, the ideal TA value); then, the uplink signal reaches the network device after the propagation delay of T p The time is aligned with the time of the frame boundary of the downlink signal sent by the network device. It can be seen that in this manner, the uplink signals sent by the terminal devices in the cell in the same subframe arrive at the network device at the same time.

网络设备可通过定时提前指令(timing advance command,TAC)向终端设备发送TA值。具体地,在随机接入过程中,网络设备可通过TAC字段指示绝对的TA值;或者,网络设备通过TAC媒体访问控制层控制单元(medium access control control element,MAC CE)指示TA调整值。例如,网络设备向终端设备发送了TA值为10s(绝对值),若网络设备希望将该TA值调整为12s(绝对值),则可向终端设备指示TA调整值为2s。The network device may send the TA value to the terminal device through a timing advance command (timing advance command, TAC). Specifically, in the random access process, the network device may indicate the absolute TA value through the TAC field; or, the network device may indicate the TA adjustment value through the TAC medium access control element (MAC CE). For example, the network device sends a TA value of 10s (absolute value) to the terminal device. If the network device wishes to adjust the TA value to 12s (absolute value), it may indicate to the terminal device that the TA adjustment value is 2s.

基于TA的PDC方式中,终端设备在接收到来自网络设备的TA值后,可通过来近似确定Tp,即传播时延,从而基于确定的传播时延进行PDC。In the TA-based PDC method, after receiving the TA value from the network device, the terminal device can pass To approximately determine T p , that is, the propagation delay, so as to perform PDC based on the determined propagation delay.

另外,基于TA的PDC方式受限于TA粒度,如TA对应的带宽。并且,终端设备还可能会由于MAC CE对TAC的交付失败而无法应用准确的TA值,从而导致网络设备与终端设备应用的TA值不同,进而导致网络设备与终端设备之间的时间同步的精度下降。In addition, the TA-based PDC method is limited by the TA granularity, such as the bandwidth corresponding to the TA. In addition, the terminal device may fail to apply an accurate TA value due to the failure of the MAC CE to deliver the TAC, resulting in a difference in the TA value applied by the network device and the terminal device, which in turn leads to the accuracy of time synchronization between the network device and the terminal device decline.

5.基于往返时延(round-trip-time,RTT)的PDC方式5. PDC method based on round-trip-time (RTT)

基于RTT的PDC方式中,网络设备和终端设备分别向对端发送参考信号,网络设备测量接收到来自终端设备的上行(uplink,UL)参考信号的时间点与发送下行(downlink,DL)参考信号的时间点之间的差值,即网络设备的接收-发送时间差;终端设备测量接收到来自网络设备的下行参考信号的时间与发送上行参考信号的时间之间的差值,即终端设备的接收-发送时间差。其中,网络设备的接收-发送时间差的取值可以是正数或负数,取决于网络设备接收到上行参考信号和发送下行参考信号的先后顺序;同理的,终端设备的接收-发送时间差的取值可以是正数或负数,取决于终端设备接收到下行参考信号和发送上行参考信号的先后顺序。In the RTT-based PDC method, the network device and the terminal device send reference signals to the opposite end respectively, and the network device measures the time point of receiving the uplink (uplink, UL) reference signal from the terminal device and sends the downlink (downlink, DL) reference signal The difference between the time points, that is, the receiving-sending time difference of the network device; the terminal device measures the difference between the time when it receives the downlink reference signal from the network device and the time when the uplink reference signal is sent, that is, the receiving time of the terminal device - Difference in sending time. Among them, the value of the receiving-sending time difference of the network device can be a positive number or a negative number, depending on the order in which the network device receives the uplink reference signal and sends the downlink reference signal; similarly, the value of the receiving-sending time difference of the terminal device It can be a positive number or a negative number, depending on the order in which the terminal device receives the downlink reference signal and sends the uplink reference signal.

那么,网络设备与终端设备之间的RTT为网络设备的接收-发送时间差与终端设备的接收-发送时间差之和,传播时延为 Then, the RTT between the network device and the terminal device is the sum of the receiving-sending time difference of the network device and the receiving-sending time difference of the terminal device, and the propagation delay is

例如,网络设备向终端设备发送下行参考信号,并记录发送时刻t1;终端设备接收下行参考信号,并记录接收时刻t2;终端设备向网络设备发送上行参考信号,并记录发送时刻t3;网络设备接收上行参考信号,并记录接收时刻t4;可见,网络设备的接收-发送时间差为(t4-t1),终端设备的接收-发送时间差为(t2-t3)。那么,网络设备与终端设备之间的RTT为(t4-t1)+(t2-t3);传播时延为 For example, the network device sends the downlink reference signal to the terminal device, and records the sending time t1 ; the terminal device receives the downlink reference signal, and records the receiving time t2 ; the terminal device sends the uplink reference signal to the network device, and records the sending time t3 ; The network device receives the uplink reference signal and records the receiving time t 4 ; it can be seen that the receiving-sending time difference of the network device is (t 4 -t 1 ), and the receiving-sending time difference of the terminal device is (t 2 -t 3 ). Then, the RTT between the network device and the terminal device is (t 4 -t 1 )+(t 2 -t 3 ); the propagation delay is

其中,RTT和传播时延可由终端设备确定,也可由网络设备确定。结合图7a,RTT和传播时延由终端设备确定的过程中,网络设备在确定网络设备的接收-发送时间差之后,还需向终端设备发送该网络设备的接收-发送时间差,终端设备基于网络设备的接收-发送时间差和确定的终端设备的接收-发送时间差计算RTT和传播时延。结合图7b,RTT和传播时延由网络设备确定的过程中,终端设备在确定终端设备的接收-发送时间差之后,还需向网络设备发送该网络设备的接收-发送时间差,网络设备基于终端设备的接收-发送时间差和确定的网络设备的接收-发送时间差计算RTT和传播时延,并向终端设备发送确定的传播时延。Wherein, the RTT and the propagation delay may be determined by the terminal equipment, and may also be determined by the network equipment. Referring to Figure 7a, in the process of determining the RTT and propagation delay by the terminal device, the network device needs to send the receiving-sending time difference of the network device to the terminal device after determining the receiving-sending time difference of the network device. The terminal device is based on the network device RTT and Propagation Delay are calculated from the receiving-sending time difference and the determined receiving-sending time difference of the terminal equipment. In conjunction with Figure 7b, in the process of determining the RTT and propagation delay by the network device, the terminal device needs to send the receive-send time difference of the network device to the network device after determining the receive-send time difference of the terminal device. The network device is based on the terminal device The receiving-sending time difference and the determined receiving-sending time difference of the network device calculate the RTT and the propagation delay, and send the determined propagation delay to the terminal device.

另外,基于RTT的PDC方式可满足比基于TA的PDC方式更加苛刻的时间同步精度水平。因此,基于TA的PDC方式一般作为基于RTT的PDC方式的替代方案。In addition, the RTT-based PDC method can meet a more stringent time synchronization accuracy level than the TA-based PDC method. Therefore, the TA-based PDC method is generally used as an alternative to the RTT-based PDC method.

本申请实施例中,终端设备的接收-发送时间差还可称为UE接收端(Receive End,Rx)-发送端(Transmit EndTx);网络设备为gNB时,网络设备的接收-发送时间差还可称为gNBRx-TxIn the embodiment of the present application, the receiving-sending time difference of the terminal device can also be referred to as UE receiving end (Receive End, Rx)-transmitting end (Transmit End , Tx) ; when the network device is a gNB, the receiving-sending time difference of the network device is also May be called gNB Rx-Tx .

网络设备与终端设备之间进行时间同步的过程中,由于网络设备与终端设备之间传输无线帧时还存在传播时延,该传播时延会对网络设备与终端设备之间的时间同步造成影响,因此,网络设备与终端设备在进行时间同步时还需进行PDC。In the process of time synchronization between the network device and the terminal device, there is still a propagation delay when transmitting wireless frames between the network device and the terminal device, and this propagation delay will affect the time synchronization between the network device and the terminal device , therefore, the network device and the terminal device also need to perform PDC when performing time synchronization.

若网络设备进行PDC后,将PDC后的时间T发送给终端设备,即将确定的时间参考点的实际时间发送给终端设备;终端设备接收时间T,但并不知晓该时间T为网络设备确定的时间参考点的实际时间,终端设备可能会对时间T进行PDC,从而可能会导致终端设备确定的时间参考点的实际时间与网络设备确定的时间参考点的实际时间相差较大,进而较低终端设备与网络设备之间的时间同步的精度。If the network device performs PDC, it sends the time T after the PDC to the terminal device, that is, the actual time of the determined time reference point is sent to the terminal device; the terminal device receives the time T, but does not know that the time T is determined by the network device The actual time of the time reference point, the terminal device may perform PDC on the time T, which may cause a large difference between the actual time of the time reference point determined by the terminal device and the actual time of the time reference point determined by the network device, and thus lower terminal The accuracy of time synchronization between devices and network devices.

本申请实施例提供一种传播时延补偿方法,该方法中,网络设备确定第一消息并向终端设备发送第一消息,该第一消息用于指示网络设备是否允许终端设备对时间T进行PDC,时间T是网络设备向终端设备指示的用于空口时间同步的参考时间。相应的,终端设备接收来自网络设备的第一消息,并根据第一消息确定是否被允许对时间T进行PDC;在确定被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC。该方法可实现网络设备控制终端设备进行PDC,有效增强了终端设备和网络设备之间进行时间同步的配合程度,从而可避免网络设备和终端设备均进行PDC而导致时间同步的精确度降低,并且终端设备可基于RTT测量的配置情况灵活选择PDC方式进行PDC,有利于实现网络设备与终端设备之间的高精度时间同步。An embodiment of the present application provides a propagation delay compensation method. In the method, the network device determines a first message and sends the first message to the terminal device. The first message is used to indicate whether the network device allows the terminal device to perform PDC on time T. , the time T is a reference time for air interface time synchronization indicated by the network device to the terminal device. Correspondingly, the terminal device receives the first message from the network device, and determines whether it is allowed to perform PDC on the time T according to the first message; when determining that it is allowed to perform the PDC on the time T, it performs the time T according to the configuration of the RTT measurement PDC. The method can realize that the network device controls the terminal device to perform PDC, effectively enhances the degree of cooperation between the terminal device and the network device for time synchronization, thereby avoiding the decrease in the accuracy of time synchronization caused by both the network device and the terminal device performing PDC, and The terminal device can flexibly select the PDC mode for PDC based on the configuration of the RTT measurement, which is conducive to realizing high-precision time synchronization between the network device and the terminal device.

以下结合附图对本申请实施例作进一步的阐述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.

请参阅图8,图8是本申请实施例提供的一种传播时延补偿方法的流程示意图,该传播时延补偿方法从网络设备和终端设备之间交互的角度进行阐述。该传播时延补偿方法包括以下步骤:Please refer to FIG. 8 . FIG. 8 is a schematic flowchart of a propagation delay compensation method provided by an embodiment of the present application. The propagation delay compensation method is described from the perspective of interaction between a network device and a terminal device. The propagation delay compensation method includes the following steps:

S101、网络设备确定第一消息,该第一消息用于指示网络设备是否允许终端设备对时间T进行传播时延补偿PDC;该时间T是网络设备向终端设备指示的用于空口时间同步的参考时间。S101. The network device determines a first message, the first message is used to indicate whether the network device allows the terminal device to perform propagation delay compensation PDC on time T; the time T is a reference for air interface time synchronization indicated by the network device to the terminal device time.

S102、网络设备向终端设备发送第一消息。相应的,终端设备接收该第一消息。S102. The network device sends the first message to the terminal device. Correspondingly, the terminal device receives the first message.

其中,第一消息可以是RRC消息携带的。第一消息可以是网络设备在广播形式或单播形式下发送的。若网络设备广播第一消息,则第一消息可由RRC广播消息携带,该RRC广播消息可以是SIB9;若网络设备单播第一消息,则第一消息可由RRC单播消息携带,该RRC单播消息可以是DLInformationTransfer消息。Wherein, the first message may be carried in an RRC message. The first message may be sent by the network device in a broadcast form or a unicast form. If the network device broadcasts the first message, the first message may be carried by an RRC broadcast message, and the RRC broadcast message may be SIB9; if the network device unicasts the first message, the first message may be carried by an RRC unicast message, and the RRC unicast The message may be a DLInformationTransfer message.

S103、终端设备根据第一消息,确定是否被允许对时间T进行PDC。S103. The terminal device determines, according to the first message, whether it is allowed to perform the PDC on the time T.

其中,在第一消息用于指示网络设备允许终端设备对时间T进行PDC时,终端设备可确定被允许对时间T进行PDC;在第一消息用于指示网络设备不允许终端设备对时间T进行PDC时,终端设备可确定被禁止对时间T进行PDC。Wherein, when the first message is used to instruct the network device to allow the terminal device to perform PDC on time T, the terminal device may determine that it is allowed to perform PDC on time T; During the PDC, the terminal device may determine that it is forbidden to perform the PDC for the time T.

在一种可选的实施方式中,第一消息包括第一字段;网络设备允许终端设备对时间T进行PDC时,第一字段指示使能(enable);网络设备禁止终端设备对时间T进行PDC时,第一字段指示不使能(disable)。相应的,终端设备根据第一消息,确定是否被允许对时间T进行PDC,可包括:终端设备在第一消息包括第一字段且第一字段所指示的是使能(enable)时,确定终端设备被允许对时间T进行PDC;终端设备在第一消息包括第一字段且第一字段所指示的是不使能(disable)时,确定终端设备被禁止对时间T进行PDC。其中,第一字段可以是RRC消息中的一个可选择存在的字段。In an optional implementation manner, the first message includes a first field; when the network device allows the terminal device to perform PDC on time T, the first field indicates enable (enable); the network device prohibits the terminal device from performing PDC on time T When , the first field indicates disable (disable). Correspondingly, determining whether the terminal device is allowed to perform the PDC on the time T according to the first message may include: the terminal device determines that the terminal device is enabled when the first message includes the first field and the first field indicates enable The device is allowed to perform PDC on time T; the terminal device determines that the terminal device is prohibited from performing PDC on time T when the first message includes the first field and the first field indicates disable (disable). Wherein, the first field may be an optional field in the RRC message.

另外,第一字段除了指示enable或disable的表现形式外,还可采用指示true或false的表现形式。相应的,终端设备在第一字段指示true时,确定终端设备被允许对时间T进行PDC;在第一字段指示false时,确定终端设备被禁止对时间T进行PDC。又或者,第一字段还可采用数值的表现形式,例如,终端设备在第一字段承载的数值为1时,确定终端设备被允许对时间T进行PDC;在第一字段承载的数值为0时,确定终端设备被禁止对时间T进行PDC。本申请实施例中,对第一字段的表现形式不作限制。In addition, in addition to the expression form indicating enable or disable, the first field may also adopt an expression form indicating true or false. Correspondingly, when the first field indicates true, the terminal device determines that the terminal device is allowed to perform PDC on time T; when the first field indicates false, it determines that the terminal device is prohibited from performing PDC on time T. Alternatively, the first field may also be represented by a numerical value. For example, when the value carried by the first field is 1, the terminal device determines that the terminal device is allowed to perform PDC on time T; when the value carried by the first field is 0 , it is determined that the terminal device is prohibited from performing PDC for time T. In this embodiment of the application, there is no limitation on the expression form of the first field.

S104、终端设备确定被允许对时间T进行PDC时,根据往返时延RTT测量的配置情况对时间T进行PDC。S104. When determining that the terminal device is allowed to perform the PDC on the time T, perform the PDC on the time T according to the configuration of the round-trip delay RTT measurement.

其中,终端设备在确定被允许对时间T进行PDC时,可基于以下几种实施方式从基于TA的PDC方式和基于RTT的PDC方式中选择进行PDC所采用的PDC方式。Wherein, when the terminal device determines that it is allowed to perform the PDC on the time T, it may select a PDC method for performing the PDC from the TA-based PDC method and the RTT-based PDC method based on the following several implementation manners.

实施方式1,终端设备在配置了RTT测量时,基于RTT对时间T进行PDC;在未配置RTT测量时,基于TA对时间T进行PDC。可见,该实施方式中,终端设备将是否配置了RTT测量作为确定PDC方式的开关,从而基于确定的PDC方式对时间T进行PDC。这一情况下,默认终端设备配置了RTT测量时终端设备处始终存在可用的RTT测量结果,即终端设备在配置了RTT测量时,基于可用的RTT测量结果对时间T进行PDC。其中,RTT测量结果包括网络设备的接收-发送时间差和/或终端设备的接收-发送时间差。那么,终端设备在配置了RTT测量时,可基于终端设备的接收-发送时间差和从网络设备处接收的网络设备的接收-发送时间差计算RTT,进而基于RTT对时间T进行PDC,以确定时间参考点的实际时间。Embodiment 1, when the RTT measurement is configured, the terminal device performs PDC on the time T based on the RTT; when the RTT measurement is not configured, the terminal device performs the PDC on the time T based on the TA. It can be seen that in this implementation manner, the terminal device uses whether RTT measurement is configured as a switch for determining the PDC mode, so as to perform PDC on the time T based on the determined PDC mode. In this case, by default, when the RTT measurement is configured on the terminal device, there is always an available RTT measurement result at the terminal device, that is, when the RTT measurement is configured on the terminal device, the PDC is performed on the time T based on the available RTT measurement result. Wherein, the RTT measurement result includes the receiving-sending time difference of the network device and/or the receiving-sending time difference of the terminal device. Then, when the terminal device is configured with RTT measurement, it can calculate the RTT based on the receiving-sending time difference of the terminal device and the receiving-sending time difference of the network device received from the network device, and then perform PDC on the time T based on the RTT to determine the time reference the actual time of the point.

本申请实施例中,终端设备配置RTT测量是指终端设备具备RTT测量功能,即终端设备具备确定终端设备的接收-发送时间差,接收网络设备的接收-发送时间差,以及基于终端设备的接收-发送时间差和网络设备的接收-发送时间差确定传播时延的能力。In the embodiment of this application, the terminal device is configured with RTT measurement means that the terminal device has the RTT measurement function, that is, the terminal device has the ability to determine the receiving-sending time difference of the terminal device, the receiving-sending time difference of the receiving network device, and the receiving-sending time difference based on the terminal device. The time difference and the receive-transmit time difference of network devices determine the propagation delay capability.

实施方式2,终端设备在配置了RTT测量且存在能够使用的RTT测量结果时,基于RTT测量结果对时间T进行PDC;在配置了RTT测量且没有能够使用的RTT测量结果时,确定对时间T不进行PDC,或者,在接收到能够使用的RTT测量结果时,基于RTT测量结果对时间T进行PDC;在未配置RTT测量时,基于TA对时间T进行PDC。可见,该实施方式中,终端设备将是否配置了RTT测量以及是否存在能够使用的RTT测量结果作为确定PDC方式的开关,与实施方式1相比,充分考虑了终端设备配置了RTT测量且不存在能够使用的RTT测量结果的情况,进一步明确了终端设备在该情况下的行为。Embodiment 2: When RTT measurement is configured and there is an available RTT measurement result, the terminal device performs PDC on time T based on the RTT measurement result; when RTT measurement is configured and there is no available RTT measurement result, determine the time T No PDC is performed, or, when a usable RTT measurement result is received, the PDC is performed on the time T based on the RTT measurement result; when the RTT measurement is not configured, the PDC is performed on the time T based on the TA. It can be seen that in this embodiment, the terminal device uses whether RTT measurement is configured and whether there is a usable RTT measurement result as a switch to determine the PDC mode. Compared with Embodiment 1, it is fully considered that the terminal device is configured with RTT measurement and does not exist The circumstances in which the RTT measurement results can be used further specify the behavior of the end device in this situation.

实施方式3,终端设备在配置了RTT测量且存在的RTT测量结果在有效期内时,基于RTT测量结果对时间T进行PDC;在配置了RTT测量且存在的RTT测量结果不在有效期内时,确定对时间T不进行PDC,或者,在预设时长内接收到RTT测量结果时,基于接收到的RTT测量结果对时间T进行PDC;在未配置RTT测量时,基于TA对时间T进行PDC。Embodiment 3, when RTT measurement is configured and the existing RTT measurement result is within the validity period, the terminal device performs PDC on the time T based on the RTT measurement result; when RTT measurement is configured and the existing RTT measurement result is not within the validity period, determine the time T No PDC is performed at time T, or, when the RTT measurement result is received within the preset duration, PDC is performed on time T based on the received RTT measurement result; when RTT measurement is not configured, PDC is performed on time T based on TA.

也就是说,终端设备在配置了RTT测量且存在的RTT测量结果不在有效期内时,若下一次的RTT测量结果在终端设备可接受的时间范围(即预设时长)内到达终端设备,则终端设备可基于接收到的下一次的RTT测量结果对时间T进行PDC;若下一次的RTT测量结果到达终端设备的时间超出终端设备可接受的时间范围,则终端设备可对时间T不进行PDC。That is to say, when the terminal device is configured with RTT measurement and the existing RTT measurement result is not within the validity period, if the next RTT measurement result arrives at the terminal device within the acceptable time range (that is, the preset duration) of the terminal device, the terminal device The device may perform PDC on the time T based on the next received RTT measurement result; if the time for the next RTT measurement result to reach the terminal device exceeds the acceptable time range of the terminal device, the terminal device may not perform PDC on the time T.

可见,实施方式3中,终端设备将是否配置了RTT测量以及存在的RTT测量结果是否在有效期内作为确定PDC方式的开关,与实施方式1相比,充分考虑了终端设备配置了RTT测量且存在的RTT测量结果不在有效期内的情况,进一步明确了终端设备在该情况下的行为。在网络设备周期性地给配置了RTT的终端设备下发RTT测量结果(包括网络设备的接收-发送时间差),终端设备在基于RTT进行PDC时接收的来自网络设备的RTT测量结果已经超出有效期的情况下,实施方式3可避免终端设备使用超出有效期的RTT测量结果对时间T进行PDC而影响到网络设备与终端设备之间时间同步的精度。It can be seen that in Embodiment 3, the terminal device uses whether RTT measurement is configured and whether the existing RTT measurement result is within the validity period as a switch to determine the PDC mode. Compared with Embodiment 1, it is fully considered that the terminal device is configured with RTT measurement and exists The situation where the RTT measurement result is not within the validity period further clarifies the behavior of the terminal device in this situation. When the network device periodically sends the RTT measurement result (including the receiving-sending time difference of the network device) to the terminal device configured with RTT, the RTT measurement result received by the terminal device from the network device when performing PDC based on RTT has exceeded the validity period In this case, Embodiment 3 can prevent the terminal device from using the RTT measurement result beyond the valid period to perform PDC on the time T and affect the accuracy of time synchronization between the network device and the terminal device.

可选的,预设时长可以是人为配置的,还可以是网络设备和终端设备协商确定的。本申请实施例对预设时长的确定方式不作限制。Optionally, the preset duration may be manually configured, or determined through negotiation between the network device and the terminal device. The embodiment of the present application does not limit the manner of determining the preset duration.

可选的,RTT测量结果是否在有效期内可以是终端设备通过定时器(Timer)确定的。具体地,终端设备在定时器处于运行状态时确定RTT测量结果在有效期内;在定时器处于停止状态时确定RTT测量结果不在有效期内。另外,定时器处于停止状态除了是RTT测量结果超出有效期所导致的以外,还可能是终端设备不存在可用的RTT测量结果所导致的;这一情况下,终端设备依然可执行:确定对时间T不进行PDC,或者,在预设时长内接收到可用的RTT测量结果时,基于接收到的RTT测量结果对时间T进行PDC。本申请实施例中,该定时器还可称为RTT测量结果有效定时器(RTT result validity timer)。Optionally, whether the RTT measurement result is within the validity period may be determined by the terminal device through a timer (Timer). Specifically, the terminal device determines that the RTT measurement result is within the valid period when the timer is in the running state; and determines that the RTT measurement result is not within the valid period when the timer is in the stopped state. In addition, the stop state of the timer is not only caused by the fact that the RTT measurement result exceeds the validity period, it may also be caused by the fact that the terminal device does not have an available RTT measurement result; in this case, the terminal device can still execute: determine the time T No PDC is performed, or, when an available RTT measurement result is received within a preset time period, PDC is performed on the time T based on the received RTT measurement result. In this embodiment of the present application, the timer may also be called an RTT measurement result validity timer (RTT result validity timer).

可选的,该传播时延补偿方法还可包括:终端设备在接收到来自网络设备的RTT测量结果(即网络设备的接收-发送时间差)时,启动定时器,使得定时器处于运行状态(也可称为开启状态);若定时器超时,则终端设备停止定时器,使得定时器处于停止状态(也可称为关闭状态);直到终端设备再次接收到来自网络设备的RTT的测量结果时,再重新启动定时器,使得定时器重新处于运行状态。例如,结合图9,网络设备发送网络设备的接收-发送时间差的周期为t3-t1,有效期为t2-t1。终端设备在t1时刻接收到网络设备的接收-发送时间差#1,启动定时器;定时器在t2时刻超出有效期,则终端设备停止定时器;直至终端设备在t3时刻接收到网络设备的接收-发送时间差#2,再次启动定时器。Optionally, the propagation delay compensation method may further include: when the terminal device receives the RTT measurement result from the network device (that is, the receiving-sending time difference of the network device), starting a timer so that the timer is in a running state (also may be referred to as an open state); if the timer expires, the terminal device stops the timer so that the timer is in a stopped state (also referred to as an off state); until the terminal device receives the measurement result of the RTT from the network device again, Then restart the timer, so that the timer is in the running state again. For example, referring to FIG. 9 , the period for the network device to send the receiving-sending time difference of the network device is t 3 -t 1 , and the valid period is t 2 -t 1 . The terminal device receives the receiving-sending time difference #1 of the network device at time t1 , and starts the timer; the timer exceeds the validity period at time t2 , and the terminal device stops the timer; until the terminal device receives the time difference #1 of the network device at time t3 Receive-send time difference #2, start the timer again.

在一种可选的实施方式中,终端设备确定被禁止对时间T进行PDC时,该传播时延方法还可包括:终端设备在配置了RTT测量时,向网络设备发送最新的终端设备的接收-发送时间差。终端设备在未配置RTT测量时,终端设备的行为不受到影响。可见,终端设备被禁止对时间T进行PDC且配置了RTT测量这一条件,可触发终端设备在UL中上报终端设备的接收-发送时间差,从而网络设备可基于终端设备的接收-发送时间差进行PDC的预补偿。In an optional implementation manner, when the terminal device determines that it is forbidden to perform PDC on the time T, the propagation delay method may further include: when the terminal device is configured with RTT measurement, sending the latest reception of the terminal device to the network device - Difference in sending time. When the terminal device is not configured with RTT measurement, the behavior of the terminal device will not be affected. It can be seen that the terminal device is prohibited from performing PDC on time T and the condition of RTT measurement is configured, which can trigger the terminal device to report the receiving-sending time difference of the terminal device in the UL, so that the network device can perform PDC based on the receiving-sending time difference of the terminal device precompensation.

在一种可选的实施方式中,该传播时延补偿方法还可包括:网络设备不指示终端设备是被允许对时间T进行PDC,还是被禁止对时间T进行PDC时,第一消息中不包括第一字段(或第一字段指示为空)。相应的,终端设备在第一消息中不包括第一字段,即第一字段不存在(absent)(或第一字段指示为空)时,根据预设PDC方式进行PDC。该预设PDC方式可以是为终端设备配置的PDC方式,也可以是人为预先设定的PDC方式。也就是说,终端设备在第一字段不存在时,可回退到R16行为,即终端设备可根据自身实现进行PDC。例如,终端设备可根据设备商预先为终端设备配置的PDC方式进行PDC。这一情况下,网络设备对时间T不进行PDC的预补偿,避免终端设备和网络设备均进行PDC而导致时间同步的精度下降。In an optional implementation manner, the propagation delay compensation method may further include: when the network device does not indicate whether the terminal device is allowed to perform PDC on time T or is prohibited from performing PDC on time T, the first message does not The first field is included (or the first field indicates empty). Correspondingly, when the first message does not include the first field, that is, when the first field is absent (or the first field indicates empty), the terminal device performs PDC according to the preset PDC manner. The preset PDC mode may be a PDC mode configured for the terminal device, or may be an artificially preset PDC mode. That is to say, when the first field does not exist, the terminal device can fall back to the R16 behavior, that is, the terminal device can perform PDC according to its own implementation. For example, the terminal device may perform PDC according to the PDC mode pre-configured for the terminal device by the device manufacturer. In this case, the network device does not perform PDC pre-compensation for the time T, so as to avoid the decrease in accuracy of time synchronization caused by both the terminal device and the network device performing PDC.

可见,网络设备可配置第一字段存在且指示使能(enable)或不使能(disable),或者第一字段不存在(absent)。终端设备可基于第一字段和终端设备是否配置了RTT测试来确定是否进行PDC,如图10a所示。或者,终端设备可基于第一字段、终端设备是否配置了RTT测量以及是否存在能够使用的RTT测量结果来确定是否进行PDC,如图10b所示。又或者,终端设备可基于第一字段、终端设备是否配置了RTT测量以及存在的RTT测量结果是否在有效期内,来确定是否进行PDC,如图10c所示。It can be seen that the network device can be configured that the first field exists and indicates enable or disable (disable), or the first field does not exist (absent). The terminal device may determine whether to perform PDC based on the first field and whether the terminal device is configured with an RTT test, as shown in FIG. 10a. Alternatively, the terminal device may determine whether to perform PDC based on the first field, whether the terminal device is configured with RTT measurement, and whether there is an available RTT measurement result, as shown in FIG. 10b . Alternatively, the terminal device may determine whether to perform PDC based on the first field, whether the terminal device is configured with RTT measurement, and whether the existing RTT measurement result is within the validity period, as shown in FIG. 10c.

在另一种可选的实施方式中,第一消息可包括第一指示,该第一指示用于指示网络设备是否允许终端设备对时间T进行PDC。相应的,终端设备根据第一消息,确定是否被允许对时间T进行PDC,可包括:终端设备在第一指示用于指示网络设备允许终端设备对时间T进行PDC时,确定终端设备被允许对时间T进行PDC;终端设备在第一指示用于指示网络设备不允许终端设备对时间T进行PDC时,确定终端设备被禁止对时间T进行PDC。该实施方式中,终端设备可基于第一指示确定是否被允许对时间T进行PDC,进而可确定是否对时间T进行PDC,有效增强了终端设备和网络设备之间进行时间同步的配合程度。In another optional implementation manner, the first message may include a first indication, where the first indication is used to indicate whether the network device allows the terminal device to perform the PDC on the time T. Correspondingly, determining whether the terminal device is allowed to perform PDC on time T according to the first message may include: the terminal device determines that the terminal device is allowed to perform PDC on time T when the first indication is used to instruct the network device to allow the terminal device to perform PDC on time T Perform PDC at time T; the terminal device determines that the terminal device is prohibited from performing PDC at time T when the first indication indicates that the network device does not allow the terminal device to perform PDC at time T. In this embodiment, the terminal device may determine whether to perform PDC on time T based on the first indication, and then determine whether to perform PDC on time T, which effectively enhances the degree of cooperation between the terminal device and the network device for time synchronization.

可选的,第一指示可通过数值来指示网络设备是否允许终端设备对时间T进行PDC。例如,第一指示对应数值0时,指示不允许终端设备对时间T进行PDC,即终端设备被禁止对时间T进行PDC;第一指示对应数值1时,指示允许终端设备对时间T进行PDC,即终端设备被允许对时间T进行PDC。或者,第一指示还可以“正确(true)”来指示允许终端设备对时间T进行PDC,以“错误(false)”来指示不允许终端设备对时间T进行PDC。本申请实施例中,对第一指示指示网络设备是否允许终端设备对时间T进行PDC的表示形式不作限制。Optionally, the first indication may use a numerical value to indicate whether the network device allows the terminal device to perform PDC on the time T. For example, when the first indication corresponds to a value of 0, it indicates that the terminal device is not allowed to perform PDC on time T, that is, the terminal device is prohibited from performing PDC on time T; when the first indication corresponds to a value of 1, it indicates that the terminal device is allowed to perform PDC on time T. That is, the terminal device is allowed to perform PDC for time T. Alternatively, the first indication may be "correct (true)" to indicate that the terminal device is allowed to perform PDC on time T, and "wrong (false)" to indicate that the terminal device is not allowed to perform PDC on time T. In this embodiment of the present application, there is no limitation on the expression form of the first indication indicating whether the network device allows the terminal device to perform PDC on the time T.

在一种可选的实施方式中,第一消息还包括第二指示,该第二指示用于指示PDC方式是基于TA的PDC方式,还是基于RTT的PDC方式。相应的,终端设备确定被允许对时间T进行PDC时,该传播时延补偿方法还可包括:终端设备根据第二指示所指示的PDC方式,对时间T进行PDC。可选的,第二指示可通过数值来指示PDC方式是基于TA的PDC方式,还是基于RTT的PDC方式。例如,第二指示对应数值0时,指示PDC方式是基于TA的PDC方式;第二指示对应数值1时,指示PDC方式是基于RTT的PDC方式。本申请实施例中,对第二指示指示PDC方式是基于TA的PDC方式,还是基于RTT的PDC方式的表示形式不作限制。可见,该实施方式中,网络设备可为终端设备提供灵活的PDC方式选择,终端设备可基于网络设备的指示来确定PDC方式。另外,网络设备为终端设备指示的PDC方式可以是基于业务对时间同步精度的需求确定的,从而终端设备采用的PDC方式能够更加满足业务对时间同步精度的需求。In an optional implementation manner, the first message further includes a second indication, where the second indication is used to indicate whether the PDC mode is a TA-based PDC mode or an RTT-based PDC mode. Correspondingly, when the terminal device determines that it is allowed to perform the PDC on the time T, the propagation delay compensation method may further include: performing the PDC on the time T by the terminal device according to the PDC manner indicated by the second indication. Optionally, the second indication may use a numerical value to indicate whether the PDC mode is a TA-based PDC mode or an RTT-based PDC mode. For example, when the second indication corresponds to a value of 0, it indicates that the PDC mode is a TA-based PDC mode; when the second indication corresponds to a value of 1, it indicates that the PDC mode is an RTT-based PDC mode. In this embodiment of the present application, there is no limitation on the expression form of the second indication indicating whether the PDC mode is a TA-based PDC mode or an RTT-based PDC mode. It can be seen that in this embodiment, the network device can provide flexible PDC mode selection for the terminal device, and the terminal device can determine the PDC mode based on the instruction of the network device. In addition, the PDC method indicated by the network device to the terminal device may be determined based on the service's requirement for time synchronization accuracy, so that the PDC method adopted by the terminal device can better meet the service's requirement for time synchronization accuracy.

可选的,第一消息中的第一指示用于指示终端设备对时间T不进行PDC时,第二指示可设置为默认值。也就是说,终端设备被禁止对时间T进行PDC时,无需再考虑PDC方式,可不再执行终端设备根据第二指示所指示的PDC方式,对时间T进行PDC的操作。Optionally, when the first indication in the first message is used to instruct the terminal device not to perform PDC for the time T, the second indication may be set as a default value. That is to say, when the terminal device is prohibited from performing PDC on the time T, it does not need to consider the PDC mode, and the terminal device may no longer perform the PDC operation on the time T according to the PDC mode indicated by the second instruction.

可选的,上述实施方式中,第一指示和第二指示可分别由1bit的字段承载。具体地,网络设备可在RRC消息中新增2bit字段,其中,1bit字段用于承载第一指示,另外1bit字段用于承载第二指示。结合图11,以第一指示和第二指示的表现形式为数值为例,1bit字段承载的第一指示可通过数值a1来指示是否允许终端设备对时间T进行PDC,另外1bit字段承载的第二指示可通过数值a2来指示PDC方式是基于TA的PDC方式,还是基于RTT的PDC方式。终端设备若接收到a1等于0,则可确定被禁止对时间T进行PDC;若接收到a1等于1,则可确定被允许对时间T进行PDC。另外,网络设备配置a1为0时,可将a2默认设置为0。终端设备若接收到a1等于0时,可不再考虑a2的取值;若接收到a1等于1时,再基于a2确定PDC方式。具体地,终端设备若接收到a2等于0,则可确定PDC方式为基于TA的PDC方式;若接收到a2等于1,则可确定PDC方式为基于RTT的PDC方式。Optionally, in the foregoing implementation manner, the first indication and the second indication may be carried by 1-bit fields respectively. Specifically, the network device may add a 2-bit field to the RRC message, wherein the 1-bit field is used to bear the first indication, and the other 1-bit field is used to bear the second indication. Referring to Figure 11, taking the first indication and the second indication as numerical values as an example, the first indication carried by the 1-bit field can use the value a1 to indicate whether the terminal device is allowed to perform PDC on time T, and the second indication carried by the 1-bit field The indication may use the value a2 to indicate whether the PDC mode is a TA-based PDC mode or an RTT-based PDC mode. If the terminal device receives that a1 is equal to 0, it may determine that it is prohibited from performing PDC on time T; if it receives that a1 is equal to 1, it may determine that it is allowed to perform PDC on time T. In addition, when the network device configuration a1 is 0, a2 can be set to 0 by default. If the terminal device receives that a1 is equal to 0, it may no longer consider the value of a2; if it receives that a1 is equal to 1, it determines the PDC mode based on a2. Specifically, if the terminal device receives that a2 is equal to 0, it may determine that the PDC mode is a TA-based PDC mode; if it receives that a2 is equal to 1, it may determine that the PDC mode is an RTT-based PDC mode.

综上所述,该传播时延补偿方法中,网络设备确定第一消息并向终端设备发送第一消息,该第一消息用于指示网络设备是否允许终端设备对时间T进行PDC,时间T是网络设备向终端设备指示的用于空口时间同步的参考时间。相应的,终端设备接收来自网络设备的第一消息,并根据第一消息确定是否被允许对时间T进行PDC;终端设备确定被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC。可见,该方法可实现网络设备控制终端设备进行PDC,有效增强了终端设备和网络设备之间进行时间同步的配合程度,从而可避免终端设备和网络设备均进行PDC而导致时间同步的精确度降低,进而有利于实现终端设备与网络设备之间的高精度时间同步。另外,该方法中还明确了网络设备为终端设备指示是否被允许进行PDC的第一消息的消息格式(如第一指示、第二指示或第一字段),以及明确了终端设备可根据RTT测量的配置情况灵活地从基于TA的PDC方式和基于RTT的PDC方式中选择PDC方式进行PDC。To sum up, in the propagation delay compensation method, the network device determines the first message and sends the first message to the terminal device, the first message is used to indicate whether the network device allows the terminal device to perform PDC for the time T, and the time T is The reference time for air interface time synchronization indicated by the network device to the terminal device. Correspondingly, the terminal device receives the first message from the network device, and determines whether it is allowed to perform PDC on the time T according to the first message; when the terminal device determines that it is allowed to perform the PDC on the time T, it determines the time T according to the configuration of the RTT measurement. Conduct PDC. It can be seen that this method can realize that the network device controls the terminal device to perform PDC, and effectively enhances the degree of cooperation between the terminal device and the network device for time synchronization, thereby avoiding the decrease in the accuracy of time synchronization caused by both the terminal device and the network device performing PDC , which in turn facilitates the realization of high-precision time synchronization between the terminal device and the network device. In addition, the method also clarifies the message format of the first message (such as the first indication, the second indication or the first field) that the network device indicates for the terminal device whether to be allowed to perform PDC, and clarifies that the terminal device can measure Depending on the configuration situation, the PDC mode can be flexibly selected from the TA-based PDC mode and the RTT-based PDC mode for PDC.

图8所示的传播时延补偿方法中,网络设备还可以为DU与CU相分离的架构。下面对网络设备为DU与CU相分离的架构时的传播时延补偿方法作进一步阐述。In the propagation delay compensation method shown in FIG. 8 , the network device may also be a structure in which DUs and CUs are separated. The propagation delay compensation method when the network device is a structure in which the DU and the CU are separated will be further described below.

在一种可选的实施方式中,网络设备确定第一消息,可包括:CU向DU发送第二消息,该第二消息包括第一消息的默认格式;DU接收到第二消息时,确定第一消息。网络设备向终端设备发送第一消息,可包括:DU向终端设备发送第一消息,该第一消息是RRC广播消息。该实施方式可应用于广播场景,由DU决定是否允许终端设备对时间T进行PDC。In an optional implementation manner, the network device determining the first message may include: the CU sends a second message to the DU, and the second message includes the default format of the first message; a message. The network device sending the first message to the terminal device may include: the DU sending the first message to the terminal device, where the first message is an RRC broadcast message. This implementation manner can be applied to a broadcast scenario, and the DU decides whether to allow the terminal device to perform PDC on the time T.

可选的,第一消息的默认格式可包括第一字段对应的格式。相应的,DU接收到第二消息时确定第一消息,可包括:DU可基于是否允许终端设备对时间T进行PDC来确定第一字段所指示的是使能,还是不使能,并根据确定结果修改第一字段中承载的信息,以确定发送给终端设备的第一字段。可选的,DU可确定第一字段存在且指示使能或不使能,或者第一字段不存在。相应的,终端设备在第一消息包括第一字段且第一字段所指示的是使能时,确定被允许对时间T进行PDC;在第一消息包括第一字段且第一字段所指示的是不使能时,确定终端设备被禁止对时间T进行PDC;在第一消息中不存在第一字段时,回退到R16行为。关于第一字段的相关阐述可参见图8所示的传播时延补偿方法中的相关阐述,此处不再赘述。Optionally, the default format of the first message may include a format corresponding to the first field. Correspondingly, when the DU receives the second message, determining the first message may include: the DU may determine whether the first field indicates whether it is enabled or disabled based on whether the terminal device is allowed to perform PDC on the time T, and according to the determined As a result, the information carried in the first field is modified to determine the first field to be sent to the terminal device. Optionally, the DU may determine that the first field exists and indicate enable or disable, or the first field does not exist. Correspondingly, when the first message includes the first field and the first field indicates that it is enabled, the terminal device determines that it is allowed to perform PDC on the time T; when the first message includes the first field and the first field indicates that it is enabled When it is not enabled, it is determined that the terminal device is prohibited from performing PDC for the time T; when the first field does not exist in the first message, fall back to the behavior of R16. For related descriptions about the first field, refer to related descriptions in the propagation delay compensation method shown in FIG. 8 , which will not be repeated here.

可选的,第一消息的默认格式可包括第一指示和/或第二指示对应的格式。相应的,DU接收到第二消息时确定第一消息,可包括:DU确定是否允许终端设备对时间T进行PDC,并根据确定结果修改第一指示中承载的信息,以确定发送给终端设备的第一指示。相应的,终端设备可在第一指示用于指示网络设备允许终端设备对时间T进行PDC时,确定被允许对时间T进行PDC;在第一指示用于指示网络设备不允许终端设备对时间T进行PDC时,确定被禁止对时间T进行PDC。Optionally, the default format of the first message may include a format corresponding to the first indication and/or the second indication. Correspondingly, when the DU receives the second message, determining the first message may include: the DU determines whether the terminal device is allowed to perform PDC on the time T, and modifies the information carried in the first indication according to the determination result to determine the information sent to the terminal device. first instruction. Correspondingly, the terminal device may determine that it is allowed to perform PDC on time T when the first indication is used to instruct the network device to allow the terminal device to perform PDC on time T; When performing the PDC, it is determined that the PDC for the time T is prohibited.

和/或,DU在允许终端设备对时间T进行PDC时确定终端设备使用的PDC方式,并根据确定结果修改第二指示中承载的信息,以确定发送给终端设备的第二指示。那么,终端设备可根据第二指示所指示的PDC方式,对时间T进行PDC。关于第一指示、第二指示的相关阐述可参见图8所示的传播时延补偿方法中的相关阐述,此处不再赘述。And/or, the DU determines the PDC mode used by the terminal device when allowing the terminal device to perform PDC on time T, and modifies the information carried in the second indication according to the determination result, so as to determine the second indication sent to the terminal device. Then, the terminal device may perform PDC on the time T according to the PDC manner indicated by the second indication. For relevant elaborations about the first indication and the second indication, refer to the relevant elaborations in the propagation delay compensation method shown in FIG. 8 , which will not be repeated here.

可选的,传播时延补偿方法还可包括:CU还可向DU发送默认参考时间,该默认参考时间可以是一个假的或无效的时间;DU确定一个参考时间以修改默认参考时间,并将确定的参考时间作为时间T。另外,CU向DU发送的默认参考时间和第一消息的默认格式可由同一信令携带,或还可由不同信令携带。本申请实施例中,CU向DU发送的默认参考时间和第一消息的默认格式还可统称为源消息。RRC广播消息为SIB9时,该源消息可以是CU通过F1接口向DU发送的。Optionally, the propagation delay compensation method may further include: the CU may also send a default reference time to the DU, and the default reference time may be a false or invalid time; the DU determines a reference time to modify the default reference time, and The determined reference time is taken as time T. In addition, the default reference time sent by the CU to the DU and the default format of the first message may be carried in the same signaling, or may also be carried in different signalings. In this embodiment of the present application, the default reference time sent by the CU to the DU and the default format of the first message may also be collectively referred to as a source message. When the RRC broadcast message is SIB9, the source message may be sent from the CU to the DU through the F1 interface.

在另一种可选的实施方式中,网络设备确定第一消息,可包括:DU向CU发送第二消息,该第二消息包括第一消息中第一指示、第二指示或第一字段的值;CU接收到第二消息时,确定第一消息。网络设备向终端设备发送第一消息,可包括:CU向终端设备发送第一消息,该第一消息是RRC单播消息。该实施方式可应用于单播场景,由DU决定是否允许终端设备对时间T进行PDC,CU可直接将接收的来自DU的第一指示、第二指示或第一字段的值转发给终端设备。关于第一指示、第二指示和第一字段的相关阐述可参见图8所示的传播时延补偿方法中的相关阐述,此处不再赘述。In another optional implementation manner, the network device determining the first message may include: the DU sends a second message to the CU, where the second message includes the first indication, the second indication, or the first field in the first message. Value; when the CU receives the second message, it determines the first message. The network device sending the first message to the terminal device may include: the CU sending the first message to the terminal device, where the first message is an RRC unicast message. This embodiment can be applied to a unicast scenario. The DU decides whether to allow the terminal device to perform PDC on the time T, and the CU can directly forward the received first indication, second indication or the value of the first field from the DU to the terminal device. For related descriptions about the first indication, the second indication, and the first field, refer to related descriptions in the propagation delay compensation method shown in FIG. 8 , and details are not repeated here.

可选的,DU还可向CU发送时间T,该时间T可以是DU进行PDC的预补偿后的时间,或是DU未进行PDC的预补偿的时间。其中,DU可基于TA的PDC方式进行PDC的预补偿以确定时间T,或者,DU可基于RTT的PDC方式进行PDC的预补偿以确定时间T。另外,DU基于RTT的PDC方式进行PDC的预补偿时,还需向CU请求获取终端设备的接收-发送时间差以确定时间T。Optionally, the DU may also send a time T to the CU, where the time T may be the time after the DU performs the PDC pre-compensation, or the time when the DU does not perform the PDC pre-compensation. Wherein, the DU may perform PDC pre-compensation based on the TA PDC method to determine the time T, or, the DU may perform PDC pre-compensation based on the RTT PDC method to determine the time T. In addition, when the DU performs PDC pre-compensation based on the RTT PDC method, it also needs to request the CU to obtain the receiving-sending time difference of the terminal device to determine the time T.

可选的,该传播时延补偿方法还可包括:DU在时间T是DU进行PDC的预补偿后的时间时,可确定第一字段指示不使能。相应的,终端设备在第一消息包括第一字段且第一字段所指示的是不使能时,确定终端设备被禁止对时间T进行PDC。也就是说,DU已进行了PDC的预补偿,则无需终端设备进行PDC,该实施方式可避免终端设备和网络设备均进行PDC而导致时间同步的精度下降。Optionally, the propagation delay compensation method may further include: when the time T is the time after the DU performs PDC pre-compensation, the DU may determine that the first field indicates that it is not enabled. Correspondingly, when the first message includes the first field and the first field indicates that it is not enabled, the terminal device determines that the terminal device is prohibited from performing PDC for the time T. That is to say, the DU has already performed the PDC pre-compensation, so the terminal device does not need to perform the PDC. This embodiment can avoid the decrease of the accuracy of time synchronization caused by both the terminal device and the network device performing the PDC.

另外,DU在时间T是DU未进行PDC的预补偿的时间时,可确定第一字段指示使能或不使能。相应的,终端设备在第一消息包括第一字段且第一字段所指示的是使能时,确定终端设备被允许对时间T进行PDC;在第一消息包括第一字段且第一字段所指示的是不使能时,确定终端设备被禁止对时间T进行PDC。也就是说,DU未进行PDC的预补偿,终端设备可基于第一字段的指示确定是否被允许对时间T进行PDC。In addition, when the time T is the time when the DU does not perform PDC pre-compensation, the DU may determine that the first field indicates whether to enable or disable it. Correspondingly, when the first message includes the first field and the first field indicates that it is enabled, the terminal device determines that the terminal device is allowed to perform PDC on the time T; when the first message includes the first field and the first field indicates When it is not enabled, it is determined that the terminal device is prohibited from performing PDC for time T. That is to say, the DU does not perform PDC pre-compensation, and the terminal device may determine whether to perform PDC on the time T based on the indication of the first field.

可选的,该传播时延补偿方法还可包括:DU在时间T是未进行PDC的预补偿的时间时,可确定第一字段存在且指示使能或不使能,或者第一字段不存在。其中,终端设备在接收的第一消息中第一字段不存在时,回退到R16行为。关于终端设备在被允许对时间T进行PDC时的相关操作,在被禁止对时间T进行PDC时的相关操作,以及R16行为的相关内容可参见图8所示的传播时延补偿方法中的相关阐述,此处不再赘述。Optionally, the propagation delay compensation method may further include: when the time T is a time when no PDC pre-compensation is performed, the DU may determine that the first field exists and indicate enable or disable, or the first field does not exist . Wherein, when the first field in the received first message does not exist, the terminal device falls back to the R16 behavior. For the relevant operations of the terminal device when it is allowed to perform PDC on time T, the related operations when it is prohibited to perform PDC on time T, and the relevant content of R16 behavior, please refer to the relevant information in the propagation delay compensation method shown in Figure 8. elaboration and will not be repeated here.

另外,DU可通过接口F1向CU发送时间T以及第一指示、第二指示或第一字段的值,并且,DU向CU发送的时间T,以及第一指示、第二指示或第一字段的值可由同一信令携带,或还可由不同信令携带。In addition, the DU can send the time T and the value of the first indication, the second indication or the first field to the CU through the interface F1, and the time T sent by the DU to the CU, and the first indication, the second indication or the value of the first field The values may be carried by the same signaling, or may also be carried by different signaling.

又一种可选的实施方式中,网络设备确定第一消息,可包括:DU向CU发送第二消息,该第二消息包括时间T的值以及PDC的值;CU根据时间T的值和PDC的值,确定第一消息。网络设备向终端设备发送第一消息,可包括:CU向终端设备发送第一消息,该第一消息是RRC单播消息。该实施方式可应用于单播场景,由CU决定是否允许终端设备对时间T进行PDC。可选的,DU可通过接口F1向CU发送时间T的值和PDC的值。In yet another optional implementation manner, the network device determining the first message may include: the DU sends a second message to the CU, and the second message includes the value of time T and the value of PDC; A value that determines the first message. The network device sending the first message to the terminal device may include: the CU sending the first message to the terminal device, where the first message is an RRC unicast message. This implementation manner can be applied to a unicast scenario, and the CU decides whether to allow the terminal device to perform PDC on the time T. Optionally, the DU may send the value of the time T and the value of the PDC to the CU through the interface F1.

可选的,PDC的值可以是DU通过基于TA的PDC方式确定的,还可以是DU通过基于RTT的PDC方式确定的。其中,DU通过基于RTT的PDC方式确定PDC的值时,还需向CU请求获取终端设备的接收-发送时间差以确定PDC的值。本申请实施例中,PDC的值还可称为预补偿值(PDCvalue)。Optionally, the value of the PDC may be determined by the DU through a TA-based PDC manner, or may be determined by the DU through an RTT-based PDC manner. Wherein, when the DU determines the PDC value through the RTT-based PDC method, it also needs to request the CU to obtain the receiving-sending time difference of the terminal device to determine the PDC value. In this embodiment of the present application, the value of the PDC may also be referred to as a pre-compensation value (PDC value).

可选的,CU根据时间T的值和PDC的值,确定第一消息,可包括:CU若决定进行PDC的预补偿,则向终端设备发送时间T和PDC的值之和,以及指示不使能的第一字段;相应的,终端设备在第一消息包括第一字段且第一字段所指示的是不使能时,可确定终端设备被禁止对时间T进行PDC。Optionally, the CU determines the first message according to the value of the time T and the value of the PDC, which may include: if the CU decides to perform PDC pre-compensation, send the sum of the time T and the value of the PDC to the terminal device, and indicate not to use Correspondingly, when the first message includes the first field and the first field indicates that it is not enabled, the terminal device may determine that the terminal device is prohibited from performing PDC for time T.

另外,CU若决定不进行PDC的预补偿,则丢弃PDC的值,并向终端设备发送指示使能或不使能的第一字段,或者,配置第一字段不存在。相应的,终端设备在第一消息包括第一字段且第一字段所指示的是使能时,确定终端设备被允许对时间T进行PDC;在第一消息包括第一字段且第一字段所指示的是不使能时,确定终端设备被禁止对时间T进行PDC;在第一消息中第一字段不存在时,回退到R16行为。可见,CU进行PDC的预补偿时,指示终端设备不再进行PDC,可避免终端设备和网络设备均进行PDC而导致时间同步的精度下降。另外,DU可通过接口F1向CU发送时间T和PDC的值。关于终端设备被允许对时间T进行PDC时的相关操作、被禁止对时间T进行PDC时的相关操作,以及R16行为的相关内容可参见图8所示的传播时延补偿方法中的相关阐述,此处不再赘述。In addition, if the CU decides not to perform PDC pre-compensation, it discards the value of the PDC, and sends the first field indicating enabling or disabling to the terminal device, or configures that the first field does not exist. Correspondingly, when the first message includes the first field and the first field indicates that it is enabled, the terminal device determines that the terminal device is allowed to perform PDC on the time T; when the first message includes the first field and the first field indicates When it is not enabled, it is determined that the terminal device is prohibited from performing PDC for time T; when the first field does not exist in the first message, fall back to the behavior of R16. It can be seen that when the CU performs PDC pre-compensation, it instructs the terminal device not to perform PDC, which can avoid the decrease of the accuracy of time synchronization caused by both the terminal device and the network device performing PDC. In addition, the DU can send the time T and the value of the PDC to the CU through the interface F1. Regarding the relevant operations when the terminal device is allowed to perform PDC on time T, the relevant operations when it is prohibited to perform PDC on time T, and the relevant content of R16 behavior, please refer to the relevant description in the propagation delay compensation method shown in Figure 8. I won't repeat them here.

另外,本申请实施例提供的传播时延补偿方法除了应用于网络设备与终端设备之间通信的场景外,还可适用于如图12所示的侧链路(sidelink,SL)通信场景中。该侧链路通信场景包括第一终端设备和第二终端设备。第一终端设备和第二终端设备之间可通过侧链路接口进行通信,即侧链路传输(SL transmission)。In addition, the propagation delay compensation method provided in the embodiment of the present application is not only applicable to a communication scenario between a network device and a terminal device, but also applicable to a sidelink (sidelink, SL) communication scenario as shown in FIG. 12 . The side link communication scenario includes a first terminal device and a second terminal device. Communication between the first terminal device and the second terminal device may be performed through a side link interface, that is, side link transmission (SL transmission).

其中,第一终端设备可用于确定第一消息;还可用于向第二终端设备发送第一消息;该第一消息用于指示第一终端设备是否允许第二终端设备对时间T进行PDC,时间T是第一终端设备向第二终端设备指示的用于空口时间同步的参考时间。第二终端设备可用于接收来自第一终端设备的第一消息;第二终端设备还可用于根据第一消息,确定是否被允许对时间T进行PDC;第二终端设备还可用于确定被允许对所述时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC。另外,第一终端设备还可执行上述方法实施例中网络设备的相关操作,第二终端设备还可执行上述方法实施例中终端设备的相关操作,此处不再赘述。Wherein, the first terminal device can be used to determine the first message; it can also be used to send the first message to the second terminal device; the first message is used to indicate whether the first terminal device allows the second terminal device to perform PDC on time T, time T is a reference time for air interface time synchronization indicated by the first terminal device to the second terminal device. The second terminal device can be used to receive the first message from the first terminal device; the second terminal device can also be used to determine whether it is allowed to perform PDC on time T according to the first message; the second terminal device can also be used to determine whether it is allowed to When the PDC is performed at the time T, the PDC is performed on the time T according to the configuration of the RTT measurement. In addition, the first terminal device may also perform related operations of the network device in the above method embodiments, and the second terminal device may also perform related operations of the terminal device in the above method embodiments, which will not be repeated here.

图13和图14为本申请的实施例提供的可能的通信装置的结构示意图。这些通信装置可以实现上述方法实施例中终端设备或网络设备的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请实施例中,该通信装置可以是图1a、图1b或图1c所示的通信系统中的网络设备,也可以是该通信系统中的终端设备,还可以是应用于终端设备或网络设备的模块(如芯片)。FIG. 13 and FIG. 14 are schematic structural diagrams of possible communication devices provided by the embodiments of the present application. These communication apparatuses can realize the functions of the terminal equipment or the network equipment in the above method embodiments, and therefore can also realize the beneficial effects of the above method embodiments. In this embodiment of the application, the communication device may be a network device in the communication system shown in Figure 1a, Figure 1b or Figure 1c, or a terminal device in the communication system, or it may be a device applied to a terminal device or a network A module (such as a chip) of a device.

如图13所示,通信装置1300包括通信单元1301和处理单元1302。通信装置1300可用于实现上述方法实施例中网络设备或终端设备的功能。As shown in FIG. 13 , a communication device 1300 includes a communication unit 1301 and a processing unit 1302 . The communication device 1300 may be used to implement the functions of the network device or the terminal device in the foregoing method embodiments.

当通信装置1300用于实现上述方法实施例中终端设备的功能时:通信单元1301,用于接收来自网络设备的第一消息,该第一消息用于指示网络设备是否允许通信装置1300对时间T进行传播时延补偿PDC;时间T是网络设备向通信装置1300指示的用于空口时间同步的参考时间。处理单元1302,用于根据第一消息,确定是否被允许对时间T进行PDC;处理单元1302,还用于确定被允许对时间T进行PDC时,根据往返时延RTT测量的配置情况对时间T进行PDC。When the communication device 1300 is used to realize the function of the terminal device in the above method embodiment: the communication unit 1301 is used to receive the first message from the network device, the first message is used to indicate whether the network device allows the communication device 1300 to adjust the time T Propagation delay compensation PDC is performed; the time T is a reference time for air interface time synchronization indicated by the network device to the communication apparatus 1300 . The processing unit 1302 is configured to determine whether to perform PDC on time T according to the first message; the processing unit 1302 is also configured to determine whether to perform PDC on time T according to the configuration of the round-trip delay RTT measurement. Conduct PDC.

在一种可选的实施方式中,处理单元1302根据第一消息,确定是否被允许对时间T进行PDC,具体用于:在第一消息包括第一字段且第一字段所指示的是使能enable时,确定通信装置1300被允许对时间T进行PDC;在第一消息包括第一字段且第一字段所指示的是不使能disable时,确定通信装置1300被禁止对时间T进行PDC。可选的,处理单元1302,还用于在第一消息中不包括第一字段时,根据预设PDC方式进行PDC。In an optional implementation manner, the processing unit 1302 determines whether the time T is allowed to perform PDC according to the first message, specifically: when the first message includes the first field and the first field indicates enable When enabled, it is determined that the communication device 1300 is allowed to perform PDC for time T; Optionally, the processing unit 1302 is further configured to perform PDC according to a preset PDC manner when the first message does not include the first field.

在一种可选的实施方式中,处理单元1302确定通信装置1300被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC,具体用于:在配置了RTT测量时,基于RTT对时间T进行PDC;在未配置RTT测量时,基于定时提前TA对时间T进行PDC。In an optional implementation manner, when the processing unit 1302 determines that the communication device 1300 is allowed to perform the PDC on the time T, it performs the PDC on the time T according to the configuration of the RTT measurement, specifically: when the RTT measurement is configured, based on RTT performs PDC on time T; when RTT measurement is not configured, PDC is performed on time T based on timing advance TA.

在一种可选的实施方式中,处理单元1302确定通信装置1300被允许对时间T进行PDC时,根据RTT测量的配置情况对时间T进行PDC,具体用于:In an optional implementation manner, when the processing unit 1302 determines that the communication device 1300 is allowed to perform the PDC on the time T, perform the PDC on the time T according to the configuration of the RTT measurement, specifically for:

在配置了RTT测量且存在能够使用的RTT测量结果时,基于RTT测量结果对时间T进行PDC;When RTT measurement is configured and there is an available RTT measurement result, perform PDC on time T based on the RTT measurement result;

在配置了RTT测量且没有能够使用的RTT测量结果时,确定对时间T不进行PDC,或者,在接收到能够使用的RTT测量结果时,基于RTT测量结果对时间T进行PDC;When RTT measurement is configured and there is no available RTT measurement result, determine not to perform PDC for time T, or, when receiving available RTT measurement result, perform PDC for time T based on the RTT measurement result;

在未配置RTT测量时,基于定时提前TA对时间T进行PDC。When RTT measurement is not configured, the time T is PDC based on the timing advance TA.

在一种可选的实施方式中,处理单元1302确定通信装置1300被允许对时间T进行PDC时,根据往返时延RTT测量的配置情况对时间T进行PDC,具体用于:In an optional implementation manner, when the processing unit 1302 determines that the communication device 1300 is allowed to perform the PDC on the time T, it performs the PDC on the time T according to the configuration of the round-trip delay RTT measurement, specifically for:

在配置了RTT测量且存在的RTT测量结果在有效期内时,基于RTT测量结果对时间T进行PDC;When RTT measurement is configured and the existing RTT measurement result is within the validity period, PDC is performed on time T based on the RTT measurement result;

在配置了RTT测量且存在的RTT测量结果不在有效期内时,确定对时间T不进行PDC,或者,在预设时长内接收到RTT测量结果时,基于接收到的RTT测量结果对时间T进行PDC;When RTT measurement is configured and the existing RTT measurement result is not within the validity period, it is determined not to perform PDC for time T, or, when the RTT measurement result is received within the preset duration, PDC is performed for time T based on the received RTT measurement result ;

在未配置RTT测量时,基于定时提前TA对时间T进行PDC。When RTT measurement is not configured, the time T is PDC based on the timing advance TA.

在一种可选的实施方式中,RTT测量结果是否在有效期内是处理单元通过定时器确定的。In an optional implementation manner, whether the RTT measurement result is within the validity period is determined by the processing unit through a timer.

在一种可选的实施方式中,处理单元1302确定通信装置1300被禁止对时间T进行PDC时,还用于:在配置了RTT测量时,向网络设备发送最新的通信装置1300的接收-发送时间差。In an optional implementation manner, when the processing unit 1302 determines that the communication device 1300 is prohibited from performing PDC on the time T, it is also used to: send the latest reception-send of the communication device 1300 to the network device when RTT measurement is configured Time difference.

当通信装置1300用于实现上述方法实施例中网络设备的功能时:处理单元1302,用于确定第一消息,该第一消息用于指示网络设备是否允许终端设备对时间T进行传播时延补偿PDC;时间T是通信装置向终端设备指示的用于空口时间同步的参考时间;通信单元1301,用于向终端设备发送第一消息。When the communication device 1300 is used to realize the function of the network device in the above method embodiment: the processing unit 1302 is used to determine the first message, the first message is used to indicate whether the network device allows the terminal device to perform propagation delay compensation for the time T PDC; the time T is a reference time for air interface time synchronization indicated by the communication device to the terminal device; the communication unit 1301 is configured to send a first message to the terminal device.

在一种可选的实施方式中,第一消息包括第一字段;通信装置1300允许终端设备对时间T进行PDC时,第一字段指示使能enable;通信装置1300禁止终端设备对时间T进行PDC时,第一字段指示不使能disable;该第二指示用于终端设备确定PDC方式。可选的,通信装置1300不指示终端设备是被允许对时间T进行PDC,还是被禁止对时间T进行PDC时,第一消息中不包括第一字段。In an optional implementation manner, the first message includes a first field; when the communication device 1300 allows the terminal device to perform PDC on time T, the first field indicates enable; the communication device 1300 prohibits the terminal device from performing PDC on time T When , the first field indicates that disable is not enabled; the second indication is used by the terminal device to determine the PDC mode. Optionally, when the communication apparatus 1300 does not indicate whether the terminal device is allowed to perform the PDC on the time T or is prohibited from performing the PDC on the time T, the first message does not include the first field.

在一种可选的实施方式中,通信装置1300为分布式单元DU与集中式单元CU相分离的架构,In an optional implementation manner, the communication device 1300 is a structure in which the distributed unit DU and the centralized unit CU are separated,

处理单元1302确定第一消息,具体用于:通过CU向DU发送第二消息,第二消息包括第一消息的默认格式;DU接收到第二消息时,确定第一消息;The processing unit 1302 determines the first message, which is specifically used to: send a second message to the DU through the CU, the second message includes a default format of the first message; when the DU receives the second message, determine the first message;

通信单元1301向终端设备发送第一消息,具体用于:通过DU向终端设备发送第一消息,第一线消息是无线资源控制RRC广播消息。The communication unit 1301 sends the first message to the terminal device, and is specifically configured to: send the first message to the terminal device through the DU, where the first line message is a radio resource control RRC broadcast message.

在一种可选的实施方式中,通信装置1300为分布式单元DU与集中式单元CU相分离的架构,In an optional implementation manner, the communication device 1300 is a structure in which the distributed unit DU and the centralized unit CU are separated,

处理单元1302确定第一消息,具体用于:通过DU向CU发送第二消息,第二消息包括第一消息中第一字段的值;CU接收到第二消息时,确定第一消息;The processing unit 1302 determines the first message, and is specifically configured to: send a second message to the CU through the DU, where the second message includes the value of the first field in the first message; when the CU receives the second message, determine the first message;

通信单元1301向终端设备发送第一消息,具体用于:通过CU向终端设备发送第一消息,第一消息是RRC单播消息。The communication unit 1301 sends the first message to the terminal device, and is specifically configured to: send the first message to the terminal device through the CU, where the first message is an RRC unicast message.

在一种可选的实施方式中,通信装置1300为分布式单元DU与集中式单元CU相分离的架构,In an optional implementation manner, the communication device 1300 is a structure in which the distributed unit DU and the centralized unit CU are separated,

处理单元1302确定第一消息,具体用于:通过DU向CU发送第二消息,第二消息包括时间T的值以及PDC的值;CU根据时间T的值和PDC的值,确定第一消息;The processing unit 1302 determines the first message, which is specifically used to: send a second message to the CU through the DU, the second message includes the value of the time T and the value of the PDC; the CU determines the first message according to the value of the time T and the value of the PDC;

通信单元1301向终端设备发送第一消息,具体用于:通过CU向终端设备发送第一消息,第一消息是RRC单播消息。The communication unit 1301 sends the first message to the terminal device, and is specifically configured to: send the first message to the terminal device through the CU, where the first message is an RRC unicast message.

关于上述通信装置1300更详细的描述可参考上述方法实施例中的相关描述,这里不加赘述。For a more detailed description of the foregoing communication apparatus 1300, reference may be made to relevant descriptions in the foregoing method embodiments, and details are not repeated here.

如图14所示,通信装置1400可以是终端设备或网络设备,也可以是支持终端设备实现上述方法的芯片、芯片系统、或处理器等,还可以是支持网络设备实现上述方法的芯片、芯片系统、或处理器等。该装置可用于实现上述方法实施例中描述的方法,具体可以参见上述方法实施例中的说明。As shown in Figure 14, the communication device 1400 may be a terminal device or a network device, or a chip, a chip system, or a processor that supports the terminal device to implement the above method, or a chip or chip that supports the network device to implement the above method. system, or processor, etc. The device can be used to implement the methods described in the above method embodiments, and for details, refer to the descriptions in the above method embodiments.

所述通信装置1400可以包括一个或多个处理器1401。所述处理器1401可以是通用处理器或者专用处理器等。例如可以是基带处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或中央处理器(Central Processing Unit,CPU)。基带处理器可以用于对通信协议以及通信数据进行处理,中央处理器可以用于对通信装置(如,基站、基带芯片,终端、终端芯片,DU或CU等)进行控制,执行软件程序,处理软件程序的数据。The communication device 1400 may include one or more processors 1401 . The processor 1401 may be a general-purpose processor or a special-purpose processor. For example, it may be a baseband processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or a central processing unit (Central Processing Unit, CPU). The baseband processor can be used to process communication protocols and communication data, and the central processing unit can be used to control communication devices (such as base stations, baseband chips, terminals, terminal chips, DU or CU, etc.), execute software programs, and process Data for Software Programs.

可选的,所述通信装置1400中可以包括一个或多个存储器1402,其上可以存有指令1404,所述指令可在所述处理器1401上被运行,使得所述通信装置1400执行上述方法实施例中描述的方法。可选的,所述存储器1402中还可以存储有数据。所述处理器1401和存储器1402可以单独设置,也可以集成在一起。Optionally, the communication device 1400 may include one or more memories 1402, on which instructions 1404 may be stored, and the instructions may be executed on the processor 1401, so that the communication device 1400 executes the above method Methods described in the Examples. Optionally, data may also be stored in the memory 1402 . The processor 1401 and the memory 1402 can be set separately or integrated together.

存储器1402可包括但不限于硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等非易失性存储器,随机存储记忆体(Random Access Memory,RAM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、ROM或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM)等等。The memory 1402 may include but not limited to non-volatile memory such as hard disk drive (HDD) or solid-state drive (solid-state drive, SSD), random access memory (Random Access Memory, RAM), erasable and programmable Read-only memory (Erasable Programmable ROM, EPROM), ROM or portable read-only memory (Compact Disc Read-Only Memory, CD-ROM), etc.

可选的,所述通信装置1400还可以包括收发器1405、天线1406。所述收发器1405可以称为收发单元、收发机、或收发电路等,用于实现收发功能。收发器1405可以包括接收器和发送器,接收器可以称为接收机或接收电路等,用于实现接收功能;发送器可以称为发送机或发送电路等,用于实现发送功能。Optionally, the communication device 1400 may further include a transceiver 1405 and an antenna 1406 . The transceiver 1405 may be called a transceiver unit, a transceiver, or a transceiver circuit, etc., and is used to realize a transceiver function. The transceiver 1405 may include a receiver and a transmitter, and the receiver may be called a receiver or a receiving circuit for realizing a receiving function; the transmitter may be called a transmitter or a sending circuit for realizing a sending function.

所述通信装置1400为终端设备:收发器1405用于执行图8所示传播时延补偿方法中的S102。处理器1401用于图8所示传播时延补偿方法中的S103、S104。The communication apparatus 1400 is a terminal device: the transceiver 1405 is configured to execute S102 in the propagation delay compensation method shown in FIG. 8 . The processor 1401 is used in S103 and S104 in the propagation delay compensation method shown in FIG. 8 .

所述通信装置1400为网络设备:收发器1405用于执行图8所示传播时延补偿方法中的S102。处理器1401用于执行图8所示传播时延补偿方法中的S101。The communication device 1400 is a network device: the transceiver 1405 is configured to execute S102 in the propagation delay compensation method shown in FIG. 8 . The processor 1401 is configured to execute S101 in the propagation delay compensation method shown in FIG. 8 .

另一种可能的设计中,处理器1401中可以包括用于实现接收和发送功能的收发器。例如该收发器可以是收发电路,或者是接口,或者是接口电路。用于实现接收和发送功能的收发电路、接口或接口电路可以是分开的,也可以集成在一起。上述收发电路、接口或接口电路可以用于代码/数据的读写,或者,上述收发电路、接口或接口电路可以用于信号的传输或传递。In another possible design, the processor 1401 may include a transceiver for implementing receiving and sending functions. For example, the transceiver may be a transceiver circuit, or an interface, or an interface circuit. The transceiver circuits, interfaces or interface circuits for realizing the functions of receiving and sending can be separated or integrated together. The above-mentioned transceiver circuit, interface or interface circuit may be used for reading and writing code/data, or the above-mentioned transceiver circuit, interface or interface circuit may be used for signal transmission or transmission.

又一种可能的设计中,可选的,处理器1401可以存有指令1403,指令1403在处理器1401上运行,可使得所述通信装置1400执行上述方法实施例中描述的方法。指令1403可能固化在处理器1401中,该种情况下,处理器1401可能由硬件实现。In yet another possible design, optionally, the processor 1401 may store instructions 1403, and the instructions 1403 run on the processor 1401, and may cause the communication device 1400 to execute the methods described in the foregoing method embodiments. The instruction 1403 may be fixed in the processor 1401, in this case, the processor 1401 may be implemented by hardware.

又一种可能的设计中,通信装置1400可以包括电路,所述电路可以实现前述方法实施例中发送或接收或者通信的功能。本申请实施例中描述的处理器和收发器可实现在集成电路(integrated circuit,IC)、模拟IC、射频集成电路(radio frequency integratedcircuit,RFIC)、混合信号IC、专用集成电路(application specific integratedcircuit,ASIC)、印刷电路板(printed circuit board,PCB)、电子设备等上。该处理器和收发器也可以用各种IC工艺技术来制造,例如互补金属氧化物半导体(complementary metaloxide semiconductor,CMOS)、N型金属氧化物半导体(nMetal-oxide-semiconductor,NMOS)、P型金属氧化物半导体(positive channel metal oxide semiconductor,PMOS)、双极结型晶体管(Bipolar Junction Transistor,BJT)、双极CMOS(BiCMOS)、硅锗(SiGe)、砷化镓(GaAs)等。In yet another possible design, the communication device 1400 may include a circuit, and the circuit may implement the function of sending or receiving or communicating in the foregoing method embodiments. The processor and the transceiver described in the embodiments of the present application may be implemented in an integrated circuit (integrated circuit, IC), an analog IC, a radio frequency integrated circuit (radio frequency integrated circuit, RFIC), a mixed signal IC, or an application specific integrated circuit (application specific integrated circuit, ASIC), printed circuit board (printed circuit board, PCB), electronic equipment, etc. The processor and transceiver can also be fabricated using various IC process technologies such as complementary metal oxide semiconductor (CMOS), nMetal-oxide-semiconductor (NMOS), p-metal Oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (Bipolar Junction Transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.

以上实施例描述中的通信装置可以是终端设备、网络设备或接入网设备,但本申请实施例中描述的通信装置的范围并不限于此,而且通信装置的结构可以不受图14的限制。通信装置可以是独立的设备或者可以是较大设备的一部分。例如所述通信装置可以是:The communication device described in the above embodiments may be terminal equipment, network equipment or access network equipment, but the scope of the communication device described in the embodiments of this application is not limited thereto, and the structure of the communication device may not be limited by Figure 14 . A communication device may be a stand-alone device or may be part of a larger device. For example the communication device may be:

(1)独立的集成电路IC,或芯片,或,芯片系统或子系统;(1) Stand-alone integrated circuits ICs, or chips, or chip systems or subsystems;

(2)具有一个或多个IC的集合,可选的,该IC集合也可以包括用于存储数据,指令的存储部件;(2) A set of one or more ICs, optionally, the set of ICs may also include storage components for storing data and instructions;

(3)ASIC,例如调制解调器(modulator);(3) ASIC, such as a modem (modulator);

(4)可嵌入在其他设备内的模块;(4) Modules that can be embedded in other devices;

(5)接收机、终端、智能终端、蜂窝电话、无线设备、手持机、移动单元、车载设备、网络设备、云设备、人工智能设备等等;(5) Receivers, terminals, smart terminals, cellular phones, wireless devices, handsets, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.;

(6)其他等等。(6) Others and so on.

对于通信装置可以是芯片或芯片系统的情况,可参见图15所示的芯片的结构示意图。图15所示的芯片1500包括处理器1501和接口1502。其中,处理器1501的数量可以是一个或多个,接口1502的数量可以是多个。该处理器1501可以是逻辑电路,该接口1502可以是输入输出接口、输入接口或输出接口。所述芯片1500还可包括存储器1503。For the case where the communication device may be a chip or a chip system, refer to the schematic structural diagram of the chip shown in FIG. 15 . The chip 1500 shown in FIG. 15 includes a processor 1501 and an interface 1502 . Wherein, the number of processors 1501 may be one or more, and the number of interfaces 1502 may be more than one. The processor 1501 may be a logic circuit, and the interface 1502 may be an input-output interface, an input interface, or an output interface. The chip 1500 may also include a memory 1503 .

一种设计中,对于芯片用于实现本申请实施例中终端设备的功能的情况:接口1502,用于接收来自网络设备的第一消息,该第一消息用于指示网络设备是否允许芯片1500对时间T进行传播时延补偿PDC;所述时间T是网络设备向芯片1500指示的用于空口时间同步的参考时间;处理器1501,用于根据第一消息,确定是否被允许对时间T进行PDC;处理器1501,还用于确定被允许对时间T进行PDC时,根据往返时延RTT测量的配置情况对时间T进行PDC。In one design, for the case where the chip is used to implement the functions of the terminal device in the embodiment of the present application: the interface 1502 is used to receive a first message from the network device, and the first message is used to indicate whether the network device allows the chip 1500 to Propagation delay compensation PDC is performed at time T; the time T is the reference time for air interface time synchronization indicated by the network device to the chip 1500; the processor 1501 is used to determine whether to perform PDC on time T according to the first message The processor 1501 is further configured to perform PDC on time T according to the configuration of round-trip delay RTT measurement when determining that PDC is allowed on time T.

另一种设计中,对于芯片用于实现本申请实施例中网络设备的功能的情况:处理器1501,用于确定第一消息,该第一消息用于指示芯片1500是否允许终端设备对时间T进行传播时延补偿PDC;所述时间T是芯片1500向终端设备指示的用于空口时间同步的参考时间。接口1502,用于向终端设备发送第一消息。In another design, for the case where the chip is used to implement the functions of the network device in the embodiment of the present application: the processor 1501 is configured to determine the first message, and the first message is used to indicate whether the chip 1500 allows the terminal device to check the time T Propagation delay compensation PDC is performed; the time T is a reference time for air interface time synchronization indicated by the chip 1500 to the terminal device. Interface 1502, configured to send the first message to the terminal device.

本申请实施例中通信装置1400、芯片1500还可执行上述通信装置1300所述的实现方式。本领域技术人员还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。In the embodiment of the present application, the communication device 1400 and the chip 1500 may also execute the implementation described in the communication device 1300 above. Those skilled in the art can also understand that various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functions are implemented by hardware or software depends on the specific application and overall system design requirements. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the protection scope of the embodiments of the present application.

本申请实施例和上述方法实施例基于同一构思,其带来的技术效果也相同,具体原理请参照上述方法实施例的描述,此处不再赘述。The embodiment of the present application and the above-mentioned method embodiment are based on the same idea, and the technical effects brought about by it are also the same. For specific principles, please refer to the description of the above-mentioned method embodiment, which will not be repeated here.

本申请还提供了一种计算机可读存储介质,用于储存计算机软件指令,当所述指令被通信装置执行时,实现上述任一方法实施例的功能。The present application also provides a computer-readable storage medium for storing computer software instructions, and when the instructions are executed by a communication device, the functions of any one of the above method embodiments are realized.

本申请还提供了一种计算机程序产品,用于储存计算机软件指令,当所述指令被通信装置执行时,实现上述任一方法实施例的功能。The present application also provides a computer program product, which is used for storing computer software instructions, and when the instructions are executed by a communication device, the functions of any one of the above method embodiments are realized.

本申请还提供了一种计算机程序,当其在计算机上运行时,实现上述任一方法实施例的功能。The present application also provides a computer program, which, when running on a computer, can realize the functions of any one of the above method embodiments.

上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state drive,SSD))等。In the above embodiments, all or part may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state drive (solid state drive, SSD)) etc.

在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In each embodiment of the present application, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.

本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the contextual objects are an "or" relationship.

可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the serial numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic.

Claims (19)

1. A propagation delay compensation method, the method comprising:
The method comprises the steps that a terminal device receives a first message from a network device, wherein the first message is used for indicating whether the network device allows the terminal device to carry out propagation delay compensation PDC on time T; the time T is a reference time for air interface time synchronization indicated by the network equipment to the terminal equipment;
the terminal equipment determines whether PDC is allowed to be carried out on the time T or not according to the first message;
and when the terminal equipment determines that the PDC is allowed to be carried out on the time T, carrying out PDC on the time T according to the configuration condition of Round Trip Time (RTT) measurement.
2. The method according to claim 1, wherein the terminal device determining whether PDC for the time T is allowed or not based on the first message comprises:
the terminal equipment determines that the terminal equipment is allowed to carry out PDC on the time T when the first message comprises a first field and the first field indicates that enabling is carried out;
and when the first message comprises the first field and the first field indicates that disable is not enabled, the terminal equipment determines that the terminal equipment is forbidden to carry out PDC on the time T.
3. The method according to claim 2, wherein the method further comprises:
and the terminal equipment performs PDC according to a preset PDC mode when the first field is not included in the first message.
4. A method according to any of claims 1 to 3, characterized in that when the terminal device determines that PDC is allowed for the time T, PDC is performed for the time T according to the configuration of RTT measurements, comprising:
when the terminal equipment is configured with the RTT measurement, PDC is carried out on the time T based on the RTT;
and when the RTT measurement is not configured, the terminal equipment performs PDC on the time T based on a timing advance TA.
5. A method according to any of claims 1 to 3, characterized in that when the terminal device determines that PDC is allowed for the time T, PDC is performed for the time T according to the configuration of RTT measurements, comprising:
the terminal equipment carries out PDC on the time T based on the RTT measurement result when the RTT measurement is configured and a usable RTT measurement result exists;
the terminal equipment determines that PDC is not carried out on the time T when the RTT measurement is configured and no usable RTT measurement result exists, or carries out PDC on the time T based on the RTT measurement result when the usable RTT measurement result is received;
And when the RTT measurement is not configured, the terminal equipment performs PDC on the time T based on a timing advance TA.
6. A method according to any of claims 1 to 3, characterized in that when the terminal device determines that PDC is allowed for the time T, PDC is performed for the time T according to the configuration of RTT measurements, comprising:
the terminal equipment carries out PDC on the time T based on the RTT measurement result when the RTT measurement is configured and the existing RTT measurement result is in the effective period;
when the RTT measurement is configured and the existing RTT measurement result is not in the effective period, the terminal equipment determines that PDC is not carried out on the time T, or receives the RTT measurement result in a preset time period, and carries out PDC on the time T based on the received RTT measurement result;
and when the RTT measurement is not configured, the terminal equipment performs PDC on the time T based on a timing advance TA.
7. The method of claim 6, wherein the RTT measurement is determined by the terminal device through a timer during a period of validity.
8. The method according to any of the claims 1 to 7, characterized in that when the terminal device determines that PDC of the time T is prohibited, the method further comprises:
And the terminal equipment sends the latest receiving-sending time difference of the terminal equipment to the network equipment when the RTT measurement is configured.
9. A propagation delay compensation method, the method comprising:
the network equipment determines a first message, wherein the first message is used for indicating whether the network equipment allows the terminal equipment to carry out propagation delay compensation PDC on time T; the time T is a reference time for air interface time synchronization indicated by the network equipment to the terminal equipment;
the network device sends the first message to the terminal device.
10. The method of claim 9, wherein the first message comprises a first field; when the network device allows the terminal device to perform PDC on the time T, the first field indicates enable; and when the network equipment prohibits the terminal equipment from PDC to the time T, the first field indicates that disable is not enabled.
11. The method of claim 10, wherein the first field is not included in the first message when the network device does not indicate whether the terminal device is allowed to PDC the time T or is prohibited from PDC the time T.
12. The method according to any one of claims 9 to 11, wherein the network device is a separate architecture of a distributed unit DU and a centralized unit CU,
the network device determines a first message comprising:
the CU sends a second message to the DU, the second message including a default format of the first message;
when the DU receives the second message, determining the first message;
the network device sending the first message to the terminal device, including:
the DU sends the first message to the terminal device, the first line message being a radio resource control, RRC, broadcast message.
13. The method according to any one of claims 9 to 11, wherein the network device is a separate architecture of a distributed unit DU and a centralized unit CU,
the network device determines a first message comprising:
the DU sends a second message to the CU, wherein the second message comprises a value of a first field in the first message;
when the CU receives the second message, determining the first message;
the network device sending the first message to the terminal device, including:
the CU sends the first message to the terminal device, wherein the first message is a Radio Resource Control (RRC) unicast message.
14. The method according to any one of claims 9 to 11, wherein the network device is a separate architecture of a distributed unit DU and a centralized unit CU,
the network device determines a first message comprising:
the DU sends a second message to the CU, wherein the second message comprises the value of the time T and the value of the PDC;
the CU determines the first message according to the value of the time T and the value of the PDC;
the network device sending the first message to the terminal device, including:
the CU sends the first message to the terminal device, wherein the first message is a Radio Resource Control (RRC) unicast message.
15. A communication device, the device comprising:
a communication unit, configured to receive a first message from a network device, where the first message is configured to indicate whether the network device allows the communication apparatus to perform propagation delay compensation PDC for time T; the time T is a reference time for air interface time synchronization indicated by the network equipment to the communication device;
a processing unit, configured to determine whether PDC is allowed to be performed on the time T according to the first message;
And the processing unit is further used for performing PDC on the time T according to the configuration condition of RTT measurement when the PDC is allowed to be performed on the time T.
16. A communication device, the device comprising:
a processing unit, configured to determine a first message, where the first message is used to instruct the communication apparatus whether to allow the terminal device to perform propagation delay compensation PDC on time T; the time T is a reference time for air interface time synchronization indicated to the terminal equipment by the communication device;
and the communication unit is used for sending the first message to the terminal equipment.
17. A communication device comprising a memory and a processor;
the memory is used for storing instructions or computer programs;
the processor being configured to execute the computer program or instructions stored in the memory to cause the communication device to perform the method of any one of claims 1 to 8 or to perform the method of any one of claims 9 to 14.
18. A computer readable storage medium storing a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 8 or to perform the method of any one of claims 9 to 14.
19. A computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 8 or to perform the method of any one of claims 9 to 14.
CN202210012218.3A 2022-01-06 2022-01-06 Propagation delay compensation method and device Pending CN116456444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210012218.3A CN116456444A (en) 2022-01-06 2022-01-06 Propagation delay compensation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210012218.3A CN116456444A (en) 2022-01-06 2022-01-06 Propagation delay compensation method and device

Publications (1)

Publication Number Publication Date
CN116456444A true CN116456444A (en) 2023-07-18

Family

ID=87126145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210012218.3A Pending CN116456444A (en) 2022-01-06 2022-01-06 Propagation delay compensation method and device

Country Status (1)

Country Link
CN (1) CN116456444A (en)

Similar Documents

Publication Publication Date Title
EP3884600B1 (en) 5g system support for conveying tsn time synchronization
WO2020001585A1 (en) Clock synchronisation method and apparatus
CN112399546B (en) Indication method, device, equipment and storage medium for public timing advance
US20190059066A1 (en) Time Synchronization Between Nodes Connected by a Wireless Network
WO2021238685A1 (en) Method and device for communication, and computer-readable storage medium
US12177805B2 (en) Integrated access backhaul node downlink timing adjustment in presence of frequency offset
US20220124652A1 (en) IAB Timing Delta MAC CE Enhancement For Case #6 Timing Support
WO2023011148A1 (en) Uplink signal synchronization method and communication apparatus
WO2021159508A1 (en) Clock information synchronization method and device, and first node, terminal, and storage medium
WO2021134705A1 (en) Method for determining time synchronization and related product
CN114041270B (en) Electronic device, wireless communication method, and computer-readable storage medium
WO2024174941A1 (en) Clock synchronization method and apparatus
CN114303428B (en) Method for determining timestamp, terminal equipment, access network node and core network equipment
EP4118893A1 (en) Supporting qos flow specific uncertainty attribute
WO2022063395A1 (en) Synchronization accuracy enhancement with common 5gs time for sidelink devices
CN116456444A (en) Propagation delay compensation method and device
WO2020171802A1 (en) Synchronization for 5gs time sensitive communications (tsc) using machine learning
US20230403662A1 (en) IAB Timing Delta MAC CE Enhancement for Case #6 Timing Support
WO2023116435A1 (en) Communication method and apparatus
WO2021159262A1 (en) Threshold value adjustment method and apparatus for timing advance
WO2023130448A1 (en) Communication method and communication apparatus
TW202226875A (en) Method of propagation delay compensation and related devices
CN116508361A (en) Transmission of periodic data in inactive state
WO2024037323A1 (en) Time-service method and apparatus
WO2022027225A1 (en) Uplink timing method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination