A method of communication and a communication apparatus

By sending encrypted information and session keys to newly joined multicast group nodes, the problem of multicast not being able to join dynamically is solved, enabling timely reception of multicast data and secure communication, thus improving the user experience.

CN123164428APending Publication Date: 2026-11-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510662117.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-21
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing StarFlash multicast technology cannot achieve dynamic multicast joining, resulting in newly joined devices not being able to receive multicast data in a timely manner, which affects the user experience.

Method used

By sending encrypted information and session keys to newly joined multicast group nodes, multicast data can be dynamically added, ensuring that new nodes can receive multicast data in a timely manner. A real-time clock encryption mechanism is used to ensure communication security and reduce equipment maintenance complexity.

Benefits of technology

It enables dynamic multicast joining, improves user experience, and avoids leakage by transmitting encrypted information over the air, thus ensuring communication security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164428A_ABST
    Figure CN123164428A_ABST
Patent Text Reader

Abstract

The application provides a method and a communication device for communication, which can be applied to support IEEE protocols, such as IEEE 802.11be / Wi-Fi7 / EHT protocol, IEEE 802.11bn / UHR / Wi-Fi 8 protocol, Integrated mmWave / IMMW protocol, IEEE 802.15 / UWB protocol, IEEE 802.11bf / sensing protocol, or Starlink standard protocol. In the method, a first node can send first information for encrypting and decrypting multicast data to a second node, and encrypt the multicast data based on the information, so that when the second node is a node newly joining a multicast group, the second node can also have information for decrypting the multicast data, so that the second node can receive the multicast data in time, dynamic joining of the multicast is realized, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more specifically, to a method and apparatus for multicast communication. Background Technology

[0002] To improve air interface utilization, StarSpark developed multicast technology, which is a one-to-many communication method, meaning that an air interface data frame can be received by multiple devices in the group at the same time.

[0003] In the current StarSpark multicast process, all multicast receivers can only be added to the multicast at the beginning of the connection establishment. It is not possible to add new receivers after the multicast has started sending data frames. In other words, dynamic multicast addition cannot be achieved, which causes devices that need to join the multicast to be unable to receive multicast data frames in a timely manner, affecting the user experience. Summary of the Invention

[0004] This application provides a communication method and communication device that enables dynamic multicast joining and improves user experience.

[0005] In a first aspect, a communication method is provided, which can be executed by a first node or by components of the first node (such as a chip, circuit, or chip system).

[0006] The method includes: sending first information to a second node, wherein the first node and the second node belong to a first multicast group; generating first multicast data based on the first information and a session key, wherein the first information and the session key are used to encrypt the payload in the first multicast data; and sending the first multicast data to nodes in the first multicast group.

[0007] Based on the above scheme, the first node can send first information to the second node for encrypting and decrypting multicast data, and encrypt the first multicast data based on the first information and the session key. In this way, when the second node is a newly joined node in the first multicast group, it can also have the information to decrypt the first multicast data, so that the second node can receive the first multicast data in a timely manner, realize dynamic multicast joining, and improve user experience.

[0008] On the other hand, since the first information is only a part of the information used to encrypt and decrypt multicast data, such as session keys, it is not transmitted over the air interface, thus avoiding the leakage of encrypted information and ensuring the security of communication.

[0009] In conjunction with the first aspect, in some implementations, the first information includes the first moment and the first day count. The first moment is the effective moment of the first multicast data, and the first day count is the count value of the number of days corresponding to the first moment.

[0010] Based on the above scheme, multicast data can be encrypted based on a real-time clock, which reuses the multicast activation time. This ensures communication security and reduces the complexity of maintaining encrypted or decrypted information on the transceiver devices.

[0011] In this implementation, the method further includes: in the event that the first multicast data transmission fails, generating second multicast data based on the second time, the second day count, and the session key, wherein the payload in the second multicast data is the same as the payload in the first multicast data, the second time, the second day count, and the session key are used to encrypt the payload in the second multicast data, the second time being the effective time of the second multicast data, and the second day count being the count value of the number of days corresponding to the second time; and sending the second multicast data to the nodes in the first multicast group.

[0012] Based on the above scheme, the retransmitted multicast data is also encrypted using a real-time clock. This allows the receiving end to decrypt the multicast data simply by synchronizing the clock, making it simple and efficient.

[0013] For example, the method further includes: determining a second time based on a first time.

[0014] For example, the first information is carried in the first message, which is used to establish a multicast connection with the second node.

[0015] For example, the first message also includes second information used to determine the effective time of at least one multicast data in addition to the first multicast data. For example, the second information is an event group period or an event period.

[0016] Based on the above scheme, the first node can indicate the effective time of each multicast during the multicast establishment process, so that the sending and receiving ends can align the multicast sending and receiving times and achieve synchronous multicast.

[0017] Optionally, in this implementation, the first message further includes indication information, which indicates that the first message includes a first moment and a first day count.

[0018] In conjunction with the first aspect, in some implementations, the first information includes the target payload count and an indication of the transmission direction.

[0019] Based on the above scheme, multicast data can be encrypted or decrypted based on the target payload count. That is, on the basis of the current protocol, it is only necessary to indicate the target value of the payload count to the newly added second node to realize the dynamic addition of multicast. This not only ensures communication security, but also better compatibility with the current protocol.

[0020] In this implementation, the method further includes: in the event that the first multicast data transmission fails, generating second multicast data based on the target payload count, the transmission direction indication value, and the session key, wherein the payload in the second multicast data is the same as the payload in the first multicast data, and the target payload count, the transmission direction indication value, and the session key are used to encrypt the payload in the second multicast data; and sending the second multicast data to the nodes in the first multicast group.

[0021] Based on the above scheme, the retransmitted multicast data is determined based on the payload count of the initial transmission. This ensures that the payload count increases when the multicast data is correctly received by all receivers or when the maximum number of retransmissions is reached, but does not increase under other circumstances. This helps the sender and receiver jointly maintain the payload count, enabling the encryption and decryption of multicast data and ensuring communication security.

[0022] For example, the first information is carried in the first message, which is used to establish a multicast connection with the second node.

[0023] For example, the first message also includes third information indicating the maximum number of retransmissions of the first multicast data. For instance, the third information could be the data discarding period of the first link or the data discarding period of the subsequent link.

[0024] Based on the above scheme, the sending end can indicate the maximum number of retransmissions of the first multicast data to the receiving end, so that the sending end and the receiving end can jointly maintain the payload count and ensure normal communication.

[0025] Optionally, in this implementation, the first message further includes indication information, which indicates that the first message includes an indication of the target payload count and the transmission direction.

[0026] Secondly, a communication method is provided, which can be executed by a second node or by components of the second node (such as a chip, circuit, or chip system).

[0027] The method includes: receiving first information from a first node, wherein the first node and a second node belong to a first multicast group; and receiving first multicast data from the first node, wherein the first information is used to encrypt the payload voice key in the first multicast data.

[0028] In conjunction with the second aspect, in some implementations, the method further includes: decrypting the first multicast data based on the first information and the session key.

[0029] In conjunction with the second aspect, in some implementations, the first information includes the first moment and the first day count. The first moment is the effective time of the first multicast data, and the first day count is the count value of the number of days corresponding to the first moment.

[0030] For example, in this implementation, the method further includes: in the event that the first multicast data reception fails, receiving second multicast data from the first node, wherein the payload in the second multicast data is the same as the payload in the first multicast data; and decrypting the second multicast data according to a second time, a second day count, and a session key, wherein the second time, the second day count, and the session key are used to encrypt the payload in the second multicast data, the second time being the effective time of the second multicast data, and the second day count being the count value of the number of days corresponding to the second time.

[0031] In conjunction with the second aspect, in some implementations, the first information includes the target payload count and an indication of the transmission direction.

[0032] For example, in this implementation, the method further includes: in the event that the first multicast data reception fails, receiving second multicast data from the first node, wherein the payload in the second multicast data is the same as the payload in the first multicast data; and decrypting the second multicast data according to the values ​​of the target payload count, the transmission direction indication, and the session key, wherein the values ​​of the target payload count, the transmission direction indication, and the session key are used to encrypt the payload in the second multicast data.

[0033] Thirdly, a communication device is provided, which can be a first node or a component of the first node (e.g., a chip, circuit, or chip system).

[0034] The device includes: a transceiver unit for sending first information to a second node, wherein the first node and the second node belong to a first multicast group; a processing unit for generating first multicast data based on the first information and a session key, wherein the first information and the session key are used to encrypt the payload in the first multicast data; the transceiver unit is also used to send the first multicast data.

[0035] In conjunction with the third aspect, in some implementations, the first information includes the first moment and the first day count. The first moment is the effective time of the first multicast data, and the first day count is the count value of the number of days corresponding to the first moment.

[0036] In this implementation, the device further includes a processing unit, configured to: generate second multicast data based on a second time, a second day count, and a session key in the event of a failure to transmit the first multicast data; the payload in the second multicast data is the same as the payload in the first multicast data; the second time, the second day count, and the session key are used to encrypt the payload in the second multicast data; the second time is the effective time of the second multicast data; and the second day count is the count value of the number of days corresponding to the second time.

[0037] In conjunction with the third aspect, in some implementations, the first information includes the target payload count and an indication of the transmission direction.

