Wireless communication method and communication device

By using one-bit indication information in the data packet of the V2X system, the problem of high resource overhead in the security key negotiation and update process between terminal devices is solved, and the system efficiency is improved.

CN113556703BActive Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010260561.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-03
Publication Date
2024-09-24
Estimated Expiration
2040-04-03

AI Technical Summary

Technical Problem

In the V2X system, during the security key negotiation and update process between terminal devices, the existing technology has the problem of excessive resource overhead, especially when the security context identifier is carried in the data packet, resulting in resource waste and low efficiency.

Method used

By carrying one bit of indication information in the PDCP PDU header of the data packet, it indicates whether the security context has changed or whether it contains a key identifier, thereby reducing the number of information bits carried and saving resource overhead.

Benefits of technology

The efficiency of the security key negotiation and update process between terminal devices is achieved, resource overhead is reduced, and system efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113556703B
    Figure CN113556703B
Patent Text Reader

Abstract

The embodiment of the present application provides a wireless communication method, which can be applied to a V2X communication system, the method comprising: a first terminal device generates a first data packet, the first data packet contains indication information, the indication information is used to indicate whether the security context used to send the first data packet has changed, the first terminal device sends the first data packet to the second terminal device via an edge link, the edge link is a wireless direct communication link between the first terminal device and the second terminal device. By implementing the technical solution of the embodiment of the present application, the number of information bits carried in the PDCP PDU heaer can be reduced, saving resource overhead.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and more specifically, to a wireless communication method and a communication device. Background Art

[0002] Vehicle to everything (V2X) has the characteristics of wide application space, great industrial potential and strong social benefits. It is of great significance to promote the innovative development of automobile and information communication industries, build new models and new formats of automobile and transportation services, promote the innovation and application of autonomous driving technology, and improve traffic efficiency and safety. Applications of V2X system include: vehicle to vehicle (V2V), vehicle to roadside infrastructure (V2I), vehicle to pedestrian (V2P) or vehicle to network (V2N). The 3rd Generation Partnership Project (3GPP) rd The 3GPP (3rd Generation Partnership Project) has developed relevant communication standards for V2X in the long term evolution (LTE) system.

[0003] V2X is also a hot topic in the new radio (NR) system. Currently, in the NR system, V2X terminals can work within the coverage of the mobile communication network (in-coverage, IC), or outside the coverage of the mobile communication network (out-coverage). Accordingly, V2X terminals can establish side links (sidelink, SL) between V2X terminals under the control of the network, or V2X terminals can autonomously establish sidelinks between V2X terminals. Figure 1 As shown, Figure 1 This is a schematic system architecture diagram of a communication system 100 applicable to an embodiment of the present application. Taking the V2X system as an example, the communication system 100 may include at least two terminal devices: a first terminal device and a second terminal device (such as a vehicle or a vehicle-mounted communication device). A side link can be established between the two terminal devices and direct wireless communication can be performed through the side link. A terminal device can establish a side link with one or more terminal devices. Figure 1The first terminal device and the second terminal device shown in the figure can respectively perform uplink or downlink communication with the network device. When the first terminal device and the second terminal device perform side link communication, encryption and / or integrity verification are required when security protection is required. Therefore, efficient security key negotiation and update are required between the two terminal devices. Summary of the invention

[0004] The present application provides a wireless communication method and a communication device, in order to reduce the number of information bits carried in a data packet, for example, reducing the number of information bits carried in a header of a packet data convergence layer protocol protocol data unit PDCP PDU, so as to save resource overhead, thereby facilitating efficient negotiation and update of security keys between two terminal devices.

[0005] In a first aspect, a wireless communication method is provided. The method can be executed by a first terminal device or a module (such as a chip device) configured in (or used for) the first terminal device. The method is described below by taking the execution of the first terminal device as an example.

[0006] The method includes: the first terminal device generates a first data packet, the first data packet contains indication information, the indication information indicates whether the security context used by the first data packet has changed; the first terminal device sends the first data packet through an edge link, the edge link is a wireless direct communication link between the first terminal device and a second terminal device. A possible technical effect is that through this solution, it is possible to avoid carrying a 2-byte security context identifier in a data packet, thereby saving resource overhead.

[0007] In an optional design, the first data packet is a packet data convergence layer protocol data unit (PDCP PDU). In an optional design, the PDCP PDU header includes the indication information.

[0008] In an optional design, the indication information indicates whether the security context used by the first data packet has changed, including any one of the following situations: the indication information indicates that the security context used by the first data packet has changed; the indication information indicates that the security context used by the first data packet has not changed; the indication information indicates that the first data packet uses an old security context; or, the indication information indicates that the first data packet uses a new security context.

[0009] The above technical scheme has the following technical effects: since the PDCP PDU header sent by the first terminal device at the sending end carries indication information (for example, 1 bit) on whether the security context has changed, instead of carrying a 2-byte security context identifier, the number of information bits carried in the PDCP PDU heaer is reduced, resource overhead is saved, and the process of negotiating and updating the security key between the two terminal devices is more efficient.

[0010] In a second aspect, a communication method is provided. The method can be executed by a second terminal device or a module (such as a chip device) configured in (or used for) the second terminal device. The following description takes the method executed by the second terminal device as an example.

[0011] The method includes: the second terminal device receives a first data packet through an edge link, the first data packet contains indication information, the indication information indicates whether the security context used by the first data packet has changed, and the edge link is a wireless direct communication link between the second terminal device and the first terminal device; the second terminal device determines whether the security context used by the first data packet has changed through the indication information. A possible technical effect is that through this solution, it is possible to avoid carrying a 2-byte security context identifier in a data packet, thereby saving resource overhead.

[0012] In an optional design, the first data packet is a packet data convergence layer protocol data unit (PDCP PDU). In an optional design, the PDCP PDU header includes the indication information.

[0013] In an optional design, the indication information indicates whether the security context used by the first data packet has changed, including any one of the following situations: the indication information indicates that the security context used by the first data packet has changed; the indication information indicates that the security context used by the first data packet has not changed; the indication information indicates that the first data packet uses an old security context; or, the indication information indicates that the first data packet uses a new security context.

[0014] Corresponding to the first aspect, through the technical solution of the second aspect, the number of information bits carried in the PDCP PDU heaer can be reduced, resource overhead can be saved, and the process of negotiating and updating the security key between the two terminal devices can be more efficient.

[0015] According to a third aspect, a communication method is provided. The method may be executed by a first terminal device or a module (such as a chip device) configured in (or used for) the first terminal device. The method is described below by taking the execution of the method by the first terminal device as an example.

