Message processing method and device of multi-hop relay network MHRN and communication equipment
By implementing the message identification and processing mechanism in the terminal of the multi-hop relay network, the ping-pong forwarding or loop forwarding problem that may occur when the relay UE forwards the same message is solved, and the effect of avoiding repeated processing of the same message is achieved, reducing the waste of wireless resources.
Patent Information
- Application Number
- CN202311119263.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2025-02-28
AI Technical Summary
In a multi-hop relay network, the relay UE may cause ping-pong forwarding or cyclic forwarding when forwarding the same message from the same remote UE, causing a message storm, wasting wireless resources and causing resource pool congestion.
By implementing the message recognition mechanism in the terminal of the MHRN, it is determined whether the received message has been processed, thereby avoiding repeated processing of the same message. The specific steps include receiving a message, judging whether the message has been processed, and processing based on the judgment result.
It effectively avoids duplicate processing of the same message by the same terminal in the MHRN, reduces the waste of wireless resources, and reduces the risk of message storms and resource pool congestion.
Smart Images

Figure CN119545466A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a message processing method, device and communication equipment of a multi-hop relay network (MHRN). Background Art
[0002] In order to expand the specifics of wireless communication, MHRN is being studied in related technologies, such as: Layer (L) 2 or L3 multi-hop UE to UE (UE to UE, U2U) network, or, L 2 or L3 multi-hop UE to Network (UE to Network, U2N) network. In the MHRN, any relay UE needs to forward the message received by other relay UEs, so that the service request message from a remote user equipment (User Equipment, UE) can be finally transmitted to the target remote UE under the coverage of the MHRN.
[0003] However, when the relay UE in the MHRN forwards the same discovery message from the same remote UE, ping-pong forwarding or circular forwarding may occur, resulting in a discovery message storm, which not only wastes wireless resources but also causes interference and congestion of the resource pool used to send discovery messages. Summary of the invention
[0004] The embodiments of the present application provide a message processing method, apparatus and communication equipment for a multi-hop relay network MHRN, so that a terminal in the MHRN can identify processed messages to determine whether a received message is a processed message or an unprocessed message, thereby avoiding repeated processing of the same message by the same terminal in the MHRN.
[0005] In a first aspect, a method for processing a message of an MHRN is provided, the method comprising:
[0006] A first terminal receives a first message, where the first terminal is a terminal in the MHRN;
[0007] Determining, by the first terminal, whether the first message has been processed;
[0008] The first terminal processes the first message according to a determination result of whether the first message has been processed;
[0009] The first message is a discovery message or a communication request message.
[0010] In a second aspect, a message processing device of an MHRN is provided, the device comprising:
[0011] A first receiving module, configured to receive a first message, wherein the first terminal is a terminal in the MHRN;
[0012] A determination module, used to determine whether the first message has been processed;
[0013] A first processing module, configured to process the first message according to a determination result of whether the first message has been processed;
[0014] The first message is a discovery message or a communication request message.
[0015] In a third aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be executed on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0016] In a fourth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the communication interface is used to receive a first message, and the first terminal is a terminal in the MHRN; the processor is used to determine whether the first message has been processed, and process the first message based on the determination result of whether the first message has been processed; wherein the first message is a discovery message or a communication request message.
[0017] In a fifth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0018] In a sixth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0019] In a seventh aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the program / program product is executed by at least one processor to implement the steps of the MHRN message processing method as described in the first aspect.
[0020] In an embodiment of the present application, a first terminal receives a first message, the first terminal is a terminal in the MHRN, and the first message is a discovery message or a communication request message; the first terminal determines whether the first message has been processed; the first terminal processes the first message according to the result of the determination of whether the first message has been processed. When the terminal in the MHRN receives a discovery message or a communication request message, it first determines whether the discovery message or the communication request message has been processed before, and different processing can be performed for the processed first message and the unprocessed first message, so that the same terminal in the MHRN can avoid repeated processing of the same discovery message or communication request message. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1a is a schematic diagram of the structure of a multi-hop L2 / L3 U2N relay network to which the embodiments of the present application can be applied;
[0022] Figure 1b is a schematic diagram of the structure of a multi-hop L2 / L3 U2U relay network to which the embodiments of the present application can be applied;
[0023] Figure 2a It is a schematic diagram of the structure of a single-hop L2 / L3 U2N relay network;
[0024] Figure 2b is a schematic diagram of a user plane protocol stack of a single-hop L2 U2N relay network;
[0025] Figure 2c is a schematic diagram of the control plane protocol stack of a single-hop L2 U2N relay network;
[0026] Figure 3a It is a schematic diagram of the structure of a single-hop L2 / L3 U2U relay network;
[0027] Figure 3b is a schematic diagram of a user plane protocol stack of a single-hop L2 U2U relay network;
[0028] Figure 3c is a schematic diagram of a control plane protocol stack for a single-hop L2 U2U relay network;
[0029] Figure 4 It is a schematic diagram of cyclic forwarding of the same message in the MHRN of the related art;
[0030] Figure 5 It is a flowchart of a message processing method of MHRN provided in an embodiment of the present application;
[0031] Figure 6 It is a structural diagram of a message processing device of an MHRN provided in an embodiment of the present application;
[0032] Figure 7 It is a structural diagram of a communication device provided in an embodiment of the present application;
[0033] Figure 8 It is a schematic diagram of the hardware structure of a relay terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0035] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, "A or B" covers three schemes, namely, Scheme 1: including A but not including B; Scheme 2: including B but not including A; Scheme 3: including both A and B. The character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0036] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, operations to be performed, or request results in the sent indication; an indirect indication can be understood as the receiver determining the corresponding information according to the indication sent by the sender, or making a judgment and determining the operation to be performed or the request result according to the judgment result.
[0037] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency-Division Multiple Access (SC-FDMA) or other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and NR terminology is used in most of the following descriptions, but these technologies can also be applied to systems other than NR systems, such as the 6th generation (6 th Generation, 6G) communication system.
[0038] Figure 1a to Figure 1bThe block diagram of the wireless communication system of two MHRNs applicable to the embodiment of the present application is shown. The wireless communication system includes a terminal and a network side device, and the terminal is further divided into a remote terminal and a relay terminal, and the number of relay terminals in the same MHRN is at least two. Among them, the terminal can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR), a virtual reality (Virtual Reality, VR) device, a robot, a wearable device (Wearable Device), an aircraft (flight vehicle), a vehicle-mounted device (Vehicle User Equipment, VUE), a ship-mounted device, a pedestrian terminal (Pedestrian User Equipment, PUE), a smart home (a home appliance with a wireless communication function, such as a refrigerator, a television, a washing machine or furniture, etc.), a game console, a personal computer (Personal Computer, PC), a teller machine or a self-service machine and other terminal side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. It should be noted that the specific type of terminal is not limited in the embodiments of the present application. The network side device may include an access network device, which may also be referred to as a radio access network (Radio Access Network, RAN) device, a radio access network function or a radio access network unit. The access network device may include a base station, a wireless local area network (Wireless Local Area Network, WLAN) access point (Access Point, AS) or a wireless fidelity (Wireless Fidelity, WiFi) node, etc.Among them, the base station may be referred to as a Node B (NB), an evolved Node B (eNB), a next generation Node B (gNB), a New Radio Node B (NRNode B), an access point, a Relay Base Station (RBS), a Serving Base Station (SBS), a Base Transceiver Station (BTS), a radio base station, a radio transceiver, a Basic Service Set (BSS), an Extended Service Set (ESS), a Home Node B (HNB), a Home Evolved Node B (home evolved Node B), a Transmission Reception Point (TRP) or other appropriate terms in the field. As long as the same technical effect is achieved, the base station is not limited to specific technical vocabulary. It should be noted that in the embodiment of the present application, only the base station in the NR system is used as an example for introduction, and the specific type of the base station is not limited.
[0039] In the related art, there are several single-hop relay networks:
[0040] 1. Single-hop Layer 2 (L2) and Layer 3 (L3) U2N relay
[0041] Single-hop L2 / L3 U2N relay has been defined in R17 and will be improved in R18. Related discussions are ongoing. Sidelink refers to the wireless link between UE and UE in NR / LTE. Two UE can achieve direct data transmission between them through the sidelink. The wireless link between the sidelinks is also called the proximity communication (PC5) link, which runs the PC5 protocol. In related technologies, the use of UE to provide relay services between UE and network-side devices will be studied, for example: Figure 2a As shown, the UE providing relay service is called relay UE, and the UE provided with ultimate service is called remote UE. The link between the relay UE and the remote UE is a PC5 link, running the sidelink interface protocol, and the link between the relay UE and the base station is a Uu link, running the Uu link protocol.
[0042] The radio interface control plane of the sidelink has the PC5 Radio Resource Control (RRC) protocol, which runs on the Packet Data Convergence Protocol (PDCP) layer and the Radio Link Control (RLC) layer, and the bottom is the Medium Access Control (MAC) layer and the physical layer. The radio interface user plane of the sidelink includes the Service Data Adaptation Protocol (SDAP), PDCP, RLC, MAC and physical layer from top to bottom.
[0043] The sidelink U2N relay includes L2 U2N relay and L3 U2N relay. The former refers to the relay UE forwarding the data of the remote UE at layer 2, and the latter refers to the relay UE forwarding the data of the remote UE at layer 3.
[0044] 1) For L2 U2N relay, its user plane protocol stack is as follows Figure 2b As shown, the control plane protocol stack is as follows Figure 2cAs shown. L2U2Nrelay introduces the Sidelink Relay Adaptation Protocol (SRAP) layer for data routing, which carries the local identification information of the remote UE (such as the local UE ID) and the radio bearer identification information between the remote UE and the base station. The relay UE maps the input logical channel to the output logical channel for the forwarded data based on this. For the uplink protocol data unit (PDU) forwarded to the base station by the relay UE, the remote UE adds a SRAP header to the PDU to generate a SRAP PDU. After receiving the SRAP PDU, the relay UE forwards it according to the SRAP header. After receiving the SRAP PDU, the base station determines the corresponding PDCP entity according to the information carried in the SRAP header, removes the SRAP header, and submits the corresponding service data unit (SDU) to the PDCP entity. For the downlink PDU forwarded to the remote UE via the relay UE, the base station adds an SRAP header to the PDU and generates an SRAP PDU. After receiving the SRAP PDU, the relay UE forwards it according to the SRAP header. After receiving the SRAPPDU, the remote UE determines the corresponding PDCP entity according to the information carried in the SRAP header, removes the SRAP header and submits the corresponding SDU to the PDCP entity.
[0045] 2) For L3 U2N relay, data is forwarded at the Internet Protocol (IP) layer, which will not be described here.
[0046] 2. Single-hop L2 / L3 U2U relay
[0047] The single-hop L2 / L3 U2U related specifications belong to the scope of R18 and are currently under discussion. The relay transmission network structure between UE to UE (U2U) is as follows: Figure 3a As shown, it includes: remote UE A, remote UE B and relay UE. The communication information sent by remote UE A to remote UE B must first be sent to the relay UE, which is then forwarded to remote UE B. Similarly, the communication information sent by remote UE B to remote UE A must first be sent to the relay UE, which is then forwarded to remote UE A.
[0048] There are two types of U2U relays. One type forwards data at layer 2, called L2 U2U relay, and the other type forwards data at layer 3, called L3 U2U relay. The following is a brief introduction to each type:
[0049] 1) For L2 U2U relay, its user plane protocol stack is as follows Figure 3b As shown, the control plane protocol stack is as follows Figure 3c As shown. Regardless of the protocol stack of the user plane or the protocol stack of the control plane, the remote UE adds an adaptation (ADAPT) protocol layer between the PC5-PDCP layer and the PC5-RLC layer. The adaptation protocol layer is used to generate, receive and forward data packets:
[0050] i) Generate an adaptation layer data packet: The transmitting remote UE determines the adaptation protocol header according to the U2U relay routing configuration, adds the adaptation protocol header to the PDCP PDU from the upper layer, and generates an adaptation layer data packet. The adaptation protocol header at least includes the identification information of the receiving remote UE (such as address information or ID information, etc.) and the identification information of the radio bearer for identifying the data information carried (such as the ID information of the radio bearer);
[0051] ii) Receiving an adaptation layer data packet: After receiving an adaptation layer data packet, the receiving remote UE determines whether it is the destination receiving terminal according to the U2U relay adaptation layer configuration, including its own identification information and the radio bearer identification configuration between it and the transmitting UE. If the identification information of the received adaptation data packet completely matches its own identification information, it determines that it is the destination remote UE of the data packet, and then determines the corresponding upper layer protocol entity according to the radio bearer identification information carried by the data packet, and finally removes the adaptation layer protocol header and sends the data packet to the corresponding upper layer protocol body.
[0052] 2) For L3 U2U relay, the data forwarding of layer 3 relay occurs on layer 2, and the radio access layer protocol of the relay UE does not handle the routing of the data packet to be forwarded. One possible implementation is that when the relay UE receives a data packet to be forwarded sent by a remote UE, it submits the data packet to be forwarded to the upper layer, such as the IP layer, and then the IP layer can determine the destination remote UE of the data packet to be forwarded based on the destination IP address carried in the IP header of the data packet, and send the data packet to be forwarded to the destination remote UE.
[0053] In the embodiments of the present application, MHRN is involved, such as a multi-hop L2 / L3 U2N network and a multi-hop L2 / L3 U2U network.
[0054] like Figure 1a As shown, in a multi-hop L2 / L3 U2N network, a remote UE can establish a wireless connection with a base station through multiple L2 / L3 U2N relay UEs connected in series. The uplink and downlink messages of the remote UE need to be relayed by multiple L2 / L3 U2N relay UEs to complete the transmission between the remote UE and the base station.
[0055] like Figure 1bAs shown, in a multi-hop L2 / L3 U2U network, a source remote UE can establish a wireless connection with a target remote UE through multiple L2 / L3 U2U relay UEs connected in series, and message transmission between the source remote UE and the target remote UE can only be completed after being relayed by multiple L2 / L3 U2U relay UEs.
[0056] In the multi-hop L2 / L3 U2N network and the multi-hop L2 / L3 U2U network, there will still be an adaptation layer to guide data forwarding and end-to-end data packet identification. The packet header format and routing mechanism of the adaptation layer should be modified as necessary based on the single-hop L2 / L3 U2N network and the single-hop L2 / L3 U2U network to adapt to the multi-hop forwarding of messages in the multi-hop network and the transmission of corresponding response messages.
[0057] It should be noted that in the MHRN, any relay UE can forward a message received from other relay UEs, so that a service request from a remote UE can eventually be transmitted to a target remote UE under the coverage of the MHRN.
[0058] However, there are at least two relay terminals in the MHRN. When the source remote UE forwards the discovery message through the MHRN, the discovery message may be cyclically forwarded or ping-pong forwarded between at least two relay terminals, resulting in a discovery message storm, which not only wastes wireless resources but also causes interference and congestion of the resource pool used to send the discovery message.
[0059] For example: Figure 4 As shown in the figure, after the remote UE X sends the discovery message, the discovery message is sent back to the relay UE A in the order of relay UE A, relay UE B, relay UE C and relay UE D. The discovery message may also be sent back to the relay UE A in the order of relay UE A, relay UE D, relay UE C and relay UE B. After that, the relay UE A may forward the received discovery message again. In this way, the same discovery message triggered by the remote UE X is forwarded multiple times by the same node along different paths. This kind of cyclic and ping-pong forwarding of the same discovery message does not help to expand the coverage of the discovery message, but occupies a large amount of wireless resources.
[0060] In the embodiment of the present application, when a terminal in the MHRN receives a discovery message or a communication request message, it will first determine whether the discovery message or the communication request message has been processed before, and different processing can be performed on the processed first message and the unprocessed first message. In this way, it can be avoided that the same terminal in the MHRN performs repeated processing on the same discovery message or communication request message, thereby reducing the waste of wireless resources caused by repeated processing of the same discovery message. For example: when a relay terminal in the MHRN receives a discovery message, it first determines whether the discovery message has been forwarded before. If it has been forwarded, the discovery message is discarded. If it has not been forwarded, the discovery message is forwarded. For another example: when a target remote terminal in the MHRN receives a discovery message, it first determines whether the discovery message has been responded to before. If it has been responded to, the discovery message is discarded. If it has not been responded to, the discovery message is responded to.
[0061] It should be noted that the MHRN in the embodiment of the present application includes: at least one of a multi-hop L2 U2U network, a multi-hop L3 U2U network, a multi-hop L2 U2N network and a multi-hop L3 U2N network.
[0062] In combination with the accompanying drawings, the MHRN message processing method, MHRN message processing device and communication equipment provided in the embodiments of the present application are described in detail through some embodiments and their application scenarios.
[0063] See also Figure 5 The embodiment of the present application provides a message processing method for MHRN, the execution subject of which may be a first terminal, such as Figure 5 As shown, the method comprises the following steps:
[0064] Step 501: A first terminal receives a first message, where the first terminal is a terminal in an MHRN, wherein the first message is a discovery message or a communication request message.
[0065] Step 502: The first terminal determines whether the first message has been processed.
[0066] Step 503: The first terminal processes the first message according to a determination result of whether the first message has been processed.
[0067] In the embodiment of the present application, a wireless link between a source remote terminal and a base station or a target terminal is established through the discovery message and a communication request message, such as a direct communication request.
[0068] In some implementations, when the source remote terminal sends a discovery message or a communication request message, the discovery message or the communication request message is forwarded by a relay terminal in the MHRN until it reaches the base station or the target terminal, and the base station or the target terminal responds to the discovery message or the communication request message.
[0069] At this time, the first terminal may include at least one of a relay terminal and a target terminal.
[0070] In some implementations, the first terminal processes the first message according to a result of determining whether the first message has been processed, including at least one of the following:
[0071] When determining that the first message is a processed message, the first terminal discards the first message;
[0072] When determining that the first message is an unprocessed message, the first terminal performs a first process on the first message, where the first process includes at least one of the following:
[0073] forwarding the first message through the MHRN;
[0074] Submitting the first message to a Proximity Services (ProSe) protocol layer;
[0075] A first response message is generated based on the first message, and the first response message is sent through the MHRN.
[0076] It should be noted that discarding the first message in the embodiment of the present application may mean not forwarding or responding to the first message.
[0077] Scene 1
[0078] Assuming that the first terminal includes a relay terminal, the first terminal determines whether the first message has been processed, which may be that the first terminal determines whether the first message has been forwarded; the first terminal processes the first message according to the result of the judgment of whether the first message has been processed, which may include: if the first terminal determines that the first message has been forwarded, the first terminal discards the first message, or, if the first terminal determines that the first message has not been forwarded, the first terminal forwards the first message through the MHRN or submits the first message to the ProSe protocol layer.
[0079] In this application scenario, it is possible to avoid the same relay terminal from repeatedly forwarding the same first message.
[0080] Scene 2
[0081] Assuming that the first terminal includes a target terminal, the first terminal determines whether the first message has been processed, which may be the first terminal determining whether the first message has been responded to; the first terminal processes the first message according to the result of the determination of whether the first message has been processed, which may include: if the first terminal determines that the first message has been responded to, the first terminal discards the first message, or, if the first terminal determines that the first message has not been responded to, the first terminal responds to the first message, that is, generates a first response message based on the first message, and sends the first response message through the MHRN or submits the first message to the ProSe protocol layer.
[0082] In this application scenario, it is possible to avoid the target terminal from repeatedly responding to the same first message.
[0083] In some embodiments, the above-mentioned scenario one and scenario two can be combined. In this case, each relay terminal in the MHRN can determine whether the first message it receives is a forwarded message, and decide whether to perform the forwarding behavior based on its own judgment results. The target terminal in the MHRN can determine whether the first message it receives is a responded message, and decide whether to perform the response behavior based on the judgment result.
[0084] It should be noted that the relay terminal forwards the first message through the MHRN, which may be that the relay terminal forwards the first message to at least one next hop node through the MHRN.
[0085] Among them, if the relay terminal forwards the first message to a next-hop node through the MHRN, then based on scenario one, the target remote terminal of the first message will usually only receive the first message once. At this time, the target remote terminal may not determine whether the received first message is a processed message, but directly respond to the first message.
[0086] However, if the relay terminal forwards the first message to at least two next-hop nodes through the MHRN, then based on scenario one, the target remote terminal of the first message may receive the first message from the MHRN through different forwarding paths. At this time, the target remote terminal needs to determine whether the first message received through the MHRN is a processed message, and thus responds to the first message only when the received first message is an unprocessed message.
[0087] In some implementations, the first terminal may perform at least one of identification and marking on the first message to determine whether the first message has been processed.
[0088] In one implementation, identifying the first message may be identifying at least a portion of information fields in the first message, so as to determine whether the first message is a processed message according to the identified content or identifier.
[0089] In one embodiment, the first message may be marked by adding identification information in a designated information field of the first message by a source remote terminal or a relay terminal that provides access services to the source remote terminal. A subsequent relay terminal or a target remote terminal may determine whether the first message is a processed message based on the identification information added in the first message.
[0090] Optionally, the first terminal determines whether the first message has been processed, including:
[0091] The first terminal extracts the content or identifier in the first information field of the first message to obtain first information;
[0092] The first terminal determines that the first message is a processed message when determining that the first information matches the second information, wherein the second information is the content or identifier in the second information field of the second message processed by the first terminal, and the second information field corresponds to the first information field; or
[0093] When the first terminal determines that the first information does not match the second information, it determines that the first message is an unprocessed message.
[0094] In some implementations, the first information field and the second information field may be information fields configured or pre-configured by a network-side device or agreed upon by a protocol.
[0095] The second information field corresponds to the first information field, and the second information field and the first information field may be the same information field, or the second information field and the first information field may contain the same type of information, for example, if the first information field contains an identifier of the first message, the second information field contains an identifier of the second message.
[0096] For example, the first information domain is the domain where the first information is located, and the first information includes at least one of the following:
[0097] 1) an identifier of a first message, where the identifier is used to identify the first message in the MHRN;
[0098] 2) a random number or a random string; optionally, the random number or random string may be generated by a remote terminal or a relay terminal according to preset random number generation rules and parameters, and different discovery messages or communication request messages may carry different random numbers or random strings, so that different discovery messages or communication request messages may be distinguished based on the random number or random string;
[0099] 3) a layer 2 identifier of a source remote terminal of the first message, by which first messages from different source remote terminals can be distinguished;
[0100] 4) a layer 2 identifier of a target remote end of the first message, through which the first message sent to different target remote ends can be distinguished by the layer 2 identifier of the target remote end, such as a target base station or a target remote end UE;
[0101] 5) a temporary identifier associated with the source remote terminal of the first message, such as a temporary identifier associated with the source remote terminal generated by the relay terminal, through which the first messages from different source remote terminals can be distinguished;
[0102] 6) a temporary identifier associated with a target remote end of the first message, such as a temporary identifier associated with a target remote end generated by a relay terminal, through which first messages sent to different target remote ends can be distinguished;
[0103] 7) identification information of the source remote terminal of the first message, such as at least one of the identification information including the L2 ID, ProSe protocol layer ID, etc. of the source remote UE;
[0104] 8) identification information of the target remote terminal of the first message, such as at least one of the identification information including the L2 ID, ProSe protocol layer ID, etc. of the target remote UE;
[0105] 9) address information of the source remote terminal of the first message, such as the Internet Protocol (IP) address or the Media Access Control (MAC) address of the source remote terminal;
[0106] 10) address information of the target remote terminal of the first message, such as the IP address or MAC address of the target remote terminal;
[0107] 11) identification information related to the service of the first message;
[0108] 12) local identification information of the source remote terminal of the first message, such as localUE ID of the source remote terminal in the MHRN;
[0109] 13) Local identification information of the target remote terminal of the first message, such as the local UE ID of the source target remote terminal in the MHRN.
[0110] Corresponding to the first information, the second information in the second information field includes the same type of information content or identification information as the first information. For example, the first information includes the identifier of the first message, and the second information also includes the identifier of the processed message.
[0111] Optionally, the first terminal determines whether the first information matches the second information in the following manner:
[0112] When a first condition is met, the first terminal determines that the first information matches the second information;
[0113] The first condition includes at least one of the following:
[0114] The content in the first information field is consistent with the content in the second information field;
[0115] The identifier in the first information field is consistent with the identifier in the second information field;
[0116] or,
[0117] When a second condition is met, the first terminal determines that the first information does not match the second information;
[0118] The second condition includes at least one of the following:
[0119] The content in the first information field is inconsistent with the content in the second information field;
[0120] The identifier in the first information field is inconsistent with the identifier in the second information field.
[0121] In some embodiments, the first condition may include at least one of the following:
[0122] The address information of the source remote terminal in the first information field is the same as the address information of the source remote terminal in the second information field;
[0123] The address information of the target remote terminal in the first information field is the same as the address information of the target remote terminal in the second information field;
[0124] The identifier of the first message in the first information field is the same as the identifier of the second message in the second information field;
[0125] The random number or random string in the first information field is the same as the random number or random string in the second information field;
[0126] The layer 2 identifier of the source remote terminal of the first message in the first information field and the layer 2 identifier of the source remote terminal of the second message in the second information field are used to identify the same source remote terminal;
[0127] The layer 2 identifier of the target remote end of the first message in the first information field and the layer 2 identifier of the target remote end of the second message in the second information field are used to identify the same target remote end;
[0128] The temporary identifier associated with the source remote terminal of the first message in the first information field and the temporary identifier associated with the source remote terminal of the second message in the second information field are used to identify the same source remote terminal;
[0129] The temporary identifier of the target remote end associated with the first message in the first information field and the temporary identifier of the target remote end associated with the second message in the second information field are used to identify the same target remote end;
[0130] The identification information related to the service of the first message in the first information field and the identification information related to the service of the second message in the second information field are used to identify the same service;
[0131] The local identification information of the source remote terminal of the first message in the first information field and the local identification information of the source remote terminal of the second message in the second information field are used to identify the same source remote terminal;
[0132] The local identification information of the target remote terminal of the first message in the first information field and the local identification information of the target remote terminal of the second message in the second information field are used to identify the same target remote terminal.
[0133] It should be noted that the above second condition is opposite to the first condition, that is, the second condition is met when the first condition is not met, and the second condition will not be elaborated in detail here.
[0134] As an optional implementation, the method further includes:
[0135] When performing the first processing on the first message, the first terminal records the first information.
[0136] It should be noted that after the first message is subjected to the first processing, the first message becomes a processed second message. At this time, the first information of the first message recorded is used as the content in the second information to determine whether the subsequently received discovery message or communication request message is a processed message.
[0137] For example: for L2 U2U MHRN or L3 U2U MHRN, after the source remote UE sends a discovery message A through the MHRN, the relay terminal in the MHRN determines that the discovery message A is a message that has not been forwarded, and thus forwards the discovery message A through the MHRN. When the target remote UE receives the discovery message A for the first time through the MHRN, it determines that the discovery message A is a message that has not been responded to, and thus sends a response message corresponding to the discovery message A to the source remote UE through the MHRN, and records at least part of the content or identifier in the discovery message A; thereafter, if the target remote UE receives the discovery message A again through the MHRN, at this time, the target remote UE will determine that the discovery message A received again is a processed message based on at least part of the content or identifier in the discovery message A that has been recorded, and thus discard the discovery message A.
[0138] That is to say, after each first processing of a discovery message or a communication request message, at least part of the content or identifier of the discovery message or the communication request message can be recorded. At this time, the second information can include at least part of the content or identifier of all recorded discovery messages or communication request messages.
[0139] In this implementation manner, when the first message is an unprocessed message, the first message is first processed and the first information is recorded, so as to determine whether the same first message is received repeatedly later based on the recorded first information.
[0140] As an optional implementation, the method further includes at least one of the following:
[0141] When recording the first information, the first terminal starts a first timer corresponding to the first message, and when the first timer times out, deletes the first information or determines that the first information is invalid; wherein the timing duration of the first timer is a preset duration;
[0142] The first terminal deletes the first information or determines that the first information is invalid at a first moment, and the first moment is located after a second moment, and the interval between the first moment and the second moment is greater than or equal to a preset time length, wherein the second moment is the moment when the first terminal processes the first message or the moment when the first terminal records the first information.
[0143] In some embodiments, the preset duration may be a duration configured or preconfigured by a network side device or agreed upon in a protocol. The preset duration is generally greater than or equal to a first duration, which is the duration for forwarding a discovery message or a communication request message, and a corresponding response message through the MHRN to establish a wireless connection between a source remote terminal and a target remote terminal.
[0144] In one implementation, the first information may be deleted or determined to be invalid after a preset time period after the second moment of recording the first information.
[0145] For example: when recording the first information, the second moment is recorded, and when the interval between the second moment and the first information is greater than or equal to a preset time, the first information is deleted or determined to be invalid.
[0146] Among them, the effectiveness of the first information means that the first information can be used to determine whether the newly received discovery message or communication request message is a processed or unprocessed message, and the invalidity of the first information means that the first information is not used to determine whether the newly received discovery message or communication request message is a processed or unprocessed message.
[0147] In another embodiment, when recording the first information, a corresponding first timer can be started, and the timing duration of the first timer is the preset duration. In this way, when the first timer times out, the first information corresponding to the first timer can be deleted or the first information corresponding to the first timer can be determined to be invalid.
[0148] It is worth mentioning that in some scenarios, the source remote UE may repeatedly send the same discovery message or communication request message. For example, after sending the discovery message or communication request message, if the source remote UE does not receive the corresponding response message within a certain period of time, or fails to successfully establish a wireless connection between the source remote UE and the target end, the same discovery message or communication request message may be sent again. The target end may include a target base station or a target remote terminal. For example, in U2UMHRN, the target end is the target remote terminal, and in U2N MHRN, the target end is the target base station.
[0149] At this time, a preset time length can be introduced to manage the recorded first information, such as retaining the first information or determining that the first information is effective within a preset time length after recording the first information, and deleting the first information or determining that the first information is invalid after the preset time length.
[0150] In this way, after deleting the first information or determining that the first information is invalid, the first terminal no longer determines whether the newly received discovery message or communication request message is a processed message based on the first information. In other words, after deleting the first information or determining that the first information is invalid, even if the first terminal receives a discovery message or communication request message that is consistent with the first information again, it will still determine that the currently received discovery message or communication request message is an unprocessed message.
[0151] In some implementations, the recorded first information may be stored in a first list, such as the relay terminal storing the first information corresponding to the forwarded first message in the identification information list of the forwarded message, or the target remote terminal storing the first information corresponding to the responded first message in the identification information list of the responded message. When the relay terminal or the target remote terminal receives a discovery message or a communication request message, it may extract the identification information of the discovery message or the communication request message, and query the identification information of the discovery message or the communication request message in the identification information list. If the identification information of the discovery message or the communication request message is queried, it is determined that the discovery message or the communication request message is a processed message; if the identification information of the discovery message or the communication request message is not queried, it is determined that the discovery message or the communication request message is an unprocessed message.
[0152] Optionally, the relay terminal or the target remote terminal may also delete the identification information of the processed message recorded in the identification information list. For example, assuming that the corresponding second timer is started when recording the second identification information, the second identification information is deleted from the identification information list when the second timer times out.
[0153] As an optional implementation manner, the first terminal determines whether the first message has been processed, further comprising at least one of the following:
[0154] The first terminal determines that the first message is a processed message when it is determined that the first information matches the second information and the time interval between the third moment and the fourth moment is less than the preset duration or the second timer is in a running state;
[0155] The first terminal determines, when no processing record of the first message is found, that the first message is an unprocessed message;
[0156] The first terminal determines that the first message is an unprocessed message when it is determined that the first information matches the second information and the time interval between the third moment and the fourth moment is greater than or equal to the preset duration or the second timer times out or is not started;
[0157] Among them, the third moment is the moment when the first terminal obtains the second information or processes the second message corresponding to the second information, the fourth moment is the moment when the terminal receives the first message, and the fourth moment is later than the third moment; the second timer corresponds to the second message, and the start time is the moment when the first terminal obtains the second information or receives the second message, and the timing duration of the second timer is the preset duration.
[0158] In one embodiment, the moment when the first terminal obtains the second information or processes the second message corresponding to the second information can be recorded as the third moment. When the first terminal subsequently receives the first message, the fourth moment of receiving the first message is compared with the third moment corresponding to the recorded second information to determine whether the time interval between the two is greater than or equal to the preset duration; if so, whether the first message is a processed message is not determined based on the second information, that is, even if the second information matches the first information, it can be determined that the first message is an unprocessed message; if not, whether the first message is a processed message is determined based on the second information.
[0159] In one embodiment, similar to the above-mentioned process of starting the first timer corresponding to the first message or the first information when recording the first information, a second timer corresponding to the second message or the second information can also be started when recording the second information, and the timing duration of the second timer is a preset duration.
[0160] In this way, after recording the second information and starting the corresponding second timer, whether the corresponding second information is effective can be determined according to the status of the second timer, wherein the effectiveness of the second information means that the second information can be used to determine whether the first message is a processed message, and the invalidity of the second information means that the second information is not used to determine whether the first message is a processed message.
[0161] Optionally, when the second timer times out, the second information may be deleted or determined to be invalid.
[0162] In some other embodiments, the first terminal fails to find the processing record of the first message, which may be because the first terminal fails to find the second information matching the first information in the recorded message processing records; or, the first terminal does not record any message processing records, for example: when the first terminal processes the discovery message for the first time, at this time, the first terminal has no processed discovery message, and thus there is no processing record of the processed discovery message.
[0163] In this embodiment, the second information is deleted or the second information is determined to be invalid when the second timer times out. After the second information is deleted, the second information naturally cannot be used to determine whether the subsequently received first message is a processed message. Similarly, after it is determined that the second information is invalid, the second information also cannot be used to determine whether the subsequently received first message is a processed message.
[0164] In this embodiment, the first message is determined to be a processed message only when it is determined that the first information matches the second information and the time interval between the third moment and the fourth moment is less than the preset duration or the second timer is in a running state; in other words, if the first information does not match the second information, or although the first information matches the second information, but the time interval between the third moment and the fourth moment is greater than or equal to the preset duration or the second timer has timed out or has not started, then the first message is determined to be an unprocessed message.
[0165] It is worth noting that in some implementations, the first information may be content carried in a discovery message or a communication request message in the related art. In other implementations, the first information may be content added to a discovery message or a communication request message by the first terminal.
[0166] As an optional implementation, the method further includes at least one of the following:
[0167] When receiving the first message, the first terminal adds first identification information to the first information field of the first message, where the first identification information is used to identify the first message in the MHRN;
[0168] When receiving the second message, the first terminal adds the second identification information to the second information field of the second message, where the first identification information is used to identify the second message in the MHRN.
[0169] In one implementation, the first identification information may be added to the first information field of the first message by the source remote UE.
[0170] For example: when a remote UE in the MHRN network generates a discovery message or a communication request message that needs to be forwarded by a relay UE, the remote UE explicitly or implicitly carries the first identification information in the discovery message or the communication request message, and the first identification information is used to identify the discovery message or the communication request message in the MHRN network. Wherein, the first identification information is implicitly carried, and the first identification information can be carried by other information in the first message, such as using the address information of the source remote UE and the address information of the target remote UE as the implicit first identification information.
[0171] In another implementation, the first identification information may be added to the first information field of the first message by a relay UE that provides access services to the source remote UE.
[0172] For example: after receiving the target message from the remote UE, the relay UE in the MHRN network generates a forwarding message based on the target message, and the forwarding message includes all or part of the content of the target message, and explicitly or implicitly carries the first identification information in the forwarding message, wherein the target message and the forwarding message are discovery messages or communication request messages, and the first identification information is used to identify the discovery message or communication request message in the MHRN network.
[0173] The first identification information includes any identification information in the first information, which will not be elaborated here.
[0174] Similar to the above-mentioned adding of the first identification information in the first message, the second identification information is also added to the processed second message before processing, and the second identification information includes any identification information in the second message.
[0175] In this way, the relay terminal or the target remote end can record the second identification information when processing the second message; and when subsequently receiving the first message, the recorded second identification information is compared with the first identification information in the first message to determine whether the first message is a processed message. For example, if the second identification information that matches the first identification information exists in the second message, it is determined that the first message is a processed message.
[0176] In this embodiment, the first terminal can add first identification information that can identify the discovery message or communication request message in the MHRN in the discovery message or communication request message to be forwarded through the MHRN, so that before subsequently forwarding or responding to the discovery message or communication request message, the first identification information is compared with the second identification information of the recorded processed second message to determine whether the current discovery message or communication request message is a processed message.
[0177] Optionally, the first terminal adds the target identification information to the target information field by using at least one of the following methods:
[0178] The target identification information is added in the target information field through the proximity service ProSe related protocol layer. For example, assuming that the first identification information is added in the first information field of the first message through the proximity service ProSe related protocol layer, and the first message is forwarded through the MHRN, then after receiving the first message, the relay UE submits the first message to the ProSe related protocol layer, and the ProSe related protocol layer extracts the first identification information from the first message. Then, the relay UE determines whether to forward the discovery message / communication request according to the first identification information;
[0179] adding the target identification information in the target information field through the radio access network RAN protocol layer, for example, assuming that the first identification information is added in the first information field of the first message through the RAN protocol layer, and the first message is forwarded through the MHRN, so that after receiving the forwarded message, the relay UE submits the forwarded message to the RAN protocol layer, and the RAN protocol layer extracts the first identification information, and then the relay UE determines whether to continue forwarding the forwarded message according to the first identification information;
[0180] Generate the target identification information through the RAN protocol layer, and add the target identification information to the target information field through the ProSe related protocol layer, for example: generate first identification information through the RAN protocol layer, submit the first identification information to the ProSe related protocol layer, and the ProSe related protocol layer adds the first identification information to the first information field of the first message;
[0181] Generate the target identification information through the ProSe related protocol layer, and add the target identification information in the target information field through the RAN protocol layer, for example: generate first identification information through the ProSe related protocol layer, submit the first identification information to the RAN protocol layer, and the RAN protocol layer adds the first identification information to the first information field of the first message;
[0182] The target information field includes at least one item of the first information field and the second information field, and the target identification information includes at least one item of the first identification information and the second identification information.
[0183] In some implementations, the RAN protocol layer may include at least one of the following:
[0184] Radio Resource Control (RRC) layer, Sidelink Relay Adaptation Protocol (SRAP) layer, Radio Link Control (RLC) layer, Medium Access Control (MAC) layer, and physical layer.
[0185] In an embodiment of the present application, a first terminal receives a first message, the first terminal is a terminal in the MHRN, and the first message is a discovery message or a communication request message; the first terminal determines whether the first message has been processed; the first terminal processes the first message according to the result of the determination of whether the first message has been processed. When the terminal in the MHRN receives a discovery message or a communication request message, it first determines whether the discovery message or the communication request message has been processed before, and different processing can be performed for the processed first message and the unprocessed first message, so that the same terminal in the MHRN can avoid repeated processing of the same discovery message or communication request message.
[0186] The message processing method for MHRN provided in the embodiment of the present application can be executed by a message processing device for MHRN. In the embodiment of the present application, the message processing device for MHRN executing the message processing method for MHRN is taken as an example to illustrate the message processing device for MHRN provided in the embodiment of the present application.
[0187] See also Figure 6 , an embodiment of the present application provides a MHRN message processing device, which can be used in a first terminal, for example: the MHRN message processing is a device in the first terminal.
[0188] like Figure 6 As shown, the MHRN message processing device 600 includes the following modules:
[0189] A first receiving module 601 is configured to receive a first message, where the first terminal is a terminal in the MHRN;
[0190] A determination module 602 is used to determine whether the first message has been processed;
[0191] A first processing module 603, configured to process the first message according to a result of determining whether the first message has been processed;
[0192] The first message is a discovery message or a communication request message.
[0193] Optionally, the judging module 602 includes:
[0194] A first extraction unit, configured to extract content or identification in a first information field of the first message to obtain first information;
[0195] A first determining unit, configured to determine that the first message is a processed message when it is determined that the first information matches the second information, wherein the second information is content or an identifier in a second information field of the second message processed by the first terminal, and the second information field corresponds to the first information field;
[0196] The second determining unit is configured to determine that the first message is an unprocessed message when it is determined that the first information does not match the second information.
[0197] Optionally, the first processing module 603 includes at least one of the following:
[0198] a discarding unit, configured to discard the first message if it is determined that the first message is a processed message;
[0199] A first processing unit is configured to perform a first processing on the first message when it is determined that the first message is an unprocessed message, wherein the first processing includes at least one of the following:
[0200] forwarding the first message through the MHRN;
[0201] Submitting the first message to the proximity service ProSe protocol layer;
[0202] A first response message is generated based on the first message, and the first response message is sent through the MHRN.
[0203] Optionally, the first information includes at least one of the following:
[0204] an identifier of the first message;
[0205] Random numbers or random strings;
[0206] a layer 2 identifier of a remote terminal from which the first message originated;
[0207] a layer 2 identifier of a remote end to which the first message is directed;
[0208] A temporary identifier associated with a source remote terminal of the first message;
[0209] a temporary identifier associated with a target remote end of the first message;
[0210] identification information of a source remote terminal of the first message;
[0211] identification information of a target remote terminal of the first message;
[0212] Address information of the source remote terminal of the first message;
[0213] address information of a target remote terminal of the first message;
[0214] identification information related to the service of the first message;
[0215] Local identification information of a source remote terminal of the first message;
[0216] The local identification information of the target remote terminal of the first message.
[0217] Optionally, the first determining unit is configured to determine that the first information matches the second information when a first condition is met;
[0218] The first condition includes at least one of the following:
[0219] The content in the first information field is consistent with the content in the second information field;
[0220] The identifier in the first information field is consistent with the identifier in the second information field;
[0221] or,
[0222] The second determining unit is configured to determine that the first information does not match the second information when a second condition is met;
[0223] The second condition includes at least one of the following:
[0224] The content in the first information field is inconsistent with the content in the second information field;
[0225] The identifier in the first information field is inconsistent with the identifier in the second information field.
[0226] Optionally, the MHRN message processing device 600 further includes:
[0227] A recording module is used to record the first information when the first processing is performed on the first message.
[0228] Optionally, the MHRN message processing device 600 further includes at least one of the following:
[0229] A first deletion module is used to start a first timer corresponding to the first message when recording the first information, and delete the first information or determine that the first information is invalid when the first timer times out; wherein the timing duration of the first timer is a preset duration;
[0230] The second deletion module is used to delete the first information or determine that the first information is invalid at a first moment, the first moment is located after the second moment, and the interval between the first moment and the second moment is greater than or equal to a preset time, wherein the second moment is the moment when the first terminal processes the first message or the moment when the first terminal records the first information.
[0231] Optionally, the determination module 602 is further configured to perform at least one of the following:
[0232] In a case where it is determined that the first information matches the second information, and the time interval between the third moment and the fourth moment is less than the preset duration or the second timer is in a running state, determining that the first message is a processed message;
[0233] If no processing record of the first message is found, determining that the first message is an unprocessed message;
[0234] In the case where it is determined that the first information matches the second information, and the time interval between the third moment and the fourth moment is greater than or equal to the preset duration or the second timer times out or is not started, determining that the first message is an unprocessed message;
[0235] Among them, the third moment is the moment when the first terminal obtains the second information or processes the second message corresponding to the second information, the fourth moment is the moment when the terminal receives the first message, and the fourth moment is later than the third moment; the second timer corresponds to the second message, and the start time is the moment when the first terminal obtains the second information or receives the second message, and the timing duration of the second timer is the preset duration.
[0236] Optionally, the MHRN message processing device 600 further includes at least one of the following:
[0237] A first adding module is configured to add first identification information to the first information field of the first message when the first message is received, where the first identification information is used to identify the first message in the MHRN;
[0238] The second adding module is used to add the second identification information in the second information field of the second message when the second message is received, wherein the first identification information is used to identify the second message in the MHRN.
[0239] Optionally, the first adding module or the second adding module adds the target identification information to the target information field by using at least one of the following methods:
[0240] Adding the target identification information in the target information field through a proximity service ProSe related protocol layer;
[0241] Adding the target identification information in the target information field through a radio access network RAN protocol layer;
[0242] Generate the target identification information through the RAN protocol layer, and add the target identification information to the target information field through the ProSe related protocol layer;
[0243] Generate the target identification information through the ProSe related protocol layer, and add the target identification information to the target information field through the RAN protocol layer;
[0244] The target information field includes at least one item of the first information field and the second information field, and the target identification information includes at least one item of the first identification information and the second identification information.
[0245] Optionally, the first terminal includes at least one of the following:
[0246] a relay terminal of the first message;
[0247] a remote terminal from which the first message originates;
[0248] The target remote terminal of the first message.
[0249] The message processing device of the MHRN in the embodiment of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the terminal can include but is not limited to the types of terminals 11 listed above, and other devices can be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiment of the present application.
[0250] The message processing device of the MHRN provided in the embodiment of the present application can implement the following Figure 5 The various processes implemented by the illustrated method embodiment achieve the same technical effect and will not be described again here to avoid repetition.
[0251] like Figure 7 As shown, an embodiment of the present application also provides a communication device 700, including a processor 701 and a memory 702, and the memory 702 stores a program or instruction that can be executed on the processor 701. When the communication device 700 is a first terminal, the program or instruction is executed by the processor 701 to implement the various steps of the above-mentioned MHRN message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0252] The embodiment of the present application also provides a terminal, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the following Figure 5 The steps in the method embodiment shown. This terminal embodiment corresponds to the above-mentioned terminal side method embodiment, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to this terminal embodiment and can achieve the same technical effect. Specifically, Figure 8A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.
[0253] The terminal 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809 and at least some of the components of a processor 810.
[0254] Those skilled in the art will appreciate that the terminal 800 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The terminal structure shown in the figure does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0255] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0256] In the embodiment of the present application, after receiving downlink data from the network side device, the radio frequency unit 801 can transmit the data to the processor 810 for processing; in addition, the radio frequency unit 801 can send uplink data to the network side device. Generally, the radio frequency unit 801 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0257] The memory 809 can be used to store software programs or instructions and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0258] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0259] The radio frequency unit 801 is used to receive a first message, and the terminal 800 is a terminal in the MHRN;
[0260] The processor 810 is configured to determine whether the first message has been processed, and process the first message according to the determination result of whether the first message has been processed;
[0261] The first message is a discovery message or a communication request message.
[0262] Optionally, the determining whether the first message has been processed, performed by the processor 810, includes:
[0263] Extracting content or identification in the first information field of the first message to obtain first information;
[0264] In the case where it is determined that the first information matches the second information, determining that the first message is a processed message, wherein the second information is content or an identifier in a second information field of the second message processed by the first terminal, and the second information field corresponds to the first information field;
[0265] When it is determined that the first information does not match the second information, the first message is determined to be an unprocessed message.
[0266] Optionally, the processing of the first message according to the result of determining whether the first message has been processed, performed by the processor 810, includes at least one of the following:
[0267] If it is determined that the first message is a processed message, discarding the first message;
[0268] In the case where it is determined that the first message is an unprocessed message, performing a first process on the first message, where the first process includes at least one of the following:
[0269] forwarding the first message through the MHRN;
[0270] Submitting the first message to the proximity service ProSe protocol layer;
[0271] A first response message is generated based on the first message, and the first response message is sent through the MHRN.
[0272] Optionally, the first information includes at least one of the following:
[0273] an identifier of the first message;
[0274] Random numbers or random strings;
[0275] a layer 2 identifier of a remote terminal from which the first message originated;
[0276] a layer 2 identifier of a remote end to which the first message is directed;
[0277] A temporary identifier associated with a source remote terminal of the first message;
[0278] a temporary identifier associated with a target remote end of the first message;
[0279] identification information of a source remote terminal of the first message;
[0280] identification information of a target remote terminal of the first message;
[0281] Address information of the source remote terminal of the first message;
[0282] address information of a target remote terminal of the first message;
[0283] identification information related to the service of the first message;
[0284] Local identification information of a source remote terminal of the first message;
[0285] The local identification information of the target remote terminal of the first message.
[0286] Optionally, the processor 810 determines whether the first information matches the second information in the following manner:
[0287] When a first condition is met, determining that the first information matches the second information;
[0288] The first condition includes at least one of the following:
[0289] The content in the first information field is consistent with the content in the second information field;
[0290] The identifier in the first information field is consistent with the identifier in the second information field;
[0291] or,
[0292] If the second condition is met, determining that the first information does not match the second information;
[0293] The second condition includes at least one of the following:
[0294] The content in the first information field is inconsistent with the content in the second information field;
[0295] The identifier in the first information field is inconsistent with the identifier in the second information field.
[0296] Optionally, the processor 810 is further configured to record the first information when performing the first processing on the first message.
[0297] Optionally, the processor 810 is further configured to perform at least one of the following:
[0298] When recording the first information, starting a first timer corresponding to the first message, and when the first timer times out, deleting the first information or determining that the first information is invalid; wherein the timing duration of the first timer is a preset duration;
[0299] At a first moment, the first information is deleted or the first information is determined to be invalid, the first moment is located after a second moment, and the interval between the first moment and the second moment is greater than or equal to a preset duration, wherein the second moment is the moment when the first terminal processes the first message or the moment when the first terminal records the first information.
[0300] Optionally, the determining whether the first message has been processed, performed by the processor 810, further includes at least one of the following:
[0301] In a case where it is determined that the first information matches the second information, and the time interval between the third moment and the fourth moment is less than the preset duration or the second timer is in a running state, determining that the first message is a processed message;
[0302] The first terminal determines, when no processing record of the first message is found, that the first message is an unprocessed message;
[0303] In the case where it is determined that the first information matches the second information, and the time interval between the third moment and the fourth moment is greater than or equal to the preset duration or the second timer times out or is not started, determining that the first message is an unprocessed message;
[0304] Among them, the third moment is the moment when the first terminal obtains the second information or processes the second message corresponding to the second information, the fourth moment is the moment when the terminal receives the first message, and the fourth moment is later than the third moment; the second timer corresponds to the second message, and the start time is the moment when the first terminal obtains the second information or receives the second message, and the timing duration of the second timer is the preset duration.
[0305] Optionally, the processor 810 is further configured to perform at least one of the following:
[0306] When the first message is received through the radio frequency unit 801, first identification information is added to the first information field of the first message, where the first identification information is used to identify the first message in the MHRN;
[0307] In case that the second message is received through the radio frequency unit 801, the second identification information is added to the second information field of the second message, and the first identification information is used to identify the second message in the MHRN.
[0308] Optionally, the processor 810 adds the target identification information to the target information field by using at least one of the following methods:
[0309] Adding the target identification information in the target information field through a proximity service ProSe related protocol layer;
[0310] Adding the target identification information in the target information field through a radio access network RAN protocol layer;
[0311] Generate the target identification information through the RAN protocol layer, and add the target identification information to the target information field through the ProSe related protocol layer;
[0312] Generate the target identification information through the ProSe related protocol layer, and add the target identification information to the target information field through the RAN protocol layer;
[0313] The target information field includes at least one item of the first information field and the second information field, and the target identification information includes at least one item of the first identification information and the second identification information.
[0314] Optionally, the terminal 800 includes at least one of the following:
[0315] a relay terminal of the first message;
[0316] a remote terminal from which the first message originates;
[0317] The target remote terminal of the first message.
[0318] It can be understood that the implementation process of each implementation method mentioned in this embodiment can refer to the following Figure 5 The relevant descriptions in the method embodiments shown in the figure achieve the same or corresponding technical effects, and will not be repeated here to avoid repetition.
[0319] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned MHRN message processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0320] The processor is the processor in the terminal described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.
[0321] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned MHRN message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0322] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0323] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned MHRN message processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0324] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0325] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course, can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, disk, CD, etc.), including several instructions to enable a terminal or a network-side device to execute the methods described in each embodiment of the present application.
[0326] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.
Claims
1. A message processing method for a multi-hop relay network MHRN, characterized in that: The method comprises: A first terminal receives a first message, where the first terminal is a terminal in the MHRN; Determining, by the first terminal, whether the first message has been processed; The first terminal processes the first message according to a determination result of whether the first message has been processed; The first message is a discovery message or a communication request message.
2. The method according to claim 1, characterized in that The first terminal processes the first message according to a result of determining whether the first message has been processed, including at least one of the following: When determining that the first message is a processed message, the first terminal discards the first message; When determining that the first message is an unprocessed message, the first terminal performs a first process on the first message, where the first process includes at least one of the following: forwarding the first message through the MHRN; Submitting the first message to the proximity service ProSe protocol layer; A first response message is generated based on the first message, and the first response message is sent through the MHRN.
3. The method according to claim 1 or 2, characterized in that: The first terminal determines whether the first message has been processed, including: The first terminal extracts the content or identifier in the first information field of the first message to obtain first information; The first terminal determines that the first message is a processed message when determining that the first information matches the second information, wherein the second information is the content or identifier in the second information field of the second message processed by the first terminal, and the second information field corresponds to the first information field; or When the first terminal determines that the first information does not match the second information, it determines that the first message is an unprocessed message.
4. The method according to claim 3, characterized in that The first information includes at least one of the following: an identifier of the first message; Random numbers or random strings; a layer 2 identifier of a remote terminal from which the first message originated; a layer 2 identifier of a remote end to which the first message is directed; A temporary identifier associated with a source remote terminal of the first message; a temporary identifier associated with a target remote end of the first message; identification information of a source remote terminal of the first message; identification information of a target remote terminal of the first message; Address information of the source remote terminal of the first message; address information of a target remote terminal of the first message; identification information related to the service of the first message; Local identification information of a source remote terminal of the first message; The local identification information of the target remote terminal of the first message.
5. The method according to claim 3 or 4, characterized in that: The first terminal determines whether the first information matches the second information in the following manner: When a first condition is met, the first terminal determines that the first information matches the second information; The first condition includes at least one of the following: The content in the first information field is consistent with the content in the second information field; The identifier in the first information field is consistent with the identifier in the second information field; or, When a second condition is met, the first terminal determines that the first information does not match the second information; The second condition includes at least one of the following: The content in the first information field is inconsistent with the content in the second information field; The identifier in the first information field is inconsistent with the identifier in the second information field.
6. The method according to any one of claims 2 to 5, characterized in that The method further comprises: When performing the first processing on the first message, the first terminal records the first information.
7. The method according to claim 6, characterized in that The method further comprises at least one of the following: When recording the first information, the first terminal starts a first timer corresponding to the first message, and when the first timer times out, deletes the first information or determines that the first information is invalid; wherein the timing duration of the first timer is a preset duration; The first terminal deletes the first information or determines that the first information is invalid at a first moment, and the first moment is located after a second moment, and the interval between the first moment and the second moment is greater than or equal to a preset time length, wherein the second moment is the moment when the first terminal processes the first message or the moment when the first terminal records the first information.
8. The method according to any one of claims 3 to 7, characterized in that The first terminal determines whether the first message has been processed, further comprising at least one of the following: The first terminal determines that the first message is a processed message when it is determined that the first information matches the second information and the time interval between the third moment and the fourth moment is less than the preset duration or the second timer is in a running state; The first terminal determines, when no processing record of the first message is found, that the first message is an unprocessed message; The first terminal determines that the first message is an unprocessed message when it is determined that the first information matches the second information and the time interval between the third moment and the fourth moment is greater than or equal to the preset duration or the second timer times out or is not started; Among them, the third moment is the moment when the first terminal obtains the second information or processes the second message corresponding to the second information, the fourth moment is the moment when the terminal receives the first message, and the fourth moment is later than the third moment; the second timer corresponds to the second message, and the start time is the moment when the first terminal obtains the second information or receives the second message, and the timing duration of the second timer is the preset duration.
9. The method according to any one of claims 3 to 8, characterized in that The method further comprises at least one of the following: When receiving the first message, the first terminal adds first identification information to the first information field of the first message, where the first identification information is used to identify the first message in the MHRN; When receiving the second message, the first terminal adds the second identification information to the second information field of the second message, where the first identification information is used to identify the second message in the MHRN.
10. The method according to claim 9, characterized in that The first terminal adds the target identification information to the target information field by using at least one of the following methods: Adding the target identification information in the target information field through a proximity service ProSe related protocol layer; Adding the target identification information in the target information field through a radio access network RAN protocol layer; Generate the target identification information through the RAN protocol layer, and add the target identification information to the target information field through the ProSe related protocol layer; Generate the target identification information through the ProSe related protocol layer, and add the target identification information to the target information field through the RAN protocol layer; The target information field includes at least one item of the first information field and the second information field, and the target identification information includes at least one item of the first identification information and the second identification information.
11. The method according to any one of claims 1 to 10, characterized in that The first terminal includes at least one of the following: a relay terminal of the first message; a source remote terminal of the first message; The target remote terminal of the first message.
12. A message processing device of a multi-hop relay network MHRN, used for a first terminal, characterized in that: The device comprises: A first receiving module, configured to receive a first message, wherein the first terminal is a terminal in the MHRN; A determination module, used to determine whether the first message has been processed; A first processing module, configured to process the first message according to a determination result of whether the first message has been processed; The first message is a discovery message or a communication request message.
13. The device according to claim 12, characterized in that The first processing module includes at least one of the following: a discarding unit, configured to discard the first message if it is determined that the first message is a processed message; A first processing unit is configured to perform a first processing on the first message when it is determined that the first message is an unprocessed message, wherein the first processing includes at least one of the following: forwarding the first message through the MHRN; Submitting the first message to the proximity service ProSe protocol layer; A first response message is generated based on the first message, and the first response message is sent through the MHRN.
14. The device according to claim 12 or 13, characterized in that The judging module comprises: A first extraction unit, configured to extract content or identification in a first information field of the first message to obtain first information; a first determining unit, configured to determine that the first message is a processed message when it is determined that the first information matches the second information, wherein the second information is content or an identifier in a second information field of the second message processed by the first terminal, and the second information field corresponds to the first information field; or The second determining unit is configured to determine that the first message is an unprocessed message when it is determined that the first information does not match the second information.
15. The device according to claim 14, characterized in that The first information includes at least one of the following: an identifier of the first message; Random numbers or random strings; a layer 2 identifier of a remote terminal from which the first message originated; a layer 2 identifier of a remote end to which the first message is directed; A temporary identifier associated with a source remote terminal of the first message; a temporary identifier associated with a target remote end of the first message; identification information of a source remote terminal of the first message; identification information of a target remote terminal of the first message; Address information of the source remote terminal of the first message; address information of a target remote terminal of the first message; identification information related to the service of the first message; Local identification information of a source remote terminal of the first message; The local identification information of the target remote terminal of the first message.
16. The device according to claim 14 or 15, characterized in that: The first determining unit is configured to determine that the first information matches the second information when a first condition is met; The first condition includes at least one of the following: The content in the first information field is consistent with the content in the second information field; The identifier in the first information field is consistent with the identifier in the second information field; or, The second determining unit is configured to determine that the first information does not match the second information when a second condition is met; The second condition includes at least one of the following: The content in the first information field is inconsistent with the content in the second information field; The identifier in the first information field is inconsistent with the identifier in the second information field.
17. The device according to any one of claims 13 to 16, characterized in that The device also includes: A recording module is used to record the first information when the first processing is performed on the first message.
18. The device according to claim 17, characterized in that The device further comprises at least one of the following: A first deletion module is used to start a first timer corresponding to the first message when recording the first information, and delete the first information or determine that the first information is invalid when the first timer times out; wherein the timing duration of the first timer is a preset duration; The second deletion module is used to delete the first information or determine that the first information is invalid at a first moment, the first moment is located after the second moment, and the interval between the first moment and the second moment is greater than or equal to a preset time, wherein the second moment is the moment when the first terminal processes the first message or the moment when the first terminal records the first information.
19. The device according to any one of claims 14 to 18, characterized in that The determination module is further configured to perform at least one of the following: In a case where it is determined that the first information matches the second information, and the time interval between the third moment and the fourth moment is less than the preset duration or the second timer is in a running state, determining that the first message is a processed message; If no processing record of the first message is found, determining that the first message is an unprocessed message; In the case where it is determined that the first information matches the second information, and the time interval between the third moment and the fourth moment is greater than or equal to the preset duration or the second timer times out or is not started, determining that the first message is an unprocessed message; Among them, the third moment is the moment when the first terminal obtains the second information or processes the second message corresponding to the second information, the fourth moment is the moment when the terminal receives the first message, and the fourth moment is later than the third moment; the second timer corresponds to the second message, and the start time is the moment when the first terminal obtains the second information or receives the second message, and the timing duration of the second timer is the preset duration.
20. The device according to any one of claims 14 to 19, characterized in that The device further comprises at least one of the following: A first adding module is configured to add first identification information to the first information field of the first message when the first message is received, where the first identification information is used to identify the first message in the MHRN; The second adding module is used to add the second identification information in the second information field of the second message when the second message is received, wherein the first identification information is used to identify the second message in the MHRN.
21. The device according to claim 20, characterized in that The first adding module or the second adding module adds the target identification information to the target information field by using at least one of the following methods: Adding the target identification information in the target information field through a proximity service ProSe related protocol layer; Adding the target identification information in the target information field through a radio access network RAN protocol layer; Generate the target identification information through the RAN protocol layer, and add the target identification information to the target information field through the ProSe related protocol layer; Generate the target identification information through the ProSe related protocol layer, and add the target identification information to the target information field through the RAN protocol layer; The target information field includes at least one item of the first information field and the second information field, and the target identification information includes at least one item of the first identification information and the second identification information.
22. The device according to any one of claims 12 to 21, characterized in that The first terminal includes at least one of the following: a relay terminal of the first message; a source remote terminal of the first message; The target remote terminal of the first message.
23. A terminal, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the message processing method of a multi-hop relay network MHRN as described in any one of claims 1 to 11 are implemented.
24. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the message processing method of the multi-hop relay network MHRN as described in any one of claims 1 to 11 are implemented.