WO2022133912A1 - Sidelink communication method, apparatus and system - Google Patents

Sidelink communication method, apparatus and system Download PDF

Info

Publication number
WO2022133912A1
WO2022133912A1 PCT/CN2020/139044 CN2020139044W WO2022133912A1 WO 2022133912 A1 WO2022133912 A1 WO 2022133912A1 CN 2020139044 W CN2020139044 W CN 2020139044W WO 2022133912 A1 WO2022133912 A1 WO 2022133912A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
bearer
message
logical channel
indication information
Prior art date
Application number
PCT/CN2020/139044
Other languages
French (fr)
Chinese (zh)
Inventor
王南鑫
彭文杰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2020/139044 priority Critical patent/WO2022133912A1/en
Publication of WO2022133912A1 publication Critical patent/WO2022133912A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W74/00Wireless channel access, e.g. scheduled or random access
    • H04W74/08Non-scheduled or contention based access, e.g. random access, ALOHA, CSMA [Carrier Sense Multiple Access]

Definitions

  • the present application relates to the field of mobile communication technologies, and in particular, to a sidelink communication method, apparatus and system.
  • the terminal device can communicate with the terminal device through the network, and can also communicate directly.
  • Sidelink (SL) communication is a direct communication technology between terminal equipment and terminal equipment formulated by the 3rd Generation Partnership Project (3GPP). Data transmission can be directly performed between the terminal equipment and the terminal equipment through the side link without going through the network, which can effectively reduce the communication delay.
  • SL communication data is transmitted between two terminal devices through the PC5 interface.
  • the typical application of SL communication is the Vehicle to Everything (V2X) scenario.
  • V2X Vehicle to Everything
  • a vehicle is a terminal device.
  • SL communication can also be used in other scenarios, such as direct communication between wearable devices. In order to ensure the communication security at both ends of the communication, the data communicated between the two terminal devices needs to be secured.
  • Embodiments of the present application provide a sidelink communication method, apparatus, and system.
  • the first terminal device determines that the PDCP COUNT of the first bearer is about to be reversed, and the first bearer is initiated by the first terminal device.
  • the established sidelink bearer with the second terminal device the first terminal device initiates a bearer modification process or a key update process for the first bearer between the first terminal device and the second terminal device, so that different data packets can be resolved
  • the problem of using the same security input parameters can avoid the security risk caused by the reduction of security. Compared with the method of deleting the first bearer and adding another bearer, the problem of causing a larger transmission interruption and loss of data packets can be avoided.
  • a communication method is provided. It can be understood that the method of the first aspect may be performed by a first apparatus, and the first apparatus may be a communication device or a communication device capable of supporting the functions required by the communication device to implement the method, such as a chip system.
  • the communication device may be the first terminal device. The following description will be given by taking the implementation of the method by the first terminal device as an example.
  • the method includes: the first terminal device determines that the PDCP COUNT of the first bearer is about to be reversed, the first bearer is a side link bearer between the first terminal device and the second terminal device initiated and established, and the first terminal device initiates and establishes a side link bearer with the second terminal device.
  • the PDCP COUNT of the first bearer is about to be reversed, which may be that the PDCP COUNT of the first bearer maintained by the first terminal device as the sender is about to be reversed, or it may be the first terminal device maintained as the receiver.
  • the carried PDCP COUNT is about to be rolled over, or both of them are about to roll over.
  • the first terminal device receives a first message from the second terminal device, where the first message includes first indication information, and the first indication information indicates the PDCP of the first bearer
  • the COUNT is about to be rolled over
  • the first terminal device determines, based on the first indication information, that the PDCP COUNT of the first bearer is about to roll over.
  • the PDCP layer of the first terminal device recognizes that the PDCP COUNT of the first bearer is about to be reversed, and the PDCP layer of the first terminal device reports to the RRC layer of the first terminal device the second indication information, the second indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over, and the RRC layer of the first terminal device determines that the PDCP COUNT of the first bearer is about to roll over based on the second indication information.
  • the PDCP layer of the first terminal device periodically reports the maintained PDCP COUNT of the first bearer to the RRC layer of the first terminal device according to a first period, and the first terminal device The RRC layer identifies whether the PDCP COUNT is about to rollover.
  • the duration of the first cycle may be configured by the RRC layer of the first terminal device to the PDCP layer of the first terminal device, or may be determined by the PDCP layer itself.
  • the PDCP layer or the RRC layer of the first terminal device may determine or recognize that the PDCP COUNT is about to be flipped according to a first rule, and the first rule may be, for example, that the HFN in the PDCP COUNT value reaches the maximum value, or the HFN The highest bit becomes 1, or the PDCP COUNT value reaches the first threshold value, etc.
  • This embodiment of the present application does not limit the first rule.
  • the first rule may be determined by the first terminal device itself, may also be specified by a standard protocol, may be determined through negotiation between the first terminal device and the second terminal device, or may be determined by the network
  • the device configuration is also not limited in this embodiment of the present application.
  • the first terminal device initiates a bearer modification process with the second terminal device for the first bearer, including: the first terminal device judging whether there is an available logical channel identifier, The available logical channel identifier is the logical channel identifier that has not been used together with the current key.
  • the first terminal device sends a second message to the second terminal device, and the second message includes the first The bearer identifier of the bearer and the first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer to the first logical channel identifier.
  • the second message may only be used to modify the logical channel identifier of the first bearer without modifying other parameters of the first bearer, and the original configuration of the first bearer except the logical channel identifier continues to be used.
  • the PDCP entity of the first bearer may not be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device may continue to be used without being re-established. Set to 0, so that the data transmission is less affected, and there will be no problems such as packet loss.
  • the PDCP entity of the first bearer may also be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device is reset to 0, thereby The implementation complexity is reduced.
  • the first terminal device initiates a key update process with the second terminal device, including: the RRC layer of the first terminal device to the PC5-S layer of the first terminal device Reporting third indication information, where the third indication information is used to request key update.
  • the PC5-S layer of the first terminal device initiates a key update process with the second terminal device based on the third indication information.
  • the first terminal device determines whether there is an available logical channel identifier, the available logical channel identifier is a logical channel identifier that has not been used with the current key, and when it is determined that there is no available logical channel identifier, the first The RRC layer of the terminal device reports the third indication information to the PC5-S layer of the first terminal device.
  • the third indication information includes a cause value, and the cause value may be used to indicate that the PDCP COUNT is overturned or that there is no available logical channel identifier.
  • a communication method is provided. It can be understood that the method of the second aspect may be performed by a second apparatus, and the second apparatus may be a communication device or a communication device capable of supporting the functions required by the communication device to implement the method, such as a chip system.
  • the communication device may be the second terminal device. The following description will be given by taking the implementation of the method by the second terminal device as an example.
  • the method includes: the second terminal device receives a second message from the first terminal device, the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer is the first logical channel identifier, the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established, and the second terminal device modifies the logical channel identifier of the first bearer based on the second message to The first logical channel identifier.
  • the PDCP COUNT carried by a sidelink is about to be reversed, and the terminal device that initiates the establishment of the sidelink bearer solves the problem of possible reduction in security, which can reduce the complexity, Reduce the impact on data transfer.
  • the second terminal device determines that the PDCP COUNT of the first bearer is about to be reversed, and the first bearer is initiated by the first terminal device and established with the second terminal device.
  • a side link between terminal devices is carried, and the second terminal device sends a first message to the first terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be reversed . Therefore, the first terminal device can be informed that the PDCP COUNT of the first bearer is about to be reversed and initiate a bearer modification process or a key update process for the first bearer, thereby avoiding security risks caused by security reduction.
  • the PDCP layer of the second terminal device recognizes that the PDCP COUNT of the first bearer is about to be flipped, and the PDCP layer of the second terminal device reports the second terminal device to the RRC layer of the second terminal device.
  • indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over, and the RRC layer of the second terminal device determines that the PDCP COUNT of the first bearer is about to roll over according to the second indication information.
  • the PDCP layer of the second terminal device periodically reports the maintained PDCP COUNT of the first bearer to the RRC layer of the second terminal device according to the first period, and the second terminal device reports the PDCP COUNT of the first bearer to the RRC layer of the second terminal device periodically.
  • the RRC layer identifies whether the PDCP COUNT is about to rollover.
  • the duration of the first cycle may be configured by the RRC layer of the second terminal device to the PDCP layer of the second terminal device, or may be determined by the PDCP layer itself.
  • the PDCP layer or the RRC layer of the second terminal device may determine or identify that the PDCP COUNT is about to be overturned according to the first rule.
  • the first rule may be that the HFN in the PDCP COUNT value reaches the maximum value, or the HFN The highest bit becomes 1, or the PDCP COUNT value reaches the first threshold value, etc.
  • This embodiment of the present application does not limit the first rule.
  • the first rule may be determined by the second terminal device itself, may also be specified by a standard protocol, may be determined through negotiation between the first terminal device and the second terminal device, or may be determined by the network
  • the device configuration is also not limited in this embodiment of the present application.
  • the second terminal device receives a second message from the first terminal device, the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and the second message uses The second terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier based on the second message.
  • the second terminal device receives a third message from the first terminal device, where the third message is used to request key update; the second terminal device verifies the encryption based on the third message key to update.
  • the first message may be a PC5 RRC message or a PDCP control PDU
  • the first indication information includes a bearer identifier or a logical channel identifier of the first bearer.
  • the first indication information includes a PDCP COUNT value of the first bearer or a high-order bit of the PDCP COUNT value.
  • the first indication information includes information for indicating which transmission direction the PDCP COUNT is about to flip.
  • the second indication information includes a bearer identifier or a logical channel identifier of the first bearer.
  • the second indication information includes the PDCP COUNT value of the first bearer or the high-order bit of the PDCP COUNT value.
  • the second indication information includes information used to indicate which transmission direction the PDCP COUNT is about to flip.
  • a communication device having a function of implementing the behavior in the method of the first aspect above.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the communication device may be a terminal device, or a device capable of supporting the terminal device to implement the functions in the method of the first aspect.
  • the communication device may be a chip system.
  • the communication apparatus includes: a processing unit, configured to determine that the PDCP COUNT of the first bearer is about to be reversed, wherein the first bearer is a side between the first terminal device and the second terminal device initiated by the establishment uplink bearer; a sending unit, configured to send a second message to the second terminal device, where the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used to send the logical channel identifier of the first bearer The channel identifier is modified to the first logical channel identifier, or, used to send a third message to the second terminal device, where the third message is used to request key update; optionally, a receiving unit, configured to receive data from the second terminal device The first message of the first message, wherein the first message includes first indication information, the first indication information indicates that the PDCP COUNT of the first bearer is about to be flipped, or, for receiving the second indication information reported by the PDCP layer of the first terminal device
  • a communication device having a function of implementing the behavior in the method of the second aspect above.
  • This function can be implemented by hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the communication device may be a terminal device, or a device capable of supporting the terminal device to implement the functions in the method of the second aspect.
  • the communication device may be a chip system.
  • the communication apparatus includes: a receiving unit, configured to receive a second message from the first terminal device, where the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used for Modifying the logical channel identifier of the first bearer to a first logical channel identifier, where the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established; the processing unit is configured to, based on the second message Modify the logical channel identifier of the first bearer to the first logical channel identifier.
  • These modules can perform the corresponding functions in the method examples of the second aspect. For details, please refer to the detailed descriptions in the method examples, which will not be repeated here.
  • a communication device may be a communication device implementing the method of any one of the above-mentioned first and second aspects, or a communication device configured to implement any of the above-mentioned first and second aspects.
  • the communication device includes a communication interface, a processor, and optionally, a memory.
  • the memory is used to store computer programs or instructions or data
  • the processor is coupled with the memory and the communication interface, and when the processor reads the computer program or instructions or data, the communication device is made to perform the functions of the first terminal device or the first terminal device in various aspects. Two methods performed by a terminal device.
  • the communication interface may be a transceiver in the communication device, for example, implemented by an antenna, a feeder, a codec, etc. in the communication device, or, if the communication device is a chip provided in the terminal device, the communication interface may is the input/output interface of the chip, such as input/output pins, etc.
  • the transceiver is used for the communication device to communicate with other devices.
  • a chip system in a sixth aspect, includes a processor for implementing the communication method of any one of the first aspect and the second aspect.
  • the system-on-a-chip further includes a memory for storing program instructions and/or data.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • a communication system comprising a communication device implementing the method of the first aspect and a communication device implementing the method of the second aspect.
  • a computer program product includes instructions, when the instructions are executed, the methods performed by the first terminal device in the above aspects are executed, or the methods in the above aspects are executed by the first terminal device. The method performed by the two terminal devices is performed.
  • a computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method executed by the first terminal device in the above aspects is implemented ; or implement the method performed by the second terminal device in the above aspects.
  • FIG. 1 is a schematic structural diagram of a communication system to which an embodiment of the application is applied;
  • FIG. 2 is a schematic diagram of a protocol stack of a sidelink provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of security protection of a sidelink provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of an example of a communication method provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of another example of a communication method provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of another example of a communication method provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of another example of a communication method provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of another example of a communication method provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 10 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 11 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
  • V2X vehicle To other devices
  • V2X can include vehicle to network (Vehicle to Network, V2N), vehicle to vehicle (Vehicle to Vehicle, V2V), vehicle to infrastructure (Vehicle to Infrastructure, V2I), vehicle Vehicle to Pedestrian (V2P), Long Term Evolution-Vehicle (LTE-V), Internet of Vehicle (IoV), Machine Type Communication (MTC), Internet of Things (IoT), Long Term Evolution-Machine (LTE-M), Machine to Machine (M2M), Non-Terrestrial Network (NTN) systems Or other communication systems that evolve in the future.
  • V2N vehicle to network
  • Vehicle to Vehicle V2V
  • vehicle to Infrastructure Vehicle to Infrastructure
  • V2P vehicle to Pedestrian
  • LTE-V Long Term Evolution-Vehicle
  • IoV Internet of Vehicle
  • MTC Machine Type Communication
  • IoT Internet of Things
  • LTE-M Long Term Evolution-Machine
  • M2M
  • FIG. 1 is a schematic diagram of a communication system 100 suitable for this embodiment of the present application.
  • the communication system may include at least two terminal devices, such as the terminal devices 102 , 103 , 104 , and 105 in the communication system 100 shown in FIG. 1 .
  • the communication system may further include at least one network device, such as the network device 101 in the wireless communication system 100 shown in FIG. 1 .
  • a sidelink (sidelink, SL) can be established between the at least two terminal devices, and a sidelink is a link established between the terminal devices that can communicate directly, such as links 120, 121, SL in FIG. 122, 123, and 124, the terminal devices that have established sidelinks can communicate directly.
  • a terminal device can establish a side link with one or more terminal devices, and the terminal device can receive data sent by one or more terminal devices that have established a side link with the terminal device.
  • the interface between two terminal devices is called PC5 interface.
  • the terminal device in the communication system can also establish a wireless connection with the network device for data communication.
  • the terminal devices 102 and 103 respectively establish wireless links 110 and 111 with the network device.
  • the terminal device in the communication system may also not establish a wireless link with the network device, such as the terminal devices 104 and 105 shown in FIG. 1 , which is not limited in this application.
  • the above-mentioned side link may also be referred to as a side link, a side link, a straight-through link, etc., which is not limited in this embodiment of the present application.
  • a terminal device is a device with wireless transceiver function, which can be a fixed device, a mobile device, a handheld device, a wearable device, a vehicle, a vehicle-mounted device, or a device built into the above-mentioned device (for example, a communication module or system-on-chip, etc.).
  • the terminal device is used to connect people, objects, machines, etc., and can be widely used in various scenarios.
  • user equipment UE
  • access terminal subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device.
  • the terminal device in the embodiment of the present application may be a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in internet of things (IoT) systems, wireless terminals in self-driving, wireless terminals in remote medical , wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone , Session Initiation Protocol (SIP) telephones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or connected to Other processing equipment of wireless modems, in-vehicle equipment, in-vehicle communication devices, in-vehicle communication processing chips, wearable devices, terminal equipment in 5G networks or terminal equipment in the future evolved public land mobile network (PLMN) Wait.
  • PLMN
  • a terminal device needs to communicate with another terminal device on a side link, first, the terminal device can establish a side link bearer with another terminal device, and the terminal device sends the wireless resources of the PC5 port to the opposite terminal device.
  • Control Radio Resource Control, RRC
  • Fig. 2 is a protocol stack related to sidelink communication of PC5 port, wherein Fig. 2-a is a control plane protocol stack for the RRC layer, and the RRC layer is used to manage the radio configuration parameters of the radio interface.
  • the PC5-Signalling, PC5-S PC5 signaling protocol
  • the PC5-S layer is responsible for functions such as security establishment and key update.
  • FIG. 2-c shows the user plane protocol stack for user data transmission, in which the service data adaptation protocol (service The data adaptation protocol, SDAP) layer completes the mapping of quality of service (Quality of service, QoS) flows to bearers.
  • the bottom protocol layer includes a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, and a media access control (media access control) layer.
  • PDCP packet data convergence protocol
  • RLC radio link control
  • media access control media access control
  • MAC media access control
  • Physical (Physical, PHY) layer Physical (Physical, PHY) layer.
  • the PDCP layer performs functions such as data encryption, integrity protection and header compression; the RLC layer performs functions such as data packet size matching; the MAC layer performs functions such as data scheduling and mapping between logical channels and transmission channels; the PHY layer is responsible for data in Wireless air interface transmission.
  • FIG. 3 is a schematic diagram of security protection for data packets transmitted on the side link.
  • the sender encrypts the data, and the receiver decrypts the data. Whether it is encryption or decryption, the input parameters are the same, including the key, the COUNT value of the Packet Data Convergence Protocol (PDCP) of the data packet, and the logical channel carried by the side link corresponding to the data packet.
  • Identity Logic Channel Identity, LCID
  • transmission direction and length of the keystream.
  • the COUNT is usually 32 bits.
  • the default COUNT is 32 bits, but it is not limited.
  • Each transmitted data packet has a COUNT value, and each terminal device independently maintains the COUNT value in each transmission direction carried by each side link. In the same transmission direction carried by a side link, The COUNT value of the next packet is the COUNTN value of the previous packet plus 1.
  • COUNT is a unique name used to number data packets, and COUNT is divided into two parts: Hyper Frame Number (HFN) and PDCP sequence number.
  • HFN is the high-order bit of COUNT
  • the PDCP sequence number is the low-order bit of COUNT, and the two together are 32 bits. For example, if the length of the PDCP sequence number occupies 11 bits, the HFN occupies 21 bits.
  • the PDCP sequence number is transmitted on the wireless interface, but the HFN is not transmitted on the wireless interface, but is maintained by the sender and the receiver. The advantage of this is that the transmission overhead is reduced.
  • FIG. 4 is a flowchart of the method.
  • the method may be performed by two communication devices, eg a first terminal device and a second terminal device.
  • the first terminal device and the second terminal device may be various types of terminal devices described above or communication devices capable of supporting the functions required by the terminal device to implement the method.
  • the first terminal device determines that the PDCP COUNT of the first bearer is about to be rolled over.
  • a sidelink bearer is established between the first terminal device and the second terminal device for data transmission between the two terminal devices, which is referred to as a first bearer here.
  • a first bearer With the transmission of data between the two terminal devices, it may happen that the PDCP COUNT of the first bearer is about to be reversed.
  • the first terminal device can act as the sender to encrypt the data packet and then send the data packet to the second terminal device, and can also act as the receiver to receive and decrypt the data packet sent by the second terminal device.
  • the number of data packets transmitted in the two transmission directions may be inconsistent.
  • the first terminal device maintains two PDCP COUNTs for the first bearer, one of which is the PDCP COUNT maintained by the sender, which is used to encrypt the sent data.
  • the other is the PDCP COUNT maintained as the receiver to decrypt the received data.
  • the second terminal device also maintains two PDCP COUNTs.
  • the PDCP COUNT of the first bearer mentioned here is about to be reversed, which may be that the PDCP COUNT of the first bearer maintained by the first terminal device as the sender is about to be reversed, or the first terminal device as the receiver.
  • the maintained PDCP COUNT of the first bearer is about to roll over, or both of them are about to roll over. That is to say, if the PDCP COUNT of any transmission direction on the first bearer is about to roll over, it can be considered that the PDCP of the first bearer is about to roll over. COUNT is about to roll over.
  • FIG. 5 is a possible implementation manner in which the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped.
  • the PDCP layer of the first terminal device recognizes that the PDCP COUNT of the first bearer is about to be reversed, and the PDCP layer of the first terminal device reports the second indication information to the RRC layer of the first terminal device.
  • the first The RRC layer of a terminal device receives the second indication information reported by the PDCP layer of the first terminal device.
  • the second indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over.
  • the second indication information may include a bearer identifier of the first bearer, or a logical channel identifier of the first bearer.
  • the second indication information may also include the PDCP COUNT value or the high-order bit of the COUNT value of the first bearer.
  • the second indication information may also include information for indicating which transmission direction the PDCP COUNT is about to roll over, for example, the PDCP COUNT maintained by the second terminal device as the receiver is about to roll over, or the second terminal device as the receiver is about to roll over.
  • the PDCP COUNT maintained by the sender is about to rollover.
  • the RRC layer of the first terminal device determines, based on the second indication information, that the PDCP COUNT of the first bearer is about to be rolled over.
  • the PDCP layer of the first terminal device may periodically report the maintained PDCP COUNT of the first bearer to the RRC layer of the first terminal device according to the first period, and the first terminal device The RRC layer identifies whether the PDCP COUNT is about to rollover.
  • the duration of the first cycle may be configured by the RRC layer of the first terminal device to the PDCP layer of the first terminal device, or may be determined by the PDCP layer itself.
  • the PDCP layer or the RRC layer of the first terminal device may determine or recognize that the PDCP COUNT is about to be flipped according to a first rule, and the first rule may be, for example, that the HFN in the PDCP COUNT value reaches the maximum value, or the HFN The highest bit becomes 1, or the PDCP COUNT value reaches the first threshold value, etc.
  • This embodiment of the present application does not limit the first rule.
  • the first rule may be determined by the first terminal device itself, may also be specified by a standard protocol, may be determined through negotiation between the first terminal device and the second terminal device, or may be determined by the network
  • the device configuration is also not limited in this embodiment of the present application.
  • FIG. 6 is another possible implementation manner in which the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped. Specific steps are as follows:
  • the second terminal device determines that the PDCP COUNT of the first bearer is about to be rolled over.
  • the method for the second terminal device to determine that the PDCP COUNT of the first bearer is about to be inverted refer to the method for the first terminal device to determine that the PDCP COUNT of the first bearer is about to be inverted in FIG. 5, and simply replace the first terminal device with the second terminal device That’s it, no further details are given here.
  • the second terminal device determines that the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established by the first terminal device.
  • the sidelink bearer between two terminal devices may be initiated by the first terminal device or initiated by the second terminal device, and even if there are multiple sidelink bearers, some of which are initiated by the first terminal device.
  • the terminal device initiates the establishment, and the other part is initiated by the second terminal device.
  • the second terminal device determines whether the first bearer is a sidelink bearer initiated and established by the first terminal device. If the second terminal device determines that the first bearer is a sidelink bearer initiated and established by the first terminal device, it proceeds to step S630.
  • the second terminal device sends the first message to the first terminal device.
  • the first terminal device receives the first message.
  • the first message includes first indication information, where the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over.
  • the second terminal device sends the first message to the first terminal device to trigger the first terminal device to initiate a bearer modification procedure or a key update procedure for the first bearer, instead of directly initiating a bearer modification procedure or a key update procedure for the first bearer Update process, the advantage of this is that the PDCP COUNT carried by a side link is about to be reversed, and the terminal device that initiates the establishment of the side link bearer solves the problem of possible reduction in security, which can reduce the complexity. Reduce the impact on data transfer.
  • the first indication information may include a bearer identifier of the first bearer, or a logical channel identifier of the first bearer, and the bearer identifier may be a configuration index of a sidelink bearer of the PC5 interface.
  • the first indication information may also include the PDCP COUNT value of the first bearer or the high-order bit of the PDCP COUNT value.
  • the first indication information may also include information used to indicate which transmission direction the PDCP COUNT is about to roll over, for example, the PDCP COUNT maintained by the second terminal device as the receiver is about to roll over, or the second terminal device as the receiver is about to roll over.
  • the PDCP COUNT maintained by the sender is about to rollover.
  • the first message may be an RRC message of the PC5 interface, or may be a PDCP control protocol data unit (Protocol Data Unit, PDU). If the first message is a PDCP control PDU, after receiving the first message, the PDCP layer of the first terminal device reports the first indication information to the RRC layer of the first terminal device.
  • PDU Protocol Data Unit
  • the first terminal device determines, based on the first indication information, that the PDCP COUNT of the first bearer is about to roll over.
  • the RRC layer of the first terminal device determines, based on the first indication information, that the PDCP COUNT of the first bearer is about to be rolled over. Specifically, based on the bearer identification of the first bearer or the logical channel identification of the first bearer included in the first indication information, it is learned that the PDCP COUNT of the first bearer is about to be reversed.
  • the first terminal device determines that the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established by the first terminal device.
  • step S410 the first terminal device determines that the PDCP COUNT of the first bearer is about to be reversed based on the first indication information received from the second terminal device, it can be By default, it is considered that the first bearer was established by the first terminal device, so this step can be skipped and step S430 is entered. Step S420 is performed.
  • the sidelink bearer between two terminal devices may be initiated by the first terminal device or initiated by the second terminal device, and even if there are multiple sidelink bearers, some of which are initiated by the first terminal device.
  • the terminal device initiates the establishment, and the other part is initiated by the second terminal device.
  • Whether the first bearer is a sidelink bearer initiated and established by the first terminal device may be determined by the RRC layer of the first terminal device. If it is determined that the first bearer is not a sidelink bearer initiated and established by the first terminal device, that is, the first bearer is a sidelink bearer initiated and established by the second terminal device, the first The terminal device sends a message to notify the opposite party that the PDCP COUNT of the first bearer is about to be flipped.
  • the difference is that the roles of the first terminal device and the second terminal device need to be interchanged.
  • the PDCP COUNT carried by a sidelink is about to be reversed.
  • the terminal device that initiates the establishment of the sidelink bearer can solve the problem of possible security reduction, which can reduce the complexity and reduce the impact on data transmission.
  • step S430 is entered.
  • step S410 and step S420 can be interchanged, which is not limited here.
  • the first terminal device initiates a bearer modification process or a key update process for the first bearer.
  • the first terminal device may also initiate bearer modification and key update procedures at the same time to solve the problem of reduced security.
  • FIG. 7 exemplarily describes a possible bearer modification process.
  • a bearer modification process may be initiated by the RRC layer of the first terminal device to modify the logical channel identifier of the first bearer to another available logical channel identifier.
  • the available logical channel identifiers refer to logical channel identifiers that have not been used together with the current key, which is the key being used for communication between the first terminal device and the second terminal device. Since the logical channel identifier is one of the security input parameters, the change of the logical channel identifier of the first bearer can avoid the problem of reduced security.
  • the specific steps can be as follows:
  • the first terminal device determines that there is an available logical channel identifier.
  • a maximum of 32 logical channel identities can be supported between two terminal devices.
  • an available logical channel identifier will be allocated.
  • the logical channel identifier that is not allocated and used in conjunction with the current key can be regarded as the available logical channel identifier.
  • the available logical channel identifiers are 4-32. If the logical channel identifier allocated to this sidelink bearer is 4, the logical channel identifier 4 becomes unavailable.
  • the available logical channel identifiers at this time are 5-32. It can be understood that the maximum number of 32 logical channel identifiers is an example of a scenario, and the maximum number of logical channel identifiers that can be supported between two terminal devices may also be other numbers.
  • the first terminal device determines that there is no available logical channel identifier, it can initiate a key update process to solve the problem of reduced security, and for details, refer to the related description of FIG. 8 below.
  • the first terminal device may select one of the available logical channel identifiers as the target logical channel identifier of the first bearer, which is referred to as the first logical channel identifier herein.
  • the first terminal device may randomly select one of the available logical channel identifiers or select one as the first logical channel identifier according to preset conditions or rules, for example, select the smallest available logical channel identifier.
  • S710 may be implemented by the RRC layer of the first terminal device.
  • the RRC layer is responsible for radio resource configuration, and is implemented by the RRC layer, with low implementation complexity.
  • the first terminal device sends a second message to the second terminal device, where the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and is used to modify the logical channel identifier of the first bearer to the first logical channel identifier .
  • the second terminal device receives the second message.
  • the bearer identifier of the first bearer may be a configuration index of a sidelink bearer of the PC5 interface, which is used to indicate that the modification is for the first bearer.
  • the first logical channel identifier is used to indicate the target logical channel identifier of the first bearer.
  • the second message may only be used to instruct to modify the logical channel identifier of the first bearer without modifying other parameters of the first bearer, that is, other configurations of the first bearer except the logical channel identifier continue to be used.
  • the second message may be an RRC reconfiguration message of the PC5 interface.
  • a bearer modification method is adopted, that is, by modifying the logical channel identifier of the first bearer without deleting the first bearer and adding another bearer, it is possible to avoid the cause of discarding the cached data packets due to the deletion of the first bearer.
  • the COUNT value carried by the sidelink is maintained by the two terminal devices that communicate with each other, the base station cannot perceive the COUNT value carried by the sidelink, so the base station does not know what When the process of deleting and creating a new bearer is initiated at the same time, the problem in the sidelink scenario cannot be solved, but this problem can be solved by the embodiments of the present application.
  • the second terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier based on the second message.
  • the second terminal device After receiving the second message, the second terminal device finds that the bearer identifier of the first bearer included in the second message is the currently configured bearer identifier, and then learns that the second message initiates the bearer corresponding to the bearer identifier (that is The bearer modification process of the first bearer), so that the logical channel identification of the first bearer can be modified to the first logical channel identification according to the first logical channel identification contained in the second message.
  • the PDCP entity of the first bearer may not be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device may continue to be used without being reset to 0.
  • the same PDCP COUNT value is used again after the PDCP COUNT is flipped, because the logical channel identifier of the first bearer has been modified, there will not be a problem that different data packets use the same security input parameters, so there is no problem The problem of reduced security.
  • the advantage of continuing to use the maintained PDCP COUNT of the first bearer is that data transmission is less affected, and problems such as data packet loss will not occur.
  • the bearer modification process or the key update process can be performed again to avoid the occurrence of The problem of different packets using the same security input parameters.
  • the PDCP entity of the first bearer may also be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device is reset to 0, that is, the first The terminal device and the second terminal device allocate PDCP COUNTs starting from 0 for subsequent data packets.
  • the above-mentioned X value does not need to be saved, thus reducing the implementation complexity.
  • the second terminal device sends a response message of the second message to the first terminal device, which is used to confirm that the modification of the logical channel identifier of the first bearer has been successfully completed.
  • the first terminal device receives the response message of the second message.
  • the response message of the second message may be an RRC reconfiguration complete message of the PC5 interface.
  • the first terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier.
  • step S750 may occur after step S740, that is, after receiving the response message of the second message, or after step S720, that is, after sending the second message.
  • the key update process can be initiated by the first terminal device to change the key to a new key. Since the key is one of the security input parameters, even if the same PDCP COUNT value is used again, the change of the key will prevent the problem of different data packets using the same security input parameter, thus avoiding the security input that will occur. Sexual decline problem.
  • Figure 8 exemplarily describes a possible key update process.
  • the RRC layer of the first terminal device reports the third indication information to the PC5-S layer of the first terminal device to request key update.
  • the first terminal device's PC5 - The S layer reports third indication information, and the third indication information is used to trigger or request the PC5-S layer to initiate a key update process.
  • the third indication information includes a cause value, for example, the cause value indicates that the PDCP COUNT rollover occurs, or indicates that there is no available logical channel identifier, or indicates that the key needs to be updated.
  • the PC5-S layer of the first terminal device initiates a key update process.
  • the PC5-S layer of the first terminal device determines and initiates a key update process with the second terminal device based on the third indication information. For example, the first terminal device sends a third message to the second terminal device for requesting key update, where the third message is a PC5-S layer message. The second terminal device receives the third message, and updates the key based on the third message.
  • the key update process of the PC5-S layer can refer to the prior art, for example, the first terminal device sends a direct link rekeying request (direct link rekeying request) message of the PC5-S layer to the second terminal device. , the message carries the parameters used for key update, which will not be repeated here.
  • manner 1 or manner 2 may specify which manner to be adopted by the protocol, or may be determined by the first terminal device to adopt manner 1 or manner 2.
  • the RRC layer of the first terminal device determines whether to adopt the first mode or the second mode.
  • step S430 needs to be performed, or the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped and the first bearer is established between the first terminal device and the second terminal device
  • the RRC layer of the first terminal device determines whether there is an available logical channel identifier. If there is an available logical channel identifier, the bearer modification process shown in FIG. If there is no available logical channel identifier, the key update process shown in FIG. 8 (ie, mode 2) can be used.
  • step S430 when step S430 needs to be performed, or the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped and the first bearer is initiated by the first terminal device and established with the second terminal device After the sidelink between them is carried, the first terminal device directly uses the key update process shown in FIG. 8 (ie, the second mode), thereby reducing the implementation complexity.
  • the first terminal device initiates the bearer
  • the modification process modifies the logical channel identifier of the first bearer to another available logical channel identifier, or the RRC layer of the first terminal device reports the third indication information for requesting key update to the PC5-S layer of the first terminal device
  • the problem of different data packets using the same security input parameters is solved, and the security reduction problem that will occur is avoided.
  • FIG. 9 is a schematic block diagram of a communication apparatus 900 provided by an embodiment of the present application.
  • the communication apparatus 900 may correspondingly implement the functions or steps implemented by the first terminal device or the second terminal device in each of the foregoing method embodiments.
  • the communication apparatus may include one or more of a sending unit 910 , a receiving unit 920 and a processing unit 930 .
  • a storage unit may also be included, and the storage unit may be used to store instructions (codes or programs) and/or data.
  • the sending unit 910, the receiving unit 920 and the processing unit 930 may be coupled with the storage unit, for example, the processing unit 930 may read instructions (codes or programs) and/or data in the storage unit to implement corresponding methods.
  • the above-mentioned units may be set independently, or may be partially or fully integrated.
  • the communication apparatus 900 can correspondingly implement the behaviors and functions of the first terminal device in the foregoing method embodiments.
  • the communication apparatus 900 may be a first terminal device, or may be a component (eg, a chip or a circuit) applied in the first terminal device.
  • the sending unit 910 and the receiving unit 920 may be respectively configured to perform all sending or receiving operations performed by the first terminal device in the foregoing method embodiments, for example, S630 in the embodiment shown in FIG. 6 or the embodiment shown in FIG. 7 . S720 and S740 in, and/or other processes for supporting the techniques described herein.
  • the processing unit 930 is configured to perform all operations performed by the first terminal device in the foregoing method embodiments except for the transceiving operations, and/or to support other processes of the technology described herein.
  • the processing unit 930 is configured to determine that the PDCP COUNT of the first bearer is about to be reversed, where the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established.
  • the processing unit 930 is configured to identify at the PDCP layer that the PDCP COUNT of the first bearer is about to be overturned, and report second indication information to the RRC layer, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be overturned.
  • the layer determines that the PDCP COUNT of the first bearer is about to be rolled over based on the second indication information.
  • the processing unit 930 may initiate a bearer modification process with the second terminal device for the first bearer, or initiate a key update process with the second terminal device.
  • the processing unit 930 is further configured to determine whether there is an available logical channel identifier, where the available logical channel identifier is a logical channel identifier that has not been used with the current key.
  • the processing unit 930 determines that there is an available logical channel identifier, the processing unit 930 initiates a bearer modification process with the second terminal device for the first bearer; when the processing unit 930 determines that there is no available logical channel identifier, the processing unit 930 initiates a key update process with the second terminal device.
  • the sending unit 910 is configured to send a second message to the second terminal device, wherein the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer to the first bearer identifier.
  • the receiving unit 920 is configured to receive a first message from the second terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over , or, for receiving the second indication information reported by the PDCP layer of the first terminal device, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be reversed.
  • processing unit 930 in this embodiment of the present application may be implemented by at least one processor or a processor-related circuit component, and the sending unit 910 and the receiving unit 920 may be implemented by a transceiver or a transceiver-related circuit component or a communication interface.
  • the communication apparatus 900 can correspondingly implement the behaviors and functions of the second terminal device in the foregoing method embodiments.
  • the communication apparatus 900 may be the second terminal device, or may be a component (such as a chip or a circuit) applied in the second terminal device.
  • the sending unit 910 and the receiving unit 920 may be configured to perform all receiving or sending operations performed by the second terminal device in the above method embodiments, for example, S630 in the embodiment shown in FIG. 6 or the implementation shown in FIG. 7 . Examples S720 and S740, and/or other processes for supporting the techniques described herein.
  • the processing unit 930 is configured to perform all the operations performed by the second terminal device in the foregoing method embodiments except for the transceiving operations, and/or to support other processes of the technology described herein.
  • the processing unit 930 is configured to determine that the PDCP COUNT of the first bearer is about to be reversed, where the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established.
  • the sending unit 910 is configured to send a first message to the first terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over.
  • the receiving unit 920 is configured to receive second indication information reported by the PDCP layer of the second terminal device, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be reversed, or is used to receive a second message from the first terminal device, where the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer to the first logical channel identifier, or It is used to receive a third message from the first terminal device, and the third message is used to request key update.
  • processing unit 930 in this embodiment of the present application may be implemented by a processor or a processor-related circuit component, and the sending unit 910 and the receiving unit 920 may be implemented by a transceiver or a transceiver-related circuit component.
  • the storage unit in the above embodiment may be implemented by a memory.
  • FIG. 10 shows a communication apparatus 1000 provided by an embodiment of the present application.
  • the communication apparatus 1000 may be a terminal device, which can implement the function of the first terminal device or the second terminal device in the method provided by the embodiment of the present application; the communication apparatus 1000 is also It may be a device capable of supporting the first terminal device or the second terminal device to implement the corresponding functions in the methods provided in the embodiments of the present application.
  • the communication apparatus 1000 may be a chip system.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the communication apparatus 1000 includes at least one processor 1020, which is configured to implement or support the communication apparatus 1000 to implement the function of the first terminal device or the second terminal device in the methods provided in the embodiments of this application. For details, refer to the detailed description in the method example, which is not repeated here.
  • Communication apparatus 1000 may also include at least one memory 1030 for storing program instructions and/or data.
  • Memory 1030 is coupled to processor 1020 .
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • the processor 1020 may cooperate with the memory 1030 .
  • the processor 1020 may execute program instructions and/or data stored in the memory 1030 to cause the communication apparatus 1000 to implement the corresponding method.
  • at least one of the at least one memory may be included in the processor.
  • the communication apparatus 1000 may further include a communication interface 1010 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 1000 may communicate with other devices.
  • a communication interface 1010 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 1000 may communicate with other devices.
  • the communication device is the first terminal device
  • the other device is the second terminal device; or, when the communication device is the second terminal device, the other device is the first terminal device.
  • the processor 1020 may utilize the communication interface 1010 to send and receive data.
  • the communication interface 1010 may specifically be a transceiver.
  • the above-mentioned transmitting unit 910 and receiving unit 920 constitute the communication interface 1010 .
  • connection medium between the communication interface 1010 , the processor 1020 , and the memory 1030 is not limited in this embodiment of the present application.
  • the memory 1030, the processor 1020, and the communication interface 1010 are connected through a bus 1040 in FIG. 10, and the bus is represented by a thick line in FIG.
  • a schematic illustration is provided, but not limited.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the processor 1020 may be a general-purpose 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, or a discrete hardware component, which can realize Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 1030 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), Such as random-access memory (random-access memory, RAM).
  • Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
  • the communication device in the above embodiment may be a terminal device or a circuit, and may also be a chip applied in the terminal device or other combined devices or components having the functions of the above-mentioned terminal device.
  • the transceiver unit may be a transceiver, which may include an antenna and a radio frequency circuit, etc.
  • the processing module may be a processor, such as a central processing unit (central processing unit, CPU).
  • the transceiver unit may be a radio frequency unit
  • the processing module may be a processor.
  • the transceiver unit may be an input and output interface of the chip system, and the processing module may be a processor of the chip system.
  • FIG. 11 shows a schematic structural diagram of a simplified terminal device.
  • the terminal device takes a mobile phone as an example.
  • the terminal device includes a processor, a memory, a radio frequency circuit, an antenna, and an input and output device.
  • the processor is mainly used to process the communication protocol and communication data, control each unit, execute the software program, process the data of the software program, and so on.
  • the memory is mainly used to store software programs and data.
  • the radio frequency circuit is mainly used for the conversion of the baseband signal and the radio frequency signal and the processing of the radio frequency signal.
  • Antennas are mainly used to send and receive radio frequency signals in the form of electromagnetic waves.
  • Input and output devices such as touch screens, display screens, and keyboards, are mainly used to receive data input by users and output data to users. It should be noted that some types of equipment may not have input and output devices.
  • the processor When data needs to be sent, the processor performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit.
  • the radio frequency circuit performs radio frequency processing on the baseband signal and sends the radio frequency signal through the antenna in the form of electromagnetic waves.
  • the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor, which converts the baseband signal into data and processes the data.
  • FIG. 11 only one memory and processor are shown in FIG. 11 . In an actual device product, there may be one or more processors and one or more memories.
  • the memory may also be referred to as a storage medium or a storage device or the like.
  • the memory may be set independently of the processor, or may be integrated with the processor, which is not limited in this embodiment of the present application.
  • the antenna and the radio frequency circuit with a transceiver function may be regarded as the transceiver unit of the apparatus, and the processor with the processing function may be regarded as the processing unit of the apparatus.
  • the apparatus includes a transceiver unit 1110 and a processing unit 1120 .
  • the transceiver unit 1110 may also be referred to as a transceiver, a transceiver, a transceiver, or the like.
  • the processing unit 1120 may also be referred to as a processor, a processing board, a processing module, a processing device, and the like.
  • the device for implementing the receiving function in the transceiver unit 1110 may be regarded as a receiving unit, and the device for implementing the transmitting function in the transceiver unit 1110 may be regarded as a transmitting unit, that is, the transceiver unit 1110 includes a receiving unit and a transmitting unit.
  • the transceiver unit 1110 may also be sometimes referred to as a transceiver, a transceiver, or a transceiver circuit or the like.
  • the receiving unit may also sometimes be referred to as a receiver, receiver, or receiving circuit, or the like.
  • the transmitting unit may also sometimes be referred to as a transmitter, a transmitter, or a transmitting circuit, or the like.
  • transceiving unit 1110 is configured to perform the sending and receiving operations of the terminal device in the above method embodiments
  • processing unit 1120 is configured to perform other operations on the terminal device in the above method embodiments except the transceiving operations.
  • the transceiver unit 1110 may be used to perform S630 in the embodiment shown in FIG. 6, and/or to support other processes of the techniques described herein.
  • the transceiver unit 1110 may be configured to perform S720 and S740 in the embodiment shown in FIG. 7 , and/or other processes for supporting the techniques described herein.
  • the device may include a transceiver unit and a processing unit.
  • the transceiver unit may be an input/output circuit and/or a communication interface;
  • the processing unit may be an integrated processor, a microprocessor or an integrated circuit.
  • An embodiment of the present application further provides a communication system.
  • the communication system may include a first terminal device and a second terminal device, or may further include more terminal devices.
  • the communication system includes a first terminal device and a second terminal device for implementing the relevant functions of the above-mentioned FIG. 4 , FIG. 5 and FIG.
  • the first terminal device and the second terminal device with the relevant functions, or the communication system includes the first terminal device and the second terminal device for implementing the relevant functions of the above-mentioned FIG. 4 , FIG. 6 and FIG. 7
  • the communication system includes A first terminal device and a second terminal device for implementing the functions related to the embodiments of FIG. 4 , FIG. 6 , and FIG. 8 .
  • Embodiments of the present application also provide a computer-readable storage medium, including a computer program or instruction, which, when executed, for example, by a computer or a processor, enables the first terminal in any one of FIG. 4 to FIG. 8 The method performed by the device or the second terminal device is performed.
  • Embodiments of the present application also provide a computer program product, including instructions that, when executed, for example, by a computer or a processor, make the first terminal device or the second terminal in any one of FIGS. 4 to 8 . The method performed by the device is executed.
  • An embodiment of the present application provides a chip system, where the chip system includes a processor, and may also include a memory, for implementing the functions of the first terminal device or the second terminal device in the foregoing method.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • At least one (a) of a, b or c may represent: a, b, c, a-b, a-c, b-c or a-b-c, wherein a, b, c may be single or multiple.
  • first and second mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, sequence, priority or priority of multiple objects. Importance.
  • first message and the second message are only for distinguishing different messages, but do not indicate the difference in priority, sending order, or importance of the two kinds of messages.
  • processors mentioned in the embodiments of the present application may be a CPU, and may also be other general-purpose processors, digital signal processors (digital signal processors, DSPs), application specific integrated circuits (application specific integrated circuits, ASICs), off-the-shelf processors Field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory mentioned in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • SDRAM double data rate synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM enhanced synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SCRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components
  • the memory storage module
  • memory described herein is intended to include, but not be limited to, these and any other suitable types of memory.
  • the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can 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.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the embodiments of the present application are produced in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • 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 downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, 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, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.