[0016] The method includes: the first terminal device generates a first data packet, the first data packet includes indication information, and the indication information indicates whether the first data packet includes a secret key identifier; the first terminal device sends the first data packet through an edge link, and the edge link is a wireless direct communication link between the first terminal device and a second terminal device. Based on this solution, a possible technical effect is that by indicating whether the first data packet includes a secret key identifier, it is possible to avoid carrying a 2-byte security context identifier in the data packet, thereby saving resource overhead.

[0017] In an optional design, the first data packet is a packet data convergence layer protocol data unit (PDCP PDU). In an optional design, the PDCP PDU header includes the indication information.

[0018] In an optional design, the indication information indicates whether the first data packet contains a key identifier, including: the indication information indicates that the first data packet contains a key identifier; or the indication information indicates that the first data packet does not contain a key identifier.

[0019] In a fourth aspect, a communication method is provided. The method can be executed by a second terminal device or a module (such as a chip device) configured in (or used for) the second terminal device. The following description is given by taking the execution of the method by the second terminal device as an example.

[0020] The method includes: a second terminal device receives a first data packet through an edge link, the first data packet includes indication information, the indication information indicates whether the first data packet includes a secret key identifier, and the edge link is a wireless direct communication link between the second terminal device and the first terminal device; the second terminal device determines whether the first data packet includes a secret key identifier through the indication information. Based on this solution, a possible technical effect is that by indicating whether the first data packet includes a secret key identifier, it is possible to avoid carrying a 2-byte security context identifier in the data packet, thereby saving resource overhead.

[0021] In an optional design, the first data packet is a packet data convergence layer protocol data unit (PDCP PDU). In an optional design, the PDCP PDU header includes the indication information, and the indication information may be 1 bit.

[0022] In an optional design, the indication information indicates whether the first data packet contains a key identifier, including: the indication information indicates that the first data packet contains a key identifier; or the indication information indicates that the first data packet does not contain a key identifier.

[0023] The technical effects brought about by the technical solution provided by the third aspect and / or the fourth aspect include: the transmitting UE can indicate whether the PDCP header carries a key id of 2 bytes by carrying indication information (such as a bit) in the PDCP PDU header, thereby avoiding the need for the transmitting UE to always carry a 2-byte security context identifier when sending a data packet. For example, when there is a security context ambiguity period, carrying the key id in the PDCP PDU header can solve the security context ambiguity problem faced by the receiving UE when receiving data, or, when the transmitting UE and the receiving UE are performing normal transmission at other times, not carrying the key id in the DCP PDU header can improve the efficiency of resource utilization.

[0024] In a fifth aspect, a communication method is provided. The method can be executed by a first terminal device or a module (such as a chip device) configured in (or used for) the first terminal device. The following description will be given by taking the execution of the method by the first terminal device as an example.

[0025] The method includes: the first terminal device receives a first message from a network device, the first message includes first indication information, and the first indication information indicates whether a data packet sent through an edge link carries a key identifier; the first terminal device determines whether the data packet sent through the edge link carries a key identifier based on the first indication information, and the edge link is a wireless direct communication link between the first terminal device and a second terminal device.

[0026] In an optional design, the first indication information indicates whether the data packet sent through the edge link carries a key identifier, including: the first indication information indicates that the data packet sent by the first terminal device through the edge link carries a key identifier, or the first indication information indicates that the data packet sent by the first terminal device through the edge link does not carry a key identifier.

[0027] In an optional design, in combination with the fifth aspect or as an independent technical solution, the first terminal device may send a second message to the network device, the second message including second indication information, the second indication information indicating that the first terminal device can carry a key identifier in a data packet sent by the first terminal device through the side link, or the second indication information indicates that the first terminal device cannot carry a key identifier in a data packet sent by the first terminal device through the side link.

[0028] In an optional design, in combination with the fifth aspect or as an independent technical solution, the first terminal device may send a third message to the network device, wherein the third message includes third indication information, and the third indication information indicates that the first terminal device starts to carry a key identifier in the data packets sent through the side link, or the third indication information indicates that the first terminal device starts not to carry a key identifier in the data packets sent through the side link.

[0029] In a sixth aspect, a communication method is provided. The method can be executed by a network device or a module (such as a chip device) configured in (or used for) a network device. The following description will be given using the method executed by a network device as an example.

[0030] The method includes: the network device sends a first message to a first terminal device, the first message includes first indication information, the first indication information indicates whether a data packet sent through an edge link carries a key identifier, so that the first terminal device determines whether the data packet sent through the edge link carries a key identifier based on the first indication information, and the edge link is a wireless direct communication link between the first terminal device and the second terminal device.

[0031] In an optional design, the first indication information indicates whether the data packet sent through the edge link carries a key identifier, including: the first indication information indicates that the data packet sent by the first terminal device through the edge link needs to carry a key identifier, or the first indication information indicates that the data packet sent by the first terminal device through the edge link does not need to carry a key identifier.

[0032] In an optional design, in combination with the sixth aspect or as an independent technical solution, the network device may receive a second message from the first terminal device, the second message including second indication information, the second indication information indicating that the first terminal device can carry a key identifier in a data packet sent by the first terminal device via the side link, or the second indication information indicating that the first terminal device cannot carry a key identifier in a data packet sent by the first terminal device via the side link.

[0033] In an optional design, in combination with the sixth aspect or as an independent technical solution, the network device receives a third message from the first terminal device, the third message including third indication information, the third indication information indicating that the first terminal device starts to carry a key identifier in data packets sent through the side link, or the third indication information indicates that the first terminal device starts not to carry a key identifier in data packets sent through the side link.

[0034] In the seventh aspect, a communication method is provided. The method can be executed by a second terminal device or a module (such as a chip device) configured in (or used for) the second terminal device. The following description is given by taking the execution of the method by the second terminal device as an example.

[0035] The method includes: the second terminal device receives a fourth message from a network device, the fourth message includes fourth indication information, and the fourth indication information indicates whether a data packet received through an edge link carries a secret key identifier; the second terminal device determines whether the data packet received through the edge link carries a secret key identifier based on the fourth indication information, and the edge link is a wireless direct communication link between the second terminal device and the first terminal device.

[0036] In an optional design, the fourth indication information indicates whether the data packet received through the side link carries a key identifier, including: the fourth indication information indicates that the data packet received by the first terminal device through the side link carries a key identifier, or the fourth indication information indicates that the data packet received by the first terminal device through the side link does not carry a key identifier.

