Relay link establishment, configuration information sending method, device and readable storage medium
By receiving and judging the identifier of the target application through the relay device, and controlling the data transmission path according to the configuration information, the problem of the relay device's inflexible control of data transmission is solved, and the data transmission of the target application with security and privacy protection is realized.
Patent Information
- Application Number
- CN202010437468.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-21
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-05-21
AI Technical Summary
In the existing technology, relay device deployers want to provide services only for specific target applications, but existing methods cannot effectively control data transmission, resulting in all data being transmitted through the relay device, lacking flexibility and privacy protection.
The relay device receives indication information, identifies the target application, determines whether data transmission is allowed based on configuration information, generates and sends relay service indication information to control the data path, and prevents disallowed data from being transmitted through the relay device.
It enables flexible control over the transmission of data to the target application of the relay device, protects user privacy, avoids unnecessary data transmission paths, and improves the security and privacy protection of data transmission.
Smart Images

Figure CN113709902B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a relay link establishment method, a configuration information sending method, a device and a readable storage medium. Background Art
[0002] In order to improve the utilization of wireless spectrum and provide cellular network services to terminal devices outside the coverage of cellular networks, cellular communication networks have introduced Proximity-based Services (ProSe) communications. In ProSe communications, two terminal devices that are close to each other do not need to establish a communication link based on a base station, and the two terminal devices do not need to transmit data through a base station.
[0003] In ProSe communication, two terminal devices can establish a direct connection based on the PC5 interface. Alternatively, the two terminal devices can be connected through a relay device. In this case, the two terminal devices need to be connected to the relay device through the PC5 interface respectively.
[0004] Relay devices are usually provided by some manufacturers, and it costs money for these manufacturers to deploy relay devices, so manufacturers prefer to deploy relay devices that only serve some specific target applications. However, in the prior art, after two terminal devices establish a link through a relay device, all data between the two terminal devices can be transmitted through the relay device. Summary of the invention
[0005] The present application provides a relay link establishment method, a configuration information sending method, an apparatus and a readable storage medium, which are used to prevent a first terminal device and a second terminal device from transmitting target application data through a relay device when the target application data is not allowed to be transmitted through the relay device.
[0006] In the first aspect, the relay device of the present application receives a first message from a first terminal device. The first message includes first indication information and relay service indication information, and the first indication information is used to indicate the identifier of the target application. The relay service indication information is used to indicate that the first terminal device requests to establish a relay link. When the relay device determines that the data of the target application is allowed to be transmitted through the relay device, the first message is sent. When the relay device determines that the data of the target application is not allowed to be transmitted through the relay device, the first message is no longer sent. Since the relay device determines that the data of the target application is not allowed to be transmitted through the relay device, the first message is no longer sent. Therefore, the second terminal device cannot receive the first message from the relay device, and the second terminal device may only receive the first message from the first terminal device. In this case, the second terminal device will directly establish a link with the first terminal device, and no longer establish a link based on the relay device. In this way, the data that needs to be transmitted between the first terminal device and the second terminal device for the target application is no longer transmitted through the relay device, but is transmitted based on the link directly established between the first terminal device and the second terminal device.
[0007] In a possible implementation, when the target application identifier matches the first application identifier, the relay device allows the target application data to be transmitted through the relay device. In this way, it can be determined whether to allow the target application data to be transmitted through the relay device according to the target application identifier.
[0008] In a possible implementation, before the relay device receives the first message from the first terminal device, it also includes: the relay device receives configuration information of the relay device from the network device. The configuration information of the relay device includes the identifier of at least one application, and the relay device allows the data of each application in the at least one application to be transmitted through the relay device. The identifier of the first application mentioned in the foregoing content is one of the identifiers of the at least one application. In this way, the network device can configure the application that can use the relay service of the relay device.
[0009] In a possible implementation, the first indication information is also used to indicate the identifier of the target user. The target user is the user of the target application of the first terminal device. When the identifier of the target application matches the identifier of the first application, and the identifier of the target user matches the identifier of the first user, the relay device allows the data of the target application to be transmitted through the relay device. In this way, user-level granularity can be divided, so that the relay device provides relay services for specified users under some specified applications.
[0010] In a possible implementation, before the relay device receives the first message from the first terminal device, it also includes: the relay device receives configuration information of the relay device from the network device. Wherein, the configuration information of the relay device includes: an identifier of at least one application, and an identifier of a user corresponding to each of the identifiers of the at least one application. The identifier of the first application mentioned in the foregoing content is one of the identifiers of the at least one application, and the first user is one of the identifiers of the users corresponding to the identifier of the first application. For each application in the at least one application, the relay device allows the data of each user corresponding to the application to be transmitted through the relay device. In this way, the network device can configure the applications and users that can use the relay service of the relay device.
[0011] In a possible implementation, the first indication information includes a target relay service code. When the target relay service code matches the first relay service code, the relay device allows the data of the target application to be transmitted through the relay device. In this way, whether to provide relay service can be determined only by the relay service code, which can avoid the leakage of the target application's identification, thereby further protecting privacy.
[0012] In a possible implementation, before the relay device receives the first message from the first terminal device, it also includes: the relay device receives configuration information of the relay device from the network device. Wherein, the configuration information of the relay device includes: at least one relay service code. Each relay service code in the at least one relay service code corresponds to the identifier of at least one application; the relay device allows data of each application in the at least one application corresponding to each relay service code in the at least one relay service code to be transmitted through the relay device. The first relay service code mentioned in the foregoing content is one of the at least one relay service code. In this way, the network device can configure applications and users that can use the relay service of the relay device.
[0013] In a possible implementation, for each of the at least one application identifier corresponding to each of the at least one relay service code in the configuration information of the relay device, the application identifier corresponds to at least one user identifier, and the relay device allows the data of each user in the at least one user identifier corresponding to the application to be transmitted through the relay device. In this way, whether to provide relay service can be determined only by the relay service code, which can avoid the leakage of the target application identifier and the target user identifier, thereby further protecting privacy.
[0014] In a possible implementation, after the relay device receives the first message from the first terminal device, it also includes: the relay device sends a first request to the network device. The first request includes the identifier of the target application and the identifier of the relay device. The first request is used to request verification of whether the relay device is allowed to transmit the data of the target application. The relay device receives a first response returned by the network device. In a possible case, the first response is used to indicate that the relay device is allowed to transmit the data of the target application. Or, in another possible case, the first response is used to indicate that the relay device is not allowed to transmit the data of the target application. In this way, the relay device can verify from the network side whether to provide relay services for the target application.
[0015] In a possible implementation, the first request also includes an identifier of a target user. The target user is a user of the target application of the first terminal device. The first request is used to request verification of whether the relay device is allowed to transmit data of the target application corresponding to the target user. In a possible case, the first response is used to indicate that the relay device is allowed to transmit data of the target application corresponding to the target user. Alternatively, in another possible case, the first response is used to indicate that the relay device is not allowed to transmit data of the target application corresponding to the target user. In this way, the relay device can verify from the network side whether relay service is provided for the target user of the target application.
[0016] In a second aspect, the present application provides a method for establishing a relay link, in which a first device generates a first message and sends the first message. The first message includes first indication information and relay service indication information. The first indication information is used to indicate an identifier of a target application. The relay service indication information is used to indicate a request to establish a relay link. In this way, the relay device can determine whether to provide a relay service for the requested proximity service connection based on the first indication information.
[0017] In a possible implementation, the first indication information includes a target relay service code. In this way, whether to provide relay service can be determined only by the relay service code, which can avoid the disclosure of the target application identifier, thereby further protecting privacy.
[0018] In a possible implementation, before the first device generates the first message, it also includes: the first device receives the configuration information of the target user from the network device. The configuration information of the target user includes at least one relay service code, and the identifier of at least one application corresponding to each relay service code in the at least one relay service code. The target relay service code is the relay service code corresponding to the identifier of the target application in the configuration information of the target user. In this way, a foundation can be laid for the relay device to determine whether to provide relay service for the requested proximity service connection based on the target relay service code.
[0019] In a possible implementation, the configuration information of the target user includes at least one relay service code corresponding to the target user, and at least one application identifier corresponding to each relay service code in the at least one relay service code. The target user is a user of the target application of the first terminal device. In this way, the relay device can determine whether to provide relay service only through the relay service code, which can avoid the leakage of the identifier of the target application and the identifier of the target user, thereby further protecting privacy.
[0020] In a third aspect, the present application provides a method for sending configuration information, comprising: a network device generates configuration information of a relay device according to a preset first rule. The network device sends the configuration information of the relay device to the relay device. The configuration information of the relay device includes indication information for indicating an identifier of at least one application. The relay device allows data of each application in the at least one application to be transmitted through the relay device. In this way, the relay device can determine whether to provide a relay service for the requested proximity service connection based on the configuration information of the relay device.
[0021] In a possible implementation, the configuration information of the relay device includes the identifier of the at least one application. In this way, the relay device can determine whether to provide relay service for the requested proximity service connection based on the identifier of the target application indicated by the first indication information and the configuration information of the relay device.
[0022] In a possible implementation, the configuration information of the relay device includes the identifier of at least one application and the identifier of the user corresponding to each application identifier in the at least one application identifier. For each application in the at least one application, the relay device allows the data of each user corresponding to the application to be transmitted through the relay device. In this way, it can be determined whether the data of the target application is allowed to be transmitted through the relay device according to the identifier of the target application and the configuration information of the relay device.
[0023] In a possible implementation, the configuration information of the relay device includes at least one relay service code. For each relay service code in the at least one relay service code corresponding to the identifier of at least one application, the relay device allows the data of each application in the at least one application to be transmitted through the relay device. In this way, whether to provide relay service can be determined only by the relay service code, which can avoid the leakage of the identifier of the target application, thereby further protecting privacy.
[0024] In a possible implementation, for each of the at least one application identifier corresponding to each of the at least one relay service code, the application identifier corresponds to at least one user identifier, and the relay device allows the data of each user in the at least one user identifier corresponding to the application to be transmitted through the relay device. In this way, whether to provide relay service can be determined only by the relay service code, which can avoid the leakage of the target application identifier and the target user identifier, thereby further protecting privacy.
[0025] In a possible implementation, the method also includes a network device generating configuration information of a target user according to a preset second rule, and the network device sending the configuration information of the target user to the first terminal device. The target user is a user of the target application of the first terminal device. The configuration information of the target user includes at least one relay service code corresponding to the target user, and an identifier of each application in the identifier of at least one application corresponding to each relay service code in the at least one relay service code, and the identifier of the application corresponds to an identifier of at least one user. In this way, whether to provide relay service can be determined only by the relay service code, which can avoid the leakage of the identifier of the target application, thereby further protecting privacy.
[0026] In a fourth aspect, the present application provides a method for establishing a relay link, comprising: a first device receives configuration information of a target user. The configuration information of the target user is used to indicate the identifier of at least one application. When the target application matches one of the at least one application, relay service indication information is carried in a first message. When the target application does not match any of the at least one application, the first message does not carry relay service indication information. The relay service indication information is used to indicate that the first terminal requests to establish a relay link based on a relay device. The first device sends the first message. The first message is used to request to establish a proximity service link with a second terminal device. When the first message does not carry relay service indication information used to indicate that the first terminal requests to establish a relay link based on a relay device, the relay device will no longer forward the first message after receiving it, and correspondingly, the second terminal device will not be able to receive the first message from the relay device, and will not use the relay device when establishing a proximity service link with the first terminal device.
[0027] In a possible implementation, after the first device sends the first message, it also includes: establishing a proximity service link between the first device and the second terminal device through a relay device. The first device reports a second message to the network device. The second message carries the identifier of the target application. The second message is used to enable the network device to verify whether the relay device allows the transmission of data of the target application corresponding to the target user. In this way, a secondary verification can be performed on whether the relay device can provide relay services for the proximity service link.
[0028] In a fifth aspect, the present application provides a method for sending configuration information, comprising: a network device generates configuration information of a target user according to a preset second rule. The network device sends the configuration information of the target user to a first terminal device. The target user is a user of a target application of the first terminal device. The configuration information of the target user includes an identifier of at least one application. The data of the target user of each application in the at least one application is allowed to be transmitted through a relay device. In this way, the first terminal device can determine which applications' data can be transmitted through the relay device.
[0029] Corresponding to any one of the communication methods of the first aspect to the fifth aspect, the present application also provides a communication device. The communication device can be any device at the sending end or the receiving end that transmits data wirelessly. For example, a communication chip, a terminal device, or a network device (such as a base station, etc.). During the communication process, the device at the sending end and the device at the receiving end are relative. In some communication processes, the communication device can be used as the above-mentioned network device or a communication chip that can be used for the network device; in some communication processes, the communication device can be used as the above-mentioned terminal device or a communication chip that can be used for the terminal device.
[0030] In a sixth aspect, a communication device is provided, comprising a communication unit and a processing unit, to perform any implementation of any communication method in the first to fifth aspects above. The communication unit is used to perform functions related to sending and receiving. Optionally, the communication unit includes a receiving unit and a sending unit. In one design, the communication device is a communication chip, and the communication unit can be an input / output circuit or port of the communication chip.
[0031] In another design, the communication unit may be a transmitter and a receiver, or the communication unit may be a transmitter and a receiver.
[0032] Optionally, the communication device also includes various modules that can be used to execute any implementation of any communication method of the first to fifth aspects above.
[0033] In the seventh aspect, a communication device is provided, which is the above-mentioned first device, a terminal device (such as a first terminal device or a second terminal device), a relay device or a network device. Among them, the first device can be a terminal device, for example, the first device can be a first terminal device. The relay device can also be a terminal device or a network device, which is not specifically limited. The communication device may include a processor and a memory. Optionally, it also includes a transceiver, the memory is used to store a computer program or instruction, and the processor is used to call and run the computer program or instruction from the memory, and when the processor executes the computer program or instruction in the memory, the communication device executes any implementation of any communication method of the first aspect to the fifth aspect.
[0034] Optionally, there are one or more processors and one or more memories.
[0035] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0036] Optionally, the transceiver may include a transmitter (transmitter) and a receiver (receiver).
[0037] In an eighth aspect, a communication device is provided, comprising a processor. The processor is coupled to a memory and can be used to execute the method in any one of the first to fifth aspects, and any possible implementation of the first to fifth aspects. Optionally, the communication device also includes a memory. Optionally, the communication device also includes a communication interface, and the processor is coupled to the communication interface.
[0038] In one implementation, the communication device is a terminal device (such as a first device, a first terminal device, a second terminal device, a relay device). When the communication device is a terminal device, the communication interface may be a transceiver, or an input / output interface. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.
[0039] In another implementation, the communication device is a network device (such as a relay device or a network device). When the communication device is a network device, the communication interface may be a transceiver, or an input / output interface. Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.
[0040] In another implementation, the communication device is a chip or a chip system. When the communication device is a chip or a chip system, the communication interface may be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or the chip system. The processor may also be embodied as a processing circuit or a logic circuit.
[0041] In a ninth aspect, a system is provided, which includes the above-mentioned terminal equipment, relay device and network equipment.
[0042] In the nineteenth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect, or enables a computer to execute a method in any implementation of the first to fifth aspects.
[0043] In the tenth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions). When the computer-readable storage medium is run on a computer, the computer executes a method in any possible implementation of the first aspect, or executes a method in any implementation of the first to fifth aspects.
[0044] In an eleventh aspect, a processing device is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the method in any one of the first to fifth aspects and any possible implementation of the first to fifth aspects is implemented.
[0045] In the specific implementation process, the above-mentioned processing device can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. This application does not limit the specific implementation of the processor and various circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1a A schematic diagram of a system architecture of ProSe communication provided in an embodiment of the present application;
[0047] Figure 1b A schematic diagram of a possible system architecture for proximity service communication under a 5G architecture provided in an embodiment of the present application;
[0048] Figure 1c A schematic diagram of a link structure based on proximity service provided in an embodiment of the present application;
[0049] Figure 1d A schematic diagram of a link structure based on proximity service provided in an embodiment of the present application;
[0050] Figure 1e A schematic diagram of a method flow for establishing a link based on proximity service provided in an embodiment of the present application;
[0051] Figure 1f A schematic diagram of a method flow for establishing a link based on proximity service provided in an embodiment of the present application;
[0052] Figure 2a A schematic diagram of a flow chart of a relay link establishment method provided in an embodiment of the present application;
[0053] Figure 2b A schematic diagram of a flow chart of a relay link establishment method provided in an embodiment of the present application;
[0054] Figure 3a A flowchart of a method for generating configuration information provided in an embodiment of the present application;
[0055] Figure 3b A flowchart of a method for generating configuration information provided in an embodiment of the present application;
[0056] Figure 3c A flowchart of a method for generating configuration information provided in an embodiment of the present application;
[0057] Figure 4a A communication parameter configuration process and a discovery parameter configuration process provided in an embodiment of the present application;
[0058] Figure 4b A process for obtaining strategy information provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0060] Figure 6 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;
[0061] Figure 7 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The embodiments of the present application are applicable to proximity service communication. Proximity service communication means that a communication link can be established between two terminal devices that are close to each other without being based on a base station, and data can be transmitted between the two terminal devices without going through a base station. A communication link can be established directly between the two terminal devices, or a communication link can be established based on a relay device. When a communication link is established based on a relay device, the link can also be referred to as a relay connection. The proximity service communication in the embodiments of the present application can be proximity service (Proximity-based Services, ProSe) communication, and of course it can also be other names. For the convenience of introduction in the following content, ProSe is used as an example for introduction. In the embodiments of the present application, proximity service communication can also be written as proximity service, ProSe, etc.
[0063] Figure 1a A schematic diagram of a ProSe communication system architecture provided in an embodiment of the present application is provided, and the schematic diagram of the architecture is a schematic diagram of a ProSe communication system architecture provided in an embodiment of the present application, and the schematic diagram of the ProSe communication system architecture provided in an embodiment of the present application ... th The ProSe communication architecture is based on the communication architecture of the 4G generation. Figure 1a Each device or network element in the embodiments of the present application is introduced.
[0064] 1. Terminal equipment: may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of terminals, mobile stations (MS), terminals, user equipment (UE), soft terminals, etc.
[0065] The terminal device can support ProSe communication or other services. The terminal device supports receiving or sending messages through the PC5 interface or the Uu interface. When the terminal device is connected to the network through a relay device, it can also be called a remote terminal device (Remote UE). Figure 1a Two terminal devices are shown in the figure: a first terminal device and a second terminal device. When the first terminal device and the second terminal device communicate based on proximity services, the two terminal devices can be understood as proximity service applications (ProSe applications). When the first terminal device and the second terminal device can communicate based on proximity services, the first terminal device and the second terminal device can communicate based on the PC5 interface. In this case, the data transmitted between the first terminal device and the second terminal device no longer needs to pass through the base station (such as Figure 1aThe Evolved Universal Mobile Telecommunications System Terrestrial Radio Access Network (E-UTRAN) is used for transmission.
[0066] A link can be established between two terminal devices based on a relay device, that is, the two terminal devices can be connected to the intermediate device respectively. In another possible implementation, a link can be established directly between the two terminal devices, and the link between the two terminal devices does not include a relay device. The two structures can be referred to as follows Figure 1c and Figure 1d The detailed description will not be given here.
[0067] 2. Relay device: The relay device Figure 1a Not shown, the relay device can be written as Relay in English. The relay device can be a terminal device or a wireless access device (for example, an access device similar to a router deployed by an operator). The location of the relay device can be fixed, such as a relatively fixed router, or the location of the relay device can be movable, such as a mobile phone that can be flexibly moved.
[0068] 3. ProSe function: The ProSe function module can allocate some parameters (such as the discovery parameters mentioned in the following content) to the first terminal device and the second terminal device to help the first terminal device and the second terminal device establish a link based on ProSe. Figure 1a As shown, the system architecture may also include a ProSe application server, which may be used to verify information such as the authority and identity of the UE requesting to establish ProSe communication.
[0069] 4. Access network equipment: It can be responsible for wireless resource management, uplink and downlink data classification and quality of service (QoS) application, as well as completing signaling processing with control plane network elements and data forwarding with user plane functional network elements. For example, the access network equipment can be a base station, a broadband network service gateway (BNG), an aggregation switch, a non-3GPP access device, etc. The base station can include various forms of base stations, such as macro base stations, micro base stations (also called small stations), relay stations, access points, etc., which are not specifically limited in the embodiments of the present application. For the equipment for terminal equipment to access the core network, they can be uniformly referred to as access network equipment in the embodiments of the present application and will not be explained. For example, the access network equipment can be an evolved universal terrestrial radio access network (E-UTRAN) device in a 4G network, a next generation radio access network (NG-RAN) device in a 5G network, etc.
[0070] like Figure 1a As shown, the system architecture may also include a Home Subscriber Server (HSS) network element, a Mobility Management Entity (MME) network element, a Serving Gateway (S-GW) network element, and a Packet Data Network Gateway (P-GW) network element. Among them, HSS can be used to manage the user's subscription information, similar to UDM. MME can be used to perform mobility management and access control on users. S-GW can be used for gateways terminating at the E-UTRAN interface, uplink and downlink transport layer packet marking, mobility anchor point, billing, etc. P-GW can be used for gateways terminating at the SGi interface for PDN, user-based packet filtering functions, legal interception functions, UE IP address allocation functions, etc. Among them, the UE and E-UTRAN can communicate through the Long Term Evolution (LTE)-Uu interface, the proximity service function network element and the UE can communicate based on the PC3 interface, and the proximity service function network element and the proximity service application server can communicate based on the PC2 interface. The proximity service function network element and HSS can communicate based on the PC4a interface, the HSS can communicate with the MME, S-GW or P-GW based on the S6a interface, and the E-UTRAN can communicate with the MME, S-GW or P-GW based on the S1 interface.
[0071] With the 3GPP organization's development of the fifth-generation mobile network (the 5 th In the process of 5G standard formulation, ProSe is also an important topic that has been studied and discussed. Figure 1b The present application embodiment provides a possible system architecture diagram of proximity service communication under a 5G architecture. Figure 1b Introduce each device or network element in the network.
[0072] 1. Terminal equipment. Figure 1b As shown, the communication system terminal equipment, the relevant introduction of the terminal equipment can be found in Figure 1a The introduction of terminal equipment in Figure 1b In the example, the first terminal device and the second terminal device are still used as two terminal devices.
[0073] 2. ProSe application server: can be used to verify the authority and identity of the UE requesting to establish ProSe communication.
[0074] 3. 5G NG-RAN network element: used to provide network access for authorized terminal devices in a specific area, and can use transmission tunnels of different qualities according to the level of the terminal device, business requirements, etc. NG-RAN network elements can manage wireless resources, provide access services for terminal devices, and then complete the forwarding of control signals and terminal device data between the terminal device and the core network. NG-RAN can also be understood as a base station in a traditional network.
[0075] 4. User plane network element: used for packet routing and forwarding and quality of service (QoS) processing of user plane data. Figure 1b As shown, in the 5G communication system, the user plane network element may be a user plane function (UPF) network element, which may include an intermediate user plane function (I-UPF) network element and an anchor user plane function (A-UPF) network element. In future communication systems, the user plane network element may still be a UPF network element, or may have other names, which are not limited in this application.
[0076] 5. Access management element: It is mainly used for mobility management and access management, and can be used to implement other functions of the mobility management entity (MME) except session management, such as lawful interception and access authorization / authentication. Figure 1b As shown, in the 5G communication system, the access management network element may be an access and mobility management function (AMF) network element. In future communication systems, the access management network element may still be an AMF network element, or may have other names, which are not limited in this application.
[0077] 6. Session management network element: mainly used for session management, allocation and management of Internet protocol (IP) addresses of terminal devices, selection of endpoints for manageable user plane functions, policy control and charging function interfaces, and downlink data notification. Figure 1b As shown, in the 5G communication system, the session management network element may be a session management function (SMF) network element, which may include an intermediate session management function (I-SMF) network element and an anchor session management function (A-SMF) network element. In future communication systems, the session management network element may still be an SMF network element, or may have other names, which are not limited in this application.
[0078] 7. Policy control network element: A unified policy framework for guiding network behavior, providing policy rule information for control plane function network elements (such as AMF, SMF network elements, etc.), and generally making policy decisions based on contract information, etc. In a 4G communication system, the policy control network element can be a policy and charging rules function (PCRF) network element. Figure 1b As shown, in the 5G communication system, the policy control network element may be a policy control function (PCF) network element. In future communication systems, the policy control network element may still be a PCF network element, or may have other names, which are not limited in this application.
[0079] 8. Data management network element: used to process terminal device identification, access authentication, registration and mobility management, manage user contract data and authentication data, etc. Figure 1bAs shown, in the 5G communication system, the data management network element may be a unified data management (UDM) network element. In future communication systems, the unified data management may still be a UDM network element, or may have other names, which are not limited in this application.
[0080] 9. Unified data repository network element: used to provide storage and retrieval for PCF policies, storage and retrieval of open structured data, and storage of user information requested by application functions. Figure 1b As shown, in a 5G communication system, the unified data repository network element may be a unified data repository network element (UDR) network element. In future communication systems, the unified data repository network element may still be a UDM network element, or may have other names, which are not limited in this application.
[0081] 10. Application network element: used for data routing affected by applications, accessing network open function network elements, interacting with the policy framework for policy control, etc. Figure 1b As shown, in the 5G communication system, the application network element may be an application function (AF) network element. In future communication systems, the application network element may still be an AF network element, or may have other names, which are not limited in this application.
[0082] 11. Network capability exposure function network element: used to provide network customization functions, connect core network elements with external application servers, and provide authentication and data forwarding services when external application servers initiate service requests to the core network. Figure 1b As shown, in the 5G communication system, the network capability exposure function network element can be a network capability exposure function (NEF) network element. In future communication systems, the network capability exposure function network element can still be a NEF network element, or it can have other names, which is not limited in this application.
[0083] 12. Direct discovery name management function network element: responsible for the generation and allocation of ProSe discovery parameters. As a logical network element, it can be integrated into other network elements during deployment. Figure 1b As shown, in the 5G communication system, the direct discovery name management function network element can be a direct discovery name management function (Direct Discovery Name ManagementFunction, DDNMF) network element. In future communication systems, the direct discovery name management function network element can still be a DDNMF network element, or it can have other names, which is not limited in this application.
[0084] exist Figure 1b The above can be achieved through PCF network elements Figure 1a Some functions of the proximity service function network element (ProSeFunction), such as the function of interacting with other core network elements during ProSe communication. Figure 1b The DDNMF network element in the Figure 1a The allocation function of some parameters in the ProSe Function in the Proximity Service Function, such as the allocation of discovery parameters mentioned in the subsequent content. Figure 1a In the network, the proximity service function network element (ProSeFunction) may be deployed in the user plane of the core network. Figure 1b In one possible implementation, DDNMF may be deployed on the control plane.
[0085] It is understandable that the above network elements or functions can be network elements in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (e.g., a cloud platform). The above network elements or functions can be divided into one or more services, and further, services that exist independently of network functions may also appear. In this application, instances of the above functions, or instances of services included in the above functions, or service instances that exist independently of network functions can all be referred to as service instances.
[0086] It should be noted that the embodiments of the present application are not limited to the above system architecture, but can also be applied to other future communication systems, such as the 6th generation (6G) system architecture, etc. In addition, the names of the various network elements used in the embodiments of the present application may remain the same in future communication systems, but the names may be changed.
[0087] Figure 1c and Figure 1d Two schematic diagrams of link structures based on proximity services are shown as examples. Figure 1c As shown, the first terminal device and the second terminal device can directly establish a connection based on the PC5 interface without any other relay device in between. In this case, the data transmitted between the first terminal device and the second terminal device does not require a base station or forwarding by a relay device. Figure 1d As shown, the first terminal device and the second terminal device can establish a connection with the relay device (UE-TO-UE relay) based on the PC5 interface. In this case, data transmission between the first terminal device and the second terminal device needs to be carried out through the relay device. In this way of establishing a link of a proximity service based on a relay device, the terminal device can obtain a larger communication range and improve the communication quality of two terminal devices at a long distance.
[0088] Figure 1e A schematic diagram of a method for establishing a link based on proximity service is shown as an example. Figure 1e As shown, the method includes:
[0089] S201, the first terminal device broadcasts discovery parameters.
[0090] Correspondingly, both the relay device and the second terminal device will receive the discovery parameter.
[0091] The first terminal device needs to use the proximity service and is the terminal device that initiates the proximity service communication. It is the initiator, which can be written as announcing UE or discover UE in English. The first terminal device broadcasting discovery parameters can also be called the discovery parameter broadcast of the first terminal device, which can be written as discoveryrequest(announce) in English.
[0092] In a possible implementation, before step S201, the first terminal may apply to the network device (e.g., the ProSe function mentioned in the above content) for discovery key parameters, where the discovery key parameters may be written as ProSeApplicationcode in English, or ProSeAppcode in English, or ProSeresponsecode in English. The discovery parameters also include a relay service indication, where the value in the relay service indication is set to 1, indicating that the discovery parameters sent by the first terminal can be forwarded once more.
[0093] S202, after receiving the discovery parameter, the relay device determines that the discovery parameter includes relay service indication information, and the value of the relay service indication is 1, and then forwards the discovery parameter. If the relay device receives the discovery parameter and determines that the discovery parameter does not include relay service indication information, or the value of the relay service indication is 0, then the discovery parameter is no longer forwarded.
[0094] The value of the relay service indicator in the discovery parameter forwarded by the relay device is modified to 0, indicating that the number of times the discovery parameter forwarded by the relay device can be forwarded is 0. In this way, if other relay devices receive the discovery parameter forwarded by the relay device, they will not forward it again, thereby avoiding the discovery parameter being forwarded multiple times between relay devices.
[0095] Correspondingly, the second terminal device receives a discovery parameter from the relay apparatus, and the value of the relay service indication in the discovery parameter is 0.
[0096] S203, the second terminal device determines whether the discovery filter parameter matches the discovery key parameter of the first terminal device. If they match, step 204 is executed, and if they do not match, the process ends.
[0097] In a possible implementation, before step S203, the second terminal device may apply to the network device (such as the ProSe function mentioned above) for discovery filter parameters, which may be written as discovery filter or discover response filter. The second terminal device is a listener, which listens to the discovery parameters broadcast by the first terminal device. The second terminal device may be written as monitoring UE or discovererUE in English.
[0098] Exemplarily, the network device sends the ProSe APP Code allocated to the first terminal device as part of the discovery filter parameter to the second terminal device. That is to say, the discovery key parameter is a portion of bytes in the discovery filter parameter. When the second terminal device receives the discovery key parameter broadcast by the first terminal device and the content of a segment of bytes in the discovery filter parameter is exactly the same, it can be considered that the discovery key parameter completely matches the issuance filter parameter.
[0099] Since the second terminal device receives the discovery parameters from the relay device and the first terminal device respectively, there are two paths for the second terminal device to establish a link with the first terminal device. The second terminal device can select which path to choose through the following step S204.
[0100] S204, whether the second terminal device chooses to establish a link with the first terminal device through the relay device, if so, execute step S205, if not, execute step S208.
[0101] In step 204, the second terminal device may be selected based on the signal strength of the two discovery parameters from the first terminal device and the relay device. For example, if the signal strength of the discovery parameter from the relay device is stronger, the second terminal device chooses to establish a connection with the first terminal device through the relay device, which is the above Figure 1d If the signal strength of the discovery parameter received from the first terminal device is strong, the second terminal device chooses to directly establish a connection with the first terminal device, that is, no longer through the relay device, as described above. Figure 1c The link structure shown.
[0102] S205: The second terminal device returns a discovery feedback message to the relay apparatus.
[0103] It is found that the English word for feedback message can be written as request accept.
[0104] S206, the relay device forwards the discovery feedback message to the first terminal device.
[0105] Correspondingly, the first terminal device receives a discovery feedback message from the relay apparatus.
[0106] S207, the first terminal device establishes a UE-to-UE link based on the relay device. The link established in S207 is as described above. Figure 1d The link structure shown.
[0107] S208: The second terminal device sends a discovery feedback message to the first terminal device.
[0108] Correspondingly, the first terminal device receives a discovery feedback message from the second terminal device.
[0109] S209, the first terminal device establishes a UE-to-UE link with the second terminal device, and the link does not include a relay device. The link established in S209 is as described above. Figure 1c The link structure shown.
[0110] exist Figure 1e In the method shown, since the second terminal device receives the discovery parameters from the relay device and the first terminal device respectively, there are two paths for the second terminal device to establish a link with the first terminal device. Which one can be selected by the second terminal device, for example, it can be selected based on the signal strength of the two discovery parameters from the first terminal device and the relay device, and selected by step S204. In another possible implementation, it can also be selected by the first terminal device. In this case, after the above step S203, the second terminal device can return a discovery feedback message to the first terminal device through the relay device, and the second terminal device also needs to directly return a discovery feedback message to the first terminal device (that is, there is no need to feed back the discovery feedback message through the relay device). Since the first terminal device receives two discovery feedback messages from the relay device and the first terminal device respectively, there are two paths for the first terminal device to establish a link with the second terminal device. Which one can be selected by the first terminal device, for example, it can be selected based on the signal strength of the two discovery feedback messages from the second terminal device and the relay device.
[0111] In the embodiment of the present application, there may be two discovery modes in the discovery mechanism of ProSe communication, namely, open mode (Open discovery) and restricted mode (Restricted discovery). As the name implies, in the open mode, any terminal device (or user) authorized by the ProSe service can apply for ProSe discovery parameters as long as it is interested in the ProSe application, and then monitor whether there is a publishing UE (Announcing UE) nearby. When the discovery key parameter and the discovery filter parameter match, a ProSe connection can be established. In the restricted mode, according to different application requirements (i.e., determined by the ProSe application), only some terminal devices (or users) are eligible for node discovery, or the application service is restricted to use by some terminal devices (or users) (for example, certain multicast scenarios, or only terminal devices (or users) authenticated by the application server, etc.). Therefore, when the terminal device (or user) applies for ProSe discovery parameters from the ProSe Function, the application message will carry the identification of the discovery mode to indicate whether the terminal device (or user) initiates ProSe discovery in an open mode or a restricted mode. When the ProSe Function module receives a request for discovery parameters of a restricted mode, it needs to verify with the ProSe application server whether the terminal device (or user) has the authority to apply for discovery of the ProSe restricted mode. Only when the verification is successful will the ProSe Function module return the ProSe discovery parameters to the terminal device (or user).
[0112] Figure 1f A schematic diagram of a method for establishing a link based on proximity service is shown as an example. Figure 1f As shown, the method includes:
[0113] S301, the first terminal device sends a unicast establishment request.
[0114] The first terminal device may broadcast the unicast establishment request, which may be written as direct communication request in English. Correspondingly, the relay device and the second terminal device may both receive the unicast establishment request.
[0115] The first terminal device is a terminal device that needs to use the proximity service and is a terminal device that initiates proximity service communication, and is the initiator.
[0116] In a possible implementation, the unicast establishment request includes the identifier of the target user, the identifier of the target application, and the relay service indication. The identifier of the target application is the application running on the first terminal device, and is the application corresponding to the data that the first terminal device requests to be transmitted through the proximity service. The target user is the user logged in on the target application running on the first terminal device. The value of the relay service indication in the unicast establishment request can be set to 1, indicating that the discovery parameters sent by the first terminal can be forwarded once more.
[0117] In a possible implementation, the unicast establishment request may also carry the identifier of the second terminal device. In this case, the unicast establishment request may be considered as a user-oriented (UE oriented) unicast establishment request. If the request message does not carry the identifier of the second terminal device, the unicast establishment request may be considered as service or application oriented (Service or Application oriented). Optionally, the unicast establishment request may also carry group identification information (Group ID). At this time, the unicast request message may be considered as being oriented to restricted users. For example, if the unicast establishment request carries the Group ID, any terminal device in the same group may send a unicast establishment feedback message to the first terminal device, thereby establishing a proximity service link between the first terminal device and a terminal device in the same group.
[0118] S302, the relay device receives a unicast establishment request, and finds that the value of the relay service indication of the unicast establishment request is 1, and then forwards the unicast establishment request. After receiving the unicast establishment request, the relay device determines that the unicast establishment request includes relay service indication information, and the value of the relay service indication is 1, and then forwards the unicast establishment request. If the relay device receives the unicast establishment request and determines that there is no relay service indication information in the unicast establishment request, or the value of the relay service indication is 0, the unicast establishment request is no longer forwarded.
[0119] The value of the relay service indicator in the unicast establishment request forwarded by the relay device is modified to 0, indicating that the number of times the unicast establishment request forwarded by the relay device can be forwarded is 0. In this way, if other relay devices receive the unicast establishment request forwarded by the relay device, they will not forward it again, thereby preventing the unicast establishment request from being forwarded multiple times between relay devices. Optionally, the unicast establishment request forwarded by the relay device may also include the identifier of the relay device.
[0120] Correspondingly, the second terminal device receives a unicast establishment request from the relay apparatus, and the value of the relay service indication in the unicast establishment request is 0.
[0121] In step S302, a possible implementation method is also included, in which the relay device can determine whether the unicast establishment request needs to be forwarded according to some situations, such as QoS requirements, the load situation of the relay device, etc. For example, the first terminal device can carry QoS parameters (such as bandwidth) in the unicast establishment request. After receiving the unicast establishment request, the relay device determines whether the QoS parameters can be supported in combination with the current load of the relay device (that is, the bandwidth that can be provided). Alternatively, the relay device stores a default mapping relationship between a preset application identifier and a QoS parameter. When the relay device receives a unicast establishment request and the unicast establishment request carries a target application identifier, it can determine whether the QoS parameters corresponding to the target application can meet the QoS parameters in the unicast establishment request based on the preset mapping relationship.
[0122] S303, whether the second terminal device chooses to establish a link with the first terminal device through the relay device, if so, execute step S304, if not, execute step S307.
[0123] In step S303, the second terminal device may be selected based on the signal strength of the two discovery parameters from the first terminal device and the relay device. For example, if the signal strength of the discovery parameter from the relay device is stronger, the second terminal device chooses to establish a connection with the first terminal device through the relay device, which is the above Figure 1d If the signal strength of the discovery parameter received from the first terminal device is strong, the second terminal device chooses to directly establish a connection with the first terminal device, that is, no longer through the relay device, as described above. Figure 1c The link structure shown.
[0124] S304: The second terminal device returns a unicast establishment feedback message to the relay apparatus.
[0125] The English name of the unicast establishment feedback message can be written as request accept. In an optional implementation, the unicast establishment feedback message returned by the second terminal device can carry a unicast connection type indication, which can indicate whether the second terminal device directly establishes a link with the first terminal device or establishes a link with the first terminal device through a relay device. The unicast connection type indication in the unicast establishment feedback message in step S304 is used to indicate that the second terminal device is based on a proximity service link established between the relay device and the first terminal device.
[0126] S305: The relay device forwards a unicast establishment feedback message to the first terminal device.
[0127] Correspondingly, the first terminal device receives a unicast establishment feedback message from the relay apparatus.
[0128] S306: The first terminal device establishes a communication link for the proximity service based on the relay device. The link established in S306 is as described above. Figure 1d The link structure shown.
[0129] S307: The second terminal device sends a unicast establishment feedback message to the first terminal device.
[0130] Correspondingly, the first terminal device receives a unicast setup feedback message from the second terminal device. A unicast connection type indication may be added to the unicast setup feedback message, wherein the unicast connection type indication in the unicast setup feedback message in step S307 is used to indicate that the second terminal device directly establishes a proximity service link with the first terminal device, and the link does not include a relay device.
[0131] S308: The first terminal device establishes a proximity service communication link with the second terminal device, and the link does not include a relay device. The link established in S308 is as described above. Figure 1c The link structure shown.
[0132] exist Figure 1f In the method shown, since the second terminal device receives unicast establishment requests from the relay device and the first terminal device respectively, there are two paths for the second terminal device to establish a link with the first terminal device. Which one can be selected specifically can be selected by the second terminal device, for example, it can be selected based on the signal strength of the two unicast establishment requests from the first terminal device and the relay device. In another possible implementation, it can also be selected by the first terminal device. In this case, after the above step S302, the second terminal device can return a unicast establishment feedback message to the first terminal device through the relay device, and the second terminal device also does not pass through the relay device, that is, directly returns a unicast establishment feedback message to the first terminal device. Since the first terminal device receives two unicast establishment feedback messages from the relay device and the first terminal device respectively, there are two paths for the first terminal device to establish a link with the second terminal device. Which one can be selected specifically can be selected by the first terminal device, for example, it can be selected based on the signal strength of the two unicast establishment feedback messages from the second terminal device and the relay device.
[0133] from Figure 1e and Figure 1fIt can be seen that a proximity service link is established between the first terminal device and the second terminal device. Whether the link includes a relay device depends on the first terminal device or the second device, and the first terminal device or the second terminal device only determines whether the proximity service link includes a relay device based on the signal strength. The deployer of the relay device or the owner of the relay device may only want the relay device to serve specific applications, that is, only provide services for the data of certain specific applications. Based on the emergence of this problem, a method for establishing a relay link is provided in an embodiment of the present application. In this method, when the data of the target application is not allowed to be transmitted through the relay device, the first message is no longer forwarded by the relay device, thereby avoiding the first terminal device and the second terminal device from establishing a link based on the relay device, and thus avoiding the first terminal device and the second terminal device from transmitting the data of the target application through the relay device. The scheme provided in the embodiment of the present application is described in detail below through some embodiments.
[0134] Based on the above, Figure 2a A schematic diagram of a process for establishing a relay link provided by an embodiment of the present application is exemplarily shown, such as Figure 2a As shown, the method includes:
[0135] S401, a first terminal device generates a first message.
[0136] The first message includes first indication information and relay service indication information.
[0137] The first indication information is used to indicate the identification of the target application. The identification of the target application mentioned in the embodiment of the present application can be an application identification (Application ID, APP ID) or a service identification (Service ID). The data of an application mentioned in the embodiment of the present application refers to the data corresponding to the application running on a terminal device.
[0138] The relay service indication information is used to indicate that the first terminal device requests to establish a relay link. The relay link in the embodiment of the present application refers to a link between terminal devices and terminal devices established based on a relay device. In a possible implementation, the English word for the relay service indication information can be written as rela_indication. The value of the relay service indication information in the first message sent by the first terminal device can be set to 1, indicating that the first message can also be forwarded 1 times. The value of the relay service indication information can also be understood as the number of relay hops in the link of the proximity service established between the terminal devices. It can also be understood as: when the value of the relay service indication information is 1, the relay service indication information is used to indicate that the first terminal device requests to establish a relay link. When the value of the relay service indication information is 0, the relay service indication information is used to indicate that the first terminal device requests to directly establish a proximity service connection with other terminal devices, and the link does not include a relay device.
[0139] In the embodiment of the present application, the first terminal device may also be the first apparatus.
[0140] In a possible implementation manner, the first message may be a discovery parameter broadcast, or may be a unicast establishment request, wherein the unicast establishment request may be written as directcommunicationrequest in English.
[0141] S402: The first terminal device broadcasts a first message. The first message is used to request to establish a proximity based service link.
[0142] Correspondingly, the relay device may receive the first message from the first terminal device. The second terminal device may also receive the first message from the first terminal device. Of course, multiple relay devices and multiple second terminal devices may also receive the first message. In the embodiment of the present application, one relay device and one second terminal device are used as an example for description.
[0143] S403: The relay device determines whether to allow the data of the target application to be transmitted through the relay device.
[0144] In a possible implementation, if the relay device determines that the target application data is allowed to be transmitted through the relay device, step S403 is executed. In a possible implementation, if the relay device determines that the target application data is not allowed to be transmitted through the relay device, the relay device no longer sends the first message, and optionally, the relay device may discard the first message.
[0145] In the embodiment of the present application, the data transmission between the first terminal device and the second terminal device based on the proximity service link is usually based on the data transmission between an application and the second terminal device, and the application is called the target application.TM Data is transmitted between the second terminal device, and the target application is WeChat.
[0146] The solution of how the relay device determines whether to allow the data of the target application to be transmitted through the relay device in this step will be described in detail in the subsequent content and will not be introduced here.
[0147] In the embodiment of the present application, the relay device determines whether to allow the data of the target application to be transmitted through the relay device, which can also be replaced by: the relay device determines whether to allow the first terminal device to establish a proximity service link through the relay device. In the embodiment of the present application, the first terminal device may initiate multiple requests to establish a proximity service link, and the target applications corresponding to the data requested to be transmitted in the two requests to establish a proximity service link may be the same or different. Therefore, the relay device needs to determine whether to allow the first terminal device to establish a proximity service link through the relay device each time for each request initiated by the first terminal device to establish a proximity service link. For the two requests initiated by the first terminal device to establish a proximity service link, the relay device may allow the first terminal device to establish a proximity service link through the relay device once, and may not allow the first terminal device to establish a proximity service link through the relay device the other time.
[0148] In step S403, because the relay device determines that the data of the target application is not allowed to be transmitted through the relay device, the first message is no longer forwarded by the relay device, so the second terminal device will not receive the first message from the relay device, and the second terminal device will no longer establish a link with the first terminal device based on the relay device, thereby avoiding the transmission of the target application data through the relay device.
[0149] And when the relay device no longer sends the first message, the second terminal device may have only received the first message from the first terminal device. In this case, if the second terminal device determines to establish a proximity service link with the first terminal device (for example, the first message also includes a discovery key parameter, and the second terminal device determines to establish a proximity service link with the first terminal device when it determines that the discovery filter parameter of the second terminal device matches the discovery key parameter), the proximity service link no longer includes the relay device. In this case, the second terminal device directly returns the first response to the first terminal device. The first terminal device only receives the first response from the second terminal device, so a proximity service link is established between the first terminal device and the second terminal device, and the link no longer includes the relay device.
[0150] In step S403, in a possible implementation, if the information corresponding to the group ID carried in the first message received by the relay device, the target application is only provided to restricted users (the relay device knows that it can only provide relay services for the data of some users under the target application based on the locally stored configuration information), for example: the configuration information of the relay device only includes the group ID but no group member information; or the configuration information of the relay device only includes the group ID, but there is no description of the target user in the group member information; or the configuration information stored locally by the relay device does not have the group ID and group member information; or the relay device does not store the configuration information of the relay device locally; or the local configuration information of the relay device does not have the list information of the restricted user's identification, or there is no identification of the target user in the list information. In these cases, the relay device can verify with the network device to establish the authorization of the relay device to the target user, that is, verify from the network device side whether the relay device has the authority to transmit the data of the target user of the target application. After the verification is successful, the network device may feedback an indication of the verification success to the relay device; if the verification fails, no information may be fed back or an indication of the verification failure may be fed back.
[0151] It should be noted that when the first terminal device broadcasts the first message, multiple relay devices will receive the first message. Figure 2a For the convenience of introduction, only one relay device is used as an example.
[0152] S404: The relay device sends the first message.
[0153] Correspondingly, the second terminal device receives the first message from the relay apparatus.
[0154] In S404, the relay device sending the first message may specifically refer to forwarding the first message. In one possible implementation, the relay device modifies the value of the relay service indication information in the received first message to 0, indicating that the number of times the first message sent by the relay device can be forwarded is 0. In this way, when other relay devices receive the first message, they will no longer forward the first message, thereby avoiding the first message from being forwarded multiple times in the relay device. Optionally, the first message forwarded by the relay device may also carry the first indication information, so that other relay devices can determine whether to allow the transmission of the target application data based on the first indication information.
[0155] In one possible implementation, after receiving the first message, the relay device will also change the destination address and source address in the first message. Specifically, the source address in the first message broadcast by the first terminal device is the address of the first terminal device. The source address in the first message sent by the relay device is the source address of the relay device. In the embodiment of the present application, the address of a terminal device or a relay device may be a Media Access Control (MAC) address or an Internet Protocol (IP) address, etc. Optionally, the first message forwarded by the relay device may carry a layer 2 identifier of the relay device, so that the second terminal device or other relay device uses the layer 2 identifier as the destination address of the feedback message.
[0156] In another possible implementation, after receiving the first message, the relay device may add a message header, or a message header, to the first message, with the first message as the message body, and the message header may include a source address, which is the address of the relay device. In a possible implementation, the first message may also carry an identifier of the relay device, which may be written as relay ID in English.
[0157] S405, the second terminal device determines whether to establish a proximity service link with the first terminal device, if so, execute step S406, if not, end the process.
[0158] In step S405, since the second terminal device has received the first message, the second terminal device needs to determine whether to establish a proximity based service link with the first terminal device.
[0159] In a possible implementation, the first message also includes a discovery key parameter, and the second terminal device determines to establish a proximity service link with the first terminal device when it is determined that the discovery filter parameter of the second terminal device matches the discovery key parameter. The second terminal device determines not to establish a proximity service link with the first terminal device when it is determined that the discovery filter parameter of the second terminal device does not match the discovery key parameter.
[0160] S406, whether the second terminal device chooses to establish a link with the first terminal device through the relay device, if so, execute step S407, if not, execute step S410.
[0161] When the second terminal device only receives the first message from the first terminal device, in this case, the second terminal device can only choose to directly establish a link with the first terminal device, and the connection does not include a relay device.
[0162] When the second terminal device receives the first message from the relay device and the first terminal device respectively, there are two paths for the second terminal device to establish a connection with the first terminal device. In one possible implementation, the second terminal device can select which path to choose. For example, the second terminal device can choose based on the signal strength of the two first messages from the first terminal device and the relay device. For example, if the signal strength of the first message from the relay device is stronger, the second terminal device chooses to establish a connection with the first terminal device through the relay device, which is the above Figure 1d If the signal strength of the first message received from the first terminal device is strong, the second terminal device chooses to directly establish a connection with the first terminal device, that is, no longer through the relay device, as described above. Figure 1c Optionally, the second terminal device may be selected based on the information power of the two first messages from the first terminal device and the relay device.
[0163] S407: The second terminal device returns a first response to the relay apparatus.
[0164] In a possible implementation, when the first message is a discovery parameter broadcast, the first response may be a discovery feedback message, which may be written as request accept in English. In a possible implementation, the first response may also be a unicast establishment request.
[0165] In a possible implementation, when the first message is a unicast establishment request, the first response may be a unicast establishment feedback, where the English for unicast establishment feedback may be written as request accept. A unicast connection type indication may be added to the first response, and the unicast connection type indication may indicate whether the second terminal device directly establishes a link with the first terminal device, or establishes a link with the first terminal device through a relay device. In the unicast establishment feedback message in step S304. The unicast connection type indication in the first response in step S407 is used to indicate that the second terminal device is based on a proximity service link established between the relay device and the first terminal device.
[0166] In a possible implementation manner, the first response fed back by the second terminal device may carry a user identifier of the second terminal device, for example, an identifier of the ProSe application layer, such as WeChat ID. TM Number, QQ TM Number or layer 2 identifier.
[0167] In a possible implementation, the first message may be a unicast establishment request, and the first response may be a unicast establishment feedback message. In this case, the unicast establishment feedback message may carry the identifier of the third user. The third user is a user logged in on the target application running on the second terminal device. The target user that may be carried in the unicast establishment request sent by the first terminal device is a group identifier. In this case, the relay device needs to determine whether the group identifier of the identifier of the third user is also the group identifier of the target user. Only when the identifier of the third user is the same as the identifier of the target user, the first terminal device and the second terminal device are allowed to establish a proximity service link through the relay device. The unicast establishment feedback message may carry the identifier of the third user, or it may carry the group identifier of the third user. The relay device may determine whether the identifier of the third user corresponds to the same group identifier as the identifier of the target user based on the configuration information of the relay device stored locally, or it may be verified from the network device. The specific verification method can refer to the relevant description of the aforementioned step S302, which will not be repeated here.
[0168] S408: The relay device forwards the first response to the first terminal device.
[0169] Correspondingly, the first terminal device receives a first response from the relay apparatus.
[0170] In a possible implementation, the first response forwarded by the relay device may carry an identifier of the relay device.
[0171] In a possible implementation, a unicast connection type indication may be added to the first response, wherein the unicast connection type indication in the first response in step S408 is used to indicate that the second terminal device establishes a proximity service link with the first terminal device through a relay device.
[0172] S409: The first terminal device establishes a proximity service link based on the relay device. The link established in S409 is as described above. Figure 1d The link structure shown.
[0173] S410, the second terminal device sends a first response to the first terminal device.
[0174] Correspondingly, the first terminal device receives a first response from the second terminal device.
[0175] S411, the first terminal device establishes a proximity service link with the second terminal device, and the link does not include a relay device. The link established in S411 is as described above. Figure 1c The link structure shown.
[0176] In one possible implementation, a unicast connection type indication may be added to the first response, wherein the unicast connection type indication in the first response in step S411 is used to indicate that the second terminal device directly establishes a proximity service link with the first terminal device, and the link does not include a relay device.
[0177] In the above-mentioned steps S409 and S411, during the process of establishing a link for a proximity service between the first terminal device and the second terminal device, the first terminal device can establish a unicast connection signaling interaction between the first terminal device and the second terminal device, and the signaling may include information such as Quality of Service (QoS) parameters used for communication, Internet Protocol (IP) addresses, etc.
[0178] After the above steps S409 and S411, the first terminal device and the second terminal device report the link completion information to the network device. If the proximity service link includes a relay device, the relay device may also report the link completion information to the network device. When the proximity service link includes a relay device, the link completion information may be used to enable the network device to perform a secondary verification on whether the first terminal device and the second terminal device have the ability to use the relay device for relay service. On the other hand, the relationship between the communication nodes may also be recorded for billing.
[0179] If the proximity service link includes a relay device, in one possible implementation, the first terminal device (or the second terminal device or the relay device) may send a connection establishment message to the AMF network element (or the PCF network element or the 5G DDNMF network element), and the connection establishment message may carry the identifier of the first terminal device, the identifier of the second terminal device, and the identifier of the relay device. The network device may perform a secondary verification on whether the first terminal device and the second terminal device have the right to use the relay device for relay services. Specifically, the AMF network element (or the PCF network element or the 5G DDNMF network element) may query the user's contract information whether the first terminal device and the second terminal device have the right to use the relay service based on the identifiers of the first terminal device and the second terminal device. After verification, the network device may send authorization information to the relay device.
[0180] If a relay device is included in the proximity service link, when the network device needs to charge the proximity service connection, the AMF network element (or PCF network element or 5G DDNMF network element) can send the binding relationship of this group of users (the first terminal device and the second terminal device) to the billing system, for example, the Charging Function (CHF) network element after receiving the connection report message from the first terminal device (or the second terminal device or the relay device). Alternatively, the first terminal device (or the second terminal device or the relay device) sends the binding relationship of this group of users (the first terminal device and the second terminal device) to the billing system.
[0181] Above Figure 2a In the method shown, the second terminal device selects the proximity service link. There is another possible implementation method in which the first terminal device selects the link. In this case, if the second terminal device determines to establish a proximity service link with the first terminal device, the second terminal device can return a first response to the first terminal device through the relay device, and the second terminal device also directly returns a first response to the first terminal device (that is, the proximity service link between the first terminal device and the second terminal device does not include the relay device). Since the first terminal device receives two first responses from the relay device and the first terminal device respectively, there are two paths for the first terminal device to establish a link with the second terminal device. The specific path can be selected by the first terminal device, for example, it can be selected based on the signal strength of the two first responses from the second terminal device and the relay device.
[0182] Above Figure 2a The first news is Figure 1e The discovery parameters are broadcasted, and the first response is Figure 1e When the feedback message is found in Figure 2a If Figure 1f If the 5G DDNMF module is compatible with the direct discovery process in the 5G DDNMF module, it can limit the use of relay services by users who can use related applications according to the restricted mode requirements of the application during the process of allocating discovery parameters to the terminal device.
[0183] In the above step S403, there are multiple implementations of how the relay device determines whether to allow the data of the target application to be transmitted through the relay device. For example, when the relay device determines that the first condition is met, it is determined that the data of the target application is allowed to be transmitted through the relay device, otherwise, it is determined that the data of the target application is not allowed to be transmitted through the relay device. The following is a detailed introduction to multiple possible implementations of the first condition.
[0184] Mode 1: The first condition includes: the identifier of the first application in the configuration information of the relay device matches the identifier of the target application.
[0185] In method 1, the first indication information in the first message is used to indicate the identifier of the target application.
[0186] In one possible implementation, when the first message is a discovery parameter broadcast, and the discovery key parameter (or ProSe App code) can indicate the identifier of the target application (for example, the discovery key parameter is an email address, and the suffix of the email address can indicate that the identifier of the target application is the identifier of the application corresponding to the email address), it can be said that the first indication information is a discovery key parameter, or the first indication information is a ProSe App code. In this case, it can be seen that the first message is the same as the discovery parameter broadcast content in the prior art, which can further improve compatibility with the prior art.
[0187] On the other hand, when the discovery key parameter (or ProSe App code) cannot indicate the identifier of the target application, when the first message is a discovery parameter broadcast, the first message, in addition to the discovery key parameter, also needs to include the first indication information and the relay key indication information, wherein the first indication information can be the identifier of the target application, or it can be the indication information that can indicate the identifier of the target application, for example, it can be a mapping identifier of the identifier of the target application that can be recognized by the relay device and the first terminal device and the second terminal device, for example, it can be an email account, and the suffix of the email account can display the identifier of the target application. In this way, the relay device can determine whether the first condition is met based on the first indication information.
[0188] In an embodiment of the present application, in a possible implementation, the network device configures the configuration information of the relay device for the relay device, or configures the configuration information of the relay device for the relay device by manual configuration, for example, the configuration information of the relay device can be generated according to a preset first rule. Before the relay device receives the first message from the first terminal device, it also includes: the relay device receives the configuration information from the network device. In method 1, and in subsequent methods 2 and 3, the configuration information of the relay device will be introduced.
[0189] In method 1, the configuration information of the relay device includes an identifier of at least one application. The relay device allows data of each application in the at least one application to be transmitted through the relay device. The first application is one of the at least one application. The first condition can also be described as: when there is an application identifier among the identifiers of at least one application in the configuration information of the relay device that matches the identifier of the target application, it is determined that the data of the target application is allowed to be transmitted through the relay device.
[0190] In the embodiment of the present application, the identifier of the first application matches the identifier of the target application, which may mean that: the identifier of the first application is the same as the identifier of the target application. In another possible implementation, some bytes of the identifier of the first application and the identifier of the target application may be the same. For example, the first company includes application A and application B. In one possible implementation, the identifier of application A includes: company identifier (001) + 1; the identifier of application B includes: company identifier (001) + 2. It can be stipulated that when the identifier of the target application is the same as the first three characters of the identifier of the first application, it is determined that the target application matches the first application. In this way, when the identifier of the target application in the first message is 0011 or 0012, and the identifier of the first application is 0011, the identifier of the target application in the first message matches the identifier of the first application. In this case, when only the identifier of one application under the company is configured in the configuration information given to the relay device, the relay device can support the transmission of data of multiple applications under a company through the relay device. In this case, the data volume of the configuration information can be reduced, and the storage space of the relay device can be saved. In the process of comparing whether the identifier of the first application and the identifier of the target application match, the relay device can also speed up the comparison speed, thereby improving the data processing speed. The first terminal device and the second terminal device may not expose all the identification information of the specific application to the relay device. The first indication information may only display part of the fields of the identifier of the target application, such as the first three characters. In this way, the privacy of the user can be further protected.
[0191] Mode 2: The first condition includes: the identifier of the first application in the configuration information of the relay device matches the identifier of the target application, and the identifier of the first user corresponding to the first application in the configuration information of the relay device matches the identifier of the target user.
[0192] In mode 2, the first indication information in the first message is used to indicate the identifier of the target application as well as the identifier of the target user. The target user refers to the user logged in on the target application running on the first terminal device, which can also be described as: the target user is the user of the target application of the first terminal device.
[0193] In a possible implementation, in the second mode, since the user-level strength is also divided, the above step S403 can also be described as: the relay device determines whether to allow the data of the target application corresponding to the target user to be transmitted through the relay device. If allowed, step S403 is executed. If not allowed, the relay device no longer sends the first message.
[0194] In one possible implementation, when the first message is a discovery parameter broadcast, and the discovery key parameter (or ProSe App code) can indicate the identifier of the target application, the discovery key parameter can be user-granular, that is, the discovery key parameter itself can indicate the identifier of the target user, or it can be said that the discovery key parameter is another way of saying the identifier of the target user. In this case, the discovery key parameter and the indication information that can indicate the identifier of the target user can be referred to as first indication information. When the discovery key parameter cannot indicate the identifier of the target user, indication information for indicating the identifier of the target user can be added to the first message. In this case, the indication information for indicating the identifier of the target user can also be referred to as first indication information.
[0195] On the other hand, when the discovery key parameter (or ProSe App code) cannot indicate the identifier of the target application, when the first message is a discovery parameter broadcast, the first message includes not only the discovery key parameter, but also the first indication information and the relay key indication information, wherein the first indication information may include indication information that can indicate the identifier of the target application, and indication information that can indicate the identifier of the target user. Among them, the indication information that can indicate the identifier of the target application and the indication information that can indicate the identifier of the target user can be the same information (for example, the indication information that can indicate the identifier of the target user is the user's email account, and the suffix of the email account is the identifier of the target application corresponding to the email), or two different information. Among them, the indication information that can indicate the identifier of the target application can be the identifier of the target application, or it can be the indication information that can indicate the identifier of the target application. Among them, the indication information that can indicate the identifier of the target user can be the identifier of the target user, or it can be the indication information that can indicate the identifier of the target user (for example, it can be a discovery key parameter that can indicate the identifier of the target user). The user identifier involved in the embodiment of the present application can be a target user's general public subscription identifier (GPSI), a user's application layer identifier (the application layer identifier can be understood as a user identifier in an application, such as QQ ID, etc.) TM Account, WeChat TM The user group identifier may be a user ID, such as a user ID number, email account number, etc.), an IP address or a MAC address, etc. It may also be a user group identifier, such as an external user group identifier (External Group Identifier). The user group identifier may be a list of identifier information, or a list of identifiers of group members, etc.
[0196] The configuration information of the relay device includes: an identifier of at least one application, and each of the at least one application identifier corresponds to an identifier of at least one user. For each of the at least one application identifier and each user identifier corresponding to the application identifier, the relay device allows the data of the application of the user to be transmitted through the relay device. It can also be described as: the first application is one of the at least one application, and for the identifiers of all users corresponding to the first application, the relay device allows the data of all users corresponding to the first application to be transmitted through the relay device.
[0197] In the embodiment of the present application, the identification of the first user matches the identification of the target user, which may mean that the identification of the first user is the same as the identification of the target user. In another possible implementation, the identification of the first user may be a user group identification, and the identification of the target user may be the identification of a single user under the user group identification. In a possible implementation, the identification of the target user may be composed of the group identification of the target user plus a field. In this case, if it is determined based on the identification of the target user that the group identification corresponding to the target user is the same as the identification of the first user (the identification of the first user is the group identification), it can be determined that the identification of the first user matches the identification of the target user. In this case, only the group identification corresponding to the user is configured in the configuration information of the relay device, so that the relay device can support the transmission of data of multiple users under one group identification through the relay device. In this case, the amount of data of the configuration information can be reduced, the storage space of the relay device can be saved, and the relay device can also speed up the comparison speed in the process of comparing whether the identification of the first application and the identification of the target application match, thereby improving the data processing speed.
[0198] It can be seen that in method two, in addition to determining whether the data corresponding to an application is allowed to be transmitted through the relay device, in another possible implementation mode, the users corresponding to the application can also be divided into user-level granularity. For example, the relay device can only transmit the data of VIP users under the application through the relay device, while the data of ordinary users under the application is not allowed to be transmitted through the relay device. In this way, more diversity can be provided for the deployer of the relay device at a finer granularity.
[0199] Method three, the first condition includes: the first relay service code in the configuration information of the relay device matches the target relay service code.
[0200] In the third method, the first indication information in the first message is the target relay service code.
[0201] In a possible implementation, when the first message is a discovery parameter broadcast, the discovery key parameter also needs to include a target relay service code.
[0202] The configuration information of the relay device includes: at least one relay service code. The first relay service code is one of the at least one relay service code. The first condition can also be described as: when there is an identifier of a relay service code in the identifier of at least one relay service code in the configuration information of the relay device that matches the identifier of the target relay service code, it is determined that the first terminal device is allowed to establish a relay link based on the proximity service through the relay device. It can also be said that the first terminal device is allowed to establish a relay link based on the proximity service through the relay device this time.
[0203] The relay service code in the embodiment of the present application can be written as Relay Service Code in English, which can be abbreviated as RSC. The relay service code in the embodiment of the present application can be understood as an identifier, or a temporary authorization code, such as a token or a key. It may also be called other names in other scenarios, and the embodiment of the present application does not limit it.
[0204] In method 3, the network device also needs to configure the target user's configuration information for the target user, or configure the target user's configuration information for the relay device by manual configuration, for example, the target user's configuration information can be generated according to a preset second rule. The target user's configuration information includes: at least one relay service code.
[0205] In one possible implementation, the relay service code may correspond to the identifier of the application. A relay service code may correspond to the identifier of one or more applications. For example, one RSC may correspond to all or part of Huawei applications, or each Huawei application may correspond to an RSC respectively. The specific binding relationship is negotiated by the application service provider and the operator, and does not affect the implementation of the embodiment of the present invention. In one possible implementation, the application service provider or network operator may regularly update the correspondence between the relay service code and the application, thereby limiting the authority of the terminal device to use the relay link of the proximity service when transmitting data of the application corresponding to the RSC.
[0206] In another possible implementation, there may be a correspondence between the relay service code, the application identifier and the user identifier. The following is a detailed introduction through Mode 3-a1 and Mode 3-a2.
[0207] Method 3-a1: There is a correspondence between the relay device, the relay service code and the application identifier. One relay device corresponds to one or more relay service codes, and one relay service code can correspond to one or more application identifiers.
[0208] The configuration information of a relay device includes at least one relay service code. For each relay service code in the at least one relay service code in the configuration information of the relay device, the relay device allows data of each application corresponding to the relay service code to be transmitted through the relay device.
[0209] The configuration information of the target user includes: at least one relay service code, and an identifier of an application corresponding to each of the at least one relay service code. The target relay service code in the first message is the relay service code corresponding to the target application in the configuration information of the target user. For each of the at least one relay service code in the configuration information of the target user, the target user has the authority to request to establish a relay link for proximity services based on the application corresponding to the relay service code. In method three-a1, the division is based on application-level granularity. In a possible implementation, it can be understood that the correspondence between the relay service code and the identifier of the application applies to all users. For example, when the relay device allows the data of the target application to be transmitted through the relay device, it can allow the data of each user among all users under the target application to be transmitted through the relay device.
[0210] Method 3-a2: There is a correspondence between the relay device, relay service code, application identifier and user identifier. A relay device corresponds to one or more relay service codes, a relay service code can correspond to one or more application identifiers, and an application identifier corresponds to one or more user identifiers.
[0211] Table 1 Schematic diagram of the correspondence between relay service code, application identifier and user identifier
[0212]
[0213] It can be seen from Table 1 that in the configuration information configured by the network device for relay device 1 and relay device 2, the configuration information of relay device 1 includes relay service code 1 and relay service code 2. The configuration information of relay device 2 includes relay service code 3. User 1 and user 2 correspond to application 1, user 1 corresponds to application 2, and application 1 and application 2 correspond to relay service code 1. There is a corresponding relationship between user 4, application 3 and relay service code 2. There is a corresponding relationship between application 4, user 5 and relay service code 3. The content in Table 1 indicates that relay device 1 allows the data of application 1 of user 1 and user 2 to be transmitted through the relay device 1, and relay device 1 also allows the data of application 2 of user 1 and the data of application 3 of user 4 to be transmitted through the relay device 1. Relay device 2 allows the data of application 4 of user 5 to be transmitted through the relay device 2. As shown in Table 1, a relay device can correspond to one or more relay service codes, a relay service code can also correspond to one or more relay devices, an intermediate service code can correspond to one or more applications, and an application can correspond to one or more users.
[0214] The configuration information of the relay device includes at least one relay service code corresponding to the identifier of the relay device.
[0215] The configuration information of the target user includes: at least one relay service code corresponding to the target user, and an identifier of an application corresponding to each of the at least one relay service code. The target relay service code in the first message is the relay service code corresponding to the target application in the configuration information of the target user. For each of the at least one relay service code in the configuration information of the target user, the target user has the authority to request to establish a relay link for a proximity service based on the application corresponding to the relay service code.
[0216] In a possible implementation, in mode 3-a2, since the user-level strength is also divided, the above step S403 can also be described as: the relay device determines whether to allow the data of the target application corresponding to the target user to be transmitted through the relay device. If allowed, step S403 is executed. If not allowed, the relay device no longer sends the first message.
[0217] In addition to the introduction of several possible implementation methods of the first condition in the above-mentioned methods 1 to 3, the first condition may also include several situations, such as whether the current load of the relay device has reached the upper limit, whether the wireless resource bandwidth currently used by the relay device has reached the upper limit, whether the signal strength of the first message received by the current relay device exceeds the signal strength threshold for normal communication with the first terminal device, whether the current power of the current relay device is greater than the power threshold, etc.
[0218] The relay device can determine whether the first condition is met based on the configuration information of the relay device stored locally. In another possible implementation, the relay device can send a request to the network device to verify whether the first condition is met. For example, the relay device knows that the relay service of the target application is only provided to restricted users. At this time, when the relay receives the first message from other sources, it needs to request the network device to verify whether the data corresponding to the target user of the target application has the authority to use the relay device. A query request can be sent to the network device, and the query request carries the identifier of the target application, the identifier of the target user, and the identifier of the relay device.
[0219] Based on the above, Figure 2b A schematic diagram of a process for establishing a relay link provided by an embodiment of the present application is exemplarily shown, such as Figure 2b As shown, the method includes:
[0220] S431, the first terminal device receives configuration information of the target user from the network device.
[0221] In the embodiment of the present application, the first terminal device may be a first apparatus, wherein the configuration information of the target user is used to indicate the identification of at least one application, and the target user is a user logged in on the target application running on the first terminal device.
[0222] S432, the first terminal device determines whether there is an application in the configuration information of the target user that matches the target application. If so, step S433 is executed; if not, step S434 is executed.
[0223] For each application identifier in at least one application identifier in the configuration information of the target user, when the first terminal device needs to transmit the target user data of the application through the proximity service, the first terminal device has the authority to request to establish a relay link for the proximity service. In other words, the first terminal device has the authority to request to establish a link for the proximity service based on the relay device.
[0224] S433, the first terminal device generates a first message, and the first message carries relay service indication information, and the relay service indication information is used to indicate that the first terminal requests to establish a relay link based on the relay device.
[0225] In a possible implementation manner, the value of the relay service indication information is 1, that is, when the value of the relay service indication information is 1, the relay service indication information is used to indicate that the first terminal requests to establish a relay link based on the relay device.
[0226] S434, the first terminal device generates a first message, and the first message does not carry relay service indication information.
[0227] The above step S434 can also be replaced by: the first terminal device generates a first message, and the first message carries relay service indication information, and is used to indicate that the first terminal requests to establish a link that is not based on a relay device. In this implementation, the value of the relay service indication information can be 0. That is to say, when the value of the relay service indication information is 0, the relay service indication information is used to indicate that the first terminal does not request to establish a relay link based on the relay device. It can also be described as: when the value of the relay service indication information is 0, the relay service indication information is used to indicate that the first terminal device does not want to establish a proximity service link through the relay device.
[0228] S435: The first terminal device sends the first message. The first message is used to request to establish a proximity based service link with the second terminal device.
[0229] The first message in step S435 may be the above Figure 1e The discovery parameters broadcast in can also be Figure 1f unicast setup request in.
[0230] S436, after receiving the first message, the relay device determines whether there is relay service indication information in the first message, if not, execute step S437, if yes, execute step S438.
[0231] In step S436, the relay device determines whether there is relay service indication information in the first message. This can be replaced by the relay device determining whether the value of the relay service indication information in the first message is 0. If it is 0, execute step S437; if it is not 0 (for example, 1), execute step S438.
[0232] S437: The relay device no longer forwards the first message.
[0233] S438, the relay device forwards the first message.
[0234] After step S438, the above Figure 2a The steps S405 to S411 in the above description will not be repeated here.
[0235] pass Figure 2b It can be seen from the illustrated implementation that when the first terminal device determines that it does not have the authority to request the proximity service based on the relay device, the generated first message does not carry the relay service indication information, or the value of the relay service indication information is 0. In this case, the relay device will no longer forward the first message after receiving it, so that the second terminal device may only receive the first message from the first terminal device. In this case, the second terminal device can only choose to directly establish a link with the first terminal device, and the relay device is not included in the connection.
[0236] When the first terminal device determines that it has the authority to request a proximity service based on a relay device, the generated first message carries relay service indication information, and the relay service indication information is used to indicate that the first terminal requests to establish a relay link based on the relay device. In this case, the relay device forwards the first message after receiving it. The second terminal device receives the first message from the relay device and the first terminal device respectively. For the second terminal device, there are two paths to establish a link with the first terminal device. In one possible implementation, the specific choice can be made by the second terminal device. For example, the second terminal device can make a choice based on the signal strength of the two first messages from the first terminal device and the relay device. For example, if the signal strength of the first message from the relay device is stronger, the second terminal device chooses to establish a connection with the first terminal device through the relay device, which is the above-mentioned. Figure 1d If the signal strength of the first message received from the first terminal device is strong, the second terminal device chooses to directly establish a connection with the first terminal device, that is, no longer through the relay device, as described above. Figure 1c Optionally, the second terminal device may be selected based on the information power of the two first messages from the first terminal device and the relay device.
[0237] In a possible implementation, the configuration information of the relay device involved in the above methods can be sent from the network device to the relay device, and then in the above step S403, the relay device can determine whether to allow the data of the target application to be transmitted through the relay device in combination with the locally stored configuration information.
[0238] In another possible implementation, the configuration information of the relay device involved in the above-mentioned methods can be placed on the network device side. After the relay device receives the first information, the relay device can send a first request to the network device, and the first request includes the identifier of the target application and the identifier of the relay device. The first request is used to request verification of whether the relay device is allowed to transmit the data of the target application. The network device verifies whether the relay device is allowed to transmit the data of the target application based on the configuration information of the relay device, and then returns a first response based on the verification result. Correspondingly, the relay device receives the first response returned by the network device. The first response is used to indicate that the relay device is allowed to transmit the data of the target application, or the first response is used to indicate that the relay device is not allowed to transmit the data of the target application.
[0239] In a possible implementation, the first request also includes an identifier of a first user, wherein the first user is a user of the target application of the first terminal device; the first request is used to request verification of whether the relay device is allowed to transmit the data of the target application corresponding to the first user. The first response is used to indicate that the relay device is allowed to transmit the data of the target application corresponding to the first user, or the first response is used to indicate that the relay device is not allowed to transmit the data of the target application corresponding to the first user.
[0240] The above content involves the configuration information of the relay device and the configuration information of the target user. These configuration information can be configured manually or by network equipment. The following introduces the generation process of the configuration information of the relay device and the configuration information of the target user.
[0241] Figure 3a The flowchart of a method for generating configuration information is exemplarily shown, in which a core network element (which may be referred to as a core network control plane element, such as a PCF element or a 5G DDNMF element) generates configuration information of a relay device or generates configuration information of a target user according to a request of an AF element. Figure 3a As shown, the method includes:
[0242] S501, the AF network element sends a second request to the PCF network element (or 5G DDNMF network element).
[0243] Correspondingly, the PCF network element (or 5G DDNMF network element) receives a second request from the AF network element.
[0244] The second request can be used to request to establish or update the configuration information of the relay device, and can also be used to request to establish or update the configuration information of the target user. Specifically, the AF network element can generate the second request according to the business demand. For example, if the business demand is to request to establish the configuration information of the relay device, the second request generated by the AF network element is used to request to establish the configuration information of the relay device.
[0245] In the case where the second request is used to request to establish or update the configuration information of the relay device, the second request may carry the identifier of the relay device, may carry the identifier of the application, and may carry the identifier of the user. When the core network element has not yet created the configuration information of the relay device, the second request may be used to request to create the configuration information of the relay device. When the core network element has created the configuration information of the relay device, the second request may be used to request to update the configuration information of the relay device.
[0246] In the case where the second request is used to request to establish or update the configuration information of the target user, the second request may carry the identifier of the target user and may also carry the identifier of the application. When the core network element has not created the configuration information of the target user, the second request may be used to request to create the configuration information of the target user. When the core network element has created the configuration information of the target user, the second request may be used to request to update the configuration information of the target user.
[0247] In step S501, there are two possible implementation methods, which are introduced in the following method a1 and method a2.
[0248] Mode a1: The AF network element sends a second request to the NEF network element, and the NEF network element forwards the second request to the PCF network element (or 5G DDNMF network element). Figure 3a Indicated by dotted line.
[0249] In mode a1, the NEF network element can optionally verify the AF network element, such as verifying whether the AF network element is allowed to use the service of "relay service code creation or update request", which can be determined based on some contract information or configuration information of the AF network element. If it is verified that the AF network element is allowed to use the service of "relay service code creation or update request", the NEF network element sends the second request message to the PCF or 5G DDNMF.
[0250] In mode a1, in a possible implementation, the NEF network element may convert the identifier (e.g., the identifier of the second application, or the identifier of the second user) in the received second request into internal (identifier) information that can be recognized within the core network, and forward the second request with the identifier converted. For example, if the second request includes the identifier of the second user, when the identifier of the second user in the second request is GPSI, the NEF network element may map GPSI to a Subscription Permanent Identifier (SUPI); when the identifier of the second user in the second request is an external user group identifier, the NEF network element may map the external user group identifier to an internal group identifier (Internal Group Identifier), and so on.
[0251] Method a2: The AF network element directly sends a second request to the PCF network element (or 5G DDNMF network element).
[0252] In mode a2, in a possible implementation, if the AF network element is not a third-party network element or has passed the operator's authentication, the AF network element can directly send the second request to the PCF network element (or 5G DDNMF network element). At this time, the identifier carried by the AF network element (such as the identifier of the second application, or the identifier of the second user) can be an internal identifier recognizable by the core network element (such as the identifier converted by the NEF network element described in the above mode a1).
[0253] Alternatively, in another possible implementation, the identifiers in the second request (for example, the identifier of the second application, or the identifier of the second user) are all external identifiers, and the PCF network element (or 5G DDNMF network element) obtains the mapping relationship between the external identifier and the internal identifier from the UDM network element, so that the identifier of the second application and the identifier of the second user in the second request can be converted.
[0254] S502, after receiving the second request from the AF network element, the PCF network element (or 5G DDNMF network element) generates configuration information and sends the corresponding relationship related to the configuration information to the UDR network element (or UDM network element).
[0255] In the case where the second request is used to request to establish or update the configuration information of the relay device, the PCF network element (or 5G DDNMF network element) is used to generate the configuration information of the relay device. In the case where the second request is used to request to establish or update the configuration information of the target user, the PCF network element (or 5G DDNMF network element) is used to generate the configuration information of the target user.
[0256] In the case where the second request is used to request to establish or update the configuration information of the relay device, the generated configuration information of the relay device may be in the following multiple situations:
[0257] In case b1, the configuration information of the relay device may include the identifier of the second application. The first application and the second application in the embodiment of the present application may be the same application or two different applications. The identifier of the second application in the embodiment of the present application is only to refer to the identifier of an application in the configuration information of the relay device.
[0258] In one possible implementation, the second request may carry the identifier of the second application and the identifier of the relay device. The core network element may generate configuration information of the relay device based on the second request. The configuration information of the relay device may include the identifier of the second application, so that the relay device determines that the relay device itself can allow the transmission of data of the second application.
[0259] In an embodiment of the present application, the configuration information of the relay device can be configured separately for each relay device. In this case, there may be at least two relay devices, and the configuration information of the two relay devices is not exactly the same. In another possible implementation, the same set of configuration information may also be configured for all relay devices. In this case, the configuration information of any two relay devices is the same. In an embodiment of the present application, the PCF network element (or 5G DDNMF network element) may send an identifier of an application configured for a relay device to the UDR network element (or UDM network element), such as the identifier of the second application mentioned in the foregoing content, to synchronize the information on each network element. The correspondence between the identifier of the relay device and the identifier of the second application can be sent; of course, only the identifier of the configured application can be sent, and the identifier of the relay device cannot be sent. In this case, it is assumed that the identifier of the application is configured for all relay devices and is oriented to all relay devices. It can also be considered that the configuration information of all relay devices must include the identifier of the second application.
[0260] In this implementation, the corresponding relationship related to the configuration information includes: a corresponding relationship between the identifier of the relay device and the identifier of the second application.
[0261] In case b2, the configuration information of the relay device may include the identifier of the second application and the identifier of the second user. The first user and the second user in the embodiment of the present application may be the same user or two different users. The identifier of the second user in the embodiment of the present application is only to refer to the identifier of a user in the configuration information of the relay device.
[0262] In another possible implementation, the second request may carry the identifier of the second application, the identifier of the second user, and the identifier of the relay device. The core network network element may generate configuration information of the relay device based on the second request. The configuration information of the relay device may include the identifier of the second application and the identifier of the second user, so that the relay device determines that the relay device itself can allow the transmission of the data of the second user of the second application.
[0263] In a possible implementation, if the second request sent by the AF network element includes the user's identifier (for example, the identifier of the second user), the PCF network element (or 5G DDNMF network element) may interact with the UDM network element to verify whether the second user has the authority to use the proximity service based on the relay device through the second user's contract data. If it is verified that the second user has the authority to use the proximity service based on the relay device, the PCF network element (or 5G DDNMF network element) may generate configuration information for the relay device based on the second request. If it is verified that the user does not have the authority to use the proximity service based on the relay device, the PCF network element (or 5G DDNMF network element) no longer generates configuration information for the relay device based on the second request, and may also feed back a rejection message to the AF network element through the NEF network element, or directly feed back a rejection message to the AF network element. The rejection message may include the identifier of the second user and the reason for the rejection (the reason for the rejection is that the contract information of the second user is not satisfied).
[0264] Further, the PCF network element (or 5G DDNMF network element) can send the correspondence between the identifier of the relay device, the identifier of the second application, and the identifier of the second user to the UDR network element (or UDM network element) to synchronize the information on each network element. In this embodiment, the corresponding relationship related to the configuration information includes: the correspondence between the identifier of the relay device, the identifier of the second application, and the identifier of the second user.
[0265] In case b3, the configuration information of the relay device may include a relay service code.
[0266] In one possible implementation, the second request may carry the identifier of the second application and the identifier of the relay device. The core network network element may generate the identifier of the second application and the relay service code corresponding to the identifier of the relay device based on the second request, and further generate the configuration information of the relay device. The configuration information of the relay device may include the relay service code. In this implementation, the second request may also be referred to as a relay service code creation or update request. Further, the PCF network element (or 5G DDNMF network element) may send the correspondence between the identifier of the relay device, the identifier of the second application, and the relay service code to the UDR network element (or UDM network element) to synchronize the information on each network element. In this implementation, the corresponding relationship related to the configuration information includes: the correspondence between the identifier of the relay device, the identifier of the second application, and the relay service code.
[0267] In a possible implementation, the second request may carry the identifier of the second application, the identifier of the second user, and the identifier of the relay device. The core network element may generate a relay service code corresponding to the identifier of the second application, the identifier of the second user, and the identifier of the relay device based on the second request. In other words, there is a corresponding relationship between the identifier of the second application, the identifier of the second user, the identifier of the relay device, and the generated relay service code. Further, the configuration information of the relay device is generated, and the configuration information of the relay device may include the relay service code. Because, in the subsequent relay connection establishment process, the relay device confirms whether the first terminal device has the right to use the relay device to transmit the data of the target application through the target relay service code, but the relay device itself only forwards the message and does not necessarily need to use the target application. Therefore, the relay device here only needs to know which relay service codes it can provide relay services for, so the configuration information of the relay device can only include the relay service codes that the relay device can serve. The advantage of doing so is that on the one hand, the amount of information can be reduced, and on the other hand, the privacy of users using the relay service can be protected. When the relay device provides relay services to other users, the identity of the target application cannot be confirmed.
[0268] Correspondingly, in this embodiment, the second request may also be referred to as a relay service code creation or update request. In one possible embodiment, it is possible to verify whether the second user has the authority to use the proximity service based on the relay device based on the contract information of the second user. The specific verification method can refer to the relevant description in situation b2, which will not be repeated here. Furthermore, the PCF network element (or 5G DDNMF network element) may send the identifier of the second application, the identifier of the second user, the identifier of the relay device, and the generated relay service code to the UDR network element (or UDM network element), and the correspondence between the four, so as to synchronize the information on each network element. In this embodiment, the corresponding relationship related to the configuration information includes: the correspondence between the identifier of the second application, the identifier of the second user, the identifier of the relay device, and the generated relay service code.
[0269] In another possible implementation, the second request also carries a second relay service code, which is previously allocated by the core network element to other applications and / or users. The second request may request an update of the identifier of the application corresponding to the second relay service code (in this case, the second request must also carry the identifier of the application), and / or request an update of the identifier of the user corresponding to the second relay service code (in this case, the second request must also carry the identifier of the user). The second request can be used to add an identifier of the application corresponding to the second relay service code, or delete an existing identifier of the application corresponding to the second relay service code, or add an identifier of the user corresponding to the second relay service code, or delete an existing identifier of the user corresponding to the second relay service code.
[0270] In the case where the second request is used to request to establish or update the configuration information of the target user, the generated configuration information of the target user may be in the following multiple situations:
[0271] In case c1, the configuration information of the target user may include the identifier of the second application.
[0272] In one possible implementation, the second request may carry the identifier of the second application and the identifier of the target user. The core network network element may generate the configuration information of the target user based on the second request. The configuration information of the target user may include the identifier of the second application, so that the target user has the authority to transmit the data of the second application through the relay device, or in other words, the target user can request to establish a proximity service link based on the relay device when the data of the second application needs to be transmitted. Furthermore, the PCF network element (or 5G DDNMF network element) may send the correspondence between the identifier of the target user and the identifier of the second application to the UDR network element (or UDM network element) to synchronize the information on each network element. In this implementation, the corresponding relationship related to the configuration information includes: the correspondence between the identifier of the target user and the identifier of the second application.
[0273] In case c2, the configuration information of the target user may include a relay service code.
[0274] In one possible implementation, the second request may carry the identifier of the second application and the identifier of the target user. The core network network element may generate the relay service code corresponding to the identifier of the second application and the identifier of the target user based on the second request, and further generate the configuration information of the target user. The configuration information of the target user may include the relay service code. In this implementation, the second request may also be referred to as a relay service code creation or update request. Further, the PCF network element (or 5G DDNMF network element) may send the identifier of the target user, the identifier of the second application, and the correspondence between the relay service code to the UDR network element (or UDM network element) to synchronize the information on each network element. In this implementation, the correspondence related to the configuration information includes: the correspondence between the identifier of the target user, the identifier of the second application, and the relay service code.
[0275] In a possible implementation, the configuration information generated in the embodiment of the present application (such as the configuration information of the relay device or the configuration information of the target user) may correspond to a valid duration, and the configuration information may be updated periodically. In a possible implementation, when the configuration information survival time is greater than the valid duration, the AF network element may initiate the second request in the above step S501 to request to update the configuration information. In a possible implementation, updating a configuration information may be updating the relay service code in the configuration information. Or the UDM network element (or UDR network element) directly notifies the PCF network element (or 5G DDNMF network element, or AF network element) to initiate the process of updating the configuration information according to the valid duration of a configuration information. In the process of updating the configuration information, the AF network element may initiate the second request, or the PCF network element (or 5G DDNMF network element) may directly execute the update of the configuration information (in this implementation, the AF network element does not need to initiate the second request).
[0276] Figure 3b The flowchart of a method for generating configuration information is exemplified, in which a core network user plane network element (such as an AF network element or a 5G DDNMF logical function network element deployed on the user plane) generates configuration information of a relay device or generates configuration information of a target user, and sends it to a core network control plane network element (such as an NEF network element, a PCF network element, a UDR network element, or an UDM network element). Figure 3b As shown, the method includes:
[0277] S601, the AF network element (or the 5G DDNMF logical function network element deployed on the user plane) generates configuration information.
[0278] Specifically, the AF network element can generate configuration information according to business needs. Business needs can be used to request the establishment or update of configuration information of the relay device, and can also be used to request the establishment or update of configuration information of the target user. The way in which the AF network element generates configuration information can refer to the specific content of the PCF network element (or 5G DDNMF network element) generating configuration information in the aforementioned step S502, which will not be repeated here.
[0279] S602, the AF network element (or the 5G DDNMF logical function network element deployed on the user plane) sends the corresponding relationship related to the configuration information to the core network control plane network element (such as NEF network element, PCF network element, UDR network element or UDM network element).
[0280] In step S602, the AF network element may directly send a corresponding relationship (eg, NEF network element, PCF network element, UDR network element or UDM network element) related to the configuration information to the core network control plane network element (eg, NEF network element, PCF network element, UDR network element or UDM network element). Figure 3b The relevant contents of this step can refer to the two sending methods in the above step S501, which will not be described here.
[0281] The above-mentioned step S602 can refer to the specific content of the corresponding relationship related to the PCF network element (or 5G DDNMF network element) sending the configuration information in the above-mentioned step S502, which will not be repeated here.
[0282] In a possible implementation, in step S602, when the AF network element sends the corresponding relationship related to the configuration information to the core network control plane network element, it may further send an indication information, where the indication information is used to indicate whether the corresponding relationship related to the configuration information is newly created or an update to the original one.
[0283] In another possible implementation, when the correspondence related to the configuration information sent by the AF network element to the core network control plane network element may not carry indication information, the core network control plane network element may judge based on the correspondence related to the existing configuration information: whether the correspondence related to the configuration information sent by the AF network element is newly created or an update to the existing one.
[0284] Figure 3c The flowchart of a method for generating configuration information is exemplified, in which a core network user plane network element (such as an AF network element or a 5G DDNMF logical function network element deployed on the user plane) generates configuration information of a relay device or generates configuration information of a target user, and sends it to a core network control plane network element (such as an NEF network element, a PCF network element, a UDR network element, or an UDM network element). Figure 3c As shown, the method includes:
[0285] S701: The AF network element sends a second request to the NEF network element.
[0286] Correspondingly, the NEF network element receives the second request from the AF network element.
[0287] The second request may be used to request to update the configuration information of the relay device, or may be used to request to update the configuration information of the target user.
[0288] S702: The NEF network element forwards the second request to the UDR network element (or UDM network element).
[0289] S703, after receiving the second request from the NEF network element, the UDR network element (or UDM network element) generates configuration information and sends the corresponding relationship related to the configuration information to the PCF network element (or 5G DDNMF network element).
[0290] The UDR network element sends the corresponding relationship related to the configuration information to the PCF network element (or 5G DDNMF network element), for example, the Nudr_DM_Notify service can be used to send it.
[0291] Compared with the above Figure 3a The plan, Figure 3c Some of the executive entities have been replaced. Figure 3c For details on the generation of configuration information and the corresponding relationship between sending configuration information, please refer to the above Figure 3a The relevant description will not be repeated here.
[0292] In the foregoing content, the configuration information of the relay device and the configuration information of the target user are generated in the network equipment (the network equipment mentioned in the embodiment of the present application may refer to the core network network element, the network equipment in the embodiment of the present application may be replaced with the core network element, the network equipment or the core network element may be, for example: PCF network element, 5GDDNMF network element, AF network element, etc.), and several possible implementation methods are provided below to introduce how to send the configuration information of the relay device to the relay device, and how to send the configuration information of the target user to the first terminal device.
[0293] In the following Figure 4a The configuration process of communication parameters and the configuration process of discovery parameters are shown in the following example. Figure 4aThis article describes how to send configuration information of a relay device during the configuration process of communication parameters, and how to send configuration parameters of a target user during the configuration process of discovery parameters. In one possible implementation, a network device may send configuration parameters of the relay device to a relay device through a configuration process of communication parameters of a proximity service. Alternatively, the network device sends configuration parameters of the relay device to a relay device through a configuration process of discovery parameters. In another possible implementation, the network device sends configuration parameters of the target user to a first terminal device through a configuration process of communication parameters of a proximity service. Alternatively, the network device sends configuration parameters of the target user to a first terminal device through a configuration process of discovery parameters. The method of sending configuration parameters is relatively flexible and can be selected and used by those skilled in the art.
[0294] Figure 4a A schematic diagram of a method flow chart of a configuration process of a communication parameter and a configuration process of a discovery parameter is shown as an example. Figure 4a As shown, the method includes:
[0295] S801, the first terminal device obtains communication parameters of the proximity service from the network device.
[0296] It can also be described as that in step S801, the first terminal device obtains the configuration information of the target user through the core network element or network device.
[0297] When the target user on the first terminal device registers with the core network, or updates the user policy (UE Policy) (for example, the user policy expires), it is necessary to request the latest user policy information from the PCF network element. The latest user policy information may include communication parameters of the proximity service, such as configuration information of the target user, ProSe communication policy information, ProSe communication authorization information, frequency band information for ProSe direct communication, and the like.
[0298] In a possible implementation, the PCF network element may send the configuration information of the target user to the first terminal device through the AMF network element along with a non-access stratum (NAS) message. Alternatively, the PCF network element may send the configuration information of the target user to the first terminal device through a wireless side base station along with a radio resource control (RRC) message.
[0299] Optionally, the first terminal device can carry the ProSe communication capability accordingly when registering with the core network. After receiving the information, the AMF network element can select the PCF network element to provide the ProSe communication policy for the first terminal device according to the operator's deployment. In addition to triggering the provision of ProSe communication policy during the registration process, when the user policy of the first terminal device needs to be updated, or when the contract data of the first terminal device is updated (for example, the AF network element or UDM network element or UDR network element updates the configuration information of the target user), the network side network element will also actively trigger the user policy update step, and send the configuration information of the target user to the first terminal device along with the user policy.
[0300] In one possible implementation, the PCF network element sends the configuration information of the target user to the first terminal device. After obtaining the configuration information of the target user of the first terminal device or the PCF network element locally stores the configuration information of the target user, the PCF network element updates the ProSe policy for the first terminal device corresponding to the identifier of the target user provided by the UDM network element or the UDR network element, or sends the configuration information of the target user to all first terminal devices that can use the ProSe relay service. Specifically, the PCF network element can store the configuration information of the target user in a user policy container (UE Policy Container), and send it to the second terminal device and the relay device through the AMF network element along with the configuration information of the target user of the second terminal device and the relay device.
[0301] In another possible implementation, if the PCF does not have the configuration information of the target user locally (i.e., when the operator deploys the PCF network element, the configuration information of the target user can be locally deployed in the PCF network element, the UDR network element or the UDM network element), or the UDM network element (or the UDR network element) updates the configuration information of the target user (update of the configuration information of the target user), the PCF network element obtains the configuration information of the target user of the first terminal device. Here, there may be two triggering conditions, as follows.
[0302] The first case is that when the PCF network element receives a user policy request from the AMF network element, there is no relevant policy information locally, so the PCF network element requests the configuration information of the target user from the UDR network element (or UDM network element). Specifically, when the AMF network element requests the user policy from the PCF network element, it carries the user identifier (such as SUPI). After that, the PCF network element requests the ProSe communication policy corresponding to the user's contract information from the UDR network element (or UDM network element), which includes the configuration information of the target user.
[0303] The second situation is that when the contract information of the target user changes (the update of the configuration information of the target user can be to create a new relationship, or to modify or delete an existing relationship), the UDM network element (or UDR network element) will send the changed configuration information of the target user to the PCF network element. Usually, the PCF network element will subscribe to the policy update reminder service in the UDM network element (or UDR network element) (for example, using the Nudr_DM_Subscribe service message), and then the UDM network element (or UDR network element) will notify the PCF network element that has subscribed to the relevant service after updating the relevant contract information (for example, using the Nudr_DM_Notify service message).
[0304] In the embodiment of the present application, the configuration information of the target user may be applicable to all users or only to some users. When the configuration information of the target user is applicable to all users, the configuration information of the target user sent by the network device to the target user may not carry the identifier of the target user. When the configuration information of the target user is only applicable to the target user, the configuration information may also be applicable to other users. In this case, the configuration information of the target user sent by the network device to the target user may carry the identifier of the target user, and the target user in this case may be called a restricted user.
[0305] In a possible implementation, the configuration information of the target user is only applicable to some users, and the UDM network element (or UDR network element) can carry a user identifier (such as SUPI) along with the configuration information of the target user. If the UDM network element (or UDR network element) does not carry a user identifier in the configuration information of the target user, the PCF network element can send the updated configuration information of the target user to all terminal devices that can use the relay service.
[0306] S802: The relay device obtains communication parameters of the proximity service from the network device.
[0307] Step S802 is similar to step S801, and the relay device obtains the communication parameters of the proximity service corresponding to the relay device through the network device. If the relay device is a terminal device, the relay device obtains the communication parameters of the proximity service corresponding to the relay device in the same manner as step S801. In addition, when the relay device indicates its ProSe capability, it can add the capability of the relay service, or when the PCF network element obtains the contract information of the relay device from the UDM network element (or UDR network element), the contract information includes the relay capability information of the relay device. In addition to configuring the proximity service communication parameters for the relay device, the PCF network element also configures a relay identifier (Relay ID) for the relay device.
[0308] In one possible implementation, the communication parameters of the proximity service of the relay device may include: configuration information of the relay device. In another possible implementation, the PCF network element may also send the corresponding relationship related to the configuration information of the relay device to the relay device, which does not affect the relay device providing relay services for other terminal devices.
[0309] In an embodiment of the present application, the identifier of the relay device can be an identifier used separately by each relay device for all relay services, or it can have a one-to-one or one-to-many binding relationship with the relay service code. For example, for a certain relay device, the PCF network element allocates it a relay device "Relay_1" for all relay services. Alternatively, the PCF network element allocates it a relay device "Relay_1" for providing relay services to users corresponding to the relay service code "RSC_1", and a relay device "Relay_2" for providing relay services to users corresponding to the relay service code "RSC_2" and the relay service code "RSC_3".
[0310] In another possible implementation, the PCF network element obtains the subscription data of the relay device from the UDM network element (or UDR network element), and the subscription data of the relay device may include configuration information of the relay device.
[0311] S803: The second terminal device obtains communication parameters of the proximity service from the network device.
[0312] Step S803 is similar to step S801, where the second terminal device obtains the ProSe communication parameter configuration. When the second terminal device is a terminal device requested to establish a proximity service link, it is not necessary to obtain the configuration information of the target user.
[0313] exist Figure 4a There is no necessary order relationship between steps S801, S802 and S803. For example, step S802 may be executed first, or step S803 may be executed first.
[0314] S901, the first terminal device obtains discovery parameters from the network device.
[0315] When the first terminal device acts as the initiator of ProSe communication, the first terminal device can obtain the discovery key parameter from the network device. The discovery key parameter can be found in the aforementioned Figure 1e The relevant description will not be repeated here.
[0316] Step S901 can be divided into the following three parts, S901a, S901b and S901c, for illustration, which are not shown in the figure.
[0317] S901a, the first terminal device can request the 5G DDNMF to discover parameters.
[0318] In one possible implementation, the first terminal device may request discovery parameters from the 5G DDNMF, and carry the user identifier (ProSe APP ID) of the first terminal device at the application layer, the application identifier (APP ID), and the relay service indication (indicating that the discovery process can be completed through a relay device, and the relay service indication can be used to request the configuration information of the target user. The value of the relay service indication can be 1.) and the like. When the configuration information of the target user can be applicable to all users, the user identifier may not be carried in the request message for requesting discovery parameters. When the configuration information of the target user is only applicable to the target user, or to a part of users in addition to the target user, the identifier of the target user may be carried in the request message for requesting discovery parameters. In this case, the target user may be called a restricted user.
[0319] One possible implementation method is that 5G DDNMF is deployed in the core network control plane. The first terminal device sends a NAS message to the AMF network element, and carries a container (such as ProSe Container) with the message for storing the ProSe discovery parameter request message. After receiving the NAS message, the AMF network element forwards the container to the 5G DDNMF network element, and the forwarded NAS message can carry the core network identifier (SUPI) of the first terminal device.
[0320] One possible implementation method is that 5G DDNMF is deployed on the user plane of the core network. The first terminal device can send a ProSe discovery parameter request message to the 5G DDNMF network element through the Domain Name System (DNS) or by using the 5G DDNMF network element address information (IP address, etc.) pre-configured by the network device for the first terminal device.
[0321] S901b, the 5G DDNMF network element obtains the configuration information of the target user from other network devices.
[0322] In a possible implementation, if the 5G DDNMF network element does not have the configuration information of the target user locally, it is necessary to obtain the configuration information of the target user. When the 5G DDNMF network element is deployed on the control plane, the 5G DDNMF network element can use the identifier of the target application to obtain the configuration information of the target user from the PCF network element, the UDM network element or the UDR network element.
[0323] In another possible implementation, the 5G DDNMF network element can use the target user's SUPI to go to the PCF network element, UDM network element or UDR network element to obtain the target user's contract data, including the target user's configuration information. If it is a restricted mode, it is possible to further verify in the UDM network element (or UDR network element) whether the first terminal device has the authority to use the relay device to transmit the target application's data (the UDM network element (or UDR network element) stores the identifier of the user who has the authority to use the relay device to transmit the target application's data). In a more specific implementation, the 5G DDNMF network element may not be able to directly obtain the target user's SUPI. The identifier of the target user sent by the first terminal device to the 5G DDNMF network element may be an application identifier (or ProSe APP ID, such as WeChat ID). TM In this case, the 5G DDNMF network element needs to use the local preset information (such as WeChat TM The SUPI of the target user can be determined by the correspondence between the UE number and the SUPI) or from the PCF network element (or the UDM network element, or the UDR network element).
[0324] In another possible implementation, if the AMF network element does not carry the SUPI of the target user with the forwarding message, the 5G DDNMF network element can carry the application layer user identifier (ProSe APP ID) of the target user to the UDM network element (or UDR network element) to obtain the target user's contract data, including the target user's configuration information. If it is a restricted mode, it is also possible to further verify in the UDM network element (or UDR network element) whether the first terminal device has the authority to use the relay device to transmit the target application's data (the UDM network element (or UDR network element) stores the identifier of the user who has the authority to use the relay device to transmit the target application's data).
[0325] In another possible implementation, if the 5G DDNMF network element is deployed on the user plane, the 5G DDNMF network element can request the configuration information of the target user from the AF network element. If the first terminal device carries a restricted mode indication, the 5G DDNMF network element can verify whether the application layer identifier (for example, ProSe APP ID) of the first terminal device is authorized to use the application by requesting the application server (AF network element) corresponding to the APP ID. If there is a communication interface between the 5G DDNMF on the user plane and the network element on the control plane, the 5G DDNMF network element can carry the identifier of the target application to obtain the configuration information of the target user from the PCF or UDM network element (or UDR network element), and carry the application layer identifier and APP ID of the first terminal device to obtain a restricted license from the UDM network element (or UDR network element).
[0326] S901c, 5G DDNMF returns discovery parameters to the first terminal device.
[0327] The 5G DDNMF network element generates a corresponding ProSe APP Code according to the application layer user identifier of the target user, and sends the ProSe APP Code and the configuration information of the target user to the first terminal device.
[0328] Similarly, if the 5G DDNMF is a control plane network element, the 5G DDNMF network element can place the ProSe APP Code and the configuration information of the target user in a container and send it to the AMF network element, and the AMF network element sends it to the first terminal device through a NAS message. If the 5G DDNMF network element is a user plane network element, the 5G DDNMF network element can send the ProSe APP Code and the configuration information of the target user to the first terminal device through a user plane message (for example, in the form of an IP data packet).
[0329] S902: The second terminal device obtains discovery parameters from the network device.
[0330] When the second terminal device acts as a passive party in ProSe communication, the second terminal device may obtain a discovery filter parameter from the network device. The discovery filter parameter may refer to the aforementioned Figure 1e The relevant description will not be repeated here.
[0331] Step S902 can be divided into the following three parts, S902a, S902b and S902c, for illustration, which are not shown in the figure.
[0332] S902a, the second terminal device applies to 5G DDNMF for discovery parameters.
[0333] The discovery parameter requested by the second terminal device is the ProSe APP Code of other terminal devices that it wants to monitor, or a filter, which includes the ProSe APP Code of all other terminal devices that the second terminal device wants to monitor. The application layer identifier of the other terminal devices that the second terminal device wants to monitor can be notified to the second terminal device by the application layer of the second terminal device. Therefore, the discovery parameter request message sent by the second terminal device to the 5G DDNMF network element here includes: the application layer user identifier (ProSe APP ID(s)) of other terminal devices, APP ID, and restricted mode indication (the restricted mode indication is optional, used to indicate that the discovery process is only used for users with restricted applications).
[0334] The difference between S902a and S901a is that in step S901a, the relay service indication carried by the first terminal device (indicating that the discovery process can be completed through the relay device and is used to request the configuration information of the target user) is a mandatory option. The purpose of the target user's configuration information is to enable the relay device to authenticate whether the data of the target user of the target application can be transmitted through the relay device, that is, it is a parameter with application-level granularity. When the first terminal device requests the relay service for the first time in a subsequent step, the relay device performs authorization verification on the target application through the configuration information of the relay device. Based on this, when the second terminal device uses the same relay device to establish a connection with the first terminal device later, there is no need to perform authorization verification on the target application again.
[0335] S902b, the 5G DDNMF network element obtains the ProSe APP Code corresponding to the application layer user identifier of other terminal devices indicated by the second terminal device. For the restricted mode, the 5G DDNMF network element confirms whether the second terminal device and other terminal devices indicated by the second terminal device are in the restricted user list of the application server.
[0336] S902c: The 5G DDNMF network element sends the ProSe APP Code corresponding to the application layer user identifier of other terminal devices indicated by the second terminal device to the second terminal device.
[0337] There is no necessary order relationship between step S901 and step S902. For example, step S902 may be executed first, or step S901 may be executed first.
[0338] After step S902, the above Figure 2a The solutions involved in steps S401 to S411 shown in the figure can also be performed as described above. Figure 2b The scheme involved in steps S432 to S438 shown.
[0339] In the following Figure 4b The process of obtaining policy information is shown in the following example. Figure 4b This article describes how to send configuration information of a relay device during the process of acquiring policy information, and how to send configuration parameters of a target user during the process of acquiring policy information.
[0340] Figure 4b A schematic diagram of a method flow chart for obtaining strategy information is shown as an example. Figure 4b As shown, the method is based on the aforementioned method and includes:
[0341] S911, the first terminal device obtains the policy information of the proximity service from the network device.
[0342] S912: The relay device obtains brief information of the proximity service from the network device.
[0343] S913, the second terminal device obtains brief information of the proximity service from the network device.
[0344] Steps S911, S912 and S913 may refer to the aforementioned Figure 4a The process of obtaining the communication parameters in the embodiment will not be described in detail here. There is no necessary order relationship between steps S911, S912 and S913. For example, step S912 may be performed first, or step S913 may be performed first.
[0345] After step S913, the above Figure 2a The solutions involved in steps S401 to S411 shown in the figure can also be performed as described above. Figure 2b The scheme involved in steps S432 to S438 shown.
[0346] In addition to the above method, there is another possible implementation method, the network device sends the configuration information of the relay device to the AF network element, and the AF network element sends the configuration information of the relay device to the relay device. The network device sends the configuration information of the target user to the AF network element, and the AF network element sends the configuration information of the target user to the first terminal device.
[0347] In a possible implementation, the network device sends the configuration information of the relay device to the AF network element, and then the AF network element sends the configuration information of the relay device to the relay device. For example, the AF network element can send the configuration information of the relay device to the relay device through a user plane message. In this implementation, the relay device can be a terminal device, and the relay device establishes a connection (such as a protocol data unit (PDU) session) through the base station and the UPF network element and the AF network element, and the AF sends the configuration information of the relay device to the relay device.
[0348] In one possible implementation, the PCF network element (or 5G DDNMF network element) can directly send configuration information to the AF network element. The AF network element in this case can be an operator-deployed or authenticated AF network element. In another possible implementation, the PCF network element (or 5G DDNMF network element) first sends the configuration information to the NEF network element, and then the NEF network element forwards the configuration information to the AF network element.
[0349] In a possible implementation, the network device sends the configuration information of the target user to the AF network element, and then the AF network element sends the configuration information of the target user to the first terminal device. For example, the AF network element can send the configuration information of the target user to the first terminal device via a user plane message. In this implementation, the first terminal device can be a terminal device, and the first terminal device establishes a connection (such as a protocol data unit (PDU) session) through a base station and a UPF network element and an AF network element, and the AF sends the configuration information of the target user to the first terminal device.
[0350] In one possible implementation, the PCF network element (or 5G DDNMF network element) can directly send configuration information to the AF network element. The AF network element in this case can be an operator-deployed or authenticated AF network element. In another possible implementation, the PCF network element (or 5G DDNMF network element) first sends the configuration information to the NEF network element, and then the NEF network element forwards the configuration information to the AF network element.
[0351] It should be noted that the names of the above-mentioned messages are merely examples. With the evolution of communication technology, the names of any of the above-mentioned messages may change. However, no matter how their names change, as long as their meanings are the same as those of the above-mentioned messages in this application, they fall within the scope of protection of this application.
[0352] The above mainly introduces the solution provided by the present application from the perspective of the interaction between various network elements. It can be understood that in order to realize the above functions, the above-mentioned network elements include hardware structures and / or software modules corresponding to the execution of various functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this document, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0353] According to the above method, Figure 5 A schematic diagram of the structure of a communication device provided in an embodiment of the present application, such as Figure 5 As shown, the communication device can be a terminal device (such as the first terminal device, the first device or the second terminal device mentioned above), a relay device or a network device, or a chip or a circuit, such as a chip or circuit that can be set in a terminal device, or a chip or circuit that can be set in a network device, wherein the relay device can be a terminal device or a network device.
[0354] Furthermore, the communication device 1301 may further include a bus system, wherein the processor 1302 , the memory 1304 , and the transceiver 1303 may be connected via the bus system.
[0355] It should be understood that the processor 1302 may be a chip. For example, the processor 1302 may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0356] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 1302 or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor 1302 for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1304, and the processor 1302 reads the information in the memory 1304 and completes the steps of the above method in conjunction with its hardware.
[0357] It should be noted that the processor 1302 in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0358] It can be understood that the memory 1304 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can 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 can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0359] When the communication device 1301 corresponds to the relay device in the above method, the communication device may include a processor 1302, a transceiver 1303 and a memory 1304. The memory 1304 is used to store instructions, and the processor 1302 is used to execute the instructions stored in the memory 1304 to implement the above method. Figures 2a to 4b A related scheme of the relay device in any one or more corresponding methods shown in .
[0360] When the communication device 1301 is the above-mentioned relay device, the transceiver 1303 is used to receive a first message from a first terminal device, the first message including first indication information and relay service indication information, the first indication information is used to indicate the identifier of the target application; the relay service indication information is used to indicate a request to establish a relay link. The processor 1302 is used to send the first message when the relay device determines that the data of the target application is allowed to be transmitted through the relay device; and / or, when the relay device determines that the data of the target application is not allowed to be transmitted through the relay device, no longer send the first message.
[0361] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the processor 1302 is specifically used to: allow the data of the target application to be transmitted through the relay device when it is determined that the following conditions are met: the identifier of the target application matches the identifier of the first application.
[0362] When the communication device 1301 is the above-mentioned relay device, in a possible implementation mode, the transceiver 1303 is also used to: receive configuration information of the relay device from a network device; wherein the configuration information of the relay device includes an identifier of at least one application, and the identifier of the first application is one of the identifiers of the at least one application; and the relay device allows data of each application in the at least one application to be transmitted through the relay device.
[0363] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the first indication information is also used to indicate the identifier of the target user, wherein the target user is the user of the target application of the first terminal device; the processor 1302 is specifically used to: allow the data of the target application to be transmitted through the relay device when it is determined that the following conditions are met: the identifier of the target application matches the identifier of the first application; the identifier of the target user matches the identifier of the first user.
[0364] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the transceiver 1303 is also used to: receive configuration information of the relay device from a network device; wherein the configuration information of the relay device includes: an identifier of at least one application, and an identifier of a user corresponding to each of the identifiers of the at least one application; the identifier of the first application is one of the identifiers of the at least one application; the first user is one of the identifiers of the users corresponding to the identifier of the first application; for each application in the at least one application, the relay device allows data of each user corresponding to the application to be transmitted through the relay device.
[0365] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the first indication information includes: a target relay service code; the processor 1302 is specifically used to: allow the data of the target application to be transmitted through the relay device when it is determined that the following conditions are met: the target relay service code matches the first relay service code.
[0366] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the transceiver 1303 is also used to: receive configuration information of the relay device from a network device; wherein the configuration information of the relay device includes: at least one relay service code; the first relay service code is one of the at least one relay service code; each relay service code in the at least one relay service code corresponds to an identifier of at least one application; and the relay device allows data of each application in the at least one application corresponding to each relay service code in the at least one relay service code to be transmitted through the relay device.
[0367] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, for each application identifier in the at least one application identifier corresponding to each relay service code in the at least one relay service code, the application identifier corresponds to at least one user identifier; for each application identifier in the at least one application identifier corresponding to each relay service code in the at least one relay service code, the relay device allows data of each user in the at least one user identifier corresponding to the application to be transmitted through the relay device.
[0368] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the transceiver 1303 is also used to: send a first request to a network device, the first request including an identifier of the target application and an identifier of the relay device; the first request is used to request verification of whether the relay device is allowed to transmit data of the target application; receive a first response returned by the network device; wherein the first response is used to indicate that the relay device is allowed to transmit data of the target application, or the first response is used to indicate that the relay device is not allowed to transmit data of the target application.
[0369] When the communication device 1301 is the above-mentioned relay device, in a possible implementation manner, the first request also includes an identifier of a target user, wherein the target user is a user of the target application of the first terminal device; the first request is used to request verification of whether the relay device is allowed to transmit data of the target application corresponding to the target user; wherein the first response is used to indicate that the relay device is allowed to transmit data of the target application corresponding to the target user, or, alternatively, the first response is used to indicate that the relay device is not allowed to transmit data of the target application corresponding to the target user.
[0370] When the communication device 1301 corresponds to the first device (or first terminal device) in the above method, the communication device may include a processor 1302-1302, a transceiver 1303-1303 and a memory 1304. The memory 1304 is used to store instructions, and the processor 1302-1302 is used to execute the instructions stored in the memory 1304 to implement the above method. Figures 2a to 4bA related scheme of the first device (or first terminal equipment) in any one or more corresponding methods shown in .
[0371] When the communication device 1301 is the above-mentioned first device (or first terminal equipment), the processor 1302 is used to generate a first message, the first message includes first indication information and relay service indication information, the first indication information is used to indicate the identifier of the target application; the relay service indication information is used to indicate a request to establish a relay link; the transceiver 1303 is used to send the first message.
[0372] When the communication device 1301 is the above-mentioned first device (or first terminal equipment), in a possible implementation manner, the first indication information includes: a target relay service code.
[0373] When the communication device 1301 is the above-mentioned first device (or first terminal device), in a possible implementation mode, the transceiver 1303 is also used to: receive configuration information of the target user from the network device; the configuration information of the target user includes: at least one relay service code, and an identifier of at least one application corresponding to each relay service code in the at least one relay service code; the target relay service code is a relay service code corresponding to the identifier of the target application in the configuration information of the target user.
[0374] When the communication device 1301 is the above-mentioned first device (or first terminal device), in a possible implementation manner, the configuration information of the target user includes: at least one relay service code corresponding to the target user, and an identifier of at least one application corresponding to each relay service code in the at least one relay service code; wherein the target user is a user of the target application of the first terminal device.
[0375] When the communication device 1301 corresponds to the network device in the above method, the communication device may include a processor 1302-1302, a transceiver 1303-1303 and a memory 1304. The memory 1304 is used to store instructions, and the processor 1302-1302 is used to execute the instructions stored in the memory 1304 to implement the above method. Figures 2a to 4b A related scheme of a network device in any one or more corresponding methods shown in .
[0376] When the communication device 1301 is the above-mentioned network device, the processor 1302 is used to generate configuration information of the relay device according to a preset first rule; the transceiver 1303 is used to send the configuration information of the relay device to the relay device; wherein the configuration information of the relay device includes: indication information for indicating the identification of at least one application; the relay device allows data of each application in the at least one application to be transmitted through the relay device.
[0377] When the communication device 1301 is the above-mentioned network device, in a possible implementation mode, the processor 1302 is further used to: generate configuration information of the target user according to a preset second rule; wherein the target user is the user of the target application of the first terminal device; the transceiver 1303 is further used to: send the configuration information of the target user to the first terminal device; wherein the configuration information of the target user includes: at least one relay service code corresponding to the target user, and each application identifier in the identifier of at least one application corresponding to each relay service code in the at least one relay service code, and the identifier of the application corresponds to the identifier of at least one user.
[0378] When the communication device 1301 corresponds to the first device (or first terminal device) in the above method, the communication device may include a processor 1302-1302, a transceiver 1303-1303 and a memory 1304. The memory 1304 is used to store instructions, and the processor 1302-1302 is used to execute the instructions stored in the memory 1304 to implement the above method. Figures 2a to 4b A related scheme of the first device (or first terminal equipment) in any one or more corresponding methods shown in .
[0379] When the communication device 1301 is the above-mentioned first device (or first terminal device), the transceiver 1303 is used to receive the configuration information of the target user, the configuration information of the target user is used to indicate the identification of at least one application; send a first message; the first message is used to request to establish a proximity service link with the second terminal device. The processor 1302 is used to carry relay service indication information in the first message when the target application matches one of the at least one application; and / or, when the target application does not match any application in the at least one application, not carry relay service indication information in the first message; the relay service indication information is used to indicate that the first terminal requests to establish a relay link based on the relay device.
[0380] When the communication device 1301 is the above-mentioned first device (or first terminal device), in a possible implementation mode, the processor 1302 is further used to: establish a proximity service link with the second terminal device through the relay device. The transceiver 1303 is further used to: report a second message to the network device, the second message carrying the identifier of the target application, and the second message is used to enable the network device to verify whether the relay device allows the transmission of the target application data corresponding to the target user.
[0381] When the communication device 1301 corresponds to the network device in the above method, the communication device may include a processor 1302-1302, a transceiver 1303-1303 and a memory 1304. The memory 1304 is used to store instructions, and the processor 1302-1302 is used to execute the instructions stored in the memory 1304 to implement the above method. Figures 2a to 4b A related scheme of a network device in any one or more corresponding methods shown in .
[0382] When the communication device 1301 is the above-mentioned network device, the processor 1302 is used to generate configuration information of the target user according to a preset second rule; the transceiver 1303 is used to send the configuration information of the target user to the first terminal device; the target user is a user of the target application of the first terminal device; wherein the configuration information of the target user includes: an identifier of at least one application; and allowing the data of the target user of each application in the at least one application to be transmitted through the relay device.
[0383] For the concepts related to the technical solution provided in the embodiment of the present application (such as the configuration information of the relay device and the configuration information of the target user, etc.), explanations and detailed descriptions and other steps involved in the communication device, please refer to the descriptions of these contents in the aforementioned method or other embodiments, which will not be repeated here.
[0384] According to the above method, Figure 6 A schematic diagram of the structure of a communication device provided in an embodiment of the present application, such as Figure 6 As shown, the communication device 1401 may include a communication interface 1403, a processor 1402 and a memory 1404. The communication interface 1403 is used to input and / or output information; the processor 1402 is used to execute computer programs or instructions so that the communication device 1401 can achieve the above Figures 2a to 4b The method on the terminal device side in the related scheme of Figures 2a to 4b The method on the relay device side in the related scheme, or the communication device 1401 implements the above Figures 2a to 4b In the embodiment of the present application, the communication interface 1403 can implement the above Figure 5 The solution implemented by the transceiver 1303, the processor 1402 can implement the above Figure 5 The processor 1302 implements the solution, and the memory 1404 can implement the above Figure 5 The solution implemented by the memory 1304 will not be described in detail here.
[0385] Based on the above embodiments and the same concept, Figure 7 A schematic diagram of a communication device provided in an embodiment of the present application, such as Figure 7As shown, the communication device 1501 can be a terminal device (such as the first terminal device, the first device or the second terminal device mentioned above), a relay device or a network device, or a chip or a circuit, such as a chip or circuit that can be set in a terminal device, or a chip or circuit that can be set in a network device, wherein the relay device can be a terminal device or a network device.
[0386] Among them, the processing unit 1502 can be a processor or a controller, for example, it can be a general-purpose central processing unit (CPU), a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, for example, including a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like. The storage unit 1504 can be a memory. The communication unit 1503 is an interface circuit of the device for receiving signals from other devices. For example, when the device is implemented in the form of a chip, the communication unit 1503 is an interface circuit of the chip for receiving signals from other chips or devices, or an interface circuit of the chip for sending signals to other chips or devices.
[0387] The communication device 1501 may be a terminal device (such as the first terminal device, the first device or the second terminal device), a relay device or a network device in any of the above embodiments, or may be a chip or a circuit, such as a chip or a circuit that can be set in a terminal device, or a chip or a circuit that can be set in a network device, wherein the relay device may be a terminal device or a network device. For example, when the communication device 1501 is a terminal device, a relay device or a network device, the processing unit 1502 may be, for example, a processor, and the communication unit 1503 may be, for example, a transceiver. Optionally, the transceiver may include a radio frequency circuit, and the storage unit may be, for example, a memory. For example, when the communication device 1501 is a chip for a terminal device, a relay device or a network device, the processing unit 1502 may be, for example, a processor, and the communication unit 1503 may be, for example, an input / output interface, a pin or a circuit, etc. The processing unit 1502 can execute computer-executable instructions stored in the storage unit. Optionally, the storage unit is a storage unit within the chip, such as a register, a cache, etc. The storage unit can also be a storage unit located outside the chip within the session management network element, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.
[0388] When the communication device 1301 is the above-mentioned relay device, the communication unit 1503 is used to receive a first message from a first terminal device, the first message including first indication information and relay service indication information, the first indication information is used to indicate the identifier of the target application; the relay service indication information is used to indicate a request to establish a relay link. The processing unit 1502 is used to send the first message when the relay device determines that the data of the target application is allowed to be transmitted through the relay device; and / or, when the relay device determines that the data of the target application is not allowed to be transmitted through the relay device, no longer send the first message.
[0389] When the communication device 1301 is the above-mentioned first device (or first terminal equipment), the processing unit 1502 is used to generate a first message, which includes first indication information and relay service indication information, and the first indication information is used to indicate the identifier of the target application; the relay service indication information is used to indicate a request to establish a relay link; the communication unit 1503 is used to send the first message.
[0390] When the communication device 1301 is the above-mentioned network device, the processing unit 1502 is used to generate configuration information of the relay device according to a preset first rule; the communication unit 1503 is used to send the configuration information of the relay device to the relay device; wherein the configuration information of the relay device includes: indication information for indicating the identification of at least one application; the relay device allows data of each application in the at least one application to be transmitted through the relay device.
[0391] When the communication device 1301 is the above-mentioned first device (or first terminal device), the communication unit 1503 is used to receive the configuration information of the target user, the configuration information of the target user is used to indicate the identification of at least one application; send a first message; the first message is used to request to establish a proximity service link with the second terminal device. The processing unit 1502 is used to carry relay service indication information in the first message when the target application matches one of the at least one application; and / or, when the target application does not match any of the at least one application, not carry relay service indication information in the first message; the relay service indication information is used to indicate that the first terminal requests to establish a relay link based on the relay device;
[0392] When the communication device 1301 is the above-mentioned network device, the processing unit 1502 is used to generate the configuration information of the target user according to the preset second rule; the communication unit 1503 is used to send the configuration information of the target user to the first terminal device; the target user is the user of the target application of the first terminal device; wherein the configuration information of the target user includes: the identification of at least one application; and allowing the data of the target user of each application in the at least one application to be transmitted through the relay device.
[0393] For the concepts, explanations, detailed descriptions and other steps involved in the communication device and related to the technical solutions provided in the embodiments of the present application, please refer to the descriptions of these contents in the aforementioned methods or other embodiments, which will not be repeated here.
[0394] It can be understood that the functions of each unit in the above-mentioned communication device 1501 can be implemented by referring to the corresponding method embodiment, and will not be repeated here.
[0395] It should be understood that the division of the units of the above communication device is only a division of logical functions. In actual implementation, all or part of the units can be integrated into one physical entity, or they can be physically separated. Figure 5 The processing unit 1502 may be implemented by the transceiver 1303 of Figure 5 The processor 1302 is implemented.
[0396] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code or instructions, when the computer program code or instructions are executed on a computer, the computer executes Figures 2a to 4b A method according to any one of the embodiments shown.
[0397] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which stores a program code, and when the program code is run on a computer, the computer executes Figures 2a to 4b A method according to any one of the embodiments shown.
[0398] According to the method provided in the embodiment of the present application, the present application also provides a system, which includes one or more terminal devices, one or more relay devices, and one or more network devices as mentioned above.
[0399] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).
[0400] The network devices in the above-mentioned various device embodiments correspond to the network devices or terminal devices in the terminal devices and method embodiments, and the corresponding modules or units perform the corresponding steps. For example, the communication unit (transceiver) performs the steps of receiving or sending in the method embodiment, and other steps except sending and receiving can be performed by the processing unit (processor). The functions of the specific units can refer to the corresponding method embodiments. Among them, the processor can be one or more.
[0401] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0402] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0403] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0404] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0405] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0406] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0407] If this function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0408] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for establishing a relay link, characterized in that: include: The relay apparatus receives a first message from a first terminal device, wherein the first message includes first indication information and relay service indication information, wherein the first indication information is used to indicate an identifier of a target application; and the relay service indication information is used to indicate a request to establish a relay link; When the relay device determines that the data of the target application is allowed to be transmitted through the relay device, the first message is sent to the second terminal device; and / or when the relay device determines that the data of the target application is not allowed to be transmitted through the relay device, the first message is no longer sent.
2. The method according to claim 1, characterized in that The relay device determines to allow the data of the target application to be transmitted through the relay device when determining that the following conditions are met: The identifier of the target application matches the identifier of the first application.
3. The method according to claim 2, characterized in that Before the relay device receives the first message from the first terminal device, the relay device further includes: The relay device receives configuration information of the relay device from a network device; The configuration information of the relay device includes an identifier of at least one application, and the identifier of the first application is one of the identifiers of the at least one application; the relay device allows data of each application in the at least one application to be transmitted through the relay device.
4. The method according to claim 1, characterized in that The first indication information is further used to indicate an identifier of a target user, wherein the target user is a user of the target application of the first terminal device; The relay device determines to allow the data of the target application to be transmitted through the relay device when determining that the following conditions are met: The identifier of the target application matches the identifier of the first application; The identifier of the target user matches the identifier of the first user.
5. The method according to claim 4, characterized in that Before the relay device receives the first message from the first terminal device, the relay device further includes: The relay device receives configuration information of the relay device from a network device; The configuration information of the relay device includes: an identifier of at least one application, and an identifier of a user corresponding to each application identifier in the identifier of the at least one application; The identifier of the first application is one of the identifiers of the at least one application; the first user is one of the identifiers of the users corresponding to the identifier of the first application; For each application of the at least one application, the relay device allows data of each user corresponding to the application to be transmitted through the relay device.
6. The method according to claim 1, characterized in that The first indication information includes: a target relay service code; The relay device determines to allow the data of the target application to be transmitted through the relay device when determining that the following conditions are met: The target relay service code matches the first relay service code.
7. The method according to claim 6, characterized in that Before the relay device receives the first message from the first terminal device, the relay device further includes: The relay device receives configuration information of the relay device from the network device; Wherein, the configuration information of the relay device includes: at least one relay service code; The first relay service code is one of the at least one relay service code; Each relay service code of the at least one relay service code corresponds to an identifier of at least one application; The relay device allows data of each application in the at least one application corresponding to each relay service code in the at least one relay service code to be transmitted through the relay device.
8. The method according to claim 7, characterized in that each application identifier in at least one application identifier corresponding to each relay service code in the at least one relay service code, the application identifier corresponding to at least one user identifier; For each application identifier in at least one application identifier corresponding to each relay service code in the at least one relay service code, the relay device allows data of each user in the at least one user identifier corresponding to the application to be transmitted through the relay device.
9. The method according to claim 1, characterized in that After the relay device receives the first message from the first terminal device, the relay device further includes: The relay device sends a first request to the network device, wherein the first request includes an identifier of the target application and an identifier of the relay device; the first request is used to request verification of whether the relay device is allowed to transmit data of the target application; The relay device receives a first response returned by the network device; The first response is used to indicate that the relay device is allowed to transmit the data of the target application, or the first response is used to indicate that the relay device is not allowed to transmit the data of the target application.
10. The method according to claim 9, characterized in that The first request further includes an identifier of a target user, wherein the target user is a user of the target application of the first terminal device; The first request is used to request verification of whether the relay device is allowed to transmit the data of the target application corresponding to the target user; The first response is used to indicate that the relay device is allowed to transmit the data of the target application corresponding to the target user, or the first response is used to indicate that the relay device is not allowed to transmit the data of the target application corresponding to the target user.
11. A method for establishing a relay link, characterized in that: include: The first device generates a first message, the first message including first indication information and relay service indication information, the first indication information is used to indicate an identifier of a target application; the relay service indication information is used to indicate a request to establish a relay link; The first indication information is used by the relay device to determine whether to provide a relay service for the requested proximity service connection; The first device sends the first message to a relay device.
12. A method for sending configuration information, characterized in that: include: The network device generates configuration information of the relay device according to a preset first rule; The network device sends configuration information of the relay device to the relay device, where the configuration information of the relay device is used by the relay device to determine whether to provide a relay service for the requested proximity service connection; The configuration information of the relay device includes: indication information for indicating an identifier of at least one application; The relay device allows data of each application of the at least one application to be transmitted through the relay device.
13. The method according to claim 12, characterized in that in, The configuration information of the relay device includes: at least one relay service code; Each relay service code of the at least one relay service code corresponds to an identifier of at least one application; The relay device allows data of each application in the at least one application corresponding to each relay service code in the at least one relay service code to be transmitted through the relay device.
14. A method for establishing a relay link, characterized in that: include: The first device receives configuration information of a target user, where the configuration information of the target user is used to indicate an identifier of at least one application; When the target application matches one of the at least one application, carrying relay service indication information in the first message; and / or, when the target application does not match any of the at least one application, the first message does not carry relay service indication information; the relay service indication information is used to indicate a request to establish a relay link based on a relay device; The first device sends the first message to the relay device; the first message is used to request to establish a proximity service link with the second terminal device.
15. A relay device, characterized in that: include: A transceiver, configured to receive a first message from a first terminal device, wherein the first message includes first indication information and relay service indication information, wherein the first indication information is used to indicate an identifier of a target application; and the relay service indication information is used to indicate a request to establish a relay link; A processor is used to send the first message to the second terminal device when the relay device determines that the data of the target application is allowed to be transmitted through the relay device; and / or no longer send the first message when the relay device determines that the data of the target application is not allowed to be transmitted through the relay device.
16. The relay device according to claim 15, characterized in that: The processor is specifically used for: When it is determined that the following conditions are met, data of the target application is allowed to be transmitted through the relay device: The identifier of the target application matches the identifier of the first application.
17. The relay device according to claim 16, characterized in that: The transceiver is further used for: receiving configuration information of the relay device from a network device; The configuration information of the relay device includes an identifier of at least one application, and the identifier of the first application is one of the identifiers of the at least one application; the relay device allows data of each application in the at least one application to be transmitted through the relay device.
18. The relay device according to claim 15, characterized in that: The first indication information is further used to indicate an identifier of a target user, wherein the target user is a user of the target application of the first terminal device; The processor is specifically used for: When it is determined that the following conditions are met, data of the target application is allowed to be transmitted through the relay device: The identifier of the target application matches the identifier of the first application; The identifier of the target user matches the identifier of the first user.
19. The relay device according to claim 18, characterized in that: The transceiver is further used for: receiving configuration information of the relay device from a network device; The configuration information of the relay device includes: an identifier of at least one application, and an identifier of a user corresponding to each application identifier in the identifier of the at least one application; The identifier of the first application is one of the identifiers of the at least one application; the first user is one of the identifiers of the users corresponding to the identifier of the first application; For each application of the at least one application, the relay device allows data of each user corresponding to the application to be transmitted through the relay device.
20. The relay device according to claim 15, characterized in that: The first indication information includes: a target relay service code; The processor is specifically used for: When it is determined that the following conditions are met, data of the target application is allowed to be transmitted through the relay device: The target relay service code matches the first relay service code.
21. The relay device according to claim 20, characterized in that: The transceiver is further used for: receiving configuration information of the relay device from the network device; Wherein, the configuration information of the relay device includes: at least one relay service code; The first relay service code is one of the at least one relay service code; Each relay service code of the at least one relay service code corresponds to an identifier of at least one application; The relay device allows data of each application in the at least one application corresponding to each relay service code in the at least one relay service code to be transmitted through the relay device.
22. The relay device according to claim 21, characterized in that: each application identifier in at least one application identifier corresponding to each relay service code in the at least one relay service code, the application identifier corresponding to at least one user identifier; For each application identifier in at least one application identifier corresponding to each relay service code in the at least one relay service code, the relay device allows data of each user in the at least one user identifier corresponding to the application to be transmitted through the relay device.
23. The relay device according to claim 15, characterized in that: The transceiver is further used for: Sending a first request to a network device, wherein the first request includes an identifier of the target application and an identifier of the relay device; the first request is used to request verification of whether the relay device is allowed to transmit data of the target application; receiving a first response returned by the network device; The first response is used to indicate that the relay device is allowed to transmit the data of the target application, or the first response is used to indicate that the relay device is not allowed to transmit the data of the target application.
24. The relay device according to claim 23, characterized in that: The first request further includes an identifier of a target user, wherein the target user is a user of the target application of the first terminal device; The first request is used to request verification of whether the relay device is allowed to transmit the data of the target application corresponding to the target user; The first response is used to indicate that the relay device is allowed to transmit the data of the target application corresponding to the target user, or the first response is used to indicate that the relay device is not allowed to transmit the data of the target application corresponding to the target user.
25. A device, characterized in that: include: A processor, configured to generate a first message, wherein the first message includes first indication information and relay service indication information, wherein the first indication information is used to indicate an identifier of a target application; and the relay service indication information is used to indicate a request to establish a relay link; The first indication information is used by the relay device to determine whether to provide a relay service for the requested proximity service connection; A transceiver is used to send the first message to the relay device.
26. A network device, characterized in that: include: A processor, configured to generate configuration information of the relay device according to a preset first rule; a transceiver, configured to send configuration information of the relay device to the relay device, wherein the configuration information of the relay device is used by the relay device to determine whether to provide a relay service for the requested proximity service connection; The configuration information of the relay device includes: indication information for indicating an identifier of at least one application; The relay device allows data of each application of the at least one application to be transmitted through the relay device.
27. The network device according to claim 26, characterized in that in, The configuration information of the relay device includes: at least one relay service code; Each relay service code of the at least one relay service code corresponds to an identifier of at least one application; The relay device allows data of each application in the at least one application corresponding to each relay service code in the at least one relay service code to be transmitted through the relay device.
28. A device, characterized in that include: A transceiver, used to receive configuration information of a target user, where the configuration information of the target user is used to indicate an identifier of at least one application; Sending a first message to the relay device; The first message is used to request to establish a proximity service link with the second terminal device; a processor, configured to carry relay service indication information in the first message when the target application matches one of the at least one application; And / or, when the target application does not match any of the at least one application, the first message does not carry relay service indication information; the relay service indication information is used to indicate a request to establish a relay link based on a relay device.
29. A communication device, characterized in that: The device comprises a processor and a communication interface, The communication interface is used to input and / or output information; The processor is used to execute a computer program so that the method according to any one of claims 1 to 14 is performed.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and when the computer-executable program is called by a computer, the computer executes the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Network access method, near field communication server, relay terminal and terminal
CN104469695A
Terminal straight-through communication method and device
CN105657783A
Method, terminal and system for realizing communication
CN105848083A
Relay UE access control method and device
CN106162803A
Terminal device, device provided with ProSe function, communication method for terminal device, and communication method for device provided with ProSe function
CN107710798A