Abstract

Disclosed in the present application are a sidelink communication method, apparatus and system, applied to the field of mobile communication. The method comprises: a first terminal device determines that PDCP COUNT of a first bearer is about to be rolled over, and that the first bearer is a sidelink bearer initiated and established by the first terminal device with a second terminal device; and the first terminal device initiates a bearer modification process or a key update process for the first bearer with the second terminal device. The method can solve the problem that different data packets use the same security input parameter, can avoid security risks caused by security reduction, and compared with a method of deleting the first bearer and adding a bearer, can avoid the problem of causing large transmission interruption and loss of data packets.

Description

侧行链路通信方法、装置和系统Sidelink communication method, apparatus and system 技术领域technical field
本申请涉及移动通信技术领域,尤其涉及一种侧行链路通信方法、装置和系统。The present application relates to the field of mobile communication technologies, and in particular, to a sidelink communication method, apparatus and system.
背景技术Background technique
终端设备与终端设备之间可以通过网络进行通信,也可以直接通信。侧行链路(sidelink,SL)通信是第三代合作伙伴计划(the 3rd Generation Partnership Project,3GPP)制定的一种终端设备和终端设备之间的直接通信的技术。终端设备与终端设备之间可以通过侧行链路直接进行数据传输,而不需要经过网络,这样可以有效地减少通信时延。在SL通信中,两个终端设备之间通过PC5接口传输数据,SL通信的典型应用是车与任何事物通信(Vehicle to Everything,V2X)场景,在V2X场景中,一个车辆即为一个终端设备,除了V2X场景外,SL通信还可以用于其他场景,比如可穿戴设备之间的直接通信等。为了确保通信两端的通信安全,两个终端设备之间通信的数据需要进行安全保护。The terminal device can communicate with the terminal device through the network, and can also communicate directly. Sidelink (SL) communication is a direct communication technology between terminal equipment and terminal equipment formulated by the 3rd Generation Partnership Project (3GPP). Data transmission can be directly performed between the terminal equipment and the terminal equipment through the side link without going through the network, which can effectively reduce the communication delay. In SL communication, data is transmitted between two terminal devices through the PC5 interface. The typical application of SL communication is the Vehicle to Everything (V2X) scenario. In the V2X scenario, a vehicle is a terminal device. In addition to V2X scenarios, SL communication can also be used in other scenarios, such as direct communication between wearable devices. In order to ensure the communication security at both ends of the communication, the data communicated between the two terminal devices needs to be secured.
然而,本申请的发明人发现,当前可能会出现两个终端设备之间通信的安全性降低的问题。However, the inventors of the present application have found that the problem of reduced security of communication between two terminal devices may currently occur.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种侧行链路通信方法、装置和系统,根据本申请提供的技术方案,第一终端设备确定第一承载的PDCP COUNT即将发生翻转,第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载,第一终端设备发起与第二终端设备之间的针对第一承载的承载修改过程或密钥更新过程,从而可以解决不同的数据包使用相同的安全输入参数的问题,避免由安全性降低带来的安全风险,相比删除第一承载再增加一个承载的方法,可以避免引起较大的传输中断以及数据包的丢失的问题。Embodiments of the present application provide a sidelink communication method, apparatus, and system. According to the technical solution provided by the present application, the first terminal device determines that the PDCP COUNT of the first bearer is about to be reversed, and the first bearer is initiated by the first terminal device. The established sidelink bearer with the second terminal device, the first terminal device initiates a bearer modification process or a key update process for the first bearer between the first terminal device and the second terminal device, so that different data packets can be resolved The problem of using the same security input parameters can avoid the security risk caused by the reduction of security. Compared with the method of deleting the first bearer and adding another bearer, the problem of causing a larger transmission interruption and loss of data packets can be avoided.
第一方面,提供了一种通信方法。可以理解的是,该第一方面的方法可由第一装置执行,第一装置可以是通信设备或能够支持通信设备实现该方法所需的功能的通信装置,例如芯片系统。示例性地,通信设备可以为第一终端设备。下面以该方法由第一终端设备实现为例进行说明。In a first aspect, a communication method is provided. It can be understood that the method of the first aspect may be performed by a first apparatus, and the first apparatus may be a communication device or a communication device capable of supporting the functions required by the communication device to implement the method, such as a chip system. Exemplarily, the communication device may be the first terminal device. The following description will be given by taking the implementation of the method by the first terminal device as an example.
该方法包括:第一终端设备确定第一承载的PDCP COUNT即将发生翻转,第一承载是第一终端设备发起建立的与第二终端设备之间的侧向链路承载,第一终端设备发起与第二终端设备之间的针对第一承载的承载修改过程或者密钥更新过程。通过该第一方面提供的方法,解决了不同的数据包使用相同的安全输入参数的问题,可以避免由安全性降低带来的安全风险,相比删除第一承载再增加一个承载的方法,可以避免引起较大的传输中断以及数据包的丢失的问题。The method includes: the first terminal device determines that the PDCP COUNT of the first bearer is about to be reversed, the first bearer is a side link bearer between the first terminal device and the second terminal device initiated and established, and the first terminal device initiates and establishes a side link bearer with the second terminal device. A bearer modification process or a key update process for the first bearer between the second terminal devices. The method provided by the first aspect solves the problem that different data packets use the same security input parameters, and can avoid security risks caused by security reduction. Compared with the method of deleting the first bearer and adding another bearer, it can Avoid problems that cause large transmission interruptions and packet loss.
需要说明的是,第一承载的PDCP COUNT即将发生翻转,可以是第一终端设备作为发送方维护的第一承载的PDCP COUNT即将发生翻转,也可以是第一终端设备作为接收方维护的第一承载的PDCP COUNT即将发生翻转,还可以是两者均即将发生翻转。It should be noted that the PDCP COUNT of the first bearer is about to be reversed, which may be that the PDCP COUNT of the first bearer maintained by the first terminal device as the sender is about to be reversed, or it may be the first terminal device maintained as the receiver. The carried PDCP COUNT is about to be rolled over, or both of them are about to roll over.
在第一方面的一种可能的实现方式中,第一终端设备接收来自第二终端设备的第一消 息,其中,该第一消息包括第一指示信息,第一指示信息指示第一承载的PDCP COUNT即将发生翻转,第一终端设备基于第一指示信息确定第一承载的PDCP COUNT即将发生翻转。In a possible implementation manner of the first aspect, the first terminal device receives a first message from the second terminal device, where the first message includes first indication information, and the first indication information indicates the PDCP of the first bearer The COUNT is about to be rolled over, and the first terminal device determines, based on the first indication information, that the PDCP COUNT of the first bearer is about to roll over.
在第一方面的一种可能的实现方式中,第一终端设备的PDCP层识别出第一承载的PDCP COUNT即将发生翻转,第一终端设备的PDCP层向第一终端设备的RRC层上报第二指示信息,第二指示信息指示第一承载的PDCP COUNT即将发生翻转,第一终端设备的RRC层基于第二指示信息确定第一承载的PDCP COUNT即将发生翻转。In a possible implementation manner of the first aspect, the PDCP layer of the first terminal device recognizes that the PDCP COUNT of the first bearer is about to be reversed, and the PDCP layer of the first terminal device reports to the RRC layer of the first terminal device the second indication information, the second indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over, and the RRC layer of the first terminal device determines that the PDCP COUNT of the first bearer is about to roll over based on the second indication information.
在第一方面的一种可能的实现方式中,第一终端设备的PDCP层按照第一周期周期性地向第一终端设备的RRC层上报维护的第一承载的PDCP COUNT,由第一终端设备的RRC层识别PDCP COUNT是否即将发生翻转。第一周期的时长可以是第一终端设备的RRC层配置给第一终端设备的PDCP层,也可以是PDCP层自己决定的。In a possible implementation manner of the first aspect, the PDCP layer of the first terminal device periodically reports the maintained PDCP COUNT of the first bearer to the RRC layer of the first terminal device according to a first period, and the first terminal device The RRC layer identifies whether the PDCP COUNT is about to rollover. The duration of the first cycle may be configured by the RRC layer of the first terminal device to the PDCP layer of the first terminal device, or may be determined by the PDCP layer itself.
需要说明的是,第一终端设备的PDCP层或者RRC层可以根据第一规则确定或者识别PDCP COUNT即将发生翻转,该第一规则例如可以是PDCP COUNT值中的HFN达到最大取值,或者是HFN的最高比特位变为1,或者是PDCP COUNT值达到第一门限值等等。本申请实施例对于第一规则不做限定。可以理解的是,该第一规则可以是由第一终端设备自己确定的,也可以是标准协议规定的,也可以是第一终端设备和第二终端设备之间协商确定的,也可以是网络设备配置的,本申请实施例对此也不做限定。It should be noted that the PDCP layer or the RRC layer of the first terminal device may determine or recognize that the PDCP COUNT is about to be flipped according to a first rule, and the first rule may be, for example, that the HFN in the PDCP COUNT value reaches the maximum value, or the HFN The highest bit becomes 1, or the PDCP COUNT value reaches the first threshold value, etc. This embodiment of the present application does not limit the first rule. It can be understood that the first rule may be determined by the first terminal device itself, may also be specified by a standard protocol, may be determined through negotiation between the first terminal device and the second terminal device, or may be determined by the network The device configuration is also not limited in this embodiment of the present application.
在第一方面的一种可能的实现方式中,第一终端设备发起与第二终端设备之间的针对第一承载的承载修改过程,包括:第一终端设备判断是否存在可用的逻辑信道标识,可用的逻辑信道标识是没有与当前的密钥一起使用过的逻辑信道标识,当确定存在可用的逻辑信道标识时,第一终端设备向第二终端设备发送第二消息,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识。通过该实现方式中的方法,不用删除第一承载,承载修改过程不会丢弃缓存的数据包,相比删除第一承载再增加一个承载的方法,可以避免引起较大的传输中断以及数据包的丢失的问题。In a possible implementation manner of the first aspect, the first terminal device initiates a bearer modification process with the second terminal device for the first bearer, including: the first terminal device judging whether there is an available logical channel identifier, The available logical channel identifier is the logical channel identifier that has not been used together with the current key. When it is determined that there is an available logical channel identifier, the first terminal device sends a second message to the second terminal device, and the second message includes the first The bearer identifier of the bearer and the first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer to the first logical channel identifier. With the method in this implementation, it is not necessary to delete the first bearer, and the buffered data packets will not be discarded during the bearer modification process. Compared with the method of deleting the first bearer and adding another bearer, it is possible to avoid causing large transmission interruptions and data packets. Missing question.
可选的,第二消息可以仅用来修改第一承载的逻辑信道标识,而不修改第一承载的其他参数,第一承载原有的除了逻辑信道标识外的其他配置继续维持使用。Optionally, the second message may only be used to modify the logical channel identifier of the first bearer without modifying other parameters of the first bearer, and the original configuration of the first bearer except the logical channel identifier continues to be used.
可选的,在针对第一承载的承载修改过程中,第一承载的PDCP实体可以不重建立,第一终端设备和第二终端设备维护的第一承载的PDCP COUNT可以继续使用而不被重置为0,从而数据传输受影响小,不会出现数据包的丢失等问题。Optionally, in the bearer modification process for the first bearer, the PDCP entity of the first bearer may not be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device may continue to be used without being re-established. Set to 0, so that the data transmission is less affected, and there will be no problems such as packet loss.
可选的,在针对第一承载的承载修改过程中,也可以将第一承载的PDCP实体重建立,第一终端设备和第二终端设备维护的第一承载的PDCP COUNT重置为0,从而降低了实现复杂度。Optionally, in the bearer modification process for the first bearer, the PDCP entity of the first bearer may also be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device is reset to 0, thereby The implementation complexity is reduced.
在第一方面的一种可能的实现方式中,第一终端设备发起与第二终端设备之间的密钥更新过程,包括:第一终端设备的RRC层向第一终端设备的PC5-S层上报第三指示信息,第三指示信息用于请求密钥更新。第一终端设备的PC5-S层基于第三指示信息发起与第二终端设备之间的密钥更新过程。In a possible implementation manner of the first aspect, the first terminal device initiates a key update process with the second terminal device, including: the RRC layer of the first terminal device to the PC5-S layer of the first terminal device Reporting third indication information, where the third indication information is used to request key update. The PC5-S layer of the first terminal device initiates a key update process with the second terminal device based on the third indication information.
可选的,第一终端设备判断是否存在可用的逻辑信道标识,可用的逻辑信道标识是没有与当前的密钥一起使用过的逻辑信道标识,当确定不存在可用的逻辑信道标识时,第一终端设备的RRC层向第一终端设备的PC5-S层上报第三指示信息。Optionally, the first terminal device determines whether there is an available logical channel identifier, the available logical channel identifier is a logical channel identifier that has not been used with the current key, and when it is determined that there is no available logical channel identifier, the first The RRC layer of the terminal device reports the third indication information to the PC5-S layer of the first terminal device.
可选的,第三指示信息包括原因值,原因值可以用于指示PDCP COUNT发生翻转,或不存在可用的逻辑信道标识。Optionally, the third indication information includes a cause value, and the cause value may be used to indicate that the PDCP COUNT is overturned or that there is no available logical channel identifier.
第二方面,提供了一种通信方法。可以理解的是,该第二方面的方法可由第二装置执行,第二装置可以是通信设备或能够支持通信设备实现该方法所需的功能的通信装置,例如芯片系统。示例性地,通信设备可以为第二终端设备。下面以该方法由第二终端设备实现为例进行说明。In a second aspect, a communication method is provided. It can be understood that the method of the second aspect may be performed by a second apparatus, and the second apparatus may be a communication device or a communication device capable of supporting the functions required by the communication device to implement the method, such as a chip system. Exemplarily, the communication device may be the second terminal device. The following description will be given by taking the implementation of the method by the second terminal device as an example.
该方法包括:第二终端设备接收来自第一终端设备的第二消息,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识,第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载,第二终端设备基于第二消息将第一承载的逻辑信道标识修改为第一逻辑信道标识。通过该第二方面提供的方法,一个侧行链路承载的PDCP COUNT即将发生翻转,由发起建立该侧行链路承载的终端设备来解决可能引起的安全性降低的问题,可以减低复杂度,减少对数据传输的影响。The method includes: the second terminal device receives a second message from the first terminal device, the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer is the first logical channel identifier, the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established, and the second terminal device modifies the logical channel identifier of the first bearer based on the second message to The first logical channel identifier. Through the method provided in the second aspect, the PDCP COUNT carried by a sidelink is about to be reversed, and the terminal device that initiates the establishment of the sidelink bearer solves the problem of possible reduction in security, which can reduce the complexity, Reduce the impact on data transfer.
可选的,在第二终端设备接收来自第一终端设备的第二消息之前,第二终端设备确定第一承载的PDCP COUNT即将发生翻转,第一承载是第一终端设备发起建立的与第二终端设备之间的侧向链路承载,第二终端设备向第一终端设备发送第一消息,其中,第一消息包括第一指示信息,第一指示信息指示第一承载的PDCP COUNT即将发生翻转。从而,可以让第一终端设备能获知第一承载的PDCP COUNT即将发生翻转从而发起针对第一承载的承载修改过程或密钥更新过程,可以避免由安全性降低带来的安全风险。Optionally, before the second terminal device receives the second message from the first terminal device, the second terminal device determines that the PDCP COUNT of the first bearer is about to be reversed, and the first bearer is initiated by the first terminal device and established with the second terminal device. A side link between terminal devices is carried, and the second terminal device sends a first message to the first terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be reversed . Therefore, the first terminal device can be informed that the PDCP COUNT of the first bearer is about to be reversed and initiate a bearer modification process or a key update process for the first bearer, thereby avoiding security risks caused by security reduction.
在第二方面的一种可能的实现方式中,第二终端设备的PDCP层识别出第一承载的PDCP COUNT即将发生翻转,第二终端设备的PDCP层向第二终端设备的RRC层上报第二指示信息,第二指示信息指示第一承载的PDCP COUNT即将发生翻转,第二终端设备的RRC层根据第二指示信息确定第一承载的PDCP COUNT即将发生翻转。In a possible implementation manner of the second aspect, the PDCP layer of the second terminal device recognizes that the PDCP COUNT of the first bearer is about to be flipped, and the PDCP layer of the second terminal device reports the second terminal device to the RRC layer of the second terminal device. indication information, the second indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over, and the RRC layer of the second terminal device determines that the PDCP COUNT of the first bearer is about to roll over according to the second indication information.
在第二方面的一种可能的实现方式中,第二终端设备的PDCP层按照第一周期周期性地向第二终端设备的RRC层上报维护的第一承载的PDCP COUNT,由第二终端设备的RRC层识别PDCP COUNT是否即将发生翻转。第一周期的时长可以是第二终端设备的RRC层配置给第二终端设备的PDCP层,也可以是PDCP层自己决定的。In a possible implementation manner of the second aspect, the PDCP layer of the second terminal device periodically reports the maintained PDCP COUNT of the first bearer to the RRC layer of the second terminal device according to the first period, and the second terminal device reports the PDCP COUNT of the first bearer to the RRC layer of the second terminal device periodically. The RRC layer identifies whether the PDCP COUNT is about to rollover. The duration of the first cycle may be configured by the RRC layer of the second terminal device to the PDCP layer of the second terminal device, or may be determined by the PDCP layer itself.
需要说明的是,第二终端设备的PDCP层或者RRC层可以根据第一规则确定或者识别PDCP COUNT即将发生翻转,该第一规则例如可以是PDCP COUNT值中的HFN达到最大取值,或者是HFN的最高比特位变为1,或者是PDCP COUNT值达到第一门限值等等。本申请实施例对于第一规则不做限定。可以理解的是,该第一规则可以是由第二终端设备自己确定的,也可以是标准协议规定的,也可以是第一终端设备和第二终端设备之间协商确定的,也可以是网络设备配置的,本申请实施例对此也不做限定。It should be noted that the PDCP layer or the RRC layer of the second terminal device may determine or identify that the PDCP COUNT is about to be overturned according to the first rule. For example, the first rule may be that the HFN in the PDCP COUNT value reaches the maximum value, or the HFN The highest bit becomes 1, or the PDCP COUNT value reaches the first threshold value, etc. This embodiment of the present application does not limit the first rule. It can be understood that the first rule may be determined by the second terminal device itself, may also be specified by a standard protocol, may be determined through negotiation between the first terminal device and the second terminal device, or may be determined by the network The device configuration is also not limited in this embodiment of the present application.
在第二方面的一种可能的实现方式中,第二终端设备接收来自于第一终端设备的第二消息,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识;第二终端设备基于第二消息将第一承载的逻辑信道标识修改为第一逻辑信道标识。In a possible implementation manner of the second aspect, the second terminal device receives a second message from the first terminal device, the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and the second message uses The second terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier based on the second message.
在第二方面的一种可能的实现方式中,第二终端设备接收来自于第一终端设备的第三消息,第三消息用于请求进行密钥更新;第二终端设备基于第三消息对密钥进行更新。In a possible implementation manner of the second aspect, the second terminal device receives a third message from the first terminal device, where the third message is used to request key update; the second terminal device verifies the encryption based on the third message key to update.
可选的,在第一方面和第二方面中,第一消息可以是PC5 RRC消息或者PDCP控制 PDU,第一指示信息包括第一承载的承载标识或逻辑信道标识。Optionally, in the first aspect and the second aspect, the first message may be a PC5 RRC message or a PDCP control PDU, and the first indication information includes a bearer identifier or a logical channel identifier of the first bearer.
可选的,在第一方面和第二方面中,第一指示信息包括第一承载的PDCP COUNT值或PDCP COUNT值的高比特位。Optionally, in the first aspect and the second aspect, the first indication information includes a PDCP COUNT value of the first bearer or a high-order bit of the PDCP COUNT value.
可选的,在第一方面和第二方面中,第一指示信息包括用于指明是哪个传输方向的PDCP COUNT即将发生翻转的信息。Optionally, in the first aspect and the second aspect, the first indication information includes information for indicating which transmission direction the PDCP COUNT is about to flip.
可选的,在第一方面和第二方面中,第二指示信息包括第一承载的承载标识或逻辑信道标识。Optionally, in the first aspect and the second aspect, the second indication information includes a bearer identifier or a logical channel identifier of the first bearer.
可选的,在第一方面和第二方面中,第二指示信息包括第一承载的PDCP COUNT值或PDCP COUNT值的高比特位。Optionally, in the first aspect and the second aspect, the second indication information includes the PDCP COUNT value of the first bearer or the high-order bit of the PDCP COUNT value.
可选的,在第一方面和第二方面中,第二指示信息包括用于指明是哪个传输方向的PDCP COUNT即将发生翻转的信息。Optionally, in the first aspect and the second aspect, the second indication information includes information used to indicate which transmission direction the PDCP COUNT is about to flip.
第三方面,提供了一种通信装置,该通信装置具有实现上述第一方面的方法中的行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。该通信装置可以是终端设备,也可以是能够支持终端设备实现上述第一方面的方法中的功能的装置,例如,该通信装置可以是芯片系统。In a third aspect, a communication device is provided, the communication device having a function of implementing the behavior in the method of the first aspect above. The functions can be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. The communication device may be a terminal device, or a device capable of supporting the terminal device to implement the functions in the method of the first aspect. For example, the communication device may be a chip system.
在一个可能的设计中,该通信装置包括:处理单元,用于确定第一承载的PDCP COUNT即将发生翻转,其中,第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载;发送单元,用于向第二终端设备发送第二消息,其中,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识,或者,用于向第二终端设备发送第三消息,第三消息用于请求进行密钥更新;可选的,接收单元,用于接收来自第二终端设备的第一消息,其中,第一消息包括第一指示信息,第一指示信息指示第一承载的PDCP COUNT即将发生翻转,或者,用于接收第一终端设备的PDCP层上报的第二指示信息,其中,第二指示信息指示第一承载的PDCP COUNT即将发生翻转。这些模块可以执行上述第一方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。In a possible design, the communication apparatus includes: a processing unit, configured to determine that the PDCP COUNT of the first bearer is about to be reversed, wherein the first bearer is a side between the first terminal device and the second terminal device initiated by the establishment uplink bearer; a sending unit, configured to send a second message to the second terminal device, where the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used to send the logical channel identifier of the first bearer The channel identifier is modified to the first logical channel identifier, or, used to send a third message to the second terminal device, where the third message is used to request key update; optionally, a receiving unit, configured to receive data from the second terminal device The first message of the first message, wherein the first message includes first indication information, the first indication information indicates that the PDCP COUNT of the first bearer is about to be flipped, or, for receiving the second indication information reported by the PDCP layer of the first terminal device, Wherein, the second indication information indicates that the PDCP COUNT of the first bearer is about to be reversed. These modules can perform the corresponding functions in the method examples of the first aspect. For details, please refer to the detailed descriptions in the method examples, which will not be repeated here.
第四方面,提供了一种通信装置,该通信装置具有实现上述第二方面的方法中的行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。该通信装置可以是终端设备,也可以是能够支持终端设备实现上述第二方面的方法中的功能的装置,例如,该通信装置可以是芯片系统。In a fourth aspect, a communication device is provided, the communication device having a function of implementing the behavior in the method of the second aspect above. This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. The communication device may be a terminal device, or a device capable of supporting the terminal device to implement the functions in the method of the second aspect. For example, the communication device may be a chip system.
在一个可能的设计中,该通信装置包括:接收单元,用于接收来自第一终端设备的第二消息,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识,第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载;处理单元,用于基于第二消息将第一承载的逻辑信道标识修改为第一逻辑信道标识。这些模块可以执行上述第二方面方法示例中的相应功能,具体参见方法示例中的详细描述,此处不做赘述。In a possible design, the communication apparatus includes: a receiving unit, configured to receive a second message from the first terminal device, where the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used for Modifying the logical channel identifier of the first bearer to a first logical channel identifier, where the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established; the processing unit is configured to, based on the second message Modify the logical channel identifier of the first bearer to the first logical channel identifier. These modules can perform the corresponding functions in the method examples of the second aspect. For details, please refer to the detailed descriptions in the method examples, which will not be repeated here.
第五方面,提供了一种通信装置,该通信装置可以为实现上述第一方面和第二方面中任何一个方面的方法的通信装置,或者为设置在实现上述第一方面和第二方面中任何一个方面的方法的通信装置中的芯片。该通信装置包括通信接口以及处理器,可选的,还包括存储器。其中,该存储器用于存储计算机程序或指令或者数据,处理器与存储器、通信接口耦合,当处理器读取计算机程序或指令或数据时,使通信装置执行各个方面中由第一终 端设备或第二终端设备所执行的方法。In a fifth aspect, a communication device is provided, and the communication device may be a communication device implementing the method of any one of the above-mentioned first and second aspects, or a communication device configured to implement any of the above-mentioned first and second aspects. A chip in a communication device of the method of one aspect. The communication device includes a communication interface, a processor, and optionally, a memory. Wherein, the memory is used to store computer programs or instructions or data, and the processor is coupled with the memory and the communication interface, and when the processor reads the computer program or instructions or data, the communication device is made to perform the functions of the first terminal device or the first terminal device in various aspects. Two methods performed by a terminal device.
应理解,该通信接口可以是通信装置中的收发器,例如通过该通信装置中的天线、馈线和编解码器等实现,或者,如果通信装置为设置在终端设备中的芯片,则通信接口可以是该芯片的输入/输出接口,例如输入/输出管脚等。该收发器用于该通信装置与其它设备进行通信。It should be understood that the communication interface may be a transceiver in the communication device, for example, implemented by an antenna, a feeder, a codec, etc. in the communication device, or, if the communication device is a chip provided in the terminal device, the communication interface may is the input/output interface of the chip, such as input/output pins, etc. The transceiver is used for the communication device to communicate with other devices.
第六方面,提供了一种芯片系统,该芯片系统包括处理器,用于实现第一方面和第二方面中的任何一个方面的通信方法。在一种可能的设计中,该芯片系统还包括存储器,用于保存程序指令和/或数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a sixth aspect, a chip system is provided, the chip system includes a processor for implementing the communication method of any one of the first aspect and the second aspect. In one possible design, the system-on-a-chip further includes a memory for storing program instructions and/or data. The chip system can be composed of chips, and can also include chips and other discrete devices.
第七方面,提供了一种通信系统,该系统包括实现第一方面的方法的通信装置以及实现第二方面的方法的通信装置。In a seventh aspect, a communication system is provided, the system comprising a communication device implementing the method of the first aspect and a communication device implementing the method of the second aspect.
第八方面,提供了一种计算机程序产品,该计算机程序产品包括指令,当该指令被运行时,使得上述各方面中由第一终端设备执行的方法被执行,或使得上述各方面中由第二终端设备执行的方法被执行。In an eighth aspect, a computer program product is provided, the computer program product includes instructions, when the instructions are executed, the methods performed by the first terminal device in the above aspects are executed, or the methods in the above aspects are executed by the first terminal device. The method performed by the two terminal devices is performed.
第九方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序或指令,当该计算机程序或指令被运行时,实现上述各方面中由第一终端设备执行的方法;或实现上述各方面中由第二终端设备执行的方法。In a ninth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method executed by the first terminal device in the above aspects is implemented ; or implement the method performed by the second terminal device in the above aspects.
附图说明Description of drawings
图1为本申请实施例应用的一种通信系统的架构示意图;FIG. 1 is a schematic structural diagram of a communication system to which an embodiment of the application is applied;
图2为本申请实施例提供的一种侧行链路的协议栈的示意图;2 is a schematic diagram of a protocol stack of a sidelink provided by an embodiment of the present application;
图3为本申请实施例提供的一种侧行链路的安全保护的示意图;FIG. 3 is a schematic diagram of security protection of a sidelink provided by an embodiment of the present application;
图4为本申请实施例提供的通信方法的一种示例的流程图;FIG. 4 is a flowchart of an example of a communication method provided by an embodiment of the present application;
图5为本申请实施例提供的通信方法的另一种示例的流程图;5 is a flowchart of another example of a communication method provided by an embodiment of the present application;
图6为本申请实施例提供的通信方法的另一种示例的流程图;6 is a flowchart of another example of a communication method provided by an embodiment of the present application;
图7为本申请实施例提供的通信方法的另一种示例的流程图;7 is a flowchart of another example of a communication method provided by an embodiment of the present application;
图8为本申请实施例提供的通信方法的另一种示例的流程图;8 is a flowchart of another example of a communication method provided by an embodiment of the present application;
图9为本申请实施例提供的通信装置的一种结构示意图;FIG. 9 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图10为本申请实施例提供的通信装置的另一种结构示意图;FIG. 10 is another schematic structural diagram of a communication device provided by an embodiment of the present application;
图11为本申请实施例提供的通信装置的另一种结构示意图。FIG. 11 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请的说明书和权利要求书及附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。The terms "first", "second" and "third" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to limit a specific order. In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实 施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work, all belong to the scope of protection of the present application.
本申请实施例的技术方案可以应用于各种通信系统,例如:长期演进(Long Term Evolution,LTE)系统、第五代(5th generation,5G)系统或新无线(new radio,NR)系统,车到其它设备(Vehicle to X,V2X),其中V2X可以包括车到网络(Vehicle to Network,V2N)、车到车(Vehicle to Vehicle,V2V)、车到基础设施(Vehicle to Infrastructure,V2I)、车到行人(Vehicle to Pedestrian,V2P)等、车间通信长期演进技术(Long Term Evolution-Vehicle,LTE-V)、车联网(Internet of Vehicle,IoV)、机器类通信(Machine Type Communication,MTC)、物联网(Internet of Things,IoT)、机器间通信长期演进技术(Long Term Evolution-Machine,LTE-M),机器到机器(Machine to Machine,M2M),非地面通信(Non-Terrestrial Network,NTN)系统或者未来演进的其它通信系统等。The technical solutions of the embodiments of the present application can be applied to various communication systems, for example, a long term evolution (Long Term Evolution, LTE) system, a fifth generation (5th generation, 5G) system or a new radio (new radio, NR) system, vehicle To other devices (Vehicle to X, V2X), where V2X can include vehicle to network (Vehicle to Network, V2N), vehicle to vehicle (Vehicle to Vehicle, V2V), vehicle to infrastructure (Vehicle to Infrastructure, V2I), vehicle Vehicle to Pedestrian (V2P), Long Term Evolution-Vehicle (LTE-V), Internet of Vehicle (IoV), Machine Type Communication (MTC), Internet of Things (IoT), Long Term Evolution-Machine (LTE-M), Machine to Machine (M2M), Non-Terrestrial Network (NTN) systems Or other communication systems that evolve in the future.
图1是适用于本申请实施例的通信系统100的一个示意图。该通信系统可以包括至少两个终端设备,如图1所示的通信系统100中的终端设备102、103、104、105。该通信系统还可以包括至少一个网络设备,如图1所示的无线通信系统100中的网络设备101。该至少两个终端设备之间可以建立侧行链路(sidelink,SL),侧行链路是终端设备之间建立的可以直接进行通信的链路,如图1中的链路120、121、122、123、124,建立了侧行链路的终端设备之间可以直接进行通信。其中,一个终端设备可以与一个或多个终端设备建立侧行链路,该终端设备可以接收与该终端设备建立了侧行链路的一个或多个终端设备发送的数据。两个终端设备之间的接口称之为PC5接口。该通信系统中的终端设备中也可以与网络设备建立无线连接进行数据通信,如图1所示的终端设备102、103分别于网络设备建立了无线链路110、111。该通信系统中的终端设备也可以不与网络设备建立无线链路,如图1所示的终端设备104、105,本申请对此不作限定。可以理解的是,上述侧行链路也可以称为侧链路、旁链路、直通链路等,本申请实施例对此不做限定。FIG. 1 is a schematic diagram of a communication system 100 suitable for this embodiment of the present application. The communication system may include at least two terminal devices, such as the terminal devices 102 , 103 , 104 , and 105 in the communication system 100 shown in FIG. 1 . The communication system may further include at least one network device, such as the network device 101 in the wireless communication system 100 shown in FIG. 1 . A sidelink (sidelink, SL) can be established between the at least two terminal devices, and a sidelink is a link established between the terminal devices that can communicate directly, such as links 120, 121, SL in FIG. 122, 123, and 124, the terminal devices that have established sidelinks can communicate directly. Wherein, a terminal device can establish a side link with one or more terminal devices, and the terminal device can receive data sent by one or more terminal devices that have established a side link with the terminal device. The interface between two terminal devices is called PC5 interface. The terminal device in the communication system can also establish a wireless connection with the network device for data communication. As shown in FIG. 1 , the terminal devices 102 and 103 respectively establish wireless links 110 and 111 with the network device. The terminal device in the communication system may also not establish a wireless link with the network device, such as the terminal devices 104 and 105 shown in FIG. 1 , which is not limited in this application. It can be understood that the above-mentioned side link may also be referred to as a side link, a side link, a straight-through link, etc., which is not limited in this embodiment of the present application.
在本申请中,终端设备是一种具有无线收发功能的设备,可以是固定设备、移动设备、手持设备、穿戴设备、车辆、车载设备,或内置于上述设备中的装置(例如,通信模块或芯片系统等)。所述终端设备用于连接人、物、机器等,可广泛用于各种场景。有时也可以称为用户设备(user equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。本申请的实施例中的终端设备可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、物联网(internet of things,IoT)系统中的无线终端,无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端、蜂窝电话、无绳电话、会话启动协议(session initiation protocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、车载通信装置,车载通信处理芯片,可穿戴设备,5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等。应理解,本申请对于终端设备的具体形式不作限定。In this application, a terminal device is a device with wireless transceiver function, which can be a fixed device, a mobile device, a handheld device, a wearable device, a vehicle, a vehicle-mounted device, or a device built into the above-mentioned device (for example, a communication module or system-on-chip, etc.). The terminal device is used to connect people, objects, machines, etc., and can be widely used in various scenarios. Also sometimes referred to as user equipment (UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device. The terminal device in the embodiment of the present application may be a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal Equipment, wireless terminals in industrial control, wireless terminals in internet of things (IoT) systems, wireless terminals in self-driving, wireless terminals in remote medical , wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone , Session Initiation Protocol (SIP) telephones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or connected to Other processing equipment of wireless modems, in-vehicle equipment, in-vehicle communication devices, in-vehicle communication processing chips, wearable devices, terminal equipment in 5G networks or terminal equipment in the future evolved public land mobile network (PLMN) Wait. It should be understood that the present application does not limit the specific form of the terminal device.
为了便于理解本申请中的实施例,现对本申请实施例涉及到的相关概念进行描述。In order to facilitate the understanding of the embodiments of the present application, the related concepts involved in the embodiments of the present application are now described.
如果终端设备与另一个终端设备需要进行侧行链路通信,首先,该终端设备可以建立与另一个终端设备之间的侧行链路承载,终端设备向对端的终端设备发送PC5口的无线资源控制(Radio Resource Control,RRC)消息来建立侧行链路承载。图2是关于PC5口的侧行链路通信的协议栈,其中,图2-a是用于RRC层的控制面协议栈,RRC层用于管理无线接口的无线配置参数。此外,还有一个用于PC5信令协议(PC5-Signalling,PC5-S)层的控制面协议栈,参见图2-b,PC5-S层负责安全建立,密钥更新等功能。在建立侧行链路承载后,该两个终端设备基于建立的侧行链路承载发送数据包,图2-c是用于用户数据传输的用户面协议栈,其中业务数据适配协议(service data adaptation protocol,SDAP)层完成服务质量(Quality of service,QoS)流到承载的映射。在每个协议栈里,最下面的协议层均包括分组数据汇聚层协议(packet data convergence protocol,PDCP)层、无线链路控制(radio link control,RLC)层、媒体接入控制(media access control,MAC)层和物理(Physical,PHY)层。PDCP层完成数据的加密、完整性保护和头压缩等功能;RLC层完成数据包的大小匹配等功能;MAC层完成数据调度以及逻辑信道与传输信道之间的映射等功能;PHY层负责数据在无线空口的传输。If a terminal device needs to communicate with another terminal device on a side link, first, the terminal device can establish a side link bearer with another terminal device, and the terminal device sends the wireless resources of the PC5 port to the opposite terminal device. Control (Radio Resource Control, RRC) message to establish sidelink bearer. Fig. 2 is a protocol stack related to sidelink communication of PC5 port, wherein Fig. 2-a is a control plane protocol stack for the RRC layer, and the RRC layer is used to manage the radio configuration parameters of the radio interface. In addition, there is a control plane protocol stack for the PC5 signaling protocol (PC5-Signalling, PC5-S) layer, see Figure 2-b, the PC5-S layer is responsible for functions such as security establishment and key update. After the sidelink bearer is established, the two terminal devices send data packets based on the established sidelink bearer. Figure 2-c shows the user plane protocol stack for user data transmission, in which the service data adaptation protocol (service The data adaptation protocol, SDAP) layer completes the mapping of quality of service (Quality of service, QoS) flows to bearers. In each protocol stack, the bottom protocol layer includes a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, and a media access control (media access control) layer. , MAC) layer and physical (Physical, PHY) layer. The PDCP layer performs functions such as data encryption, integrity protection and header compression; the RLC layer performs functions such as data packet size matching; the MAC layer performs functions such as data scheduling and mapping between logical channels and transmission channels; the PHY layer is responsible for data in Wireless air interface transmission.
为了确保侧行链路通信的安全,避免被攻击者窃听或篡改,侧行链路传输的数据包需要进行安全保护。图3是对侧行链路传输的数据包进行安全保护的一个示意图。发送方对数据进行加密,接收方对数据进行解密。无论是加密还是解密,其输入参数是一样的,包括密钥、该数据包的分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)的COUNT值、对应该数据包的侧行链路承载的逻辑信道标识(Logic Channel Identity,LCID)、传输方向和密钥流的长度。其中,通常COUNT为32比特,在本申请中,为了描述的方便,默认COUNT为32比特,但不做限制。每个传输的数据包都有一个COUNT值,每个终端设备在每个侧行链路承载的每个传输方向上各自独立维护COUNT值,在一个侧行链路承载的同一个传输方向上,后一个数据包的COUNT值是前一个数据包的COUTN值加1。In order to ensure the security of sidelink communication and avoid being eavesdropped or tampered with by attackers, the data packets transmitted by the sidelink need to be protected. FIG. 3 is a schematic diagram of security protection for data packets transmitted on the side link. The sender encrypts the data, and the receiver decrypts the data. Whether it is encryption or decryption, the input parameters are the same, including the key, the COUNT value of the Packet Data Convergence Protocol (PDCP) of the data packet, and the logical channel carried by the side link corresponding to the data packet. Identity (Logic Channel Identity, LCID), transmission direction, and length of the keystream. Wherein, the COUNT is usually 32 bits. In this application, for the convenience of description, the default COUNT is 32 bits, but it is not limited. Each transmitted data packet has a COUNT value, and each terminal device independently maintains the COUNT value in each transmission direction carried by each side link. In the same transmission direction carried by a side link, The COUNT value of the next packet is the COUNTN value of the previous packet plus 1.
需要说明的是,COUNT是一个特有的名称,用于给数据包进行编号,COUNT分为两部分:超帧号(Hyper Frame Number,HFN)和PDCP序号。HFN是COUNT的高比特位,PDCP序号是COUNT的低比特位,两者合起来是32比特,比如,如果PDCP序号长度占用11比特,则HFN占用21比特。PDCP序号在无线接口传输,但是HFN不在无线接口传输,而是由发送方和接收方各自维护,这样做的好处是,降低了传输开销。如果两个终端设备通过侧行链路传输大量的数据包,则可能出现COUNT值翻转的问题,即COUNT值溢出翻转到又从0开始,同时也是HFN又从0开始。这样造成:不同的数据包使用了相同的安全输入参数,从安全的角度来看,这增加了密钥被攻破的风险,降低了安全性。It should be noted that COUNT is a unique name used to number data packets, and COUNT is divided into two parts: Hyper Frame Number (HFN) and PDCP sequence number. HFN is the high-order bit of COUNT, and the PDCP sequence number is the low-order bit of COUNT, and the two together are 32 bits. For example, if the length of the PDCP sequence number occupies 11 bits, the HFN occupies 21 bits. The PDCP sequence number is transmitted on the wireless interface, but the HFN is not transmitted on the wireless interface, but is maintained by the sender and the receiver. The advantage of this is that the transmission overhead is reduced. If two terminal devices transmit a large number of data packets through the side link, the problem of COUNT value inversion may occur, that is, the COUNT value overflows and starts from 0 again, and also HFN starts from 0 again. This results in that different data packets use the same security input parameters, which increases the risk of key compromise and reduces security from a security point of view.
鉴于此,提供本申请实施例的技术方案。下面结合附图介绍本申请实施例提供的技术方案。In view of this, the technical solutions of the embodiments of the present application are provided. The technical solutions provided by the embodiments of the present application are described below with reference to the accompanying drawings.
本申请一实施例提供一种通信方法,请参见图4,为该方法的流程图。该方法可由两个通信设备执行,这两个通信设备例如为第一终端设备和第二终端设备。其中,第一终端设备和第二终端设备可以是上面所述的各种形式的终端设备或能够支持终端设备实现该方法所需的功能的通信装置。An embodiment of the present application provides a communication method. Please refer to FIG. 4 , which is a flowchart of the method. The method may be performed by two communication devices, eg a first terminal device and a second terminal device. Wherein, the first terminal device and the second terminal device may be various types of terminal devices described above or communication devices capable of supporting the functions required by the terminal device to implement the method.
S410、第一终端设备确定第一承载的PDCP COUNT即将发生翻转。S410. The first terminal device determines that the PDCP COUNT of the first bearer is about to be rolled over.
第一终端设备与第二终端设备之间建立了侧行链路承载,用于该两个终端设备之间的数据传输,这里称之为第一承载。随着两个终端设备之间数据的传输,可能出现第一承载 的PDCP COUNT即将发生翻转。由于一个承载可以是双向的,第一终端设备可以作为发送方对数据包进行加密后向第二终端设备发送数据包,也可以作为接收方接收第二终端设备发送的数据包并进行解密。两个传输方向传输的数据包的个数可能是不一致的,第一终端设备为第一承载维护两个PDCP COUNT,其中一个是作为发送方维护的PDCP COUNT,用于对发送的数据进行加密,另一个是作为接收方维护的PDCP COUNT,用于对接收的数据进行解密。相应地,第二终端设备也会维护两个PDCP COUNT。需要说明的是,这里所说的第一承载的PDCP COUNT即将发生翻转,可以是第一终端设备作为发送方维护的第一承载的PDCP COUNT即将发生翻转,也可以是第一终端设备作为接收方维护的第一承载的PDCP COUNT即将发生翻转,还可以是两者均即将发生翻转,也就是说,第一承载上的任一传输方向上的PDCP COUNT即将发生翻转都可以认为第一承载的PDCP COUNT即将发生翻转。A sidelink bearer is established between the first terminal device and the second terminal device for data transmission between the two terminal devices, which is referred to as a first bearer here. With the transmission of data between the two terminal devices, it may happen that the PDCP COUNT of the first bearer is about to be reversed. Since a bearer can be bidirectional, the first terminal device can act as the sender to encrypt the data packet and then send the data packet to the second terminal device, and can also act as the receiver to receive and decrypt the data packet sent by the second terminal device. The number of data packets transmitted in the two transmission directions may be inconsistent. The first terminal device maintains two PDCP COUNTs for the first bearer, one of which is the PDCP COUNT maintained by the sender, which is used to encrypt the sent data. The other is the PDCP COUNT maintained as the receiver to decrypt the received data. Correspondingly, the second terminal device also maintains two PDCP COUNTs. It should be noted that the PDCP COUNT of the first bearer mentioned here is about to be reversed, which may be that the PDCP COUNT of the first bearer maintained by the first terminal device as the sender is about to be reversed, or the first terminal device as the receiver. The maintained PDCP COUNT of the first bearer is about to roll over, or both of them are about to roll over. That is to say, if the PDCP COUNT of any transmission direction on the first bearer is about to roll over, it can be considered that the PDCP of the first bearer is about to roll over. COUNT is about to roll over.
图5是第一终端设备确定第一承载的PDCP COUNT即将发生翻转的一种可能的实现方式。在该实现方式中,第一终端设备的PDCP层识别出第一承载的PDCP COUNT即将发生翻转,第一终端设备的PDCP层向第一终端设备的RRC层上报第二指示信息,相应的,第一终端设备的RRC层接收第一终端设备的PDCP层上报的第二指示信息。第二指示信息指示第一承载的PDCP COUNT即将发生翻转。第二指示信息可以包括第一承载的承载标识,或者第一承载的逻辑信道标识。可选地,该第二指示信息也可以包括第一承载的PDCP COUNT值或COUNT值的高比特位。可选地,该第二指示信息也可以包括用于指明是哪个传输方向的PDCP COUNT即将发生翻转的信息,比如第二终端设备作为接收方维护的PDCP COUNT即将发生翻转,或第二终端设备作为发送方维护的PDCP COUNT即将发生翻转。第一终端设备的RRC层基于第二指示信息确定第一承载的PDCP COUNT即将发生翻转。FIG. 5 is a possible implementation manner in which the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped. In this implementation manner, the PDCP layer of the first terminal device recognizes that the PDCP COUNT of the first bearer is about to be reversed, and the PDCP layer of the first terminal device reports the second indication information to the RRC layer of the first terminal device. Correspondingly, the first The RRC layer of a terminal device receives the second indication information reported by the PDCP layer of the first terminal device. The second indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over. The second indication information may include a bearer identifier of the first bearer, or a logical channel identifier of the first bearer. Optionally, the second indication information may also include the PDCP COUNT value or the high-order bit of the COUNT value of the first bearer. Optionally, the second indication information may also include information for indicating which transmission direction the PDCP COUNT is about to roll over, for example, the PDCP COUNT maintained by the second terminal device as the receiver is about to roll over, or the second terminal device as the receiver is about to roll over. The PDCP COUNT maintained by the sender is about to rollover. The RRC layer of the first terminal device determines, based on the second indication information, that the PDCP COUNT of the first bearer is about to be rolled over.
在又一种可能的实现方式中,也可以是第一终端设备的PDCP层按照第一周期周期性地向第一终端设备的RRC层上报维护的第一承载的PDCP COUNT,由第一终端设备的RRC层识别PDCP COUNT是否即将发生翻转。第一周期的时长可以是第一终端设备的RRC层配置给第一终端设备的PDCP层,也可以是PDCP层自己决定的。In another possible implementation manner, the PDCP layer of the first terminal device may periodically report the maintained PDCP COUNT of the first bearer to the RRC layer of the first terminal device according to the first period, and the first terminal device The RRC layer identifies whether the PDCP COUNT is about to rollover. The duration of the first cycle may be configured by the RRC layer of the first terminal device to the PDCP layer of the first terminal device, or may be determined by the PDCP layer itself.
需要说明的是,第一终端设备的PDCP层或者RRC层可以根据第一规则确定或者识别PDCP COUNT即将发生翻转,该第一规则例如可以是PDCP COUNT值中的HFN达到最大取值,或者是HFN的最高比特位变为1,或者是PDCP COUNT值达到第一门限值等等。本申请实施例对于第一规则不做限定。可以理解的是,该第一规则可以是由第一终端设备自己确定的,也可以是标准协议规定的,也可以是第一终端设备和第二终端设备之间协商确定的,也可以是网络设备配置的,本申请实施例对此也不做限定。It should be noted that the PDCP layer or the RRC layer of the first terminal device may determine or recognize that the PDCP COUNT is about to be flipped according to a first rule, and the first rule may be, for example, that the HFN in the PDCP COUNT value reaches the maximum value, or the HFN The highest bit becomes 1, or the PDCP COUNT value reaches the first threshold value, etc. This embodiment of the present application does not limit the first rule. It can be understood that the first rule may be determined by the first terminal device itself, may also be specified by a standard protocol, may be determined through negotiation between the first terminal device and the second terminal device, or may be determined by the network The device configuration is also not limited in this embodiment of the present application.
图6是第一终端设备确定第一承载的PDCP COUNT即将发生翻转的另一种可能的实现方式。具体步骤如下:FIG. 6 is another possible implementation manner in which the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped. Specific steps are as follows:
S610、第二终端设备确定第一承载的PDCP COUNT即将发生翻转。S610. The second terminal device determines that the PDCP COUNT of the first bearer is about to be rolled over.
第二终端设备确定第一承载的PDCP COUNT即将发生翻转的方法可以参见图5中第一终端设备确定第一承载的PDCP COUNT即将发生翻转的方法,简单将第一终端设备替换成第二终端设备即可,这里不再赘述。For the method for the second terminal device to determine that the PDCP COUNT of the first bearer is about to be inverted, refer to the method for the first terminal device to determine that the PDCP COUNT of the first bearer is about to be inverted in FIG. 5, and simply replace the first terminal device with the second terminal device That’s it, no further details are given here.
S620、第二终端设备确定第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载。S620. The second terminal device determines that the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established by the first terminal device.
两个终端设备之间的侧行链路承载,可以是第一终端设备发起建立的,也可以是第二终端设备发起建立的,甚至如果有多个侧行链路承载,其中一部分由第一终端设备发起建立,另外一部分由第二终端设备发起建立。第二终端设备判断第一承载是不是由第一终端设备发起建立的侧行链路承载。如果第二终端设备确定第一承载是由第一终端设备发起建立的侧行链路承载,则进入步骤S630。The sidelink bearer between two terminal devices may be initiated by the first terminal device or initiated by the second terminal device, and even if there are multiple sidelink bearers, some of which are initiated by the first terminal device. The terminal device initiates the establishment, and the other part is initiated by the second terminal device. The second terminal device determines whether the first bearer is a sidelink bearer initiated and established by the first terminal device. If the second terminal device determines that the first bearer is a sidelink bearer initiated and established by the first terminal device, it proceeds to step S630.
S630、第二终端设备向第一终端设备发送第一消息。S630. The second terminal device sends the first message to the first terminal device.
相应的,第一终端设备接收该第一消息。该第一消息包括第一指示信息,第一指示信息指示第一承载的PDCP COUNT即将发生翻转。第二终端设备向第一终端设备发送第一消息以触发第一终端设备发起针对第一承载的承载修改过程或发起密钥更新过程,而不是直接发起针对第一承载的承载修改过程或密钥更新过程,这样做的好处是,一个侧行链路承载的PDCP COUNT即将发生翻转,由发起建立该侧行链路承载的终端设备来解决可能引起的安全性降低的问题,可以减低复杂度,减少对数据传输的影响。Correspondingly, the first terminal device receives the first message. The first message includes first indication information, where the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over. The second terminal device sends the first message to the first terminal device to trigger the first terminal device to initiate a bearer modification procedure or a key update procedure for the first bearer, instead of directly initiating a bearer modification procedure or a key update procedure for the first bearer Update process, the advantage of this is that the PDCP COUNT carried by a side link is about to be reversed, and the terminal device that initiates the establishment of the side link bearer solves the problem of possible reduction in security, which can reduce the complexity. Reduce the impact on data transfer.
第一指示信息可以包括第一承载的承载标识,或者第一承载的逻辑信道标识,承载标识可以是PC5接口的侧行链路承载的配置索引。可选地,该第一指示信息也可以包括第一承载的PDCP COUNT值或PDCP COUNT值的高比特位。可选的,该第一指示信息也可以包括用于指明是哪个传输方向的PDCP COUNT即将发生翻转的信息,比如第二终端设备作为接收方维护的PDCP COUNT即将发生翻转,或第二终端设备作为发送方维护的PDCP COUNT即将发生翻转。The first indication information may include a bearer identifier of the first bearer, or a logical channel identifier of the first bearer, and the bearer identifier may be a configuration index of a sidelink bearer of the PC5 interface. Optionally, the first indication information may also include the PDCP COUNT value of the first bearer or the high-order bit of the PDCP COUNT value. Optionally, the first indication information may also include information used to indicate which transmission direction the PDCP COUNT is about to roll over, for example, the PDCP COUNT maintained by the second terminal device as the receiver is about to roll over, or the second terminal device as the receiver is about to roll over. The PDCP COUNT maintained by the sender is about to rollover.
第一消息可以是PC5接口的RRC消息,也可以是PDCP控制协议数据单元(Protocol Data Unit,PDU)。如果第一消息是PDCP控制PDU,则第一终端设备的PDCP层在收到第一消息后,向第一终端设备的RRC层上报第一指示信息。The first message may be an RRC message of the PC5 interface, or may be a PDCP control protocol data unit (Protocol Data Unit, PDU). If the first message is a PDCP control PDU, after receiving the first message, the PDCP layer of the first terminal device reports the first indication information to the RRC layer of the first terminal device.
S640、第一终端设备基于第一指示信息确定第一承载的PDCP COUNT即将发生翻转。S640. The first terminal device determines, based on the first indication information, that the PDCP COUNT of the first bearer is about to roll over.
例如,可以是第一终端设备的RRC层基于第一指示信息确定第一承载的PDCP COUNT即将发生翻转。具体的,基于第一指示信息包括的第一承载的承载标识或第一承载的逻辑信道标识,获知是第一承载的PDCP COUNT即将发生翻转。For example, it may be that the RRC layer of the first terminal device determines, based on the first indication information, that the PDCP COUNT of the first bearer is about to be rolled over. Specifically, based on the bearer identification of the first bearer or the logical channel identification of the first bearer included in the first indication information, it is learned that the PDCP COUNT of the first bearer is about to be reversed.
S420、第一终端设备确定第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载。S420. The first terminal device determines that the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established by the first terminal device.
该步骤是可选步骤。例如,如果在步骤S410中是采用的图6所示的实现方式,即第一终端设备是基于从第二终端设备收到的第一指示信息确定第一承载的PDCP COUNT即将发生翻转,则可以默认认为第一承载是第一终端设备发起建立的,因此可以跳过该步骤,进入步骤S430,或者,“默认认为”也可以认为存在“确定”动作,也就是,在这种情况下,也执行了步骤S420。This step is optional. For example, if the implementation shown in FIG. 6 is adopted in step S410, that is, the first terminal device determines that the PDCP COUNT of the first bearer is about to be reversed based on the first indication information received from the second terminal device, it can be By default, it is considered that the first bearer was established by the first terminal device, so this step can be skipped and step S430 is entered. Step S420 is performed.
两个终端设备之间的侧行链路承载,可以是第一终端设备发起建立的,也可以是第二终端设备发起建立的,甚至如果有多个侧行链路承载,其中一部分由第一终端设备发起建立,另外一部分由第二终端设备发起建立。可以由第一终端设备的RRC层判断第一承载是不是由第一终端设备发起建立的侧行链路承载。如果确定第一承载不是由第一终端设备发起建立的侧行链路承载,也就是说,第一承载是第二终端设备发起建立的侧行链路承载,则第一终端设备可以给第二终端设备发送消息,用于通知对方第一承载的PDCP COUNT即将发生翻转,可以参考图6及相关的描述,不同的是,需要将第一终端设备和第二终端 设备的角色进行互换,这里不再赘述。一个侧行链路承载的PDCP COUNT即将发生翻转,由发起建立该侧行链路承载的终端设备来解决可能引起的安全性降低的问题,可以减低复杂度,减少对数据传输的影响。The sidelink bearer between two terminal devices may be initiated by the first terminal device or initiated by the second terminal device, and even if there are multiple sidelink bearers, some of which are initiated by the first terminal device. The terminal device initiates the establishment, and the other part is initiated by the second terminal device. Whether the first bearer is a sidelink bearer initiated and established by the first terminal device may be determined by the RRC layer of the first terminal device. If it is determined that the first bearer is not a sidelink bearer initiated and established by the first terminal device, that is, the first bearer is a sidelink bearer initiated and established by the second terminal device, the first The terminal device sends a message to notify the opposite party that the PDCP COUNT of the first bearer is about to be flipped. Refer to Figure 6 and related descriptions. The difference is that the roles of the first terminal device and the second terminal device need to be interchanged. Here No longer. The PDCP COUNT carried by a sidelink is about to be reversed. The terminal device that initiates the establishment of the sidelink bearer can solve the problem of possible security reduction, which can reduce the complexity and reduce the impact on data transmission.
如果第一终端设备的RRC层确定第一承载是由第一终端设备发起建立的侧行链路承载,则进入步骤S430。If the RRC layer of the first terminal device determines that the first bearer is a sidelink bearer initiated and established by the first terminal device, step S430 is entered.
需要说明的是,步骤S410和步骤S420的执行先后顺序可以互换,这里不做限定。It should be noted that the execution sequence of step S410 and step S420 can be interchanged, which is not limited here.
S430、第一终端设备发起针对第一承载的承载修改过程或发起密钥更新过程。S430. The first terminal device initiates a bearer modification process or a key update process for the first bearer.
为了解决安全性降低的问题,也就是避免不同的数据包使用相同的安全输入参数,本申请实施例中,可以通过承载修改或者密钥更新过程来实现。需要说明的是,第一终端设备也可以同时发起承载修改和密钥更新过程以解决安全性降低的问题。In order to solve the problem of reduced security, that is, to prevent different data packets from using the same security input parameters, in this embodiment of the present application, it may be implemented through a bearer modification or key update process. It should be noted that, the first terminal device may also initiate bearer modification and key update procedures at the same time to solve the problem of reduced security.
方式一:承载修改Method 1: Bearing Modification
图7示例性的描述了一种可能的承载修改过程。如图7所示,可以由第一终端设备的RRC层发起承载修改过程,将第一承载的逻辑信道标识修改为其他可用的逻辑信道标识。可用的逻辑信道标识是指没有与当前的密钥一起使用过的逻辑信道标识,当前的密钥是第一终端设备和第二终端设备之间的通信正在使用的密钥。由于逻辑信道标识是安全输入参数之一,第一承载的逻辑信道标识的改变,可以避免安全性降低的问题。具体步骤可以如下:FIG. 7 exemplarily describes a possible bearer modification process. As shown in FIG. 7 , a bearer modification process may be initiated by the RRC layer of the first terminal device to modify the logical channel identifier of the first bearer to another available logical channel identifier. The available logical channel identifiers refer to logical channel identifiers that have not been used together with the current key, which is the key being used for communication between the first terminal device and the second terminal device. Since the logical channel identifier is one of the security input parameters, the change of the logical channel identifier of the first bearer can avoid the problem of reduced security. The specific steps can be as follows:
S710、第一终端设备确定存在可用的逻辑信道标识。S710. The first terminal device determines that there is an available logical channel identifier.
例如,在两个终端设备之间可以支持最大32个逻辑信道标识。每新增一个侧行链路承载,就会分配一个可用的逻辑信道标识,那么在32个逻辑信道标识中没有结合当前的密钥被分配使用的逻辑信道标识可以被认为是可用的逻辑信道标识,例如,在开始使用当前密钥时,两个终端设备之间存在3个侧行链路承载,其逻辑信道标识分别为1、2和3,当这两个终端设备之间需要新增一个侧行链路承载A时,可用的逻辑信道标识为4-32,如果给这个侧行链路承载分配的逻辑信道标识为4,逻辑信道标识4变为不可用。当这两个终端设备之间又需要增加一个侧行链路承载B时,此时可用的逻辑信道标识为5-32。可以理解的是,最大32个逻辑信道标识是一种场景举例,在两个终端设备之间最大可支持的逻辑信道标识的个数也可以是其他数目。For example, a maximum of 32 logical channel identities can be supported between two terminal devices. Each time a sidelink bearer is added, an available logical channel identifier will be allocated. Then, among the 32 logical channel identifiers, the logical channel identifier that is not allocated and used in conjunction with the current key can be regarded as the available logical channel identifier. For example, when starting to use the current key, there are 3 sidelink bearers between the two terminal devices, and their logical channel IDs are 1, 2 and 3 respectively. When a new one needs to be added between the two terminal devices When the sidelink bearer A, the available logical channel identifiers are 4-32. If the logical channel identifier allocated to this sidelink bearer is 4, the logical channel identifier 4 becomes unavailable. When another sidelink bearer B needs to be added between the two terminal devices, the available logical channel identifiers at this time are 5-32. It can be understood that the maximum number of 32 logical channel identifiers is an example of a scenario, and the maximum number of logical channel identifiers that can be supported between two terminal devices may also be other numbers.
需要说明的是,即使某个侧行链路承载被释放了,分配给这个侧行链路承载的逻辑信道标识也不可用,否则就会出现不同的数据包使用相同的安全输入参数的问题。因此可能出现不存在可用的逻辑信道标识的问题。在密钥被更新后,这个分配的逻辑信道标识又变为可用。It should be noted that even if a certain sidelink bearer is released, the logical channel identifier allocated to this sidelink bearer is unavailable, otherwise there will be a problem that different data packets use the same security input parameters. There may therefore be a problem that there is no logical channel identity available. After the key is updated, this assigned logical channel identity becomes available again.
如果第一终端设备确定不存在可用的逻辑信道标识,则可以发起密钥更新过程来解决安全性降低的问题,具体可以参见下面图8的相关描述。If the first terminal device determines that there is no available logical channel identifier, it can initiate a key update process to solve the problem of reduced security, and for details, refer to the related description of FIG. 8 below.
如果第一终端设备确定存在可用的逻辑信道标识,则第一终端设备可以在可用的逻辑信道标识中选择一个作为第一承载的目标逻辑信道标识,这里称之为第一逻辑信道标识。其中,第一终端设备可以在可用的逻辑信道标识中随机选择一个或者按照预设条件或规则选择一个作为第一逻辑信道标识,例如,选择最小可用的逻辑信道标识。If the first terminal device determines that there is an available logical channel identifier, the first terminal device may select one of the available logical channel identifiers as the target logical channel identifier of the first bearer, which is referred to as the first logical channel identifier herein. The first terminal device may randomly select one of the available logical channel identifiers or select one as the first logical channel identifier according to preset conditions or rules, for example, select the smallest available logical channel identifier.
可选的,S710可以是由第一终端设备的RRC层实现的。RRC层负责无线资源配置,由RRC层实现,实现的复杂度小。Optionally, S710 may be implemented by the RRC layer of the first terminal device. The RRC layer is responsible for radio resource configuration, and is implemented by the RRC layer, with low implementation complexity.
S720、第一终端设备向第二终端设备发送第二消息,第二消息包括第一承载的承载标 识和第一逻辑信道标识,用于将第一承载的逻辑信道标识修改为第一逻辑信道标识。S720. The first terminal device sends a second message to the second terminal device, where the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and is used to modify the logical channel identifier of the first bearer to the first logical channel identifier .
相应的,第二终端设备接收该第二消息。第一承载的承载标识可以是PC5接口的侧行链路承载的配置索引,用于指明是针对第一承载的修改。第一逻辑信道标识用于指明第一承载的目标逻辑信道标识。可选的,第二消息可以仅用来指示修改第一承载的逻辑信道标识,而不修改第一承载的其他参数,也就是说,第一承载除了逻辑信道标识外的其他配置继续维持使用。Correspondingly, the second terminal device receives the second message. The bearer identifier of the first bearer may be a configuration index of a sidelink bearer of the PC5 interface, which is used to indicate that the modification is for the first bearer. The first logical channel identifier is used to indicate the target logical channel identifier of the first bearer. Optionally, the second message may only be used to instruct to modify the logical channel identifier of the first bearer without modifying other parameters of the first bearer, that is, other configurations of the first bearer except the logical channel identifier continue to be used.
一种可能的实现方式中,该第二消息可以是PC5接口的RRC重配置消息。In a possible implementation manner, the second message may be an RRC reconfiguration message of the PC5 interface.
本申请实施例,采用承载修改的方式,也就是说通过修改第一承载的逻辑信道标识,而不用删除第一承载再增加一个承载,可以避免因删除第一承载而丢弃缓存的数据包所引起较大的传输中断以及数据包的丢失的问题。此外,由于因为在侧行链路场景,侧行链路承载的COUNT值是由相互通信的两个终端设备各自维护的,基站并不能感知侧行链路承载的COUNT值,因此基站不知道什么时候发起删除和新建承载的过程,无法解决侧行链路场景下的问题,而通过本申请实施例可以解决该问题。In this embodiment of the present application, a bearer modification method is adopted, that is, by modifying the logical channel identifier of the first bearer without deleting the first bearer and adding another bearer, it is possible to avoid the cause of discarding the cached data packets due to the deletion of the first bearer. Large transmission interruptions and packet loss problems. In addition, because in the sidelink scenario, the COUNT value carried by the sidelink is maintained by the two terminal devices that communicate with each other, the base station cannot perceive the COUNT value carried by the sidelink, so the base station does not know what When the process of deleting and creating a new bearer is initiated at the same time, the problem in the sidelink scenario cannot be solved, but this problem can be solved by the embodiments of the present application.
S730、第二终端设备基于第二消息将第一承载的逻辑信道标识修改为第一逻辑信道标识。S730. The second terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier based on the second message.
第二终端设备在收到第二消息后,发现第二消息包含的第一承载的承载标识是当前已经配置的承载标识,则获知第二消息发起的是针对该承载标识对应的承载(也就是第一承载)的承载修改过程,从而可以根据第二消息中包含的第一逻辑信道标识将第一承载的逻辑信道标识修改为第一逻辑信道标识。After receiving the second message, the second terminal device finds that the bearer identifier of the first bearer included in the second message is the currently configured bearer identifier, and then learns that the second message initiates the bearer corresponding to the bearer identifier (that is The bearer modification process of the first bearer), so that the logical channel identification of the first bearer can be modified to the first logical channel identification according to the first logical channel identification contained in the second message.
可选的,在承载修改过程中,第一承载的PDCP实体可以不重建立,第一终端设备和第二终端设备维护的第一承载的PDCP COUNT可以继续使用而不被重置为0。即使PDCP COUNT翻转后会出现同一个PDCP COUNT值被又一次使用,因为第一承载的逻辑信道标识已经被修改,所以也不会出现不同的数据包使用相同的安全输入参数的问题,因此不存在安全性降低的问题。维护的第一承载的PDCP COUNT继续使用的好处是:数据传输受影响小,不会出现数据包的丢失等问题。可选的,如果本次承载修改时第一承载的PDCP COUNT值为X,则在下次PDCP COUNT达到X值之前,而不是翻转之前,可以再次执行承载修改过程或密钥更新过程,以避免出现不同的数据包使用相同的安全输入参数的问题。Optionally, in the bearer modification process, the PDCP entity of the first bearer may not be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device may continue to be used without being reset to 0. Even if the same PDCP COUNT value is used again after the PDCP COUNT is flipped, because the logical channel identifier of the first bearer has been modified, there will not be a problem that different data packets use the same security input parameters, so there is no problem The problem of reduced security. The advantage of continuing to use the maintained PDCP COUNT of the first bearer is that data transmission is less affected, and problems such as data packet loss will not occur. Optionally, if the PDCP COUNT value of the first bearer is X when the bearer is modified this time, before the next PDCP COUNT reaches the value X, but not before the rollover, the bearer modification process or the key update process can be performed again to avoid the occurrence of The problem of different packets using the same security input parameters.
可选的,在承载修改过程中,也可以将第一承载的PDCP实体重建立,第一终端设备和第二终端设备维护的第一承载的PDCP COUNT重置为0,也就是说,第一终端设备和第二终端设备为后续的数据包从0开始分配PDCP COUNT。通过对PDCP COUNT重置的方式,不需要保存上述的X值,因此降低了实现复杂度。Optionally, during the bearer modification process, the PDCP entity of the first bearer may also be re-established, and the PDCP COUNT of the first bearer maintained by the first terminal device and the second terminal device is reset to 0, that is, the first The terminal device and the second terminal device allocate PDCP COUNTs starting from 0 for subsequent data packets. By resetting the PDCP COUNT, the above-mentioned X value does not need to be saved, thus reducing the implementation complexity.
S740、第二终端设备向第一终端设备发送第二消息的响应消息,用于确认已经成功完成第一承载的逻辑信道标识修改。S740. The second terminal device sends a response message of the second message to the first terminal device, which is used to confirm that the modification of the logical channel identifier of the first bearer has been successfully completed.
相应的,第一终端设备接收该第二消息的响应消息。该第二消息的响应消息可以是PC5接口的RRC重配置完成消息。Correspondingly, the first terminal device receives the response message of the second message. The response message of the second message may be an RRC reconfiguration complete message of the PC5 interface.
S750、第一终端设备将第一承载的逻辑信道标识修改为第一逻辑信道标识。S750. The first terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier.
需要说明的是,步骤S750可以发生在步骤S740之后,也就是,在收到第二消息的响应消息后执行,也可以发生在步骤S720之后,也就是在发送第二消息后执行。It should be noted that step S750 may occur after step S740, that is, after receiving the response message of the second message, or after step S720, that is, after sending the second message.
方式二:密钥更新Method 2: Key update
该方式中,可以由第一终端设备发起密钥更新过程,将密钥变更到一个新的密钥。由于密钥是安全输入参数之一,即使同一个PDCP COUNT值被又一次使用,但是密钥的改变使得不会出现不同的数据包使用相同的安全输入参数的问题,从而可以避免将要出现的安全性降低的问题。In this manner, the key update process can be initiated by the first terminal device to change the key to a new key. Since the key is one of the security input parameters, even if the same PDCP COUNT value is used again, the change of the key will prevent the problem of different data packets using the same security input parameter, thus avoiding the security input that will occur. Sexual decline problem.
图8示例性的描述了一种可能的密钥更新过程。Figure 8 exemplarily describes a possible key update process.
S810、第一终端设备的RRC层向第一终端设备的PC5-S层上报第三指示信息,请求密钥更新。S810. The RRC layer of the first terminal device reports the third indication information to the PC5-S layer of the first terminal device to request key update.
第一终端设备的RRC层在确定第一承载的PDCP COUNT即将发生翻转后,或,在确定第一承载的PDCP COUNT即将发生翻转且不存在可用的逻辑信道标识后,向第一终端设备的PC5-S层上报第三指示信息,第三指示信息用于触发或请求PC5-S层发起密钥更新过程。可选的,第三指示信息包括原因值,比如,原因值是指示PDCP COUNT发生翻转,或者指示不存在可用的逻辑信道标识,或者指示需要更新密钥。After the RRC layer of the first terminal device determines that the PDCP COUNT of the first bearer is about to be inverted, or, after determining that the PDCP COUNT of the first bearer is about to be inverted and there is no available logical channel identifier, the first terminal device's PC5 - The S layer reports third indication information, and the third indication information is used to trigger or request the PC5-S layer to initiate a key update process. Optionally, the third indication information includes a cause value, for example, the cause value indicates that the PDCP COUNT rollover occurs, or indicates that there is no available logical channel identifier, or indicates that the key needs to be updated.
S820、第一终端设备的PC5-S层发起密钥更新过程。S820. The PC5-S layer of the first terminal device initiates a key update process.
第一终端设备的PC5-S层在收到第三指示信息后,基于第三指示信息确定并发起与第二终端设备之间的密钥更新过程。例如,第一终端设备向第二终端设备发送第三消息,用于请求进行密钥更新,其中,该第三消息是PC5-S层消息。第二终端设备接收第三消息,基于第三消息对密钥进行更新。可选的,PC5-S层的密钥更新过程可以参考现有技术,例如,第一终端设备向第二终端设备发送PC5-S层的直接链路密钥更新请求(direct link rekeying request)消息,该消息中携带用于密钥更新的参数,这里不再赘述。After receiving the third indication information, the PC5-S layer of the first terminal device determines and initiates a key update process with the second terminal device based on the third indication information. For example, the first terminal device sends a third message to the second terminal device for requesting key update, where the third message is a PC5-S layer message. The second terminal device receives the third message, and updates the key based on the third message. Optionally, the key update process of the PC5-S layer can refer to the prior art, for example, the first terminal device sends a direct link rekeying request (direct link rekeying request) message of the PC5-S layer to the second terminal device. , the message carries the parameters used for key update, which will not be repeated here.
可以理解的是,上述方式一或者方式二可以是协议规定采用哪种方式,也可以是第一终端设备确定采用方式一或者方式二。It can be understood that, the above-mentioned manner 1 or manner 2 may specify which manner to be adopted by the protocol, or may be determined by the first terminal device to adopt manner 1 or manner 2.
例如,可以由第一终端设备的RRC层确定是采用方式一或者方式二。在一种可能的实现方式中,当需要执行步骤S430时,或第一终端设备在确定第一承载的PDCP COUNT即将发生翻转且第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载后,第一终端设备的RRC层判断是否存在可用的逻辑信道标识,如果存在可用的逻辑信道标识,可以使用图7所示的承载修改过程(即方式一),如果不存在可用的逻辑信道标识,可以使用图8所示的密钥更新过程(即方式二)。由于密钥更新过程占用更多的信令开销,而且一旦密钥发生更新,第一终端设备和第二终端设备之间的所有的侧行链路承载使用的密钥均发生了更新,因此影响第一终端设备和第二终端设备之间的其他侧行链路承载的数据传输,通过这种实现方式,可以优先使用承载修改过程,从而能降低信令开销,避免影响其他侧行链路承载的数据传输。在另一种可能的实现方式中,当需要执行步骤S430时,或第一终端设备在确定第一承载的PDCP COUNT即将发生翻转且第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载后,第一终端设备直接使用图8所示的密钥更新过程(即方式二),从而降低实现复杂度。For example, it may be determined by the RRC layer of the first terminal device whether to adopt the first mode or the second mode. In a possible implementation manner, when step S430 needs to be performed, or the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped and the first bearer is established between the first terminal device and the second terminal device After carrying the sidelink between the two, the RRC layer of the first terminal device determines whether there is an available logical channel identifier. If there is an available logical channel identifier, the bearer modification process shown in FIG. If there is no available logical channel identifier, the key update process shown in FIG. 8 (ie, mode 2) can be used. Since the key update process takes up more signaling overhead, and once the key is updated, the keys used by all the sidelink bearers between the first terminal device and the second terminal device are updated. For data transmission carried by other sidelinks between the first terminal device and the second terminal device, in this way, the bearer modification process can be preferentially used, thereby reducing signaling overhead and avoiding affecting other sidelink bearers data transmission. In another possible implementation manner, when step S430 needs to be performed, or the first terminal device determines that the PDCP COUNT of the first bearer is about to be flipped and the first bearer is initiated by the first terminal device and established with the second terminal device After the sidelink between them is carried, the first terminal device directly uses the key update process shown in FIG. 8 (ie, the second mode), thereby reducing the implementation complexity.
在本实施例中,在确定第一承载的PDCP COUNT即将发生翻转且第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载后,第一终端设备发起承载修改过程将第一承载的逻辑信道标识修改为另一个可用的逻辑信道标识,或者第一终端设备的RRC层向第一终端设备的PC5-S层上报用于请求密钥更新的第三指示信息以触发PCS-5层发起密钥更新过程,从而解决了不同的数据包使用相同的安全输入参数的问题,避免了将要出现的安全性降低的问题。In this embodiment, after it is determined that the PDCP COUNT of the first bearer is about to be reversed and the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established, the first terminal device initiates the bearer The modification process modifies the logical channel identifier of the first bearer to another available logical channel identifier, or the RRC layer of the first terminal device reports the third indication information for requesting key update to the PC5-S layer of the first terminal device In order to trigger the PCS-5 layer to initiate the key update process, the problem of different data packets using the same security input parameters is solved, and the security reduction problem that will occur is avoided.
下面结合附图介绍本申请实施例中用来实现上述方法的装置。因此,上文中的内容均可以用于后续实施例中,重复的内容不再赘述。The apparatus for implementing the above method in the embodiments of the present application will be described below with reference to the accompanying drawings. Therefore, the above content can be used in subsequent embodiments, and repeated content will not be repeated.
图9为本申请实施例提供的通信装置900的示意性框图。该通信装置900可以对应实现上述各个方法实施例中由第一终端设备或第二终端设备实现的功能或者步骤。FIG. 9 is a schematic block diagram of a communication apparatus 900 provided by an embodiment of the present application. The communication apparatus 900 may correspondingly implement the functions or steps implemented by the first terminal device or the second terminal device in each of the foregoing method embodiments.
一些可能的实现方式中,该通信装置可以包括发送单元910、接收单元920和处理单元930中的一个或多个。可选的,还可以包括存储单元,该存储单元可以用于存储指令(代码或者程序)和/或数据。发送单元910、接收单元920和处理单元930可以与该存储单元耦合,例如,处理单元930可以读取存储单元中的指令(代码或者程序)和/或数据,以实现相应的方法。上述各个单元可以独立设置,也可以部分或者全部集成。In some possible implementations, the communication apparatus may include one or more of a sending unit 910 , a receiving unit 920 and a processing unit 930 . Optionally, a storage unit may also be included, and the storage unit may be used to store instructions (codes or programs) and/or data. The sending unit 910, the receiving unit 920 and the processing unit 930 may be coupled with the storage unit, for example, the processing unit 930 may read instructions (codes or programs) and/or data in the storage unit to implement corresponding methods. The above-mentioned units may be set independently, or may be partially or fully integrated.
一些可能的实施方式中,通信装置900能够对应实现上述方法实施例中第一终端设备的行为和功能。例如通信装置900可以为第一终端设备,也可以为应用于第一终端设备中的部件(例如芯片或者电路)。发送单元910和接收单元920可以分别用于执行上述方法实施例中由第一终端设备所执行的全部发送或者接收操作,例如图6所示的实施例中的S630或图7所示的实施例中的S720和S740,和/或用于支持本文所描述的技术的其它过程。其中,处理单元930用于执行上述方法实施例中由第一终端设备所执行的除了收发操作之外的全部操作,和/或用于支持本文所描述的技术的其它过程。In some possible implementation manners, the communication apparatus 900 can correspondingly implement the behaviors and functions of the first terminal device in the foregoing method embodiments. For example, the communication apparatus 900 may be a first terminal device, or may be a component (eg, a chip or a circuit) applied in the first terminal device. The sending unit 910 and the receiving unit 920 may be respectively configured to perform all sending or receiving operations performed by the first terminal device in the foregoing method embodiments, for example, S630 in the embodiment shown in FIG. 6 or the embodiment shown in FIG. 7 . S720 and S740 in, and/or other processes for supporting the techniques described herein. Wherein, the processing unit 930 is configured to perform all operations performed by the first terminal device in the foregoing method embodiments except for the transceiving operations, and/or to support other processes of the technology described herein.
在一些实施例中,处理单元930用于确定第一承载的PDCP COUNT即将发生翻转,其中,第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载。In some embodiments, the processing unit 930 is configured to determine that the PDCP COUNT of the first bearer is about to be reversed, where the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established.
可选的,处理单元930用于在PDCP层识别出第一承载的PDCP COUNT即将发生翻转,向RRC层上报第二指示信息,第二指示信息指示第一承载的PDCP COUNT即将发生翻转,在RRC层基于第二指示信息确定第一承载的PDCP COUNT即将发生翻转。处理单元930可以在确定第一承载的PDCP COUNT即将发生翻转时,发起与第二终端设备之间的针对第一承载的承载修改过程,或者发起与第二终端设备之间的密钥更新过程。Optionally, the processing unit 930 is configured to identify at the PDCP layer that the PDCP COUNT of the first bearer is about to be overturned, and report second indication information to the RRC layer, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be overturned. The layer determines that the PDCP COUNT of the first bearer is about to be rolled over based on the second indication information. When it is determined that the PDCP COUNT of the first bearer is about to be rolled over, the processing unit 930 may initiate a bearer modification process with the second terminal device for the first bearer, or initiate a key update process with the second terminal device.
可选的,处理单元930还用于确定是否存在可用的逻辑信道标识,其中,可用的逻辑信道标识是没有与当前的密钥一起使用过的逻辑信道标识。当处理单元930确定存在可用的逻辑信道标识时,处理单元930发起与第二终端设备之间的针对第一承载的承载修改过程;当处理单元930确定不存在可用的逻辑信道标识时,处理单元930发起与第二终端设备之间的密钥更新过程。Optionally, the processing unit 930 is further configured to determine whether there is an available logical channel identifier, where the available logical channel identifier is a logical channel identifier that has not been used with the current key. When the processing unit 930 determines that there is an available logical channel identifier, the processing unit 930 initiates a bearer modification process with the second terminal device for the first bearer; when the processing unit 930 determines that there is no available logical channel identifier, the processing unit 930 initiates a key update process with the second terminal device.
发送单元910用于向第二终端设备发送第二消息,其中,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识,或者,用于向第二终端设备发送第三消息,第三消息用于请求进行密钥更新。The sending unit 910 is configured to send a second message to the second terminal device, wherein the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer to the first bearer identifier. A logical channel identifier, or used to send a third message to the second terminal device, where the third message is used to request key update.
作为一种可选的实施方式,接收单元920用于接收来自第二终端设备的第一消息,其中,第一消息包括第一指示信息,第一指示信息指示第一承载的PDCP COUNT即将发生翻转,或者,用于接收第一终端设备的PDCP层上报的第二指示信息,其中,第二指示信息指示第一承载的PDCP COUNT即将发生翻转。As an optional implementation manner, the receiving unit 920 is configured to receive a first message from the second terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over , or, for receiving the second indication information reported by the PDCP layer of the first terminal device, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be reversed.
应理解,本申请实施例中的处理单元930可以由至少一个处理器或处理器相关电路组件实现,发送单元910和接收单元920可以由收发器或收发器相关电路组件或者通信接口实现。It should be understood that the processing unit 930 in this embodiment of the present application may be implemented by at least one processor or a processor-related circuit component, and the sending unit 910 and the receiving unit 920 may be implemented by a transceiver or a transceiver-related circuit component or a communication interface.
一些可能的实施方式中,通信装置900能够对应实现上述方法实施例中第二终端设备的行为和功能。例如通信装置900可以为第二终端设备,也可以为应用于第二终端设备中 的部件(例如芯片或者电路)。其中,发送单元910和接收单元920可以用于执行上述方法实施例中由第二终端设备所执行的全部接收或发送操作,例如图6所示的实施例中的S630或图7所示的实施例中的S720和S740,和/或用于支持本文所描述的技术的其它过程。处理单元930用于执行上述方法实施例中由第二终端设备所执行的除了收发操作之外的全部操作,和/或用于支持本文所描述的技术的其它过程。In some possible implementation manners, the communication apparatus 900 can correspondingly implement the behaviors and functions of the second terminal device in the foregoing method embodiments. For example, the communication apparatus 900 may be the second terminal device, or may be a component (such as a chip or a circuit) applied in the second terminal device. The sending unit 910 and the receiving unit 920 may be configured to perform all receiving or sending operations performed by the second terminal device in the above method embodiments, for example, S630 in the embodiment shown in FIG. 6 or the implementation shown in FIG. 7 . Examples S720 and S740, and/or other processes for supporting the techniques described herein. The processing unit 930 is configured to perform all the operations performed by the second terminal device in the foregoing method embodiments except for the transceiving operations, and/or to support other processes of the technology described herein.
在一些实施例中,处理单元930用于确定第一承载的PDCP COUNT即将发生翻转,其中,第一承载是第一终端设备发起建立的与第二终端设备之间的侧行链路承载。In some embodiments, the processing unit 930 is configured to determine that the PDCP COUNT of the first bearer is about to be reversed, where the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established.
发送单元910用于向第一终端设备发送第一消息,其中,第一消息包括第一指示信息,第一指示信息指示第一承载的PDCP COUNT即将发生翻转。The sending unit 910 is configured to send a first message to the first terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over.
作为一种可选的实施方式,接收单元920用于接收第二终端设备的PDCP层上报的第二指示信息,其中,第二指示信息指示第一承载的PDCP COUNT即将发生翻转,或者用于接收来自于第一终端设备的第二消息,第二消息包括第一承载的承载标识和第一逻辑信道标识,第二消息用于将第一承载的逻辑信道标识修改为第一逻辑信道标识,或者用于接收来自于第一终端设备的第三消息,第三消息用于请求进行密钥更新。As an optional implementation manner, the receiving unit 920 is configured to receive second indication information reported by the PDCP layer of the second terminal device, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be reversed, or is used to receive a second message from the first terminal device, where the second message includes the bearer identifier of the first bearer and the first logical channel identifier, and the second message is used to modify the logical channel identifier of the first bearer to the first logical channel identifier, or It is used to receive a third message from the first terminal device, and the third message is used to request key update.
应理解,本申请实施例中的处理单元930可以由处理器或处理器相关电路组件实现,发送单元910和接收单元920可以由收发器或收发器相关电路组件实现。It should be understood that the processing unit 930 in this embodiment of the present application may be implemented by a processor or a processor-related circuit component, and the sending unit 910 and the receiving unit 920 may be implemented by a transceiver or a transceiver-related circuit component.
上述实施例中的存储单元可以通过存储器实现。The storage unit in the above embodiment may be implemented by a memory.
如图10所示为本申请实施例提供的通信装置1000,通信装置1000可以是终端设备,能够实现本申请实施例提供的方法中第一终端设备或第二终端设备的功能;通信装置1000也可以是能够支持第一终端设备或第二终端设备实现本申请实施例提供的方法中对应的功能的装置。其中,该通信装置1000可以为芯片系统。本申请实施例中,芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。FIG. 10 shows a communication apparatus 1000 provided by an embodiment of the present application. The communication apparatus 1000 may be a terminal device, which can implement the function of the first terminal device or the second terminal device in the method provided by the embodiment of the present application; the communication apparatus 1000 is also It may be a device capable of supporting the first terminal device or the second terminal device to implement the corresponding functions in the methods provided in the embodiments of the present application. Wherein, the communication apparatus 1000 may be a chip system. In this embodiment of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.
通信装置1000包括至少一个处理器1020,用于实现或用于支持通信装置1000实现本申请实施例提供的方法中第一终端设备或第二终端设备的功能。具体参见方法示例中的详细描述,此处不做赘述。The communication apparatus 1000 includes at least one processor 1020, which is configured to implement or support the communication apparatus 1000 to implement the function of the first terminal device or the second terminal device in the methods provided in the embodiments of this application. For details, refer to the detailed description in the method example, which is not repeated here.
通信装置1000还可以包括至少一个存储器1030,用于存储程序指令和/或数据。存储器1030和处理器1020耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器1020可能和存储器1030协同操作。处理器1020可能执行存储器1030中存储的程序指令和/或数据,以使得通信装置1000实现相应的方法。可选的,所述至少一个存储器中的至少一个可以包括于处理器中。Communication apparatus 1000 may also include at least one memory 1030 for storing program instructions and/or data. Memory 1030 is coupled to processor 1020 . The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1020 may cooperate with the memory 1030 . The processor 1020 may execute program instructions and/or data stored in the memory 1030 to cause the communication apparatus 1000 to implement the corresponding method. Optionally, at least one of the at least one memory may be included in the processor.
通信装置1000还可以包括通信接口1010,用于通过传输介质和其它设备进行通信,从而用于通信装置1000中的装置可以和其它设备进行通信。示例性地,当该通信装置为第一终端设备时,该其它设备为第二终端设备;或者,当该通信装置为第二终端设备时,该其它设备为第一终端设备。处理器1020可以利用通信接口1010收发数据。通信接口1010具体可以是收发器。例如,上述发送单元910和接收单元920构成通信接口1010。The communication apparatus 1000 may further include a communication interface 1010 for communicating with other devices through a transmission medium, so that the devices used in the communication apparatus 1000 may communicate with other devices. Exemplarily, when the communication device is the first terminal device, the other device is the second terminal device; or, when the communication device is the second terminal device, the other device is the first terminal device. The processor 1020 may utilize the communication interface 1010 to send and receive data. The communication interface 1010 may specifically be a transceiver. For example, the above-mentioned transmitting unit 910 and receiving unit 920 constitute the communication interface 1010 .
本申请实施例中不限定上述通信接口1010、处理器1020以及存储器1030之间的具体连接介质。示例性的,本申请实施例在图10中以存储器1030、处理器1020以及通信接口1010之间通过总线1040连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。 为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the communication interface 1010 , the processor 1020 , and the memory 1030 is not limited in this embodiment of the present application. Exemplarily, in the embodiment of the present application, the memory 1030, the processor 1020, and the communication interface 1010 are connected through a bus 1040 in FIG. 10, and the bus is represented by a thick line in FIG. A schematic illustration is provided, but not limited. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器1020可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor 1020 may be a general-purpose 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, or a discrete hardware component, which can realize Alternatively, each method, step, and logic block diagram disclosed in the embodiments of the present application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器1030可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。In this embodiment of the present application, the memory 1030 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), Such as random-access memory (random-access memory, RAM). Memory is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory in this embodiment of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.
需要说明的是,上述实施例中的通信装置可以是终端设备也可以是电路,也可以是应用于终端设备中的芯片或者其他具有上述终端设备功能的组合器件、部件等。当通信装置是终端设备时收发单元可以是收发器,可以包括天线和射频电路等,处理模块可以是处理器,例如:中央处理单元(central processing unit,CPU)。当通信装置是具有上述终端设备功能的部件时,收发单元可以是射频单元,处理模块可以是处理器。当通信装置是芯片系统时,收发单元可以是芯片系统的输入输出接口、处理模块可以是芯片系统的处理器。It should be noted that, the communication device in the above embodiment may be a terminal device or a circuit, and may also be a chip applied in the terminal device or other combined devices or components having the functions of the above-mentioned terminal device. When the communication device is a terminal device, the transceiver unit may be a transceiver, which may include an antenna and a radio frequency circuit, etc., and the processing module may be a processor, such as a central processing unit (central processing unit, CPU). When the communication device is a component having the functions of the above terminal equipment, the transceiver unit may be a radio frequency unit, and the processing module may be a processor. When the communication device is a chip system, the transceiver unit may be an input and output interface of the chip system, and the processing module may be a processor of the chip system.
图11示出了一种简化的终端设备的结构示意图。便于理解和图示方便,图11中,该终端设备以手机作为例子。如图11所示,终端设备包括处理器、存储器、射频电路、天线以及输入输出装置。处理器主要用于对通信协议以及通信数据进行处理,以及对该各单元进行控制,执行软件程序,处理软件程序的数据等。存储器主要用于存储软件程序和数据。射频电路主要用于基带信号与射频信号的转换以及对射频信号的处理。天线主要用于收发电磁波形式的射频信号。输入输出装置,例如触摸屏、显示屏,键盘等主要用于接收用户输入的数据以及对用户输出数据。需要说明的是,有些种类的设备可以不具有输入输出装置。FIG. 11 shows a schematic structural diagram of a simplified terminal device. For the convenience of understanding and illustration, in FIG. 11 , the terminal device takes a mobile phone as an example. As shown in FIG. 11 , the terminal device includes a processor, a memory, a radio frequency circuit, an antenna, and an input and output device. The processor is mainly used to process the communication protocol and communication data, control each unit, execute the software program, process the data of the software program, and so on. The memory is mainly used to store software programs and data. The radio frequency circuit is mainly used for the conversion of the baseband signal and the radio frequency signal and the processing of the radio frequency signal. Antennas are mainly used to send and receive radio frequency signals in the form of electromagnetic waves. Input and output devices, such as touch screens, display screens, and keyboards, are mainly used to receive data input by users and output data to users. It should be noted that some types of equipment may not have input and output devices.
当需要发送数据时,处理器对待发送的数据进行基带处理后,输出基带信号至射频电路,射频电路将基带信号进行射频处理后将射频信号通过天线以电磁波的形式向外发送。当有数据发送到该设备时,射频电路通过天线接收到射频信号,将射频信号转换为基带信号,并将基带信号输出至处理器,处理器将基带信号转换为数据并对该数据进行处理。为便于说明,图11中仅示出了一个存储器和处理器。在实际的设备产品中,可以存在一个或多个处理器和一个或多个存储器。存储器也可以称为存储介质或者存储设备等。存储器可以是独立于处理器设置,也可以是与处理器集成在一起,本申请实施例对此不做限制。When data needs to be sent, the processor performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit. The radio frequency circuit performs radio frequency processing on the baseband signal and sends the radio frequency signal through the antenna in the form of electromagnetic waves. When data is sent to the device, the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor, which converts the baseband signal into data and processes the data. For ease of illustration, only one memory and processor are shown in FIG. 11 . In an actual device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device or the like. The memory may be set independently of the processor, or may be integrated with the processor, which is not limited in this embodiment of the present application.
在本申请实施例中,可以将具有收发功能的天线和射频电路视为该装置的收发单元,将具有处理功能的处理器视为该装置的处理单元。如图11所示,该装置包括收发单元1110和处理单元1120。收发单元1110也可以称为收发器、收发机、收发装置等。处理单元1120也可以称为处理器,处理单板,处理模块、处理装置等。可选的,可以将收发单元1110中用于实现接收功能的器件视为接收单元,将收发单元1110中用于实现发送功能的器件视为发送单元,即收发单元1110包括接收单元和发送单元。收发单元1110有时也可以称为收发机、收发器、或收发电路等。接收单元有时也可以称为接收机、接收器、或接收电路 等。发送单元有时也可以称为发射机、发射器或者发射电路等。In the embodiments of the present application, the antenna and the radio frequency circuit with a transceiver function may be regarded as the transceiver unit of the apparatus, and the processor with the processing function may be regarded as the processing unit of the apparatus. As shown in FIG. 11 , the apparatus includes a transceiver unit 1110 and a processing unit 1120 . The transceiver unit 1110 may also be referred to as a transceiver, a transceiver, a transceiver, or the like. The processing unit 1120 may also be referred to as a processor, a processing board, a processing module, a processing device, and the like. Optionally, the device for implementing the receiving function in the transceiver unit 1110 may be regarded as a receiving unit, and the device for implementing the transmitting function in the transceiver unit 1110 may be regarded as a transmitting unit, that is, the transceiver unit 1110 includes a receiving unit and a transmitting unit. The transceiver unit 1110 may also be sometimes referred to as a transceiver, a transceiver, or a transceiver circuit or the like. The receiving unit may also sometimes be referred to as a receiver, receiver, or receiving circuit, or the like. The transmitting unit may also sometimes be referred to as a transmitter, a transmitter, or a transmitting circuit, or the like.
应理解,收发单元1110用于执行上述方法实施例中终端设备的发送操作和接收操作,处理单元1120用于执行上述方法实施例中终端设备上除了收发操作之外的其他操作。It should be understood that the transceiving unit 1110 is configured to perform the sending and receiving operations of the terminal device in the above method embodiments, and the processing unit 1120 is configured to perform other operations on the terminal device in the above method embodiments except the transceiving operations.
例如,在一种实现方式中,收发单元1110可以用于执行图6所示的实施例中的S630,和/或用于支持本文所描述的技术的其它过程。For example, in one implementation, the transceiver unit 1110 may be used to perform S630 in the embodiment shown in FIG. 6, and/or to support other processes of the techniques described herein.
又例如,在一种实现方式中,收发单元1110可以用于执行图7所示的实施例中的S720和S740,和/或用于支持本文所描述的技术的其它过程。For another example, in one implementation, the transceiver unit 1110 may be configured to perform S720 and S740 in the embodiment shown in FIG. 7 , and/or other processes for supporting the techniques described herein.
当该通信装置为芯片类的装置或者电路时,该装置可以包括收发单元和处理单元。其中,所述收发单元可以是输入输出电路和/或通信接口;处理单元为集成的处理器或者微处理器或者集成电路。When the communication device is a chip-type device or circuit, the device may include a transceiver unit and a processing unit. The transceiver unit may be an input/output circuit and/or a communication interface; the processing unit may be an integrated processor, a microprocessor or an integrated circuit.
本申请实施例还提供一种通信系统,具体的,通信系统可以包括第一终端设备和第二终端设备,或者还可以包括更多个终端设备。示例性的,通信系统包括用于实现上述图4、图5和图7的相关功能的第一终端设备和第二终端设备,或者该通信系统包括用于实现上述图4、图5和图8的相关功能的第一终端设备和第二终端设备,或者该通信系统包括用于实现上述图4、图6和图7的相关功能的第一终端设备和第二终端设备,或者该通信系统包括用于实现上述图4、图6和图8的实施例相关功能的第一终端设备和第二终端设备。An embodiment of the present application further provides a communication system. Specifically, the communication system may include a first terminal device and a second terminal device, or may further include more terminal devices. Exemplarily, the communication system includes a first terminal device and a second terminal device for implementing the relevant functions of the above-mentioned FIG. 4 , FIG. 5 and FIG. The first terminal device and the second terminal device with the relevant functions, or the communication system includes the first terminal device and the second terminal device for implementing the relevant functions of the above-mentioned FIG. 4 , FIG. 6 and FIG. 7 , or the communication system includes A first terminal device and a second terminal device for implementing the functions related to the embodiments of FIG. 4 , FIG. 6 , and FIG. 8 .
本申请实施例中还提供一种计算机可读存储介质,包括计算机程序或指令,当其被运行时,例如,被计算机或处理器运行时,使得图4至图8任何一个中的第一终端设备或第二终端设备执行的方法被执行。Embodiments of the present application also provide a computer-readable storage medium, including a computer program or instruction, which, when executed, for example, by a computer or a processor, enables the first terminal in any one of FIG. 4 to FIG. 8 The method performed by the device or the second terminal device is performed.
本申请实施例中还提供一种计算机程序产品,包括指令,当其被运行时,例如,被计算机或处理器运行时,使得图4至图8任何一个中的第一终端设备或第二终端设备执行的方法被执行。Embodiments of the present application also provide a computer program product, including instructions that, when executed, for example, by a computer or a processor, make the first terminal device or the second terminal in any one of FIGS. 4 to 8 . The method performed by the device is executed.
本申请实施例提供了一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现前述方法中第一终端设备或第二终端设备的功能。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。An embodiment of the present application provides a chip system, where the chip system includes a processor, and may also include a memory, for implementing the functions of the first terminal device or the second terminal device in the foregoing method. The chip system can be composed of chips, and can also include chips and other discrete devices.
应理解,本申请实施例中的术语“系统”和“网络”可被互换使用。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c或a-b-c,其中a,b,c可以是单个,也可以是多个。It should be understood that the terms "system" and "network" in the embodiments of the present application may be used interchangeably. "At least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c may represent: a, b, c, a-b, a-c, b-c or a-b-c, wherein a, b, c may be single or multiple.
以及,除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。例如,第一消息和第二消息,只是为了区分不同的消息,而并不是表示这两种消息的优先级、发送顺序或者重要程度等的不同。And, unless stated to the contrary, the ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, sequence, priority or priority of multiple objects. Importance. For example, the first message and the second message are only for distinguishing different messages, but do not indicate the difference in priority, sending order, or importance of the two kinds of messages.
应理解,本申请实施例中提及的处理器可以是CPU,还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器 或者该处理器也可以是任何常规的处理器等。It should be understood that the processor mentioned in the embodiments of the present application may be a CPU, and may also be other general-purpose processors, digital signal processors (digital signal processors, DSPs), application specific integrated circuits (application specific integrated circuits, ASICs), off-the-shelf processors Field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
还应理解,本申请实施例中提及的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It should also be understood that the memory mentioned in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory may be random access memory (RAM), which acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM).
需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件时,存储器(存储模块)集成在处理器中。It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, the memory (storage module) is integrated in the processor.
应注意,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be noted that the memory described herein is intended to include, but not be limited to, these and any other suitable types of memory.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请的实施例所述的流程或功能。所述计算机可以是通用计算机、专用计 算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can 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 program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. 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 downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, 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, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above are only specific implementations of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiments of the present application. Or alternatives, all should be covered within the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.