[0037] By implementing the technical solutions provided in the fifth, sixth or seventh aspects above, the technical effects brought about include: the sending terminal device can determine whether to carry the key id in the sent data packet (such as the PDCP PDU header) based on the indication information or configuration information sent by the network side, and the receiving terminal device can also determine whether to carry the key id in the received data packet (such as the PDCP PDU header) based on the indication information or configuration information sent by the network side. The network device can also be flexibly configured based on the feedback from the sending terminal device, thereby increasing flexibility.

[0038] In an eighth aspect, a communication device is provided, comprising at least one processor. The at least one processor is coupled to a memory, the memory is used to store programs or instructions, and when the at least one processor executes the program or instructions, it can be used to execute the method in the first aspect to the seventh aspect and any possible implementation thereof. Optionally, the communication device also includes the memory. Optionally, the communication device also includes a communication interface, and the processor is coupled to the communication interface.

[0039] In one implementation, when the communication device is the first terminal device, the second terminal device or the network device, the communication interface may be a transceiver, or an input / output interface.

[0040] In another implementation, when the communication device is a chip configured in the first terminal device, the second terminal device or the network device, the communication interface may be an input / output interface.

[0041] Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0042] In a ninth aspect, a processor is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first to seventh aspects.

[0043] In the specific implementation process, the processor can be one or more chips, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.

[0044] In a tenth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of the first to seventh aspects.

[0045] Optionally, the processor is one or more and the memory is one or more.

[0046] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0047] In the specific implementation process, the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated on the same chip as the processor or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.

[0048] It should be understood that the related data interaction process, such as sending indication information, can be a process of outputting indication information from the processor, and receiving indication information can be a process of receiving indication information by the processor. Specifically, the data output by the processor can be output to the transmitter, and the input data received by the processor can come from the receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.

[0049] The processing device in the tenth aspect may be one or more chips. The processor in the processing device may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated in the processor or located outside the processor and exist independently.

[0050] In the eleventh aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first to seventh aspects above.

[0051] In the twelfth aspect, a computer-readable medium is provided, which stores a computer program (also referred to as code, or instruction) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first to seventh aspects above.

[0052] In a thirteenth aspect, a communication system is provided, which includes at least one of the aforementioned first terminal device, second terminal device or network device. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a schematic system architecture diagram of a communication system 100 applicable to an embodiment of the present application.

[0054] Figure 2 It is a schematic flow chart of a communication method 200 provided in an embodiment of the present application.

[0055] Figure 3 A schematic structural diagram of a PDCP header 300 provided in an embodiment of the present application.

[0056] Figure 4 A schematic structural diagram of a PDCP PDU 400 provided in an embodiment of the present application.

[0057] Figure 5 A schematic flow chart of a communication method 500 provided in an embodiment of the present application.

[0058] Figure 6a A schematic structural diagram of another PDCP PDU 600-a provided in an embodiment of the present application.

[0059] Figure 6b A schematic structural diagram of another PDCP PDU 600-b provided in an embodiment of the present application.

[0060] Figure 6c A schematic structural diagram of another PDCP PDU 600-c provided in an embodiment of the present application.

[0061] Figure 7 A schematic structural diagram of another PDCP PDU 700 provided in an embodiment of the present application.

[0062] Figure 8 It is a schematic flow chart of a communication method 800 provided in an embodiment of the present application.

[0063] Fig. 9 It is a schematic structural diagram of a communication device 900 provided in an embodiment of the present application.

[0064] Fig.10 It is a schematic structural diagram of a communication device 1000 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0066] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), fifth generation (5G) system or new radio (NR) system, vehicle-to-X V2X system, wherein the V2X system may include vehicle-to-network (V2N) system, vehicle-to-vehicle (V2V) system, vehicle-to-infrastructure (V2I) system, vehicle-to-pedestrian (V2P) system, etc., vehicle-to-vehicle communication long term evolution technology (LTE-V), Internet of Vehicle, machine type communication (MTC), Internet of Things (IoT), machine-to-machine communication long term evolution technology (Long Term Evolution-Vehicle, LTE-V). Machine, LTE-M), Machine to Machine (M2M), non-terrestrial network (NTN) system or other communication systems evolved in the future.

[0067] The V2X terminal or terminal device in the embodiments of the present application may also be referred to as user equipment (UE), access terminal, user unit, user 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 embodiments of the present application can be a mobile phone, a tablet computer, a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle-mounted communication device, a vehicle-mounted communication processing chip, a wearable device, a terminal device in a 5G network or a public land mobile communication network (public land mobile communication network) to be evolved in the future In addition, the terminal device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection. It should be understood that this application does not limit the specific form of the so-called V2X terminal or terminal device.

[0068] The technical solution in the embodiment of the present application can also be applied to network equipment, such as wireless base stations. The network equipment includes but is not limited to: evolved Node B (eNB), road side unit (RSU), independent base station for V2X services, access point (AP) in wireless fidelity (WIFI) system, wireless relay node, wireless backhaul node, transmission point (TP) or transmission and reception point (TRP), etc., and can also be gNB or transmission point (TRP or TP) in 5G (such as NR) system, or one or a group of antenna panels (including multiple antenna panels) of base stations in 5G system, or network nodes constituting gNB or transmission point, such as baseband unit (BBU), or distributed unit (DU), etc. Alternatively, the network equipment can also be a network side device or a chip in a network side device that provides communication services or communication control for terminal devices in the Internet of Vehicles. The network device can provide communication services or communication control functions for terminal devices within the wireless coverage it provides. For example, the terminal devices in a cellular cell communicate with the network device through the transmission resources (for example, frequency domain resources, time domain resources, etc.) allocated by the network device. The cell may belong to the network device referred to herein (for example, a macro base station or a dedicated base station for V2X services).

[0069] The following describes in detail the edge link communication method provided by the embodiment of the present application in conjunction with the accompanying drawings. In general, the edge link communication method or device provided by the embodiment of the present application can be used for example Figure 1 A V2X communication system 100 is shown.

[0070] Figure 2 2 is a schematic flow chart of a communication method 200 for an edge link provided in an embodiment of the present application. The communication method 200 may be performed through an edge link between a first terminal device and a second terminal device. Figure 2 As shown, the communication method 200 includes the following operations:

[0071] Operation 201: The first terminal device sends a direct rekey request (Direct RekeyRequest) to the second terminal device, which includes a long term key identifier (Long Term ID), a re-authentication flag (Re-auth flag), the security capabilities of the first terminal device (UE_1 security capabilities), a random number (Nonce_1, an arbitrary or non-repeating random number used only once), KD-sess The MSB of K D-sess ID and other parameters).

[0072] Operation 202: Direct Auth and Key Establishment is performed between the first terminal device and the second terminal device.

