WO2022067785A1 - Communication method and communication apparatus - Google Patents

Communication method and communication apparatus Download PDF

Info

Publication number
WO2022067785A1
WO2022067785A1 PCT/CN2020/119702 CN2020119702W WO2022067785A1 WO 2022067785 A1 WO2022067785 A1 WO 2022067785A1 CN 2020119702 W CN2020119702 W CN 2020119702W WO 2022067785 A1 WO2022067785 A1 WO 2022067785A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
terminal device
data packet
packet
control field
Prior art date
Application number
PCT/CN2020/119702
Other languages
French (fr)
Chinese (zh)
Inventor
李秉肇
官磊
李胜钰
陈磊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2020/119702 priority Critical patent/WO2022067785A1/en
Publication of WO2022067785A1 publication Critical patent/WO2022067785A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a communication method and a communication device.
  • terminal device 1 when a terminal device sends data to another terminal device, usually terminal device 1 first sends the data to the serving base station of terminal device 1, the serving base station of terminal device 1 sends the data to the core network device, and the core network device The data sent by the terminal device 1 is then sent to the serving base station of the terminal device 2. The process of sending data from the terminal device 2 to the terminal device 1 is also the same. Therefore, in the case where the terminal equipment 1 and the terminal equipment 2 exchange data, the data of the terminal equipment 1 and the data of the terminal equipment 2 occupy one downlink resource respectively. In a communication system, since downlink resources are limited, how to reduce downlink resource overhead is a problem that needs to be solved.
  • the present application provides a communication method and a communication apparatus, which can reduce downlink resource overhead during communication between terminal devices.
  • a communication method in a first aspect, can be performed by a network device, the method includes: receiving a first data packet from a first terminal device and a second data packet from a second terminal device, the first data packet The first data packet is included, and the second data packet includes the second data.
  • each layer of the protocol stack performs corresponding processing on the first data.
  • the first data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding packet headers are added to each layer respectively.
  • the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
  • the network device encodes the first data and the second data to generate third data.
  • the network device sends the third data to the first terminal device and/or the second terminal device.
  • the encoding manner may include an exclusive OR operation, that is, performing an exclusive OR on the first data and the second data to generate the third data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to generate third data
  • the third data is sent to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device and save downlink resources.
  • the first data packet includes a first packet header
  • the second data packet includes a second packet header
  • the first packet header includes a first sequence number
  • the second packet header includes a second sequence number.
  • the third data is sent through a third data packet, and the third data packet includes the first sequence number and the second sequence number.
  • the first sequence number and the second sequence number may be PDCP sequence numbers.
  • the first terminal device when the first terminal device receives the third data packet, it can determine the first sequence number in the third data packet according to the The uplink data associated with the third data is the first data. Thus, the first terminal device decodes the third data according to the first data to generate the second data.
  • the second terminal device when the second terminal device receives the third data packet, it can determine that the uplink data associated with the third data is the second data according to the second sequence number in the third data packet. Thus, the second terminal device decodes the third data according to the second data to generate the first data.
  • the third data is sent through a third data packet, where the third data packet includes a first integrity protection domain of the first terminal device and a second integrity protection domain of the second terminal device .
  • the first integrity protection domain is a bit sequence generated by the network device according to the key of the first terminal device and the content of the third data packet.
  • the second integrity protection domain is a bit sequence generated by the network device according to the key of the second terminal device and the content of the third data packet.
  • the first terminal device may verify whether the third data packet is modified according to the first integrity protection domain and the key of the first terminal device.
  • the second terminal device can verify whether the third data packet is modified according to the second integrity protection domain and the key of the second terminal device, thereby improving the reliability of data transmission.
  • the third data is sent through a common transmission channel.
  • the common transmission channel can be understood as a public data radio bearer.
  • the public data radio bearer is a section of bearer between the terminal device and the air interface of the access network device, and is used to bear user plane data.
  • the network device sends the third data to the first terminal device and/or the second terminal device through the common data radio bearer.
  • the network device may send the third data to the two terminal devices through only one radio bearer, thereby realizing the mutual communication between the first terminal device and the second terminal device and saving downlink resources.
  • the first quality of service flow and the second quality of service flow are mapped to a common transmission channel, wherein the first data packet belongs to the first quality of service flow, and the second data packet belongs to the second quality of service flow quality of service flow.
  • the network device encodes the uplink data received in the first QoS stream and the second QoS stream, and sends the encoded data to the first terminal device and/or the second terminal device through a common transmission channel.
  • the first terminal device and/or the second terminal device can know which coded data of upstream quality of service streams are received on the common transmission channel.
  • parameters of the common transmission channel are sent to the first terminal device and/or the second terminal device, where the parameters of the common transmission channel include one or more of the following information:
  • the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used for the first terminal device and/or Or the second terminal device performs common transmission channel configuration.
  • Wireless network temporary identification includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, which is used for the first terminal device and/or the second terminal device to perform in the public network. Data reception on the transmission channel.
  • the partial bandwidth information including partial bandwidth ID, frequency location and other information, is used for the first terminal device and/or the second terminal device to receive data on the common transmission channel.
  • the upstream data channel information of the first data packet and/or the second data packet includes the upstream Qos flow associated with the first data packet and/or the second data packet One or more of the ID, the upstream logical channel ID associated with the first data packet and/or the second data packet, or the upstream DRB ID associated with the first data packet and/or the second data packet.
  • Indication information is used to instruct the first terminal device to correspond to the first control field and/or to instruct the second terminal device to correspond to the second control field, where the first control field includes the first serial number and/or the first integrity protection field, the second control field includes the second sequence number and/or the second integrity protection field.
  • the network device sends the public transmission channel parameters to the first terminal device and/or the second terminal device, and the public transmission channel parameters are used by the first terminal device and/or the second terminal device to receive the first terminal device and/or the second terminal device on the public transmission channel.
  • three data packets and obtain the corresponding integrity protection domain, serial number and other information from the third data packet, so that the first terminal device determines the first data associated with the third data, and the second terminal device determines the third data associated with the third data.
  • Two data The first terminal device may decode the third data according to the first data to obtain the second data, and the second terminal device may decode the third data according to the second data to obtain the first data.
  • the network device may be an access network device, and the access network device sends the first data and the second data to the core network device.
  • the access network device receives the fourth data packet and the fifth data packet sent by the core network device, where the fourth data packet includes the first data, and the fifth data packet includes the second data.
  • the access network device encodes the first data in the fourth data packet and the second data in the fifth data packet to form third data.
  • the access network device after receiving the first data and the second data, the access network device further sends the first data and the second data to the core network device, and the core network device then sends it to the access network device, which can The communication security between the first terminal device and the second terminal device is enhanced.
  • the network device may be an access network device, the access network device determines that the data in the fourth data packet is the same as the data in the first data packet, and the access network device determines that the fifth data packet is the same as the data in the first data packet.
  • the data in the data packet is the same as the data in the second data packet.
  • the access network device receives the fourth data packet and determines that the data in the fourth data packet is the same as the first data, and it can be considered that the data in the fourth data packet sent by the core network device is the first data packet.
  • the access network device receives the fifth data packet and determines that the data in the fifth data packet is the same as the second data. It can be considered that the data in the fifth data packet sent by the core network device is the second data sent by the second terminal device. . This determines the data that needs to be encoded.
  • the network device may be an access network device, the access network device compares the fourth data packet with the data packet received from the first terminal device, and/or the access network device compares the fourth data packet with the data packet received from the first terminal device, and/or the access network device
  • the fifth data packet is compared with the data packet received from the second terminal device. By comparing the fourth data packet with the data packet received from the first terminal device, it is determined that the data in the fourth data packet is the same as the first data. By comparing the fifth data packet with the data packet received from the second terminal device, it is determined that the data in the fifth data packet is the same as the second data.
  • the access network device since the original data in the fourth data packet is data sent by the first terminal device to the second terminal device, the access network device will receive the fourth data packet from the data channel of the second terminal device. Therefore, after receiving the fourth data packet from the data channel of the second terminal device, the access network device can know that the data in the fourth data packet comes from the first terminal device, and the access network device only needs to associate the fourth data packet with the first terminal device. By comparing the data packets received from the first terminal device, it can be confirmed which part of the data in the fourth data packet is the same. Likewise, the access network device only needs to compare the data in the fifth data packet with the data packet received from the second terminal device.
  • the network device may be an access network device
  • the fourth data packet includes a first sequence number of the first data packet
  • the access network device determines the fourth data packet according to the first sequence number
  • the data in is the same as the data in the first packet.
  • the fifth data packet includes a second sequence number of the second data packet, and it is determined according to the second sequence number that the data in the fifth data packet is the same as the data in the second data packet.
  • the access network device when sending the first data to the core network device, the access network device will also send the first sequence number in the first data packet to the core network device, and the core network device receives the first data and The first sequence number associated with the first data.
  • the core network device When sending the first data to the access network device through the fourth data packet, the core network device also sends the first sequence number to the access network device through the fourth data packet.
  • the access network device may determine, according to the first sequence number, that the data in the fourth data packet is the same as the data in the first data packet.
  • the access network device when the access network device sends the second data to the core network device, it will also send the second sequence number in the second data packet to the core network device, and the core network device receives the second data and associates the second data with the second data. the second serial number.
  • the core network device When sending the second data to the access network device through the fifth data packet, the core network device also sends the second sequence number to the access network device through the fifth data packet.
  • the access network device may determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
  • the destination address of the first data packet is the second terminal device
  • the destination address of the second data packet is the first terminal device.
  • the first terminal device and the second terminal device are in the same cell or the service network devices of the first terminal device and the second terminal device are the same network device.
  • the target address here may be one or more of an internet protocol address (IP address), a media access control address (MAC address), or an internet protocol address and a port number.
  • the service network device may be an access network device, and the first terminal device and the second terminal device communicate through the same access network device.
  • the first terminal device and the second terminal device communicate with each other through the same network device, the first terminal device sends a first data packet to the network device, and the destination address of the first data packet is the second terminal equipment.
  • the second terminal device sends a second data packet to the same network device, and the destination address of the second data packet is the first terminal device.
  • the network device encodes the first data from the first terminal device and the second data from the second terminal device to generate third data, and sends the third data to the first terminal device and/or the second terminal device.
  • Information exchange between the first terminal device and the second terminal device can be realized only through one data transmission channel, thereby saving downlink resource overhead.
  • the network device may be an access network device or a core network device, the network device detects the serving cell and/or the serving network device of the first terminal device, and the network device detects the service cell of the second terminal device. Serving cell and/or serving network equipment. The network device determines that the serving cell of the first terminal device and the serving cell of the second terminal device are the same serving cell, and/or determines that the serving network device of the first terminal device and the serving network device of the second terminal device are the same network device .
  • the first terminal device and the second terminal device may be referred to as paired terminal devices.
  • the second terminal device If the destination address of the sent second data packet is the first terminal device, and the first terminal device and the second terminal device are in the same cell or connected to the same service network device, the first terminal device and the second terminal device satisfy the pairing condition. Pairing detection can be performed by access network equipment or core network equipment. When it is detected that the first terminal device and the second terminal device meet the pairing condition, the first data packet of the first terminal device and the second data packet of the second terminal device can be determined as a pair of encoding objects.
  • a communication method is provided.
  • the communication method can be performed by a first terminal device, and the method includes: the first terminal device sends a first data packet to a network device, where the first data packet includes first data.
  • the first terminal device receives a third data packet from the network device, where the third data packet includes third data.
  • the first terminal device decodes the third data according to the first data to generate the second data.
  • a decoding manner in which the first terminal device decodes the third data according to the first data may be: the first terminal device performs an exclusive OR operation on the first data and the third data to generate the second data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data , and send the encoded third data to the first terminal device and/or the second terminal device.
  • the first terminal device may decode the third data according to the first data, thereby acquiring the second data. Thereby, mutual communication between the first terminal device and the second terminal device is realized, and downlink resources are saved.
  • the third data packet includes a first control field and a second control field
  • the first control field includes a first integrity protection field and/or a first sequence number
  • the second control field include a second integrity protection field and/or a second sequence number.
  • the first terminal device determines a third control field, where the third control field is one of the first control field or the second control field.
  • the first terminal device receives a third data packet, and the third data packet includes a first control field and a second control field.
  • the first terminal device finds a control field corresponding to the first terminal device from the first control field and the second control field, and the control field may be referred to as a third control field.
  • the third control field is one of the first control field and the second control field.
  • the first terminal device may verify the integrity protection validity of the third data according to the third control field, and determine the first data associated with the third data.
  • the first terminal device determining the third control field includes: the first terminal device determining a third serial number, where the third serial number is one of the first serial number or the second serial number .
  • the first terminal device determines the first data according to the third serial number.
  • one of the first sequence number and the second sequence number is the sequence number in the first data packet sent by the first terminal device to the access network device, and the first sequence number and the second sequence number are The other is the sequence number in the second data packet sent by the second terminal device to the access network device.
  • the third data packet sent by the access network device to the first terminal device includes the first sequence number and the second sequence number.
  • the first terminal device identifies which serial number belongs to the first terminal device among the first serial number and the second serial number, so as to determine the first data associated with the third data according to the third serial number. Further, the third data is decoded according to the first data to generate the second data.
  • the first terminal device determining the third control field includes: the first terminal device determining a third integrity protection domain, where the third integrity protection domain is the first integrity protection domain or the third integrity protection domain. Two integrity protection domains. The first terminal device verifies the integrity protection validity of the third data according to the third integrity protection domain.
  • one of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the first terminal device and the third data.
  • the other of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the second terminal device and the third data.
  • the third data packet sent by the access network device to the first terminal device includes the first integrity protection domain and the second integrity protection domain.
  • the first terminal device identifies which integrity protection domain belongs to the first terminal device in the first integrity protection domain and the second integrity protection domain, so as to verify the integrity protection validity of the third data according to the third integrity protection domain .
  • the first terminal device receives indication information sent by the network device, where the indication information is used to indicate the third control field.
  • the network device can send the indication information through the parameters of the common transmission channel.
  • the first terminal device receives the parameters of the public transmission channel, and obtains the indication information from the parameters of the public transmission channel.
  • the first terminal device receives the indication information, where the indication information is used to indicate the third control field, and the first terminal device may determine the third control field according to the indication information. Therefore, the first terminal device determines, according to the indication information, which control field in the first control field and the second control field is the control field corresponding to the first terminal device.
  • the first terminal device receives the parameters of the common transmission channel sent by the network device.
  • the receiving of the third data packet by the first terminal device includes: the first terminal device receiving the third data packet on the common transmission channel according to the parameters of the common transmission channel.
  • the network device sends the third data packet through the common transmission channel, and the first terminal device receives the third data packet from the common transmission channel. Therefore, only one radio bearer is used to implement mutual communication between the first terminal device and other terminal devices, thereby saving downlink resources.
  • the parameters of the common transmission channel include one or more of the following information:
  • the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used by the first terminal device for public Transmission channel configuration.
  • the wireless network temporary identification which includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, is used for the first terminal device to receive data on the public transmission channel.
  • the partial bandwidth information including partial bandwidth ID, frequency location and other information, is used for the first terminal device to receive data on the public transmission channel.
  • Indication information the indication information is used to indicate that the first terminal device corresponds to a control field, and the control field includes a serial number and/or an integrity protection field.
  • the first terminal device receives the public transmission channel parameters sent by the network device, and the public transmission channel parameters are used by the first terminal device to receive the third data packet on the public transmission channel, and obtain the corresponding data packet from the third data packet.
  • information such as the integrity protection domain, serial number, etc., so that the first terminal device determines the first data associated with the third data.
  • the first terminal device may decode the third data according to the first data to obtain the second data.
  • a communication apparatus which may be a network device, including: a transceiver module for receiving a first data packet from a first terminal device and a second data packet from a second terminal device, the first A data packet includes first data, and a second data packet includes second data.
  • each layer of the protocol stack performs corresponding processing on the first data.
  • the first data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding packet headers are added to each layer respectively.
  • the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
  • the processing module is used for encoding the first data and the second data to generate the third data.
  • a transceiver module configured to send third data to the first terminal device and/or the second terminal device.
  • the encoding manner may include an exclusive OR operation, that is, performing an exclusive OR on the first data and the second data to generate the third data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data
  • the encoded third data is sent to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device and save downlink resources.
  • the first data packet includes a first packet header
  • the second data packet includes a second packet header
  • the first packet header includes a first sequence number
  • the second packet header includes a second sequence number.
  • the third data is sent through a third data packet, and the third data packet includes the first sequence number and the second sequence number.
  • the first sequence number and the second sequence number may be sequence numbers in the PDCP packet header.
  • the first terminal device by adding the first sequence number and the second sequence number to the header of the third data packet, when the first terminal device receives the third data packet, The number can determine that the uplink data associated with the third data is the first data.
  • the first terminal device encodes the first data and the third data to obtain the second data.
  • the second terminal device receives the third data packet, it can determine that the uplink data associated with the third data is the second data according to the second sequence number in the header of the third data packet.
  • the second terminal device encodes the second data and the third data to obtain the first data.
  • the transceiver module is configured to send third data through a third data packet, where the third data packet includes the first integrity protection domain of the first terminal device and the second data packet of the second terminal device. Integrity Protection Domain.
  • the first integrity protection domain is a bit sequence generated by the network device according to the key of the first terminal device and the content of the third data packet.
  • the second integrity protection domain is a bit sequence generated by the network device according to the key of the second terminal device and the content of the third data packet.
  • the first terminal device may verify whether the third data packet is modified according to the first integrity protection domain and the key of the first terminal device, and the second terminal device may verify whether the third data packet is modified according to the second integrity protection domain and the second The key of the terminal device verifies whether the third data packet is modified, thereby improving the reliability of data transmission.
  • the transceiver module is configured to send the third data through a common transmission channel.
  • the common transmission channel can be understood as a public data radio bearer, and the public data radio bearer is a segment of the bearer between the terminal device and the air interface of the access network device, and is used to carry user plane data.
  • the network device sends the third data to the first terminal device and/or the second terminal device through the common data radio bearer.
  • the network device may send the third data to the two terminal devices through only one radio bearer, thereby realizing the mutual communication between the first terminal device and the second terminal device and saving downlink resources.
  • the processing module is configured to map the first quality of service flow and the second quality of service flow to a common transmission channel, wherein the first data packet belongs to the first quality of service flow, and the second data packet belongs to the first quality of service flow. The packet belongs to the second quality of service flow.
  • the network device encodes the first quality of service stream and the uplink data received in the second quality of service and sends them to the first terminal device and/or the second terminal device through a common transmission channel.
  • the first terminal device and/or the second terminal device can know which coded data of upstream quality of service streams are received on the common transmission channel.
  • the transceiver module is configured to send parameters of the common transmission channel to the first terminal device and/or the second terminal device, where the parameters of the common transmission channel include one or more of the following information:
  • the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used for the first terminal device and/or Or the second terminal device performs common transmission channel configuration.
  • Wireless network temporary identification includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, which is used for the first terminal device and/or the second terminal device to perform in the public network. Data reception on the transmission channel.
  • the partial bandwidth information including partial bandwidth ID, frequency location and other information, is used for the first terminal device and/or the second terminal device to receive data on the common transmission channel.
  • the indication information is used to instruct the first terminal device to correspond to the first control field and/or to instruct the second terminal device to correspond to the second control field, where the first control field includes the first serial number and/or the first integrity protection field, the second control field includes the second sequence number and/or the second integrity protection field.
  • the network device sends the public transmission channel parameters to the first terminal device and/or the second terminal device, and the public transmission channel parameters are used by the first terminal device and/or the second terminal device to receive the first terminal device and/or the second terminal device on the public transmission channel.
  • three data packets and obtain the corresponding integrity protection domain, serial number and other information from the third data packet, so that the first terminal device determines the first data associated with the third data, and the second terminal device determines the third data associated with the third data.
  • Two data The first terminal device may decode the third data according to the first data to obtain the second data, and the second terminal device may decode the third data according to the second data to obtain the first data.
  • the transceiver module is configured to send the first data and the second data to the core network device, the transceiver module is configured to receive the fourth data packet and the fifth data packet sent by the core network device, and the first data packet and the fifth data packet are sent by the core network device.
  • the four data packets include the first data, and the fifth data packet includes the second data.
  • the third data is formed by encoding the first data in the fourth data packet and the second data in the fifth data packet.
  • the network device may be an access network device, and after receiving the first data and the second data, the access network device further sends the first data and the second data to the core network device, and the core network device further sends the first data and the second data to the core network device. and then send it to the access network device, which can enhance the communication security between the first terminal device and the second terminal device.
  • the processing module is configured to determine that the data in the fourth data packet is the same as the data in the first data packet, and the processing module is configured to determine that the data in the fifth data packet is the same as the second data The data in the package is the same.
  • the network device may be an access network device.
  • the access network device receives the fourth data packet and determines that the data in the fourth data packet is the same as the first data. It can be considered that the first data sent by the core network device The data in the four data packets is the first data sent by the first terminal device.
  • the access network device receives the fifth data packet and determines that the data in the fifth data packet is the same as the second data. It can be considered that the data in the fifth data packet sent by the core network device is the second data sent by the second terminal device. . This determines the data that needs to be encoded.
  • the processing module is configured to compare the fourth data packet with the data packet received from the first terminal device, and/or the processing module is configured to compare the fifth data packet with the data packet received from the second terminal Comparison of packets received by the device. By comparing the fourth data packet with the data packet received from the first terminal device, it is determined that the data in the fourth data packet is the same as the first data. By comparing the fifth data packet with the data packet received from the second terminal device, it is determined that the data in the fifth data packet is the same as the second data.
  • the network device may be an access network device. Since the original data in the fourth data packet is data sent by the first terminal device to the second terminal device, the access network device will send the data from the second terminal device to the second terminal device. The data channel receives the fourth packet. Therefore, after receiving the fourth data packet from the data channel of the second terminal device, the access network device can know that the data in the fourth data packet comes from the first terminal device, and the access network device only needs to associate the fourth data packet with the first terminal device. By comparing the data packets received from the first terminal device, it can be confirmed which part of the data in the fourth data packet is the same. Likewise, the access network device only needs to compare the data in the fifth data packet with the data packet received from the second terminal device.
  • the fourth data packet includes a first sequence number of the first data packet, and the processing module is configured to determine, according to the first sequence number, between the data in the fourth data packet and the data in the first data packet data are the same.
  • the fifth data packet includes a second sequence number of the second data packet, and the processing module is configured to determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
  • the network device may be an access network device, and when sending the first data to the core network device, the access network device will also send the first sequence number in the first data packet to the core network device, The core network device receives the first data and the first serial number associated with the first data. When sending the first data to the access network device through the fourth data packet, the core network device also sends the first sequence number to the access network device through the fourth data packet. The access network device may determine, according to the first sequence number, that the data in the fourth data packet is the same as the data in the first data packet.
  • the access network device when the access network device sends the second data to the core network device, it will also send the second sequence number in the second data packet to the core network device, and the core network device receives the second data and associates the second data with it. the second serial number.
  • the core network device When sending the second data to the access network device through the fifth data packet, the core network device also sends the second sequence number to the access network device through the fifth data packet.
  • the access network device may determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
  • the destination address of the first data packet is the second terminal device
  • the destination address of the second data packet is the first terminal device.
  • the first terminal device and the second terminal device are in the same cell or the service network devices of the first terminal device and the second terminal device are the same network device.
  • the target address here may be one or more of an internet protocol address (IP address), a media access control address (MAC address), or an internet protocol address and a port number.
  • the service network device may be an access network device, and the first terminal device and the second terminal device communicate through the same access network device.
  • the first terminal device and the second terminal device communicate with each other through the same access network device, and the first terminal device sends a first data packet to the access network device, the destination address of the first data packet for the second terminal device.
  • the second terminal device sends a second data packet to the same access network device, and the destination address of the second data packet is the first terminal device.
  • the network device encodes the first data from the first terminal device and the second data from the second terminal device to generate third data, and sends the third data to the first terminal device and/or the second terminal device.
  • Information exchange between the first terminal device and the second terminal device can be realized only through one data transmission channel, thereby saving downlink resource overhead.
  • the processing module is configured to detect the serving cell and/or the serving network device of the first terminal device, and the processing module is configured to detect the serving cell and/or the serving network device of the second terminal device.
  • the processing module is configured to determine that the serving cell of the first terminal device and the serving cell of the second terminal device are the same serving cell, and/or the processing module is configured to determine the serving network device of the first terminal device and the serving network of the second terminal device The device is the same network device.
  • the first terminal device and the second terminal device may be referred to as paired terminal devices.
  • the second terminal device If the destination address of the sent second data packet is the first terminal device, and the first terminal device and the second terminal device are in the same cell or connected to the same service network device, the first terminal device and the second terminal device satisfy the pairing condition. Pairing detection can be performed by access network equipment or core network equipment. When it is detected that the first terminal device and the second terminal device meet the pairing condition, the first data packet of the first terminal device and the second data packet of the second terminal device can be determined as a pair of encoding objects.
  • a communication apparatus may be a first terminal device, and includes: a transceiver module for sending a first data packet, where the first data packet includes first data.
  • the transceiver module is configured to receive a third data packet from the network device, where the third data packet includes third data.
  • the processing module is used for decoding the third data according to the first data to generate the second data.
  • the decoding used by the processing module to decode the third data according to the first data may be: the processing module is used to perform an exclusive OR operation on the first data and the third data to generate the second data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data , and send the encoded third data to the first terminal device and/or the second terminal device.
  • the first terminal device may decode the third data according to the first data, thereby acquiring the second data. Thereby, mutual communication between the first terminal device and the second terminal device is realized, and downlink resources are saved.
  • the third data packet includes a first control field and a second control field
  • the first control field includes a first integrity protection field and/or a first sequence number
  • the second control field include a second integrity protection field and/or a second sequence number.
  • the processing module is configured to determine a third control field, where the third control field is one of the first control field or the second control field.
  • the first terminal device receives a third data packet, and the third data packet includes a first control field and a second control field.
  • the first terminal device finds a control field corresponding to the first terminal device from the first control field and the second control field, and the control field may be referred to as a third control field.
  • the third control field is one of the first control field and the second control field.
  • the first terminal device may verify the integrity protection validity of the third data according to the third control field, and determine the first data associated with the third data.
  • the processing module configured to determine the third control field includes: the processing module is configured to determine a third serial number, where the third serial number is one of the first serial number or the second serial number .
  • the processing module is used for determining the first data according to the third serial number.
  • one of the first sequence number and the second sequence number is the sequence number in the first data packet sent by the first terminal device to the access network device, and the first sequence number and the second sequence number are The other is the sequence number in the second data packet sent by the second terminal device to the access network device.
  • the third data packet sent by the access network device to the first terminal device includes the first sequence number and the second sequence number.
  • the first terminal device identifies which serial number belongs to the first terminal device among the first serial number and the second serial number, so as to determine the first data associated with the third data according to the third serial number. Further, the third data is decoded according to the first data to generate the second data.
  • the processing module configured to determine the third control field includes: the processing module is configured to determine a third integrity protection domain, where the third integrity protection domain is the first integrity protection domain or the third integrity protection domain. Two integrity protection domains. The first terminal device verifies the integrity protection validity of the third data according to the third integrity protection domain.
  • one of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the first terminal device and the third data.
  • the other of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the second terminal device and the third data.
  • the third data packet sent by the access network device to the first terminal device includes the first integrity protection domain and the second integrity protection domain.
  • the first terminal device identifies which integrity protection domain belongs to the first terminal device in the first integrity protection domain and the second integrity protection domain, so as to verify the integrity protection validity of the third data according to the third integrity protection domain .
  • the transceiver module is configured to receive indication information sent by the network device, where the indication information is used to indicate the third control field.
  • the network device can send the indication information through the parameters of the common transmission channel.
  • the first terminal device receives the parameters of the public transmission channel, and obtains the indication information from the parameters of the public transmission channel.
  • the first terminal device receives the indication information, where the indication information is used to indicate the third control field, and the first terminal device may determine the third control field according to the first indication information. Therefore, the first terminal device determines, according to the indication information, which control field in the first control field and the second control field is the control field corresponding to the first terminal device.
  • the transceiver module is configured to receive parameters of the common transmission channel sent by the network device.
  • the transceiver module configured to receive the third data packet includes: the transceiver module is configured to receive the third data packet on the common transmission channel according to the parameters of the common transmission channel.
  • the network device sends the third data packet through the common transmission channel, and the first terminal device receives the third data packet from the common transmission channel. Therefore, only one radio bearer is used to implement mutual communication between the first terminal device and other terminal devices, thereby saving downlink resources.
  • the parameters of the common transmission channel include one or more of the following information:
  • the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used by the first terminal device for public Transmission channel configuration.
  • the wireless network temporary identification which includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, is used for the first terminal device to receive data on the public transmission channel.
  • the partial bandwidth information including partial bandwidth ID, frequency location and other information, is used for the first terminal device to receive data on the public transmission channel.
  • Indication information the indication information is used to indicate that the first terminal device corresponds to a control field, and the control field includes a serial number and/or an integrity protection field.
  • the first terminal device receives the public transmission channel parameters sent by the network device, and the public transmission channel parameters are used by the first terminal device to receive the third data packet on the public transmission channel, and obtain the corresponding data packet from the third data packet.
  • information such as the integrity protection domain, serial number, etc., so that the first terminal device determines the first data associated with the third data.
  • the first terminal device may decode the third data according to the first data to obtain the second data.
  • a fifth aspect provides a computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method of implementing any possible implementation of the first aspect.
  • a sixth aspect provides a computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method of implementing any possible implementation of the second aspect.
  • a seventh aspect provides a communication device, the communication device includes a memory and a processor, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory, and the processing of the instructions stored in the memory is Execution causes the processor to perform the method of any possible implementation of the first aspect.
  • An eighth aspect provides a communication apparatus, the communication apparatus includes a memory and a processor, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory, and the processing of the instructions stored in the memory is Execution causes the processor to perform the method of any possible implementation of the second aspect.
  • a ninth aspect provides a communication system, including the communication device of the fifth aspect and the communication device of the sixth aspect.
  • a tenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, when the computer program is run on a computer, the computer is made to perform any possible implementation of the first aspect above method in method.
  • An eleventh aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, when the computer program is run on a computer, the computer is made to perform any possible implementation of the second aspect above. method in the implementation.
  • FIG. 1 is a schematic diagram of a protocol stack structure of a network device and a terminal device provided by an embodiment of the present application;
  • FIG. 2 is a schematic diagram of a network architecture to which an embodiment of the present application is applicable;
  • FIG. 3 is a flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a communication method provided by a second embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 9 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Terminal device It can be a wireless terminal device that can receive scheduling and instruction information of network devices.
  • the wireless terminal device can be a device that provides voice and/or data connectivity to users, or a handheld device with wireless connection function, or a connection other processing equipment to the wireless modem.
  • Terminal equipment can communicate with one or more core networks or the Internet via a radio access network (RAN), and the terminal equipment can be a mobile terminal equipment, such as a mobile phone (or "cellular" phone, mobile phone (mobile phone), computer and data cards, for example, may be portable, pocket, hand-held, computer built-in or vehicle mounted mobile devices that exchange language and/or data with the radio access network.
  • RAN radio access network
  • Wireless terminal equipment may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station (MS), a remote station, an access point ( access point (AP), remote terminal (remote terminal), access terminal (access terminal), user terminal (user terminal), user agent (user agent), subscriber station (SS), user terminal equipment (customer premises equipment, CPE), terminal (terminal), user equipment (user equipment, UE), mobile terminal (mobile terminal, MT), etc.
  • the terminal device may also be a wearable device and a next-generation communication system, for example, a terminal device in a 5G communication system or a terminal device in a future evolved public land mobile network (PLMN).
  • PLMN public land mobile network
  • Network device It can be a device in a wireless network.
  • a network device can be a radio access network (RAN) node (or device) that connects a terminal device to a wireless network, also known as a base station.
  • RAN equipment are: generation Node B (gNodeB), transmission reception point (TRP), evolved Node B (evolved Node B, eNB), wireless network in the 5G communication system Controller (radio network controller, RNC), Node B (Node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved NodeB, Or home Node B, HNB), base band unit (base band unit, BBU), or wireless fidelity (wireless fidelity, Wi-Fi) access point (access point, AP), etc.
  • RNC radio network controller
  • Node B Node B
  • BSC base station controller
  • base transceiver station base transceiver station
  • BTS home
  • the network device may include a centralized unit (centralized unit, CU) node, or a distributed unit (distributed unit, DU) node, or a RAN device including a CU node and a DU node.
  • the network device may be other devices that provide wireless communication functions for the terminal device.
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the network device. For convenience of description, in this embodiment of the present application, a device that provides a wireless communication function for a terminal device is referred to as a network device.
  • FIG. 1 is a schematic diagram of a protocol stack structure of a network device and a terminal device.
  • the dotted line indicates that data is sent from the network device to the terminal device. It can be understood that this is only schematic, and the direction of data transmission may also be from the terminal device to the network device.
  • the control plane protocol stack structure may include a radio resource control (RRC) layer, a service data adaptation protocol (SDAP) layer, a packet data convergence layer protocol (Packet Data Convergence Protocol) , PDCP) layer, radio link control (radio link control, RLC) layer, media access control (media Access Link control, MAC) and physical layer and so on.
  • RRC radio resource control
  • SDAP service data adaptation protocol
  • PDCP packet data convergence layer protocol
  • RLC radio link control
  • media access control media Access Link control
  • MAC media Access Link control
  • the physical layer is located at the lowest layer (layer 1), the MAC layer, RLC layer, PDCP layer and SDAP layer belong to the second layer (layer 2), and the RRC layer belongs to the third layer (layer 3).
  • the data first arrives at the PDCP layer of the network device, and then is transmitted to the RLC layer and the MAC layer after being processed by the PDCP layer of the network device. After being processed, it is sent from the physical layer and transmitted to the terminal device through the air interface. Then, each protocol layer on the terminal device side sequentially performs corresponding processing on the data packets according to the processing sequence opposite to that of the network device.
  • the processing of data packets by various layers can be visually combined, which is called wireless bearer. For each data in the wireless bearer, it needs to be processed by each layer, and each layer has corresponding functions. entity to perform corresponding functions, such as the PDCP entity of the PDCP layer.
  • Each radio bearer configuration will contain a PDCP entity, and at the same time, the radio bearer configuration will be associated with at least one RLC entity, and each RLC entity corresponds to a logical channel.
  • the SDAP layer is responsible for mapping data from the core network to different bearers.
  • SDAP Secure Digital
  • PDCP Packet Control Protocol
  • RLC Radio Link Control
  • MAC packet headers need to be added before the original data is transmitted at the physical layer.
  • some of the headers are optional.
  • SDAP and RLC have transmission methods without headers.
  • PDCP, SDAP and original data packets are in one-to-one correspondence.
  • the RLC may cut a PDCP packet, and the MAC may cascade and send multiple RLC packets.
  • system and “network” in the embodiments of the present application may be used interchangeably.
  • “At least one” means one or more, and “plurality” means two or more.
  • “And/or”, which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • “At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example "at least one of A, B and C” includes A, B, C, AB, AC, BC or ABC.
  • ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, sequence, priority or importance of multiple objects degree.
  • first threshold and the second threshold are only for distinguishing different thresholds, and do not indicate the difference in priority or importance of the two thresholds.
  • FIG. 2 is a schematic diagram of a network architecture to which an embodiment of the present application is applied.
  • the terminal equipment 231 and the terminal equipment 232 can be connected to a radio access network (RAN) equipment 210 and a core network (core network, CN) equipment 220, wherein the RAN equipment 210 is used to connect the terminal
  • the device 231 and the terminal device 232 are connected to the wireless network, and the CN device 220 is used to manage the terminal device and provide a gateway for communication with the external network.
  • the terminal device 231 and the terminal device 232 send communication data to each other.
  • the CN device 220 may be an access and mobility management function (AMF) entity, a session management function (SMF) entity or User plane function (user plane function, UPF) entity, etc.
  • AMF access and mobility management function
  • SMF session management function
  • UPF User plane function
  • the CN device 220 may be a mobility management entity (mobility management entity, MME) and a serving gateway (serving gateway) , S-GW) and so on.
  • MME mobility management entity
  • serving gateway serving gateway
  • the network architecture shown in Figure 2 above can be applied to communication systems of various radio access technologies (RATs), such as 5G (or new radio (NR)) communication systems, or It is a transition system between the LTE communication system and the 5G communication system.
  • the transition system can also be called a 4.5G communication system, and of course it can also be a future communication system following 5G.
  • the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present application.
  • the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • the first terminal device and the second terminal device communicate with each other, that is, the first terminal device wants to send the first data to the second terminal device, and the second terminal device wants to send the second data to the first terminal device.
  • Terminal Equipment The network device receives the first data sent by the first terminal device and the second data sent by the second terminal device, and performs network coding on the first data and the second data to form third data.
  • the network device sends the third data to the first terminal device and/or the second terminal device.
  • the first terminal device receives the third data, and performs network coding on the first data and the third data to obtain the second data.
  • the second terminal device receives the third data, and performs network coding on the second data and the third data to obtain the first data.
  • the network device does not need to send the second data and the first data to the first terminal device and the second terminal device on the two downlink resources, respectively, By encoding the first data and the second data to form the third data, it is only necessary to send the third data to the first terminal device and the second terminal device through one downlink resource, thus reducing the overhead of downlink resources.
  • FIG. 3 is a flowchart of a communication method provided by an embodiment of the present application.
  • the method of the embodiment of the present application includes:
  • the network device receives a first data packet sent by a first terminal device, where the first data packet includes first data, and the network device receives a second data packet sent by a second terminal device, where the second data packet includes second data.
  • each layer of the protocol stack performs corresponding processing on the first data.
  • the first data passes through the SDAP layer, the PDCP layer, the RLC layer, and the MAC layer, and corresponding packet headers are added to each layer respectively.
  • the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
  • each layer of the protocol stack performs corresponding processing on the second data.
  • the second data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer, and corresponding packet headers are added to each layer respectively.
  • the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
  • the network device receives the first data packet and the second data packet to obtain the first data and the second data.
  • the network device encodes the first data and the second data to generate third data.
  • the network device obtains the third data after XORing the first data and the second data.
  • the first data and the second data may also be encoded by other network coding methods such as fountain codes to generate the third data.
  • the network device sends third data to the first terminal device and/or the second terminal device.
  • the network device generates third data after encoding the first data and the second data, and the network device sends the third data to the first terminal device and/or the second terminal device.
  • the network device does not need to send the second data and the first data to the first terminal device and the second terminal device respectively, and only needs to send the third data to realize the first terminal device and the second terminal device. Intercommunication between two terminal devices.
  • the first terminal device decodes the third data according to the first data to generate the second data, and/or the second terminal device decodes the third data according to the second data to generate the first data.
  • the first terminal device obtains the second data sent by the second terminal device
  • the second terminal device obtains the first data sent by the first terminal device.
  • the process for the first terminal device to decode the third data according to the first data to generate the second data may be as follows: the first terminal device performs an exclusive OR operation on the first data and the third data to generate the second data.
  • the process for the second terminal device to decode the third data according to the second data to generate the first data may be as follows: the second terminal device performs an exclusive OR operation on the second data and the third data to generate the first data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data, and send the encoded third data to the first terminal device and/or the second terminal device.
  • the first terminal device decodes the third data according to the first data to generate the second data
  • the second terminal device decodes the third data according to the second data to generate the first data.
  • the embodiments of the present application further save downlink resources while realizing the mutual communication between the first terminal device and the second terminal device.
  • the network device may be an access network device, the first terminal device and the second terminal device communicate with each other, and the first terminal device and the second terminal device may be connected to the same access network device.
  • the first terminal device and the second terminal device may be referred to as paired terminal devices.
  • the core network device or the access network device may perform pairing detection on the terminal device, and check the detected devices that meet the conditions.
  • Figure 4 is a flowchart of a communication method provided by the first embodiment of the present application, and the process will be described below with reference to steps 401 to 402.
  • the detection of the paired terminal device may be performed by the core network device or the access network device.
  • the detection of paired terminal devices may be performed by core network devices.
  • the core network device detects the target address communicated by the terminal device, and determines whether the following conditions are met. When the detection result meets the conditions 1 and 2, it can be considered that the two terminal devices meet the pairing conditions. It is assumed that the detected terminal devices include terminal device 1, terminal device 2, terminal device 3 . . . terminal device n. After the core network device detects the terminal device, it is determined that the terminal device 1 and the terminal device 2 meet the conditions 1 and 2.
  • Condition 1 and Condition 2 can be expressed as:
  • Condition 1 The destination address of the data packet sent by terminal equipment 1 is terminal equipment 2, and the destination address of the data packet sent by terminal equipment 2 is also terminal equipment 1.
  • the target address here may be one or more of an internet protocol address (IP address), a media access control address (MAC address), or an internet protocol address and a port number.
  • IP address internet protocol address
  • MAC address media access control address
  • the destination address of the data packet sent by terminal equipment 1 is terminal equipment 2, indicating that terminal equipment 1 wants to send the data packet to terminal equipment 2, and the destination address of the data packet sent by terminal equipment 2 is terminal equipment 1, indicating that terminal equipment 2 wants to send the data packet. This data packet is to be sent to end device 1.
  • the serving cell of terminal device 1 and the serving cell of terminal device 2 are the same serving cell, and/or the serving network device of terminal device 1 and the serving network device of terminal device 2 are the same serving network device.
  • the serving network device may be an access network device.
  • the access network device may report the serving cell and serving network device information of the terminal device participating in the communication to the core network device.
  • the core network device detects the destination address of the first data packet of the first terminal device and the destination address of the second data packet of the second terminal device, and determines the destination address of the first data packet of the first terminal device.
  • the destination address is the second terminal device
  • the destination address of the second data packet of the second terminal device is the first terminal device.
  • the core network device detects the serving cell and/or serving network device of the first terminal device, detects the serving cell and/or serving network device of the second terminal device, and determines that the serving cell of the first terminal device and the serving cell of the second terminal device are The same serving cell and/or the core network device determines that the serving network device of the first terminal device and the serving network device of the second terminal device are the same serving network device.
  • FIG. 4 shows that the pairing detection of the terminal device is performed by the core network device
  • the access network device can also perform the detection of the paired terminal device.
  • the access network device needs to detect The destination address of the data packet is used to determine which end devices are paired end devices.
  • the first terminal device and the second terminal device meet the conditions 1 and 2, and it can be determined that the first terminal device and the second terminal device can be paired.
  • the access network device can determine the pairing information of the terminal devices according to the detection result of the core network device or the detection result of the access network device itself.
  • the pairing information of the terminal equipment may be: the first quality of service flow (Quality of Service Flow, QoS) of the first terminal equipment Flow) and the second quality of service flow of the second terminal device.
  • the pairing information of the terminal device may further include: identifier (Identifier, ID) information of the first terminal device and the second terminal device, or the same group flag may be set for the context information of the two paired terminal devices, according to the two The group tag of the two end devices determines that the two end devices are paired end devices. When the paired terminal device is marked in a group marking manner, the ID information of the terminal device may not be required.
  • the access network device can determine that the first terminal device and the second terminal device are paired terminal devices according to the pairing information of the terminal device.
  • the core network device may send the detected pairing information of the terminal device to the access network device.
  • the access network device sends the parameters of the common transmission channel to the first terminal device and/or the second terminal device.
  • the access network device establishes a common transmission channel, and the common transmission channel is used for sending third data to the first terminal device and/or the second terminal device.
  • the common transmission channel can be understood as a common data radio bearer (Common Data Radio Bearer, common DRB).
  • DRB is a segment of the bearer between the terminal device and the air interface of the access network device, which is used to carry user plane data.
  • the access network device sends the third data to the first terminal device and the second terminal device through the common DRB.
  • the access network device maps the first QoS flow and the second QoS flow to the common DRB.
  • the first data packet belongs to the first quality of service flow
  • the second data packet belongs to the second quality of service flow.
  • the QoS flow is an end-to-end data flow that satisfies a set of QoS configurations. It is the finest quality management granularity in the 5G system.
  • a data flow with the same QoS attribute can be called a QoS flow.
  • the first data packet may belong to a data packet in the data flow, so the meaning of the first data packet belonging to the first quality of service flow is that the first data packet belongs to a data packet in the first data flow, and the first data packet belongs to a data packet in the first data flow.
  • a data flow satisfies the same QoS attribute, so the first data flow can be called the first quality of service flow.
  • the second data packet belongs to the second quality of service flow.
  • the access network device maps the first QoS stream and the second QoS stream to the common DRB, that is, the access network device performs network coding on the uplink data received in the first QoS stream and the second QoS stream and passes the common DRB.
  • DRBs are sent to the two terminal devices. According to this mapping relationship, the terminal can know which uplink data network-encoded data of the uplink QoS flow are received on the DRB.
  • the parameters of the common transmission channel are used by the first terminal device and/or the second terminal device to receive the third data.
  • the parameters of the public transport channel include one or more of the following information:
  • the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter;
  • Radio Network Temporary Identifier (RNTI)
  • BWP Bandwidth Part
  • Uplink data channel information of the first data packet and/or the second data packet
  • the indication information is used to instruct the first terminal device to associate with the first control field and/or to instruct the second terminal device to associate with the second control field, where the first control field includes the first serial number and/or the first integrity protection Indication field, the second control field includes a second sequence number and/or a second integrity protection indication field.
  • the common transmission channel configuration information is used for the first terminal device and/or the second terminal device to configure the common transmission channel.
  • the wireless network temporary identification includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, which is used for the first terminal device and/or the second terminal device to perform data on the public transmission channel take over.
  • the partial bandwidth information includes information such as partial bandwidth ID, frequency location, etc., and is used for data reception on the common transmission channel by the first terminal device and/or the second terminal device.
  • the uplink data channel information of the first data packet and/or the second data packet includes: the uplink QoS flow ID associated with the first data packet and/or the second data packet, the uplink associated with the first data packet and/or the second data packet
  • the logical channel ID, or one or more of the uplink DRB IDs associated with the first data packet and/or the second data packet, and the uplink data channel information of the first data packet and/or the second data packet is used for the first terminal device
  • the second terminal device determines the first data packet and the second data packet sent to the access network device, so that the first terminal device encodes the first data and the third data to form the second data, and/or uses The second data and the third data are encoded at the second terminal device to form the first data.
  • the indication information is used to instruct the terminal device to associate with the first control field and/or the second terminal device to associate with the second control field.
  • the first control field includes a first sequence number SN1 and/or a first integrity protection field
  • the second control field includes a second sequence number SN2 and a second integrity protection field.
  • the third data packet may include two sequence numbers SN1 and SN2 and/or two integrity protection domains, a first integrity protection domain and a second integrity protection domain, which are respectively associated with the two integrity protection domains A first terminal device and a second terminal device.
  • the first sequence number SN1 is used by the first terminal device to determine the first data associated with the third data packet
  • the second sequence number SN2 is used by the second terminal device to determine the second data associated with the third data packet.
  • the first integrity protection field is used for the first terminal device to verify whether the third data is modified according to the key
  • the second integrity protection field is used for the second terminal device to verify whether the third data is modified according to the key. Therefore, the first terminal device needs to identify its own first serial number SN1 and the first integrity protection domain, and the second terminal device needs to identify its own second serial number SN2 and the second integrity protection domain.
  • the first terminal device can determine the first serial number SN1 and/or the first integrity protection domain according to the indication information, and the second terminal device can determine the second serial number SN2 and/or the second integrity protection domain according to the indication information.
  • the access network device receives the first data packet sent by the first terminal device, where the first data packet includes the first data.
  • each layer of the protocol stack performs corresponding processing on the first data.
  • the first data passes through the SDAP layer, the PDCP layer, the RLC layer, and the MAC layer in sequence, and corresponding headers are added to one or more layers of them to form the first data packet. Therefore, the first data packet includes the first packet header, and the first packet header includes the first sequence number SN1.
  • the first packet header may refer to the PDCP packet header, and the first sequence number SN1 may refer to the PDCP SN number. Or it can also be the sequence number of other layers, such as the RLC sequence number, the MAC sequence number, or the SDAP sequence number.
  • each layer of the protocol stack performs corresponding processing on the second data.
  • the second data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding headers are added to one or more layers of the layers to form the second data packet. Therefore, the second data packet includes the second header, and the second header includes the second sequence number SN2.
  • the second packet header may refer to the PDCP packet header, and the second sequence number SN2 may refer to the PDCP SN number. Or it can also be the sequence number of other layers, such as the RLC sequence number, the MAC sequence number, or the SDAP sequence number.
  • the access network device After receiving the first data packet and the second data packet, the access network device will parse the first data packet and the second data packet respectively.
  • the access network device may remove the MAC header, the RLC header, the PDCP header, and the SDAP header from the first data packet and the second data packet.
  • the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
  • the first data and the second data are obtained by removing the headers of the first data packet and the second data packet, respectively.
  • the order of step 403 and step 404 can be reversed.
  • the access network device performs network coding on the first data and the second data to form third data.
  • the network coding method may be exclusive OR (exclusive OR, xor), and the exclusive OR algorithm is: if the two values of a and b are different, the exclusive OR result is 1. If the values of a and b are the same, the XOR result is 0. XOR can also be called half addition operation.
  • the access network device may perform an exclusive OR operation on the first data and the second data to form the third data.
  • the encoding in the first embodiment of the present application may also include other operations, such as encoding by using other network encoding methods such as fountain codes.
  • an operation of adding a header to the third data may be performed.
  • the third data packet is sequentially added through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer headers to form a third data packet, wherein the headers of the SDAP layer and the RLC layer are optional.
  • Any one or more of the SDAP layer, the PDCP layer, the RLC layer or the MAC layer header may be referred to as a header of the third data packet.
  • the header of the third data packet may include the first sequence number SN1 and the second sequence number SN2.
  • the first sequence number SN1 and the second sequence number SN2 may be in the PDCP header of the third data packet. It can be understood that the first sequence number SN1 and the second sequence number SN2 are the SN numbers of the first data packet and the second data packet, and the first sequence number SN1 and the second sequence number SN2 are used to identify the first data packet and the second data packet. Bag.
  • the first terminal device when the first terminal device receives the third data packet, according to the first sequence number SN1 in the third data packet header It can be determined that the uplink data associated with the third data is the first data. Thus, the first terminal device encodes the first data and the third data to obtain the second data. Likewise, when the second terminal device receives the third data packet, it can determine that the uplink data associated with the third data is the second data according to the second sequence number SN2 in the header of the third data packet. Thus, the second terminal device encodes the second data and the third data to obtain the first data.
  • the third data packet includes the first integrity protection domain of the first terminal device and the second integrity protection domain of the second terminal device.
  • the first integrity protection domain is a bit sequence generated by the access network device according to the key of the first terminal device and the content of the third data packet, and the first terminal device is based on the first integrity protection domain and the key of the first terminal device. Verify that the third packet has not been modified.
  • the second integrity protection domain is a bit sequence generated by the access network device according to the key of the second terminal device and the content of the third data packet, and the second terminal device is based on the second integrity protection domain and the second terminal device. The key verifies whether the third packet has been modified.
  • the access network device sends a third data packet to the first terminal device and/or the second terminal device.
  • the access network device sends the third data packet to the first terminal device and/or the second terminal device through the common transmission channel.
  • the first terminal device and/or the second terminal device obtain the integrity protection domain and the serial number from the third data packet.
  • This step is described below by taking the first terminal device as an example, and the actions performed by the second terminal device are the same as those of the first terminal device.
  • the first terminal device receives a third data packet sent by the access network device, where the third data packet includes a first control field and a second control field, and the first control field includes a first integrity protection field and/or a first sequence number, The second control field includes a second integrity protection field and/or a second sequence number.
  • the first integrity protection domain is generated according to the key of the first terminal device and the third data
  • the first serial number SN1 is the first data packet sent by the first terminal device to the access network device serial number in .
  • the first terminal device receives the third data packet, firstly identifies the first control field and the second control field in the third data packet, and finds out which one of the first control field and the second control field is the first terminal device After finding the corresponding control field, the first terminal device obtains the integrity protection domain and the serial number. and verifying whether the third data is modified according to the integrity protection field, finding the first data according to the serial number, and decoding the third data according to the first data to obtain the second data.
  • the process of identifying the control field by the first terminal device can be understood as: the first terminal device determines the third control field, and the third control field is the first control field or the second control field.
  • the third control field is not a new control field generated by the first terminal device, and determining the third control field refers to the process of finding the control field corresponding to the first terminal device in the first control field and the second control field.
  • the third control field is the first control field
  • the third control field is the second control field.
  • the first terminal device when receiving the third data packet, it needs to identify the first control field and the second control field in the third data packet, and obtain the third control field.
  • the first terminal device receives indication information, and the indication information is used to indicate the third control field to the first terminal device, that is, the indication information is used to indicate to the first terminal device that the first control field is in the first control field. and which of the second control fields belongs to the first terminal device. Therefore, the first terminal device can determine the third control field according to the indication information.
  • the indication information is also used to indicate to the second terminal device which control field in the first control field and the second control field belongs to the second terminal device.
  • the indication information is used to indicate the control field corresponding to the terminal device.
  • the access network device may send the indication information to the first terminal device and/or the second terminal device through the common transmission channel parameter.
  • the indication information may be serial numbers of the first terminal device and the second terminal device. Since the first control field and the second control field are put into the third data packet in a certain order, for example, the first control field is put into the third data packet before the second control field. Based on the sequence of the first control field and the second control field, the access network device may number the first terminal device as No. 1 and the second terminal device as No. 2 through the indication information.
  • the first terminal device obtains its own serial number as No. 1 according to the instruction information, and the first terminal device will be able to know that the meaning of No. 1 is that the control field first stored in the third data packet is the control field of the first terminal device.
  • the second terminal device obtains its own serial number as No. 2 according to the instruction information, and the second terminal device will be able to know that the meaning of No. 2 is that the control field stored in the third data packet is the control field of the second terminal device.
  • the first terminal device determines a third control field, where the third control field includes a third integrity protection field and/or a third sequence number.
  • the third integrity protection domain is the first integrity protection domain or the second integrity protection domain
  • the third serial number is the first serial number or the second serial number.
  • the third integrity protection domain and the third serial number are identified in pairs, that is, if the first terminal device identifies the first integrity protection domain and the second integrity protection domain, the first integrity protection domain is The integrity protection domain (third integrity protection domain) of the first terminal device, then the first serial number is the serial number (third serial number) of the first terminal device.
  • the first terminal device verifies the validity of the integrity protection of the third data according to its own key and the third integrity protection domain. Integrity protection effectively indicates that the third data is intact and not modified.
  • the first terminal device can determine the first data according to the third serial number.
  • the third sequence number is the first sequence number SN1 included in the header of the first data packet when the first terminal device sends the first data packet to the access network device. That is, the first header of the first data packet includes the third sequence number.
  • the third sequence number is used to identify the first data sent by the first terminal device. Therefore, when the first terminal device recognizes the third sequence number from the third data packet, the first terminal device can determine the access according to the third sequence number.
  • the first data sent by the network device is the first sequence number SN1 included in the header of the first data packet when the first terminal device sends the first data packet to the access network device. That is, the first header of the first data packet includes the third sequence number.
  • the third sequence number is used to identify the first data sent by the first terminal device. Therefore, when the first terminal device recognizes the third sequence number from the third data packet, the first terminal device can determine the access according to the third sequence number.
  • the first data sent by the network device is the
  • the first terminal device decodes the third data according to the first data to generate the second data, and/or the second terminal device decodes the third data according to the second data to generate the first data.
  • the first terminal device may XOR the first data and the third data to generate the second data
  • the second terminal device may XOR the second data and the third data Generate first data.
  • the first terminal device sends the first data to the second terminal device
  • the second terminal device sends the second data to the first terminal device
  • the first terminal device and the second terminal device communicate with each other.
  • the destination address of the first data packet of the first terminal device is the second terminal device
  • the destination address of the second data packet of the second terminal device is the first terminal device.
  • the network device receives the first data packet and the second data packet, encodes the first data and the second data to generate third data, and sends the third data through a common transmission channel. After receiving the third data, the first terminal device decodes the third data according to the first data to obtain the second data, and after receiving the third data, the second terminal device decodes the third data according to the second data to obtain the first data, so as to realize the first data. Intercommunication between a terminal device and a second terminal device.
  • a network device can use one downlink resource on a common transmission channel to implement mutual communication between two terminal devices, thereby reducing downlink resource overhead.
  • the difference between the second embodiment of the present application and the first embodiment is that after receiving the first data packet and the second data packet, the access network device sends the first data packet and the second data packet to the core network device, The core network device further sends a fourth data packet and a fifth data packet to the access network device, where the fourth data packet includes the first data sent by the access network device to the core network device, and the fifth data packet includes the The second data sent by the access network device to the core network device.
  • the access network device encodes the first data in the fourth data packet and the second data in the fifth data packet to form third data.
  • the access network device will first send the first data and the second data to the core network device, and the core network device will then send the first data and the second data to the core network device. It is returned to the access network device, and the access network device encodes the first data and the second data.
  • the core network equipment in this embodiment of the present application may be a 5G core network, and the core network equipment includes but is not limited to: AMF, User plane Function (UPF), Authentication Server Function (AUSF), data Network (Data Network, DN), Unstructured Data Storage Function (UDFS), Network Exposure Function (NEF), Network Element Data Repository Function (NF Repository Function, NRF), Network Slice Selection Function (NSSF), Policy Control Function (PCF), Session Management Function (SMF), Unified Data Management (UDM), Unified Data Warehouse (Unified Data Repository, UDR) or application layer function (Application Function, AF).
  • AMF User plane Function
  • AUSF Authentication Server Function
  • Data Network Data Network
  • UDFS Unstructured Data Storage Function
  • NEF Network Exposure Function
  • NRF Network Element Data Repository Function
  • NRF Network Slice Selection Function
  • PCF Policy Control Function
  • Session Management Function SMF
  • Unified Data Management UDM
  • UDR Unified Data Warehouse
  • Application Function Application Function
  • FIG. 5 is a flowchart of a communication method provided by the second embodiment of the present application. As shown in FIG. 5 , steps 501 to 508 are the same as those in the first embodiment. The different parts of an embodiment are described.
  • the access network device removes the header of the received first data packet and the second data packet to obtain the first data and the second data. Different from the first embodiment, the access network device obtains the first data and the second data. Steps 509 and 510 are performed after the first data and the second data.
  • the access network device sends the first data and the second data to the core network device.
  • the access network device after the access network device obtains the first data and the second data, it does not encode the first data and the second data, but parses the first data obtained from the first data packet and the second data from the first data packet.
  • the second data obtained by parsing in the second data packet is sent to the core network device.
  • the access network device receives the fourth data packet and the fifth data packet sent by the core network device.
  • the core network device since the data packet from the second terminal device is sent to the first terminal device, when the core network device sends the data packet from the second terminal device to the access network device, it will data channel transmission.
  • the access network device receives the data transmitted from the data channel of the first terminal device, it further sends the data to the first terminal device. Therefore, in the second embodiment of the present application, the fifth data packet is from the second terminal device, and the core network device will send the fifth data packet from the data channel of the first terminal device to the access network device, and the second terminal device will send the fifth data packet from the data channel of the first terminal device to the access network device.
  • the data channel of the device sends the fourth data packet to the access network device.
  • the fourth data packet includes the first data
  • the fifth data packet includes the second data.
  • the core network device encodes the first data in the fourth data packet and the second data in the fifth data packet to form third data.
  • the data channel between the core network device and the access network device may be a wired data channel.
  • the first data and the second data sent by the access network device to the core network device have removed the packet header of the first data packet and the packet header of the second data packet.
  • the access network device needs to identify that the data in the fourth data packet is the first data.
  • the access network device needs to identify that the data in the fifth data packet is the second data.
  • the access network device can determine in two ways that the data in the fourth data packet is the same as the data in the first data packet, and the data in the fifth data packet is the same as the data in the second data packet.
  • Manner 1 Compare the fourth data packet with the data packet received from the first terminal device, and compare the fifth data packet with the data packet received from the second terminal device.
  • the core network device sends the fifth data packet from the data channel of the first terminal device to the access network device, and sends the fourth data packet from the data channel of the second terminal device to the access network device. Therefore, when the access network device receives the fourth data packet, it can learn that the data in the fourth data packet is from the first terminal device. In order to determine which data packet in the fourth data packet is the same as which data packet from the first terminal device, the data in the fourth data packet received from the core network device and the data packet received from the first terminal device are analyzed. data for comparison. Through the comparison, it can be determined that the data in the fourth data packet is the same as the data in the first data packet.
  • the access network device After the comparison is the same, the first data from the first terminal device stored by the access network device can be deleted, and the comparison samples of other data packets subsequently received from the core network device can be reduced. Likewise, the access network device compares the data in the fifth data packet received from the core network device with the data in the data packet received from the second terminal device. Through the comparison, it can be determined that the data in the fifth data packet is the same as the data in the second data packet.
  • the fourth data packet includes the first sequence number in the first data packet, and it is determined according to the first sequence number that the data in the fourth data packet is the same as the data in the first data packet, and the fifth data packet includes the second data The second sequence number in the packet, according to the second sequence number, it is determined that the data in the fifth data packet is the same as the data in the second data packet.
  • the access network device when the access network device sends the first data to the core network device, it will also send the first sequence number SN1 in the first data packet to the core network device, and the core network device receives the first data and the first sequence number SN1.
  • the first sequence number SN1 of a data association When sending the first data to the access network device through the fourth data packet, the core network device will also send the first sequence number SN1 to the access network device through the fourth data packet.
  • the access network device may determine, according to the first sequence number SN1, that the data in the fourth data packet is the same as the data in the first data packet.
  • the access network device when it sends the second data to the core network device, it will also send the second sequence number SN2 in the second data packet to the core network device, and the core network device receives the second data and the second data The associated second sequence number SN2.
  • the core network device When sending the second data to the access network device through the fifth data packet, the core network device will also send the second sequence number SN2 to the access network device through the fifth data packet.
  • the access network device may determine, according to the second sequence number SN2, that the data in the fifth data packet is the same as the data in the second data packet.
  • the access network device further encodes the first data in the fourth data packet and the second data in the fifth data packet to generate third data, and can add a packet header to form a third data packet, which is sent to the first terminal device and/or the third data packet.
  • Two terminal equipment. This part of the content is the same as 405, and will not be repeated here.
  • the access network device after receiving the first data and the second data, the access network device further sends the first data and the second data to the core network device, and the core network device then sends it to the access network device , the communication security between the first terminal device and the second terminal device can be enhanced. For example, if a data monitoring function is deployed on the core network device, the monitoring function can analyze and monitor the data packets received by the core network device.
  • the communication method in the embodiments of the present application is described above, and the communication device in each embodiment of the present application will be described below.
  • the apparatus may adopt the methods shown in the embodiments of the present application. Since the principle of solving the problem by the method and the device is similar, the implementation of the device and the method can be referred to each other, and repeated descriptions will not be repeated here.
  • An embodiment of the present application provides a communication apparatus, and the communication apparatus may be a network device or a circuit.
  • the communication apparatus may be configured to perform the actions performed by the network device in the methods of the embodiments of the present application.
  • the communication apparatus includes: a transceiver module for receiving a first data packet from a first terminal device and a second data packet from a second terminal device, where the first data packet includes first data, and the second data packet includes second data.
  • each layer of the protocol stack performs corresponding processing on the first data. For example, the first data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding packet headers are added to each layer respectively.
  • the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
  • the processing module is used for encoding the first data and the second data to generate the third data.
  • a transceiver module configured to send third data to the first terminal device and/or the second terminal device.
  • the encoding manner may include an exclusive OR operation, that is, performing an exclusive OR on the first data and the second data to generate the third data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data
  • the encoded third data is sent to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device and save downlink resources.
  • the communication apparatus provided by the embodiments of the present application can also be used to execute the method in any possible implementation manner of the method embodiments of the present application. For details, refer to the part of the content about the actions performed by the network device in the method embodiments. It will not be repeated here.
  • An embodiment of the present application provides a communication apparatus, and the communication apparatus may be a terminal device or a circuit.
  • the communication apparatus may be used to perform the actions performed by the terminal device in the method of the embodiment of the present application.
  • the communication device includes: a transceiver module for sending a first data packet, where the first data packet includes first data.
  • the transceiver module is configured to receive a third data packet from the network device, where the third data packet includes third data.
  • the processing module is used for decoding the third data according to the first data to generate the second data.
  • the decoding used by the processing module to decode the third data according to the first data may be: the processing module is used to perform an exclusive OR operation on the first data and the third data to generate the second data.
  • the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data , and send the encoded third data to the first terminal device and/or the second terminal device.
  • the first terminal device may decode the third data according to the first data, thereby acquiring the second data. Thereby, mutual communication between the first terminal device and the second terminal device is realized, and downlink resources are saved.
  • the communication apparatus provided in this embodiment can also be used to execute the method in any possible implementation manner of the method in the first embodiment.
  • the network device may be as shown in FIG. 6 , and the device 600 includes one or more radio frequency units, such as a remote radio unit (remote radio unit, RRU) 610 and one or more radio frequency units
  • Each baseband unit 620 (baseband unit, BBU) may also be referred to as a digital unit (digital unit, DU).
  • the RRU 610 may be referred to as a transceiver module.
  • the transceiver module may also be referred to as a transceiver, a transceiver circuit, or a transceiver, etc., which may include at least one antenna 611 and a radio frequency unit 612 .
  • the part of the RRU 610 is mainly used for transmitting and receiving radio frequency signals and converting radio frequency signals and baseband signals, for example, for sending indication information to terminal equipment.
  • the part of the BBU 610 is mainly used to perform baseband processing, control the base station, and the like.
  • the RRU 610 and the BBU 620 may be physically set together, or may be physically separated, that is, a distributed base station.
  • the BBU 620 is the control center of the base station, and can also be called a processing module, which can correspond to the processing module, and is mainly used to complete baseband processing functions, such as channel coding, multiplexing, modulation, spread spectrum, and the like.
  • the BBU processing module
  • the BBU may be used to control the base station to perform the operation procedure of the network device in the foregoing method embodiments, for example, to generate the foregoing indication information and the like.
  • the BBU 620 may be composed of one or more single boards, and the multiple single boards may jointly support a wireless access network of a single access standard, or may respectively support a wireless access network of different access standards (such as LTE network, 5G network or other network).
  • the BBU 620 also includes a memory 621 and a processor 622.
  • the memory 621 is used to store necessary instructions and data.
  • the processor 622 is configured to control the base station to perform necessary actions, for example, to control the base station to perform the operation procedure of the network device in the foregoing method embodiments.
  • the memory 621 and processor 622 may serve one or more single boards. That is to say, the memory and processor can be provided separately on each single board. It can also be that multiple boards share the same memory and processor. In addition, necessary circuits may also be provided on each single board.
  • FIG. 7 shows a schematic structural diagram of a simplified communication apparatus, which is convenient for understanding and illustration.
  • the communication apparatus takes a terminal device as an example.
  • the communication device includes a processor, a memory, a radio frequency circuit, an antenna, and an input and output device.
  • the processor is mainly used to process communication protocols and communication data, control terminal equipment, execute software programs, and process data of software programs.
  • the memory is mainly used to store software programs and data.
  • the radio frequency circuit is mainly used for the conversion of the baseband signal and the radio frequency signal and the processing of the radio frequency signal.
  • Antennas are mainly used to send and receive radio frequency signals in the form of electromagnetic waves.
  • Input and output devices such as touch screens, display screens, and keyboards, are mainly used to receive data input by users and output data to users. It should be noted that some types of terminal equipment may not have input and output devices.
  • the processor When data needs to be sent, the processor performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit.
  • the radio frequency circuit performs radio frequency processing on the baseband signal and sends the radio frequency signal through the antenna in the form of electromagnetic waves.
  • the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor, which converts the baseband signal into data and processes the data.
  • FIG. 7 only one memory and processor are shown in FIG. 7 . In an actual end device product, there may be one or more processors and one or more memories.
  • the memory may also be referred to as a storage medium or a storage device or the like.
  • the memory may be set independently of the processor, or may be integrated with the processor, which is not limited in this embodiment of the present application.
  • the antenna and the radio frequency circuit with a transceiver function can be regarded as a transceiver module of the communication device, and the processor with a processing function can be regarded as a processing module of the communication device.
  • the communication device includes a transceiver module 701 and a processing module 702.
  • the transceiver module may be a transceiver, a transceiver, a transceiver device, and the like.
  • the processing module may also be a processor, a processing board, a processing device, and the like.
  • the device for implementing the receiving function in the transceiver module 701 may be regarded as a receiving module, and the device for implementing the transmitting function in the transceiver module 701 may be regarded as a transmitting module, that is, the transceiver module 801 includes a receiving module and a transmitting module.
  • the transceiver module may also sometimes be a transceiver, a transceiver, or a transceiver circuit or the like.
  • the receiving module may also sometimes be a receiver, a receiver, or a receiving circuit or the like.
  • the transmitting module may also be a transmitter, a transmitter or a transmitting circuit sometimes.
  • transceiver module 701 is configured to perform the sending and receiving operations on the terminal device side in the above method embodiments
  • processing module 702 is configured to perform other operations on the terminal device in the above method embodiments except for the transceiver operations.
  • the chip device may include a transceiver module and a processing module.
  • the transceiver module may be an input/output circuit and/or a communication interface;
  • the processing module is a processor, a microprocessor or an integrated circuit integrated on the chip.
  • the device When the communication device in this embodiment is a terminal device, reference may be made to the device shown in FIG. 8 .
  • the device includes a processor 801 , a transmit data processor 802 , and a receive data processor 803 .
  • the processing module in the above-mentioned embodiment may be the processor 801 in FIG. 8 and perform corresponding functions.
  • the transceiver module in the above embodiment may be the sending data processor 802 and/or the receiving data processor 803 in FIG. 9 .
  • a channel encoder and a channel decoder are shown in FIG. 8 , it should be understood that these modules do not constitute a limiting description of this embodiment, but are only illustrative.
  • FIG. 9 shows another form of this embodiment.
  • the processing device 900 includes modules such as a modulation subsystem, a central processing subsystem, and a peripheral subsystem.
  • the communication apparatus in this embodiment may serve as a modulation subsystem therein.
  • the modulation subsystem may include a processor 903 and an interface 904 .
  • the processor 903 completes the function of the above-mentioned processing module, and the interface 904 implements the function of the above-mentioned transceiver module.
  • the modulation subsystem includes a memory 906, a processor 903, and a program stored in the memory 906 and executable on the processor. When the processor 903 executes the program, the terminal device side in the foregoing method embodiment is implemented. Methods.
  • the memory 906 may be non-volatile or volatile, and its location may be inside the modulation subsystem or in the processing device 900, as long as the memory 906 can be connected to the The processor 903 is sufficient.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a communication method and a communication apparatus, which are applied to the technical field of wireless communications. The method comprises: receiving a first data packet from a first terminal device and a second data packet from a second terminal device, wherein the first data packet comprises first data, and second data packet comprises second data; sending third data to the first terminal device and/or the second terminal device, wherein an encoding scheme may comprise an exclusive-OR operation, that is, an exclusive-OR operation is performed on the first data and the second data to generate the third data; and when the first terminal device and the second terminal device communicate with each other, a network device encoding the first data sent by the first terminal device and the second data sent by the second terminal device to form the third data, and sending the third data, which is formed by means of encoding, to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device, thereby saving a downlink resource.

