Data transmission method, device, apparatus and storage medium
By unpacking and repeating packet detection of received data packets in the relay device, only non-repetitive packets are forwarded, the problem of complexity of data duplicate forwarding and depacking and decryption is solved, and the efficiency and security of data transmission are improved.
Patent Information
- Application Number
- CN202010581043.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-23
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2040-09-08
AI Technical Summary
Existing relay devices may cause repeated data forwarding during data transmission, and the unpacking and decryption processes are complex, reducing forwarding efficiency and security.
After receiving the data packet, the relay device unpacks it into a PDCP PDU and performs repeated packet detection. Only non-repetitive data packets are forwarded to avoid thorough unpacking and decryption.
Improve the efficiency and security of data transmission, avoiding repeated data forwarding and third-party acquisition of data in data packets.
Smart Images

Figure CN113840281B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a data transmission method, equipment, device and storage medium. Background Art
[0002] In the existing data transmission technology, a relay device is introduced to forward the data sent by the sender to the receiver through the relay device, thereby expanding the coverage of data transmission. In the direct communication between UE (User Equipment) and UE, if multicast is used to transmit data, when the transmission range does not reach the preset coverage range, the data forwarded to any receiving end through the relay device may be forwarded back to the relay device through which the data has passed, resulting in repeated forwarding of the data. At present, most relay devices need to completely unpack the received data packet and restore it to application layer data in order to determine whether it is a data packet that has been forwarded by the relay device. This has poor security, increases the complexity of the relay device in parsing the data packet, and reduces the forwarding efficiency. Summary of the invention
[0003] The embodiments of the present application provide a data transmission method, device, apparatus and storage medium, which can improve the efficiency and security of data transmission.
[0004] In order to solve the above technical problems, in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a relay device, and the method includes:
[0005] Receive data packets;
[0006] Depacketizing the data packet to obtain a packet data convergence protocol protocol data unit (PDCP PDU);
[0007] Performing duplicate packet detection on the PDCP PDU;
[0008] If the detection result is that the data packet is a non-duplicate data packet, the non-duplicate data packet is sent.
[0009] In a second aspect, an embodiment of the present application provides another data transmission method, which is applied to a first user equipment, and the method includes:
[0010] Sending the data packet to the relay device for duplicate packet detection, so as to send the data packet with a detection result of non-duplicate to the second user equipment through the relay device;
[0011] The repeating packet detection by the relay device includes: the repeating packet detection by the relay device on a protocol data unit PDCP PDU of a packet data convergence protocol, wherein the PDCP PDU is obtained by the relay device unpacking the data packet.
[0012] In a third aspect, an embodiment of the present application provides a data transmission device, the data transmission device comprising: a storage device and a processor,
[0013] The storage device is used to store program codes;
[0014] The processor, when calling the stored code, is used to execute the data transmission method as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present application provides another data transmission device, the data transmission device comprising: a storage device and a processor,
[0016] The storage device is used to store program codes;
[0017] The processor, when calling the stored code, is used to execute the data transmission method as described in the second aspect.
[0018] In a fifth aspect, an embodiment of the present application provides a data transmission device, the data transmission device comprising:
[0019] A receiving module, used for receiving data packets;
[0020] An unpacking module, used for unpacking the data packet to obtain a protocol data unit PDCPPDU of a packet data convergence protocol;
[0021] A detection module, configured to perform duplicate packet detection on the PDCP PDU;
[0022] The sending module is used to send the non-repetitive data packet if the detection result shows that the data packet is a non-repetitive data packet.
[0023] In a sixth aspect, an embodiment of the present application provides another data transmission device, the data transmission device comprising:
[0024] A sending module, used for sending a data packet to a relay device for duplicate packet detection, so as to send a data packet with a detection result of non-duplicate to a second user device through the relay device;
[0025] The repeating packet detection by the relay device includes: the repeating packet detection by the relay device on a protocol data unit PDCP PDU of a packet data convergence protocol, wherein the PDCP PDU is obtained by the relay device unpacking the data packet.
[0026] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute the data transmission method described in the first aspect.
[0027] In an eighth aspect, an embodiment of the present application provides another computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute the data transmission method described in the second aspect.
[0028] Implementing the embodiments of the present application has the following beneficial effects:
[0029] The relay device unpacks the received data packets into PDCP PDU to avoid decrypting the data packets, and performs duplicate packet detection on the unpacked PDCP PDU to forward non-duplicate data packets to other devices, avoiding completely unpacking or decrypting the data packets, which may make the data in the data packets easily accessible to third parties and repeatedly forwarding the data packets, thereby expanding the coverage of data transmission and improving the efficiency and security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 A schematic diagram of the structure of a protocol stack of a relay device and a user device provided in an embodiment of the present application;
[0032] Figure 2 A data transmission scenario diagram provided in an embodiment of the present application;
[0033] Figure 3 A flowchart of a data transmission method provided in an embodiment of the present application;
[0034] Figure 4 A schematic diagram of an interactive process of a data transmission method provided in an embodiment of the present application;
[0035] Figure 5 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0036] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0037] Figure 7 A schematic diagram of the structure of another data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] It should be noted that the terms "first", "second", "third", etc. in the specification and claims of the present application and in the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0040] In order to better understand the data transmission method, device, apparatus, and storage medium provided in the embodiments of the present application, the technical terms involved in the present application are explained as follows:
[0041] (1) Protocol stack of relay equipment
[0042] See also Figure 1 , Figure 1 A schematic diagram of a protocol stack of a relay device and a user device provided in an embodiment of the present application, specifically as follows Figure 1 As shown, the protocol stack of the relay device includes: a first protocol layer, a second protocol layer, MAC (Media Access Control) and PHY (Physical Layer); wherein the first protocol layer is located above the second protocol layer in the protocol stack of the relay device, the first protocol layer is not equivalent to PDCP (Packet Data Convergence Protocol), and the second protocol layer is RLC (Radio Link Control); the PHY is used to transmit data and is used for the relay device to receive and / or send data; the MAC is used to multiplex different service data; the RLC is used to segment and / or retransmit data packets.
[0043] In the embodiment of the present application, the relay device has two sets of PHY, MAC and RLC, such as Figure 1As shown, a group of PHY, MAC and RLC on the left side of the relay device is used to receive data packets and unpack the received data packets, and a group of PHY, MAC and RLC on the right side is used to assemble the data or data packets stored in the transmission buffer of the relay device and send the assembled data packets.
[0044] In an embodiment of the present application, the unpacking processing in the relay device refers to unpacking the received data packet to restore the PDCP PDU (Packet Data Convergence Protocol Protocol Data Unit, a protocol data unit of the packet data convergence protocol layer). After restoring to the PDCP PDU, the unpacking is no longer continued; the unpacking processing in the relay device does not include decryption processing of the data packet.
[0045] The first protocol layer is used to perform duplicate packet detection on the unpacked PDCP PDU to determine whether the data packet received by the relay device is a non-duplicate data packet; the data packet being a non-duplicate data packet means that the relay device has not received the data packet received this time before, that is, the data packet is a non-duplicate received data packet; the data packet being a duplicate received data packet means that the relay device has received the data packet received this time before.
[0046] (2) User equipment protocol stack
[0047] Please see again Figure 1 , Figure 1 The first user equipment is a transmitting device, and the second user equipment is a receiving device. Both the first user equipment and the second user equipment may include PHY, MAC, RLC, PDCP and SDAP (Service Data Adaptation Protocol). The functions of PHY, MAC and RLC in the protocol stack of the user equipment are the same as or similar to those of PHY, MAC and RLC in the protocol stack of the relay device. The PDCP is used to sort, detect duplication and protect the security of data, and the SDAP is used to map data streams to bearers.
[0048] In an embodiment of the present application, in a first user device, an upper layer data packet of the first user device may be sequentially processed by SDAP, PDCP, RLC, MAC, and PHY of the first user device to obtain a data packet to be sent, and the PHY of the first user device sends the data packet to be sent, for example: forwarding the data packet to be sent through a relay device and sending it to a second user device, or directly sending the data packet to be sent to the second user device.
[0049] In an embodiment of the present application, in a second user device, a data packet received by the second user device, such as a data packet sent by a relay device to the second user device, or a data packet sent directly by a first user device to the second user device, may be sequentially unpacked and / or decrypted by PHY, MAC, RLC, PDCP and SDAP of the second user device, and then the data obtained by the unpacking and / or decryption may be transmitted to the upper layer of the first user device; the upper layer data packet of the user device refers to a data packet from the upper layer of the user device; the upper layer of the user device refers to a layer at least higher than the SDAP layer of the protocol stack of the user device, such as the application layer of the user device.
[0050] It should be noted that this application is not limited to Figure 1 The first user device communicates directly with the relay device through the PC5 interface, the second user device communicates directly with the relay device through the PC5 interface, and the user device can also communicate with the relay device through multiple other relay devices. Figure 1 The communication method between the user equipment and the relay device is not limited here.
[0051] See also Figure 2 , Figure 2 A data transmission scenario diagram provided in an embodiment of the present application. Figure 2 As shown, in this data transmission scenario, the first user device 201 generates and sends a data packet in a multicast manner as a sending device, and the second user device 202 is a receiving device in the target receiving group of the first user device multicast; when the second user device 202 is not within the coverage range of the first user device 201 that transmits data in a multicast manner, the first user device 201 can forward the data packet to the second user device 202 through the relay device 203; after receiving the data packet sent by the first user device 201, the relay device unpacks the data packet into a PDCP PDU, performs duplicate packet detection on the unpacked PDCP PDU, sends the data packet with a detection result of non-duplicate to the second user device 202, and discards the data packet with a detection result of duplicate reception.
[0052] In the embodiment of the present application, the first user device 201 sends a data packet to the relay device 203 through the PC5 interface. The first user device 201 sends a data packet to the relay device 203 through the PC5 interface in two ways:
[0053] The first mode is: the first user device 201 communicates with the relay device 203 through a direct link (Sidelink, SL), that is, the first user device 201 and the relay device 203 directly communicate through the PC5 interface, and the first user device 201 directly sends the data packet to the relay device 203 through the PC5 interface between the first user device 201 and the relay device 203;
[0054] The second mode is: the first user device 201 forwards the data packet to the relay device 203 through the first relay device system 204. The first relay device system 204 includes: at least one relay device; the first relay device system 204 includes: a relay device having the same protocol stack structure as the protocol stack structure of the relay device 203 and / or a relay device having a different protocol stack structure from the protocol stack structure of the relay device 203; the relay devices in the first relay device system 204 can communicate directly with each other through the PC5 interface; the first user device 201 can communicate directly with the first relay device system 204 through the PC5 interface, that is, the first user device 201 can communicate directly with the relay device in the first relay device system 204 through the PC5 interface; the relay device 203 can communicate directly with the first relay device system 204 through the PC5 interface, that is, the relay device 203 can communicate directly with the relay device in the first relay device system 204 through the PC5 interface. The first user device 201 first sends a data packet to the first relay device system 204 through the PC5 interface between the first user device 201 and the first relay device system 204, and then the first relay device system 204 sends the data packet to the relay device 203 through the PC5 interface between the first relay device system 204 and the relay device 203; wherein, after the first relay device system 204 receives the data packet sent by the first user device 201, the data packet is transmitted between the relay devices of the first relay device system 204 through the PC5 interface between the relay devices; if the protocol stack of the relay device of the first relay device system 204 is the same as the protocol stack structure of the relay device 203, then after the relay device of the first relay device system 204 receives the data packet, the same unpacking and duplicate packet detection operations as those of the relay device 203 can be performed.
[0055] In the embodiment of the present application, the relay device 203 can send the non-duplicate data packet to the second user device 202 through the PC5 interface. The relay device 203 sends the non-duplicate data packet to the second user device 202 through the PC5 interface in two ways:
[0056] Method 1: The relay device 203 communicates with the second user device 202 through a direct link, that is, the relay device 203 communicates with the second user device 202 through the PC5 interface, and the relay device 203 directly sends non-duplicate data packets to the second user device 202 through the PC5 interface between the relay device 203 and the second user device 202.
[0057] Mode 2: The relay device sends a non-repetitive data packet to the second user device 202 through the second relay device system 205. The second relay device system 205 includes: at least one relay device; the second relay device system 205 includes: a relay device having the same protocol stack structure as the protocol stack structure of the relay device 203 and / or a relay device having a different protocol stack structure from the protocol stack structure of the relay device 203; the relay devices in the second relay device system 205 can communicate directly with each other through the PC5 interface; the second user device 202 can communicate directly with the second relay device system 205 through the PC5 interface, that is, the second user device 202 can communicate directly with the relay device in the second relay device system 205 through the PC5 interface; the relay device 203 can communicate directly with the second relay device system 205 through the PC5 interface, that is, the relay device 203 can communicate directly with the relay device in the second relay device system 205 through the PC5 interface. The relay device 203 first sends the data packet to the second relay device system 205 through the PC5 interface between the relay device 203 and the second relay device system 205, and then the second relay device system 205 sends the data packet to the second user device 202 through the PC5 interface between the second relay device system 205 and the second user device 202; wherein, after the second relay device system 205 receives the data packet sent by the relay device 203, the data packet is transmitted between the relay devices of the second relay device system 205 through the PC5 interface between the relay devices; if the protocol stack of the relay device of the second relay device system 205 is the same as the protocol stack structure of the relay device 203, the relay device of the second relay device system 205 can perform the same unpacking and duplicate packet detection operations as the relay device 203 after receiving the data packet. The PC5 interface is a direct interface between user devices, or the PC5 interface is a direct interface between user devices and relay devices, or the PC5 interface is a direct interface between relay devices.
[0058] In the embodiment of the present application, the relay device can be an ordinary relay device, such as a repeater, etc., or an ordinary terminal (user equipment) can be used to relay service data. Such a terminal is called a relay user equipment (RelayUE), that is, the relay device is a Relay UE.
[0059] It should be noted that the first user equipment 201 is not limited to Figure 2 The first user equipment shown in the figure may also include more user equipment; the second user equipment 202 is not limited to Figure 2The second user device shown in the figure may also include more user devices; the first user device 201 may send data packets to the relay device 203 or the relay device in the first relay device system 204 by multicast, the relay device in the first relay device system 204 may send data packets to the relay device 203 by multicast, and may also transmit data packets between the relay devices in the first relay device system 204 by multicast, the relay device 203 may send non-repetitive data packets to the second user device 202 or the second relay device system 205 by multicast, the relay device in the second relay device system 205 may send data packets to the second user device 202 by multicast, and may also transmit data packets by multicast within the second relay device system 205.
[0060] See also Figure 3 , Figure 3 A flowchart of a data transmission method provided in an embodiment of the present application is provided in this specification. The method operation steps described in the embodiment or flowchart are provided, but more or fewer operation steps may be included based on conventional or non-creative work. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When executed in an actual terminal or storage medium product, the method can be executed in the order shown in the embodiment or the accompanying drawings or in parallel. Specifically, Figure 3 As shown, the method is applied to a relay device, and the method includes:
[0061] S301: receiving a data packet.
[0062] S302: Depacketize the data packet to obtain a packet data convergence protocol protocol data unit (PDCP) PDU.
[0063] In the embodiment of the present application, the data packet is unpacked but not decrypted. Specifically, the data packet is unpacked until the PDCP PDU is restored. After the PDCP PDU is restored, the unpacking is no longer continued, thereby ensuring the security of the information recorded in the data packet.
[0064] S303: Perform duplicate packet detection on the PDCP PDU.
[0065] The data packet being a non-duplicate data packet means that the relay device has not received the data packet received this time before, that is, the data packet is a duplicated data packet; the data packet being a duplicated data packet means that the relay device has received the data packet received this time before.
[0066] If the detection result is that the data packet is a non-duplicate data packet, step S304 is executed.
[0067] S304: Send the non-duplicate data packet.
[0068] In the embodiment of the present application, the relay device unpacks the received data packet into the PDCP PDU, avoids decrypting the data packet, performs duplicate packet detection on the unpacked PDCP PDU, and forwards non-duplicate data packets to other devices, thereby avoiding completely unpacking or decrypting the data packet, which may cause the data in the data packet to be easily obtained by a third party and repeatedly forwarding the data packet, thereby expanding the coverage of data transmission and improving the efficiency and security of data transmission.
[0069] Accordingly, an embodiment of the present application further provides a data transmission method, which is applied to a first user equipment, and the method includes:
[0070] S41: Sending a data packet to a relay device for duplicate packet detection, so as to send a data packet with a detection result of being non-duplicate to a second user equipment through the relay device;
[0071] The repeating packet detection by the relay device includes: the repeating packet detection by the relay device on a protocol data unit PDCP PDU of a packet data convergence protocol, wherein the PDCP PDU is obtained by the relay device unpacking the data packet.
[0072] In an embodiment of the present application, a first user device sends a data packet to a relay device, which unpacks the data packet into a PDCP PDU to avoid decrypting the data packet, and performs duplicate packet detection on the unpacked PDCP PDU to forward non-duplicate data packets to other devices, thereby avoiding completely unpacking or decrypting the data packet, which may cause the data in the data packet to be easily obtained by a third party and repeatedly forwarding the data packet, thereby improving the efficiency and security of data transmission while expanding the coverage of data transmission.
[0073] See also Figure 4 , Figure 4 The interactive flow diagram of a data transmission method provided in the embodiment of the present application, this specification provides the method operation steps as described in the embodiment or flow diagram, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many, and does not represent the only execution order. When executed in an actual terminal or storage medium product, it can be executed in the order or in parallel according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 4 As shown, the method includes:
[0074] S401: A first user equipment processes an upper layer data packet of the first user equipment through a protocol stack of the first user equipment to obtain a data packet.
[0075] The upper layer data packet of the first user equipment refers to a data packet from the upper layer of the first user equipment; the upper layer of the first user equipment refers to a layer at least higher than the SDAP layer of the protocol stack of the first user equipment, such as the application layer of the first user equipment.
[0076] Processing the upper layer data packet of the first user equipment through the protocol stack of the first user equipment may include: processing the upper layer data packet of the first user equipment through packet assembly by the protocol stack of the first user equipment to obtain an assembled first data packet.
[0077] The protocol stack of the first user equipment may include: PHY, MAC, RLC, PDCP and SDAP.
[0078] The packetization processing of the upper layer data packet of the first user equipment through the protocol stack of the first user equipment may include: sequentially processing the upper layer data packet of the first user equipment through SDAP, PDCP, RLC, MAC, and PHY to obtain a first packet after packetization.
[0079] S402: The first user equipment sends the data packet to the relay equipment through the PC5 interface.
[0080] In the embodiment of the present application, the first user device can directly send the first data packet to the relay device through the PC5 interface between the first user device and the relay device. The first user device can also forward the first data packet to the relay device through the first relay device system. For details, see the first relay device system. Figure 2 The detailed description is not given here.
[0081] In the embodiment of the present application, before the first user equipment sends the first data packet to the relay device, the PDCP layer (PDCP entity) in the protocol stack of the first user equipment allocates an SN (sequence number) of the first data packet and records the SN in the first data packet. Specifically, the SN is recorded in the header of the first data packet, that is, the first data packet sent by the first user equipment to the relay device through the PC5 interface carries the SN. The SN is used to distinguish different PDUs.
[0082] S403: The relay device receives the data packet.
[0083] In the embodiment of the present application, the relay device receives the first data packet sent by the first user device through the PC5 interface. The relay device can directly receive the first data packet through the PC5 interface between the relay device and the first user device; the relay device can also receive the first data packet forwarded by the first relay device system, and the first relay device system (the relay device in it) can unpack the received first data packet to obtain a second data packet, and perform duplicate packet detection and packet assembly on the second data packet to obtain the first data packet again; the second data packet can be a PDCP PDU.
[0084] S404: The relay device unpacks the data packet to obtain a packet data convergence protocol protocol data unit (PDCP PDU).
[0085] In an embodiment of the present application, the relay device unpacks the received first data packet but does not decrypt the first data packet. Specifically, the first data packet is unpacked until the PDCP PDU is restored. After the PDCP PDU is restored, the unpacking is no longer continued, thereby ensuring the security of the information recorded in the first data packet.
[0086] In the embodiment of the present application, the relay device unpacks the received first data packet into a PDCP PDU through PHY, MAC, and RLC in the protocol stack of the relay device.
[0087] S405: The relay device performs duplicate packet detection on the PDCP PDU.
[0088] In the embodiment of the present application, the relay device performs duplicate packet detection on the PDCP PDU, that is, performs duplication detection on the received first data packet.
[0089] In the embodiment of the present application, the first data packet carries a sequence number SN (of the first data packet) allocated by the PDCP layer in the protocol stack of the first user equipment.
[0090] The performing duplicate packet detection on the PDCP PDU includes:
[0091] The relay device performs duplicate packet detection on the PDCP PDU according to the sequence number SN allocated by the PDCP layer in the protocol stack of the first user equipment.
[0092] In an embodiment of the present application, the protocol stack of the relay device includes: a first protocol layer; the first protocol layer is located above a second protocol layer in the protocol stack, and the second protocol layer is a radio link control RLC layer. The performing duplicate packet detection on the PDCP PDU includes:
[0093] The relay device performs duplicate packet detection on the PDCP PDU using the first protocol layer.
[0094] In the embodiment of the present application, at the first protocol layer of the relay device, duplicate packet detection is performed on the PDCP PDU according to the sequence number SN allocated by the PDCP layer in the protocol stack of the first user equipment.
[0095] If the detection result is that the data packet is a non-duplicate data packet, that is, the first data packet received by the relay device is a non-duplicate data packet, then execute step 406;
[0096] If the detection result is that the data packet is a duplicated data packet, that is, the first data packet received by the relay device is a duplicated data packet, step 409 is executed.
[0097] S406: The relay device submits the non-duplicate data packet to the sending buffer.
[0098] The transmission buffer refers to the transmission buffer of the relay device. The relay device submits the non-repetitive data packet to the transmission buffer, including: submitting the PDCP PDU obtained by depacketizing the non-repetitive data packet to the transmission buffer.
[0099] S407: The relay device processes the data packet in the sending buffer through the protocol stack of the relay device to obtain a data packet to be sent.
[0100] The data packets in the sending buffer are non-repetitive data packets.
[0101] The relay device processes the data packet in the sending buffer through the protocol stack of the relay device to obtain a data packet to be sent, including:
[0102] The relay device performs packet assembly processing on the data packet in the sending buffer through the protocol stack of the relay device to obtain a first data packet to be sent.
[0103] The step of subjecting the data packets in the sending buffer to packet processing by the protocol stack of the relay device includes:
[0104] The data packets in the sending buffer are processed by the RLC, MAC and PHY of the protocol stack of the relay device.
[0105] S408: The relay device sends the data packet to be sent.
[0106] In the embodiment of the present application, the relay device sends the first data packet obtained in step S407, that is, the relay device sends the non-duplicate data packet. The relay device sends the non-duplicate data packet to the second user device through the PC5 interface. The relay device can directly send the first data packet to the second user device through the PC5 interface between the relay device and the second user device, or the relay device can forward the first data packet to the second user device through the second relay device system. For details about the second relay device system, please refer to Figure 2 The detailed description is not given here.
[0107] S409: The relay device discards the repeatedly received data packet.
[0108] In the embodiment of the present application, the relay device discards the first data packet that is detected as being received repeatedly.
[0109] In an embodiment of the present application, a first user device sends a data packet to a relay device to avoid decrypting the data packet. The relay device unpacks the data packet into a PDCP PDU, and performs duplicate packet detection on the unpacked PDCP PDU to forward non-duplicate data packets to other devices, thereby avoiding completely unpacking or decrypting the data packet, causing the data in the data packet to be easily obtained by a third party and repeatedly forwarding the data packet, thereby expanding the coverage of data transmission and improving the efficiency and security of data transmission.
[0110] See also Figure 5 , Figure 5 A schematic diagram of a data transmission device provided in an embodiment of the present application, specifically as follows Figure 5 As shown, the data transmission device includes: a storage device 501 and a processor 502; and the device may also include a data interface 503 and a user interface 504. The various hardware may also be connected via various types of buses.
[0111] Through the data interface 503, the data transmission device can exchange data with other terminals, servers and other devices; the user interface 504 is used to realize human-computer interaction between the user and the device; the user interface 504 can provide a touch display screen, physical buttons, etc. to realize human-computer interaction between the user and the data transmission device.
[0112] The storage device 501 may include a volatile memory (Volatile memory), such as a random-access memory (Random-Access Memory, RAM); the storage device 501 may also include a non-volatile memory (Non-Volatile Memory), such as a flash memory (Flash Memory), a solid-state drive (SSD), etc.; the storage device 501 may also include a combination of the above-mentioned types of memory.
[0113] The processor 502 may be a central processing unit (CPU). The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc.
[0114] In the case where the data transmission device is a relay device:
[0115] The storage device 501 is used to store program codes;
[0116] The processor 502 is used to receive a data packet when calling the stored code;
[0117] Depacketizing the data packet to obtain a packet data convergence protocol protocol data unit (PDCP PDU);
[0118] Performing duplicate packet detection on the PDCP PDU;
[0119] If the detection result is that the data packet is a non-duplicate data packet, the non-duplicate data packet is sent.
[0120] In one embodiment, the processor 502 is specifically configured to receive a data packet sent by the first user equipment through the PC5 interface.
[0121] In one embodiment, the processor 502 is specifically configured to perform duplicate packet detection on the PDCP PDU according to a sequence number SN allocated by a PDCP layer in a protocol stack of the first user equipment.
[0122] In one embodiment, the protocol stack of the relay device includes: a first protocol layer;
[0123] The processor 502 is specifically configured to perform duplicate packet detection on the PDCP PDU by utilizing the first protocol layer.
[0124] In one embodiment, before sending the non-duplicate data packet, the processor 502 is further configured to submit the non-duplicate data packet to a sending buffer.
[0125] In one embodiment, the processor 502 is specifically configured to process the data packet in the sending buffer through the protocol stack of the relay device to obtain a data packet to be sent;
[0126] Send the data packet to be sent.
[0127] In one embodiment, the processor 502 is specifically configured to send the non-duplicate data packet to the second user equipment via the PC5 interface.
[0128] In one embodiment, the first protocol layer is located above a second protocol layer in the protocol stack, and the second protocol layer is a radio link control RLC layer.
[0129] In one embodiment, the processor 502 is further configured to discard the repeatedly received data packet if the detection result shows that the data packet is a repeatedly received data packet.
[0130] In the case where the data transmission device is the first user equipment:
[0131] The storage device 501 is used to store program codes;
[0132] The processor 502, when calling the stored code, is used to send the data packet to the relay device for duplicate packet detection, so as to send the data packet with a detection result of non-duplicate to the second user equipment through the relay device;
[0133] The repeating packet detection by the relay device includes: the repeating packet detection by the relay device on a protocol data unit PDCP PDU of a packet data convergence protocol, wherein the PDCP PDU is obtained by the relay device unpacking the data packet.
[0134] In one embodiment, before sending the data packet to the relay device for duplicate packet detection, the processor 502 is further configured to process the upper layer data packet of the first user equipment through the protocol stack of the first user equipment to obtain the data packet.
[0135] In one embodiment, the processor 502 is specifically configured to send the data packet to the relay device via a PC5 interface.
[0136] See also Figure 6 , Figure 6 A schematic diagram of a data transmission device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the data transmission device includes:
[0137] Receiving module 601, used for receiving data packets;
[0138] The unpacking module 602 is used to unpack the data packet to obtain a packet data convergence protocol protocol data unit PDCP PDU;
[0139] A detection module 603, configured to perform duplicate packet detection on the PDCP PDU;
[0140] The sending module 604 is configured to send the non-duplicate data packet if the detection result shows that the data packet is a non-duplicate data packet.
[0141] In one embodiment, the receiving module 601 is specifically configured to receive a data packet sent by the first user equipment through the PC5 interface.
[0142] In one embodiment, the detection module 603 is specifically configured to perform duplicate packet detection on the PDCP PDU according to a sequence number SN allocated by a PDCP layer in a protocol stack of the first user equipment.
[0143] In one embodiment, the protocol stack of the relay device includes: a first protocol layer;
[0144] The detection module 603 is specifically configured to perform duplicate packet detection on the PDCP PDU using the first protocol layer.
[0145] In one embodiment, before sending the non-duplicate data packet, the sending module 604 is further configured to submit the non-duplicate data packet to a sending buffer.
[0146] In one embodiment, the sending module 604 is specifically configured to process the data packet in the sending buffer through the protocol stack of the relay device to obtain a data packet to be sent;
[0147] Send the data packet to be sent.
[0148] In one embodiment, the sending module 604 is specifically configured to send the non-duplicate data packet to the second user equipment via the PC5 interface.
[0149] In one embodiment, the first protocol layer is located above a second protocol layer in the protocol stack, and the second protocol layer is a radio link control RLC layer.
[0150] In one embodiment, the detection module 603 is further configured to discard the repeatedly received data packet if the detection result shows that the data packet is a repeatedly received data packet.
[0151] See also Figure 7 , Figure 7 A schematic diagram of another data transmission device provided in an embodiment of the present application, as shown in FIG. Figure 7 As shown, the data transmission device includes:
[0152] The sending module 701 is used to send the data packet to the relay device for duplicate packet detection, so as to send the data packet with a detection result of non-duplicate to the second user equipment through the relay device;
[0153] The repeating packet detection by the relay device includes: the repeating packet detection by the relay device on a protocol data unit PDCP PDU of a packet data convergence protocol, wherein the PDCP PDU is obtained by the relay device unpacking the data packet.
[0154] In one embodiment, before sending the data packet to the relay device for duplicate packet detection, the sending module 701 is further used to process the upper layer data packet of the first user equipment through the protocol stack of the first user equipment to obtain the data packet.
[0155] In one embodiment, the sending module 701 is specifically configured to send the data packet to the relay device via a PC5 interface.
[0156] Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute the present application. Figure 3 (Steps S301 to S304) and Figure 4 The method described in any embodiment of (steps S403 to S409). It can be understood that the computer storage medium here can include both the built-in storage medium in the intelligent terminal and the extended storage medium supported by the intelligent terminal. The computer storage medium provides a storage space, which stores the operating system of the intelligent terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory or a non-volatile memory (Non-Volatile Memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.
[0157] Accordingly, an embodiment of the present invention further provides another computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute steps S41 and S42 of the present application. Figure 4 The method described in any embodiment of (steps S401 to S402). It can be understood that the computer storage medium here can include both the built-in storage medium in the intelligent terminal and the extended storage medium supported by the intelligent terminal. The computer storage medium provides a storage space, which stores the operating system of the intelligent terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.
[0158] The above disclosure is only part of the embodiments of the present invention, which certainly cannot be used to limit the scope of the rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention are still within the scope of the invention.
Claims
1. A data transmission method, characterized in that: Applied in a relay device, the method comprises: receiving, via the PC5 interface, a data packet sent by a first user device, the data packet being sent by the first user device in a multicast manner; Unpacking the data packet to obtain a packet data convergence protocol protocol data unit (PDCP PDU) and not further unpacking; the unpacking does not include decryption processing of the data packet; Performing duplicate packet detection on the PDCP PDU; If the detection result is that the data packet is a non-duplicate data packet, the non-duplicate data packet is sent through the PC5 interface, and the non-duplicate data packet is sent to the second user device in a multicast manner. The second user device is a receiving end device in the target receiving group of the first user device multicast. The data packet is a non-duplicate data packet, which means that the relay device has not received the data packet received this time before.
2. The method according to claim 1, characterized in that The performing duplicate packet detection on the PDCP PDU includes: Perform duplicate packet detection on the PDCP PDU according to a sequence number SN allocated by the PDCP layer in the protocol stack of the first user equipment.
3. The method according to claim 1, characterized in that The protocol stack of the relay device includes: a first protocol layer; The performing duplicate packet detection on the PDCP PDU includes: The first protocol layer is used to perform duplicate packet detection on the PDCP PDU.
4. The method according to claim 1, characterized in that Before sending the non-duplicate data packet, the method further includes: The non-duplicate data packet is submitted to the sending buffer.
5. The method according to claim 4, characterized in that The sending of the non-repetitive data packet comprises: Processing the data packets in the sending buffer through the protocol stack of the relay device to obtain data packets to be sent; Send the data packet to be sent.
6. The method according to claim 3, characterized in that The first protocol layer is located above the second protocol layer in the protocol stack, and the second protocol layer is a radio link control RLC layer.
7. The method according to claim 1, characterized in that The method further comprises: If the detection result is that the data packet is a duplicated data packet, the duplicated data packet is discarded.
8. A data transmission method, characterized in that: Applied in a first user equipment, the method includes: The data packet is sent to the relay device through the PC5 interface in a multicast manner for duplicate packet detection, so that the relay device sends the data packet with a detection result of non-duplicate to the second user device through the PC5 interface in a multicast manner; the second user device is a receiving end device in the target receiving group of the multicast of the first user device, and the data packet is a non-duplicate data packet, which means that the relay device has not received the data packet received at the time before; Among them, the relay device performs duplicate packet detection, including: the relay device performs duplicate packet detection on the protocol data unit PDCP PDU of the packet data convergence protocol, the PDCP PDU is obtained by the relay device unpacking the data packet and no longer continues to unpack, and the unpacking does not include decryption processing of the data packet.
9. The method according to claim 8, characterized in that Before sending the data packet to the relay device for duplicate packet detection, the method further includes: The upper layer data packet of the first user equipment is processed by the protocol stack of the first user equipment to obtain the data packet.
10. A data transmission device, characterized in that: The data transmission device comprises: a storage device and a processor, The storage device is used to store program codes; The processor, when calling the program code, is used to execute the data transmission method according to any one of claims 1 to 7.
11. A data transmission device, characterized in that: The data transmission device comprises: a storage device and a processor, The storage device is used to store program codes; The processor, when calling the program code, is used to execute the data transmission method as claimed in claim 8 or 9.
12. A data transmission device, characterized in that: Applied in a relay device, the data transmission device comprises: A receiving module, configured to receive a data packet sent by a first user device through a PC5 interface, wherein the data packet is sent by the first user device in a multicast manner; An unpacking module, used to unpack the data packet to obtain a protocol data unit PDCP PDU of a packet data convergence protocol and not continue to unpack; the unpacking does not include a decryption process of the data packet; A detection module, configured to perform duplicate packet detection on the PDCP PDU; A sending module is used to send the non-duplicate data packet through the PC5 interface if the detection result is that the data packet is a non-duplicate data packet. The non-duplicate data packet is sent to the second user device in a multicast manner. The second user device is a receiving end device in the target receiving group of the first user device multicast. The data packet is a non-duplicate data packet means that the relay device has not received the data packet received this time before.
13. A data transmission device, characterized in that: Applied in a first user equipment, the data transmission device includes: a sending module, configured to send a data packet to a relay device through a PC5 interface in a multicast manner for duplicate packet detection, so as to send a data packet with a detection result of being non-duplicate to a second user device through the PC5 interface in a multicast manner through the relay device; the second user device is a receiving end device in a target receiving group of the multicast of the first user device, and the data packet being a non-duplicate data packet means that the relay device has not received the data packet received at the time before; Among them, the relay device performs duplicate packet detection, including: the relay device performs duplicate packet detection on the protocol data unit PDCP PDU of the packet data convergence protocol, the PDCP PDU is obtained by the relay device unpacking the data packet and no longer continues to unpack, and the unpacking does not include decryption processing of the data packet.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute the data transmission method according to any one of claims 1 to 7.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute the data transmission method according to claim 8 or 9.
Citation Information
Patent Citations
Data transmission method, data transmission device and data receiving device
CN108632899A
Receiving method, sending method and communication equipment
CN110324195A
Receiving method and communication equipment
CN110324851A
Data transmission method and device
CN110351024A