[0073] Operation 203: The second terminal device sends a direct security mode command (DirectSecurity Mode Command) to the first terminal device, which includes the security capabilities of the first terminal device (UE_1 securitycapabilities), a random number (Nonce_2, an arbitrary or non-repeating random number used only once), K D-sess The LSB of K D-sess ID), K D The high bit of ID (MSB of K D ID), selected security algorithm (Chosen_algs) and other parameters. In operation 203, the second terminal device uses the new security context to perform integrity protection at the bearer level.

[0074] Operation 204: The second terminal device prepares to use the new security context to receive control plane signaling and user plane data.

[0075] Operation 205: The first terminal device prepares to use the new security context to send and receive user plane data and control plane signaling.

[0076] Operation 206: The first terminal device sends a direct security mode complete message (DirectSecurity Mode Complete) to the second terminal device, which includes a parameter LSB of K D In operation 206, the first terminal device uses the new security context to perform bearer-level integrity and privacy protection.

[0077] Operation 207: The second terminal device uses the new security context to send control plane signaling and user plane data, and deletes any previous old security context.

[0078] Operation 208: The first terminal device receives a signaling message protected by a new security context, and deletes the previous old security context.

[0079] It can be seen that in the above communication method 200 process, for the first terminal device, between operation 205 and operation 208, there may be two security contexts at the same time: a new security context and an old security context; correspondingly, for the second terminal device, between step 204 and operation 207, there may also be two security contexts at the same time. Therefore, in the above communication method 200 process, for the terminal device as the receiving end, there is an ambiguous period of processing. After receiving a data packet from the user equipment (UE) as the sending end, the UE as the receiving end cannot determine whether the sending end UE is using the new security context or the old security context to encrypt the data packet. Such uncertainty will cause the receiving end UE to make errors when receiving data.

[0080] In order to solve this problem, in the device to device (D2D) technology, it was proposed to introduce a key ID in the packet data convergence protocol header (PDCP header) to identify different security contexts. Figure 3 As shown, Figure 3 The schematic structure diagram of a PDCP header 300 includes: a KD-sess ID, which is used to identify different security contexts and has a length of 2 bytes; a counter; a ciphered payload encrypted using the security context identified by the KD-sess ID, and a message authentication code (MAC) that may be required, wherein the KD-sess ID is the so-called key identifier. Figure 4 As shown, Figure 4 The schematic structure diagram of a PDCP protocol data unit (PDU) 400 is shown in the figure. In the PDCP PDU shown in the figure: SDU type indicates the service data unit (SDU) type; R indicates a reserved bit; KD-sess ID is used to identify different security contexts and has a length of 2 bytes; Oct indicates a byte; PDCP SN indicates a PDCP sequence number (SN); Data indicates user data; MAC-I indicates a MAC used for data integrity protection (MAC-I). In the PDCP PDU shown, MACI-I is optional. However, the above Figure 3 or Figure 4 The structure of the PDCP header or PDCP PDU shown in the figure has the following problems: in order to clearly identify the currently used secure uplink context in data transmission, two bytes of overhead are used in the PDCP header, that is, the length of the key ID used to identify the currently used security context reaches 16 bits, which consumes too many air interface resources; and Figure 2 During the key update process of the communication method 200 shown, there is a very short ambiguity period for the security context. If a 2-byte key id is introduced in the PDCP header, then for normal number transmission outside the ambiguity period, there is no ambiguity between the sending UE and the receiving UE regarding the use of the security context. At this time, it is unnecessary to still carry a 2-byte key id field in the PDCP header, which results in a waste of air interface wireless resources.

[0081] In view of this, embodiments of the present application provide a wireless communication method and a communication apparatus, etc., to support efficient negotiation and update of security keys between two terminal devices in a communication system.

[0082] like Figure 5 As shown, Figure 5 A schematic flow chart of a communication method 500 is provided for an embodiment of the present application. The method 500 can be implemented by a terminal device (or a chip device in a terminal device, or a software or hardware module in a terminal device with corresponding processing functions). The embodiment of the present application can be applied to the process of negotiating and updating security keys when two terminal devices in a V2X system communicate via a side link. Figure 5 As shown, the communication method 500 includes one or more of the following operations:

[0083] Operation 501: A first terminal device generates a first data packet.

[0084] Among them, the first data packet contains indication information, and the indication information is used to indicate whether the security context currently used by the first data packet in the sending terminal device has changed. Exemplarily, the indication information may indicate: compared with the security context used by the previous (or previous) data packet sent by the sending terminal device, it has changed; the indication information may also indicate: compared with the security context used by the previous (or previous) data packet sent by the sending terminal device, it has not changed.

[0085] Exemplarily, the use of a security context as referred to in the embodiments of the present application refers to using a key corresponding to the security context for encryption and / or integrity verification.

[0086] It can be understood that the data packet referred to in the embodiments of the present application can be various types of protocol data units PDU. For example, the first data packet can be a PDCP PDU transmitted on the side link between the two terminal devices, or a radio link control (Radio Link Control, RLC) PDU, a media access control (Media Access Control, MAC) PDU or physical layer signaling transmitted on the side link between the two terminal devices, or an RRC message transmitted on the side link between the two terminal devices, etc. As long as the indication information can be carried to indicate whether the security context used by the sending terminal device for the currently transmitted data packet has changed, the embodiments of the present application do not limit this.

[0087] Taking the first data packet being a PDCP PDU as an example, the indication information is included in the header of the PDCP PDU, and the indication information is used to indicate whether the security context used by the transmitting terminal device when sending the current PDCP PDU has changed compared to the security context used by the previous (or previous) transmitting terminal device to send the PDCP PDU.

[0088] For example, Figure 6a As shown, Figure 6a A schematic structural diagram of a PDCP PDU 600-a is provided for an embodiment of the present application, wherein SDU type represents a service data unit (SDU) type; R represents a reserved bit; Oct represents a byte; PDCP SN represents a PDCP sequence number (SN); Data represents user data; MAC-I represents a MAC used for data integrity protection (MAC-I). In the PDCP PDU 600-a shown, MACI-I is optional, and the header of the PDCP PDU 600-a includes indication information for indicating whether the security context used by the current PDCP PDU 600-a in the transmitting terminal device has changed. For example, Figure 6a The indication information is named SU (Security context Update), and the SU field occupies one bit, but the embodiment of the present application does not limit the naming of the indication information.

[0089] It is understandable that the embodiment of the present application does not limit the location of the indication information in the PDCP PDU, for example, it can be the current location in the PDCP PDU header, or it can be other locations in the PDCP PDU header, such as any of the other three reserved bit locations. In addition, the embodiment of the present application does not limit the number of bits occupied by the indication information, and it can be indicated by one bit or by two or more bits to indicate whether the security context used by the current PDCP PDU600-a in the transmitting terminal device has changed.