Claims (19)

  1. 一种侧行链路通信方法,其特征在于,所述方法包括:A sidelink communication method, characterized in that the method comprises:
    第一终端设备确定第一承载的分组数据汇聚协议PDCP COUNT即将发生翻转,所述第一承载是所述第一终端设备发起建立的与第二终端设备之间的侧行链路承载;The first terminal device determines that the packet data convergence protocol PDCP COUNT of the first bearer is about to be reversed, and the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established;
    所述第一终端设备发起与所述第二终端设备之间的针对所述第一承载的承载修改过程,或者所述第一终端设备发起与所述第二终端设备之间的密钥更新过程。The first terminal device initiates a bearer modification process with the second terminal device for the first bearer, or the first terminal device initiates a key update process with the second terminal device .
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端设备确定所述第一承载的PDCP COUNT即将发生翻转,包括:The method according to claim 1, wherein determining, by the first terminal device, that the PDCP COUNT of the first bearer is about to be reversed, comprising:
    所述第一终端设备接收来自所述第二终端设备的第一消息,其中,所述第一消息包括第一指示信息,所述第一指示信息指示所述第一承载的PDCP COUNT即将发生翻转;The first terminal device receives a first message from the second terminal device, wherein the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over ;
    所述第一终端设备基于所述第一指示信息确定所述第一承载的PDCP COUNT即将发生翻转;或者,The first terminal device determines that the PDCP COUNT of the first bearer is about to roll over based on the first indication information; or,
    所述第一终端设备的无线资源控制RRC层接收所述第一终端设备的PDCP层上报的第二指示信息,所述第二指示信息指示所述第一承载的PDCP COUNT即将发生翻转;The radio resource control RRC layer of the first terminal device receives second indication information reported by the PDCP layer of the first terminal device, where the second indication information indicates that the PDCP COUNT of the first bearer is about to be reversed;
    所述第一终端设备基于所述第二指示信息确定所述第一承载的PDCP COUNT即将发生翻转。The first terminal device determines, based on the second indication information, that the PDCP COUNT of the first bearer is about to be rolled over.
  3. 根据权利要求2所述的方法,其特征在于,The method of claim 2, wherein:
    所述第一消息为PC5 RRC消息或PDCP控制协议数据单元,所述第一指示信息包括所述第一承载的承载标识或第一承载的逻辑信道标识。The first message is a PC5 RRC message or a PDCP control protocol data unit, and the first indication information includes a bearer identifier of the first bearer or a logical channel identifier of the first bearer.
  4. 根据权利要求1~3任一项所述的方法,其特征在于,所述第一终端设备发起与所述第二终端设备之间的针对所述第一承载的承载修改过程,包括:The method according to any one of claims 1 to 3, wherein the first terminal device initiating a bearer modification process for the first bearer with the second terminal device comprises:
    所述第一终端设备向所述第二终端设备发送第二消息,所述第二消息包括所述第一承载的承载标识和第一逻辑信道标识,所述第一承载的修改后的逻辑信道标识为所述第一逻辑信道标识。The first terminal device sends a second message to the second terminal device, where the second message includes the bearer identifier of the first bearer and the first logical channel identifier, the modified logical channel of the first bearer The identifier is the first logical channel identifier.
  5. 根据权利要求1~4任一项所述的方法,其特征在于,所述第一终端设备发起与所述第二终端设备之间的针对所述第一承载的承载修改过程之前,还包括:The method according to any one of claims 1 to 4, wherein before the first terminal device initiates a bearer modification process with the second terminal device for the first bearer, the method further comprises:
    所述第一终端设备确定存在可用的逻辑信道标识,其中,所述可用的逻辑信道标识是没有与当前的密钥一起使用过的逻辑信道标识。The first terminal device determines that there is an available logical channel identifier, wherein the available logical channel identifier is a logical channel identifier that has not been used with the current key.
  6. 根据权利要求1~3任一项所述的方法,其特征在于,所述第一终端设备发起与所述第二终端设备之间的密钥更新过程,包括:The method according to any one of claims 1 to 3, wherein the first terminal device initiates a key update process with the second terminal device, comprising:
    所述第一终端设备向所述第二终端设备发送第三消息,所述第三消息用于请求进行密钥更新。The first terminal device sends a third message to the second terminal device, where the third message is used to request key update.
  7. 根据权利要求6所述的方法,其特征在于,在所述第一终端设备向第二终端设备发送所述第三消息之前,还包括,The method according to claim 6, wherein before the first terminal device sends the third message to the second terminal device, the method further comprises:
    所述第一终端设备的RRC层向所述第一终端设备的PC5-S层上报第三指示信息,所述第三指示信息用于请求密钥更新;The RRC layer of the first terminal device reports third indication information to the PC5-S layer of the first terminal device, where the third indication information is used to request key update;
    所述第一终端设备的PC5-S层基于所述第三指示信息确定发起与所述第二终端设备之间的密钥更新过程。The PC5-S layer of the first terminal device determines to initiate a key update process with the second terminal device based on the third indication information.
  8. 根据权利要求7所述的方法,其特征在于,The method of claim 7, wherein:
    所述第三指示信息包括原因值,所述原因值指示PDCP COUNT发生翻转,或不存在可用的逻辑信道标识。The third indication information includes a cause value, and the cause value indicates that the PDCP COUNT is reversed, or that there is no available logical channel identifier.
  9. 根据权利要求1、6、7或8所述的方法,其特征在于,所述第一终端设备发起与所述第二终端设备之间的密钥更新过程之前,还包括:The method according to claim 1, 6, 7 or 8, wherein before the first terminal device initiates a key update process with the second terminal device, the method further comprises:
    所述第一终端设备确定不存在可用的逻辑信道标识,其中,所述可用的逻辑信道标识是没有与当前的密钥一起使用过的逻辑信道标识。The first terminal device determines that there is no available logical channel identifier, where the available logical channel identifier is a logical channel identifier that has not been used with the current key.
  10. 一种侧行链路通信方法,其特征在于,所述方法包括:A sidelink communication method, characterized in that the method comprises:
    第二终端设备接收来自第一终端设备的第二消息,所述第二消息包括第一承载的承载标识和第一逻辑信道标识,所述第二消息用于将所述第一承载的逻辑信道标识修改为所述第一逻辑信道标识,所述第一承载是所述第一终端设备发起建立的与所述第二终端设备之间的侧行链路承载;The second terminal device receives a second message from the first terminal device, where the second message includes a bearer identifier of the first bearer and a first logical channel identifier, and the second message is used to convert the logical channel of the first bearer The identifier is modified to the first logical channel identifier, and the first bearer is a sidelink bearer between the first terminal device and the second terminal device initiated and established;
    所述第二终端设备基于所述第二消息将所述第一承载的逻辑信道标识修改为所述第一逻辑信道标识。The second terminal device modifies the logical channel identifier of the first bearer to the first logical channel identifier based on the second message.
  11. 根据权利要求10所述的方法,其特征在于,在所述第二终端设备接收来自所述第一终端设备的所述第二消息之前,还包括:The method according to claim 10, wherein before the second terminal device receives the second message from the first terminal device, the method further comprises:
    所述第二终端设备确定所述第一承载的分组数据汇聚协议PDCP COUNT即将发生翻转;The second terminal device determines that the PDCP COUNT of the first bearer is about to be flipped;
    所述第二终端设备向所述第一终端设备发送第一消息,其中,所述第一消息包括第一指示信息,所述第一指示信息指示所述第一承载的PDCP COUNT即将发生翻转。The second terminal device sends a first message to the first terminal device, where the first message includes first indication information, and the first indication information indicates that the PDCP COUNT of the first bearer is about to be rolled over.
  12. 根据权利要求11所述的方法,其特征在于,所述第二终端设备确定所述第一承载的PDCP COUNT即将发生翻转,包括:The method according to claim 11, wherein determining, by the second terminal device, that the PDCP COUNT of the first bearer is about to be reversed, comprising:
    所述第二终端设备的无线资源控制RRC层接收所述第二终端设备的PDCP层上报的第二指示信息,所述第二指示信息指示所述第一承载的PDCP COUNT即将发生翻转,所述第二终端设备根据所述第二指示信息确定所述第一承载的PDCP COUNT即将发生翻转。The radio resource control RRC layer of the second terminal device receives the second indication information reported by the PDCP layer of the second terminal device, the second indication information indicates that the PDCP COUNT of the first bearer is about to be inverted, the The second terminal device determines, according to the second indication information, that the PDCP COUNT of the first bearer is about to be rolled over.
  13. 根据权利要求12所述的方法,其特征在于,The method of claim 12, wherein:
    所述第一消息为PC5 RRC消息或PDCP控制协议数据单元,所述第一指示信息包括所述第一承载的承载标识或第一承载的逻辑信道标识。The first message is a PC5 RRC message or a PDCP control protocol data unit, and the first indication information includes a bearer identifier of the first bearer or a logical channel identifier of the first bearer.
  14. 根据权利要求10~13任一项所述的方法,其特征在于,还包括,The method according to any one of claims 10 to 13, characterized in that, further comprising:
    所述第二终端设备接收来自于所述第一终端设备的第三消息,所述第三消息用于请求进行密钥更新;receiving, by the second terminal device, a third message from the first terminal device, where the third message is used to request key update;
    所述第二终端设备基于所述第三消息对密钥进行更新。The second terminal device updates the key based on the third message.
  15. 一种通信装置,用于执行如权利要求1至14项任一项所述的方法。A communication device for performing the method of any one of claims 1 to 14.
  16. 一种通信装置,其特征在于,包括至少一个处理器和存储器;A communication device, comprising at least one processor and a memory;
    所述存储器,用于存储程序代码;the memory for storing program codes;
    所述处理器,用于执行所述程序代码,以使所述通信装置执行如权利要求1~14任一项所述的方法。The processor is configured to execute the program code, so that the communication device executes the method according to any one of claims 1-14.
  17. 一种通信系统,其特征在于,所述通信系统包括实现如权利要求1~9任一所述通信方法的通信装置和/或实现如权利要求10~14任一所述通信方法的通信装置。A communication system, characterized in that, the communication system comprises a communication device implementing the communication method according to any one of claims 1-9 and/or a communication device implementing the communication method according to any one of claims 10-14.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序或指令,所述计算机程序或指令当被执行时,使得如权利要求1~14中任一项所述的 方法被执行。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program or instruction, and when executed, the computer program or instruction makes the computer program or instruction described in any one of claims 1 to 14. method is executed.
  19. 一种计算机程序产品,其特征在于,所述计算机程序产品包括指令,当所述指令被执行时,使得如权利要求1~14任一项所述的方法被实现。A computer program product, characterized in that the computer program product includes instructions that, when executed, cause the method according to any one of claims 1 to 14 to be implemented.