Description

一种通信方法及通信装置A communication method and communication device 技术领域technical field
本申请涉及通信技术领域,尤其涉及一种通信方法及通信装置。The present application relates to the field of communication technologies, and in particular, to a communication method and a communication device.
背景技术Background technique
在通信系统中,当一个终端设备向另一个终端设备发送数据时,通常是终端设备1先将数据发送给终端设备1的服务基站,终端设备1的服务基站发送给核心网设备,核心网设备将终端设备1发送的数据再发送给终端设备2的服务基站。终端设备2向终端设备1发送数据的流程也是相同。因此,对于终端设备1和终端设备2互发数据的情况,终端设备1的数据和终端设备2的数据分别占用一个下行资源。在通信系统中,由于下行资源有限,因此如何减少下行资源开销是需要解决的问题。In a communication system, when a terminal device sends data to another terminal device, usually terminal device 1 first sends the data to the serving base station of terminal device 1, the serving base station of terminal device 1 sends the data to the core network device, and the core network device The data sent by the terminal device 1 is then sent to the serving base station of the terminal device 2. The process of sending data from the terminal device 2 to the terminal device 1 is also the same. Therefore, in the case where the terminal equipment 1 and the terminal equipment 2 exchange data, the data of the terminal equipment 1 and the data of the terminal equipment 2 occupy one downlink resource respectively. In a communication system, since downlink resources are limited, how to reduce downlink resource overhead is a problem that needs to be solved.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种通信方法及通信装置,能够减少终端设备之间进行通信时的下行资源开销。The present application provides a communication method and a communication apparatus, which can reduce downlink resource overhead during communication between terminal devices.
第一方面,提供了一种通信方法,该通信方法可以由网络设备执行,方法包括:接收来自第一终端设备的第一数据包和来自第二终端设备的第二数据包,第一数据包包括第一数据,第二数据包包括第二数据。第一终端设备和第二终端设备在发送第一数据之前,协议栈的各层对第一数据进行相应的处理。例如,第一数据依次经过SDAP层、PDCP层、RLC层和MAC层,分别在各层添加相应的包头。其中,SDAP层和RLC层有不添加包头的传输方式。网络设备对第一数据和第二数据编码生成第三数据。网络设备向第一终端设备和/或第二终端设备发送第三数据。编码方式可以包括异或运算,也就是对第一数据和第二数据进行异或生成第三数据。In a first aspect, a communication method is provided, the communication method can be performed by a network device, the method includes: receiving a first data packet from a first terminal device and a second data packet from a second terminal device, the first data packet The first data packet is included, and the second data packet includes the second data. Before the first terminal device and the second terminal device send the first data, each layer of the protocol stack performs corresponding processing on the first data. For example, the first data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding packet headers are added to each layer respectively. Among them, the SDAP layer and the RLC layer have a transmission mode that does not add packet headers. The network device encodes the first data and the second data to generate third data. The network device sends the third data to the first terminal device and/or the second terminal device. The encoding manner may include an exclusive OR operation, that is, performing an exclusive OR on the first data and the second data to generate the third data.
本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码生成第三数据,并向第一终端设备和/或第二终端设备发送第三数据,实现第一终端设备和第二终端设备之间的相互通信,节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to generate third data, The third data is sent to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device and save downlink resources.
在第一方面的一种可能的实现方式中,第一数据包包括第一包头,第二数据包包括第二包头,第一包头包括第一序列号,第二包头包括第二序列号。通过第三数据包发送第三数据,第三数据包包括第一序列号和第二序列号。第一序列号和第二序列号可以是PDCP序列号。In a possible implementation manner of the first aspect, the first data packet includes a first packet header, the second data packet includes a second packet header, the first packet header includes a first sequence number, and the second packet header includes a second sequence number. The third data is sent through a third data packet, and the third data packet includes the first sequence number and the second sequence number. The first sequence number and the second sequence number may be PDCP sequence numbers.
本申请实施例中,通过在第三数据包中添加第一序列号和第二序列号,第一终端设备在接收到第三数据包时,根据第三数据包中的第一序列号能够确定第三数据关联的上行数据为第一数据。从而,第一终端设备根据第一数据解码第三数据生成第二数据。同样,第二终端设备在接收到第三数据包时,根据第三数据包中的第二序列号能够确定第三数据关联的上行数据为第二数据。从而,第二终端设备根据第二数据解码 第三数据生成第一数据。In the embodiment of the present application, by adding the first sequence number and the second sequence number to the third data packet, when the first terminal device receives the third data packet, it can determine the first sequence number in the third data packet according to the The uplink data associated with the third data is the first data. Thus, the first terminal device decodes the third data according to the first data to generate the second data. Likewise, when the second terminal device receives the third data packet, it can determine that the uplink data associated with the third data is the second data according to the second sequence number in the third data packet. Thus, the second terminal device decodes the third data according to the second data to generate the first data.
在第一方面一种可能的实现方式中,通过第三数据包发送第三数据,第三数据包包括第一终端设备的第一完整性保护域和第二终端设备的第二完整性保护域。第一完整性保护域是网络设备根据第一终端设备的密钥和第三数据包的内容生成的比特序列。同样的,第二完整性保护域是网络设备根据第二终端设备的密钥和第三数据包的内容生成的比特序列。In a possible implementation manner of the first aspect, the third data is sent through a third data packet, where the third data packet includes a first integrity protection domain of the first terminal device and a second integrity protection domain of the second terminal device . The first integrity protection domain is a bit sequence generated by the network device according to the key of the first terminal device and the content of the third data packet. Likewise, the second integrity protection domain is a bit sequence generated by the network device according to the key of the second terminal device and the content of the third data packet.
本申请实施例中,第一终端设备可以根据第一完整性保护域和第一终端设备的密钥验证第三数据包是否被修改。第二终端设备可以根据第二完整性保护域和第二终端设备的密钥验证第三数据包是否被修改,从而提升数据传输可靠性。In this embodiment of the present application, the first terminal device may verify whether the third data packet is modified according to the first integrity protection domain and the key of the first terminal device. The second terminal device can verify whether the third data packet is modified according to the second integrity protection domain and the key of the second terminal device, thereby improving the reliability of data transmission.
在第一方面一种可能的实现方式中,通过公共传输通道发送第三数据。公共传输通道可以理解为公共数据无线承载。公共数据无线承载是终端设备到接入网设备的空口之间的一段承载,用于承载用户面数据。网络设备通过公共数据无线承载向第一终端设备和/或第二终端设备发送第三数据。In a possible implementation manner of the first aspect, the third data is sent through a common transmission channel. The common transmission channel can be understood as a public data radio bearer. The public data radio bearer is a section of bearer between the terminal device and the air interface of the access network device, and is used to bear user plane data. The network device sends the third data to the first terminal device and/or the second terminal device through the common data radio bearer.
本申请实施例中,网络设备可以只通过一个无线承载向两个终端设备发送第三数据,从而实现第一终端设备和第二终端设备的互相通信,节省下行资源。In the embodiment of the present application, the network device may send the third data to the two terminal devices through only one radio bearer, thereby realizing the mutual communication between the first terminal device and the second terminal device and saving downlink resources.
在第一方面一种可能的实现方式中,将第一服务质量流和第二服务质量流映射到公共传输通道,其中,第一数据包属于第一服务质量流,第二数据包属于第二服务质量流。In a possible implementation manner of the first aspect, the first quality of service flow and the second quality of service flow are mapped to a common transmission channel, wherein the first data packet belongs to the first quality of service flow, and the second data packet belongs to the second quality of service flow quality of service flow.
本申请实施例中,网络设备将第一服务质量流和第二服务质量流中收到的上行数据进行编码后通过公共传输通道发送给第一终端设备和/或第二终端设备。第一终端设备和/或第二终端设备根据这个映射关系,可以知道该公共传输通道上接收的是哪些上行服务质量流的编码后的数据。In the embodiment of the present application, the network device encodes the uplink data received in the first QoS stream and the second QoS stream, and sends the encoded data to the first terminal device and/or the second terminal device through a common transmission channel. According to the mapping relationship, the first terminal device and/or the second terminal device can know which coded data of upstream quality of service streams are received on the common transmission channel.
在第一方面一种可能的实现方式中,向第一终端设备和/或第二终端设备发送公共传输通道的参数,公共传输通道的参数包括以下信息中的一个或多个:In a possible implementation manner of the first aspect, parameters of the common transmission channel are sent to the first terminal device and/or the second terminal device, where the parameters of the common transmission channel include one or more of the following information:
公共传输通道配置信息,公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个,公共传输通道配置信息用于第一终端设备和/或第二终端设备进行公共传输通道配置。无线网络临时标识,无线网络临时标识包括组无线网络临时标识、公共无线网络临时标识或配对无线网络临时标识中的一个或多个,用于第一终端设备和/或第二终端设备进行在公共传输通道上的数据接收。部分带宽信息,包括部分带宽ID、频率位置等信息,用于第一终端设备和/或第二终端设备进行在公共传输通道上的数据接收。第一数据包和/或第二数据包的上行数据通道信息,第一数据包和/或第二数据包的上行数据通道信息包括第一数据包和/或第二数据包关联的上行Qos flow ID、第一数据包和/或第二数据包关联的上行逻辑信道ID,或者第一数据包和/或第二数据包关联的上行DRB ID中的一个或多个。指示信息,指示信息用于指示第一终端设备对应第一控制字段和/或用于指示第二终端设备对应第二控制字段,第一控制字段包括第一序列号和/或第一完整性保护域,第二控制字段包括第二序列号和/或第二完整性保护域。Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used for the first terminal device and/or Or the second terminal device performs common transmission channel configuration. Wireless network temporary identification, the wireless network temporary identification includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, which is used for the first terminal device and/or the second terminal device to perform in the public network. Data reception on the transmission channel. The partial bandwidth information, including partial bandwidth ID, frequency location and other information, is used for the first terminal device and/or the second terminal device to receive data on the common transmission channel. The upstream data channel information of the first data packet and/or the second data packet, the upstream data channel information of the first data packet and/or the second data packet includes the upstream Qos flow associated with the first data packet and/or the second data packet One or more of the ID, the upstream logical channel ID associated with the first data packet and/or the second data packet, or the upstream DRB ID associated with the first data packet and/or the second data packet. Indication information, the indication information is used to instruct the first terminal device to correspond to the first control field and/or to instruct the second terminal device to correspond to the second control field, where the first control field includes the first serial number and/or the first integrity protection field, the second control field includes the second sequence number and/or the second integrity protection field.
本申请实施例中,网络设备向第一终端设备和/或第二终端设备发送公共传输通道参数,公共传输通道参数用于第一终端设备和/或第二终端设备在公共传输通道上接收第三数据包,并从第三数据包中获取对应的完整性保护域、序列号等信息,从而第一终端设备确定 第三数据关联的第一数据,第二终端设备确定第三数据关联的第二数据。第一终端设备可以根据第一数据解码第三数据获取第二数据,第二终端设备可以根据第二数据解码第三数据获取第一数据。In this embodiment of the present application, the network device sends the public transmission channel parameters to the first terminal device and/or the second terminal device, and the public transmission channel parameters are used by the first terminal device and/or the second terminal device to receive the first terminal device and/or the second terminal device on the public transmission channel. three data packets, and obtain the corresponding integrity protection domain, serial number and other information from the third data packet, so that the first terminal device determines the first data associated with the third data, and the second terminal device determines the third data associated with the third data. Two data. The first terminal device may decode the third data according to the first data to obtain the second data, and the second terminal device may decode the third data according to the second data to obtain the first data.
在第一方面一种可能的实现方式中,网络设备可以为接入网设备,接入网设备向核心网设备发送第一数据和第二数据。接入网设备接收核心网设备发送的第四数据包和第五数据包,第四数据包包括第一数据,第五数据包包括第二数据。接入网设备对第四数据包中的第一数据和第五数据包中的第二数据编码形成第三数据。In a possible implementation manner of the first aspect, the network device may be an access network device, and the access network device sends the first data and the second data to the core network device. The access network device receives the fourth data packet and the fifth data packet sent by the core network device, where the fourth data packet includes the first data, and the fifth data packet includes the second data. The access network device encodes the first data in the fourth data packet and the second data in the fifth data packet to form third data.
在本申请实施例中,接入网设备在接收到第一数据和第二数据后,进一步将第一数据和第二数据发送给核心网设备,核心网设备再发送给接入网设备,能够增强第一终端设备和第二终端设备之间的通信安全。In this embodiment of the present application, after receiving the first data and the second data, the access network device further sends the first data and the second data to the core network device, and the core network device then sends it to the access network device, which can The communication security between the first terminal device and the second terminal device is enhanced.
在第一方面一种可能的实现方式中,网络设备可以为接入网设备,接入网设备确定第四数据包中的数据与第一数据包中的数据相同,接入网设备确定第五数据包中的数据与第二数据包中的数据相同。In a possible implementation manner of the first aspect, the network device may be an access network device, the access network device determines that the data in the fourth data packet is the same as the data in the first data packet, and the access network device determines that the fifth data packet is the same as the data in the first data packet. The data in the data packet is the same as the data in the second data packet.
在本申请实施例中,接入网设备收到第四数据包并确定第四数据包中的数据与第一数据相同,可以认为核心网设备所发送的第四数据包中的数据就是第一终端设备发送的第一数据。接入网设备收到第五数据包并确定第五数据包中的数据与第二数据相同,可以认为核心网设备所发送的第五数据包中的数据就是第二终端设备发送的第二数据。从而确定需要进行编码的数据。In this embodiment of the present application, the access network device receives the fourth data packet and determines that the data in the fourth data packet is the same as the first data, and it can be considered that the data in the fourth data packet sent by the core network device is the first data packet. The first data sent by the terminal device. The access network device receives the fifth data packet and determines that the data in the fifth data packet is the same as the second data. It can be considered that the data in the fifth data packet sent by the core network device is the second data sent by the second terminal device. . This determines the data that needs to be encoded.
在第一方面一种可能的实现方式中,网络设备可以为接入网设备,接入网设备将第四数据包与从第一终端设备接收的数据包比较,和/或接入网设备将第五数据包与从第二终端设备接收的数据包比较。通过将第四数据包与从第一终端设备接收的数据包比较,确定第四数据包中的数据与第一数据相同。通过将第五数据包与从第二终端设备接收的数据包比较,确定第五数据包中的数据与第二数据相同。In a possible implementation manner of the first aspect, the network device may be an access network device, the access network device compares the fourth data packet with the data packet received from the first terminal device, and/or the access network device compares the fourth data packet with the data packet received from the first terminal device, and/or the access network device The fifth data packet is compared with the data packet received from the second terminal device. By comparing the fourth data packet with the data packet received from the first terminal device, it is determined that the data in the fourth data packet is the same as the first data. By comparing the fifth data packet with the data packet received from the second terminal device, it is determined that the data in the fifth data packet is the same as the second data.
在本申请实施例中,由于第四数据包中的原始数据是由第一终端设备发送给第二终端设备的数据,接入网设备会从第二终端设备的数据通道接收第四数据包。因此,接入网设备从第二终端设备的数据通道接收到第四数据包后,能够获知第四数据包中的数据来自于第一终端设备,接入网设备只需要将第四数据包与从第一终端设备接收到的数据包比较,就能够确认第四数据包中的数据与哪部分数据相同。同样的,接入网设备只需要将第五数据包中的数据与从第二终端设备接收到的数据包比较。In this embodiment of the present application, since the original data in the fourth data packet is data sent by the first terminal device to the second terminal device, the access network device will receive the fourth data packet from the data channel of the second terminal device. Therefore, after receiving the fourth data packet from the data channel of the second terminal device, the access network device can know that the data in the fourth data packet comes from the first terminal device, and the access network device only needs to associate the fourth data packet with the first terminal device. By comparing the data packets received from the first terminal device, it can be confirmed which part of the data in the fourth data packet is the same. Likewise, the access network device only needs to compare the data in the fifth data packet with the data packet received from the second terminal device.
在第一方面一种可能的实现方式中,网络设备可以为接入网设备,第四数据包包括第一数据包的第一序列号,接入网设备根据第一序列号确定第四数据包中的数据与第一数据包中的数据相同。和/或,第五数据包包括第二数据包的第二序列号,根据第二序列号确定第五数据包中的数据与第二数据包中的数据相同。In a possible implementation manner of the first aspect, the network device may be an access network device, the fourth data packet includes a first sequence number of the first data packet, and the access network device determines the fourth data packet according to the first sequence number The data in is the same as the data in the first packet. And/or, the fifth data packet includes a second sequence number of the second data packet, and it is determined according to the second sequence number that the data in the fifth data packet is the same as the data in the second data packet.
在本申请实施例中,接入网设备在向核心网设备发送第一数据时,会将第一数据包中的第一序列号也发送给核心网设备,核心网设备接收到第一数据以及第一数据关联的第一序列号。核心网设备在通过第四数据包将第一数据发送给接入网设备时,会将第一序列号也通过第四数据包发送给接入网设备。接入网设备根据第一序列号可以确定第四数据包中的数据与第一数据包中的数据相同。同样的,接入网设备在向核心网设备发送第二数据时, 会将第二数据包中的第二序列号也发送给核心网设备,核心网设备接收到第二数据以及第二数据关联的第二序列号。核心网设备在通过第五数据包将第二数据发送给接入网设备时,会将第二序列号也通过第五数据包发送给接入网设备。接入网设备根据第二序列号可以确定第五数据包中的数据与第二数据包中的数据相同。In the embodiment of the present application, when sending the first data to the core network device, the access network device will also send the first sequence number in the first data packet to the core network device, and the core network device receives the first data and The first sequence number associated with the first data. When sending the first data to the access network device through the fourth data packet, the core network device also sends the first sequence number to the access network device through the fourth data packet. The access network device may determine, according to the first sequence number, that the data in the fourth data packet is the same as the data in the first data packet. Similarly, when the access network device sends the second data to the core network device, it will also send the second sequence number in the second data packet to the core network device, and the core network device receives the second data and associates the second data with the second data. the second serial number. When sending the second data to the access network device through the fifth data packet, the core network device also sends the second sequence number to the access network device through the fifth data packet. The access network device may determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
在第一方面一种可能的实现方式中,第一数据包的目标地址为第二终端设备,第二数据包的目标地址为第一终端设备。第一终端设备和第二终端设备在同一小区或第一终端设备和第二终端设备的服务网络设备为同一网络设备。这里的目标地址可以为互联网协议地址(IP地址)、媒体接入控制地址(MAC地址)或互联网协议地址与端口号中的一种或多种。服务网络设备可以为接入网设备,第一终端设备和第二终端设备通过同一个接入网设备进行通信。In a possible implementation manner of the first aspect, the destination address of the first data packet is the second terminal device, and the destination address of the second data packet is the first terminal device. The first terminal device and the second terminal device are in the same cell or the service network devices of the first terminal device and the second terminal device are the same network device. The target address here may be one or more of an internet protocol address (IP address), a media access control address (MAC address), or an internet protocol address and a port number. The service network device may be an access network device, and the first terminal device and the second terminal device communicate through the same access network device.
在本申请实施例中,第一终端设备和第二终端设备通过通过同一个网络设备互相进行通信,第一终端设备向网络设备发送第一数据包,第一数据包的目标地址为第二终端设备。第二终端设备向同一个网络设备发送第二数据包,第二数据包的目标地址为第一终端设备。在第一终端设备和第二终端设备互相通信的场景下,网络设备对来自第一终端设备的第一数据和来自第二终端设备的第二数据编码生成第三数据,并将第三数据发送给第一终端设备和/或第二终端设备。只需要通过一个数据传输通道就能实现第一终端设备和第二终端设备之间的信息交互,节省下行资源开销。In this embodiment of the present application, the first terminal device and the second terminal device communicate with each other through the same network device, the first terminal device sends a first data packet to the network device, and the destination address of the first data packet is the second terminal equipment. The second terminal device sends a second data packet to the same network device, and the destination address of the second data packet is the first terminal device. In a scenario where the first terminal device and the second terminal device communicate with each other, the network device encodes the first data from the first terminal device and the second data from the second terminal device to generate third data, and sends the third data to the first terminal device and/or the second terminal device. Information exchange between the first terminal device and the second terminal device can be realized only through one data transmission channel, thereby saving downlink resource overhead.
在第一方面一种可能的实现方式中,网络设备可以为接入网设备或核心网设备,网络设备检测第一终端设备的服务小区和/或服务网络设备,网络设备检测第二终端设备的服务小区和/或服务网络设备。网络设备确定第一终端设备的服务小区和第二终端设备的服务小区为同一个服务小区,和/或确定第一终端设备的服务网络设备和第二终端设备的服务网络设备为同一个网络设备。In a possible implementation manner of the first aspect, the network device may be an access network device or a core network device, the network device detects the serving cell and/or the serving network device of the first terminal device, and the network device detects the service cell of the second terminal device. Serving cell and/or serving network equipment. The network device determines that the serving cell of the first terminal device and the serving cell of the second terminal device are the same serving cell, and/or determines that the serving network device of the first terminal device and the serving network device of the second terminal device are the same network device .
在本申请实施例中,可以将第一终端设备和第二终端设备称之为配对的终端设备,当第一终端设备发送的第一数据包的目标地址为第二终端设备,第二终端设备发送的第二数据包的目标地址为第一终端设备,且第一终端设备和第二终端设备在同一小区或连接于同一服务网络设备,第一终端设备和第二终端设备即满足配对条件。可以由接入网设备或核心网设备进行配对检测。当检测第一终端设备和第二终端设备满足配对条件,可以确定第一终端设备的第一数据包和第二终端设备的第二数据包作为一对编码对象。In this embodiment of the present application, the first terminal device and the second terminal device may be referred to as paired terminal devices. When the destination address of the first data packet sent by the first terminal device is the second terminal device, the second terminal device If the destination address of the sent second data packet is the first terminal device, and the first terminal device and the second terminal device are in the same cell or connected to the same service network device, the first terminal device and the second terminal device satisfy the pairing condition. Pairing detection can be performed by access network equipment or core network equipment. When it is detected that the first terminal device and the second terminal device meet the pairing condition, the first data packet of the first terminal device and the second data packet of the second terminal device can be determined as a pair of encoding objects.
第二方面,提供了一种通信方法,该通信方法可以由第一终端设备执行,方法包括:第一终端设备向网络设备发送第一数据包,第一数据包包括第一数据。第一终端设备接收来自网络设备的第三数据包,第三数据包包括第三数据。第一终端设备根据第一数据解码第三数据,生成第二数据。第一终端设备根据第一数据解码第三数据的解码方式可以为:第一终端设备将第一数据和第三数据进行异或运算生成第二数据。In a second aspect, a communication method is provided. The communication method can be performed by a first terminal device, and the method includes: the first terminal device sends a first data packet to a network device, where the first data packet includes first data. The first terminal device receives a third data packet from the network device, where the third data packet includes third data. The first terminal device decodes the third data according to the first data to generate the second data. A decoding manner in which the first terminal device decodes the third data according to the first data may be: the first terminal device performs an exclusive OR operation on the first data and the third data to generate the second data.
在本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码形成第三数据,并向第一终端设备和/或第二终端设备发送编码形成的第三数据。第一终端设备可以根据第一数据解码第三数据,从而获取第二数据。由此实现第一终端设备和第二终端设备之间的相互通信,节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data , and send the encoded third data to the first terminal device and/or the second terminal device. The first terminal device may decode the third data according to the first data, thereby acquiring the second data. Thereby, mutual communication between the first terminal device and the second terminal device is realized, and downlink resources are saved.
在第二方面一种可能的实现方式中,第三数据包包括第一控制字段和第二控制字段,第一控制字段包括第一完整性保护域和/或第一序列号,第二控制字段包括第二完整性保护域和/或第二序列号。第一终端设备确定第三控制字段,第三控制字段为第一控制字段或第二控制字段中的一个。In a possible implementation manner of the second aspect, the third data packet includes a first control field and a second control field, the first control field includes a first integrity protection field and/or a first sequence number, and the second control field Include a second integrity protection field and/or a second sequence number. The first terminal device determines a third control field, where the third control field is one of the first control field or the second control field.
在本申请实施例中,第一终端设备接收第三数据包,第三数据包包括第一控制字段和第二控制字段。第一终端设备从第一控制字段和第二控制字段中找到第一终端设备对应的控制字段,可以将该控制字段称为第三控制字段。第三控制字段是第一控制字段和第二控制字段中的一个。第一终端设备可以根据第三控制字段验证第三数据的完整性保护有效性,以及确定第三数据关联的第一数据。In this embodiment of the present application, the first terminal device receives a third data packet, and the third data packet includes a first control field and a second control field. The first terminal device finds a control field corresponding to the first terminal device from the first control field and the second control field, and the control field may be referred to as a third control field. The third control field is one of the first control field and the second control field. The first terminal device may verify the integrity protection validity of the third data according to the third control field, and determine the first data associated with the third data.
在第二方面一种可能的实现方式中,第一终端设备确定第三控制字段包括:第一终端设备确定第三序列号,第三序列号为第一序列号或第二序列号中的一个。第一终端设备根据第三序列号确定第一数据。In a possible implementation manner of the second aspect, the first terminal device determining the third control field includes: the first terminal device determining a third serial number, where the third serial number is one of the first serial number or the second serial number . The first terminal device determines the first data according to the third serial number.
在本申请实施例中,第一序列号和第二序列号中的一个是第一终端设备向接入网设备发送的第一数据包中的序列号,第一序列号和第二序列号中的另一个是第二终端设备向接入网设备发送的第二数据包中的序列号。接入网设备向第一终端设备发送的第三数据包中包括第一序列号和第二序列号。第一终端设备在第一序列号和第二序列号中识别哪个序列号是第一终端设备的,从而根据第三序列号确定第三数据关联的第一数据。进而根据第一数据解码第三数据生成第二数据。In this embodiment of the present application, one of the first sequence number and the second sequence number is the sequence number in the first data packet sent by the first terminal device to the access network device, and the first sequence number and the second sequence number are The other is the sequence number in the second data packet sent by the second terminal device to the access network device. The third data packet sent by the access network device to the first terminal device includes the first sequence number and the second sequence number. The first terminal device identifies which serial number belongs to the first terminal device among the first serial number and the second serial number, so as to determine the first data associated with the third data according to the third serial number. Further, the third data is decoded according to the first data to generate the second data.
在第二方面一种可能的实现方式中,第一终端设备确定第三控制字段包括:第一终端设备确定第三完整性保护域,第三完整性保护域为第一完整性保护域或第二完整性保护域。第一终端设备根据第三完整性保护域验证第三数据的完整性保护有效性。In a possible implementation manner of the second aspect, the first terminal device determining the third control field includes: the first terminal device determining a third integrity protection domain, where the third integrity protection domain is the first integrity protection domain or the third integrity protection domain. Two integrity protection domains. The first terminal device verifies the integrity protection validity of the third data according to the third integrity protection domain.
在本申请实施例中,第一完整性保护域和第二完整性保护域中的一个是接入网设备根据第一终端设备的密钥和第三数据生成的。第一完整性保护域和第二完整性保护域中的另一个是接入网设备根据第二终端设备的密钥和第三数据生成的。接入网设备向第一终端设备发送的第三数据包中包括第一完整性保护域和第二完整性保护域。第一终端设备在第一完整性保护域和第二完整性保护域中识别哪个完整性保护域是第一终端设备的,从而根据第三完整性保护域验证第三数据的完整性保护有效性。In this embodiment of the present application, one of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the first terminal device and the third data. The other of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the second terminal device and the third data. The third data packet sent by the access network device to the first terminal device includes the first integrity protection domain and the second integrity protection domain. The first terminal device identifies which integrity protection domain belongs to the first terminal device in the first integrity protection domain and the second integrity protection domain, so as to verify the integrity protection validity of the third data according to the third integrity protection domain .
在第二方面一种可能的实现方式中,第一终端设备接收网络设备发送的指示信息,指示信息用于指示第三控制字段。网络设备可以通过公共传输通道的参数发送指示信息。第一终端设备接收公共传输通道的参数,在公共传输通道的参数中获取指示信息。In a possible implementation manner of the second aspect, the first terminal device receives indication information sent by the network device, where the indication information is used to indicate the third control field. The network device can send the indication information through the parameters of the common transmission channel. The first terminal device receives the parameters of the public transmission channel, and obtains the indication information from the parameters of the public transmission channel.
在本申请实施例中,第一终端设备接收指示信息,指示信息用于指示第三控制字段,第一终端设备可以根据指示信息确定第三控制字段。从而,第一终端设备根据指示信息确定第一控制字段和第二控制字段中哪个控制字段是第一终端设备对应的控制字段。In this embodiment of the present application, the first terminal device receives the indication information, where the indication information is used to indicate the third control field, and the first terminal device may determine the third control field according to the indication information. Therefore, the first terminal device determines, according to the indication information, which control field in the first control field and the second control field is the control field corresponding to the first terminal device.
在第二方面一种可能的实现方式中,第一终端设备接收网络设备发送的公共传输通道的参数。第一终端设备接收第三数据包包括:第一终端设备根据公共传输通道的参数在公共传输通道上接收第三数据包。In a possible implementation manner of the second aspect, the first terminal device receives the parameters of the common transmission channel sent by the network device. The receiving of the third data packet by the first terminal device includes: the first terminal device receiving the third data packet on the common transmission channel according to the parameters of the common transmission channel.
本申请实施例中,网络设备通过公共传输通道发送第三数据包,第一终端设备从公共传输通道接收第三数据包。由此,只通过一个无线承载实现第一终端设备和其他终端设备 的互相通信,从而节省下行资源。In this embodiment of the present application, the network device sends the third data packet through the common transmission channel, and the first terminal device receives the third data packet from the common transmission channel. Therefore, only one radio bearer is used to implement mutual communication between the first terminal device and other terminal devices, thereby saving downlink resources.
在第二方面一种可能的实现方式中,公共传输通道的参数包括以下信息中的一个或多个:In a possible implementation manner of the second aspect, the parameters of the common transmission channel include one or more of the following information:
公共传输通道配置信息,公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个,公共传输通道配置信息用于第一终端设备进行公共传输通道配置。无线网络临时标识,无线网络临时标识包括组无线网络临时标识、公共无线网络临时标识或配对无线网络临时标识中的一个或多个,用于第一终端设备进行在公共传输通道上的数据接收。部分带宽信息,包括部分带宽ID、频率位置等信息,用于第一终端设备进行在公共传输通道上的数据接收。第一数据包的上行数据通道信息,第一数据包关联的上行Qos flow ID、第一数据包关联的上行逻辑信道ID,或者第一数据包关联的上行DRB ID中的一个或多个。指示信息,指示信息用于指示第一终端设备对应控制字段,控制字段包括序列号和/或完整性保护域。Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used by the first terminal device for public Transmission channel configuration. The wireless network temporary identification, which includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, is used for the first terminal device to receive data on the public transmission channel. The partial bandwidth information, including partial bandwidth ID, frequency location and other information, is used for the first terminal device to receive data on the public transmission channel. The upstream data channel information of the first data packet, the associated upstream QoS flow ID of the first data packet, the upstream logical channel ID associated with the first data packet, or one or more of the associated upstream DRB IDs of the first data packet. Indication information, the indication information is used to indicate that the first terminal device corresponds to a control field, and the control field includes a serial number and/or an integrity protection field.
本申请实施例中,第一终端设备接收网络设备发送的公共传输通道参数,公共传输通道参数用于第一终端设备在公共传输通道上接收第三数据包,并从第三数据包中获取对应的完整性保护域、序列号等信息,从而第一终端设备确定第三数据关联的第一数据。第一终端设备可以根据第一数据解码第三数据获取第二数据。In this embodiment of the present application, the first terminal device receives the public transmission channel parameters sent by the network device, and the public transmission channel parameters are used by the first terminal device to receive the third data packet on the public transmission channel, and obtain the corresponding data packet from the third data packet. information such as the integrity protection domain, serial number, etc., so that the first terminal device determines the first data associated with the third data. The first terminal device may decode the third data according to the first data to obtain the second data.
第三方面,提供了一种通信装置,该通信装置可以为网络设备,包括:收发模块,用于接收来自第一终端设备的第一数据包和来自第二终端设备的第二数据包,第一数据包包括第一数据,第二数据包包括第二数据。第一终端设备和第二终端设备在发送第一数据之前,协议栈的各层对第一数据进行相应的处理。例如,第一数据依次经过SDAP层、PDCP层、RLC层和MAC层,分别在各层添加相应的包头。其中,SDAP层和RLC层有不添加包头的传输方式。处理模块,用于对第一数据和第二数据编码生成第三数据。收发模块,用于向第一终端设备和/或第二终端设备发送第三数据。编码方式可以包括异或运算,也就是对第一数据和第二数据进行异或生成第三数据。In a third aspect, a communication apparatus is provided, which may be a network device, including: a transceiver module for receiving a first data packet from a first terminal device and a second data packet from a second terminal device, the first A data packet includes first data, and a second data packet includes second data. Before the first terminal device and the second terminal device send the first data, each layer of the protocol stack performs corresponding processing on the first data. For example, the first data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding packet headers are added to each layer respectively. Among them, the SDAP layer and the RLC layer have a transmission mode that does not add packet headers. The processing module is used for encoding the first data and the second data to generate the third data. A transceiver module, configured to send third data to the first terminal device and/or the second terminal device. The encoding manner may include an exclusive OR operation, that is, performing an exclusive OR on the first data and the second data to generate the third data.
本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码形成第三数据,并向第一终端设备和/或第二终端设备发送编码形成的第三数据,实现第一终端设备和第二终端设备之间的相互通信,节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data, The encoded third data is sent to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device and save downlink resources.
在第三方面的一种可能的实现方式中,第一数据包包括第一包头,第二数据包包括第二包头,第一包头包括第一序列号,第二包头包括第二序列号。通过第三数据包发送第三数据,第三数据包包括第一序列号和第二序列号。第一序列号和第二序列号可以是PDCP包头中的序号。In a possible implementation manner of the third aspect, the first data packet includes a first packet header, the second data packet includes a second packet header, the first packet header includes a first sequence number, and the second packet header includes a second sequence number. The third data is sent through a third data packet, and the third data packet includes the first sequence number and the second sequence number. The first sequence number and the second sequence number may be sequence numbers in the PDCP packet header.
本申请实施例中,通过在第三数据包的包头中添加第一序列号和第二序列号,第一终端设备在接收到第三数据包时,根据第三数据包包头中的第一序列号能够确定第三数据关联的上行数据为第一数据。从而,第一终端设备将第一数据和第三数据进行编码获取第二数据。同样,第二终端设备在接收到第三数据包时,根据第三数据包包头中的第二序列号能够确定第三数据关联的上行数据为第二数据。从而,第二终端设备将第二数据和第三数据进行编码获取第一数据。In this embodiment of the present application, by adding the first sequence number and the second sequence number to the header of the third data packet, when the first terminal device receives the third data packet, The number can determine that the uplink data associated with the third data is the first data. Thus, the first terminal device encodes the first data and the third data to obtain the second data. Likewise, when the second terminal device receives the third data packet, it can determine that the uplink data associated with the third data is the second data according to the second sequence number in the header of the third data packet. Thus, the second terminal device encodes the second data and the third data to obtain the first data.
在第三方面一种可能的实现方式中,收发模块用于通过第三数据包发送第三数据,第三数据包包括第一终端设备的第一完整性保护域和第二终端设备的第二完整性保护域。第一完整性保护域是网络设备根据第一终端设备的密钥和第三数据包的内容生成的比特序列。同样的,第二完整性保护域是网络设备根据第二终端设备的密钥和第三数据包的内容生成的比特序列。In a possible implementation manner of the third aspect, the transceiver module is configured to send third data through a third data packet, where the third data packet includes the first integrity protection domain of the first terminal device and the second data packet of the second terminal device. Integrity Protection Domain. The first integrity protection domain is a bit sequence generated by the network device according to the key of the first terminal device and the content of the third data packet. Likewise, the second integrity protection domain is a bit sequence generated by the network device according to the key of the second terminal device and the content of the third data packet.
本申请实施例中,第一终端设备可以根据第一完整性保护域和第一终端设备的密钥验证第三数据包是否被修改,第二终端设备可以根据第二完整性保护域和第二终端设备的密钥验证第三数据包是否被修改,从而提升数据传输可靠性。In this embodiment of the present application, the first terminal device may verify whether the third data packet is modified according to the first integrity protection domain and the key of the first terminal device, and the second terminal device may verify whether the third data packet is modified according to the second integrity protection domain and the second The key of the terminal device verifies whether the third data packet is modified, thereby improving the reliability of data transmission.
在第三方面一种可能的实现方式中,收发模块用于通过公共传输通道发送第三数据。公共传输通道可以理解为公共数据无线承载,公共数据无线承载是终端设备到接入网设备的空口之间的一段承载,用于承载用户面数据。网络设备通过公共数据无线承载向第一终端设备和/或第二终端设备发送第三数据。In a possible implementation manner of the third aspect, the transceiver module is configured to send the third data through a common transmission channel. The common transmission channel can be understood as a public data radio bearer, and the public data radio bearer is a segment of the bearer between the terminal device and the air interface of the access network device, and is used to carry user plane data. The network device sends the third data to the first terminal device and/or the second terminal device through the common data radio bearer.
本申请实施例中,网络设备可以只通过一个无线承载向两个终端设备发送第三数据,从而实现第一终端设备和第二终端设备的互相通信,节省下行资源。In the embodiment of the present application, the network device may send the third data to the two terminal devices through only one radio bearer, thereby realizing the mutual communication between the first terminal device and the second terminal device and saving downlink resources.
在第三方面一种可能的实现方式中,处理模块用于将第一服务质量流和第二服务质量流映射到公共传输通道,其中,第一数据包属于第一服务质量流,第二数据包属于第二服务质量流。In a possible implementation manner of the third aspect, the processing module is configured to map the first quality of service flow and the second quality of service flow to a common transmission channel, wherein the first data packet belongs to the first quality of service flow, and the second data packet belongs to the first quality of service flow. The packet belongs to the second quality of service flow.
本申请实施例中,网络设备将第一服务质量流和第二服务质量中收到的上行数据进行编码后通过公共传输通道发送给第一终端设备和/或第二终端设备。第一终端设备和/或第二终端设备根据这个映射关系,可以知道该公共传输通道上接收的是哪些上行服务质量流的编码后的数据。In this embodiment of the present application, the network device encodes the first quality of service stream and the uplink data received in the second quality of service and sends them to the first terminal device and/or the second terminal device through a common transmission channel. According to the mapping relationship, the first terminal device and/or the second terminal device can know which coded data of upstream quality of service streams are received on the common transmission channel.
在第三方面一种可能的实现方式中,收发模块用于向第一终端设备和/或第二终端设备发送公共传输通道的参数,公共传输通道的参数包括以下信息中的一个或多个:In a possible implementation manner of the third aspect, the transceiver module is configured to send parameters of the common transmission channel to the first terminal device and/or the second terminal device, where the parameters of the common transmission channel include one or more of the following information:
公共传输通道配置信息,公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个,公共传输通道配置信息用于第一终端设备和/或第二终端设备进行公共传输通道配置。无线网络临时标识,无线网络临时标识包括组无线网络临时标识、公共无线网络临时标识或配对无线网络临时标识中的一个或多个,用于第一终端设备和/或第二终端设备进行在公共传输通道上的数据接收。部分带宽信息,包括部分带宽ID、频率位置等信息,用于第一终端设备和/或第二终端设备进行在公共传输通道上的数据接收。第一数据包和/或第二数据包的上行数据通道信息,第一数据包和/或第二数据包关联的上行Qos flow ID、第一数据包和/或第二数据包关联的上行逻辑信道ID,或者第一数据包和/或第二数据包关联的上行DRB ID中的一个或多个。指示信息,指示信息用于指示第一终端设备对应第一控制字段和/或用于指示第二终端设备对应第二控制字段,第一控制字段包括第一序列号和/或第一完整性保护域,第二控制字段包括第二序列号和/或第二完整性保护域。Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used for the first terminal device and/or Or the second terminal device performs common transmission channel configuration. Wireless network temporary identification, the wireless network temporary identification includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, which is used for the first terminal device and/or the second terminal device to perform in the public network. Data reception on the transmission channel. The partial bandwidth information, including partial bandwidth ID, frequency location and other information, is used for the first terminal device and/or the second terminal device to receive data on the common transmission channel. The upstream data channel information of the first data packet and/or the second data packet, the upstream QoS flow ID associated with the first data packet and/or the second data packet, and the upstream logic associated with the first data packet and/or the second data packet Channel ID, or one or more of the uplink DRB IDs associated with the first data packet and/or the second data packet. Indication information, the indication information is used to instruct the first terminal device to correspond to the first control field and/or to instruct the second terminal device to correspond to the second control field, where the first control field includes the first serial number and/or the first integrity protection field, the second control field includes the second sequence number and/or the second integrity protection field.
本申请实施例中,网络设备向第一终端设备和/或第二终端设备发送公共传输通道参数,公共传输通道参数用于第一终端设备和/或第二终端设备在公共传输通道上接收第三数据包,并从第三数据包中获取对应的完整性保护域、序列号等信息,从而第一终端设备确定 第三数据关联的第一数据,第二终端设备确定第三数据关联的第二数据。第一终端设备可以根据第一数据解码第三数据获取第二数据,第二终端设备可以根据第二数据解码第三数据获取第一数据。In this embodiment of the present application, the network device sends the public transmission channel parameters to the first terminal device and/or the second terminal device, and the public transmission channel parameters are used by the first terminal device and/or the second terminal device to receive the first terminal device and/or the second terminal device on the public transmission channel. three data packets, and obtain the corresponding integrity protection domain, serial number and other information from the third data packet, so that the first terminal device determines the first data associated with the third data, and the second terminal device determines the third data associated with the third data. Two data. The first terminal device may decode the third data according to the first data to obtain the second data, and the second terminal device may decode the third data according to the second data to obtain the first data.
在第三方面一种可能的实现方式中,收发模块用于向核心网设备发送第一数据和第二数据,收发模块用于接收核心网设备发送的第四数据包和第五数据包,第四数据包包括第一数据,第五数据包包括第二数据。对第四数据包中的第一数据和第五数据包中的第二数据编码形成第三数据。In a possible implementation manner of the third aspect, the transceiver module is configured to send the first data and the second data to the core network device, the transceiver module is configured to receive the fourth data packet and the fifth data packet sent by the core network device, and the first data packet and the fifth data packet are sent by the core network device. The four data packets include the first data, and the fifth data packet includes the second data. The third data is formed by encoding the first data in the fourth data packet and the second data in the fifth data packet.
在本申请实施例中,网络设备可以为接入网设备,接入网设备在接收到第一数据和第二数据后,进一步将第一数据和第二数据发送给核心网设备,核心网设备再发送给接入网设备,能够增强第一终端设备和第二终端设备之间的通信安全。In this embodiment of the present application, the network device may be an access network device, and after receiving the first data and the second data, the access network device further sends the first data and the second data to the core network device, and the core network device further sends the first data and the second data to the core network device. and then send it to the access network device, which can enhance the communication security between the first terminal device and the second terminal device.
在第三方面一种可能的实现方式中,处理模块用于确定第四数据包中的数据与第一数据包中的数据相同,处理模块用于确定第五数据包中的数据与第二数据包中的数据相同。In a possible implementation manner of the third aspect, the processing module is configured to determine that the data in the fourth data packet is the same as the data in the first data packet, and the processing module is configured to determine that the data in the fifth data packet is the same as the second data The data in the package is the same.
在本申请实施例中,网络设备可以为接入网设备,接入网设备收到第四数据包并确定第四数据包中的数据与第一数据相同,可以认为核心网设备所发送的第四数据包中的数据就是第一终端设备发送的第一数据。接入网设备收到第五数据包并确定第五数据包中的数据与第二数据相同,可以认为核心网设备所发送的第五数据包中的数据就是第二终端设备发送的第二数据。从而确定需要进行编码的数据。In this embodiment of the present application, the network device may be an access network device. The access network device receives the fourth data packet and determines that the data in the fourth data packet is the same as the first data. It can be considered that the first data sent by the core network device The data in the four data packets is the first data sent by the first terminal device. The access network device receives the fifth data packet and determines that the data in the fifth data packet is the same as the second data. It can be considered that the data in the fifth data packet sent by the core network device is the second data sent by the second terminal device. . This determines the data that needs to be encoded.
在第三方面一种可能的实现方式中,处理模块用于将第四数据包与从第一终端设备接收的数据包比较,和/或处理模块用于将第五数据包与从第二终端设备接收的数据包比较。通过将第四数据包与从第一终端设备接收的数据包比较,确定第四数据包中的数据与第一数据相同。通过将第五数据包与从第二终端设备接收的数据包比较,确定第五数据包中的数据与第二数据相同。In a possible implementation manner of the third aspect, the processing module is configured to compare the fourth data packet with the data packet received from the first terminal device, and/or the processing module is configured to compare the fifth data packet with the data packet received from the second terminal Comparison of packets received by the device. By comparing the fourth data packet with the data packet received from the first terminal device, it is determined that the data in the fourth data packet is the same as the first data. By comparing the fifth data packet with the data packet received from the second terminal device, it is determined that the data in the fifth data packet is the same as the second data.
在本申请实施例中,网络设备可以为接入网设备,由于第四数据包中的原始数据是由第一终端设备发送给第二终端设备的数据,接入网设备会从第二终端设备的数据通道接收第四数据包。因此,接入网设备从第二终端设备的数据通道接收到第四数据包后,能够获知第四数据包中的数据来自于第一终端设备,接入网设备只需要将第四数据包与从第一终端设备接收到的数据包比较,就能够确认第四数据包中的数据与哪部分数据相同。同样的,接入网设备只需要将第五数据包中的数据与从第二终端设备接收到的数据包比较。In this embodiment of the present application, the network device may be an access network device. Since the original data in the fourth data packet is data sent by the first terminal device to the second terminal device, the access network device will send the data from the second terminal device to the second terminal device. The data channel receives the fourth packet. Therefore, after receiving the fourth data packet from the data channel of the second terminal device, the access network device can know that the data in the fourth data packet comes from the first terminal device, and the access network device only needs to associate the fourth data packet with the first terminal device. By comparing the data packets received from the first terminal device, it can be confirmed which part of the data in the fourth data packet is the same. Likewise, the access network device only needs to compare the data in the fifth data packet with the data packet received from the second terminal device.
在第三方面一种可能的实现方式中,第四数据包包括第一数据包的第一序列号,处理模块用于根据第一序列号确定第四数据包中的数据与第一数据包中的数据相同。和/或,第五数据包包括第二数据包的第二序列号,处理模块用于根据第二序列号确定第五数据包中的数据与第二数据包中的数据相同。In a possible implementation manner of the third aspect, the fourth data packet includes a first sequence number of the first data packet, and the processing module is configured to determine, according to the first sequence number, between the data in the fourth data packet and the data in the first data packet data are the same. And/or, the fifth data packet includes a second sequence number of the second data packet, and the processing module is configured to determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
在本申请实施例中,网络设备可以为接入网设备,接入网设备在向核心网设备发送第一数据时,会将第一数据包中的第一序列号也发送给核心网设备,核心网设备接收到第一数据以及第一数据关联的第一序列号。核心网设备在通过第四数据包将第一数据发送给接入网设备时,会将第一序列号也通过第四数据包发送给接入网设备。接入网设备根据第一序列号可以确定第四数据包中的数据与第一数据包中的数据相同。同样的,接入网设备在向核心网设备发送第二数据时,会将第二数据包中的第二序列号也发送给核心网设备,核 心网设备接收到第二数据以及第二数据关联的第二序列号。核心网设备在通过第五数据包将第二数据发送给接入网设备时,会将第二序列号也通过第五数据包发送给接入网设备。接入网设备根据第二序列号可以确定第五数据包中的数据与第二数据包中的数据相同。In this embodiment of the present application, the network device may be an access network device, and when sending the first data to the core network device, the access network device will also send the first sequence number in the first data packet to the core network device, The core network device receives the first data and the first serial number associated with the first data. When sending the first data to the access network device through the fourth data packet, the core network device also sends the first sequence number to the access network device through the fourth data packet. The access network device may determine, according to the first sequence number, that the data in the fourth data packet is the same as the data in the first data packet. Similarly, when the access network device sends the second data to the core network device, it will also send the second sequence number in the second data packet to the core network device, and the core network device receives the second data and associates the second data with it. the second serial number. When sending the second data to the access network device through the fifth data packet, the core network device also sends the second sequence number to the access network device through the fifth data packet. The access network device may determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
在第三方面一种可能的实现方式中,第一数据包的目标地址为第二终端设备,第二数据包的目标地址为第一终端设备。第一终端设备和第二终端设备在同一小区或第一终端设备和第二终端设备的服务网络设备为同一网络设备。这里的目标地址可以为互联网协议地址(IP地址)、媒体接入控制地址(MAC地址)或互联网协议地址与端口号中的一种或多种。服务网络设备可以为接入网设备,第一终端设备和第二终端设备通过同一个接入网设备进行通信。In a possible implementation manner of the third aspect, the destination address of the first data packet is the second terminal device, and the destination address of the second data packet is the first terminal device. The first terminal device and the second terminal device are in the same cell or the service network devices of the first terminal device and the second terminal device are the same network device. The target address here may be one or more of an internet protocol address (IP address), a media access control address (MAC address), or an internet protocol address and a port number. The service network device may be an access network device, and the first terminal device and the second terminal device communicate through the same access network device.
在本申请实施例中,第一终端设备和第二终端设备通过通过同一个接入网设备互相进行通信,第一终端设备向接入网设备发送第一数据包,第一数据包的目标地址为第二终端设备。第二终端设备向同一个接入网设备发送第二数据包,第二数据包的目标地址为第一终端设备。在第一终端设备和第二终端设备互相通信的场景下,网络设备对来自第一终端设备的第一数据和来自第二终端设备的第二数据编码生成第三数据,并将第三数据发送给第一终端设备和/或第二终端设备。只需要通过一个数据传输通道就能实现第一终端设备和第二终端设备之间的信息交互,节省下行资源开销。In this embodiment of the present application, the first terminal device and the second terminal device communicate with each other through the same access network device, and the first terminal device sends a first data packet to the access network device, the destination address of the first data packet for the second terminal device. The second terminal device sends a second data packet to the same access network device, and the destination address of the second data packet is the first terminal device. In a scenario where the first terminal device and the second terminal device communicate with each other, the network device encodes the first data from the first terminal device and the second data from the second terminal device to generate third data, and sends the third data to the first terminal device and/or the second terminal device. Information exchange between the first terminal device and the second terminal device can be realized only through one data transmission channel, thereby saving downlink resource overhead.
在第三方面一种可能的实现方式中,处理模块用于检测第一终端设备的服务小区和/或服务网络设备,处理模块用于检测第二终端设备的服务小区和/或服务网络设备。处理模块用于确定第一终端设备的服务小区和第二终端设备的服务小区为同一个服务小区,和/或处理模块用于确定第一终端设备的服务网络设备和第二终端设备的服务网络设备为同一个网络设备。In a possible implementation manner of the third aspect, the processing module is configured to detect the serving cell and/or the serving network device of the first terminal device, and the processing module is configured to detect the serving cell and/or the serving network device of the second terminal device. The processing module is configured to determine that the serving cell of the first terminal device and the serving cell of the second terminal device are the same serving cell, and/or the processing module is configured to determine the serving network device of the first terminal device and the serving network of the second terminal device The device is the same network device.
在本申请实施例中,可以将第一终端设备和第二终端设备称之为配对的终端设备,当第一终端设备发送的第一数据包的目标地址为第二终端设备,第二终端设备发送的第二数据包的目标地址为第一终端设备,且第一终端设备和第二终端设备在同一小区或连接于同一服务网络设备,第一终端设备和第二终端设备即满足配对条件。可以由接入网设备或核心网设备进行配对检测。当检测第一终端设备和第二终端设备满足配对条件,可以确定第一终端设备的第一数据包和第二终端设备的第二数据包作为一对编码对象。In this embodiment of the present application, the first terminal device and the second terminal device may be referred to as paired terminal devices. When the destination address of the first data packet sent by the first terminal device is the second terminal device, the second terminal device If the destination address of the sent second data packet is the first terminal device, and the first terminal device and the second terminal device are in the same cell or connected to the same service network device, the first terminal device and the second terminal device satisfy the pairing condition. Pairing detection can be performed by access network equipment or core network equipment. When it is detected that the first terminal device and the second terminal device meet the pairing condition, the first data packet of the first terminal device and the second data packet of the second terminal device can be determined as a pair of encoding objects.
第四方面,提供了一种通信装置,该通信装置可以是第一终端设备,包括:收发模块,用于发送第一数据包,第一数据包包括第一数据。收发模块用于接收来自网络设备的第三数据包,第三数据包包括第三数据。处理模块用于根据第一数据解码第三数据,生成第二数据。处理模块用于根据第一数据解码第三数据的解码可以为:处理模块用于将第一数据和第三数据进行异或运算生成第二数据。In a fourth aspect, a communication apparatus is provided, the communication apparatus may be a first terminal device, and includes: a transceiver module for sending a first data packet, where the first data packet includes first data. The transceiver module is configured to receive a third data packet from the network device, where the third data packet includes third data. The processing module is used for decoding the third data according to the first data to generate the second data. The decoding used by the processing module to decode the third data according to the first data may be: the processing module is used to perform an exclusive OR operation on the first data and the third data to generate the second data.
在本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码形成第三数据,并向第一终端设备和/或第二终端设备发送编码形成的第三数据。第一终端设备可以根据第一数据解码第三数据,从而获取第二数据。由此实现第一终端设备和第二终端设备之间的相互通信,节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data , and send the encoded third data to the first terminal device and/or the second terminal device. The first terminal device may decode the third data according to the first data, thereby acquiring the second data. Thereby, mutual communication between the first terminal device and the second terminal device is realized, and downlink resources are saved.
在第四方面一种可能的实现方式中,第三数据包包括第一控制字段和第二控制字段, 第一控制字段包括第一完整性保护域和/或第一序列号,第二控制字段包括第二完整性保护域和/或第二序列号。处理模块用于确定第三控制字段,第三控制字段为第一控制字段或第二控制字段中的一个。In a possible implementation manner of the fourth aspect, the third data packet includes a first control field and a second control field, the first control field includes a first integrity protection field and/or a first sequence number, and the second control field Include a second integrity protection field and/or a second sequence number. The processing module is configured to determine a third control field, where the third control field is one of the first control field or the second control field.
在本申请实施例中,第一终端设备接收第三数据包,第三数据包包括第一控制字段和第二控制字段。第一终端设备从第一控制字段和第二控制字段中找到第一终端设备对应的控制字段,可以将该控制字段称为第三控制字段。第三控制字段是第一控制字段和第二控制字段中的一个。第一终端设备可以根据第三控制字段验证第三数据的完整性保护有效性,以及确定第三数据关联的第一数据。In this embodiment of the present application, the first terminal device receives a third data packet, and the third data packet includes a first control field and a second control field. The first terminal device finds a control field corresponding to the first terminal device from the first control field and the second control field, and the control field may be referred to as a third control field. The third control field is one of the first control field and the second control field. The first terminal device may verify the integrity protection validity of the third data according to the third control field, and determine the first data associated with the third data.
在第四方面一种可能的实现方式中,处理模块用于确定第三控制字段包括:处理模块用于确定第三序列号,第三序列号为第一序列号或第二序列号中的一个。处理模块用于根据第三序列号确定第一数据。In a possible implementation manner of the fourth aspect, the processing module configured to determine the third control field includes: the processing module is configured to determine a third serial number, where the third serial number is one of the first serial number or the second serial number . The processing module is used for determining the first data according to the third serial number.
在本申请实施例中,第一序列号和第二序列号中的一个是第一终端设备向接入网设备发送的第一数据包中的序列号,第一序列号和第二序列号中的另一个是第二终端设备向接入网设备发送的第二数据包中的序列号。接入网设备向第一终端设备发送的第三数据包中包括第一序列号和第二序列号。第一终端设备在第一序列号和第二序列号中识别哪个序列号是第一终端设备的,从而根据第三序列号确定第三数据关联的第一数据。进而根据第一数据解码第三数据生成第二数据。In this embodiment of the present application, one of the first sequence number and the second sequence number is the sequence number in the first data packet sent by the first terminal device to the access network device, and the first sequence number and the second sequence number are The other is the sequence number in the second data packet sent by the second terminal device to the access network device. The third data packet sent by the access network device to the first terminal device includes the first sequence number and the second sequence number. The first terminal device identifies which serial number belongs to the first terminal device among the first serial number and the second serial number, so as to determine the first data associated with the third data according to the third serial number. Further, the third data is decoded according to the first data to generate the second data.
在第四方面一种可能的实现方式中,处理模块用于确定第三控制字段包括:处理模块用于确定第三完整性保护域,第三完整性保护域为第一完整性保护域或第二完整性保护域。第一终端设备根据第三完整性保护域验证第三数据的完整性保护有效性。In a possible implementation manner of the fourth aspect, the processing module configured to determine the third control field includes: the processing module is configured to determine a third integrity protection domain, where the third integrity protection domain is the first integrity protection domain or the third integrity protection domain. Two integrity protection domains. The first terminal device verifies the integrity protection validity of the third data according to the third integrity protection domain.
在本申请实施例中,第一完整性保护域和第二完整性保护域中的一个是接入网设备根据第一终端设备的密钥和第三数据生成的。第一完整性保护域和第二完整性保护域中的另一个是接入网设备根据第二终端设备的密钥和第三数据生成的。接入网设备向第一终端设备发送的第三数据包中包括第一完整性保护域和第二完整性保护域。第一终端设备在第一完整性保护域和第二完整性保护域中识别哪个完整性保护域是第一终端设备的,从而根据第三完整性保护域验证第三数据的完整性保护有效性。In this embodiment of the present application, one of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the first terminal device and the third data. The other of the first integrity protection domain and the second integrity protection domain is generated by the access network device according to the key of the second terminal device and the third data. The third data packet sent by the access network device to the first terminal device includes the first integrity protection domain and the second integrity protection domain. The first terminal device identifies which integrity protection domain belongs to the first terminal device in the first integrity protection domain and the second integrity protection domain, so as to verify the integrity protection validity of the third data according to the third integrity protection domain .
在第四方面一种可能的实现方式中,收发模块用于接收网络设备发送的指示信息,指示信息用于指示第三控制字段。网络设备可以通过公共传输通道的参数发送指示信息。第一终端设备接收公共传输通道的参数,在公共传输通道的参数中获取指示信息。In a possible implementation manner of the fourth aspect, the transceiver module is configured to receive indication information sent by the network device, where the indication information is used to indicate the third control field. The network device can send the indication information through the parameters of the common transmission channel. The first terminal device receives the parameters of the public transmission channel, and obtains the indication information from the parameters of the public transmission channel.
在本申请实施例中,第一终端设备接收指示信息,指示信息用于指示第三控制字段,第一终端设备可以根据第一指示信息确定第三控制字段。从而,第一终端设备根据指示信息确定第一控制字段和第二控制字段中哪个控制字段是第一终端设备对应的控制字段。In this embodiment of the present application, the first terminal device receives the indication information, where the indication information is used to indicate the third control field, and the first terminal device may determine the third control field according to the first indication information. Therefore, the first terminal device determines, according to the indication information, which control field in the first control field and the second control field is the control field corresponding to the first terminal device.
在第四方面一种可能的实现方式中,收发模块用于接收网络设备发送的公共传输通道的参数。收发模块用于接收第三数据包包括:收发模块用于根据公共传输通道的参数在公共传输通道上接收第三数据包。In a possible implementation manner of the fourth aspect, the transceiver module is configured to receive parameters of the common transmission channel sent by the network device. The transceiver module configured to receive the third data packet includes: the transceiver module is configured to receive the third data packet on the common transmission channel according to the parameters of the common transmission channel.
本申请实施例中,网络设备通过公共传输通道发送第三数据包,第一终端设备从公共传输通道接收第三数据包。由此,只通过一个无线承载实现第一终端设备和其他终端设备的互相通信,从而节省下行资源。In this embodiment of the present application, the network device sends the third data packet through the common transmission channel, and the first terminal device receives the third data packet from the common transmission channel. Therefore, only one radio bearer is used to implement mutual communication between the first terminal device and other terminal devices, thereby saving downlink resources.
在第四方面一种可能的实现方式中,公共传输通道的参数包括以下信息中的一个或多个:In a possible implementation manner of the fourth aspect, the parameters of the common transmission channel include one or more of the following information:
公共传输通道配置信息,公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个,公共传输通道配置信息用于第一终端设备进行公共传输通道配置。无线网络临时标识,无线网络临时标识包括组无线网络临时标识、公共无线网络临时标识或配对无线网络临时标识中的一个或多个,用于第一终端设备进行在公共传输通道上的数据接收。部分带宽信息,包括部分带宽ID、频率位置等信息,用于第一终端设备进行在公共传输通道上的数据接收。第一数据包的上行数据通道信息,第一数据包关联的上行Qos flow ID、第一数据包关联的上行逻辑信道ID,或者第一数据包关联的上行DRB ID中的一个或多个。指示信息,指示信息用于指示第一终端设备对应控制字段,控制字段包括序列号和/或完整性保护域。Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter, and the common transmission channel configuration information is used by the first terminal device for public Transmission channel configuration. The wireless network temporary identification, which includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, is used for the first terminal device to receive data on the public transmission channel. The partial bandwidth information, including partial bandwidth ID, frequency location and other information, is used for the first terminal device to receive data on the public transmission channel. The upstream data channel information of the first data packet, the associated upstream QoS flow ID of the first data packet, the upstream logical channel ID associated with the first data packet, or one or more of the associated upstream DRB IDs of the first data packet. Indication information, the indication information is used to indicate that the first terminal device corresponds to a control field, and the control field includes a serial number and/or an integrity protection field.
本申请实施例中,第一终端设备接收网络设备发送的公共传输通道参数,公共传输通道参数用于第一终端设备在公共传输通道上接收第三数据包,并从第三数据包中获取对应的完整性保护域、序列号等信息,从而第一终端设备确定第三数据关联的第一数据。第一终端设备可以根据第一数据解码第三数据获取第二数据。In this embodiment of the present application, the first terminal device receives the public transmission channel parameters sent by the network device, and the public transmission channel parameters are used by the first terminal device to receive the third data packet on the public transmission channel, and obtain the corresponding data packet from the third data packet. information such as the integrity protection domain, serial number, etc., so that the first terminal device determines the first data associated with the third data. The first terminal device may decode the third data according to the first data to obtain the second data.
第五方面提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行实现第一方面的任一可能的实现方式中的方法。A fifth aspect provides a computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method of implementing any possible implementation of the first aspect.
第六方面提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行实现第二方面的任一可能的实现方式中的方法。A sixth aspect provides a computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method of implementing any possible implementation of the second aspect.
第七方面提供一种通信装置,所述通信装置包括存储器和处理器,所述存储器用于存储指令,所述处理器用于执行所述存储器存储的指令,并且对所述存储器中存储的指令的执行使得所述处理器执行第一方面的任一可能的实现方式中的方法。A seventh aspect provides a communication device, the communication device includes a memory and a processor, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory, and the processing of the instructions stored in the memory is Execution causes the processor to perform the method of any possible implementation of the first aspect.
第八方面提供一种通信装置,所述通信装置包括存储器和处理器,所述存储器用于存储指令,所述处理器用于执行所述存储器存储的指令,并且对所述存储器中存储的指令的执行使得所述处理器执行第二方面的任一可能的实现方式中的方法。An eighth aspect provides a communication apparatus, the communication apparatus includes a memory and a processor, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory, and the processing of the instructions stored in the memory is Execution causes the processor to perform the method of any possible implementation of the second aspect.
第九方面提供一种通信系统,包括第五方面所述的通信装置和第六方面所述的通信装置。A ninth aspect provides a communication system, including the communication device of the fifth aspect and the communication device of the sixth aspect.
第十方面提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第一方面的任一可能的实现方式中的方法。A tenth aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, when the computer program is run on a computer, the computer is made to perform any possible implementation of the first aspect above method in method.
第十一方面提供一种包含指令的计算机程序产品,所述计算机程序产品用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述第二方面的任一可能的实现方式中的方法。An eleventh aspect provides a computer program product comprising instructions, the computer program product is used to store a computer program, when the computer program is run on a computer, the computer is made to perform any possible implementation of the second aspect above. method in the implementation.
附图说明Description of drawings
图1是本申请实施例提供的一种网络设备和终端设备的协议栈结构的示意图;1 is a schematic diagram of a protocol stack structure of a network device and a terminal device provided by an embodiment of the present application;
图2为本申请实施例适用的一种网络架构示意图;FIG. 2 is a schematic diagram of a network architecture to which an embodiment of the present application is applicable;
图3是本申请实施例提供的一种通信方法的流程图;3 is a flowchart of a communication method provided by an embodiment of the present application;
图4是本申请第一实施例提供的一种通信方法的流程图;4 is a flowchart of a communication method provided by the first embodiment of the present application;
图5是本申请第二实施例提供的通信方法的流程图;5 is a flowchart of a communication method provided by a second embodiment of the present application;
图6是本申请实施例提供的通信装置的一种结构示意图;FIG. 6 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图7是本申请实施例提供的通信装置的又一种结构示意图;FIG. 7 is another schematic structural diagram of a communication device provided by an embodiment of the present application;
图8是本申请实施例提供的通信装置的又一种结构示意图;FIG. 8 is another schematic structural diagram of a communication device provided by an embodiment of the present application;
图9是本申请实施例提供的通信装置的又一种结构示意图。FIG. 9 is another schematic structural diagram of a communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
首先,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。First, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
1、终端设备:可以是能够接收网络设备调度和指示信息的无线终端设备,无线终端设备可以是指向用户提供语音和/或数据连通性的设备,或具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。终端设备可以经无线接入网(radio access network,RAN)与一个或多个核心网或者互联网进行通信,终端设备可以是移动终端设备,如移动电话(或称为“蜂窝”电话,手机(mobile phone))、计算机和数据卡,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(personal communication service,PCS)电话、无绳电话、会话发起协议(SIP)话机、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、平板电脑(Pad)、带无线收发功能的电脑等设备。无线终端设备也可以称为系统、订户单元(subscriber unit)、订户站(subscriber station),移动站(mobile station)、移动台(mobile station,MS)、远程站(remote station)、接入点(access point,AP)、远程终端设备(remote terminal)、接入终端设备(access terminal)、用户终端设备(user terminal)、用户代理(user agent)、用户站(subscriber station,SS)、用户端设备(customer premises equipment,CPE)、终端(terminal)、用户设备(user equipment,UE)、移动终端(mobile terminal,MT)等。终端设备也可以是可穿戴设备以及下一代通信系统,例如,5G通信系统中的终端设备或者未来演进的公共陆地移动网络(public land mobile network,PLMN)中的终端设备等。1. Terminal device: It can be a wireless terminal device that can receive scheduling and instruction information of network devices. The wireless terminal device can be a device that provides voice and/or data connectivity to users, or a handheld device with wireless connection function, or a connection other processing equipment to the wireless modem. Terminal equipment can communicate with one or more core networks or the Internet via a radio access network (RAN), and the terminal equipment can be a mobile terminal equipment, such as a mobile phone (or "cellular" phone, mobile phone (mobile phone), computer and data cards, for example, may be portable, pocket, hand-held, computer built-in or vehicle mounted mobile devices that exchange language and/or data with the radio access network. For example, personal communication service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), tablets Computer (Pad), computer with wireless transceiver function and other equipment. Wireless terminal equipment may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station (MS), a remote station, an access point ( access point (AP), remote terminal (remote terminal), access terminal (access terminal), user terminal (user terminal), user agent (user agent), subscriber station (SS), user terminal equipment (customer premises equipment, CPE), terminal (terminal), user equipment (user equipment, UE), mobile terminal (mobile terminal, MT), etc. The terminal device may also be a wearable device and a next-generation communication system, for example, a terminal device in a 5G communication system or a terminal device in a future evolved public land mobile network (PLMN).
2、网络设备:可以是无线网络中的设备,例如网络设备可以为将终端设备接入到无线网络的无线接入网(radio access network,RAN)节点(或设备),又可以称为基站。目前,一些RAN设备的举例为:5G通信系统中的新一代基站(generation Node B,gNodeB)、传输接收点(transmission reception point,TRP)、演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved NodeB,或home Node B,HNB)、基带单元(base band unit,BBU),或无线保真(wireless fidelity,Wi-Fi)接入点(access point,AP)等。另外,在一种网络结构中,网络设备可以包括集中单元(centralized unit,CU)节点、或分布单元(distributed unit,DU)节点、或包括CU节点和DU节点的RAN设备。此外,在其它可能的情况下,网络设备可以是其它为终端设备提供无线通信功能的装置。本申请的实施例对网络设备所采用的具体技术和具体设备形态不做限定。为方便描述,本申请实施例中,为终端设备提供无线通信功能的装置称为网络设备。2. Network device: It can be a device in a wireless network. For example, a network device can be a radio access network (RAN) node (or device) that connects a terminal device to a wireless network, also known as a base station. At present, some examples of RAN equipment are: generation Node B (gNodeB), transmission reception point (TRP), evolved Node B (evolved Node B, eNB), wireless network in the 5G communication system Controller (radio network controller, RNC), Node B (Node B, NB), base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved NodeB, Or home Node B, HNB), base band unit (base band unit, BBU), or wireless fidelity (wireless fidelity, Wi-Fi) access point (access point, AP), etc. In addition, in a network structure, the network device may include a centralized unit (centralized unit, CU) node, or a distributed unit (distributed unit, DU) node, or a RAN device including a CU node and a DU node. In addition, in other possible cases, the network device may be other devices that provide wireless communication functions for the terminal device. The embodiments of the present application do not limit the specific technology and specific device form adopted by the network device. For convenience of description, in this embodiment of the present application, a device that provides a wireless communication function for a terminal device is referred to as a network device.
3、协议栈结构3. Protocol stack structure
网络设备和终端设备具有一定的协议栈结构,以用于相互通信。图1是一种网络设备和终端设备的协议栈结构的示意图。图1中,虚线表示数据从网络设备发送到终端设备,可以理解,这只是示意性的,数据传输的方向也可以是从终端设备到网络设备。如图1所示,例如控制面协议栈结构可以包括无线资源控制(radio resource control,RRC)层、业务数据适配(service data adaptation protocol,SDAP)层、分组数据汇聚层协议(Packet Data Convergence Protocol,PDCP)层、无线链路控制(radio link control,RLC)层、媒体接入控制(media Access Link control,MAC)和物理层等。其中,物理层位于最低层(层一),MAC层、RLC层、PDCP层以及SDAP层属于第二层(层二),RRC层属于第三层(层三)。The network device and the terminal device have a certain protocol stack structure for mutual communication. FIG. 1 is a schematic diagram of a protocol stack structure of a network device and a terminal device. In FIG. 1 , the dotted line indicates that data is sent from the network device to the terminal device. It can be understood that this is only schematic, and the direction of data transmission may also be from the terminal device to the network device. As shown in Figure 1, for example, the control plane protocol stack structure may include a radio resource control (RRC) layer, a service data adaptation protocol (SDAP) layer, a packet data convergence layer protocol (Packet Data Convergence Protocol) , PDCP) layer, radio link control (radio link control, RLC) layer, media access control (media Access Link control, MAC) and physical layer and so on. The physical layer is located at the lowest layer (layer 1), the MAC layer, RLC layer, PDCP layer and SDAP layer belong to the second layer (layer 2), and the RRC layer belongs to the third layer (layer 3).
数据首先到达网络设备的PDCP层,经过网络设备的PDCP层的处理以后传输到RLC层和MAC层,经过处理之后,从物理层发送出去,通过空口传输给终端设备。然后终端设备侧的各个协议层按照与网络设备相反的处理顺序对数据包依次进行对应的处理。在网络设备和终端设备侧可以形象地将各层对数据包的处理结合起来称为无线承载,对于无线承载里的每个数据,都需要经过各个层的处理,每个层都有相应的功能实体来执行相应的功能,比如PDCP层的PDCP实体。The data first arrives at the PDCP layer of the network device, and then is transmitted to the RLC layer and the MAC layer after being processed by the PDCP layer of the network device. After being processed, it is sent from the physical layer and transmitted to the terminal device through the air interface. Then, each protocol layer on the terminal device side sequentially performs corresponding processing on the data packets according to the processing sequence opposite to that of the network device. On the network equipment and terminal equipment side, the processing of data packets by various layers can be visually combined, which is called wireless bearer. For each data in the wireless bearer, it needs to be processed by each layer, and each layer has corresponding functions. entity to perform corresponding functions, such as the PDCP entity of the PDCP layer.
每个无线承载配置里面会包含一个PDCP实体,同时无线承载配置会关联至少一个RLC实体,并且每个RLC实体对应一个逻辑信道。PDCP之上,可能还存在SDAP层,SDAP层负责核心网过来的数据映射到不同承载上。Each radio bearer configuration will contain a PDCP entity, and at the same time, the radio bearer configuration will be associated with at least one RLC entity, and each RLC entity corresponds to a logical channel. On top of PDCP, there may also be an SDAP layer. The SDAP layer is responsible for mapping data from the core network to different bearers.
具体的数据例子如下:原始数据在物理层传输之前,需要增加SDAP,PDCP,RLC,MAC包头。当然其中部分包头是可选的,比如SDAP和RLC都有不加包头的传输方式。其中,PDCP,SDAP和原始数据包是一一对应。RLC可能将一个PDCP包进行切割,MAC可能对多个RLC包进行级联发送。Specific data examples are as follows: SDAP, PDCP, RLC, and MAC packet headers need to be added before the original data is transmitted at the physical layer. Of course, some of the headers are optional. For example, SDAP and RLC have transmission methods without headers. Among them, PDCP, SDAP and original data packets are in one-to-one correspondence. The RLC may cut a PDCP packet, and the MAC may cascade and send multiple RLC packets.
本申请实施例中的术语“系统”和“网络”可被互换使用。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A、同时存在A和B、单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如“A,B和C中的至少一个”包括A,B,C,AB,AC,BC或ABC。The terms "system" and "network" in the embodiments of the present application may be used interchangeably. "At least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example "at least one of A, B and C" includes A, B, C, AB, AC, BC or ABC.
以及,除非有特别说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。例如,第一阈值和第二阈值,只是为了区分不同的阈值,而并不是表示这两种阈值的优先级或者重要程度等的不同。And, unless otherwise specified, ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, sequence, priority or importance of multiple objects degree. For example, the first threshold and the second threshold are only for distinguishing different thresholds, and do not indicate the difference in priority or importance of the two thresholds.
下面结合说明书附图对本申请实施例适用的可选的网络架构进行说明。An optional network architecture applicable to the embodiments of the present application will be described below with reference to the accompanying drawings.
图2为本申请实施例适用的一种网络架构示意图。如图2所示,终端设备231和终端设备232可接入到无线接入网(radio access network,RAN)设备210和核心网(core network,CN)设备220,其中RAN设备210用于将终端设备231和终端设备232接入到无线网络,CN设备220用于对终端设备进行管理并提供与外网通信的网关。本申请实施例中,终端设 备231和终端设备232之间相互发送通讯数据。FIG. 2 is a schematic diagram of a network architecture to which an embodiment of the present application is applied. As shown in FIG. 2, the terminal equipment 231 and the terminal equipment 232 can be connected to a radio access network (RAN) equipment 210 and a core network (core network, CN) equipment 220, wherein the RAN equipment 210 is used to connect the terminal The device 231 and the terminal device 232 are connected to the wireless network, and the CN device 220 is used to manage the terminal device and provide a gateway for communication with the external network. In this embodiment of the present application, the terminal device 231 and the terminal device 232 send communication data to each other.
当图2所示的网络架构适用于5G通信系统时,CN设备220可以为接入和移动性管理功能(access and mobility management function,AMF)实体、会话管理功能(session management function,SMF)实体或用户面功能(user plane function,UPF)实体等,当图2所示的网络架构适用于LTE通信系统时,CN设备220可以为移动性管理实体(mobility management entity,MME)和服务网关(serving gateway,S-GW)等。When the network architecture shown in FIG. 2 is applicable to a 5G communication system, the CN device 220 may be an access and mobility management function (AMF) entity, a session management function (SMF) entity or User plane function (user plane function, UPF) entity, etc. When the network architecture shown in FIG. 2 is applicable to the LTE communication system, the CN device 220 may be a mobility management entity (mobility management entity, MME) and a serving gateway (serving gateway) , S-GW) and so on.
上述图2所示意的网络架构可以适用于各种无线接入技术(radio access technology,RAT)的通信系统中,可以是5G(或者称为新无线(new radio,NR))通信系统,也可以是LTE通信系统与5G通信系统之间的过渡系统,该过渡系统也可以称为4.5G通信系统,当然也可以是5G后续的未来的通信系统。本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着通信网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture shown in Figure 2 above can be applied to communication systems of various radio access technologies (RATs), such as 5G (or new radio (NR)) communication systems, or It is a transition system between the LTE communication system and the 5G communication system. The transition system can also be called a 4.5G communication system, and of course it can also be a future communication system following 5G. The network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. The evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
下面结合附图对本申请实施例进行说明,首先对本申请实施例的技术方案进行概括性的说明,需要说明的是,这仅仅是为了便于理解本申请实施例的技术方案而进行的原理性描述,不构成对本申请实施例保护范围的限制。本申请实施例中,第一终端设备和第二终端设备互相进行通信,也就是第一终端设备想要发送第一数据给第二终端设备,第二终端设备想要发送第二数据给第一终端设备。网络设备接收第一终端设备发送的第一数据和第二终端设备发送的第二数据,并对第一数据和第二数据进行网络编码形成第三数据。网络设备向第一终端设备和/或第二终端设备发送第三数据。第一终端设备接收到第三数据,将第一数据和第三数据进行网络编码获取第二数据。第二终端设备接收到第三数据,将第二数据和第三数据进行网络编码获取第一数据。本申请实施例在第一终端设备和第二终端设备互相进行通信的情况下,网络设备无需在两个下行资源上分别向第一终端设备和第二终端设备发送第二数据和第一数据,通过对第一数据和第二数据进行编码形成第三数据,只需要通过一个下行资源向第一终端设备和第二终端设备发送第三数据即可,因此,减少了下行资源的开销。The embodiments of the present application will be described below with reference to the accompanying drawings. First, the technical solutions of the embodiments of the present application will be briefly described. It should be noted that this is only a principle description for the convenience of understanding the technical solutions of the embodiments of the present application. It does not constitute a limitation on the protection scope of the embodiments of the present application. In this embodiment of the present application, the first terminal device and the second terminal device communicate with each other, that is, the first terminal device wants to send the first data to the second terminal device, and the second terminal device wants to send the second data to the first terminal device. Terminal Equipment. The network device receives the first data sent by the first terminal device and the second data sent by the second terminal device, and performs network coding on the first data and the second data to form third data. The network device sends the third data to the first terminal device and/or the second terminal device. The first terminal device receives the third data, and performs network coding on the first data and the third data to obtain the second data. The second terminal device receives the third data, and performs network coding on the second data and the third data to obtain the first data. In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device does not need to send the second data and the first data to the first terminal device and the second terminal device on the two downlink resources, respectively, By encoding the first data and the second data to form the third data, it is only necessary to send the third data to the first terminal device and the second terminal device through one downlink resource, thus reducing the overhead of downlink resources.
图3是本申请实施例提供的一种通信方法的流程图,本申请实施例的方法包括:FIG. 3 is a flowchart of a communication method provided by an embodiment of the present application. The method of the embodiment of the present application includes:
301:网络设备接收第一终端设备发送的第一数据包,第一数据包包括第一数据,网络设备接收第二终端设备发送的第二数据包,第二数据包包括第二数据。301: The network device receives a first data packet sent by a first terminal device, where the first data packet includes first data, and the network device receives a second data packet sent by a second terminal device, where the second data packet includes second data.
第一终端设备在发送第一数据之前,协议栈的各层对第一数据进行相应的处理。例如,第一数据经过SDAP层、PDCP层、RLC层和MAC层,分别在各层添加相应的包头。其中,SDAP层和RLC层有不添加包头的传输方式。同样的,第二终端设备在发送第二数据之前,协议栈的各层对第二数据进行相应的处理。例如,第二数据经过SDAP层、PDCP层、RLC层和MAC层,分别在各层添加相应的包头。其中,SDAP层和RLC层有不添加包头的传输方式。Before the first terminal device sends the first data, each layer of the protocol stack performs corresponding processing on the first data. For example, the first data passes through the SDAP layer, the PDCP layer, the RLC layer, and the MAC layer, and corresponding packet headers are added to each layer respectively. Among them, the SDAP layer and the RLC layer have a transmission mode that does not add packet headers. Similarly, before the second terminal device sends the second data, each layer of the protocol stack performs corresponding processing on the second data. For example, the second data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer, and corresponding packet headers are added to each layer respectively. Among them, the SDAP layer and the RLC layer have a transmission mode that does not add packet headers.
网络设备接收第一数据包和第二数据包获取第一数据和第二数据。The network device receives the first data packet and the second data packet to obtain the first data and the second data.
302:网络设备对第一数据和第二数据编码生成第三数据。302: The network device encodes the first data and the second data to generate third data.
例如,网络设备将第一数据和第二数据进行异或后得到第三数据。异或运算具有 自反性:A XOR B XOR B=A,即对给定的数A,用同样的运算因子(B)作两次异或运算后仍得到A本身。又例如,还可以采用喷泉码等其他网络编码方式对第一数据和第二数据进行编码生成第三数据。For example, the network device obtains the third data after XORing the first data and the second data. The XOR operation is reflexive: A XOR B XOR B=A, that is, for a given number A, after performing two XOR operations with the same operational factor (B), A itself is still obtained. For another example, the first data and the second data may also be encoded by other network coding methods such as fountain codes to generate the third data.
303:网络设备向第一终端设备和/或第二终端设备发送第三数据。303: The network device sends third data to the first terminal device and/or the second terminal device.
网络设备对第一数据和第二数据编码之后生成第三数据,网络设备将第三数据发送给第一终端设备和/或第二终端设备。通过对第一数据和第二数据编码,网络设备不需要分别向第一终端设备和第二终端设备发送第二数据和第一数据,只需要发送第三数据就可以实现第一终端设备和第二终端设备的相互通信。The network device generates third data after encoding the first data and the second data, and the network device sends the third data to the first terminal device and/or the second terminal device. By encoding the first data and the second data, the network device does not need to send the second data and the first data to the first terminal device and the second terminal device respectively, and only needs to send the third data to realize the first terminal device and the second terminal device. Intercommunication between two terminal devices.
304:第一终端设备根据第一数据解码第三数据生成第二数据,和/或第二终端设备根据第二数据解码第三数据生成第一数据。从而第一终端设备获取第二终端设备发送的第二数据,第二终端设备获取第一终端设备发送的第一数据。第一终端设备根据第一数据解码第三数据生成第二数据的过程可以为:第一终端设备将第一数据和第三数据进行异或运算生成第二数据。第二终端设备根据第二数据解码第三数据生成第一数据的过程可以为:第二终端设备将第二数据和第三数据进行异或运算生成第一数据。304: The first terminal device decodes the third data according to the first data to generate the second data, and/or the second terminal device decodes the third data according to the second data to generate the first data. Thus, the first terminal device obtains the second data sent by the second terminal device, and the second terminal device obtains the first data sent by the first terminal device. The process for the first terminal device to decode the third data according to the first data to generate the second data may be as follows: the first terminal device performs an exclusive OR operation on the first data and the third data to generate the second data. The process for the second terminal device to decode the third data according to the second data to generate the first data may be as follows: the second terminal device performs an exclusive OR operation on the second data and the third data to generate the first data.
本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码形成第三数据,并向第一终端设备和/或第二终端设备发送编码形成的第三数据。第一终端设备根据第一数据解码第三数据生成第二数据,和/或第二终端设备根据第二数据解码第三数据生成第一数据。本申请实施例实现第一终端设备和第二终端设备之间的相互通信的同时进一步节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data, and send the encoded third data to the first terminal device and/or the second terminal device. The first terminal device decodes the third data according to the first data to generate the second data, and/or the second terminal device decodes the third data according to the second data to generate the first data. The embodiments of the present application further save downlink resources while realizing the mutual communication between the first terminal device and the second terminal device.
以上是对本申请实施例的概括性说明,下面结合可选的实施方式通过第一实施例和第二实施例对本申请实施例提供的技术方案进行详细介绍。The above is a general description of the embodiments of the present application. The following describes the technical solutions provided by the embodiments of the present application in detail through the first embodiment and the second embodiment in conjunction with optional implementation manners.
第一实施例first embodiment
在本申请第一实施例中,网络设备可以为接入网设备,第一终端设备和第二终端设备互相进行通信,第一终端设备和第二终端设备可以与同一个接入网设备连接。第一终端设备和第二终端设备可以称为配对的终端设备。In the first embodiment of the present application, the network device may be an access network device, the first terminal device and the second terminal device communicate with each other, and the first terminal device and the second terminal device may be connected to the same access network device. The first terminal device and the second terminal device may be referred to as paired terminal devices.
作为本申请第一实施例的一种可选的实施方式,在图2所示的网络架构下,可以由核心网设备或者接入网设备对终端设备进行配对检测,并对检测到的符合条件的终端设备进行配对,图4是本申请第一实施例提供的一种通信方法的流程图,下面将结合步骤401~402对此过程进行描述。As an optional implementation manner of the first embodiment of the present application, under the network architecture shown in FIG. 2 , the core network device or the access network device may perform pairing detection on the terminal device, and check the detected devices that meet the conditions. Figure 4 is a flowchart of a communication method provided by the first embodiment of the present application, and the process will be described below with reference to steps 401 to 402.
401:配对终端设备检测。401: Paired terminal device detection.
配对终端设备的检测可以由核心网设备或者接入网设备来进行。The detection of the paired terminal device may be performed by the core network device or the access network device.
在一种情况下,配对终端设备的检测可以由核心网设备来进行。核心网设备对终端设备通信的目标地址进行检测,判断是否满足下列条件,当满足检测结果满足条件1和条件2时,可以认为两个终端设备符合配对条件。假定被检测的终端设备包括终端设备1、终端设备2、终端设备3……终端设备n。核心网设备对上述终端设备检测之后确定终端设备1和终端设备2符合条件1和条件2。条件1和条件2可以表述为:In one case, the detection of paired terminal devices may be performed by core network devices. The core network device detects the target address communicated by the terminal device, and determines whether the following conditions are met. When the detection result meets the conditions 1 and 2, it can be considered that the two terminal devices meet the pairing conditions. It is assumed that the detected terminal devices include terminal device 1, terminal device 2, terminal device 3 . . . terminal device n. After the core network device detects the terminal device, it is determined that the terminal device 1 and the terminal device 2 meet the conditions 1 and 2. Condition 1 and Condition 2 can be expressed as:
条件1:终端设备1所发送的数据包的目标地址为终端设备2,并且终端设备2所 发送的数据包的目标地址也为终端设备1。Condition 1: The destination address of the data packet sent by terminal equipment 1 is terminal equipment 2, and the destination address of the data packet sent by terminal equipment 2 is also terminal equipment 1.
这里的目标地址可以为互联网协议地址(IP地址)、媒体接入控制地址(MAC地址)或互联网协议地址与端口号中的一种或多种。终端设备1所发送的数据包的目标地址为终端设备2说明终端设备1想要向终端设备2发送该数据包,终端设备2所发送的数据包的目标地址为终端设备1说明终端设备2想要向终端设备1发送该数据包。The target address here may be one or more of an internet protocol address (IP address), a media access control address (MAC address), or an internet protocol address and a port number. The destination address of the data packet sent by terminal equipment 1 is terminal equipment 2, indicating that terminal equipment 1 wants to send the data packet to terminal equipment 2, and the destination address of the data packet sent by terminal equipment 2 is terminal equipment 1, indicating that terminal equipment 2 wants to send the data packet. This data packet is to be sent to end device 1.
条件2:终端设备1的服务小区和终端设备2的服务小区为同一个服务小区,和/或终端设备1的服务网络设备和终端设备2的服务网络设备为同一个服务网络设备。Condition 2: The serving cell of terminal device 1 and the serving cell of terminal device 2 are the same serving cell, and/or the serving network device of terminal device 1 and the serving network device of terminal device 2 are the same serving network device.
服务网络设备可以是接入网设备。在核心网设备进行条件2的检测时,接入网设备可以将参与通信的终端设备的服务小区和服务网络设备信息上报给核心网设备。The serving network device may be an access network device. When the core network device detects condition 2, the access network device may report the serving cell and serving network device information of the terminal device participating in the communication to the core network device.
在本申请第一实施例中,核心网设备检测第一终端设备的第一数据包的目标地址和第二终端设备的第二数据包的目标地址,确定第一终端设备的第一数据包的目标地址为第二终端设备,第二终端设备的第二数据包的目标地址为第一终端设备。核心网设备检测第一终端设备的服务小区和/或服务网络设备,检测第二终端设备的服务小区和/或服务网络设备,确定第一终端设备的服务小区和第二终端设备的服务小区为同一个服务小区,和/或核心网设备确定第一终端设备的服务网络设备和第二终端设备的服务网络设备为同一个服务网络设备。In the first embodiment of the present application, the core network device detects the destination address of the first data packet of the first terminal device and the destination address of the second data packet of the second terminal device, and determines the destination address of the first data packet of the first terminal device. The destination address is the second terminal device, and the destination address of the second data packet of the second terminal device is the first terminal device. The core network device detects the serving cell and/or serving network device of the first terminal device, detects the serving cell and/or serving network device of the second terminal device, and determines that the serving cell of the first terminal device and the serving cell of the second terminal device are The same serving cell and/or the core network device determines that the serving network device of the first terminal device and the serving network device of the second terminal device are the same serving network device.
虽然图4中示出终端设备的配对检测是由核心网设备执行的,但在另一种情况下,也可以由接入网设备来进行配对终端设备的检测,此时需要接入网设备检测数据包的目标地址来判断哪些终端设备是配对的终端设备。Although FIG. 4 shows that the pairing detection of the terminal device is performed by the core network device, in another case, the access network device can also perform the detection of the paired terminal device. In this case, the access network device needs to detect The destination address of the data packet is used to determine which end devices are paired end devices.
经过配对终端设备的检测,第一终端设备和第二终端设备符合条件1和条件2,可以确定第一终端设备和第二终端设备可以配对。After the detection of the paired terminal device, the first terminal device and the second terminal device meet the conditions 1 and 2, and it can be determined that the first terminal device and the second terminal device can be paired.
402:确定终端设备的配对信息。402: Determine the pairing information of the terminal device.
当检测到两个终端设备符合上述条件1和条件2接入网设备可以根据核心网设备的检测结果或者接入网设备自身的检测结果确定终端设备的配对信息。When it is detected that two terminal devices meet the above conditions 1 and 2, the access network device can determine the pairing information of the terminal devices according to the detection result of the core network device or the detection result of the access network device itself.
以配对的终端设备为本申请第一实施例中的第一终端设备和第二终端设备为例,终端设备的配对信息可以:第一终端设备的第一服务质量流(Quality of Service Flow,Qos Flow)和第二终端设备的第二服务质量流。此外,终端设备的配对信息还可以包括:第一终端设备和第二终端设备的标识(Identifier,ID)信息,或者,可以给两个配对的终端设备的上下文信息设置相同的组标记,根据两个终端设备的组标记确定这两个终端设备是配对的终端设备。当采用组标记的方式标记配对的终端设备就可以不需要终端设备的ID信息。Taking the paired terminal equipment as the first terminal equipment and the second terminal equipment in the first embodiment of the application as an example, the pairing information of the terminal equipment may be: the first quality of service flow (Quality of Service Flow, QoS) of the first terminal equipment Flow) and the second quality of service flow of the second terminal device. In addition, the pairing information of the terminal device may further include: identifier (Identifier, ID) information of the first terminal device and the second terminal device, or the same group flag may be set for the context information of the two paired terminal devices, according to the two The group tag of the two end devices determines that the two end devices are paired end devices. When the paired terminal device is marked in a group marking manner, the ID information of the terminal device may not be required.
接入网设备根据终端设备的配对信息能够确定第一终端设备和第二终端设备是配对的终端设备。The access network device can determine that the first terminal device and the second terminal device are paired terminal devices according to the pairing information of the terminal device.
如果配对终端设备的检测是由核心网设备执行的,核心网设备可以将检测出来的终端设备的配对信息发送给接入网设备。If the detection of the paired terminal device is performed by the core network device, the core network device may send the detected pairing information of the terminal device to the access network device.
403:接入网设备向第一终端设备和/或第二终端设备发送公共传输通道的参数。403: The access network device sends the parameters of the common transmission channel to the first terminal device and/or the second terminal device.
接入网设备建立公共传输通道,公共传输通道用于向第一终端设备和/或第二终端设备发送第三数据。公共传输通道可以理解为公共数据无线承载(Common Data Radio Bearer, common DRB),DRB是终端设备到接入网设备的空口之间的一段承载,用于承载用户面数据。本申请第一实施例中,接入网设备通过common DRB向第一终端设备和第二终端设备发送第三数据。The access network device establishes a common transmission channel, and the common transmission channel is used for sending third data to the first terminal device and/or the second terminal device. The common transmission channel can be understood as a common data radio bearer (Common Data Radio Bearer, common DRB). DRB is a segment of the bearer between the terminal device and the air interface of the access network device, which is used to carry user plane data. In the first embodiment of the present application, the access network device sends the third data to the first terminal device and the second terminal device through the common DRB.
作为一种可选的实施方式,在建立common DRB时,接入网设备将第一服务质量流和第二服务质量流映射到common DRB。第一数据包属于第一服务质量流,第二数据包属于第二服务质量流。As an optional implementation manner, when establishing the common DRB, the access network device maps the first QoS flow and the second QoS flow to the common DRB. The first data packet belongs to the first quality of service flow, and the second data packet belongs to the second quality of service flow.
服务质量流Qos flow是满足一组服务质量配置的端到端的数据流,是5G系统中最细的质量管理粒度,可以把具有相同Qos属性的数据流称为一个Qos flow。可以理解,第一数据包可以是属于数据流中的一个数据包,因此第一数据包属于第一服务质量流的含义是第一数据包是属于第一数据流中的一个数据包,而第一数据流满足相同的Qos属性,因此可以将第一数据流称之为第一服务质量流。同理,第二数据包属于第二服务质量流。The QoS flow is an end-to-end data flow that satisfies a set of QoS configurations. It is the finest quality management granularity in the 5G system. A data flow with the same QoS attribute can be called a QoS flow. It can be understood that the first data packet may belong to a data packet in the data flow, so the meaning of the first data packet belonging to the first quality of service flow is that the first data packet belongs to a data packet in the first data flow, and the first data packet belongs to a data packet in the first data flow. A data flow satisfies the same QoS attribute, so the first data flow can be called the first quality of service flow. Similarly, the second data packet belongs to the second quality of service flow.
接入网设备将第一服务质量流和第二服务质量流映射到common DRB上,即接入网设备将第一服务质量流和第二服务质量中收到的上行数据进行网络编码后通过common DRB发送给这个两个终端设备。终端根据这个映射关系,可以知道改DRB上接收的是哪些上行Qos flow的上行数据网络编码后的数据。The access network device maps the first QoS stream and the second QoS stream to the common DRB, that is, the access network device performs network coding on the uplink data received in the first QoS stream and the second QoS stream and passes the common DRB. DRBs are sent to the two terminal devices. According to this mapping relationship, the terminal can know which uplink data network-encoded data of the uplink QoS flow are received on the DRB.
公共传输通道的参数用于第一终端设备和/或第二终端设备接收第三数据。公共传输通道的参数包括以下信息中的一个或多个:The parameters of the common transmission channel are used by the first terminal device and/or the second terminal device to receive the third data. The parameters of the public transport channel include one or more of the following information:
公共传输通道配置信息,公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个;Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter;
无线网络临时标识(Radio Network Temporary Identifier,RNTI);Radio Network Temporary Identifier (RNTI);
部分带宽(Bandwidth Part,BWP)信息;Bandwidth Part (BWP) information;
第一数据包和/或第二数据包的上行数据通道信息;Uplink data channel information of the first data packet and/or the second data packet;
指示信息,指示信息用于指示第一终端设备关联第一控制字段和/或用于指示第二终端设备关联第二控制字段,第一控制字段包括第一序列号和/或第一完整性保护指示域,第二控制字段包括第二序列号和/或第二完整性保护指示域。Indication information, the indication information is used to instruct the first terminal device to associate with the first control field and/or to instruct the second terminal device to associate with the second control field, where the first control field includes the first serial number and/or the first integrity protection Indication field, the second control field includes a second sequence number and/or a second integrity protection indication field.
公共传输通道配置信息用于第一终端设备和/或第二终端设备进行公共传输通道配置。无线网络临时标识包括组无线网络临时标识、公共无线网络临时标识或配对无线网络临时标识中的一个或多个,用于第一终端设备和/或第二终端设备进行在公共传输通道上的数据接收。The common transmission channel configuration information is used for the first terminal device and/or the second terminal device to configure the common transmission channel. The wireless network temporary identification includes one or more of the group wireless network temporary identification, the public wireless network temporary identification or the paired wireless network temporary identification, which is used for the first terminal device and/or the second terminal device to perform data on the public transmission channel take over.
部分带宽信息包括部分带宽ID、频率位置等信息,用于第一终端设备和/或第二终端设备进行在公共传输通道上的数据接收。The partial bandwidth information includes information such as partial bandwidth ID, frequency location, etc., and is used for data reception on the common transmission channel by the first terminal device and/or the second terminal device.
第一数据包和/或第二数据包的上行数据通道信息包括:第一数据包和/或第二数据包关联的上行Qos flow ID、第一数据包和/或第二数据包关联的上行逻辑信道ID,或者第一数据包和/或第二数据包关联的上行DRB ID中的一个或多个,第一数据包和/或第二数据包的上行数据通道信息用于第一终端设备和/或第二终端设备确定向接入网设备发送的第一数据包和第二数据包,从而用于第一终端设备对第一数据和第三数据编码形成第二数据,和/或用于第二终端设备对第二数据和第三数据编码形成第一数据。The uplink data channel information of the first data packet and/or the second data packet includes: the uplink QoS flow ID associated with the first data packet and/or the second data packet, the uplink associated with the first data packet and/or the second data packet The logical channel ID, or one or more of the uplink DRB IDs associated with the first data packet and/or the second data packet, and the uplink data channel information of the first data packet and/or the second data packet is used for the first terminal device And/or the second terminal device determines the first data packet and the second data packet sent to the access network device, so that the first terminal device encodes the first data and the third data to form the second data, and/or uses The second data and the third data are encoded at the second terminal device to form the first data.
指示信息用于指示终端设备关联第一控制字段和/或第二终端设备关联第二控制字 段。第一控制字段包括第一序列号SN1和/或第一完整性保护域,第二控制字段包括第二序列号SN2和第二完整性保护域。第三数据包可以包括两个序列号SN1和SN2和/或两个完整性保护域第一完整性保护域和第二完整性保护域,这两个序列号和两个完整性保护域分别关联第一终端设备和第二终端设备。第一序列号SN1用于第一终端设备确定该第三数据包关联的第一数据,第二序列号SN2用于第二终端设备确定该第三数据包关联的第二数据。第一完整性保护域用于第一终端设备根据密钥验证第三数据是否被修改,第二完整性保护域用于第二终端设备根据密钥验证第三数据是否被修改。因此,第一终端设备需要对自己的第一序列号SN1和第一完整性保护域进行识别,第二终端设备需要对自己的第二序列号SN2和第二完整性保护域进行识别。第一终端设备根据指示信息能够确定第一序列号SN1和/或第一完整性保护域,第二终端设备根据指示信息能够确定第二序列号SN2和/或第二完整性保护域。The indication information is used to instruct the terminal device to associate with the first control field and/or the second terminal device to associate with the second control field. The first control field includes a first sequence number SN1 and/or a first integrity protection field, and the second control field includes a second sequence number SN2 and a second integrity protection field. The third data packet may include two sequence numbers SN1 and SN2 and/or two integrity protection domains, a first integrity protection domain and a second integrity protection domain, which are respectively associated with the two integrity protection domains A first terminal device and a second terminal device. The first sequence number SN1 is used by the first terminal device to determine the first data associated with the third data packet, and the second sequence number SN2 is used by the second terminal device to determine the second data associated with the third data packet. The first integrity protection field is used for the first terminal device to verify whether the third data is modified according to the key, and the second integrity protection field is used for the second terminal device to verify whether the third data is modified according to the key. Therefore, the first terminal device needs to identify its own first serial number SN1 and the first integrity protection domain, and the second terminal device needs to identify its own second serial number SN2 and the second integrity protection domain. The first terminal device can determine the first serial number SN1 and/or the first integrity protection domain according to the indication information, and the second terminal device can determine the second serial number SN2 and/or the second integrity protection domain according to the indication information.
404:接入网设备接收第一终端设备发送的第一数据包,第一数据包包括第一数据。接入网设备接收第二终端设备发送的第二数据包,第二数据包包括第二数据。404: The access network device receives the first data packet sent by the first terminal device, where the first data packet includes the first data. The access network device receives a second data packet sent by the second terminal device, where the second data packet includes second data.
第一终端设备在发送第一数据之前,协议栈的各层对第一数据进行相应的处理。例如,第一数据依次经过SDAP层、PDCP层、RLC层和MAC层,分别在其中的一层或多层添加相应的包头形成第一数据包。因此,第一数据包包括第一包头,第一包头包括第一序列号SN1。可选的,第一包头可以是指PDCP包头,第一序列号SN1可以是指PDCP SN号。或者也可以是其他层的序号,比如RLC序号,MAC序号,或者SDAP序号。Before the first terminal device sends the first data, each layer of the protocol stack performs corresponding processing on the first data. For example, the first data passes through the SDAP layer, the PDCP layer, the RLC layer, and the MAC layer in sequence, and corresponding headers are added to one or more layers of them to form the first data packet. Therefore, the first data packet includes the first packet header, and the first packet header includes the first sequence number SN1. Optionally, the first packet header may refer to the PDCP packet header, and the first sequence number SN1 may refer to the PDCP SN number. Or it can also be the sequence number of other layers, such as the RLC sequence number, the MAC sequence number, or the SDAP sequence number.
同样的,第二终端设备在发送第二数据之前,协议栈的各层对第二数据进行相应的处理。例如,第二数据依次经过SDAP层、PDCP层、RLC层和MAC层,分别在其中的一层或多层添加相应的包头形成第二数据包。因此,第二数据包包括第二包头,第二包头包括第二序列号SN2。可选的,第二包头可以是指PDCP包头,第二序列号SN2可以是指PDCP SN号。或者也可以是其他层的序号,比如RLC序号,MAC序号,或者SDAP序号。Similarly, before the second terminal device sends the second data, each layer of the protocol stack performs corresponding processing on the second data. For example, the second data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding headers are added to one or more layers of the layers to form the second data packet. Therefore, the second data packet includes the second header, and the second header includes the second sequence number SN2. Optionally, the second packet header may refer to the PDCP packet header, and the second sequence number SN2 may refer to the PDCP SN number. Or it can also be the sequence number of other layers, such as the RLC sequence number, the MAC sequence number, or the SDAP sequence number.
接入网设备在接收到第一数据包和第二数据包之后,会分别对第一数据包和第二数据包进行解析。接入网设备可以对第一数据包和第二数据包去除MAC包头,RLC包头,PDCP包头,SDAP包头。其中,SDAP层和RLC层有不添加包头的传输方式。通过去除第一数据包和第二数据包的包头分别获取第一数据和第二数据。步骤403和步骤404的顺序可以调换。After receiving the first data packet and the second data packet, the access network device will parse the first data packet and the second data packet respectively. The access network device may remove the MAC header, the RLC header, the PDCP header, and the SDAP header from the first data packet and the second data packet. Among them, the SDAP layer and the RLC layer have a transmission mode that does not add packet headers. The first data and the second data are obtained by removing the headers of the first data packet and the second data packet, respectively. The order of step 403 and step 404 can be reversed.
405:接入网设备对第一数据和第二数据进行网络编码,形成第三数据。405: The access network device performs network coding on the first data and the second data to form third data.
作为一种可选的实施方式,网络编码的方式可以为异或(exclusive OR,xor),异或的运算法则为:如果a、b两个值不相同,则异或结果为1。如果a、b两个值相同,异或结果为0。异或也可以称为半加运算,运算法则相当于不带进位的二进制加法:二进制下用1表示真,0表示假,则异或的运算法则为:0 0=0,1 0=1,0 1=1,11=0(同为0,异为1)。As an optional implementation manner, the network coding method may be exclusive OR (exclusive OR, xor), and the exclusive OR algorithm is: if the two values of a and b are different, the exclusive OR result is 1. If the values of a and b are the same, the XOR result is 0. XOR can also be called half addition operation. The algorithm is equivalent to binary addition without carry: in binary, 1 means true, 0 means false, then the XOR algorithm is: 0 0 = 0, 1 0 = 1 , 0 1=1, 11=0 (the same is 0, the difference is 1).
接入网设备可以对第一数据和第二数据进行异或操作,形成第三数据。The access network device may perform an exclusive OR operation on the first data and the second data to form the third data.
本申请第一实施例中的编码还可以包括其他运算,比如采用喷泉码等其他网络编 码方式进行编码。The encoding in the first embodiment of the present application may also include other operations, such as encoding by using other network encoding methods such as fountain codes.
接入网设备对第一数据和第二数据编码生成第三数据之后,可以对第三数据进行包头添加的操作。例如,第三数据依次经过SDAP层、PDCP层、RLC层和MAC层包头添加从而形成第三数据包,其中,SDAP层和RLC层的包头可选。SDAP层、PDCP层、RLC层或MAC层包头中的任意一个或多个可以称为第三数据包的包头。After the access network device encodes the first data and the second data to generate the third data, an operation of adding a header to the third data may be performed. For example, the third data packet is sequentially added through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer headers to form a third data packet, wherein the headers of the SDAP layer and the RLC layer are optional. Any one or more of the SDAP layer, the PDCP layer, the RLC layer or the MAC layer header may be referred to as a header of the third data packet.
作为一种可选的实施方式,第三数据包的包头中可以包括第一序列号SN1和第二序列号SN2。可选的,第一序列号SN1和第二序列号SN2可以在第三数据包的PDCP包头中。可以理解,第一序列号SN1和第二序列号SN2是第一数据包和第二数据包的SN号,第一序列号SN1和第二序列号SN2用于标识第一数据包和第二数据包。因此,通过在第三数据包的包头中添加第一序列号SN1和第二序列号SN2,第一终端设备在接收到第三数据包时,根据第三数据包包头中的第一序列号SN1能够确定第三数据关联的上行数据为第一数据。从而,第一终端设备将第一数据和第三数据进行编码获取第二数据。同样,第二终端设备在接收到第三数据包时,根据第三数据包包头中的第二序列号SN2能够确定第三数据关联的上行数据为第二数据。从而,第二终端设备将第二数据和第三数据进行编码获取第一数据。As an optional implementation manner, the header of the third data packet may include the first sequence number SN1 and the second sequence number SN2. Optionally, the first sequence number SN1 and the second sequence number SN2 may be in the PDCP header of the third data packet. It can be understood that the first sequence number SN1 and the second sequence number SN2 are the SN numbers of the first data packet and the second data packet, and the first sequence number SN1 and the second sequence number SN2 are used to identify the first data packet and the second data packet. Bag. Therefore, by adding the first sequence number SN1 and the second sequence number SN2 in the header of the third data packet, when the first terminal device receives the third data packet, according to the first sequence number SN1 in the third data packet header It can be determined that the uplink data associated with the third data is the first data. Thus, the first terminal device encodes the first data and the third data to obtain the second data. Likewise, when the second terminal device receives the third data packet, it can determine that the uplink data associated with the third data is the second data according to the second sequence number SN2 in the header of the third data packet. Thus, the second terminal device encodes the second data and the third data to obtain the first data.
作为一种可选的实施方式,第三数据包中包括第一终端设备的第一完整性保护域和第二终端设备的第二完整性保护域。第一完整性保护域是接入网设备根据第一终端设备的密钥和第三数据包的内容生成的比特序列,第一终端设备根据第一完整性保护域和第一终端设备的密钥验证第三数据包是否被修改。同样的,第二完整性保护域是接入网设备根据第二终端设备的密钥和第三数据包的内容生成的比特序列,第二终端设备根据第二完整性保护域和第二终端设备的密钥验证第三数据包是否被修改。As an optional implementation manner, the third data packet includes the first integrity protection domain of the first terminal device and the second integrity protection domain of the second terminal device. The first integrity protection domain is a bit sequence generated by the access network device according to the key of the first terminal device and the content of the third data packet, and the first terminal device is based on the first integrity protection domain and the key of the first terminal device. Verify that the third packet has not been modified. Similarly, the second integrity protection domain is a bit sequence generated by the access network device according to the key of the second terminal device and the content of the third data packet, and the second terminal device is based on the second integrity protection domain and the second terminal device. The key verifies whether the third packet has been modified.
406:接入网设备向第一终端设备和/或第二终端设备发送第三数据包。406: The access network device sends a third data packet to the first terminal device and/or the second terminal device.
接入网设备通过公共传输通道向第一终端设备和/或第二终端设备发送第三数据包。The access network device sends the third data packet to the first terminal device and/or the second terminal device through the common transmission channel.
407:第一终端设备和/或第二终端设备从第三数据包中获取完整性保护域和序列号。407: The first terminal device and/or the second terminal device obtain the integrity protection domain and the serial number from the third data packet.
下面以第一终端设备为例对本步骤进行说明,第二终端设备执行的动作和第一终端设备相同。This step is described below by taking the first terminal device as an example, and the actions performed by the second terminal device are the same as those of the first terminal device.
第一终端设备接收接入网设备发送的第三数据包,第三数据包包括第一控制字段和第二控制字段,第一控制字段包括第一完整性保护域和/或第一序列号,第二控制字段包括第二完整性保护域和/或第二序列号。根据步骤404和步骤405可知,第一完整性保护域是根据第一终端设备的密钥和第三数据生成,第一序列号SN1是第一终端设备向接入网设备发送的第一数据包中的序列号。第一终端设备接收到第三数据包,首先对第三数据包中的第一控制字段和第二控制字段进行识别,找到第一控制字段和第二控制字段中的哪一个是第一终端设备的控制字段,第一终端设备找到相应的控制字段后,获取完整性保护域和序列号。并根据完整性保护域验证第三数据是否被修改,根据序列号找到第一数据,根据第一数据对第三数据解码获取第二数据。The first terminal device receives a third data packet sent by the access network device, where the third data packet includes a first control field and a second control field, and the first control field includes a first integrity protection field and/or a first sequence number, The second control field includes a second integrity protection field and/or a second sequence number. According to steps 404 and 405, the first integrity protection domain is generated according to the key of the first terminal device and the third data, and the first serial number SN1 is the first data packet sent by the first terminal device to the access network device serial number in . The first terminal device receives the third data packet, firstly identifies the first control field and the second control field in the third data packet, and finds out which one of the first control field and the second control field is the first terminal device After finding the corresponding control field, the first terminal device obtains the integrity protection domain and the serial number. and verifying whether the third data is modified according to the integrity protection field, finding the first data according to the serial number, and decoding the third data according to the first data to obtain the second data.
可以将第一终端设备识别控制字段的过程理解为:第一终端设备确定第三控制字段,第三控制字段是第一控制字段或者第二控制字段。第三控制字段并不是第一终端设备生成的新的控制字段,确定第三控制字段是指在第一控制字段和第二控制字段中 找到第一终端设备对应的控制字段的过程。在这里,对于第一终端设备而言,第三控制字段就是第一控制字段,对于第二终端设备而言,第三控制字段就是第二控制字段。The process of identifying the control field by the first terminal device can be understood as: the first terminal device determines the third control field, and the third control field is the first control field or the second control field. The third control field is not a new control field generated by the first terminal device, and determining the third control field refers to the process of finding the control field corresponding to the first terminal device in the first control field and the second control field. Here, for the first terminal device, the third control field is the first control field, and for the second terminal device, the third control field is the second control field.
对于第一终端设备,在接收到第三数据包时,需要对第三数据包中的第一控制字段和第二控制字段进行识别,获取第三控制字段。在一种可选的实施方式中,第一终端设备接收指示信息,指示信息用于向第一终端设备指示第三控制字段,也就是指示信息用于向第一终端设备指示在第一控制字段和第二控制字段中哪一个控制字段是第一终端设备的,因此,第一终端设备可以根据指示信息确定第三控制字段。同样的,指示信息也用于向第二终端设备指示在第一控制字段和第二控制字段中哪一个控制字段是第二终端设备的。指示信息用于指示终端设备对应的控制字段。接入网设备可以通过公共传输通道参数发送指示信息给第一终端设备和/或第二终端设备。For the first terminal device, when receiving the third data packet, it needs to identify the first control field and the second control field in the third data packet, and obtain the third control field. In an optional implementation manner, the first terminal device receives indication information, and the indication information is used to indicate the third control field to the first terminal device, that is, the indication information is used to indicate to the first terminal device that the first control field is in the first control field. and which of the second control fields belongs to the first terminal device. Therefore, the first terminal device can determine the third control field according to the indication information. Likewise, the indication information is also used to indicate to the second terminal device which control field in the first control field and the second control field belongs to the second terminal device. The indication information is used to indicate the control field corresponding to the terminal device. The access network device may send the indication information to the first terminal device and/or the second terminal device through the common transmission channel parameter.
在一种可选的实施方式中,指示信息可以是第一终端设备和第二终端设备的编号。由于第一控制字段和第二控制字段放入第三数据包时有一定的顺序,例如第一控制字段先于第二控制字段放入第三数据包。基于第一控制字段和第二控制字段的顺序,接入网设备可以通过指示信息给第一终端设备编号为1号,给第二终端设备编号为2号。第一终端设备根据指示信息获取自己的编号为1号,第一终端设备将能够获知1号的含义是先存入第三数据包中的那个控制字段是第一终端设备的控制字段。第二终端设备根据指示信息获取自己的编号为2号,第二终端设备将能够获知2号的含义是后存入第三数据包中的那个控制字段是第二终端设备的控制字段。In an optional implementation manner, the indication information may be serial numbers of the first terminal device and the second terminal device. Since the first control field and the second control field are put into the third data packet in a certain order, for example, the first control field is put into the third data packet before the second control field. Based on the sequence of the first control field and the second control field, the access network device may number the first terminal device as No. 1 and the second terminal device as No. 2 through the indication information. The first terminal device obtains its own serial number as No. 1 according to the instruction information, and the first terminal device will be able to know that the meaning of No. 1 is that the control field first stored in the third data packet is the control field of the first terminal device. The second terminal device obtains its own serial number as No. 2 according to the instruction information, and the second terminal device will be able to know that the meaning of No. 2 is that the control field stored in the third data packet is the control field of the second terminal device.
第一终端设备确定第三控制字段,第三控制字段包括第三完整性保护域和/或第三序列号。第三完整保护域是第一完整性保护域或者第二完整性保护域,第三序列号是第一序列号或者第二序列号。并且第三完整性保护域和第三序列号是成对识别的,也就是说如果第一终端设备识别出第一完整性保护域和第二完整性保护域中,第一完整性保护域是第一终端设备的完整性保护域(第三完整性保护域),那么第一序列号就是第一终端设备的序列号(第三序列号)。The first terminal device determines a third control field, where the third control field includes a third integrity protection field and/or a third sequence number. The third integrity protection domain is the first integrity protection domain or the second integrity protection domain, and the third serial number is the first serial number or the second serial number. And the third integrity protection domain and the third serial number are identified in pairs, that is, if the first terminal device identifies the first integrity protection domain and the second integrity protection domain, the first integrity protection domain is The integrity protection domain (third integrity protection domain) of the first terminal device, then the first serial number is the serial number (third serial number) of the first terminal device.
第一终端设备根据自己的密钥和第三完整性保护域验证第三数据的完整性保护有效性。完整性保护有效说明第三数据完整没有被修改。The first terminal device verifies the validity of the integrity protection of the third data according to its own key and the third integrity protection domain. Integrity protection effectively indicates that the third data is intact and not modified.
第一终端设备根据第三序列号可以确定第一数据。第三序列号就是第一终端设备在向接入网设备发送第一数据包时,被包括在第一数据包包头中的第一序列号SN1。也就是第一数据包的第一包头中包括第三序列号。第三序列号用于标识第一终端设备发送的第一数据,因此,当第一终端设备从第三数据包中识别到第三序列号,第一终端设备可以根据第三序列号确定接入网设备所发送的第一数据。The first terminal device can determine the first data according to the third serial number. The third sequence number is the first sequence number SN1 included in the header of the first data packet when the first terminal device sends the first data packet to the access network device. That is, the first header of the first data packet includes the third sequence number. The third sequence number is used to identify the first data sent by the first terminal device. Therefore, when the first terminal device recognizes the third sequence number from the third data packet, the first terminal device can determine the access according to the third sequence number. The first data sent by the network device.
408:第一终端设备根据第一数据解码第三数据生成第二数据,和/或第二终端设设备根据第二数据解码第三数据生成第一数据。408: The first terminal device decodes the third data according to the first data to generate the second data, and/or the second terminal device decodes the third data according to the second data to generate the first data.
在一种可选的实施方式中,第一终端设备可以对第一数据和第三数据进行异或生成第二数据,同样的,第二终端设备可以对第二数据和第三数据进行异或生成第一数据。从而实现第一终端设备将第一数据发送给第二终端设备,而第二终端设备将第二数据发送给第一终端设备,第一终端设备和第二终端设备实现互相通信。In an optional implementation manner, the first terminal device may XOR the first data and the third data to generate the second data, and similarly, the second terminal device may XOR the second data and the third data Generate first data. Thus, the first terminal device sends the first data to the second terminal device, and the second terminal device sends the second data to the first terminal device, and the first terminal device and the second terminal device communicate with each other.
在本申请第一实施例中,第一终端设备的第一数据包的目标地址为第二终端设备, 第二终端设备的第二数据包的目标地址为第一终端设备。网络设备接收第一数据包和第二数据包,并对第一数据和第二数据编码生成第三数据,通过公共传输通道发送第三数据。第一终端设备接收到第三数据后,根据第一数据解码第三数据获取第二数据,第二终端设备接收到第三数据后,根据第二数据解码第三数据获取第一数据,实现第一终端设备和第二终端设备的互相通信。在本申请第一实施例中,网络设备可以在公共传输通道上利用一个下行资源就能实现两个终端设备互相通信,从而减小下行资源开销。In the first embodiment of the present application, the destination address of the first data packet of the first terminal device is the second terminal device, and the destination address of the second data packet of the second terminal device is the first terminal device. The network device receives the first data packet and the second data packet, encodes the first data and the second data to generate third data, and sends the third data through a common transmission channel. After receiving the third data, the first terminal device decodes the third data according to the first data to obtain the second data, and after receiving the third data, the second terminal device decodes the third data according to the second data to obtain the first data, so as to realize the first data. Intercommunication between a terminal device and a second terminal device. In the first embodiment of the present application, a network device can use one downlink resource on a common transmission channel to implement mutual communication between two terminal devices, thereby reducing downlink resource overhead.
第二实施例Second Embodiment
本申请第二实施例与第一实施例不同之处在于,接入网设备在接收到第一数据包和第二数据包之后,将第一数据包和第二数据包发送给核心网设备,核心网设备进一步向接入网设备发送第四数据包和第五数据包,第四数据包中包括的是接入网设备向核心网设备发送的第一数据,第五数据包中包括的是接入网设备向核心网设备发送的第二数据。接入网设备对第四数据包中的第一数据和第五数据包中的第二数据编码形成第三数据。可以理解,相比于第一实施例,在第二实施例中接入网设备会将第一数据和第二数据先发送给核心网设备,核心网设备再将第一数据和第二数据发回给接入网设备,接入网设备再对第一数据和第二数据进行编码。The difference between the second embodiment of the present application and the first embodiment is that after receiving the first data packet and the second data packet, the access network device sends the first data packet and the second data packet to the core network device, The core network device further sends a fourth data packet and a fifth data packet to the access network device, where the fourth data packet includes the first data sent by the access network device to the core network device, and the fifth data packet includes the The second data sent by the access network device to the core network device. The access network device encodes the first data in the fourth data packet and the second data in the fifth data packet to form third data. It can be understood that, compared with the first embodiment, in the second embodiment, the access network device will first send the first data and the second data to the core network device, and the core network device will then send the first data and the second data to the core network device. It is returned to the access network device, and the access network device encodes the first data and the second data.
本申请实施例中的核心网设备可以为5G核心网,核心网设备包括但不限于:AMF、用户面功能实体(User plane Function,UPF)、鉴权服务功能(Authentication Server Function,AUSF)、数据网络(Data Network,DN)、非结构性数据存储功能(Unstructured Data Storage Function,UDFS)、网络业务呈现功能实体(Network Exposure Function,NEF)、网元数据仓库功能实体(NF Repository Function,NRF)、网络切片选择功能实体(Network SliceSelection Function,NSSF)、策略控制功能Policy Control function(PCF)、进程管理功能(Session Management Function,SMF)、统一数据管理功能(Unified Data Management,UDM)、统一数据仓库功能(Unified Data Repository,UDR)或应用层功能(Application Function,AF)。The core network equipment in this embodiment of the present application may be a 5G core network, and the core network equipment includes but is not limited to: AMF, User plane Function (UPF), Authentication Server Function (AUSF), data Network (Data Network, DN), Unstructured Data Storage Function (UDFS), Network Exposure Function (NEF), Network Element Data Repository Function (NF Repository Function, NRF), Network Slice Selection Function (NSSF), Policy Control Function (PCF), Session Management Function (SMF), Unified Data Management (UDM), Unified Data Warehouse (Unified Data Repository, UDR) or application layer function (Application Function, AF).
图5是本申请第二实施例提供的通信方法的流程图,如图5所示,步骤501~508和第一实施例相同,在本申请第二实施例中不再赘述,只对与第一实施例不同的部分进行说明。FIG. 5 is a flowchart of a communication method provided by the second embodiment of the present application. As shown in FIG. 5 , steps 501 to 508 are the same as those in the first embodiment. The different parts of an embodiment are described.
在本申请第二实施例中,接入网设备对接收到的第一数据包和第二数据包去除包头获取第一数据和第二数据,不同于第一实施例,接入网设备获取第一数据和第二数据之后执行步骤509和510。In the second embodiment of the present application, the access network device removes the header of the received first data packet and the second data packet to obtain the first data and the second data. Different from the first embodiment, the access network device obtains the first data and the second data. Steps 509 and 510 are performed after the first data and the second data.
509:接入网设备向核心网设备发送第一数据和第二数据。509: The access network device sends the first data and the second data to the core network device.
在第二实施例中,接入网设备获取第一数据和第二数据之后,先不对第一数据和第二数据编码,而是将从第一数据包中解析获取的第一数据和从第二数据包中解析获取的第二数据发送给核心网设备。In the second embodiment, after the access network device obtains the first data and the second data, it does not encode the first data and the second data, but parses the first data obtained from the first data packet and the second data from the first data packet. The second data obtained by parsing in the second data packet is sent to the core network device.
510:接入网设备接收核心网设备发送的第四数据包和第五数据包。510: The access network device receives the fourth data packet and the fifth data packet sent by the core network device.
通常,由于来自于第二终端设备的数据包是发送给第一终端设备的,因此,核心网设备在向接入网上设备发送来自第二终端设备的数据包时,会从第一终端设备的数 据通道发送。接入网设备接收到从第一终端设备的数据通道传输的数据时,进一步将该数据发送给第一终端设备。因此,在本申请第二实施例中,第五数据包是来自第二终端设备的,核心网设备将从第一终端设备的数据通道发送第五数据包给接入网设备,从第二终端设备的数据通道发送第四数据包给接入网设备。第四数据包包括第一数据,第五数据包包括第二数据。核心网设备对第四数据包中的第一数据和第五数据包中的第二数据编码形成第三数据。这里,核心网设备和接入网设备之间的数据通道可以是有线数据通道。Usually, since the data packet from the second terminal device is sent to the first terminal device, when the core network device sends the data packet from the second terminal device to the access network device, it will data channel transmission. When the access network device receives the data transmitted from the data channel of the first terminal device, it further sends the data to the first terminal device. Therefore, in the second embodiment of the present application, the fifth data packet is from the second terminal device, and the core network device will send the fifth data packet from the data channel of the first terminal device to the access network device, and the second terminal device will send the fifth data packet from the data channel of the first terminal device to the access network device. The data channel of the device sends the fourth data packet to the access network device. The fourth data packet includes the first data, and the fifth data packet includes the second data. The core network device encodes the first data in the fourth data packet and the second data in the fifth data packet to form third data. Here, the data channel between the core network device and the access network device may be a wired data channel.
可以理解,接入网设备发送给核心网设备的第一数据和第二数据去除了第一数据包的包头和第二数据包的包头。在核心网设备通过第四数据包发送第一数据给接入网设备时,接入网设备需要识别第四数据包中的数据是第一数据。在核心网设备通过第五数据包发送第二数据给接入网设备时,接入网设备需要识别第五数据包中的数据是第二数据。接入网设备可以通过两种方式确定第四数据包中的数据与第一数据包中的数据相同,第五数据包中的数据与第二数据包中的数据相同。It can be understood that the first data and the second data sent by the access network device to the core network device have removed the packet header of the first data packet and the packet header of the second data packet. When the core network device sends the first data to the access network device through the fourth data packet, the access network device needs to identify that the data in the fourth data packet is the first data. When the core network device sends the second data to the access network device through the fifth data packet, the access network device needs to identify that the data in the fifth data packet is the second data. The access network device can determine in two ways that the data in the fourth data packet is the same as the data in the first data packet, and the data in the fifth data packet is the same as the data in the second data packet.
方式一:将第四数据包与从第一终端设备接收的数据包比较,将第五数据包与从第二终端设备接收的数据包比较。Manner 1: Compare the fourth data packet with the data packet received from the first terminal device, and compare the fifth data packet with the data packet received from the second terminal device.
在方式一中,核心网设备将从第一终端设备的数据通道发送第五数据包给接入网设备,从第二终端设备的数据通道发送第四数据包给接入网设备。因此,接入网设备接收到第四数据包,能够获知第四数据包中的数据是来自于第一终端设备。为了确定第四数据包中的数据和来自第一终端设备的哪个数据包中的数据相同,会对从核心网设备接收的第四数据包中的数据和从第一终端设备接收的数据包中的数据进行比较。通过比较可以确定第四数据包中的数据和第一数据包中的数据相同。比较相同之后,可以将接入网设备存储的来自第一终端设备的第一数据删除,减少后续从核心网设备接收的其他数据包的比较样本。同样的,接入网设备对从核心网设备接收的第五数据包中的数据和从第二终端设备接收的数据包中的数据进行比较。通过比较可以确定第五数据包中的数据和第二数据包中的数据相同。In manner 1, the core network device sends the fifth data packet from the data channel of the first terminal device to the access network device, and sends the fourth data packet from the data channel of the second terminal device to the access network device. Therefore, when the access network device receives the fourth data packet, it can learn that the data in the fourth data packet is from the first terminal device. In order to determine which data packet in the fourth data packet is the same as which data packet from the first terminal device, the data in the fourth data packet received from the core network device and the data packet received from the first terminal device are analyzed. data for comparison. Through the comparison, it can be determined that the data in the fourth data packet is the same as the data in the first data packet. After the comparison is the same, the first data from the first terminal device stored by the access network device can be deleted, and the comparison samples of other data packets subsequently received from the core network device can be reduced. Likewise, the access network device compares the data in the fifth data packet received from the core network device with the data in the data packet received from the second terminal device. Through the comparison, it can be determined that the data in the fifth data packet is the same as the data in the second data packet.
方式二:第四数据包包括第一数据包中的第一序列号,根据第一序列号确定第四数据包中的数据与第一数据包中的数据相同,第五数据包包括第二数据包中的第二序列号,根据第二序列号确定第五数据包中的数据与第二数据包中的数据相同。Mode 2: The fourth data packet includes the first sequence number in the first data packet, and it is determined according to the first sequence number that the data in the fourth data packet is the same as the data in the first data packet, and the fifth data packet includes the second data The second sequence number in the packet, according to the second sequence number, it is determined that the data in the fifth data packet is the same as the data in the second data packet.
在方式二中,接入网设备在向核心网设备发送第一数据时,会将第一数据包中的第一序列号SN1也发送给核心网设备,核心网设备接收到第一数据以及第一数据关联的第一序列号SN1。核心网设备在通过第四数据包将第一数据发送给接入网设备时,会将第一序列号SN1也通过第四数据包发送给接入网设备。接入网设备根据第一序列号SN1可以确定第四数据包中的数据与第一数据包中的数据相同。同样的,接入网设备在向核心网设备发送第二数据时,会将第二数据包中的第二序列号SN2也发送给核心网设备,核心网设备接收到第二数据以及第二数据关联的第二序列号SN2。核心网设备在通过第五数据包将第二数据发送给接入网设备时,会将第二序列号SN2也通过第五数据包发送给接入网设备。接入网设备根据第二序列号SN2可以确定第五数据包中的数据与第二数据包中的数据相同。In the second mode, when the access network device sends the first data to the core network device, it will also send the first sequence number SN1 in the first data packet to the core network device, and the core network device receives the first data and the first sequence number SN1. The first sequence number SN1 of a data association. When sending the first data to the access network device through the fourth data packet, the core network device will also send the first sequence number SN1 to the access network device through the fourth data packet. The access network device may determine, according to the first sequence number SN1, that the data in the fourth data packet is the same as the data in the first data packet. Similarly, when the access network device sends the second data to the core network device, it will also send the second sequence number SN2 in the second data packet to the core network device, and the core network device receives the second data and the second data The associated second sequence number SN2. When sending the second data to the access network device through the fifth data packet, the core network device will also send the second sequence number SN2 to the access network device through the fifth data packet. The access network device may determine, according to the second sequence number SN2, that the data in the fifth data packet is the same as the data in the second data packet.
接入网设备进一步将第四数据包中的第一数据和第五数据包中的第二数据编码生成第 三数据,可以添加包头形成第三数据包,发送给第一终端设备和/或第二终端设备。这部分内容与405相同,此处不再赘述。The access network device further encodes the first data in the fourth data packet and the second data in the fifth data packet to generate third data, and can add a packet header to form a third data packet, which is sent to the first terminal device and/or the third data packet. Two terminal equipment. This part of the content is the same as 405, and will not be repeated here.
在本申请第二实施例中,接入网设备在接收到第一数据和第二数据后,进一步将第一数据和第二数据发送给核心网设备,核心网设备再发送给接入网设备,能够增强第一终端设备和第二终端设备之间的通信安全。例如,核心网设备如果部署了数据监测功能,则监测功能可以根据核心网设备收到的数据包进行分析和监测。In the second embodiment of the present application, after receiving the first data and the second data, the access network device further sends the first data and the second data to the core network device, and the core network device then sends it to the access network device , the communication security between the first terminal device and the second terminal device can be enhanced. For example, if a data monitoring function is deployed on the core network device, the monitoring function can analyze and monitor the data packets received by the core network device.
前文介绍了本申请实施例的通信的方法,下文中将介绍本申请中各个实施例中的通信的装置。例如该装置可以采用本申请实施例示出的方法。由于方法、装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。The communication method in the embodiments of the present application is described above, and the communication device in each embodiment of the present application will be described below. For example, the apparatus may adopt the methods shown in the embodiments of the present application. Since the principle of solving the problem by the method and the device is similar, the implementation of the device and the method can be referred to each other, and repeated descriptions will not be repeated here.
本申请实施例提供一种通信装置,该通信装置可以是网络设备也可以是电路。该通信装置可以用于执行本申请实施例的方法中由网络设备所执行的动作。通信装置包括:收发模块,用于接收来自第一终端设备的第一数据包和来自第二终端设备的第二数据包,第一数据包包括第一数据,第二数据包包括第二数据。第一终端设备和第二终端设备在发送第一数据之前,协议栈的各层对第一数据进行相应的处理。例如,第一数据依次经过SDAP层、PDCP层、RLC层和MAC层,分别在各层添加相应的包头。其中,SDAP层和RLC层有不添加包头的传输方式。处理模块,用于对第一数据和第二数据编码生成第三数据。收发模块,用于向第一终端设备和/或第二终端设备发送第三数据。编码方式可以包括异或运算,也就是对第一数据和第二数据进行异或生成第三数据。An embodiment of the present application provides a communication apparatus, and the communication apparatus may be a network device or a circuit. The communication apparatus may be configured to perform the actions performed by the network device in the methods of the embodiments of the present application. The communication apparatus includes: a transceiver module for receiving a first data packet from a first terminal device and a second data packet from a second terminal device, where the first data packet includes first data, and the second data packet includes second data. Before the first terminal device and the second terminal device send the first data, each layer of the protocol stack performs corresponding processing on the first data. For example, the first data passes through the SDAP layer, the PDCP layer, the RLC layer and the MAC layer in sequence, and corresponding packet headers are added to each layer respectively. Among them, the SDAP layer and the RLC layer have a transmission mode that does not add packet headers. The processing module is used for encoding the first data and the second data to generate the third data. A transceiver module, configured to send third data to the first terminal device and/or the second terminal device. The encoding manner may include an exclusive OR operation, that is, performing an exclusive OR on the first data and the second data to generate the third data.
本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码形成第三数据,并向第一终端设备和/或第二终端设备发送编码形成的第三数据,实现第一终端设备和第二终端设备之间的相互通信,节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data, The encoded third data is sent to the first terminal device and/or the second terminal device, so as to realize mutual communication between the first terminal device and the second terminal device and save downlink resources.
本申请实施例所提供的通信装置,还可以用于执行本申请方法实施例的中任一可能的实现方式中的方法,具体内容可以参照方法实施例中关于网络设备所执行动作的部分内容,此处不再赘述。The communication apparatus provided by the embodiments of the present application can also be used to execute the method in any possible implementation manner of the method embodiments of the present application. For details, refer to the part of the content about the actions performed by the network device in the method embodiments. It will not be repeated here.
本申请实施例提供一种通信装置,该通信装置可以是终端设备也可以是电路。该通信装置可以用于执行本申请实施例的方法由终端设备所执行的动作。通信装置包括:收发模块,用于发送第一数据包,第一数据包包括第一数据。收发模块用于接收来自网络设备的第三数据包,第三数据包包括第三数据。处理模块用于根据第一数据解码第三数据,生成第二数据。处理模块用于根据第一数据解码第三数据的解码可以为:处理模块用于将第一数据和第三数据进行异或运算生成第二数据。An embodiment of the present application provides a communication apparatus, and the communication apparatus may be a terminal device or a circuit. The communication apparatus may be used to perform the actions performed by the terminal device in the method of the embodiment of the present application. The communication device includes: a transceiver module for sending a first data packet, where the first data packet includes first data. The transceiver module is configured to receive a third data packet from the network device, where the third data packet includes third data. The processing module is used for decoding the third data according to the first data to generate the second data. The decoding used by the processing module to decode the third data according to the first data may be: the processing module is used to perform an exclusive OR operation on the first data and the third data to generate the second data.
在本申请实施例中,当第一终端设备和第二终端设备互相进行通信时,网络设备对第一终端设备发送的第一数据和第二终端设备发送的第二数据进行编码形成第三数据,并向第一终端设备和/或第二终端设备发送编码形成的第三数据。第一终端设备可以根据第一数据解码第三数据,从而获取第二数据。由此实现第一终端设备和第二终端设备之间的相互通信,节省下行资源。In this embodiment of the present application, when the first terminal device and the second terminal device communicate with each other, the network device encodes the first data sent by the first terminal device and the second data sent by the second terminal device to form third data , and send the encoded third data to the first terminal device and/or the second terminal device. The first terminal device may decode the third data according to the first data, thereby acquiring the second data. Thereby, mutual communication between the first terminal device and the second terminal device is realized, and downlink resources are saved.
本实施例所提供的通信装置,还可以用于执行第一实施例的方法中任一可能的实现方式中的方法,具体内容可以参照本申请实施例的方法中关于终端设备所执行动作的部分内 容,此处不再赘述。The communication apparatus provided in this embodiment can also be used to execute the method in any possible implementation manner of the method in the first embodiment. For details, please refer to the part about the actions performed by the terminal device in the method in the embodiment of this application. The content will not be repeated here.
本申请实施例中的通信装置为网络设备时,该网络设备可以如图6所示,装置600包括一个或多个射频单元,如远端射频单元(remote radio unit,RRU)610和一个或多个基带单元620(baseband unit,BBU),也可称为数字单元(digital unit,DU)。所述RRU 610可以称为收发模块。可选地,该收发模块还可以称为收发机、收发电路、或者收发器等等,其可以包括至少一个天线611和射频单元612。所述RRU 610部分主要用于射频信号的收发以及射频信号与基带信号的转换,例如用于向终端设备发送指示信息。所述BBU 610部分主要用于进行基带处理,对基站进行控制等。所述RRU 610与BBU 620可以是物理上设置在一起,也可以物理上分离设置的,即分布式基站。When the communication device in this embodiment of the present application is a network device, the network device may be as shown in FIG. 6 , and the device 600 includes one or more radio frequency units, such as a remote radio unit (remote radio unit, RRU) 610 and one or more radio frequency units Each baseband unit 620 (baseband unit, BBU) may also be referred to as a digital unit (digital unit, DU). The RRU 610 may be referred to as a transceiver module. Optionally, the transceiver module may also be referred to as a transceiver, a transceiver circuit, or a transceiver, etc., which may include at least one antenna 611 and a radio frequency unit 612 . The part of the RRU 610 is mainly used for transmitting and receiving radio frequency signals and converting radio frequency signals and baseband signals, for example, for sending indication information to terminal equipment. The part of the BBU 610 is mainly used to perform baseband processing, control the base station, and the like. The RRU 610 and the BBU 620 may be physically set together, or may be physically separated, that is, a distributed base station.
所述BBU 620为基站的控制中心,也可以称为处理模块,可以与处理模块对应,主要用于完成基带处理功能,如信道编码,复用,调制,扩频等等。例如所述BBU(处理模块)可以用于控制基站执行上述方法实施例中关于网络设备的操作流程,例如,生成上述指示信息等。The BBU 620 is the control center of the base station, and can also be called a processing module, which can correspond to the processing module, and is mainly used to complete baseband processing functions, such as channel coding, multiplexing, modulation, spread spectrum, and the like. For example, the BBU (processing module) may be used to control the base station to perform the operation procedure of the network device in the foregoing method embodiments, for example, to generate the foregoing indication information and the like.
在一个示例中,所述BBU 620可以由一个或多个单板构成,多个单板可以共同支持单一接入制式的无线接入网,也可以分别支持不同接入制式的无线接入网(如LTE网,5G网或其他网)。所述BBU 620还包括存储器621和处理器622。所述存储器621用以存储必要的指令和数据。所述处理器622用于控制基站进行必要的动作,例如用于控制基站执行上述方法实施例中关于网络设备的操作流程。所述存储器621和处理器622可以服务于一个或多个单板。也就是说,可以每个单板上单独设置存储器和处理器。也可以是多个单板共用相同的存储器和处理器。此外每个单板上还可以设置有必要的电路。In an example, the BBU 620 may be composed of one or more single boards, and the multiple single boards may jointly support a wireless access network of a single access standard, or may respectively support a wireless access network of different access standards ( Such as LTE network, 5G network or other network). The BBU 620 also includes a memory 621 and a processor 622. The memory 621 is used to store necessary instructions and data. The processor 622 is configured to control the base station to perform necessary actions, for example, to control the base station to perform the operation procedure of the network device in the foregoing method embodiments. The memory 621 and processor 622 may serve one or more single boards. That is to say, the memory and processor can be provided separately on each single board. It can also be that multiple boards share the same memory and processor. In addition, necessary circuits may also be provided on each single board.
图7示出了一种简化的通信装置的结构示意图,便于理解和图示方便,图7中,通信装置以终端设备作为例子。如图7所示,该通信装置包括处理器、存储器、射频电路、天线以及输入输出装置。处理器主要用于对通信协议以及通信数据进行处理,以及对终端设备进行控制,执行软件程序,处理软件程序的数据等。存储器主要用于存储软件程序和数据。射频电路主要用于基带信号与射频信号的转换以及对射频信号的处理。天线主要用于收发电磁波形式的射频信号。输入输出装置,例如触摸屏、显示屏,键盘等主要用于接收用户输入的数据以及对用户输出数据。需要说明的是,有些种类的终端设备可以不具有输入输出装置。FIG. 7 shows a schematic structural diagram of a simplified communication apparatus, which is convenient for understanding and illustration. In FIG. 7 , the communication apparatus takes a terminal device as an example. As shown in FIG. 7 , the communication device includes a processor, a memory, a radio frequency circuit, an antenna, and an input and output device. The processor is mainly used to process communication protocols and communication data, control terminal equipment, execute software programs, and process data of software programs. The memory is mainly used to store software programs and data. The radio frequency circuit is mainly used for the conversion of the baseband signal and the radio frequency signal and the processing of the radio frequency signal. Antennas are mainly used to send and receive radio frequency signals in the form of electromagnetic waves. Input and output devices, such as touch screens, display screens, and keyboards, are mainly used to receive data input by users and output data to users. It should be noted that some types of terminal equipment may not have input and output devices.
当需要发送数据时,处理器对待发送的数据进行基带处理后,输出基带信号至射频电路,射频电路将基带信号进行射频处理后将射频信号通过天线以电磁波的形式向外发送。当有数据发送到终端设备时,射频电路通过天线接收到射频信号,将射频信号转换为基带信号,并将基带信号输出至处理器,处理器将基带信号转换为数据并对该数据进行处理。为便于说明,图7中仅示出了一个存储器和处理器。在实际的终端设备产品中,可以存在一个或多个处理器和一个或多个存储器。存储器也可以称为存储介质或者存储设备等。存储器可以是独立于处理器设置,也可以是与处理器集成在一起,本申请实施例对此不做限制。When data needs to be sent, the processor performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit. The radio frequency circuit performs radio frequency processing on the baseband signal and sends the radio frequency signal through the antenna in the form of electromagnetic waves. When data is sent to the terminal device, the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor, which converts the baseband signal into data and processes the data. For ease of illustration, only one memory and processor are shown in FIG. 7 . In an actual end device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device or the like. The memory may be set independently of the processor, or may be integrated with the processor, which is not limited in this embodiment of the present application.
在本申请实施例中,可以将具有收发功能的天线和射频电路视为通信装置的收发模块,将具有处理功能的处理器视为通信装置的处理模块。如图7所示,通信装置包括收发模块 701和处理模块702。收发模块可以为收发器、收发机、收发装置等。处理模块也可以为处理器,处理单板,处理装置等。可选的,可以将收发模块701中用于实现接收功能的器件视为接收模块,将收发模块701中用于实现发送功能的器件视为发送模块,即收发模块801包括接收模块和发送模块。收发模块有时也可以为收发机、收发器、或收发电路等。接收模块有时也可以为接收机、接收器、或接收电路等。发送模块有时也可以为发射机、发射器或者发射电路等。In the embodiments of the present application, the antenna and the radio frequency circuit with a transceiver function can be regarded as a transceiver module of the communication device, and the processor with a processing function can be regarded as a processing module of the communication device. As shown in FIG. 7 , the communication device includes a transceiver module 701 and a processing module 702. The transceiver module may be a transceiver, a transceiver, a transceiver device, and the like. The processing module may also be a processor, a processing board, a processing device, and the like. Optionally, the device for implementing the receiving function in the transceiver module 701 may be regarded as a receiving module, and the device for implementing the transmitting function in the transceiver module 701 may be regarded as a transmitting module, that is, the transceiver module 801 includes a receiving module and a transmitting module. The transceiver module may also sometimes be a transceiver, a transceiver, or a transceiver circuit or the like. The receiving module may also sometimes be a receiver, a receiver, or a receiving circuit or the like. The transmitting module may also be a transmitter, a transmitter or a transmitting circuit sometimes.
应理解,收发模块701用于执行上述方法实施例中终端设备侧的发送操作和接收操作,处理模块702用于执行上述方法实施例中终端设备上除了收发操作之外的其他操作。It should be understood that the transceiver module 701 is configured to perform the sending and receiving operations on the terminal device side in the above method embodiments, and the processing module 702 is configured to perform other operations on the terminal device in the above method embodiments except for the transceiver operations.
当该通信装置为芯片类的装置或者电路时,该芯片装置可以包括收发模块和处理模块。其中,所述收发模块可以是输入输出电路、和/或通信接口;处理模块为该芯片上集成的处理器或者微处理器或者集成电路。When the communication device is a chip-type device or circuit, the chip device may include a transceiver module and a processing module. Wherein, the transceiver module may be an input/output circuit and/or a communication interface; the processing module is a processor, a microprocessor or an integrated circuit integrated on the chip.
本实施例中的通信装置为终端设备时,可以参照图8所示的设备。在图8中,该设备包括处理器801,发送数据处理器802,接收数据处理器803。上述实施例中的处理模块可以是图8中的该处理器801,并完成相应的功能。上述实施例中的收发模块可以是图9中的发送数据处理器802,和/或接收数据处理器803。虽然图8中示出了信道编码器、信道解码器,但是可以理解这些模块并不对本实施例构成限制性说明,仅是示意性的。When the communication device in this embodiment is a terminal device, reference may be made to the device shown in FIG. 8 . In FIG. 8 , the device includes a processor 801 , a transmit data processor 802 , and a receive data processor 803 . The processing module in the above-mentioned embodiment may be the processor 801 in FIG. 8 and perform corresponding functions. The transceiver module in the above embodiment may be the sending data processor 802 and/or the receiving data processor 803 in FIG. 9 . Although a channel encoder and a channel decoder are shown in FIG. 8 , it should be understood that these modules do not constitute a limiting description of this embodiment, but are only illustrative.
图9示出本实施例的另一种形式。处理装置900中包括调制子系统、中央处理子系统、周边子系统等模块。本实施例中的通信装置可以作为其中的调制子系统。具体的,该调制子系统可以包括处理器903,接口904。其中处理器903完成上述处理模块的功能,接口904完成上述收发模块的功能。作为另一种变形,该调制子系统包括存储器906、处理器903及存储在存储器906上并可在处理器上运行的程序,该处理器903执行该程序时实现上述方法实施例中终端设备侧的方法。需要注意的是,所述存储器906可以是非易失性的,也可以是易失性的,其位置可以位于调制子系统内部,也可以位于处理装置900中,只要该存储器906可以连接到所述处理器903即可。FIG. 9 shows another form of this embodiment. The processing device 900 includes modules such as a modulation subsystem, a central processing subsystem, and a peripheral subsystem. The communication apparatus in this embodiment may serve as a modulation subsystem therein. Specifically, the modulation subsystem may include a processor 903 and an interface 904 . The processor 903 completes the function of the above-mentioned processing module, and the interface 904 implements the function of the above-mentioned transceiver module. As another variant, the modulation subsystem includes a memory 906, a processor 903, and a program stored in the memory 906 and executable on the processor. When the processor 903 executes the program, the terminal device side in the foregoing method embodiment is implemented. Methods. It should be noted that the memory 906 may be non-volatile or volatile, and its location may be inside the modulation subsystem or in the processing device 900, as long as the memory 906 can be connected to the The processor 903 is sufficient.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (51)

  1. 一种通信方法,其特征在于,包括:A communication method, comprising:
    接收来自第一终端设备的第一数据包和来自第二终端设备的第二数据包,所述第一数据包包括第一数据,所述第二数据包包括第二数据;receiving a first data packet from a first terminal device and a second data packet from a second terminal device, the first data packet including first data, and the second data packet including second data;
    对所述第一数据和所述第二数据编码生成第三数据;encoding the first data and the second data to generate third data;
    向所述第一终端设备和/或所述第二终端设备发送所述第三数据。The third data is sent to the first terminal device and/or the second terminal device.
  2. 如权利要求1所述的方法,其特征在于,The method of claim 1, wherein:
    所述第一数据包包括第一包头,所述第二数据包包括第二包头,所述第一包头包括第一序列号,所述第二包头包括第二序列号;The first packet includes a first packet header, the second packet includes a second packet header, the first packet header includes a first sequence number, and the second packet header includes a second sequence number;
    所述向所述第一终端设备和/或所述第二终端设备发送所述第三数据包括:通过第三数据包发送所述第三数据,所述第三数据包包括所述第一序列号和所述第二序列号。The sending the third data to the first terminal device and/or the second terminal device includes: sending the third data through a third data packet, where the third data packet includes the first sequence number and the second serial number.
  3. 如权利要求1或2所述的方法,其特征在于,The method according to claim 1 or 2, characterized in that,
    所述向所述第一终端设备和/或所述第二终端设备发送所述第三数据包括:通过第三数据包发送所述第三数据,所述第三数据包包括所述第一终端设备的第一完整性保护域和所述第二终端设备的第二完整性保护域。The sending the third data to the first terminal device and/or the second terminal device includes: sending the third data through a third data packet, where the third data packet includes the first terminal a first integrity protection domain of the device and a second integrity protection domain of the second terminal device.
  4. 如权利要求1-3任一项所述的方法,其特征在于,The method according to any one of claims 1-3, wherein,
    所述向所述第一终端设备和/或所述第二终端设备发送所述第三数据包括:通过公共传输通道发送所述第三数据。The sending the third data to the first terminal device and/or the second terminal device includes: sending the third data through a common transmission channel.
  5. 如权利要求4所述的方法,其特征在于,The method of claim 4, wherein:
    所述第一数据包属于第一服务质量流,所述第二数据包属于第二服务质量流;The first data packet belongs to the first quality of service flow, and the second data packet belongs to the second quality of service flow;
    所述方法还包括:将所述第一服务质量流和所述第二服务质量流映射到所述公共传输通道。The method also includes mapping the first quality of service flow and the second quality of service flow to the common transmission channel.
  6. 如权利要求4或5所述的方法,其特征在于,还包括:The method of claim 4 or 5, further comprising:
    向所述第一终端设备和/或所述第二终端设备发送所述公共传输通道的参数,所述公共传输通道的参数包括以下信息中的一个或多个:Send the parameters of the common transmission channel to the first terminal device and/or the second terminal device, where the parameters of the common transmission channel include one or more of the following information:
    公共传输通道配置信息,所述公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个;Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter;
    无线网络临时标识;Wireless network temporary identification;
    部分带宽信息:Some bandwidth information:
    所述第一数据包和/或所述第二数据包的上行数据通道信息;Uplink data channel information of the first data packet and/or the second data packet;
    指示信息,所述指示信息用于指示所述第一终端设备关联第一控制字段和/或用于指示所述第二终端设备关联第二控制字段,所述第一控制字段包括第一序列号和/或第一完整性保护域,所述第二控制字段包括第二序列号和/或第二完整性保护域。Indication information, where the indication information is used to instruct the first terminal device to associate with a first control field and/or to instruct the second terminal device to associate with a second control field, where the first control field includes a first sequence number and/or a first integrity protection field, the second control field includes a second sequence number and/or a second integrity protection field.
  7. 如权利要求1-6任一项所述的方法,其特征在于,还包括:The method of any one of claims 1-6, further comprising:
    向核心网设备发送所述第一数据和所述第二数据,接收所述核心网设备发送的第四数据包和第五数据包,所述第四数据包包括所述第一数据,所述第五数据包包括所述第二数据;Send the first data and the second data to the core network device, receive the fourth data packet and the fifth data packet sent by the core network device, the fourth data packet includes the first data, the the fifth data packet includes the second data;
    所述对所述第一数据和所述第二数据编码形成第三数据包括:The encoding the first data and the second data to form the third data includes:
    对所述第四数据包中的所述第一数据和所述第五数据包中的所述第二数据编码形成所述第三数据。The third data is formed by encoding the first data in the fourth data packet and the second data in the fifth data packet.
  8. 如权利要求7所述的方法,其特征在于,还包括:The method of claim 7, further comprising:
    确定所述第四数据包中的数据与所述第一数据包中的数据相同,所述第五数据包中的数据与所述第二数据包中的数据相同。It is determined that the data in the fourth data packet is the same as the data in the first data packet, and the data in the fifth data packet is the same as the data in the second data packet.
  9. 如权利要求8所述的方法,其特征在于,The method of claim 8, wherein:
    所述所述第四数据包中的数据与所述第一数据包中的数据相同包括:将所述第四数据包与从所述第一终端设备接收的数据包比较;和/或The data in the fourth data packet being identical to the data in the first data packet comprises: comparing the fourth data packet with the data packet received from the first terminal device; and/or
    确定所述第五数据包中的数据与所述第二数据包中的数据相同包括:将所述第五数据包与从终端设备接收的数据包比较。Determining that the data in the fifth data packet is the same as the data in the second data packet includes comparing the fifth data packet with a data packet received from an end device.
  10. 如权利要求8所述的方法,其特征在于,The method of claim 8, wherein:
    所述确定所述第四数据包中的数据与所述第一数据包中的数据相同包括:所述第四数据包包括所述第一数据包的第一序列号,根据所述第一序列号确定所述第四数据包中的数据与所述第一数据包中的数据相同;和/或The determining that the data in the fourth data packet is the same as the data in the first data packet includes: the fourth data packet includes a first sequence number of the first data packet, according to the first sequence number number to determine that the data in the fourth data packet is the same as the data in the first data packet; and/or
    所述确定所述第五数据包中的数据与所述第二数据包中的数据相同包括:所述第五数据包包括所述第二数据包的第二序列号,根据所述第二序列号确定所述第五数据包中的数据与所述第二数据包中的数据相同。The determining that the data in the fifth data packet is the same as the data in the second data packet includes: the fifth data packet includes a second sequence number of the second data packet, according to the second sequence number number to determine that the data in the fifth data packet is the same as the data in the second data packet.
  11. 如权利要求1-10任一项所述的方法,其特征在于,The method of any one of claims 1-10, wherein,
    所述第一数据包的目标地址为所述第二终端设备,所述第二数据包的目标地址为所述第一终端设备;The destination address of the first data packet is the second terminal device, and the destination address of the second data packet is the first terminal device;
    所述第一终端设备和所述第二终端设备在同一小区或所述第一终端设备和所述第二终端设备的服务网络设备为同一个网络设备。The first terminal device and the second terminal device are in the same cell, or the service network devices of the first terminal device and the second terminal device are the same network device.
  12. 如权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-11, wherein the method further comprises:
    检测所述第一数据包的目标地址和所述第二数据包的目标地址;Detecting the destination address of the first data packet and the destination address of the second data packet;
    确定所述第一数据包的目标地址为所述第二终端设备,所述第二数据包的目标地址为所述第一终端设备。It is determined that the destination address of the first data packet is the second terminal device, and the destination address of the second data packet is the first terminal device.
  13. 如权利要求1-12任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-12, wherein the method further comprises:
    检测所述第一终端设备的服务小区和/或服务网络设备,检测所述第二终端设备的服务小区和/或服务网络设备;Detecting the serving cell and/or serving network device of the first terminal device, and detecting the serving cell and/or serving network device of the second terminal device;
    确定所述第一终端设备的服务小区和所述第二终端设备的服务小区为同一个服务小区;和/或determining that the serving cell of the first terminal device and the serving cell of the second terminal device are the same serving cell; and/or
    确定所述第一终端设备的服务网络设备和所述第二终端设备的服务网络设备为同一个网络设备。It is determined that the serving network device of the first terminal device and the serving network device of the second terminal device are the same network device.
  14. 如权利要求1-13任一项所述的方法,其特征在于,The method of any one of claims 1-13, wherein,
    所述对所述第一数据和所述第二数据编码形成第三数据包括:所述第一数据和所述第二数据进行异或形成所述第三数据。The encoding the first data and the second data to form the third data includes: XORing the first data and the second data to form the third data.
  15. 一种通信方法,其特征在于,包括:A communication method, comprising:
    发送第一数据包,所述第一数据包包括第一数据;sending a first data packet, the first data packet including first data;
    接收第三数据包,所述第三数据包包括第三数据;receiving a third data packet, the third data packet including third data;
    根据所述第一数据解码所述第三数据,生成第二数据。The third data is decoded from the first data to generate second data.
  16. 如权利要求15所述的方法,其特征在于,The method of claim 15, wherein
    所述第三数据包包括第一控制字段和第二控制字段,所述第一控制字段包括所述第一完整性保护域和/或第一序列号,所述第二控制字段包括第二完整性保护域和/或第二序列号;The third data packet includes a first control field and a second control field, the first control field includes the first integrity protection field and/or a first sequence number, and the second control field includes a second integrity Sexual protection domain and/or second serial number;
    所述方法还包括:确定第三控制字段,所述第三控制字段为所述第一控制字段或所述第二控制字段。The method further includes determining a third control field, the third control field being the first control field or the second control field.
  17. 如权利要求16所述的方法,其特征在于,The method of claim 16, wherein
    所述确定第三控制字段包括:确定第三序列号,所述第三序列号为所述第一序列号或所述第二序列号;The determining the third control field includes: determining a third serial number, where the third serial number is the first serial number or the second serial number;
    所述方法还包括:根据所述第三序列号确定所述第一数据。The method further includes determining the first data according to the third sequence number.
  18. 如权利要求17所述的方法,其特征在于,The method of claim 17, wherein:
    所述第一数据包包括第一包头,所述第一包头包括所述第三序列号。The first data packet includes a first packet header, and the first packet header includes the third sequence number.
  19. 如权利要求16-18任一项所述的方法,其特征在于,The method of any one of claims 16-18, wherein,
    所述确定第三控制字段包括:确定第三完整性保护域,所述第三完整性保护域为所述第一完整性保护域或所述第二完整性保护域;The determining the third control field includes: determining a third integrity protection domain, where the third integrity protection domain is the first integrity protection domain or the second integrity protection domain;
    所述方法还包括:根据所述第三完整性保护域验证所述第三数据的完整性保护有效性。The method further includes: verifying the integrity protection validity of the third data according to the third integrity protection domain.
  20. 如权利要求16-19任一项所述的方法,其特征在于,还包括:The method of any one of claims 16-19, further comprising:
    接收指示信息,所述指示信息用于指示所述第三控制字段。Receive indication information, where the indication information is used to indicate the third control field.
  21. 如权利要求15-20任一项所述的方法,其特征在于,还包括:The method of any one of claims 15-20, further comprising:
    接收公共传输通道的参数;Receive the parameters of the public transmission channel;
    所述接收第三数据包包括:根据所述公共传输通道的参数在所述公共传输通道上接收所述第三数据包。The receiving the third data packet includes: receiving the third data packet on the common transmission channel according to the parameters of the common transmission channel.
  22. 如权利要求21所述的方法,其特征在于,The method of claim 21, wherein
    所述公共传输通道参数包括以下一个或多个:The common transmission channel parameters include one or more of the following:
    公共传输通道配置信息,所述公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个;Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter;
    无线网络临时标识;Wireless network temporary identification;
    部分带宽信息:Some bandwidth information:
    所述第一数据包的上行数据信息通道信息的上行数据信息通道信息;Uplink data information channel information of the uplink data information channel information of the first data packet;
    指示信息,所述指示信息用于指示终端设备对应的控制字段,所述控制字段包括完整性保护域和/或序列号。Indication information, where the indication information is used to indicate a control field corresponding to the terminal device, and the control field includes an integrity protection field and/or a serial number.
  23. 一种通信装置,其特征在于,包括:A communication device, comprising:
    收发模块,用于接收来自第一终端设备的第一数据包和来自第二终端设备的第二数据包,所述第一数据包包括第一数据,所述第二数据包包括第二数据;a transceiver module, configured to receive a first data packet from a first terminal device and a second data packet from a second terminal device, where the first data packet includes first data, and the second data packet includes second data;
    处理模块,用于对所述第一数据和所述第二数据编码生成第三数据;a processing module, configured to encode the first data and the second data to generate third data;
    所述收发模块,用于向所述第一终端设备和/或所述第二终端设备发送所述第三数据。The transceiver module is configured to send the third data to the first terminal device and/or the second terminal device.
  24. 如权利要求23所述的装置,其特征在于,The apparatus of claim 23, wherein
    所述第一数据包包括第一包头,所述第二数据包包括第二包头,所述第一包头包括第一序列号,所述第二包头包括第二序列号;The first packet includes a first packet header, the second packet includes a second packet header, the first packet header includes a first sequence number, and the second packet header includes a second sequence number;
    所述收发模块用于向所述第一终端设备和/或所述第二终端设备发送所述第三数据包括:所述收发模块用于通过第三数据包发送所述第三数据,所述第三数据包包括所述第一序列号和所述第二序列号。The transceiver module configured to send the third data to the first terminal device and/or the second terminal device includes: the transceiver module is configured to send the third data through a third data packet, the The third data packet includes the first sequence number and the second sequence number.
  25. 如权利要求23或24所述的装置,其特征在于,The apparatus of claim 23 or 24, wherein:
    所述收发模块用于向所述第一终端设备和/或所述第二终端设备发送所述第三数据包括:所述收发模块用于通过第三数据包发送所述第三数据,所述第三数据包包括所述第一终端设备的第一完整性保护域和所述第二终端设备的第二完整性保护域。The transceiver module configured to send the third data to the first terminal device and/or the second terminal device includes: the transceiver module is configured to send the third data through a third data packet, the The third data packet includes a first integrity protection domain of the first terminal device and a second integrity protection domain of the second terminal device.
  26. 如权利要求23-25任一项所述的装置,其特征在于,The device according to any one of claims 23-25, characterized in that,
    所述收发模块用于向所述第一终端设备和/或所述第二终端设备发送所述第三数据包括:所述收发模块用于通过公共传输通道发送所述第三数据。The transceiver module configured to send the third data to the first terminal device and/or the second terminal device includes: the transceiver module is configured to send the third data through a common transmission channel.
  27. 如权利要求26所述的装置,其特征在于,The apparatus of claim 26, wherein
    所述第一数据包属于第一服务质量流,所述第二数据包属于第二服务质量流;The first data packet belongs to the first quality of service flow, and the second data packet belongs to the second quality of service flow;
    所述处理模块,用于将所述第一服务质量流和所述第二服务质量流映射到所述公共传输通道。The processing module is configured to map the first quality of service flow and the second quality of service flow to the common transmission channel.
  28. 如权利要求26或27所述的装置,其特征在于,The apparatus of claim 26 or 27, wherein:
    所述收发模块,用于向所述第一终端设备和/或所述第二终端设备发送所述公共传输通道的参数,所述公共传输通道的参数包括以下信息中的一个或多个:The transceiver module is configured to send the parameters of the common transmission channel to the first terminal device and/or the second terminal device, where the parameters of the common transmission channel include one or more of the following information:
    公共传输通道配置信息,所述公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个;Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter;
    无线网络临时标识;Wireless network temporary identification;
    部分带宽信息:Some bandwidth information:
    所述第一数据包和/或所述第二数据包的上行数据通道信息;Uplink data channel information of the first data packet and/or the second data packet;
    指示信息,所述指示信息用于指示所述第一终端设备关联第一控制字段和/或用于指示所述第二终端设备关联第二控制字段,所述第一控制字段包括第一序列号和/或第一完整性保护域,所述第二控制字段包括第二序列号和/或第二完整性保护域。Indication information, where the indication information is used to instruct the first terminal device to associate with a first control field and/or to instruct the second terminal device to associate with a second control field, where the first control field includes a first sequence number and/or a first integrity protection field, the second control field includes a second sequence number and/or a second integrity protection field.
  29. 如权利要求23-28任一项所述的装置,其特征在于,The device according to any one of claims 23-28, characterized in that,
    所述收发模块,用于向核心网设备发送所述第一数据和所述第二数据;the transceiver module, configured to send the first data and the second data to the core network device;
    所述收发模块,用于接收所述核心网设备发送的第四数据包和第五数据包,所述第四数据包包括所述第一数据,所述第五数据包包括所述第二数据;The transceiver module is configured to receive a fourth data packet and a fifth data packet sent by the core network device, where the fourth data packet includes the first data, and the fifth data packet includes the second data ;
    所述处理模块用于对所述第一数据和所述第二数据编码形成第三数据包括:The processing module for encoding the first data and the second data to form third data includes:
    所述处理模块用于对所述第四数据包中的所述第一数据和所述第五数据包中的所述第二数据编码形成所述第三数据。The processing module is configured to encode the first data in the fourth data packet and the second data in the fifth data packet to form the third data.
  30. 如权利要求29所述的装置,其特征在于,The apparatus of claim 29, wherein:
    所述处理模块,用于确定所述第四数据包中的数据与所述第一数据包中的数据相同,所述第五数据包中的数据与所述第二数据包中的数据相同。The processing module is configured to determine that the data in the fourth data packet is the same as the data in the first data packet, and the data in the fifth data packet is the same as the data in the second data packet.
  31. 如权利要求30所述的装置,其特征在于,The apparatus of claim 30, wherein
    所述处理模块用于确定所述第四数据包中的数据与所述第一数据包中的数据相同包括:所述处理模块用于将所述第四数据包与从所述第一终端设备接收的数据包比较;和/或The processing module configured to determine that the data in the fourth data packet is the same as the data in the first data packet includes: the processing module is configured to compare the fourth data packet with the data from the first terminal device. Received packet comparison; and/or
    所述处理模块用于确定所述第五数据包中的数据与所述第二数据包中的数据相同包括:所述处理模块用于将所述第五数据包与从终端设备接收的数据包比较。The processing module configured to determine that the data in the fifth data packet is the same as the data in the second data packet includes: the processing module is configured to compare the fifth data packet with the data packet received from the terminal device Compare.
  32. 如权利要求30所述的装置,其特征在于,The apparatus of claim 30, wherein
    所述处理模块用于确定所述第四数据包中的数据与所述第一数据包中的数据相同包括:所述第四数据包包括所述第一数据包的第一序列号,所述处理模块用于根据所述第一序列号确定所述第四数据包中的数据与所述第一数据包中的数据相同;和/或The processing module for determining that the data in the fourth data packet is the same as the data in the first data packet includes: the fourth data packet includes the first sequence number of the first data packet, the The processing module is configured to determine, according to the first sequence number, that the data in the fourth data packet is the same as the data in the first data packet; and/or
    所述处理模块用于确定所述第五数据包中的数据与所述第二数据包中的数据相同包括:所述第五数据包包括所述第二数据包的第二序列号,所述处理模块用于根据所述第二序列号确定所述第五数据包中的数据与所述第二数据包中的数据相同。The processing module for determining that the data in the fifth data packet is the same as the data in the second data packet includes: the fifth data packet includes the second sequence number of the second data packet, the The processing module is configured to determine, according to the second sequence number, that the data in the fifth data packet is the same as the data in the second data packet.
  33. 如权利要求23-32任一项所述的装置,其特征在于,The device of any one of claims 23-32, wherein,
    所述第一数据包的目标地址为所述第二终端设备,所述第二数据包的目标地址为所述第一终端设备;The destination address of the first data packet is the second terminal device, and the destination address of the second data packet is the first terminal device;
    所述第一终端设备和所述第二终端设备在同一小区或所述第一终端设备和所述第二终端设备的服务网络设备为同一个网络设备。The first terminal device and the second terminal device are in the same cell, or the service network devices of the first terminal device and the second terminal device are the same network device.
  34. 如权利要求23-33任一项所述的装置,其特征在于,The device of any one of claims 23-33, wherein,
    所述处理模块,用于检测所述第一数据包的目标地址和所述第二数据包的目标地址;The processing module is configured to detect the target address of the first data packet and the target address of the second data packet;
    所述处理模块,用于确定所述第一数据包的目标地址为所述第二终端设备,所述第二数据包的目标地址为所述第一终端设备。The processing module is configured to determine that the destination address of the first data packet is the second terminal device, and the destination address of the second data packet is the first terminal device.
  35. 如权利要求23-34任一项所述的装置,其特征在于,The device of any one of claims 23-34, wherein,
    所述处理模块,用于检测所述第一终端设备的服务小区和/或服务网络设备,检测所述第二终端设备的服务小区和/或服务网络设备;the processing module, configured to detect the serving cell and/or the serving network device of the first terminal device, and detect the serving cell and/or the serving network device of the second terminal device;
    所述处理模块,用于确定所述第一终端设备的服务小区和所述第二终端设备的服务小区为同一个服务小区;和/或the processing module, configured to determine that the serving cell of the first terminal device and the serving cell of the second terminal device are the same serving cell; and/or
    所述处理模块,用于确定所述第一终端设备的服务网络设备和所述第二终端设备的服务网络设备为同一个网络设备。The processing module is configured to determine that the serving network device of the first terminal device and the serving network device of the second terminal device are the same network device.
  36. 如权利要求23-35任一项所述的装置,其特征在于,The device of any one of claims 23-35, wherein,
    所述对所述第一数据和所述第二数据编码形成第三数据包括:所述第一数据和所述第二数据进行异或形成所述第三数据。The encoding the first data and the second data to form the third data includes: XORing the first data and the second data to form the third data.
  37. 一种通信装置,其特征在于,包括:A communication device, comprising:
    收发模块,用于发送第一数据包,所述第一数据包包括第一数据;a transceiver module, configured to send a first data packet, where the first data packet includes first data;
    所述收发模块,用于接收第三数据包,所述第三数据包包括第三数据;The transceiver module is configured to receive a third data packet, where the third data packet includes third data;
    处理模块,用于根据所述第一数据解码所述第三数据,生成第二数据。A processing module, configured to decode the third data according to the first data to generate second data.
  38. 如权利要求37所述的装置,其特征在于,The apparatus of claim 37, wherein
    所述第三数据包包括第一控制字段和第二控制字段,所述第一控制字段包括所述第一完整性保护域和/或第一序列号,所述第二控制字段包括第二完整性保护域和/或第二序列号;The third data packet includes a first control field and a second control field, the first control field includes the first integrity protection field and/or a first sequence number, and the second control field includes a second integrity Sexual protection domain and/or second serial number;
    所述处理模块,用于确定第三控制字段,所述第三控制字段为所述第一控制字段或所 述第二控制字段。The processing module is configured to determine a third control field, where the third control field is the first control field or the second control field.
  39. 如权利要求38所述的装置,其特征在于,The apparatus of claim 38, wherein:
    所述处理模块用于确定第三控制字段包括:所述处理模块用于确定第三序列号,所述第三序列号为所述第一序列号或所述第二序列号;The processing module is configured to determine the third control field includes: the processing module is configured to determine a third serial number, where the third serial number is the first serial number or the second serial number;
    所述处理模块,用于根据所述第三序列号确定所述第一数据。The processing module is configured to determine the first data according to the third serial number.
  40. 如权利要求39所述的装置,其特征在于,The apparatus of claim 39, wherein
    所述第一数据包包括第一包头,所述第一包头包括所述第三序列号。The first data packet includes a first packet header, and the first packet header includes the third sequence number.
  41. 如权利要求38-40任一项所述的装置,其特征在于,The device of any one of claims 38-40, wherein,
    所述处理模块用于确定第三控制字段包括:所述处理模块用于确定第三完整性保护域,所述第三完整性保护域为所述第一完整性保护域或所述第二完整性保护域;The processing module configured to determine the third control field includes: the processing module is configured to determine a third integrity protection domain, where the third integrity protection domain is the first integrity protection domain or the second integrity protection domain. Sexual protection domain;
    所述处理模块,用于根据所述第三完整性保护域验证所述第三数据的完整性保护有效性。The processing module is configured to verify the integrity protection validity of the third data according to the third integrity protection domain.
  42. 如权利要求38-41任一项所述的装置,其特征在于,The device of any one of claims 38-41, wherein,
    所述收发模块,用于接收指示信息,所述指示信息用于指示所述第三控制字段。The transceiver module is configured to receive indication information, where the indication information is used to indicate the third control field.
  43. 如权利要求37-42任一项所述的装置,其特征在于,The device of any one of claims 37-42, wherein,
    所述收发模块,用于接收公共传输通道的参数;The transceiver module is used to receive parameters of the public transmission channel;
    所述收发模块用于接收第三数据包包括:所述收发模块用于根据所述公共传输通道的参数在所述公共传输通道上接收所述第三数据包。The transceiver module configured to receive the third data packet includes: the transceiver module is configured to receive the third data packet on the common transmission channel according to parameters of the common transmission channel.
  44. 如权利要求43所述的装置,其特征在于,The apparatus of claim 43, wherein
    所述公共传输通道参数包括以下一个或多个:The common transmission channel parameters include one or more of the following:
    公共传输通道配置信息,所述公共传输通道配置信息包括无线承载标识、分组数据汇聚层协议配置参数或无线链路控制配置参数中的一个或多个;Common transmission channel configuration information, the common transmission channel configuration information includes one or more of a radio bearer identifier, a packet data convergence layer protocol configuration parameter or a radio link control configuration parameter;
    无线网络临时标识;Wireless network temporary identification;
    部分带宽信息:Some bandwidth information:
    所述第一数据包的上行数据信息通道信息的上行数据信息通道信息;Uplink data information channel information of the uplink data information channel information of the first data packet;
    指示信息,所述指示信息用于指示终端设备对应的控制字段,所述控制字段包括完整性保护域和/或序列号。Indication information, where the indication information is used to indicate a control field corresponding to the terminal device, and the control field includes an integrity protection field and/or a serial number.
  45. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-14任一项所述的方法。A computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 1-14.
  46. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求15-22任一项所述的方法。A computer-readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any of claims 15-22.
  47. 一种通信装置,包括存储器和处理器,所述存储器用于存储指令,所述处理器用于执行所述存储器存储的指令,并且对所述存储器中存储的指令执行如权利要求1-14中任一项所述的方法。A communication device, comprising a memory and a processor, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory, and executes the instructions stored in the memory according to any one of claims 1-14. one of the methods described.
  48. 一种通信装置,包括存储器和处理器,所述存储器用于存储指令,所述处理器用于执行所述存储器存储的指令,并且对所述存储器中存储的指令执行如权利要求15-22中任一项所述的方法。A communication device, comprising a memory and a processor, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory, and execute the instructions stored in the memory according to any one of claims 15-22. one of the methods described.
  49. 一种通信系统,其特征在于,包括如权利要23-36中任一项所述的通信装置,和 如权利要求37-44中任一项所述的通信装置。A communication system, characterized by comprising the communication device according to any one of claims 23-36, and the communication device according to any one of claims 37-44.
  50. 一种计算机程序,其特征在于,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-14中任一项所述的通信方法。A computer program, characterized in that, when the computer program is run on a computer, the computer is caused to execute the communication method according to any one of claims 1-14.
  51. 一种计算机程序,其特征在于,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求15-22中任一项所述的通信方法。A computer program, characterized in that, when the computer program is run on a computer, the computer is caused to execute the communication method according to any one of claims 15-22.