[0090] For ease of understanding, illustrative purposes only, Figure 6a The PDCP PDU 600-a and Figure 4 Compared to the PDCP PDU 400 shown, the differences include: Figure 6a The PDCP PDU shown does not have a 2-byte KD-sess ID, and Figure 6a The PDCP PDU shown includes one bit of indication information for indicating whether the security context used by the transmitting terminal device for the currently transmitted data packet has changed. This design can save resource overhead and improve system efficiency.

[0091] based on Figure 6a In an optional design, taking the indication information as SU as an example, SU is used to indicate whether the security context used by the sending UE as the sending end has changed in the current PDCP packet. For example, if the value of the field SU is flipped, such as the value of 0 in the previous PDCP PDU and the value of 1 in the current PDCP PDU, or the value of 1 in the previous PDCP PDU and the value of 0 in the current PDCP PDU, it is considered that the security context used by the sending UE has changed, and the receiving UE as the receiving end can use the new secure uplink text for security operations; if the value of the field SU has not been flipped, such as the original value of 0 is still 0, or the original value of 1 is still 1, the receiving UE can continue to use the old secure uplink text for security operations.

[0092] In another optional design, taking the indication information as SU as an example, if the value of SU is 0, it means that the current data packet uses the old security context at the transmitting end UE; or, if the value of SU is 1, it means that the current data packet uses the new security context at the transmitting end UE. Vice versa, if the value of SU is 1, it means that the current data packet uses the old security context at the transmitting end UE; or, if the value of SU is 0, it means that the current data packet uses the new security context at the transmitting end UE.

[0093] Exemplarily, in operation 501, when the first terminal device acts as a transmitting terminal device (such as a transmitting UE), it can determine whether to start using a new key context according to the progress of the key negotiation. If the transmitting UE determines to start using a new key context, it can flip the value of the SU field carried in the PDCP PDU header. For example, if the SU value carried in the previous (or previous) PDCP PDU header is 0, then the SU in the header of the PDCP PDU that applies the new security context is set to 1. Conversely, that is, if the SU value carried in the previous (or previous) PDCP PDU header is 1, then the SU in the header of the PDCP PDU that applies the new security context is set to 0. And so on, until the next key update, when the transmitting UE intends to use a new security context, the value of the SU bit is flipped again.

[0094] For example, Figure 6b As shown, Figure 6b A schematic structural diagram of a PDCP PDU 600-b is provided for an embodiment of the present application, wherein SDU type represents a service data unit (SDU) type; D / C represents data (data) / control (control); R represents a reserved bit (reserved bit); Oct represents a byte; PDCP SN represents a PDCP sequence number (SN); Data represents user data; MAC-I represents a MAC used for data integrity protection (MAC used for data integrity, MAC-I). In the PDCP PDU 600-b shown, MACI-I is optional, and the header of the PDCP PDU 600-b also includes indication information for indicating whether the security context used by the current PDCP PDU 600-b in the transmitting terminal device has changed. For example, reference Figure 6a As shown, Figure 6b The indication information is also named SU (Security context Update), and the SU field occupies one bit, but the embodiment of the present application does not limit the naming of the indication information.

[0095] For example, Figure 6c As shown, Figure 6cA schematic structural diagram of a PDCP PDU 600-c is provided for an embodiment of the present application, wherein SDU type represents a service data unit (SDU) type; D / C represents data (data) / control (control); R represents a reserved bit (reserved bit); Oct represents a byte; PDCP SN represents a PDCP sequence number (SN); Data represents user data; MAC-I represents a MAC used for data integrity protection (MAC used for data integrity, MAC-I). In the PDCP PDU 600-c shown, MACI-I is optional, and the header of the PDCP PDU 600-c also includes indication information for indicating whether the security context used by the current PDCP PDU 600-c in the transmitting terminal device has changed. For example, reference Figure 6a As shown, Figure 6c The indication information is also named SU (Security context Update), and the SU field occupies one bit, but the embodiment of the present application does not limit the naming of the indication information.

[0096] It is understandable that the embodiments of the present application Figure 6b The indication information (SU) in the provided PDCP PDU 600-b, an embodiment of the present application Figure 6c The indication information (SU) in the provided PDCP PDU 600-c, its function and specific use, can refer to the embodiment of the present application Figure 6a Description of the indication information (SU) in the provided PDCP PDU 600 - a. Operation 502 : The first terminal device sends the first data packet to the second terminal device.

[0097] Exemplarily, the first terminal device sends the first data packet to the second terminal device via a side link, where the side link is a wireless direct communication link between the first terminal device and the second terminal device.

[0098] Operation 503: The second terminal device receives the first data packet.

[0099] Exemplarily, the second terminal device serving as the receiving end parses the indication information contained in the first data packet, and determines through the indication information whether the security context currently used by the first data packet in the sending terminal device has changed. For example, it is known through the indication information that: the security context has changed compared with the security context used by the previous (or preceding) data packet sent by the sending terminal device; or, the security context has not changed compared with the security context used by the previous (or preceding) data packet sent by the sending terminal device.

[0100] Taking the first data packet being a PDCP PDU as an example, the indication information is included in the PDCP PDU header, which is used to indicate whether the security context used by the current PDCP PDU in the transmitting terminal device has changed compared with the security context used by the previous (or previous) PDCP PDU sent by the transmitting terminal device. As a result, the receiving terminal device obtains information based on the indication information as to whether the security context used by the current PDCP PDU in the transmitting terminal device has changed.

[0101] Exemplarily, referring to the structure of the PDCP PDU shown in FIG6 , the second terminal device as the receiving end can determine whether the transmitting terminal device starts to use a new security context according to whether the value of the SU bit in the received PDCP PDU header is flipped. If a flip occurs, the new security context is used, otherwise the old security context is used. Specifically, taking the indication information as SU as an example, SU is used to indicate whether the security context used by the sending UE of the current PDCP packet has changed. If the original SU value is 0 and the current value is 1, or the original SU value is 1 and the current value is 0, it is considered that the security context used by the sending UE has changed. At this time, the receiving terminal device uses the new security uplink text for security operations; if the value of the field SU has not flipped, for example, the original value is 0 and the current value is still 0, or the original value is 1 and the current value is still 1, the receiving terminal device continues to use the old security uplink text for security operations.

[0102] In another optional design, if the value of SU is 0, it means that the current data packet uses the old security context at the sending UE, and the receiving UE uses the old security context accordingly according to the value of SU; or, if the value of SU is 1, it means that the current data packet uses the new security context at the sending UE, and the receiving UE uses the new security context accordingly according to the value of SU.