PCT/CN2020/139044 2020-12-24 2020-12-24 Sidelink communication method, apparatus and system WO2022133912A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/139044 WO2022133912A1 (en) 2020-12-24 2020-12-24 Sidelink communication method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/139044 WO2022133912A1 (en) 2020-12-24 2020-12-24 Sidelink communication method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2022133912A1 true WO2022133912A1 (en) 2022-06-30

Family

ID=82157199

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/139044 WO2022133912A1 (en) 2020-12-24 2020-12-24 Sidelink communication method, apparatus and system

Country Status (1)

Country Link
WO (1) WO2022133912A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024027560A1 (en) * 2022-08-05 2024-02-08 大唐移动通信设备有限公司 Radio bearer processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413005A (en) * 2017-08-17 2019-03-01 中兴通讯股份有限公司 Data stream transmitting method of controlling security and device
US20200008266A1 (en) * 2018-06-29 2020-01-02 Asustek Computer Inc. Method and apparatus of handling sidelink reception in a wireless communication system
CN110769418A (en) * 2018-07-26 2020-02-07 维沃移动通信有限公司 Key updating method, terminal and network side equipment
CN110771191A (en) * 2017-06-23 2020-02-07 摩托罗拉移动有限责任公司 Method and apparatus for implementing bearer-specific changes as part of a connection reconfiguration affecting a security key being used
CN111971986A (en) * 2018-04-05 2020-11-20 瑞典爱立信有限公司 Configuring radio resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110771191A (en) * 2017-06-23 2020-02-07 摩托罗拉移动有限责任公司 Method and apparatus for implementing bearer-specific changes as part of a connection reconfiguration affecting a security key being used
CN109413005A (en) * 2017-08-17 2019-03-01 中兴通讯股份有限公司 Data stream transmitting method of controlling security and device
CN111971986A (en) * 2018-04-05 2020-11-20 瑞典爱立信有限公司 Configuring radio resources
US20200008266A1 (en) * 2018-06-29 2020-01-02 Asustek Computer Inc. Method and apparatus of handling sidelink reception in a wireless communication system
CN110769418A (en) * 2018-07-26 2020-02-07 维沃移动通信有限公司 Key updating method, terminal and network side equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024027560A1 (en) * 2022-08-05 2024-02-08 大唐移动通信设备有限公司 Radio bearer processing method and device