[0038] In this implementation, the device further includes a processing unit, configured to: generate second multicast data based on the target payload count, the transmission direction indication value, and the session key in the event of a failure to transmit the first multicast data. The payload in the second multicast data is the same as the payload in the first multicast data. The target payload count, the transmission direction indication value, and the session key are used to encrypt the payload in the second multicast data.

[0039] Fourthly, a communication device is provided, which can be a second node or a component of the second node (e.g., a chip, circuit, or chip system).

[0040] The device includes: a transceiver unit for receiving first information from a first node, wherein the first node and a second node belong to a first multicast group; the transceiver unit is also used for: receiving first multicast data from the first node, wherein the first information is used to encrypt the payload in the first multicast data.

[0041] In conjunction with the fourth aspect, in some implementations, the apparatus further includes a processing unit for: decrypting the first multicast data based on the first information and the session key.

[0042] In conjunction with the fourth aspect, in some implementations, the first information includes the first moment and the first day count. The first moment is the effective time of the first multicast data, and the first day count is the count value of the number of days corresponding to the first moment.

[0043] For example, in this implementation, the processing unit is further configured to: in the event that the first multicast data reception fails, receive second multicast data from the first node, wherein the payload in the second multicast data is the same as the payload in the first multicast data, and the payload in the second multicast data is obtained by encryption based on a second time, a second day count, and a session key, wherein the second time is the effective time of the second multicast data, and the second day count is the count value of the number of days corresponding to the second time.

[0044] For example, in this implementation, the processing unit is further configured to: decrypt the second multicast data based on the second time point, the second day number count, and the session key.

[0045] In conjunction with the fourth aspect, in some implementations, the first information includes the target payload count and the indication of the transmission direction.

[0046] For example, in this implementation, the processing unit is further configured to: in the event that the first multicast data reception fails, receive second multicast data from the first node, wherein the payload in the second multicast data is the same as the payload in the first multicast data, and the payload in the second multicast data is obtained by encrypting it based on the target payload count, the value of the transmission direction indication and the session key.

[0047] For example, in this implementation, the processing unit is further configured to: decrypt the second multicast data based on the target payload count, the value of the transmission direction indication, and the session key.

[0048] It should be understood that any aspects not described in detail in the second to fourth aspects, as well as their beneficial effects, can be referred to the first aspect.

[0049] Fifthly, a communication device is provided, comprising: a memory for storing a program; and at least one processor for executing the computer program or instructions stored in the memory to perform the method provided in any of the foregoing aspects or their implementations.

[0050] In one implementation, the device is either a first node or a second node.

[0051] In another implementation, the device is a chip, chip system, or circuit for use in a first or second node.

[0052] Sixthly, a communication apparatus is provided, comprising: at least one processor and a communication interface, the at least one processor being configured to obtain a computer program or instructions stored in a memory via the communication interface to execute the method provided in any of the foregoing aspects or their implementations. The communication interface may be implemented in hardware or software.

[0053] In one implementation, the device also includes a memory.

[0054] In a seventh aspect, a processor is provided for executing the methods provided in the foregoing aspects.

[0055] Unless otherwise specified, or if it does not contradict its actual function or internal logic in the relevant description, the transmission and acquisition / reception operations involved in the processor can be understood as processor output and reception, input and other operations, or as transmission and reception operations performed by radio frequency circuits and antennas. This application does not limit them in this regard.

[0056] Eighthly, a computer-readable storage medium is provided that stores program code for execution by a node, the program code including methods for performing any of the foregoing aspects or their implementations.

[0057] Ninthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the method provided in any of the foregoing aspects or their implementations.

[0058] In a tenth aspect, a chip is provided, comprising a processor and a communication interface. The processor reads instructions stored in a memory through the communication interface and executes the method provided in any of the above aspects or their implementations. The communication interface can be implemented in hardware or software.

[0059] Optionally, as one implementation, the chip also includes a memory that stores computer programs or instructions. The processor is used to execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the processor is used to perform the methods provided by any of the above aspects or their implementations.

[0060] When the method provided in this application is executed by a chip, this application does not limit the specific number of chips implementing the method. For example, it can be executed by one chip, or by two or more chips. Furthermore, when the number of chips implementing the method is two or more, the chip manufacturers are not limited; they can be from the same manufacturer or different manufacturers.

[0061] In an eleventh aspect, a computer program is provided that, when run on a computer, causes the methods provided by any of the foregoing aspects or their implementations to be executed.

[0062] In the twelfth aspect, a communication system is provided, including the first node and the second node mentioned above.

[0063] It should be understood that the beneficial effects of aspects five through twelfth and any of their implementations can be referenced from aspects one through two and any of their implementations. Attached Figure Description

[0064] Figure 1 This is a schematic diagram of a network architecture applicable to embodiments of this application.

[0065] Figure 2 This is a schematic diagram of the multicast establishment and transmission method 200.

[0066] Figure 3 This is a schematic flowchart of a communication method 300 provided in this application.

[0067] Figure 4 This is a schematic diagram of the information included in the random numbers used for encrypting and decrypting multicast data provided in this application.

[0068] Figure 5A schematic diagram illustrating the configuration of transmission time resources for the multicast data provided in this application.

[0069] Figure 6 This is yet another illustration of the information included in the random numbers provided in this application for encrypting and decrypting multicast data.

[0070] Figure 7 This is a schematic flowchart of a communication method 700 provided in this application.

[0071] Figure 8 This is a schematic flowchart of a communication method 800 provided in this application.

[0072] Figure 9 and Figure 10 A schematic diagram of the structure of a communication device provided in an embodiment of this application. Detailed Implementation

[0073] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0074] The technical solutions provided in this application can be applied to various communication systems, such as 5th generation (5G) systems (or new radio (NR) systems), long term evolution (LTE) systems, LTE frequency division duplex (FDD) systems, and LTE time division duplex (TDD) systems. The technical solutions provided in this application can also be applied to device-to-device (D2D) communication, vehicle-to-everything (V2X) communication, machine-to-machine (M2M) communication, machine-type communication (MTC), and Internet of Things (IoT) communication systems or other communication systems. Furthermore, the technical solutions provided in this application support short-range communication.

[0075] For example, short-range communication enables communication between electronic devices that are relatively close to each other. Current mainstream access technologies for short-range communication include Wireless Fidelity (Wi-Fi), Bluetooth, and ZigBee. With the development of the Internet of Things (IoT), new application scenarios such as smart cars, smart homes, smart terminals, and smart manufacturing have emerged, giving rise to a new generation of short-range access technologies. Taking Sparklink Alliance access technology as an example, it includes, but is not limited to, Sparklink Basic (SLB) access technology and Sparklink Low Energy (SLE) access technology. SLB access technology can support high-bandwidth services such as screen projection, virtual reality (VR), and vehicular communication, while SLE access technology can support low-bandwidth, low-data-rate, and low-power services such as audio playback, keyboard, mouse, and electronic pen input. For ease of description, in the following embodiments, SLB access technology will be referred to as SLB, and SLE access technology as SLE. Unless otherwise specified, the access technology mentioned in the following description refers to short-range access technology.

[0076] The embodiments of this application can be applied to wireless local area networks (WLANs), such as those supporting IEEE 802.11 related standards, including 802.11a / b / g, 802.11n, 802.11ac, 802.11ax (i.e., Wi-Fi 6, also known as the high efficient (HE) standard), 802.11be (i.e., Wi-Fi 7, also known as the extremely high throughput (EHT) standard), 802.11bn (i.e., Wi-Fi 8, also known as the ultra high reliability (UHR) standard), or next-generation Wi-Fi 8 standards, as well as 802.11ad and 802.11ay standards. The embodiments of this application can also be applied to wireless local area network systems that support integrated millimeter wave (IMMW), wireless local area network systems that support ultra-wideband (UWB) such as the 802.15 series standards, sensing systems such as the 802.11bf series standards, or wireless positioning such as 802.11az. This application can also support standard protocols such as Sparklink and Nearlink.

[0077] The communication systems described above that are applicable to this application are merely illustrative examples, and the communication systems applicable to this application are not limited thereto.

[0078] Figure 1 This is a schematic diagram of a communication system applicable to an embodiment of this application. For example... Figure 1 As shown, the communication system 100 includes a transmitting device 110 and a receiving device 120, which can communicate based on wireless communication technology. For example, the transmitting device 110 is a device that transmits multicast data, and the receiving device 120 is a device that receives multicast data. The transmitting device can also be referred to as a sending node, group leader node, sender, sending end, first node, etc., and the receiving device can also be referred to as a receiving node, peer node, group member node, receiver, receiving end, second node, etc.

[0079] It should be noted that, Figure 1The communication system 100 is described by way of example only, which includes a transmitting device 110 and a receiving device 120. However, the communication system 100 is not limited to including more other devices, and this application does not make any specific limitation in this regard.

[0080] For example, in the embodiments of this application, the transmitting device 110 or the receiving device 120 can be any device with wireless transceiver function. For example, the transmitting device 110 is a radio access network (RAN) node or terminal, and the receiving device 120 is an RAN node or terminal.