[0103] By implementing the technical solution of the embodiment of the present application, the technical effects brought about include: since the PDCP PDU header sent by the first terminal device at the sending end carries 1 bit of indication information about whether the security context has changed, instead of carrying a 2-byte security context identifier, the number of information bits carried in the PDCP PDU heaer is greatly reduced, resource overhead is saved, and the process of negotiating and updating the security key between the two terminal devices is more efficient.

[0104] Figure 7 A schematic structural diagram of another PDCP PDU 700 provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, SDU type represents the service data unit (SDU) type; R represents a reserved bit; Oct represents a byte; PDCP SN represents a PDCP sequence number (SN); Data represents user data; MAC-I represents a MAC used for data integrity (MAC-I) protection. In the PDCP PDU 700 shown, MACI-I is optional, and the PDCP PDU 700 includes indication information for indicating whether the header of the current PDCP PDU 700 contains a key identifier (key id). The indication information can be set to 1 bit. The setting of the indication information can be achieved by using the existing reserved bits. It can be understood that the embodiment of the present application does not limit the location of the indication information in the PDCP PDU. For example, it can be Figure 7 The current position in the PDCP PDU header shown in FIG. 1 may also be other positions in the PDCP PDU header, such as any of the other three reserved bit positions. In addition, the embodiment of the present application does not limit the number of bits occupied by the indication information, and may use one bit or two or more bits to indicate whether the current PDCP PDU 700 header includes key id information. Figure 7 As shown, the indication information is named F (Format), but it can be understood that the present application does not limit the name of the indication information, as long as the indication information can be used to indicate whether the PDCP Header of the current PDCP PDU contains a key id.

[0105] In an optional design, if the value of the F field is 0, it indicates that the PDCP header carries the key id; if the value of the F field is 1, it indicates that the PDCP header does not carry the key id, and vice versa. For example, if the value of the F field is 1, it indicates that the PDCP header carries the key id; if the value of the F field is 0, it indicates that the PDCP header does not carry the key id.

[0106] In another optional design, if the value of the field F is flipped, for example, the original value is 0 and the current value is 1, or the original value is 1 and the current value is 0, it is considered that the format of the PDCP PDU header has changed from carrying the key id to not carrying the key id, or vice versa, from not carrying the key id to carrying the key id. In one application scenario, it can be considered to carry the key id during the key negotiation process, and if there is no security context ambiguity in the subsequent process, the key id can be not carried.

[0107] For ease of understanding, illustrative purposes, Figure 7 The PDCP PDU shown and Figure 4 Compared to the PDCP PDU shown, the differences include: Figure 7 The PDCP PDU shown does not have a 2-byte KD-sess ID, and Figure 7 The PDCP PDU shown includes one bit of indication information for indicating whether the header of the current PDCP PDU 700 includes key id information. This design can save the overhead of the PDCP PDU header, thereby improving system efficiency.

[0108] For example, Figure 7 The provided PDCP PDU 700 may be used with Figure 5 The process framework of the communication method 500 shown is combined, that is, Figure 5 The first data packet in the communication method 500 shown may be Figure 7 The PDCP PDU 700 is provided.

[0109] By implementing the technical solution provided in the embodiments of the present application, the technical effects brought about include: the transmitting UE can indicate whether the PDCP header carries a key id of 2 bytes by carrying 1 bit of indication information in the PDCP PDU header. For example, when there is a security context ambiguity period, the PDCP PDU header carries the key id to solve the security context ambiguity problem faced by the receiving UE when receiving data. In other normal transmissions, the PDCP PDU header does not carry the key id to improve resource utilization efficiency.

[0110] like Figure 8 As shown, Figure 8 A wireless communication method 800 is provided as another embodiment of the present application. The communication method 800 can be executed by a network device and a terminal device (or a chip device in the network device or the terminal device or a software or hardware module with corresponding processing functions), and can be applied to a scenario in which two terminal devices in a V2X system communicate through a side link. Figure 8 As shown, the communication method 800 includes any one or more of the following operations:

[0111] Optional operation 801: The first terminal device sends a second message to the network device.

[0112] Exemplarily, the second message carries indication information (or capability information) for indicating whether the first terminal device can carry a key identifier in a data packet, or for indicating whether the first terminal device will carry a key identifier in a data packet. Specifically, the indication information can be used to indicate that the first terminal device can carry a key identifier in a data packet sent by the first terminal device via a side link, or the indication information can indicate that the first terminal device cannot carry a key identifier in a data packet sent by the first terminal device via a side link, wherein the side link is a wireless direct communication link between the first terminal device and the second terminal device.

[0113] Exemplarily, the first message may be a Radio Resource Control (RRC) message. The first terminal device as the sending end may carry the above indication information through the RRC message and send it to the network device.

[0114] Optionally, after receiving the indication information, the network device can decide whether to notify the second terminal device serving as the receiving end of the side link communication about whether the data packet (such as a PDCP PDU header) sent by the sending end carries a key identifier based on the second message or the situation indicated by the indication information carried in the second message.

[0115] It is understandable that this operation 801 is an optional operation. The network device can determine whether the data packet (such as PDCP PDU) sent by the sender carries the key identifier in other ways, and the network device can also decide whether to notify the terminal device as the receiving end of the side link communication about whether the data packet (such as PDCP PDU) sent by the sender carries the key identifier in other ways. It is understandable that this operation 801 can also be an independent optional design. In this case, the operation does not depend on or must be combined with other operations.

[0116] Operation 802: The network device sends a first message to a first terminal device.

[0117] The first message carries indication information, and the indication information indicates whether a data packet (such as a PDCP PDU) of a data packet sent via a side link carries a key identifier or whether it needs to carry a key identifier. For example, the indication information indicates that the data packet sent by the first terminal device via the side link needs to carry a key identifier, or the indication information indicates that the data packet sent by the first terminal device via the side link does not need to carry a key identifier. Thus, the first terminal device can determine whether to carry a key identifier in the data packet sent by the first terminal device via the side link based on the indication information.

[0118] Exemplarily, the second message may be an RRC message, and the above indication information in operation 802 may be carried in the RRC message and sent by the network device to the first terminal device.

[0119] Exemplarily, the indication information can be implemented by adding a new field in the information element SL-PDCP-Config in the existing configuration information, for example, adding a field sl-PDCP-KeyId in the SL-PDCP-Config, which is used to indicate to the first terminal device whether the SL PDCP PDU header carries a key id or whether it needs to carry a key id. In an optional design, when the field sl-PDCP-KeyId does not appear, it indicates that the SL PDCP header carries a key id, or when the field sl-PDCP-KeyId does not appear, it indicates that the SL PDCP header does not carry a key id. In another optional design, when the field sl-PDCP-KeyId appears and takes a value of true, it indicates that the SL PDCP header carries a key id, or when the field sl-PDCP-KeyId appears and takes a value of true, it indicates that the SL PDCP header does not carry a key id. It can be understood that the cell name SL-PDCP-Config or the field name sl-PDCP-KeyId is only an example, and the embodiments of the present application do not limit this. Any field or indication information that can play the above-mentioned indication role can be used.