PCT/CN2020/119702 2020-09-30 2020-09-30 Communication method and communication apparatus WO2022067785A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/119702 WO2022067785A1 (en) 2020-09-30 2020-09-30 Communication method and communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/119702 WO2022067785A1 (en) 2020-09-30 2020-09-30 Communication method and communication apparatus

Publications (1)

Publication Number Publication Date
WO2022067785A1 true WO2022067785A1 (en) 2022-04-07

Family

ID=80949469

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/119702 WO2022067785A1 (en) 2020-09-30 2020-09-30 Communication method and communication apparatus

Country Status (1)

Country Link
WO (1) WO2022067785A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090323580A1 (en) * 2008-06-27 2009-12-31 Feng Xue Frame structure and sequencing for enabling network coding for wireless relaying
CN101836369A (en) * 2007-08-27 2010-09-15 北方电讯网络有限公司 Communication system using mimo based network coding
CN101843008A (en) * 2007-11-02 2010-09-22 富士通株式会社 Network encoding method and network encoding apparatus
WO2011006442A1 (en) * 2009-07-16 2011-01-20 Huawei Technologies Co., Ltd. Methods for bidirectional relaying in a wireless communication system
CN107615845A (en) * 2015-06-30 2018-01-19 华为技术有限公司 The method and apparatus for transmitting upstream data
US20180054716A1 (en) * 2016-08-16 2018-02-22 Research & Business Foundation Sungkyunkwan University Method and apparatus for index-coded multicast transmission in a wireless communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101836369A (en) * 2007-08-27 2010-09-15 北方电讯网络有限公司 Communication system using mimo based network coding
CN101843008A (en) * 2007-11-02 2010-09-22 富士通株式会社 Network encoding method and network encoding apparatus
US20090323580A1 (en) * 2008-06-27 2009-12-31 Feng Xue Frame structure and sequencing for enabling network coding for wireless relaying
WO2011006442A1 (en) * 2009-07-16 2011-01-20 Huawei Technologies Co., Ltd. Methods for bidirectional relaying in a wireless communication system
CN107615845A (en) * 2015-06-30 2018-01-19 华为技术有限公司 The method and apparatus for transmitting upstream data
US20180054716A1 (en) * 2016-08-16 2018-02-22 Research & Business Foundation Sungkyunkwan University Method and apparatus for index-coded multicast transmission in a wireless communication system