[0081] In this application, the RAN node, also known as a radio access network device, RAN entity, or access node, is used to help a terminal access a communication system wirelessly. In one application scenario, the RAN node can be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next-generation NodeB (gNB) in a 5G system, a base station in a future mobile communication system, or an access node in a Wi-Fi system. The RAN node can be a macro base station, a micro base station, an indoor station, a relay node, or a donor node. In another application scenario, multiple RAN nodes can cooperate to help a terminal achieve wireless access, with different RAN nodes implementing some of the functions of a base station. For example, the RAN node can be a central unit (CU), a distributed unit (DU), or a radio unit (RU). The CU (Radio Control Unit) performs the functions of the Radio Resource Control Protocol (RRC) and Packet Data Convergence Protocol (PDCP) of the base station, and can also perform the functions of the Service Data Adaptation Protocol (SDAP). The DU (Radio Link Control Unit) performs the functions of the Radio Link Control (RAN) and Medium Access Control (MAC) layers of the base station, and can also perform some or all of the physical layer functions. For specific descriptions of the above-mentioned protocol layers, please refer to the relevant technical specifications. The RU (Radio Receiver Unit) can be used to implement the transmission and reception functions of radio frequency signals. The CU and DU can be two independent RAN nodes, or they can be integrated into the same RAN node, such as integrated into the baseband unit (BBU). The RU can be included in radio frequency equipment, such as in the remote radio unit (RRU) or active antenna unit (AAU). The CU can be further divided into two types of RAN nodes: CU-control plane and CU-user plane.

[0082] In different systems, RAN nodes can have different names. For example, in an O-RAN system, a CU can also be called an open CU (O-CU), a DU can also be called an open DU (O-DU), and an RU can be called an open RU (O-RU). In this application, the RAN node can be implemented through software modules, hardware modules, or a combination of software and hardware modules. For example, the RAN node can be a server loaded with the corresponding software modules. The embodiments of this application do not limit the specific technology or device form used in the RAN node. For ease of description, a network device or base station is used as an example of a RAN node below.

[0083] A terminal is a device with wireless transceiver capabilities, capable of sending signals to or receiving signals from a base station. Terminals can also be referred to as terminal equipment, user equipment (UE), mobile station, mobile terminal, etc. Terminals can be widely used in various scenarios, such as D2D communication, V2X communication, MTC, IoT, virtual reality, augmented reality, industrial control (e.g., smart manufacturing), autonomous driving, telemedicine, smart grids, smart furniture, smart offices, smart wearables, smart transportation, smart cities, etc. Terminals can be mobile phones, tablets, cordless phones, session initiation protocol (SIP) phones, smartphones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computers with wireless transceiver capabilities, wearable devices, vehicles, aircraft, ships, robots, robotic arms, smart home devices, etc. The embodiments of this application do not limit the specific technologies or device forms used in the terminals.

[0084] In some embodiments, the transmitting device 110 and the receiving device 120 may support at least one short-range access technology, for example, both may support SLB access technology. Optionally, the transmitting device 110 and / or the receiving device 120 may also support SLE access technology. For example, devices such as mobile phones, tablets, and wearable devices may support both SLE and SLB simultaneously. Furthermore, headphones, VR glasses, in-vehicle control panels, and cameras may support SLB.

[0085] For example, in a communication process supporting SLB or SLE access technologies, one of the sending device 110 and the receiving device 120 can act as a grant (G) node, and the other can act as a terminal (T) node. The grant node can be referred to as a master control node device, G node, G device, or first node, etc.; the terminal node can be referred to as a T node, T device, or second node, etc. This application does not limit the device names, as long as they can perform the corresponding functions. For ease of description, the grant node will be abbreviated as G node, and the terminal node as T node. Generally, as a G node, resources can be uniformly scheduled and managed. Therefore, the G node can send data scheduling information, and the T node can receive data scheduling information and send data according to the data scheduling information.

[0086] It should be understood that the above description of the transmitting device 110 and the receiving device 120 is merely exemplary, and this application does not limit the specific form of the transmitting device 110 and the receiving device 120.

[0087] To improve air interface utilization, StarSpark has developed multicast technology. Multicast is a one-to-many communication method, meaning that the same air interface data frame can be received simultaneously by multiple devices within the group. To enhance the security of multicast communication, data frames are generally encrypted. In the current protocol, multicast encryption is achieved through payload counting. The payload count increments when a multicast data item is successfully received by all receivers or when the maximum retransmission count is reached.

[0088] Specifically, the payload count is a numerical value, starting from 0 and increasing by 1 each time. In the current protocol discussion, to ensure the security of the multicast group system, the payload count needs to be maintained simultaneously by both the sender and receiver. The sender uses this payload count to encrypt the payload of data frames, and the receiver uses it to decrypt the payload of data frames. The payload count increments when the payload of a data frame is successfully received by all receivers or when the maximum retransmission count is reached. For example, for the sender, after sending a data frame, if it receives acknowledgments (ACKs) from all receivers, it can be determined that the payload of the data frame has been successfully received by all receivers. At this point, the payload count can be incremented to encrypt the payload of the next data frame. If the sender does not receive acknowledgments (ACKs) for the data frame from all receivers, or receives negative acknowledgments (NACKs) from some receivers, it will not increment the payload count. Instead, it will continue to retransmit the data frame until the maximum retransmission count is reached or it is confirmed that the payload of the data frame has been successfully received by all receivers. It should be understood that when the maximum retransmission count is reached, the sender will discard the data frame and increment the payload count to transmit the next data frame. For the receiver, after receiving the data frame, if it successfully decrypts the payload, it will not continue to decrypt retransmitted data of the same frame; instead, it will increment the payload count to decrypt the next data frame. If the receiver fails to parse the payload of the data frame or fails to receive the data frame, it will use the payload count to continue decrypting retransmitted data of the same frame. If the maximum retransmission count is reached and the receiver still fails to decrypt the data frame correctly, it will discard the data frame and increment the payload count. In summary, the payload count increases as data frames are correctly received or dropped.

[0089] It should be understood that the payload count is only a part of the information used for encryption and decryption, and the information used for encryption and decryption may include other content, which is not limited in this application.

[0090] In addition, a data frame includes a frame header and a payload. Encryption and decryption in this application refer to encrypting and decrypting the payload. The frame header does not need to be encrypted and decrypted. The frame header includes the sequence number of the data frame. During retransmission, the sequence number in the frame header is the same as the previous one. During initial transmission, the sequence number in the frame header is different from the previous one. The receiving end can determine whether the data frame is retransmitted data based on the sequence number.

[0091] Figure 2This is a schematic diagram of the multicast establishment and transmission method 200. (Example) Figure 2 As shown, the method 200 mainly includes the following steps.

[0092] S201, the sending end sends a multicast establishment message #1 to the receiving end 1.

[0093] The multicast message #1 includes the multicast activation time t0, indicating that the sender will start sending multicast data frames at that time.

[0094] S202, Receiver 1 replies with multicast message confirmation #1.

[0095] After steps S201 and S202, a multicast connection was established between the sending end and the receiving end 1. In other words, the sending end and the receiving end 1 performed the initial access procedure. Alternatively, the receiving end 1 joined multicast group 1.

[0096] S203, the sending end sends a multicast establishment message #2 to the receiving end 2.

[0097] The multicast message #2 will also include the multicast activation time t0.

[0098] S204, Receiver 2 replies with multicast message confirmation #2.

[0099] After steps S203 and S204, a multicast connection was established between the sending end and the receiving end 2. In other words, the sending end and the receiving end 1 performed the initial access procedure. Alternatively, the receiving end 1 joined multicast group 1.

[0100] S205, at the multicast activation time t0, the sending end uses payload count 0 (its value is not 0) to encrypt the payload of data frame #0 and sends data frame #0. Both receiving end 1 and receiving end 2 receive data frame #0 and use payload count 0 to decrypt the payload of data frame #0.

[0101] Optionally, both receiver 1 and receiver 2 successfully decrypt the data, therefore sending an ACK (not shown in the figure) and incrementing the payload count by 1. The receiver confirms the successful transmission of data frame #0 based on the two ACKs and increments the payload count by 1.

[0102] S206, following S205, the sending end continues to send the next multicast data. Specifically, the sending end encrypts the payload of data frame #1 using payload count 1 (value is not 1) and sends data frame #1. Both receiving end 1 and receiving end 2 receive data frame #1 and decrypt the payload of data frame #1 using payload count 1.

[0103] Optionally, both receiver 1 and receiver 2 successfully decrypt the data, therefore sending an ACK (not shown in the diagram) and incrementing the payload count to 2. The receiver confirms the successful transmission of data frame #1 based on the two ACKs and increments the payload count to 2.

[0104] S207 Similarly, after S206, the sending end encrypts the payload of data frame #2 using payload count 2 (with a value of 2) and sends data frame #2. Both receiving end 1 and receiving end 2 receive data frame #2 and decrypt the payload of data frame #2 using payload count 2.

[0105] Optionally, both receiver 1 and receiver 2 successfully decrypt the data, therefore sending an ACK (not shown in the diagram) and incrementing the payload count to 3. The receiver confirms the successful transmission of data frame #2 based on the two ACKs and increments the payload count to 3.

[0106] In the above process, the payload count needs to be maintained simultaneously by the sending end and multiple receiving ends, each incrementing according to historical sending and receiving data. If a new device connects after the multicast has been established, the new device cannot know the packet sending and receiving status before connection and therefore cannot obtain the payload count at the time of connection. This will prevent the multicast from joining midway, and the newly connected device will not be able to receive multicast data frames in a timely manner, thus affecting the user experience.

