DATA TRANSMISSION METHOD AND DEVICE
20220174541 · 2022-06-02
Inventors
Cpc classification
H04W28/06
ELECTRICITY
H04W4/06
ELECTRICITY
H04L47/34
ELECTRICITY
International classification
H04W28/06
ELECTRICITY
Abstract
Embodiments of this application provide a data transmission method and a device, and relate to the field of communication technologies, to resolve how a network device sends a data packet and how each terminal device receives the data packet when a communication manner between the network device and a plurality of terminal devices is switched from a unicast manner to a multicast manner. The method includes: A network device sends first indication information to a first terminal device, where the first indication information includes a first sequence number SN, and the first indication information is used to indicate the first terminal device to receive a data packet in a multicast manner. The network device sends the data packet to the first terminal device and a second terminal device in the multicast manner based on the first SN.
Claims
1. A data transmission method, wherein the method comprises: sending, by a network device, first indication information to a first terminal device, wherein the first indication information comprises a first sequence number (SN), and the first indication information indicates the first terminal device to receive a data packet in a multicast manner; and sending, by the network device, the data packet to the first terminal device and a second terminal device in the multicast manner based on the first SN.
2. The method according to claim 1, wherein the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to the second terminal device in a unicast manner.
3. The method according to claim 1, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the method further comprises: sending, by the network device, a first data packet to the first terminal device in the unicast manner, wherein the first data packet is a data packet comprising only a packet header, and an SN of the first data packet comprises at least one SN between SN2 or SN1; or sending, by the network device, a first data packet to the first terminal device in the unicast manner, wherein an SN of the first data packet comprises at least one SN between SN2 or SN1.
4. The method according to claim 1, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the method further comprises: sending, by the network device, second indication information to the first terminal device, wherein the second indication information indicates an SN of a data packet on which the first terminal device is to skip performing duplicate detection, and the SN of the data packet on which duplicate detection is to be skipped comprises at least one SN between SN1 or SN2.
5. The method according to claim 1, wherein the first indication information is carried in a control protocol data unit PDU, a media access control control element, radio resource control signaling, or downlink control information.
6. A data transmission method, wherein the method comprises: receiving, by a first terminal device, first indication information from a network device, wherein the first indication information comprises a first sequence number (SN), and the first indication information indicates the first terminal device to receive a data packet in a multicast manner; and receiving, by the first terminal device, the data packet from the network device in the multicast manner based on the first SN.
7. The method according to claim 6, wherein the receiving, by the first terminal device, the data packet from the network device in the multicast manner based on the first SN comprises: determining, by the first terminal device based on the first SN, an SN corresponding to a lower edge of a receive window in which the first terminal device is to receive the data packet in the multicast manner; or determining, by the first terminal device based on the first SN, an SN of an initial data packet to be received by the first terminal device in the multicast manner.
8. The method according to claim 6, wherein the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to a second terminal device in a unicast manner.
9. The method according to claim 6, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the method further comprises: receiving, by the first terminal device, a first data packet from the network device in the unicast manner, wherein the first data packet is a data packet comprising only a packet header, and an SN of the first data packet comprises at least one SN between SN2 or SN1; or receiving, by the first terminal device, a first data packet from the network device in the unicast manner, wherein an SN of the first data packet comprises at least one SN between SN2 or SN1.
10. The method according to claim 6, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the method further comprises: receiving, by the first terminal device, second indication information from the network device, wherein the second indication information indicates an SN of a data packet on which the first terminal device is to skip performing duplicate detection, and the SN of the data packet on which duplicate detection is to be skipped comprises at least one SN between SN1 or SN2.
11. A communication apparatus, comprising one or more processors and a memory, wherein the memory stores a computer program, and when executing the computer program stored in the memory, the one or more processors executes operations comprising: sending first indication information to a first terminal device, wherein the first indication information comprises a first sequence number SN, and the first indication information indicates the first terminal device to receive a data packet in a multicast manner; and sending the data packet to the first terminal device and a second terminal device in the multicast manner based on the first SN.
12. The communication apparatus according to claim 11, wherein the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to the second terminal device in a unicast manner.
13. The communication apparatus according to claim 11, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the one or more processors executes operations further comprising: sending a first data packet to the first terminal device in the unicast manner, wherein the first data packet is a data packet comprising only a packet header, and an SN of the first data packet comprises at least one SN between SN2 or SN1; or sending a first data packet to the first terminal device in the unicast manner, wherein an SN of the first data packet comprises at least one SN between SN2 or SN1.
14. The communication apparatus according to claim 11, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the one or more processors executes operations further comprising: sending second indication information to the first terminal device, wherein the second indication information indicates an SN of a data packet on which the first terminal device is to skip performing duplicate detection, and the SN of the data packet on which duplicate detection is to be skipped comprises at least one SN between SN1 or SN2.
15. The communication apparatus according to claim 11, wherein the first indication information is carried in a control protocol data unit PDU, a media access control control element, radio resource control signaling, or downlink control information.
16. A communication apparatus, comprising one or more processors and a memory, wherein the memory stores a computer program, and when executing the computer program stored in the memory, the one or more processors executes operations comprising: receiving first indication information from a network device, wherein the first indication information comprises a first sequence number SN, and the first indication information indicates the first terminal device to receive a data packet in a multicast manner; and receiving the data packet from the network device in the multicast manner based on the first SN.
17. The communication apparatus according to claim 16, wherein the one or more processors executes operations further comprising: determining, based on the first SN, an SN corresponding to a lower edge of a receive window in which the first terminal device is to receive the data packet in the multicast manner; or determining, based on the first SN, an SN of an initial data packet to be received by the first terminal device in the multicast manner.
18. The communication apparatus according to claim 16, wherein the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to a second terminal device in a unicast manner.
19. The first terminal device according to claim 16, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the one or more processors executes operations further comprising: receiving a first data packet from the network device in the unicast manner, wherein the first data packet is a data packet comprising only a packet header, and an SN of the first data packet comprises at least one SN between SN2 or SN1; or receiving a first data packet from the network device in the unicast manner, wherein an SN of the first data packet comprises at least one SN between SN2 or SN1.
20. The first terminal device according to claim 16, wherein when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the one or more processors executes operations further comprising: receiving second indication information from the network device, wherein the second indication information indicates an SN of a data packet on which the first terminal device is to skip performing duplicate detection, and the SN of the data packet on which duplicate detection is to be skipped comprises at least one SN between SN1 or SN2.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
DESCRIPTION OF EMBODIMENTS
[0045] The following describes implementations of embodiments of this application in detail with reference to accompanying drawings.
[0046] For ease of understanding the embodiments of this application, the following describes some terms in the embodiments of this application, to help a person skilled in the art have a better understanding.
[0047] (1) Network device: The network device is a device that can provide a random access function for a terminal device or a chip that can be disposed in the device. The device includes but is not limited to: an evolved NodeB (evolved Node B, eNB), a radio network controller (radio network controller, RNC), a NodeB (Node B, NB), a base station controller (base station controller, BSC), a base transceiver station (base transceiver station, BTS), a home base station (for example, a home evolved NodeB or home Node B, HNB), a baseband unit (baseband unit, BBU), an access point (access point, AP) in a wireless fidelity (wireless fidelity, Wi-Fi) system, a wireless relay node, a wireless backhaul node, a transmission point (transmission and reception point, TRP or transmission point, TP), or the like, may be a gNB or a transmission point (TRP or TP) in a 5G system such as an NR system or one antenna panel or one group of antenna panels (including a plurality of antenna panels) of a base station in a 5G system, or may be a network node forming a gNB or a transmission point, for example, a baseband unit (BBU) or a distributed unit (distributed unit, DU).
[0048] (2) Terminal device: The terminal device is also referred to as user equipment (user equipment, UE), a mobile station (mobile station, MS), a mobile terminal (mobile terminal, MT), or the like, and is a device that provides voice and/or data connectivity for a user. For example, the terminal device includes a handheld device, a vehicle-mounted device, or the like that has a wireless connection function. Currently, the terminal device may be a mobile phone (mobile phone), a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (mobile internet device, MID), a wearable device, a virtual reality (virtual reality, VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical surgery (remote medical surgery), a wireless terminal in a smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in a smart city (smart city), a wireless terminal in a smart home (smart home), or the like.
[0049] (3) Sending or transmitting a data packet in a multicast (multicast) manner refers to: When sending a transport block (transport block, TB) corresponding to the data packet, a device scrambles the data packet or downlink control information (downlink control information, DCI) corresponding to the data packet by using a group-radio network temporary identifier (group-radio network temporary identifier, G-RNTI), and one or more devices receive the same data packet based on the same G-RNTI. Alternatively, transmitting a data packet in a multicast manner may refer to: A plurality of devices are informed of a location of the same data packet in a semi-static manner, and may simultaneously receive the data packet. Alternatively, transmitting a data packet in a multicast manner may refer to transmitting the data packet on a radio bearer established for multicast transmission or on a channel specially designed for multicast.
[0050] Correspondingly, receiving the data packet in the multicast manner refers to: When the multicast manner is used for receiving, one of the plurality of receiving devices receives the data packet based on the G-RNTI, or one of the plurality of receiving devices receives the data packet on the radio bearer established for multicast transmission or on the channel used for multicast transmission.
[0051] In this application, groupcast is a specific mode of multicast. Therefore, multicast may also be referred to as groupcast.
[0052] (4) Sending or transmitting a data packet in a unicast (unicast) manner refers to: When sending a TB corresponding to the data packet, a device scrambles the data packet or DCI corresponding to the data packet by using a cell radio network temporary identifier (cell radio network temporary identifier, C-RNTI), and only one device receives the same data packet based on the C-RNTI. Alternatively, transmitting a data packet in a unicast manner may refer to transmitting the data packet on a radio bearer established for unicast transmission or on a channel specially designed for unicast.
[0053] Correspondingly, receiving the data packet in the unicast manner refers to: When the unicast manner is used for receiving, the receiving device receives the data packet based on the C-RNTI, or the device receives the data packet on the radio bearer established for unicast transmission or on the channel used for unicast transmission.
[0054] (5) Sending or transmitting a data packet in a broadcast (broadcast) manner refers to: When a device sends a TB corresponding to the data packet on a broadcast channel, all receiving devices may receive the data packet on the broadcast channel.
[0055] The term “and/or” in this application describes an association relationship between associated objects and indicates that three relationships may exist. For example, A and/or B may indicate the following three cases: Only A exists, both A and B exist, and only B exists. The character “/” usually indicates an “or” relationship between the associated objects.
[0056] “A plurality of” in this application means two or more.
[0057] In the description of this application, terms such as “first” and “second” are merely used for distinction and description, and should not be understood as an indication or implication of relative importance, or as an indication or implication of a sequence.
[0058] In addition, the word “example” in the embodiments of this application is used to represent giving an example, an illustration, or a description. Any embodiment or implementation solution described as an “example” in this application should not be explained as being more preferred or having more advantages than another embodiment or implementation solution. Exactly, the term “example” is used to present a concept in a specific manner.
[0059] A service scenario described in the embodiments of this application is intended to describe technical solutions in the embodiments of this application more clearly, but constitutes no limitation on the technical solutions provided in the embodiments of this application. A person of ordinary skill in the art may learn that the technical solutions provided in the embodiments of this application are also applicable to a similar technical problem as a new service scenario emerges.
[0060] The embodiments of this application provide a data transmission method, a device, and a system. The method, the device, and the system are based on a same technical concept. Because problem-resolving principles of the method, the device, and the system are similar, implementations of the device, the system, and the method may be mutually referenced. Repeated parts are not described.
[0061] The technical solutions in the embodiments of this application may be applied to various communication systems, for example, a long term evolution (long term evolution, LTE) system, a worldwide interoperability for microwave access (worldwide interoperability for microwave access, WiMAX) communication system, a future 5th generation (5th Generation, 5G) system, for example, a new radio access technology (new radio access technology, NR), and a future communication system.
[0062] This application is applicable to a terrestrial communication system or a non-terrestrial communication system, for example, a communication system in which a base station is located on a satellite or another flight device, or a communication system in which a satellite or a flight device is used as a relay for forwarding. Alternatively, this application is applicable to a 5G architecture-based scenario in which communication is performed by using an unlicensed spectrum, for example, an NR-U (new radio-unlicensed) scenario.
[0063] For ease of understanding the embodiments of this application, the following describes an application scenario of this application by using a communication system shown in
[0064] As shown in
[0065] In
[0066] For example, in
[0067] To resolve the foregoing problem, the embodiments of this application provide a data transmission method. The method includes: A network device may send first indication information including a first SN to a first terminal device, where the first indication information may be used to indicate the first terminal device to receive a data packet in a multicast manner, or the first indication information may be used to indicate related configuration information about a multicast manner, or the first indication information may be used to indicate an SN of the 1.sup.st data packet to be sent or received in a multicast manner. The network device may send the data packet to the first terminal device and a second terminal device in the multicast manner based on the first SN. Indication information used to indicate the first terminal device to receive the data packet in the multicast manner or indication information used to indicate the related configuration information about the multicast manner may alternatively be indication information other than the first indication information. For description of the data transmission method, refer to the following description in a method shown in
[0068] Optionally, the network elements (for example, the network device 110 and the terminal device 120) in
[0069] For example, each network element in
[0070] The processor 301 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, an application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more integrated circuits configured to control program execution of the solutions in this application.
[0071] The communication line 302 may include a path for transferring information among the foregoing components, for example, a bus.
[0072] The communication interface 304 uses any apparatus such as a transceiver, and is configured to communicate with another device or a communication network, for example, an Ethernet interface, a radio access network (radio access network, RAN) interface, or a wireless local area network (wireless local area networks, WLAN) interface.
[0073] The memory 303 may be a read-only memory (read-only memory, ROM) or another type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or another type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (compact disc read-only memory, CD-ROM) or another optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, or a Blu-ray disc), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be configured to carry or store expected program code in a form of instructions or a data structure and that can be accessed by a computer, but is not limited thereto. The memory may exist independently, and is connected to the processor through the communication line 302. The memory may alternatively be integrated with the processor. The memory provided in the embodiments of this application may generally be non-volatile. The memory 303 is configured to store computer-executable instructions for executing the solutions in this application, and the processor 301 controls the execution. The processor 301 is configured to execute the computer-executable instructions stored in the memory 303, to implement the method provided in the embodiments of this application.
[0074] Optionally, the computer-executable instructions in this embodiment of this application may also be referred to as application program code. This is not specifically limited in this embodiment of this application.
[0075] In a specific implementation, in an embodiment, the processor 301 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in
[0076] In a specific implementation, in an embodiment, the communication device 300 may include a plurality of processors, for example, the processor 301 and a processor 307 in
[0077] In a specific implementation, in an embodiment, the communication device 300 may further include an output device 305 and an input device 306. The output device 305 communicates with the processor 301, and may display information in a plurality of manners. For example, the output device 305 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a cathode ray tube (cathode ray tube, CRT) display device, or a projector. The input device 306 communicates with the processor 301, and may receive an input of a user in a plurality of manners. For example, the input device 306 may be a mouse, a keyboard, a touchscreen device, or a sensor device.
[0078] In a specific implementation, the communication device 300 may be a network server, a palmtop computer (personal digital assistant, PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or a device having a structure similar to that in
[0079] The following describes in detail the data transmission method provided in the embodiments of this application with reference to
[0080] It should be noted that names of messages between network elements, names of parameters in the messages, or the like in the following embodiments of this application are merely examples, and there may be other names in a specific implementation. This is not specifically limited in the embodiments of this application.
[0081] It may be understood that, in the embodiments of this application, a network device or a terminal device may perform some or all of steps in the embodiments of this application. The steps are merely examples. In the embodiments of this application, other steps or variations of various steps may alternatively be performed. In addition, the steps may be performed in a sequence different from a sequence presented in the embodiments of this application, and not all steps in the embodiments of this application may need to be performed.
[0082]
[0083] Step 401: The network device sends first indication information to the first terminal device.
[0084] The network device may be the network device 110 in
[0085] The first indication information may be used to indicate the first terminal device to receive a data packet in a multicast manner.
[0086] In a possible implementation, the first indication information includes a first SN. By using the first SN included in the first indication information, the network device indicates the first terminal device to receive the data packet in the multicast manner, and indicates an SN of an initial data packet to be received by the first terminal device in the multicast manner.
[0087] For example, the first indication information includes the first SN, where the first SN is 5. In this case, by using the first indication information, the network device may indicate the first terminal device to receive the data packet in the multicast manner, and indicate that the SN of the initial data packet to be received by the first terminal device in the multicast manner is 5.
[0088] In another possible implementation, the first indication information includes a first SN and N-bit indication information, where the first SN is used to indicate an SN of an initial data packet to be received by the first terminal device in the multicast manner, and the N-bit indication information is used to indicate the first terminal device to receive the data packet in the multicast manner, where N is a positive integer.
[0089] For example, the first indication information includes the first SN and 1-bit indication information, where the first SN is equal to 5, and the 1-bit indication information includes 1. 5 may be used to indicate that the SN of the initial data packet to be received by the first terminal device in the multicast manner is 5, and 1 may be used to indicate the first terminal device to receive the data packet in the multicast manner.
[0090] In another possible implementation, the first indication information includes a first SN and M-bit indication information, where the first SN is used to indicate an SN of an initial data packet to be received by the first terminal device in the multicast manner, and the M-bit indication information is used to indicate related configuration information about receiving the data packet by the first terminal device in the multicast manner.
[0091] N and M are positive integers, and N and M may be the same or different.
[0092] The related configuration information about receiving the data packet in the multicast manner may include information such as a G-RNTI that is used to scramble the data packet or DCI corresponding to the data packet and time-frequency resources of the data packet.
[0093] For example, the first indication information includes the first SN and 3-bit indication information, where the first SN is equal to 2, and the 3-bit indication information includes time-frequency resource information of the data packet. 2 may be used to indicate that an SN of an initial data packet to be received by the first terminal device in the multicast manner is 2, and the time-frequency resource information may be used to indicate the time-frequency resources of the data packet to be received by the first terminal device in the multicast manner. Optionally, the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to the second terminal device in the unicast manner.
[0094] The second terminal device may be any one of the terminal devices 120 to 140 in
[0095] That the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to the second terminal device in the unicast manner includes: The network device uses SN2 as the first SN, or the network device uses, as the first SN, an SN obtained by adding 1 to SN2, or the network device determines the first SN based on a fixed calculation relationship. The calculation relationship is not limited herein.
[0096] The maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner may be in the following three cases.
[0097] Case 1: The maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner is a largest sequence number SN.sub.max of maximum sequence numbers of data packets sent by the network device to a plurality of terminal devices in the unicast manner. In this case, the second terminal device is one or more terminal devices, among the plurality of terminal devices, whose maximum sequence number of a data packet is equal to SN.sub.max.
[0098] It should be noted that, in the case 1, the first terminal device may be one or more terminal devices, among the plurality of terminal devices, whose maximum sequence number of a data packet is smaller than SN.sub.max.
[0099]
[0100] Case 2: The maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner is a smallest sequence number SN.sub.min of maximum sequence numbers of data packets sent by the network device to a plurality of terminal devices in the unicast manner. In this case, the second terminal device is one or more terminal devices, among the plurality of terminal devices, whose maximum sequence number of a data packet is equal to SN.sub.min.
[0101] It should be noted that, in the case 2, the first terminal device may be one or more terminal devices, among the plurality of terminal devices, whose maximum sequence number of a data packet is larger than SN.sub.min.
[0102]
[0103] Case 3: The maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner is SN.sub.mid, where SN.sub.mid is any one of maximum sequence numbers of data packets sent by the network device to a plurality of terminal devices in the unicast manner and that is larger than SN.sub.min and smaller than SN.sub.max. In this case, the second terminal device is one or more terminal devices, among the plurality of terminal devices, whose maximum sequence number of a data packet is equal to SN.sub.mid.
[0104] It should be noted that, in the case 3, the first terminal device may be one or more terminal devices, among the plurality of terminal devices, whose maximum sequence number of a data packet is not equal to SN.sub.mid.
[0105]
[0106] In addition, in the foregoing cases, the first terminal device and the second terminal device may alternatively be a same device, and both the first device and the second device may be one or more devices.
[0107] Optionally, the first indication information is carried in a control protocol data unit (protocol data unit, PDU), a media access control (media access control, MAC) control element (control element, CE), radio resource control (Radio Resource Control, RRC) signaling, or downlink control information (downlink control information, DCI).
[0108] For example, the network device sends RRC to the first terminal device, where the RRC carries the first indication information.
[0109] Optionally, if a communication manner between the network device and each of the first terminal device and the second terminal device is switched from unicast communication to multicast communication, the network device sends the first indication information to the first terminal device.
[0110] That a communication manner between the network device and each of the first terminal device and the second terminal device is switched from unicast communication to multicast communication includes: The network device receives indication information from a core network, where the indication information is used to indicate that the communication manner between the network device and each of the first terminal device and the second terminal device is switched from the unicast communication to the multicast communication. Alternatively, the network device determines that the communication manner between the network device and each of the first terminal device and the second terminal device is switched from the unicast communication to the multicast communication.
[0111] Optionally, if the network device receives no response information of the first indication information from the first terminal device within a first preset time period after the network device sends the first indication information to the first terminal device, the network device sends the first indication information to the first terminal device again, where the response information of the first indication information is used to indicate, to the network device, that the first terminal device has received the first indication information.
[0112] The network device may send the first indication information to the second terminal device before sending the first indication information to the first terminal device; the network device may send the first indication information to the second terminal device after sending the first indication information to the first terminal device; or the network device may simultaneously send the first indication information to the first terminal device and the second terminal device, to indicate the second terminal device to receive the data packet in the multicast manner and to receive the data packet from the network device in the multicast manner based on the first SN.
[0113] Optionally, if the network device receives no response information of the first indication information from the second terminal device within a second preset time period after the network device sends the first indication information to the second terminal device, the network device sends the first indication information to the second terminal device again, where the response information of the first indication information is used to indicate that the second terminal device has received the first indication information.
[0114] The second preset time period and the first preset time period may be the same or different.
[0115] Step 402: The first terminal device receives the first indication information from the network device.
[0116] The first terminal device receives the first indication information from the network device, and may determine at least one of the following based on the first indication information: the communication manner between the network device and the first terminal device is switched from the unicast manner to the multicast manner, the related configuration information about receiving the data packet by the first terminal device in the multicast manner, and the SN of the initial data packet that is to be received by the first terminal device in the multicast manner.
[0117] Step 403: The network device sends the data packet to the first terminal device and the second terminal device in the multicast manner based on the first SN.
[0118] In a possible implementation, if the network device uses SN2 as the first SN, the network device uses an SN obtained by adding 1 to the first SN, as the SN of the initial data packet to be sent by the network device to the first terminal device and the second terminal device in the multicast manner.
[0119] The initial data packet sent by the network device to the first terminal device and the second terminal device in the multicast manner may be the 1.sup.st data packet sent by the network device to the first terminal device and the second terminal device after the communication manner between the network device and each of the first terminal device and the second terminal device is switched from the unicast manner to the multicast manner.
[0120]
[0121] In another possible implementation, if the network device uses, as the first SN, an SN obtained by adding 1 to SN2, the network device uses the first SN as the SN of the initial data packet to be sent by the network device to the first terminal device and the second terminal device in the multicast manner.
[0122]
[0123] Step 404: The first terminal device receives the data packet from the network device in the multicast manner based on the first SN.
[0124] Optionally, that the first terminal device receives the data packet from the network device in the multicast manner based on the first SN includes: The first terminal device determines, based on the first SN, an SN corresponding to a lower edge of a receive window in which the first terminal device is to receive the data packet in the multicast manner. Alternatively, the first terminal device determines, based on the first SN, the SN of the initial data packet to be received by the first terminal device in the multicast manner.
[0125] In a possible implementation, if the network device uses SN2 as the first SN, the first terminal device moves the lower edge of the receive window for receiving the data packet in the multicast manner to a position in which the SN is equal to the first SN added by 1. Alternatively, if the network device uses SN2 as the first SN, the first terminal device receives a data packet whose SN is larger than the first SN in the multicast manner.
[0126]
[0127] In another possible implementation, if the network device uses, as the first SN, the SN obtained by adding 1 to SN2, the first terminal device moves the lower edge of the receive window for receiving the data packet in the multicast manner to a position in which the SN is equal to the first SN. Alternatively, if the network device uses, as the first SN, the SN obtained by adding 1 to SN2, the first terminal device receives a data packet whose SN is larger than or equal to the first SN in the multicast manner.
[0128]
[0129] Step 405: The second terminal device receives the data packet from the network device in the multicast manner.
[0130] During specific implementation, in an embodiment, the SN of the initial data packet received by the second terminal device in the multicast manner and SN2 are consecutive because the first SN is determined based on SN2. Therefore, the second terminal device may directly receive the data packet from the network device in the multicast manner.
[0131] During specific implementation, in an embodiment, the second terminal device receives the related configuration information about receiving the data packet from the network device in the multicast manner, and the second terminal device receives the data packet from the network device based on the related configuration information.
[0132] During specific implementation, in an embodiment, the second terminal device receives, from the network device, the indication information used to indicate that the communication manner between the network device and each of the first terminal device and the second terminal device is switched from the unicast manner to the multicast manner, and the second terminal device receives the data packet from the network device in the multicast manner.
[0133] During specific implementation, in an embodiment, the second terminal device receives the first indication information from the network device, and the second terminal device receives the data packet from the network device in the multicast manner based on the first SN. In this case, a process of step 405 is similar to a process of step 404. Therefore, for description of step 405, refer to the description in step 404. Details are not described herein.
[0134] It should be noted that an execution sequence of step 404 and step 405 is not limited in this embodiment of this application. For example, step 404 may be performed before step 405. Alternatively, step 405 may be performed before step 404. Alternatively, step 404 and step 405 may be simultaneously performed.
[0135] According to the method shown in
[0136] Further, optionally, in the first implementation scenario of the method shown in
[0137] As shown in
[0138] Step 406: The network device sends the first data packet to the first terminal device in the unicast manner.
[0139] It should be noted that the data packets that are sent by the network device to the first terminal device and the second terminal device in the unicast manner and that have the maximum sequence numbers may be the same or different. For example, in
[0140] In a possible implementation, the first data packet is a data packet including only a packet header, and an SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1.
[0141] If the maximum sequence number SN1 of the data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, and if the content of the data packets that are sent by the network device to the first terminal device and the second terminal device in the unicast manner and that have the maximum sequence numbers is the same, and the SN of the initial data packet sent by the network device to the first terminal device and the second terminal device in the multicast manner is SN2+1, a receiving hole occurs on the first terminal device, to be specific, the first terminal device has not received a data packet whose SN is larger than SN1 and smaller than SN2+1 before receiving the data packet whose SN is SN2+1. Because the content of the data packets that are sent by the network device to the first terminal device and the second terminal device and that have the maximum sequence numbers is the same, there is actually no content of a data packet that has not been received in the unicast manner on a first terminal device side, but SNs of the data packets that are received are not consecutive. In this case, the first terminal device side may consider that there is content of a data packet that is not received. Therefore, the network device may send the first data packet to the first terminal device, where the first data packet is a data packet including only the packet header, and the SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1. After the first terminal device receives the data packet including only the packet header, a case in which the SNs of the data packets received by the first terminal device are not consecutive can be avoided.
[0142]
[0143] It should be noted that the first terminal device may determine, based on the first SN, the SN corresponding to the lower edge of the receive window in which the first terminal device is to receive the data packet in the multicast manner. Alternatively, the first terminal device may determine, based on the first SN, the SN of the initial data packet to be received by the first terminal device in the multicast manner. Therefore, the network device may alternatively not send the first data packet to the first terminal device, and the first terminal device may directly receive the data packet from the network device in the multicast manner.
[0144] For example, in
[0145] In another possible implementation, an SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1.
[0146] If the maximum sequence number SN1 of the data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, and if the data packets that are sent by the network device to the first terminal device and the second terminal device in the unicast manner and that have the maximum sequence numbers are not the same, and the SN of the initial data packet sent by the network device to the first terminal device and the second terminal device in the multicast manner is SN2+1, a data packet that has not been received by the first terminal device in the unicast manner exists. Therefore, the network device may send the first data packet to the first terminal device, where the first data packet includes the data packet that has not been received by the first terminal device in the unicast manner. The SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1.
[0147]
[0148] Optionally, after the network device sends, in the unicast manner, the data packet that has not been received by the first terminal device in the unicast manner to the first terminal device, the network device deactivates the unicast manner or releases a radio bearer corresponding to the unicast manner.
[0149] For example, after the network device sends, in the unicast manner, the data packet that has not been received by the first terminal device in the unicast manner to the first terminal device, the network device sends RRC signaling or a MAC CE to the first terminal device, where the RRC signaling or the MAC CE carries third indication information, and the third indication information is used to indicate that the network device is to stop transmitting data in the unicast manner and is to transmit subsequent data in the multicast manner. In the multicast manner, a radio bearer that is the same as or different from that in the unicast manner may be used for data transmission.
[0150] Step 407: The first terminal device receives the first data packet from the network device in the unicast manner.
[0151] It should be noted that an execution sequence of steps 404 and 405 and steps 406 and 407 is not limited in this embodiment of this application. For example, steps 404 and 405 may be performed before steps 406 and 407, steps 406 and 407 may be performed before steps 404 and 405, or steps 404 and 405 and steps 406 and 407 may be simultaneously performed.
[0152] According to the method shown in
[0153] Further, optionally, in the second implementation scenario of the method shown in
[0154] As shown in
[0155] Step 408: The network device sends the second indication information to the first terminal device.
[0156] The second indication information is used to indicate the SN of the data packet on which the first terminal device is to skip performing duplicate detection. Skipping duplicate detection means that when data packets with a same SN are received, no data packets corresponding to the SN are discarded.
[0157] The SN of the data packet on which the first terminal device is to skip performing duplicate detection includes SN1 and/or at least one SN between SN2 and SN1.
[0158] In a possible implementation, the second indication information includes the SN of the data packet on which the first terminal device is to skip performing duplicate detection, so that after the first terminal device receives the second indication information, the first terminal device determines, based on the SN that is included in the second indication information and that is of the data packet on which the first terminal device is to skip performing duplicate detection, the SN of the data packet on which the first terminal device is to skip performing duplicate detection.
[0159] For example, if the second indication information includes 2, 3, and 4, after the first terminal device receives the second indication information, the first terminal device skips performing duplicate detection on data packets whose SNs are 2 to 4.
[0160] In another possible implementation, the second indication information includes the SN of the initial data packet to be sent by the network device to the first terminal device and the second terminal device in the multicast manner, so that after the first terminal device receives the second indication information, the first terminal device determines to skip performing duplicate detection on a data packet whose SN is larger than or equal to the SN of the initial data packet.
[0161] For example, if the second indication information includes 2, after the first terminal device receives the second indication information, the first terminal device determines to skip performing duplicate detection on a data packet whose SN is larger than or equal to 2.
[0162] If the maximum sequence number SN1 of the data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the first terminal device may receive a data packet whose SN is duplicate. In this case, if the first terminal device performs duplicate detection, the data packet whose SN is duplicate is discarded. Therefore, the network device may send the second indication information to the first terminal device, where the second indication information is used to indicate the SN of the data packet on which the first terminal device is to skip performing duplicate detection.
[0163] For example, in
[0164] Optionally, the second indication information is carried in a PDU, a MAC CE, RRC, or DCI.
[0165] For example, the network device sends the DCI to the first terminal device, where the DCI carries the second indication information, and the second indication information is used to indicate the SN of the data packet on which the first terminal device is to skip performing duplicate detection.
[0166] Step 409: The first terminal device receives the second indication information from the network device.
[0167] It should be noted that an execution sequence of steps 404 and 405 and steps 408 and 409 is not limited in this embodiment of this application. For example, steps 404 and 405 may be performed before steps 408 and 409, steps 408 and 409 may be performed before steps 404 and 405, or steps 404 and 405 and steps 408 and 409 may be simultaneously performed.
[0168] It should be noted that the data transmission method provided in this embodiment of this application may alternatively not include step 408 and step 409.
[0169] In a possible implementation, if the maximum sequence number SN1 of the data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the first indication information in step 401 may be further used to indicate the SN of the data packet on which the first terminal device is to skip performing duplicate detection.
[0170] In another possible implementation, if the maximum sequence number SN1 of the data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the first terminal device deduces, based on the first SN included in the first indication information in step 401, the SN of the data packet on which duplicate detection is to be skipped.
[0171] For example, SN1 is equal to 8, SN2 is equal to 3, and the first SN is equal to SN2+1. After receiving the first indication information, the first terminal device may determine that the first SN is 4 based on the first indication information. Because SN1 is 8, the first terminal device may deduce that SNs of data packets on which duplicate detection is to be skipped include 4, 5, 6, 7, and 8.
[0172] According to the method shown in
[0173] The foregoing mainly describes the solutions provided in the embodiments of this application from a perspective of interaction between network elements. It may be understood that to implement the foregoing functions, the foregoing first terminal device, the network device, or the like includes a corresponding hardware structure and/or software module for performing each function. A person skilled in the art should be easily aware that, in combination with units and algorithm operations of the examples described in the embodiments disclosed in this specification, this application can be implemented by hardware or a combination of hardware and computer software. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
[0174] In this embodiment of this application, the network device may be divided into function modules based on the foregoing method examples. For example, each function module may be obtained through division for each corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module. It should be noted that, in the embodiments of this application, division into the modules is an example, and is merely a logical function division. In an actual implementation, another division manner may be used.
[0175] For example, if function modules are obtained through division in an integrated manner,
[0176] The sending module 801 is configured to send first indication information to a first terminal device, where the first indication information includes a first sequence number SN, and the first indication information is used to indicate the first terminal device to receive a data packet in a multicast manner.
[0177] The sending module 801 is further configured to send the data packet to the first terminal device and a second terminal device in the multicast manner based on the first SN.
[0178] Optionally, the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to the second terminal device in a unicast manner.
[0179] Optionally, when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the sending module 801 is further configured to send a first data packet to the first terminal device in the unicast manner, where the first data packet is a data packet including only a packet header, and an SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1. Alternatively, the sending module 801 is further configured to send a first data packet to the first terminal device in the unicast manner, where an SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1.
[0180] Optionally, when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the sending module 801 is further configured to send second indication information to the first terminal device, where the second indication information is used to indicate an SN of a data packet on which the first terminal device is to skip performing duplicate detection, and the SN of the data packet on which duplicate detection is to be skipped includes SN1 and/or at least one SN between SN1 and SN2.
[0181] Optionally, the first indication information is carried in a control protocol data unit PDU, a media access control control element, radio resource control signaling, or downlink control information.
[0182] Optionally, the second indication information is carried in a control protocol data unit PDU, a media access control control element, radio resource control signaling, or downlink control information.
[0183] All related content of the operations in the foregoing method embodiment may be cited in function descriptions of the corresponding function modules. Details are not described herein again.
[0184] In this embodiment, the network device 80 is presented in a form of function modules obtained through division in an integrated manner. The “module” herein may be a specific ASIC, a circuit, a processor and a memory that execute one or more software or firmware programs, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may figure out that the form shown in
[0185] For example, the processor 301 in
[0186] For example, functions/implementation processes of the sending module 801 in
[0187] Because the network device 80 provided in this embodiment may perform the foregoing data transmission method, for a technical effect that can be achieved by the network device 80, refer to the foregoing method embodiment. Details are not described herein again.
[0188] In this embodiment of this application, the first terminal device may be divided into function modules based on the foregoing method examples. For example, each function module may be obtained through division for each corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module. It should be noted that, in the embodiments of this application, division into the modules is an example, and is merely a logical function division. In an actual implementation, another division manner may be used.
[0189] For example, if function modules are obtained through division in an integrated manner,
[0190] The receiving module 901 is configured to receive first indication information from a network device, where the first indication information includes a first sequence number SN, and the first indication information is used to indicate the first terminal device to receive a data packet in a multicast manner.
[0191] The receiving module 901 is further configured to receive the data packet from the network device in the multicast manner based on the first SN.
[0192] Optionally, the receiving module 901 is specifically configured to determine, based on the first SN, an SN corresponding to a lower edge of a receive window in which the first terminal device is to receive the data packet in the multicast manner. Alternatively, the receiving module 901 is specifically configured to determine, based on the first SN, an SN of an initial data packet to be received by the first terminal device in the multicast manner.
[0193] Optionally, the first SN is determined based on a maximum sequence number SN2 of a data packet sent by the network device to a second terminal device in a unicast manner.
[0194] Optionally, when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is smaller than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the receiving module 901 is further configured to receive a first data packet from the network device in the unicast manner, where the first data packet is a data packet including only a packet header, and an SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1. Alternatively, the receiving module 901 is further configured to receive a first data packet from the network device in the unicast manner, where an SN of the first data packet includes SN2 and/or at least one SN between SN2 and SN1.
[0195] Optionally, when a maximum sequence number SN1 of a data packet sent by the network device to the first terminal device in the unicast manner is larger than the maximum sequence number SN2 of the data packet sent by the network device to the second terminal device in the unicast manner, the receiving module 901 is further configured to receive second indication information from the network device, where the second indication information is used to indicate an SN of a data packet on which the first terminal device is to skip performing duplicate detection, and the SN of the data packet on which duplicate detection is to be skipped includes SN1 and/or at least one SN between SN1 and SN2.
[0196] Optionally, the first indication information is carried in a control protocol data unit PDU, a media access control control element, radio resource control signaling, or downlink control information.
[0197] Optionally, the second indication information is carried in a control protocol data unit PDU, a media access control control element, radio resource control signaling, or downlink control information.
[0198] All related content of the operations in the foregoing method embodiment may be cited in function descriptions of the corresponding function modules. Details are not described herein again.
[0199] In this embodiment, the first terminal device 90 is presented in a form of function modules obtained through division in an integrated manner. The “module” herein may be a specific ASIC, a circuit, a processor and a memory that execute one or more software or firmware programs, an integrated logic circuit, and/or another component that can provide the foregoing functions. In a simple embodiment, a person skilled in the art may figure out that the form shown in
[0200] For example, the processor 301 in
[0201] For example, functions/implementation processes of the receiving module 901 in
[0202] Because the first terminal device 90 provided in this embodiment may perform the foregoing data transmission method, for a technical effect that can be achieved by the first terminal device 90, refer to the foregoing method embodiment. Details are not described herein again.
[0203]
[0204] The network device 1001 has a function of the network device 80 shown in
[0205] The terminal device 1002 has a function of the first terminal device 90 shown in
[0206] The terminal device 1003 may be configured to receive the data packet from the network device 1001 in the multicast manner.
[0207] It should be noted that all related content of the steps in the foregoing method embodiment may be cited in function descriptions of corresponding network elements of the communication system. Details are not described herein again.
[0208] All or a part of the foregoing embodiments may be implemented by software, hardware, firmware, or any combination thereof. When a software program is used to implement the embodiments, all or a part of the embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid-state drive (solid state disk, SSD)), or the like.
[0209] Although this application is described with reference to the embodiments, in a process of implementing this application that claims protection, a person skilled in the art may understand and implement another variation of the disclosed embodiments by viewing the accompanying drawings, disclosed content, and the appended claims. In the claims, “comprising” (comprising) does not exclude another component or another step, and “a” or “one” does not exclude a meaning of plurality. A single processor or another unit may implement several functions enumerated in the claims. Some measures are recorded in dependent claims that are different from each other, but this does not mean that these measures cannot be combined to produce a better effect.
[0210] Although this application is described with reference to specific features and the embodiments thereof, it is clear that various modifications and combinations may be made to them without departing from the spirit and scope of this application. Correspondingly, the specification and accompanying drawings are merely example description of this application defined by the appended claims, and are considered as any of or all modifications, variations, combinations or equivalents that cover the scope of this application. It is clear that a person skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. This application is intended to cover these modifications and variations of this application provided that they fall within the scope of protection defined by the following claims of this application and their equivalent technologies.