[0120] It is understandable that this operation 802 may also be an independent optional design. In this case, the operation does not depend on or must be combined with other operations.

[0121] Operation 803: The first terminal device sends a third message to the network device.

[0122] Exemplarily, the third message includes indication information, which indicates that the first terminal device starts to carry the key identifier in the data packets sent through the side link, or the third indication information indicates that the first terminal device starts not to carry the key identifier in the data packets sent through the side link.

[0123] Exemplarily, when the first terminal device at the transmitting end starts to carry the key id in the PDCP header, or starts not to carry the key id in the PDCP header, the third message is sent to notify the network device. For example, the third message includes an indication that the first terminal device starts to carry the key id in the PDCP header, or an indication that the first terminal device starts not to carry the key id in the PDCP header. In this way, after receiving the third message, the network device can notify the second terminal device at the receiving end: the first terminal device at the transmitting end stops or starts to carry the key id information in the sent PDCP PDU header.

[0124] It should be noted that operation 803 is optional, and the timing of the first terminal device sending the third message to the network device can be any time when needed and does not depend on the timing of the operation 803. Figure 8 The sending time of other steps in the communication method 800 shown does not necessarily need to be combined with other steps.

[0125] Operation 804: The network device sends a fourth message to the second terminal device.

[0126] Exemplarily, the fourth message includes indication information, and the indication information indicates the second terminal device: whether the data packet received by the second terminal device in the side link carries a secret key identifier. In this way, the second terminal device as the receiving end can determine whether the data packet received through the side link carries a key identifier based on the indication information, and the side link is a wireless direct communication link between the second terminal device and the first terminal device at the transmitting end. Among them, the indication information can indicate that the data packet received through the side link carries a secret key identifier, or the indication information can also indicate that the data packet received through the side link does not carry a secret key identifier.

[0127] In an optional design, the network device may send the fourth message based on the capability information reported by the first terminal device at the transmitting end (for example, refer to optional operation 801) to indicate whether the data packet received by the second terminal device through the side link carries a key identifier. For example, the first terminal device reports whether it can carry the key id in the data packet sent by itself (such as the PDCP header). If the first terminal device notifies the network device that it cannot carry the key id in the data packet sent by itself (such as the PDCP header), then the network device may not carry the key id in the PDCP header when configuring the first terminal device and / or the second terminal device for SL communication. In this way, the second terminal device at the receiving end can know that the first terminal device at the transmitting end will not carry the key id in the PDCP header.

[0128] In an optional design, the network device may send the fourth message based on the third message reported by the first terminal device at the sending end. The third message and the information indicated by it may refer to operation 803 for details.

[0129] It should be noted that operation 804 is optional, and the timing of sending the fourth message does not depend on Figure 8 The sending of other steps in the communication method 800 shown does not necessarily need to be combined with other steps.

[0130] In another alternative design, such as Figure 8 The communication method 800 shown may be combined with Figure 7For example, the PDCP PDU 700 shown in the figure can determine whether the key id is carried in the PDCP header through the indication information carried in the configuration information sent by the network device, and the second terminal device at the receiving end can also determine whether the key id is carried in the PDCP header through the reserved bit indication in the received data packet (for example, PDCP PDU header).

[0131] By implementing the technical solution provided in the embodiments of the present application, the technical effects brought about include: the sending terminal device can determine whether to carry the key id in the sent data packet (such as PDCP PDU header) based on the indication information or configuration information sent by the network side, and the receiving terminal device can also determine whether to carry the key id in the received data packet (such as PDCP PDU header) based on the indication information or configuration information sent by the network side. The network device can also be flexibly configured based on the feedback of the sending terminal device, thereby increasing flexibility.

[0132] Above, combined Figures 1 to 8 The method provided by the embodiment of the present application is described in detail. Fig. 9 , Fig.10 The device provided in the embodiments of the present application is described in detail.

[0133] Fig. 9 is a schematic block diagram of a communication device provided in an embodiment of the present application. Fig. 9 As shown, the communication device 900 may include a processing unit 910 and a transceiver unit 920. It should be understood that in another implementation, the communication device 900 may include units corresponding to performing various operations or processes in the aforementioned embodiments, and these units may be implemented by hardware circuits, or by software programs, or by hardware circuits executing software programs.

[0134] In one possible design, the communication device 900 may correspond to the first terminal device, the second terminal device, or the network device in the above-mentioned embodiments, or correspond to a chip device configured in (or used for) the first terminal device, the second terminal device, or the network device.

[0135] It should also be understood that when the communication device 900 is a chip configured in (or used in) a terminal device or a network device, the transceiver unit 920 in the communication device 900 can be an input / output interface or circuit of the chip, and the processing unit 910 in the communication device 900 can be a chip or a processor.

[0136] Optionally, the communication device 900 may further include a storage unit, which may be used to store instructions or data, and the processing unit 910 may execute the instructions or data stored in the storage unit to enable the communication device to implement corresponding operations.

[0137] It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0138] Fig.10 1 is a schematic diagram of the structure of a communication device 1000 provided in an embodiment of the present application. The communication device 1000 can be used to perform the functions of the first terminal device, the second terminal device or the network device in the above-mentioned embodiment. As shown in the figure, the communication device 1000 includes at least one processor 1020, and may also include a transceiver 1010. Optionally, the communication device 1000 also includes a memory 1030. Exemplarily, the processor 1020, the transceiver 1010 and the memory can communicate with each other through an internal connection path to transmit control and / or data signals, and the memory 1030 is used to store a computer program, and the at least one processor 1020 is used to execute the computer program in the memory to control the transceiver 1010 to send and receive signals. Optionally, the communication device 1000 may include a bus system 1040, and the transceiver 1010, the processor 1020 and the memory 1030 can exchange information through the bus system 1040.

[0139] The processor 1020 and the memory 1030 may be combined into a processing device, and the processor 1020 is used to execute the program code stored in the memory to implement the above functions. In specific implementation, the memory may also be integrated into the processor 1020 or independent of the processor 1020.

[0140] It should be understood that Fig.10 The communication device 1000 shown can implement the various processes of the terminal device and / or network device involved in the aforementioned embodiments. For example, when the at least one processor 1020 executes a program or instruction, the communication device 1000 can perform any operation of the first terminal device, the second terminal device or the network device in the aforementioned embodiments.