[0107] In view of this, this application proposes a communication method and communication device that enables dynamic multicast joining and improves user experience.

[0108] It should be understood that the embodiments shown below illustrate the method using group leader nodes and first member nodes as examples of interactive execution entities. However, this application does not limit the execution entity; any program capable of running the code of the method provided in the embodiments of this application can communicate according to the method provided in the embodiments of this application. The execution entity of the method provided in the embodiments of this application can be a group leader node or a first member node, or a functional module within the group leader node or the first member node capable of calling and executing a program. For example, Figure 3 The group leader node can also be a chip, chip system, or processor that supports the methods that the group leader node can implement, or it can be a logic module or software that can implement all or part of the functions of the group leader node. Figure 3 The first member node in the process can also be a chip, chip system, or processor that supports the methods that the terminal node can implement, or it can be a logic module or software that can implement all or part of the functions of the first member node.

[0109] Figure 3 This is a schematic flowchart of a communication method 300 provided in this application. Figure 3As shown, the method 300 includes the following steps.

[0110] S310, the group leader node sends the first message, and correspondingly, the first group member node receives the first message. The group leader node can also be called the first node, and the first group member node can also be called the second node.

[0111] The first piece of information is used for encrypting and decrypting multicast data. Specifically, the first piece of information can be a portion of the random numbers used for encryption and decryption. Besides the first piece of information, the random numbers used for encryption and decryption can also include other content, such as an initialization vector. In other words, the group leader node can determine the random numbers used for encrypting multicast data based on the first piece of information. The specific form of the first piece of information will be described later.

[0112] For example, the first information can be carried in a first message, which is used by the group leader node and the first group member node to establish a multicast connection. Alternatively, the first message can instruct the first group member node to join the multicast group. For instance, the first message can be a multicast establishment message. For ease of distinction, the multicast group that the first group member node joins will be referred to as the first multicast group below.

[0113] In this application, the multicast identified by the first multicast group can refer to synchronous multicast, that is, the data frames are synchronized in time during the sending and receiving process, thereby avoiding the problem of time difference in data transmission.

[0114] For example, S310 may be a step in the initial access process of the first member node.

[0115] Optionally, after S310, the first member node replies to the group leader node with a response message for the first message, indicating whether the first message was successfully received. For example, the response message for the first message could be a multicast message confirmation message.

[0116] For example, the first message may be sent via unicast, meaning that the first member node may be the sole recipient of the first message.

[0117] S320, the group leader node generates first multicast data based on the first information and the session key, wherein the payload in the first multicast data is obtained by encrypting the first information and the session key. In other words, the first information and the session key are used to encrypt the payload in the first multicast data.

[0118] In this application, the payload can also be referred to as net payload, valid data, etc., which refers to the information carried by the data fields in the data frame.

[0119] In this first multicast data stream, the payload is encrypted using the first information and the session key. This can be understood as follows: besides the first information, the information required to encrypt the multicast data may also include the session key. The session key is a predefined parameter of the protocol; for details, please refer to the StarSpark protocol. In other words, the first information sent by the group leader node to the first member node is only a portion of the information used for encrypting and decrypting the multicast data. Information such as the session key will not be transmitted over the air interface, thus ensuring communication security.

[0120] Optionally, the information required to encrypt multicast data may also include other information such as encryption algorithms. The encryption algorithm may be predefined by the protocol. Specifically, the encryption algorithm may be the Advanced Encryption Standard (AES) or a national cryptographic algorithm, such as Shangmi (SM)4, SM2, SM3, etc. The specific encryption algorithm to be used can be referred to the protocol definition.

[0121] Optionally, the random number used to encrypt and decrypt multicast data can be part of the input to the encryption algorithm. In other words, the leader node can input the random number and other information into the encryption algorithm to obtain the output information of the encryption algorithm, and then encrypt the first multicast data according to the output information of the encryption algorithm and information such as the session key.

[0122] For example, the first multicast data may also be referred to as the first data frame, the first multicast data frame, the first multicast data packet, etc.

[0123] S330, the group leader node sends the first multicast data, and correspondingly, the first group member node receives the first multicast data.

[0124] For example, the first multicast data can be sent in the form of multicast, that is, the first group member node is a partial receiver of the first multicast data, and the group leader node only needs to send the first multicast data once, and all group member nodes in the same group can receive the first multicast data.

[0125] For example, the first multicast data can be understood as the first transmission of the payload in the first multicast data, i.e., the initial transmission.

[0126] Based on the above scheme, the group leader node can send the first information to the first group member node for encrypting and decrypting multicast data, and encrypt the first multicast data based on the first information and the session key. In this way, when the first group member node is a newly joined node in the multicast group, it can also have the information to decrypt the first multicast data, so that the first group member node can receive the first multicast data in a timely manner, realize dynamic joining of multicast, and improve user experience.

[0127] On the other hand, since the first information is only a part of the information used to encrypt and decrypt multicast data, such as session keys, it is not transmitted over the air interface, thus avoiding the leakage of encrypted information and ensuring the security of communication.

[0128] For example, in true wireless stereo (TWS) earphones, multi-microphones, multi-speaker systems, and even mesh environments, there are scenarios where group members need to dynamically join. For instance, if one earphone is in the middle of a call and another earphone joins midway, the method in this application allows multicast group members to freely, securely, and seamlessly join and leave the multicast group, greatly improving the user experience.

[0129] Optionally, when the first member node receives the first multicast data, the method 300 further includes: S340, the first member node decrypts the first multicast data based on the first information and the session key.

[0130] In cases where the first member node does not receive the first multicast data, the first member node may not execute S340.

[0131] It should be understood that due to factors such as network congestion and signal interference, the first member node may or may not receive the first multicast data. When the first member node receives the first multicast data, it will decrypt the data based on the received initial information and the session key predefined in the protocol. If the payload in the first multicast data is successfully decrypted, the first member node can confirm that the first multicast data was successfully received. If the payload in the first multicast data is not successfully decrypted, or if the first multicast data is not received, the first member node can confirm that the first multicast data reception failed.

[0132] In this application, decryption can also be called decoding, parsing, etc., which refers to obtaining the information carried by the data fields in the multicast data.

[0133] For example, the first member node may first determine a random number for decrypting the multicast data based on the first information, then input the random number and other information into the encryption algorithm to obtain the output information of the encryption algorithm, and then decrypt the first multicast data based on the output information of the encryption algorithm and information such as the session key.

[0134] Optionally, after S340, the method 300 further includes: S350, where the first member node reports to the leader node whether the first multicast data was successfully received, for example, ACK indicates successful reception, and NACK indicates failure to receive the first multicast data.

[0135] If the nodes that joined the first multicast group also include the second member node, which joined the first multicast group before S310, then similarly, the second member node can also execute S330 to S350.

[0136] In one implementation scenario (referred to as implementation scenario 1), the first information is the first moment and the first day count. The first moment is the effective moment of the first multicast data. The effective moment can also be replaced by the sending moment, real-time moment, current moment or real-time clock, etc.

[0137] Specifically, the time in this application can be represented by a slot. The first time can be the signaling effective slot number, which can be represented by the system basic slot sequence number (or system absolute slot, etc.), indicating in which slot the member node will start sending the first multicast data. Correspondingly, the first member node will start receiving the first multicast data in that slot. It should be understood that time can also be represented by other time units, such as symbols, subslots, etc., without limitation.

[0138] For example, in this implementation, S330, the group leader node sending the first multicast data can mean that the group leader node sends the first multicast data at the first moment; correspondingly, the first member node receiving the first multicast data can mean that the first member node receives the first multicast data at the first moment.

[0139] The first day count represents the number of days corresponding to the first moment. Specifically, due to the changing time, moments accumulate continuously. Taking a 24-hour clock as an example, when the accumulated time exceeds 24 hours, the timer is initialized to 0, meaning a new round of timing begins, and the corresponding number of days increases. Therefore, in this application, when moments can be represented by time slots, the system's basic time slot sequence number also continuously accumulates. The initial value of the day count is 0. When the system's basic time slot sequence number first accumulates to its maximum value (or a flip occurs), the day count is incremented by 1, i.e., initialized to 1. Subsequently, whenever the system's basic time slot sequence number accumulates to its maximum value, the day count is incremented by 1. The first day count represents the number of days corresponding to the first moment.

[0140] For example, the first moment and the first day count can be collectively referred to as real-time clock information.

[0141] In summary, this implementation scenario can also be understood as follows: multicast data will no longer be encrypted or decrypted using payload counts. Instead, it will be replaced by the effective time of the multicast data and the count value of the number of days corresponding to that time. That is, the first multicast data is encrypted or decrypted based on the effective time of sending the first multicast data and the count value of the number of days corresponding to that time.

[0142] Figure 4This illustrates the information included in the random numbers used for encrypting and decrypting multicast data in this implementation scenario, such as... Figure 4 As shown, the random number consists of the system absolute time slot, the day count, and the initialization vector. The system absolute time slot occupies 30 bits, the day count occupies 10 bits, and the initialization vector occupies 64 bits. The random number consists of 13 bytes in total.

[0143] Based on the above scheme, multicast data can be encrypted based on a real-time clock, i.e., the time when the multicast takes effect. This not only ensures communication security but also reduces the complexity of maintaining encrypted or decrypted information on the transceiver devices.