Similar Documents

Publication Publication Date Title
CN108366369B (en) Method for data secure transmission, access network, terminal and core network equipment
JP4987895B2 (en) Method and communication apparatus for improving RRC connection process
US9794836B2 (en) Methods and apparatus for differencitating security configurations in a radio local area network
WO2019029691A1 (en) Data integrity protection method and apparatus
CN110891324B (en) RRC connection method, device and system
WO2021164720A1 (en) Re-establishment method and communication apparatus
WO2022110168A1 (en) Communication configuration method and communication apparatus
WO2020238957A1 (en) Verification method and apparatus
WO2022036555A1 (en) Relay transmission method, relay terminal and remote terminal
TW201914339A (en) Apparatus and method for processing bearer type change for radio bearer
TW201911901A (en) Data transmission method, terminal device and network device
WO2018166338A1 (en) Key update method and apparatus
WO2018014154A1 (en) Rrc connection re-establishment method and device
WO2022133912A1 (en) Sidelink communication method, apparatus and system
US20210377756A1 (en) Communications Method, Communications Apparatus, and Computer-Readable Storage Medium
WO2017113287A1 (en) Method, base station, terminal and gateway for data transmission
WO2019213925A1 (en) Key update method, device, and storage medium
JP2022511577A (en) Wireless communication and equipment
WO2023273880A1 (en) Transmission mode switching method and related apparatus
WO2021238813A1 (en) Method and apparatus for obtaining key
WO2023050373A1 (en) Communication method, apparatus and system
WO2022027341A1 (en) Wireless communication method and terminal device
US20230328825A1 (en) Configuration reset method and apparatus, and terminal device
CN113573310B (en) Communication method, device and system for updating key
WO2023134531A1 (en) Method and apparatus for transmitting data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20966484

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20966484

Country of ref document: EP

Kind code of ref document: A1