Similar Documents

Publication Publication Date Title
JP7023918B2 (en) Systems and methods for signaling and generating variable-length block acknowledgment fields in wireless networks
US20070014288A1 (en) Apparatus and method for point-to-point emulation in a broadband wireless communication system
CN110505714B (en) Multi-link communication method, equipment and terminal
EP3076609B1 (en) Method and device for transmitting media data
US20170303154A1 (en) Techniques for reporting channel feedback in wireless communications
CN113133055B (en) Method and apparatus for wireless communication
US11974162B2 (en) Communication method and device
WO2019104470A1 (en) Method and apparatus used in base station device of unlicensed frequency spectrum
US10631215B2 (en) Method and apparatus for communicating with a wireless local area network in a mobile communication system
US20240179597A1 (en) Electronic device, wireless communication method, and computer readable storage medium
US11228667B2 (en) Base station, method, and device for data transmission
EP4030650A1 (en) Data transmission method and apparatus
US20240031870A1 (en) Media data transmission method and communication apparatus
WO2022067785A1 (en) Communication method and communication apparatus
US20230091236A1 (en) Communication control method and user equipment
US20150063319A1 (en) Systems, methods, and apparatus for preventing multiple re-association attempts
WO2024000412A1 (en) Communication method and communication apparatus
WO2022056746A1 (en) Communication method and communication apparatus
CN108886766B (en) Control information transmission method and device
US9386493B2 (en) Physical-layer-based handover method, apparatus and system
CN113596915A (en) Communication method and device
EP4087303A1 (en) Communication method and device
US20240147306A1 (en) Communication method and communication apparatus
US11736245B2 (en) Enhanced spatial reuse in a wireless local area network
WO2024090357A1 (en) Communication control method and network device

Legal Events

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

Ref document number: 20955808

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20955808

Country of ref document: EP

Kind code of ref document: A1