[0144] For example, in this implementation scenario, the first information may include a first sub-information and a second sub-information. The first sub-information is the first moment, and the second sub-information is the first day count. The first sub-information may occupy 30 bits, and the second sub-information may occupy 10 bits.

[0145] Optionally, in this implementation scenario, if the first multicast data transmission fails, the method further includes: the group leader node retransmitting the first multicast data. Specifically, the group leader node retransmitting the first multicast data can mean that the group leader node generates and sends second multicast data, where the payload in the second multicast data is the same as the payload in the first multicast data, and the payload in the second multicast data is obtained by encryption based on the second time point, the second day's number count, and the session key. In other words, when the first multicast data is retransmitted, the payload remains unchanged, but the encryption information changes.

[0146] The second time point refers to the effective time of the second multicast data. Similarly, the group leader node can send the second multicast data at the second time point.

[0147] The second day's count is the count value of the day corresponding to the second time point. It should be understood that the second day's count and the first day's count can be the same or different. For example, if the system's basic timeslot sequence number has not accumulated to its maximum value during retransmission, the second day's count and the first day's count are the same; if the system's basic timeslot sequence number has accumulated to its maximum value during retransmission, the second day's count and the first day's count are different. Specifically, the second day's count can be the first day's count plus 1.

[0148] The second time point can be determined based on the first time point; for example, the second time point can be the first time point plus a time offset value. Optionally, this time offset value can be indicated by the first message.

[0149] For example, the first message may also include second information, which is used to determine the effective time of at least one multicast data in addition to the first multicast data. For example, the second information may be used to determine a second time.

[0150] Optionally, the second information can be the aforementioned time offset value.

[0151] For example, the second information can be an event group period or an event period. The following is in conjunction with... Figure 5 The above concepts will be explained.

[0152] Figure 5 This is a schematic diagram illustrating the configuration of transmission time resources for the multicast data provided in this application. For example... Figure 5 As shown, the leader node sends multicast data packets at the start of each event group and at the start of each event. All member nodes (such as...) Figure 3 Nodes 1, 2, and 3 in the group receive the data at this time. Subsequently, each member node feeds back sequentially at a determined time offset according to its own intra-event interval configuration value. For ease of understanding, the following is a more detailed explanation. Figure 5 A brief introduction to some of the concepts involved.

[0153] (1) An event group can include one or more events; in other words, an event group is a data transmission process consisting of multiple events. An event refers to the smallest basic process of data transmission. This can be a process of two devices sending and receiving data sequentially, or a process of a broadcast device sending data once. For example, ... Figure 5 As shown, event group #1 includes event #1 and event #2. The event group period refers to the duration of an event group, while the event duration refers to the duration of an individual event.

[0154] (2) The intra-event interval refers to the time between the end of transmission by the first node and the start of transmission by the subsequent node within an event. The intra-event interval is configured by the group leader node during multicast setup; that is, it can be a configurable value. For example, ... Figure 5 The values ​​shown are "Interval within Node 1 (Configuration Value)", "Interval within Node 2 (Configuration Value)", and "Interval within Node 3 (Configuration Value)".

[0155] (3) The inter-event interval refers to the time between the end time of the transmission of the preceding event and the start time of the transmission of the following event within an event group. It is determined by the end time of the preceding event and the start time of the following event; in other words, the inter-event interval is a constraint value. For example, ... Figure 5 The "Interval between events (constraint value)" for node 1, "Interval between events (constraint value)" for node 2, and "Interval between events (constraint value)" for node 3 are shown.

[0156] (4) The inter-event interval refers to the time between the end time of the transmission of the last event in the preceding event group and the start time of the transmission of the first event in the following event group for two adjacent event groups. It is determined by the end time of the transmission of the last event in the preceding event group and the start time of the transmission of the first event in the following event group; in other words, the inter-event interval is a constraint value. For example, as... Figure 5 The values ​​shown are "Interval between event groups of node 1 (constraint value)", "Interval between event groups of node 2 (constraint value)" and "Interval between event groups of node 3 (constraint value)".

[0157] For example, when an event group includes multiple events, the first multicast data and the second multicast data can be different events within the same event group. Specifically, assume the group leader node indicates the first moment as... Figure 5 If time 1 is the first time, then the second time is... Figure 5 At time 2, the group leader node sends the first multicast data at time 1 and the second multicast data at time 2. The time offset value at this time is the event period.

[0158] For example, when an event group contains only one event, the first multicast data and the second multicast data can be events from different event groups. Specifically, assume... Figure 5 Event group #1 in the data only includes event #1, excluding event #2, and the group leader node indicates the first moment is... Figure 5 If time 1 is the first time, then the second time is... Figure 5 In the event group period, time 3 refers to the time offset between the leader node sending the first multicast data at time 1 and the second multicast data at time 3. Furthermore, when an event group contains only one event, the event group period and the event period are the same.

[0159] It should be understood that in this application, the failure to send the first multicast data means that at least one member node in the first multicast group fails to receive the first multicast data. In other words, when any member node in the first multicast group fails to receive the first multicast data, the group leader node will retransmit the first multicast data.

[0160] Optionally, in this implementation scenario, if the first member node fails to receive the first multicast data, the method further includes: the first member node receiving the retransmitted first multicast data. Specifically, the first member node receiving the retransmitted first multicast data may mean that the first member node receives the second multicast data. Similarly, the first member node may also decrypt the second multicast data based on the second time point, the second day's count, and the session key.

[0161] It should be understood and referenced. Figure 5The first member node can determine the second time based on the first time and the second information, for example, by adding a time offset value to the first time.

[0162] Optionally, in this implementation scenario, the first message may also include indication information, which can be understood as an encryption method indication or encryption type indication, indicating the type of the first message. For example, it may indicate that the first message includes a first time and a first day count, or it may indicate that the multicast data is encrypted based on clock information.

[0163] Specifically, in this application, the aforementioned indication information may indicate whether the first information includes a first moment or a target payload count, or in other words, whether the multicast data is encrypted based on clock information or payload count. For example, in this implementation scenario, the indication information indicates that the multicast data is encrypted based on clock information; in implementation scenario 2 below, the indication information may indicate that the multicast data is encrypted based on payload count.

[0164] For example, the indication information can be 1 bit, with a value of 1 indicating that the multicast data is encrypted based on clock information, and a value of 0 indicating that the multicast data is encrypted based on payload count.

[0165] Table 1 shows a frame format for the first message provided in this application. The signaling effective time slot number is the first sub-information; to ensure byte alignment, its signaling bit width is 32 bits, with 30 bits actually occupied, and its value is an integer between 0 and (2^30-1). The day count is the second sub-information; its signaling bit width is 39 bits, with 10 bits actually occupied, and its value is an integer between 0 and (2^10-1). The encryption method indication is the indication information, and the event group period or event period is the second information. Compared to the current protocol, the encryption method indication and the day count can be considered as newly added information in the first message. Since the multicast data's effective time is information already carried in the first message, this implementation scenario can also be understood as reusing the multicast data's effective time.

[0166] Table 1

[0167]

[0168]

[0169] Similarly, when the first member node successfully decrypts the payload in the second multicast data, it can confirm that the second multicast data was successfully received. If the first member node fails to decrypt the payload in the second multicast data, or fails to receive the second multicast data, it can confirm that the second multicast data reception failed. The first member node can then report back to the leader node whether the second multicast data was successfully received.

[0170] Optionally, if the first member node successfully receives the first multicast data, the first member node will not receive the second multicast data, that is, it will not receive the retransmission data of the first multicast data.

[0171] Similarly, the second member node can also decrypt the first multicast data based on the first time point, the first day count, and the session key. It should be understood that when the second member node joins the first multicast group, it can also receive the multicast establishment message sent by the group leader node, indicating information such as the signaling effective time number, event period, event group period, intra-event interval, inter-event interval, and inter-event group interval. The method by which the second member node determines the first time point can be referenced from the method by which the first member node determines the second time point.

[0172] Similarly, if the second member node fails to receive the first multicast data, it can receive the second multicast data; if the second member node successfully receives the first multicast data, it can choose not to receive the second multicast data.

[0173] In another implementation scenario (referred to as implementation scenario 2), the first information includes the target payload count and an indication of the transmission direction.

[0174] The payload count refers to the accumulated value of the payload numbers of the transmitted data packets. It is a numerical value, and can be an integer. The target payload count, also known as the first payload count, refers to a specific value determined by the group leader node based on the historical transmission of multicast data, or based on the currently maintained payload count. For example, the target payload count can be greater than or equal to the currently maintained payload count. The target payload count can also be referred to as the target value of the payload count.

[0175] The transmission direction indication, also known as the first-to-last transmission indication or direction indication, can indicate that the first-to-send node sends and the second-to-last node receives, or vice versa. Since multicast data is sent by the group leader node and received by the group members, when the group leader node is the first-to-send node, the transmission direction indication is "first-to-send node sends and second-to-last node receives"; conversely, when the group leader node is the second-to-last node, the transmission direction indication is "first-to-send node receives and second-to-last node sends".

[0176] In summary, this implementation scenario can also be understood as follows: multicast data is still encrypted or decrypted using the values ​​of payload count and transmission direction indication, and the payload count is the target value indicated by the group leader node.