[0141] An embodiment of the present application also provides a processing device, including a processor and an interface; the processor can be used to execute the method in any of the above method embodiments.

[0142] It should be understood that the above-mentioned processing device may be one or more chips. For example, the processing device may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0143] An embodiment of the present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to perform any operation of the first terminal device, the second terminal device, or the network device in the aforementioned embodiment.

[0144] An embodiment of the present application also provides a computer-readable medium, which stores a computer program (also referred to as code, or instruction) which, when executed on a computer, enables the computer to perform any operation of the first terminal device, the second terminal device, or the network device in the aforementioned embodiment.

[0145] An embodiment of the present application also provides a communication system, which includes at least one of the aforementioned first terminal device, second terminal device or network device.

[0146] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0147] It should be noted that the processor in the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0148] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Exemplarily, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0149] The network devices and terminal devices in the above-mentioned various device embodiments and the network devices or terminal devices in the method embodiments can completely correspond to each other, and the corresponding modules or units perform the corresponding steps. For example, the transceiver unit (transceiver) performs the steps of receiving or sending in the method embodiment, and the other steps except sending and receiving can be performed by the processing unit (processor). The functions of the specific units can refer to the corresponding method embodiments. Exemplarily, there can be one or more processors.

[0150] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using 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 instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated 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 a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).

[0151] The network devices in the above-mentioned various device embodiments completely correspond to the network devices or terminal devices in the terminal devices and method embodiments, and the corresponding modules or units perform the corresponding steps. For example, the communication unit (transceiver) performs the steps of receiving or sending in the method embodiment, and the other steps except sending and receiving can be performed by the processing unit (processor). The functions of the specific units can refer to the corresponding method embodiments. Among them, there can be one or more processors.

[0152] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program and / or a computer running on a processor. By way of illustration, both applications and computing devices running on a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).

[0153] Those of ordinary skill in the art will appreciate 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0155] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] 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 separately, or two or more units may be integrated into one unit.

[0158] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using 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 (programs). When the computer program instructions (programs) are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated 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 a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0159] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0160] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A wireless communication method, characterized in that: include: The first terminal device receives a first message from the network device, where the first message includes first indication information, where the first indication information indicates whether a data packet sent through the edge link carries a key identifier; The first terminal device determines, based on the first indication information, whether a data packet sent through a side link carries a key identifier, where the side link is a wireless direct communication link between the first terminal device and the second terminal device; The method further comprises: The first terminal device sends a third message to the network device, wherein the third message includes third indication information, and the third indication information indicates that the first terminal device starts to carry a key identifier in data packets sent through the side link, or the third indication information indicates that the first terminal device starts not to carry a key identifier in data packets sent through the side link.

2. The wireless communication method according to claim 1, wherein: The first indication information indicates whether the data packet sent through the side link carries a key identifier, including: the first indication information indicates that the data packet sent by the first terminal device through the side link carries a key identifier, or the first indication information indicates that the data packet sent by the first terminal device through the side link does not carry a key identifier.

3. The wireless communication method according to claim 1 or 2, characterized in that: The method further comprises: The first terminal device sends a second message to the network device, and the second message includes second indication information, and the second indication information indicates that the first terminal device can carry a key identifier in a data packet sent by the first terminal device through the side link, or the second indication information indicates that the first terminal device cannot carry a key identifier in a data packet sent by the first terminal device through the side link.

4. A wireless communication method, characterized in that: include: The network device sends a first message to the first terminal device, where the first message includes first indication information, where the first indication information indicates whether a data packet sent through the side link carries a key identifier, so that the first terminal device determines whether the data packet sent through the side link carries the key identifier based on the first indication information, where the side link is a wireless direct communication link between the first terminal device and the second terminal device; The method further comprises: The network device receives a third message from the first terminal device, the third message including third indication information, the third indication information indicating that the first terminal device starts to carry a key identifier in data packets sent through the side link, or the third indication information indicates that the first terminal device starts not to carry a key identifier in data packets sent through the side link.

5. The wireless communication method according to claim 4, wherein: The first indication information indicates whether the data packet sent through the side link carries a key identifier, including: the first indication information indicates that the data packet sent by the first terminal device through the side link carries a key identifier, or the first indication information indicates that the data packet sent by the first terminal device through the side link does not carry a key identifier.

6. The wireless communication method according to claim 4 or 5, characterized in that: The method further comprises: The network device receives a second message from the first terminal device, the second message including second indication information, the second indication information indicating that the first terminal device can carry a key identifier in a data packet sent by the first terminal device via an edge link, or the second indication information indicating that the first terminal device cannot carry a key identifier in a data packet sent by the first terminal device via an edge link.

7. A wireless communication method, characterized in that: include: The second terminal device receives a fourth message sent by the network device according to the third message reported by the first terminal device, where the fourth message includes fourth indication information, and the fourth indication information indicates whether the data packet received through the side link carries the key identifier; the third message includes third indication information, and the third indication information indicates that the first terminal device starts to carry the key identifier in the data packet sent through the side link, or the third indication information indicates that the first terminal device starts not to carry the key identifier in the data packet sent through the side link; The second terminal device determines whether a data packet received through a side link carries a key identifier based on the fourth indication information, and the side link is a wireless direct communication link between the second terminal device and the first terminal device.

8. The wireless communication method according to claim 7, wherein: The fourth indication information indicates whether the data packet received through the side link carries a key identifier, including: the fourth indication information indicates that the data packet received by the first terminal device through the side link carries a key identifier, or the fourth indication information indicates that the data packet received by the first terminal device through the side link does not carry a key identifier.

9. A wireless communication device, characterized in that: comprising at least one processor coupled to the memory; The memory is used to store programs or instructions; The at least one processor is used to execute the program or instruction so that the apparatus implements the operation of the first terminal device, the second terminal device or the network device in the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The method comprises computer instructions which, when executed by one or more processors, cause a device comprising the processor to perform the operation of the first terminal device, the second terminal device or the network device in the method according to any one of claims 1 to 8.

11. A communication chip, characterized in that: comprising at least one processor and a communication interface; The communication interface is used to receive signals input into the chip or to output signals from the chip, and the processor communicates with the communication interface and is used to implement the operation of the first terminal device, the second terminal device or the network device in the method as described in any one of claims 1 to 8 through logic circuits or execution code instructions.

12. A computer program product, characterized in that The computer program product comprises: a computer program, which, when executed, enables a computer to execute the operation of the first terminal device, the second terminal device or the network device in the method according to any one of claims 1 to 8.