[0177] Figure 6 This illustrates the information included in the random numbers used for encrypting and decrypting multicast data in this implementation scenario, such as... Figure 6 As shown, the random number consists of a payload count, a direction indicator, and an initialization vector. The payload count occupies 39 bits, the direction indicator occupies 1 bit, and the initialization vector occupies 64 bits. The random number consists of 13 bytes in total.

[0178] Based on the above scheme, multicast data can be encrypted or decrypted based on the target payload count. That is, on the basis of the current protocol, it is only necessary to indicate the target value of the payload count to the newly joined member node to realize the dynamic joining of multicast. This not only ensures communication security, but also better compatibility with the current protocol.

[0179] For example, in this implementation scenario, the first information may include a third sub-information and a fourth sub-information. The third sub-information is the target payload count, and the fourth sub-information is an indication of the transmission direction. The third sub-information may occupy 39 bits, and the fourth sub-information may occupy 1 bit.

[0180] Optionally, in this implementation scenario, if the first multicast data transmission fails, the method further includes: the group leader node retransmitting the first multicast data. Specifically, the group leader node retransmitting the first multicast data can mean that the group leader node generates and sends second multicast data, where the payload in the second multicast data is the same as the payload in the first multicast data, and the payload in the second multicast data is obtained by encrypting it based on the target payload count, the value of the transmission direction indication, and the session key. In other words, when the first multicast data is retransmitted, the payload remains unchanged, and the encryption information also remains unchanged.

[0181] Optionally, in this implementation scenario, if the first member node fails to receive the first multicast data, the method further includes: the first member node receiving the retransmitted first multicast data. Specifically, the first member node receiving the retransmitted first multicast data may mean that the first member node receives the second multicast data. Similarly, the first member node may also decrypt the second multicast data based on the target payload count, the value of the transmission direction indication, and the session key.

[0182] Optionally, in this implementation scenario, the group leader node and all group member nodes (including the first group member node) jointly maintain the payload count. The payload count increments when a multicast data item is successfully received by all receivers or when the maximum retransmission count is reached. It should be understood that if the maximum retransmission count is reached and the receiver still fails to correctly decrypt the multicast data, the receiver will discard the multicast data and increment the payload count. Therefore, "reaching the maximum retransmission count" can also be replaced with: reaching the point where the multicast data is discarded.

[0183] For example, the first message also includes third information, which is used to indicate the maximum number of retransmissions of the first multicast data. For example, the third information can be the data discarding period of the first link or the data discarding period of the subsequent link. For example, when the group leader node is the first link (or the first node), the third information can be the data discarding period of the first link, and when the group leader node is the subsequent link (or the subsequent node), the third information can be the data discarding period of the subsequent link.

[0184] Optionally, in this implementation scenario, the first message also includes a first sub-information, which is the first moment. Similarly, the group leader node can send the first multicast data at the first moment, and the first group member node can receive the first multicast data at the first moment. Optionally, the group leader node can send the second multicast data at the second moment, and the first group member node can receive the second multicast data at the second moment. For a detailed explanation of the first and second moments, please refer to implementation scenario 1. In other words, in implementation scenario 2, the transmission time of the multicast data is the same as in real-time scenario 1; the difference is that the encryption method of the multicast data has changed.

[0185] Optionally, in this implementation scenario, the first message may also include indication information, which may indicate that the first message is a target payload count, or that the indication information may indicate that the multicast data is encrypted based on the payload count.

[0186] Table 2 shows another frame format of the first message provided in this application. The payload count is the third sub-information, with a signaling width of 39 bits, actually occupying 39 bits, and a value between 0 and (2^39-1). The first-to-last transmission indication is the fourth sub-information, with a signaling width of 1 bit, actually occupying 1 bit, and a value of 0 or 1. The encryption method indication is the indication information, and the data discarding period of the first-to-last link or the data discarding period of the second-to-last link is the second information. The signaling effective time slot number is the first sub-information. Compared to the current protocol, the encryption method indication and payload count can be considered as newly added information in the first message.

[0187] Table 2

[0188]

[0189]

[0190] For details regarding any omissions or incomplete descriptions in Implementation Scenario 2, please refer to Implementation Scenario 1.

[0191] Optionally, in implementation scenario 2, after S320 and before S330, the method further includes: the group leader node sending third multicast data, and correspondingly, the first member node receiving the third multicast data, wherein the payload of the third multicast data is encrypted based on a second payload count, the second payload count is different from the target payload count, and the payload of the third multicast data is different from the payload of the first multicast data. In this case, the method may further include: the first member node decrypting the third multicast data based on the target payload count, the value of the transmission direction indication, and the session key.

[0192] Specifically, the third multicast data can be retransmission of the multicast data preceding the first multicast data. Therefore, its payload is encrypted using the second payload count. However, the first member node cannot know the second payload count during the initial access process. It will use the target payload count indicated in S310 to decrypt the third multicast data. Since the second payload count and the target payload count are different, the first member node will fail to decrypt.

[0193] In this scenario, the first member node can ignore the third multicast data and continue receiving the next multicast data (e.g., if the next multicast data is the first multicast data, then execute steps S330 and thereafter). It will then decrypt the data using the target payload count until decryption is successful or the maximum retransmission count is reached. Afterward, the first member node will decrypt the data using the next payload count. In other words, the new access node first attempts to decrypt using the target payload count. If decryption fails, it is ignored, and the node continues to attempt decryption using that value in the next cycle until decryption is successful or the data frame is discarded. Then, it will decrypt the data using the next payload count.

[0194] As an example, suppose the target payload count is n, and the second payload count can be an integer less than n, such as n-1.

[0195] Based on the above scheme, in the case where multicast data is still encrypted based on payload count, when a new node (such as the first member node) initially connects, there may be a situation where the group leader node has not yet used the target payload count to encrypt the multicast data because the previous retransmission has not ended. In this case, the first member node can ignore the multicast data and continue to receive subsequent multicast data until decryption is successful, thus ensuring the continuity of communication.

[0196] It should be understood that this application uses clock information or payload count as examples for illustration, but the first information can also be in other forms and is not limited thereto.

[0197] The following is combined with Figure 7 and Figure 8 The two implementation scenarios described above will be explained in detail. Figure 7 and Figure 8 All of these can be considered as a specific implementation of method 300.

[0198] like Figure 7 As shown, method 700 may include the following steps:

[0199] S701, the sending end sends a multicast establishment message #1 to the receiving end 1.

[0200] The multicast message #1 includes the multicast activation time t0 (an example of the first sub-information) and the day count 0 corresponding to time t0 (an example of the second sub-information), indicating that the sender will start sending multicast data frames at time t0, and the data frames are encrypted using time t0 and day count 0.

[0201] S702, Receiver 1 replies with multicast message confirmation #1.

[0202] After steps S701 and S702, a multicast connection was established between the sending end and the receiving end 1. In other words, the sending end and the receiving end 1 performed the initial access procedure. Alternatively, the receiving end 1 joined multicast group 1.

[0203] S703, the sending end sends a multicast establishment message #2 to the receiving end 2.

[0204] Similarly, the multicast message #2 will also include the multicast activation time t0 and the day count 0 corresponding to time t0.

[0205] S704, Receiver 2 replies with multicast message confirmation #2.

[0206] After steps S803 and S804, a multicast connection was established between the sending end and the receiving end 2. In other words, the sending end and the receiving end 1 performed the initial access procedure. Alternatively, the receiving end 1 joined multicast group 1.

[0207] S705, at the effective time t0 of the multicast, the sending end encrypts the payload of data frame #0 using time t0 and the corresponding day count 0, and sends data frame #0. Both receiving end 1 and receiving end 2 receive data frame #0 and decrypt the payload of data frame #0 using time t0 and the corresponding day count 0.

[0208] Optionally, both receiver 1 and receiver 2 successfully decrypt the data and therefore send an ACK (not shown in the diagram). The receiver confirms that data frame #0 was successfully transmitted based on the two ACKs.

[0209] S706, following S205, the sending end continues to send the next multicast data. Specifically, at the multicast activation time t1, the sending end encrypts the payload of data frame #1 using time t1 and the corresponding day count 0, and sends data frame #1. Both receiving end 1 and receiving end 2 receive data frame #1 and decrypt the payload of data frame #1 using time t1 and the corresponding day count 0.

[0210] Multicast setup messages #1 and #2 indicate the time at which the sender transmits each multicast data item, i.e., the effective time of each multicast data item. For example, both multicast setup messages #1 and #2 include a time offset (an example of the second information). Based on this time offset and time t0, receivers 1 and 2 can determine that after time t0, the effective times of the multicast are t1, t2, t3, t4, and t5, respectively. For example, the number of days corresponding to times t0, t1, t2, t3, t4, and t5 are the same, for example, all being 0 days.

[0211] Optionally, both receiver 1 and receiver 2 successfully decrypt the data and therefore send an ACK (not shown in the diagram). The receiver confirms that data frame #1 was successfully transmitted based on the two ACKs.

[0212] S707 Similarly, at the multicast activation time t2, the sending end uses time t2 and the corresponding day count 0 to encrypt the payload of data frame #2 and sends data frame #2. Both receiving end 1 and receiving end 2 receive data frame #2 and use time t2 and the corresponding day count 0 to decrypt the payload of data frame #2.

[0213] Optionally, both receiver 1 and receiver 2 successfully decrypt the data and therefore send an ACK (not shown in the diagram). The receiver confirms that data frame #2 was successfully transmitted based on the two ACKs.

[0214] S708, the sending end discovers that the receiving end 3 needs to join multicast group 1, and the sending end sends a multicast establishment message #3 to the receiving end 3.

[0215] The multicast message #3 includes the multicast activation time t3 (another example of the first sub-information) and the day count 0 corresponding to time t3 (another example of the second sub-information), indicating that the sender will start sending multicast data frames at that time.

[0216] S709, Receiver 3 replies with multicast message confirmation #3.

[0217] After steps S708 and S709, a multicast connection was established between the sending end and the receiving end 3. In other words, the sending end and the receiving end 3 performed the initial access procedure. Alternatively, the receiving end 3 joined multicast group 1.

[0218] S710, similarly, at the multicast activation time t3, the sending end uses time t3 and the corresponding day count 0 to encrypt the payload of data frame #3 and sends data frame #3. Receiver 1, receiver 2 and receiver 3 all receive data frame #3 and use time t3 and the corresponding day count 0 to decrypt the payload of data frame #3.

[0219] Optionally, receivers 1, 2, and 3 all successfully decrypt the data and therefore send an ACK (not shown in the diagram). The receivers confirm the successful transmission of data frame #3 based on the multiple ACKs.

[0220] S711 Similarly, at the multicast activation time t4, the sending end encrypts the payload of data frame #4 using time t4 and the corresponding day count 0, and sends data frame #4. Receiver 1, receiver 2 and receiver 3 all receive data frame #4 and decrypt the payload of data frame #4 using time t4 and the corresponding day count 0.

[0221] Optionally, receivers 1, 2, and 3 all successfully decrypt the data and therefore send an ACK (not shown in the diagram). The receivers confirm the successful transmission of data frame #4 based on the multiple ACKs.

[0222] Among them, receiver 3 can determine the effective times of the multicast after time t3, namely t4 and t5, based on the time t3 and time offset value (another example of the second information) in multicast establishment message #3.

[0223] S712 Similarly, at the multicast activation time t5, the sending end uses time t5 and the corresponding day count 0 to encrypt the payload of data frame #5 and sends data frame #5. Receiver 1, receiver 2 and receiver 3 all receive data frame #5 and use time t5 and the corresponding day count 0 to decrypt the payload of data frame #5.

[0224] Optionally, receivers 1, 2, and 3 all successfully decrypt the data and therefore send an ACK (not shown in the diagram). The receivers confirm the successful transmission of data frame #5 based on the multiple ACKs.

[0225] It should be understood that in method 700, it is assumed that the number of days corresponding to time t0, time t1, time t2, time t3, time t4, and time t5 is the same, but the number of days corresponding to time t0, time t1, time t2, time t3, time t4, and time t5 can also be different, without restriction.

[0226] Based on the above scheme, multicast data can be encrypted using a real-time clock. This allows any newly added node to receive the encrypted information, enabling timely multicast data reception, dynamic multicast joining, and improved user experience.

[0227] On the other hand, the above scheme reuses the multicast activation time, which not only ensures communication security, but also avoids the need for transceiver equipment to maintain payload counting, reduces the complexity of transceiver equipment, and also reduces its power consumption.

[0228] like Figure 8 As shown, method 800 may include the following steps:

[0229] S801, the sending end sends a multicast establishment message #1 to the receiving end 1.

[0230] The multicast message #1 includes the multicast activation time t0 and the target payload count 0 (which is 0, another example of the first message), indicating that the sender will start sending multicast data frames at time t0, and the data frames are encrypted using count 0.

[0231] S802, Receiver 1 replies with multicast message confirmation #1.

[0232] After steps S801 and S802, a multicast connection was established between the sending end and the receiving end 1. In other words, the sending end and the receiving end 1 performed the initial access procedure. Alternatively, the receiving end 1 joined multicast group 1.

[0233] S803, the sending end sends a multicast establishment message #2 to the receiving end 2.

[0234] Similarly, the multicast message #2 will also include the multicast activation time t0 and the target payload count 0 (another example of the first message).

[0235] S804, Receiver 2 replies with multicast message confirmation #2.

[0236] After steps S803 and S804, a multicast connection was established between the sending end and the receiving end 2. In other words, the sending end and the receiving end 1 performed the initial access procedure. Alternatively, the receiving end 1 joined multicast group 1.

[0237] The specific processes of S805 to S807 are basically the same as those of S205 to S207, and can be referred to the method 200 above.

[0238] Multicast setup messages #1 and #2 indicate the time at which the sending end transmits each multicast data, i.e., the effective time of each multicast data. For example, both multicast setup messages #1 and #2 include a time offset (an example of the second information). Based on this time offset and time t0, receiving end 1 and receiving end 2 can determine that after time t0, the effective times of the multicast are t1, t2, t3, t4, and t5, respectively. Therefore, the transmission times of data frames #0, #1, #2, #3, #4, and #5 are t0, t1, t2, t3, t4, and t5, respectively.

[0239] S808, the sending end discovers that the receiving end 3 needs to join multicast group 1, and the sending end sends a multicast establishment message #3 to the receiving end 3.

[0240] The multicast message #3 includes the multicast activation time t3 and the target payload count 3 (with a value of 3, another example of the first message), indicating that the sender will start sending multicast data frames at time t3, and the data frames are encrypted using count 3.

[0241] S809, Receiver 3 replies with multicast message confirmation #3.

[0242] After steps S808 and S809, a multicast connection was established between the sending end and the receiving end 3. In other words, the sending end and the receiving end 3 performed the initial access procedure. Alternatively, the receiving end 3 joined multicast group 1.

[0243] S810, similarly, at the multicast activation time t3, the sending end uses payload count 3 to encrypt the payload of data frame #3 and sends data frame #3. Receiver 1, receiver 2 and receiver 3 all receive data frame #3 and use count 3 to decrypt the payload of data frame #3.

[0244] Optionally, receivers 1, 2, and 3 all successfully decrypt the data, therefore sending an ACK (not shown in the diagram) and incrementing the payload count to 4. The receivers confirm the successful transmission of data frame #3 based on the multiple ACKs and increment the payload count to 4.

[0245] S811 Similarly, at the multicast activation time t4, the sending end uses payload count 4 to encrypt the payload of data frame #4 and sends data frame #4. Receiver 1, receiver 2 and receiver 3 all receive data frame #4 and use payload count 4 to decrypt the payload of data frame #4.

[0246] Optionally, receivers 1, 2, and 3 all successfully decrypt the data, therefore sending an ACK (not shown in the diagram) and incrementing the payload count to 5. The receivers confirm the successful transmission of data frame #4 based on the multiple ACKs and increment the payload count to 5.

[0247] In this scenario, receiver 3 can determine the effective times of the multicast after time t3, namely t4 and t5, based on information such as time t3 and time offset value (another example of the second information) in multicast establishment message #3. Therefore, the transmission times of data frame #4 and data frame #5 are t4 and t5, respectively.

[0248] S812, similarly, at the multicast activation time t5, the sending end uses payload count 5 to encrypt the payload of data frame #5 and sends data frame #5. Receiver 1, receiver 2 and receiver 3 all receive data frame #5 and use payload count 5 to decrypt the payload of data frame #5.

[0249] Optionally, receivers 1, 2, and 3 all successfully decrypt the data, therefore sending an ACK (not shown in the diagram) and incrementing the payload count to 6. The receivers confirm the successful transmission of data frame #5 based on the multiple ACKs and increment the payload count to 6.

[0250] It should be understood that in method 600, when encrypting and decrypting each data frame, the information used may also include a transmission direction indication, which is not shown in the above description for the sake of brevity.

[0251] Based on the above scheme, the multicast message can include a target value for the payload count. In this way, any newly added node can obtain encrypted information, thus enabling it to receive multicast data in a timely manner, realize dynamic multicast joining, and improve user experience.

[0252] On the other hand, in the above scheme, multicast data is still encrypted or decrypted based on payload count. That is, based on the current protocol, it is only necessary to indicate the target value of the payload count to the newly joined member nodes. This can better support the current protocol and is simple and efficient.

[0253] It is understood that, in order to implement the functions in the above embodiments, the group leader node or the first group member node includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should readily recognize that, based on the units and method steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0254] Figure 9 and Figure 10 This is a schematic diagram of the communication device provided in the embodiments of this application. These communication devices can be used to implement the functions of the group leader node or the first group member node in the above method embodiments, and therefore can also achieve the beneficial effects of the above method embodiments. In the embodiments of this application, the communication device can be a group leader node or a first group member node, or it can be a module (such as a chip) applied to the group leader node or the first group member node.

[0255] like Figure 9 As shown, the communication device 2000 includes a transceiver unit 2020 and a processing unit 2010. The communication device 2000 is used to implement the above-mentioned... Figure 3 The method embodiment shown illustrates the function of the group leader node or the first group member node.

[0256] When the communication device 2000 is used to achieve Figure 3 In the method embodiment shown, the functions of the member node are as follows: the transceiver unit 2020 is used to send first information to the first member node; the processing unit 2010 is used to generate first multicast data according to the first information, and the transceiver unit 2020 is also used to send the first multicast data.

[0257] When the communication device 2000 is used to achieve Figure 3In the method embodiment shown, the first member node functions as follows: the transceiver unit 2020 is used to: receive first information from the group leader node; the transceiver unit 2020 is also used to: receive first multicast data. The processing unit 2010 is used to: decrypt the payload of the first multicast data according to the first information and the session key.

[0258] For a detailed description of the functions performed by the processing unit 2010 and the transceiver unit 2020, please refer to [reference needed]. Figure 3 The relevant descriptions in the methods shown.

[0259] Optionally, the communication device 2000 may further include a storage unit, which can be used to store program code, program instructions and / or data. The processing unit 2010 can read the instructions and / or data in the storage unit so that the communication device 2000 can implement the aforementioned method embodiments.

[0260] Optionally, the transceiver unit 2020 may include a sending unit and a receiving unit. The sending unit is used to implement the sending operation in the above method embodiment, that is, to execute the sending action of the communication device 2000. The receiving unit is used to implement the receiving operation in the above method embodiment, that is, to execute the receiving action of the communication device 2000.

[0261] It should be noted that the communication device 2000 may include a transmitting unit but not a receiving unit. Alternatively, the communication device 2000 may include a receiving unit but not a transmitting unit. Specifically, it depends on whether the above-described scheme executed by the communication device 2000 includes both transmitting and receiving actions. For a detailed description of the functions performed by the processing unit 2010 and the transceiver unit 2020, please refer to... Figure 3 The relevant descriptions in the methods shown.

[0262] In this application, the transceiver unit can also be called a transceiver module, which includes a sending module and a receiving module, and the storage unit can also be called a storage module.

[0263] like Figure 10 As shown, the communication device 3000 includes a processor 3010 and an interface circuit 3020. The processor 3010 and the interface circuit 3020 are coupled to each other. It is understood that the interface circuit 3020 can be a transceiver or an input / output interface. Optionally, the communication device 3000 may also include a memory 3030 for storing instructions executed by the processor 3010, or storing input data required by the processor 3010 to execute instructions, or storing data generated after the processor 3010 executes instructions. Sometimes, the interface circuit 3020 can also be understood as part of the processor 3010, in which case the communication device 3000 includes the processor 3010.

[0264] When the communication device 3000 is used to achieve Figure 3 In the method shown, the processor 3010 is used to implement the functions of the processing unit 2010, and the interface circuit 3020 is used to implement the functions of the transceiver unit 2020.

[0265] When the aforementioned communication device is a chip applied to the group leader node (or the first group member node), the chip implements the functions of the group leader node (or the first group member node) in the above method embodiments. The chip receiving information can be understood as the information being first received by other modules (such as an RF module or antenna) in the group leader node (or the first group member node), and then sent to the chip by these modules. The chip sending information can be understood as the information being first sent to other modules (such as an RF module or antenna) in the group leader node (or the first group member node), and then transmitted by these modules.

[0266] It is understood that the processor in the embodiments of this application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor may be a microprocessor or any conventional processor.

[0267] The method steps in the embodiments of this application can be implemented in hardware or in software instructions executable by a processor. The software instructions can consist of corresponding software modules, which can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. The storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Additionally, the ASIC can reside in a transmitting node or a receiving node. The processor and storage medium can also exist as discrete components in the transmitting node or the receiving node.

[0268] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video optical disc; or it can be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both types of storage media.

[0269] In the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of different embodiments are consistent and can be referenced by each other. The technical features of different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0270] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, or B exists alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. "Including at least one of A, B, and C" can mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B, and C.

[0271] In this application, descriptions such as "when," "under the circumstances," "if," and "if" all refer to the device making corresponding actions under certain objective circumstances. They are not time-limited, nor do they require the device to make a judgment action during implementation, nor do they imply any other limitations.

[0272] It should be understood that in the various embodiments of this application, the terms "first," "second," and various numerical designations are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above processes does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.

[0273] Those skilled in the art will recognize that the units and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0274] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0275] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

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

[0277] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0278] If the aforementioned functions are implemented as 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 this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0279] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A communication method, characterized in that, Applied to the first node, including: Send the first message to the second node, wherein the first node and the second node belong to the first multicast group; First multicast data is generated based on the first information and the session key, wherein the first information and the session key are used to encrypt the payload in the first multicast data; Send the first multicast data to the nodes in the first multicast group.

2. The method according to claim 1, characterized in that, The first information includes a first moment and a first day count, wherein the moment is the effective moment of the first multicast data, and the first day count is the count value of the number of days corresponding to the first moment.

3. The method according to claim 2, characterized in that, The method further includes: In the event that the first multicast data transmission fails, a second multicast data is generated based on the second time, the second day count, and the session key. The payload in the second multicast data is the same as the payload in the first multicast data. The second time, the second day count, and the session key are used to encrypt the payload in the second multicast data. The second time is the effective time of the second multicast data, and the second day count is the count value of the number of days corresponding to the second time. Send the second multicast data to the nodes in the first multicast group.

4. The method according to claim 3, characterized in that, The method further includes: The second time is determined based on the first time.

5. The method according to any one of claims 2 to 4, characterized in that, The first information is carried in a first message, which is used to establish a multicast connection with the second node. The first message also includes second information, which is used to determine the effective time of at least one multicast data other than the first multicast data.

6. The method according to claim 5, characterized in that, The second piece of information is the event group cycle or the event cycle.

7. The method according to claim 5 or 6, characterized in that, The first message also includes indication information, which indicates that the first message includes the first time and the first day count.

8. The method according to claim 1, characterized in that, The first information includes the target payload count and an indication of the transmission direction.

9. The method according to claim 8, characterized in that, The method further includes: In the event that the first multicast data transmission fails, a second multicast data is generated based on the target payload count and the value of the transmission direction indication. The payload in the second multicast data is the same as the payload in the first multicast data. The target payload count, the value of the transmission direction indication, and the session key are used to encrypt the payload in the second multicast data. Send the second multicast data to the nodes in the first multicast group.

10. The method according to claim 8 or 9, characterized in that, The first information is carried in a first message, which is used to establish a multicast connection with the second node. The first message also includes third information, which is used to indicate the maximum number of retransmissions of the first multicast data.

11. The method according to claim 10, characterized in that, The third piece of information is the data discarding period of the first link or the data discarding period of the second link.

12. The method according to claim 10 or 11, characterized in that, The first message also includes indication information, which indicates that the first message includes the target payload count and the indication of the transmission direction.

13. A method of communication, characterized in that, Applied to the second node, including: Receive first information from the first node, where the first node and the second node belong to the first multicast group; Receive first multicast data from the first node, wherein the first information is used to encrypt the payload in the first multicast data; The first multicast data is decrypted based on the first information and the session key.

14. The method according to claim 13, characterized in that, The first information includes a first moment and a first day count, wherein the moment is the effective moment of the first multicast data, and the first day count is the count value of the number of days corresponding to the first moment.

15. The method according to claim 14, characterized in that, The method further includes: If the first multicast data reception fails, the second multicast data from the first node is received, and the payload in the second multicast data is the same as the payload in the first multicast data. The second multicast data is decrypted based on the second time, the second day count, and the session key. The second time, the second day count, and the session key are used to encrypt the payload in the second multicast data. The second time is the effective time of the second multicast data, and the second day count is the count value of the number of days corresponding to the second time.

16. The method according to claim 15, characterized in that, The method further includes: The second time is determined based on the first time.

17. The method according to any one of claims 14 to 16, characterized in that, The first information is carried in a first message, which is used to establish a multicast connection with the second node. The first message also includes second information, which is used to determine the effective time of at least one multicast data other than the first multicast data.

18. The method according to claim 17, characterized in that, The second piece of information is the event group cycle or the event cycle.

19. The method according to claim 17 or 18, characterized in that, The first message also includes indication information, which indicates that the first message includes the first time and the first day count.

20. The method according to claim 13, characterized in that, The first information includes the target payload count and an indication of the transmission direction.

21. The method according to claim 20, characterized in that, The method further includes: If the first multicast data reception fails, the second multicast data from the first node is received, and the payload in the second multicast data is the same as the payload in the first multicast data. The second multicast data is decrypted based on the target payload count, the value of the transmission direction indication, and the session key. The target payload count, the value of the transmission direction indication, and the session key are used to encrypt the payload in the second multicast data.

22. The method according to claim 20 or 21, characterized in that, The first information is carried in a first message, which is used to establish a multicast connection with the second node. The first message also includes third information, which is used to indicate the maximum number of retransmissions of the first multicast data.

23. The method according to claim 22, characterized in that, The third piece of information is the data discarding period of the first link or the data discarding period of the second link.

24. The method according to claim 22 or 23, characterized in that, The first message also includes indication information, which indicates that the first message includes the target payload count and the indication of the transmission direction.

25. A communication device, characterized in that, include: The unit is used to perform the method as described in any one of claims 1 to 12, or includes a unit used to perform the method as described in any one of claims 13 to 24.

26. A communication device, characterized in that, include: At least one processor coupled to a memory for storing a computer program, the at least one processor for executing the computer program stored in the memory to cause the apparatus to perform the method as claimed in any one of claims 1 to 12, or to cause the apparatus to perform the method as claimed in any one of claims 13 to 24.

27. A computer-readable storage medium, characterized in that, The storage medium stores a computer program or instructions that, when executed by a communication device, implement the method as described in any one of claims 1 to 12, or implement the method as described in any one of claims 13 to 24.

28. A computer program product, characterized in that, Includes a computer program that, when run, implements the method as described in any one of claims 1 to 12, or implements the method as described in any one of claims 13 to 24.