Communication method and communication device

CN118573385APending Publication Date: 2024-08-30HUAWEI TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202310223101.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

[0003]然而,当前OAuth认证机制可能存在NFc使用访问令牌越权访问服务的情况,无法保障网络安全

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573385A
    Figure CN118573385A
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and a communication device. The method comprises: a second network function network element receiving a service request message from a first network function network element, and determining whether to provide a service to the first network function network element according to a first token. Wherein the service request message is used for requesting the second network function network element to provide a service for the first network function network element, the service request message comprises a first token and second service domain information, the second service domain information indicates a service area of the service requested by the first network function network element, and the first token comprises the first service domain information; the first service domain information indicates that the first network function network element can acquire a service area range of the service from the second network function network element. According to the scheme, the first service domain information is added in the first token, so that the situation that the first network function network element has access to the service in an unauthorized manner is reduced or avoided, and the network security is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and more specifically, to a communication method and a communication device. Background Art

[0002] In a service-based architecture (SBA), network function (NF) network elements interact based on service-based interfaces. For example, a network function service consumer (NFc) can request services from a network function service producer (NFp) after obtaining an access token. In order to improve communication security, NFp needs to perform an authorization check on the service requested by NFc based on the access token, that is, check whether NFc is authorized to use the requested service.

[0003] However, the current OAuth authentication mechanism may allow NFc to use access tokens to unauthorizedly access services, which cannot guarantee network security. Therefore, additional measures are urgently needed to reduce potential security risks. Summary of the invention

[0004] The present application provides a communication method and a communication device, which can prevent malicious network function service consumers from unauthorizedly using access tokens to obtain services, thereby ensuring network security.

[0005] In a first aspect, a communication method is provided, which can be executed by a second network function network element, or can also be executed by a chip or circuit used for the second network function network element, and this application does not limit this. For ease of description, the following is an example of execution by the second network function network element.

[0006] The method includes: a second network function network element receives a service request message from a first network function network element, the service request message is used to request the second network function network element to provide service to the first network function network element, the service request message includes a first token and second service domain information, the second service domain information indicates a service area of ​​the service requested by the first network function network element, the first token includes first service domain information, the first service domain information indicates a service area range in which the first network function network element can obtain service from the second network function network element; the second network function network element determines whether to provide service to the first network function network element based on the first token.

[0007] According to the solution provided in the present application, in the process of a first network function network element requesting a service from a second network function network element, the second network function network element determines whether to provide service to the first network function network element based on the first service domain information in the first token carried in the service request message, thereby preventing malicious NF service consumers from unauthorizedly using the first token to obtain the service and ensuring network security.

[0008] Exemplarily, the service that the first network function network element requests the second network function network element to provide may be any one of the following services: data collection service, model acquisition service, protocol data unit (PDU) session service, or session management (SM) policy control service, registration service, etc.

[0009] In combination with the first aspect, in certain implementations of the first aspect, when the service is a data collection service, the first service domain information indicates the regional scope of data that the first network function network element can obtain from the second network function network element; when the service is a model acquisition service, the first service domain information indicates the regional scope of models that the first network function network element can obtain from the second network function network element.

[0010] Among them, the service area scope of obtaining the service can be understood as the area scope of the resource corresponding to the service of the service. In the service of obtaining resources, the service area scope of the service can be understood as the area scope of the resource corresponding to the service of the service. For example, when the resource is data, model, protocol data unit, etc., the corresponding area scope of the data, the area scope of the model, the area scope of the protocol data unit, etc. In other words, the first network function network element can obtain the service area scope of the data or model, or the first network function network element has the authority to request the second network function network element to provide the data or model within the service area scope.

[0011] Exemplarily, the service area scope of the data collection service represents the service area scope of data that the first network function network element can obtain using the data collection service, or in other words, the first network function network element has the authority to request the second network function network element to provide data within the service area scope.

[0012] Exemplarily, the service area scope of the model acquisition service represents the area scope in which the first network function network element can obtain the model using the model acquisition service, or in other words, the first network function network element has the authority to request the second network function network element to provide the model within the service area scope.

[0013] The second network function network element may be a service providing network element, and the first network function network element may be a service requesting network element. The second network function network element determines whether to provide a service to the first network function network element according to the first token, which can be understood as the second network function network element determining whether the first network function network element is authorized to use the service according to the first service domain information in the first token; or it can also be understood as the second network function network element determining to provide a service to the first network function network element or refusing to provide a service to the first network function network element according to the first service domain information in the first token; or it can also be understood as the second network function network element providing the requested service (or executing the service) and sending a response message, or sending a response message indicating that the service request failed, according to the first service domain information in the first token; or it can also be understood as the second network function network element providing the requested service (or executing the service) and sending a response message, or sending a response message indicating that the service request was rejected, according to the first service domain information in the first token.

[0014] The specific form in which the second network function network element determines whether to provide the service to the first network function network element may be: when the first network function network element is authorized to use the service, the second network function network element provides the service to the first network function network element; or, when the first network function network element is not authorized to use the service, the second network function network element rejects the service request message to reject the first network function network element's request for the service.

[0015] Exemplarily, the first service domain information includes one or more of the following: service area information, service cell information, area of ​​interest information, or tracking area identification information. Among them, the first token may include an Additional scope field and a claims field. Optionally, the Additional scope field includes the first service domain information; or, the first service domain information is carried in a separate information unit, which is not limited in this application.

[0016] In combination with the first aspect, in certain implementation methods of the first aspect, the second network function network element determines whether to provide service to the first network function network element based on the first token, including: the second network function network element verifies the first token; if the first token verification is successful, the second network function network element determines to provide service to the first network function network element.

[0017] Based on this implementation method, the second network function network element can provide services to the first network function network element if the first token is verified successfully, which can prevent malicious NF service consumers from unauthorizedly using the first token to obtain services and reduce potential security risks.

[0018] In combination with the first aspect, in certain implementations of the first aspect, the second network function network element verifies the first token, including: the second network function network element verifies the integrity protection of the first token; if the integrity protection verification of the first token passes, the second network function network element determines whether the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information; if the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information, the second network function network element determines that the verification of the first token passes.

[0019] It should be understood that the first token is subject to security protection, such as integrity protection, so as to prevent malicious NF service consumers from tampering with the parameters in the first token.

[0020] Based on this implementation method, the second network function network element determines whether the first network function network element is authorized to use the service or whether to provide the service to the first network function network element according to whether the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information. This can prevent malicious NF service consumers from unauthorizedly using the first token to obtain services and reduce potential security risks.

[0021] In combination with the first aspect, in certain implementations of the first aspect, when the first network function network element is a data collection coordination function network element, the service request message also includes a client credentials assertion (CCA), the CCA includes an identifier of a third network function network element and third service domain information, and the third service domain information indicates a service area of ​​the service requested by the third network function network element.

[0022] Based on this implementation method, it can be understood that the third network function network element requests to obtain data collection service from the second network function network element through the data collection coordination function network element, where CCA is used by the second network function network element to authenticate the third network function network element.

[0023] In combination with the first aspect, in certain implementation methods of the first aspect, the second network function network element determines whether to provide services to the first network function network element based on the CCA, specifically: the second network function network element determines whether the service area indicated by the second service domain information is included in the service area range indicated by the third service domain information carried in the CCA; when the service area indicated by the second service domain information is included in the service area range indicated by the third service domain information carried in the CCA, the second network function network element determines that the CCA verification has passed, and then determines that it can provide services to the first network function network element.

[0024] Based on this implementation method, it is added to verify whether the service area indicated by the second service domain information is included in the service area range indicated by the third service domain information carried in the CCA to verify whether the third-party entity (such as the data collection and coordination function network element) as the transmitter of the service request message maliciously tampers with the request of the third network function network element, thereby preventing malicious NF service consumers from unauthorized access to services, further ensuring the security of network communications, and reducing potential security risks.

[0025] In other words, when the service request message includes a first token, the second network function network element determines whether to provide services (such as data or models) to the first network function network element based on the first token; further, when the service request message also includes a CCA, the second network function network element can further determine whether to provide services to the first network function network element based on the CCA, thereby enhancing security verification, preventing malicious NF service consumers from unauthorized access to services, and improving communication reliability.

[0026] In combination with the first aspect, in certain implementations of the first aspect, the service request message also includes an identifier of the first network function network element, the first token also includes an identifier of the first network function network element and an identifier of the third network function network element, and the second network function network element verifies the first token, and also includes: the second network function network element determines whether the identifier of the third network function network element carried in the first token is the same as the identifier of the third network function network element carried in the CCA, and whether the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message; when the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the CCA, and the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message, the second network function network element determines that the first token verification is successful.

[0027] Based on this implementation method, by adding verification of network element identifiers, that is, verifying whether the identifier of the third network function network element carried in the first token is the same as the identifier of the third network function network element carried in the CCA, and verifying whether the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message, malicious NF service consumers can be prevented from unauthorized access to services, further ensuring the security of network communications and reducing potential security risks.

[0028] In combination with the first aspect, in some implementations of the first aspect, the first token also includes other verification conditions, and the method also includes: the second network function network element determines whether to provide services to the first network function network element based on the other verification conditions; wherein the other verification conditions include one or more of the following: the NF instance identifier of the service provider, the NF type of the service provider, the single network slice selection auxiliary information of the service provider, the network slice instance identifier of the service provider, the identifier of the NF set to which the expected service provider belongs, the expected service name, and the validity period of the first token.

[0029] Based on this implementation method, the second network function network element adds verification of other verification conditions, and determines whether to provide services to the first network function network element based on whether the verification passes. This can effectively ensure network communication security and prevent malicious NF service consumers from unauthorized use of the first token to obtain services.

[0030] In combination with the first aspect, in certain implementations of the first aspect, when other verification conditions are verified to be successful, the second network function network element determines that the first token verification is successful.

[0031] Based on this implementation method, based on the verification of the service area information, the verification of other verification conditions is added, which can more effectively prevent malicious NF service consumers from unauthorizedly using the first token to obtain services, further ensure the security of network communications, and reduce or even avoid potential security risks.

[0032] In combination with the first aspect, in certain implementations of the first aspect, when any one of the following conditions is met, the second network function network element determines that the first token verification fails; the second network function network element refuses to provide service to the first network function network element; wherein the conditions include one or more of the following: the service area indicated by the second service domain information does not belong to the service area range indicated by the first service domain information; the service area indicated by the second service domain information does not belong to the service area range indicated by the third service domain information carried in the CCA; the identifier of the third network function network element carried in the first token is different from the identifier of the third network function network element carried in the CCA; the identifier of the first network function network element carried in the first token is different from the identifier of the first network function network element carried in the service request message; or, other verification conditions fail verification.

[0033] The specific manifestation of the second network function network element refusing to provide the service to the first network function network element may be: the second network function network element sends a service response message to the first network function network element, the service response message is used to indicate the refusal to provide the service, or the response message is used to indicate the failure of the service request. Optionally, the service response message also includes the reason for the refusal, for example, the reason for the refusal may be that the first token verification fails, the service area indicated by the second service domain information does not belong to the service area range indicated by the first service domain information, etc.

[0034] Based on this implementation method, in the process of verifying the first token, as long as any of the above situations occurs, it can be determined that the first token verification fails, thereby refusing to provide services. This can more effectively prevent malicious NF service consumers from unauthorizedly using the first token to obtain services, further ensure the security of network communications, and reduce or even avoid potential security risks.

[0035] In combination with the first aspect, in certain implementations of the first aspect, the first service domain information indicates the service area range allowed by the first network function network element's ability to obtain the service; or, the first service domain information indicates the service area range authorized by the authorization function network element to obtain the service; or, the first service domain information indicates the authorized service area range of the service for which the first network function network element is authorized.

[0036] Optionally, the first service domain information may be determined based on the service request scope carried in the token request message of the first network function network element, or the first service domain information may be determined by the authorization function network element based on the ability of the first network function network element to obtain the service as indicated by the NF Profile of the first network function network element stored locally. This application does not limit this.

[0037] Based on this implementation method, by carrying the first service domain information in the first token, it is ensured that when the subsequent second network function network element receives a service request from the first network function network element, it can determine whether to provide services to the first network function network element by verifying the first service domain information, thereby preventing malicious NF service consumers from unauthorizedly using the first token to obtain services, further ensuring the security of network communications, and reducing or even avoiding potential security risks.

[0038] In combination with the first aspect, in some implementations of the first aspect, the service area indicated by the second service domain information is included in the service area range indicated by the first service domain information.

[0039] Based on this implementation method, by limiting the service area indicated by the second service domain information to be included in the service area range indicated by the first service domain information, and limiting the service area indicated by the second service domain information to be included in the service area range indicated by the third service domain information, it is possible to avoid unauthorized access by the first network function network element, ensure that the subsequent verification of the first token by the second network function network element is successful, and then provide services to the first network function network element, thereby improving user experience.

[0040] In a second aspect, a communication method is provided, which can be executed by a first network function network element, or can also be executed by a chip or circuit used for the first network function network element, and this application does not limit this. For ease of description, the following is an example of execution by the first network function network element.

[0041] The method includes: a first network function network element obtains a first token, the first token includes first service domain information, the first service domain information indicates the service area range of the first network function network element that can obtain services from a second network function network element; the first network function network element sends a service request message to the second network function network element, the service request message is used to request the second network function network element to provide services to the first network function network element, the service request message includes the first token and second service domain information, the second service domain information indicates the service area of ​​the service requested by the first network function network element; the first network function network element receives the service from the second network function network element.

[0042] Exemplarily, the service requested by the first network function network element may be a data collection service or a model acquisition service. When the service is a data collection service, the first service domain information indicates the regional range of data that the first network function network element can obtain from the second network function network element; when the service is a model acquisition service, the first service domain information indicates the regional range of models that the first network function network element can obtain from the second network function network element.

[0043] According to the solution provided in the present application, in the process of a first network function network element requesting a service from a second network function network element, the second network function network element determines whether to provide the service to the first network function network element based on the first service domain information in the first token carried in the service request message, thereby preventing malicious NF service consumers from unauthorizedly using the first token to obtain the service and ensuring network security.

[0044] In combination with the second aspect, in certain implementation methods of the second aspect, the first network function network element obtains the first token, including: the first network function network element sends a token request message to the authorization function network element, the token request message includes the identifier of the service, the identifier of the first network function network element, the identifier of the second network function network element, or the network element type of the second network function network element; the first network function network element receives the first token from the authorization function network element.

[0045] Based on this implementation method, the authorization function network element generates and sends a first token to the first network function network element after verifying that the first network function network element is authorized, so that the first network function network element can request services from the second network function network element through the first token, thereby improving user experience.

[0046] In combination with the second aspect, in certain implementations of the second aspect, the token request message also includes fourth service domain information. The fourth service domain information indicates the service area of ​​the service requested by the first network function network element; or, the fourth service domain information indicates the service area of ​​the service requested by the first network function network element to be authorized by the authorization function network element.

[0047] Based on this implementation method, by carrying the fourth service domain information in the token request message, the authorization function network element can generate a first token in a targeted manner after verifying that the first network function network element is authorized. At this time, the first service domain information in the first token can reduce the potential risks caused by the subsequent malicious attack on the first network function network element.

[0048] In combination with the second aspect, in certain implementations of the second aspect, the token request message also includes a CCA, the CCA includes an identifier of a third network function network element and third service domain information, and the third service domain information indicates a service area of ​​a service requested by the third network function network element.

[0049] In combination with the second aspect, in some implementations of the second aspect, the service request message also includes a CCA.

[0050] It should be understood that this implementation method is mainly applicable to the scenario where the first network function network element, as a third-party entity, requests the second network function network element to provide services for the third network function network element.

[0051] Based on this implementation method, carrying CCA in the service request message can be used for the second network function network element to authenticate the third network function network element, which can prevent malicious NF service consumers from unauthorizedly using the first token to obtain the service and ensure network security.

[0052] In combination with the second aspect, in certain implementations of the second aspect, the first service domain information indicates the service area range allowed by the ability of the first network function network element to obtain services; or, the first service domain information indicates the service area range authorized by the authorization function network element to obtain services for the first network function network element; or, the first service domain information indicates the authorized service area range of the service for which the first network function network element is authorized.

[0053] In combination with the second aspect, in some implementations of the second aspect, the service area indicated by the second service domain information is included in the service area range indicated by the first service domain information.

[0054] The beneficial effects of the above-mentioned second aspect and some implementation methods of the second aspect can be referred to the relevant description of the first aspect, which will not be repeated here.

[0055] In a third aspect, a communication method is provided, which can be executed by an authorization function network element (such as NRF), or can also be executed by a chip or circuit for an authorization function network element, which is not limited in this application. For ease of description, the following is an example of execution by an authorization function network element.

[0056] The method includes: an authorization function network element receives a token request message from a first network function network element, the token request message includes an identifier of a service, an identifier of the first network function network element, an identifier of a second network function network element, or a type of the second network function network element; when determining that the first network function network element is authorized to obtain services from the second network function network element, the authorization function network element generates a first token, the first token includes first service domain information, and the first service domain information indicates a service area range in which the first network function network element can obtain services from the second network function network element; the authorization function network element sends the first token to the first network function network element.

[0057] According to the solution provided in the present application, when it is determined that the first network function network element is authorized to obtain services from the second network function network element, the authorization function network element generates and sends a first token to the first network function network element, which is used by the second network function network element to subsequently determine whether to provide services based on the first token. This can prevent malicious NF service consumers from unauthorizedly using the first token to obtain the service, thereby ensuring network security.

[0058] Exemplarily, the authorization function network element may perform security protection on the generated first token, and the security protection here may be integrity protection. For example, the authorization function network element generates a message authentication code (MAC) for the first token using a shared key, and the authorization function network element may send the MAC together with the first token to NFc, and the MAC is used to verify whether the information in the first token has been tampered with; or, the authorization function network element signs the claims using a private key, and NFp can verify whether the claims have been tampered with through the signature. It should be understood that the first token is protected by security, thereby preventing malicious NF service consumers from tampering with the parameters in the first token.

[0059] In combination with the third aspect, in certain implementations of the third aspect, the token request message also includes fourth service domain information, and the fourth service domain information indicates the service area of ​​the service requested by the first network function network element; or, the fourth service domain information indicates the service area of ​​the service that the first network function network element requests the authorization function network element to authorize.

[0060] In combination with the third aspect, in certain implementations of the third aspect, the token request message also includes a CCA, the CCA includes an identifier of a third network function network element and third service domain information, and the third service domain information indicates a service area of ​​a service requested by the third network function network element.

[0061] In combination with the third aspect, in certain implementation methods of the third aspect, the authorization function network element generates a first token, including: the authorization function network element determines whether the service area indicated by the fourth service domain information is included in the service area range indicated by the third service domain information carried in the CCA; when it is determined that the service area indicated by the fourth service domain information carried in the token request message is included in the service area range indicated by the third service domain information carried in the CCA, the authorization function network element generates the first token.

[0062] Based on this implementation method, it is added to verify whether the service area indicated by the fourth service domain information belongs to the service area range indicated by the third service domain information carried in the CCA to verify whether the third-party entity (such as the data collection and coordination function network element) as the transmitter of the service request message maliciously tampers with the request of the third network function network element, thereby avoiding malicious NF service consumers from unauthorized use of the first token to obtain services, further ensuring the security of network communications and reducing potential security risks.

[0063] In combination with the third aspect, in certain implementations of the third aspect, the first service domain information indicates the service area range allowed by the ability of the first network function network element to obtain services; or, the first service domain information indicates the service area range authorized by the authorization function network element to obtain services; or, the first service domain information indicates the authorized service area range of the service for which the first network function network element is authorized.

[0064] The beneficial effects of the third aspect and certain implementation methods of the third aspect can be referred to the relevant description of the first aspect, which will not be repeated here.

[0065] In a fourth aspect, a second network function network element is provided. The device includes: a receiving unit, which is used for the second network function network element to receive a service request message from the first network function network element, the service request message is used to request the second network function network element to provide services to the first network function network element, the service request message includes a first token and second service domain information, the second service domain information indicates the service area of ​​the data requested by the first network function network element, the first token includes the first service domain information, the first service domain information indicates the service area range of the first network function network element that can obtain services from the second network function network element; the second network function network element determines whether to provide services to the first network function network element according to the first token; and a processing unit is used to determine whether to provide services to the first network function network element according to the first token.

[0066] The transceiver unit can perform the reception and transmission processing in the aforementioned first aspect, and the processing unit can perform other processing except reception and transmission in the aforementioned first aspect.

[0067] In a fifth aspect, a first network function network element is provided. The network element includes: a processing unit, used to obtain a first token, the first token includes first service domain information, the first service domain information indicates the service area range of the first network function network element that can obtain services from the second network function network element; a transceiver unit, used to send a service request message to the second network function network element, the service request message is used to request the second network function network element to provide services to the first network function network element, the service request message includes the first token and the second service domain information, the second service domain information indicates the service area of ​​the service requested by the first network function network element; the transceiver unit is also used to receive services from the second network function network element.

[0068] The transceiver unit can perform the reception and transmission processing in the aforementioned second aspect, and the processing unit can perform other processing except reception and transmission in the aforementioned second aspect.

[0069] In a sixth aspect, an authorization function network element is provided. The network element includes: a transceiver unit, configured to receive a token request message from a first network function network element, the token request message including an identifier of a service, an identifier of the first network function network element, an identifier of a second network function network element, or a type of the second network function network element; a processing unit, configured to generate a first token when determining that the first network function network element is authorized to obtain a service from the second network function network element, the first token including first service domain information, the first service domain information indicating a service area range in which the first network function network element can obtain a service from the second network function network element; and the transceiver unit, further configured to send the first token to the first network function network element.

[0070] The transceiver unit can perform the receiving and sending processing in the third aspect, and the processing unit can perform other processing except receiving and sending in the third aspect.

[0071] In the seventh aspect, a communication device is provided, comprising a transceiver, a processor and a memory, wherein the processor is used to control the transceiver to receive and send signals, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the communication device executes the methods in the above-mentioned first to third aspects and any possible implementation methods thereof.

[0072] Optionally, the number of the processors is one or more, and the number of the memories is one or more.

[0073] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0074] Optionally, the communication device further includes a transmitter (transmitter) and a receiver (receiver).

[0075] In an eighth aspect, a communication system is provided, comprising one or more of the aforementioned first network function network element, second network function network element, and authorization function network element.

[0076] In the ninth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program or code, and when the computer program or code is run on a computer, the computer executes the method in the above-mentioned first to third aspects and any possible implementation manner thereof.

[0077] In the tenth aspect, a chip is provided, comprising at least one processor, wherein the at least one processor is coupled to a memory, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a communication device equipped with the chip system executes the methods in the above-mentioned first to third aspects and any possible implementation thereof.

[0078] The chip may include an input circuit or interface for sending information or data, and an output circuit or interface for receiving information or data.

[0079] In the eleventh aspect, a computer program product is provided, comprising: a computer program code, which, when executed by a communication device, enables the communication device to execute the methods in the above-mentioned first to third aspects and any possible implementation manner thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 It is a schematic diagram of a network architecture 100 applicable to an embodiment of the present application.

[0081] Figure 2 It is a flowchart of a token request method and a service request method 200 provided in an embodiment of the present application.

[0082] Figure 3 It is a flowchart of a model sharing method 300 provided in an embodiment of the present application.

[0083] Figure 4 It is a flowchart of another model sharing method 400 provided in an embodiment of the present application.

[0084] Figure 5 It is a flow chart of the communication method 500 provided in an embodiment of the present application.

[0085] Figure 6 It is a flow chart of the communication method 600 provided in an embodiment of the present application.

[0086] Figure 7 It is a flow chart of the communication method 700 provided in an embodiment of the present application.

[0087] Figure 8 It is a flow chart of the communication method 800 provided in an embodiment of the present application.

[0088] Fig. 9 It is a structural diagram of a communication device 1000 provided in an embodiment of the present application.

[0089] Fig.10 It is a structural diagram of another communication device 2000 provided in an embodiment of the present application.

[0090] Fig.11 It is a structural diagram of a chip system 3000 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0091] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0092] The technical solution provided in this application can be applied to various communication systems, such as: new radio (NR) system, long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD) system, etc. The technical solution provided in this application can also be applied to device to device (D2D) communication, vehicle to everything (V2X) communication, machine to machine (M2M) communication, machine type communication (MTC), and Internet of things (IoT) communication system or other communication systems.

[0093] In the communication system, the part operated by the operator can be called a public land mobile network (PLMN), or an operator network, etc. PLMN is a network established and operated by the government or an operator approved by it for the purpose of providing land mobile communication services to the public. It is mainly a public network in which mobile network operators (MNO) provide mobile broadband access services to users. The PLMN described in the embodiment of the present application may specifically be a network that meets the requirements of the third generation partnership project (3GPP) standards, referred to as a 3GPP network. 3GPP networks generally include but are not limited to 5G networks, fourth generation mobile communication (4th-generation, 4G) networks, and other future communication systems, such as (6th-generation, 6G) networks, etc.

[0094] For the convenience of description, the 5G network will be used as an example in the embodiments of the present application.

[0095] Figure 1 Schematic diagram of a network architecture 100 applicable to an embodiment of the present application. Figure 1 As shown, the network architecture may specifically include three parts, namely, the terminal equipment part, the data network (DN) and the operator network PLMN part. The functions of the network elements of each part are briefly described below.

[0096] The terminal equipment part may include a terminal device 110, which may also be referred to as a user equipment (UE). The terminal device 110 in the present application is a device with wireless transceiver functions, which may communicate with one or more core network (CN) devices via an access network device (or may also be referred to as an access device) in a radio access network (RAN) 140. The terminal device 110 may also be referred to as an access terminal, a terminal, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a user agent or a user device, etc. The terminal device 110 may be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it may also be deployed on the water (e.g., a ship, etc.); it may also be deployed in the air (e.g., on an airplane, a balloon, and a satellite, etc.). The terminal device 110 may be a cellular phone, a drone, a smart car, a cordless phone, a session initiation protocol (SIP) phone, a smart phone, a mobile phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), etc. Alternatively, the terminal device 110 may also be a handheld device with wireless communication function, a computing device or other device connected to a wireless modem, a vehicle-mounted device, a wearable device, a drone device or a terminal in the Internet of Things, the Internet of Vehicles, a terminal of any form in a 5G network and future networks, a relay user device or a terminal in a future evolved 6G network, etc. Among them, the relay user device may be, for example, a 5G residential gateway (RG). For example, the terminal device 110 can be a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The terminal device here refers to a 3GPP terminal. The embodiment of the present application does not limit the type or type of terminal device. For ease of explanation, the following description of the present application takes UE as an example to refer to the terminal device.

[0097] The operator network PLMN part may include but is not limited to the radio access network RAN) 120 and the core network CN part.

[0098] (R)AN 120 can be regarded as a sub-network of the operator network, and is an implementation system between the service nodes in the operator network and the terminal device 110. To access the operator network, the terminal device 110 first passes through (R)AN 120, and then can connect to the service nodes of the operator network through (R)AN 120. The access network device (RAN device) in the embodiment of the present application is a device that provides wireless communication functions for the terminal device 110, and can also be called a network device. The RAN device includes but is not limited to: the next generation node base station (gNB) in the 5G system, the evolved node B (eNB) in LTE, the radio network controller (RNC), the node B (NB), the base station controller (BSC), the base transceiver station (BTS), the home base station (for example, home evolved node B, or home node B, HNB), the base band unit (BBU), the transmission point (TRP), the transmitting point (TP), the small base station device (pico), the mobile switching center, or the network device in the future network. In the system using different wireless access technologies, the name of the device with the access network device function may be different. For the convenience of description, in all the embodiments of the present application, the above-mentioned device that provides wireless communication functions for the terminal device 110 is collectively referred to as the access network device or RAN or AN for short. It should be understood that this document does not limit the specific type of access network equipment.

[0099] The CN part may include but is not limited to the following network functions (NF): user plane function (UPF) 130, network exposure function (NEF) 131, network function repository function (NRF) 132, policy control function (PCF) 133, unified data management function (UDM) 134, unified data repository function (UDR) 135, network data analytics function (NWDAF) 136, authentication server function (AUSF) 137, access and mobility management function (AMF) 138, session management function (SMF) 139.

[0100] The data network DN 140, which may also be referred to as a packet data network (PDN), is usually a network located outside the operator network, such as a third-party network. Of course, in some implementations, the DN may also be deployed by the operator, that is, the DN is part of the PLMN. This application does not limit whether the DN belongs to the PLMN. The operator network PLMN may access multiple data networks DN 140, and multiple services may be deployed on the data network DN 140, which may provide services such as data and / or voice to the terminal device 110. For example, the data network DN 140 may be a private network of a smart factory, and the sensors installed in the workshop of the smart factory may be the terminal devices 110. The control server in which the sensors are deployed in the data network DN 140 may provide services for the sensors. The sensors may communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, the data network DN 140 may be an internal office network of a company, and the mobile phones or computers of the company's employees may be the terminal devices 110, and the employees' mobile phones or computers may access information, data resources, etc. on the company's internal office network. The terminal device 110 can establish a connection with the operator network through an interface (such as N1, etc.) provided by the operator network, and use data and / or voice services provided by the operator network. The terminal device 110 can also access the data network DN 140 through the operator network, and use the operator services deployed on the data network DN 140, and / or services provided by a third party.

[0101] The following is a brief description of the NF functions included in CN.

[0102] 1. UPF 130 is a gateway provided by the operator and is the gateway for the operator network to communicate with the data network DN 140. UPF network function 130 includes user-plane related functions such as data packet routing and transmission, data packet detection, service usage reporting, quality of service (QoS) processing, legal monitoring, uplink data packet detection, downlink data packet storage, etc.

[0103] 2. NEF 131 is a control plane function provided by the operator, which mainly enables third parties to use the services provided by the network, supports the network to open its capabilities, event and data analysis, provide PLMN security configuration information from external applications, and convert interactive information inside and outside the PLMN.

[0104] 3. NRF 132 is a control plane function provided by the operator, which can be used to maintain real-time information of network functions and services in the network. For example, it supports network service discovery, maintains the services supported by the NF profile of the NF instance, supports service discovery of the service communication proxy (SCP), maintains the SCP profile of the SCP instance, sends notifications about newly registered, unregistered, and updated NFs and SCPs, and maintains the health status of NF and SCP operations.

[0105] 4. PCF 133 is a control plane function provided by the operator. It supports a unified policy framework to govern network behavior, provide policy rules to other control functions, and contract information related to policy decisions.

[0106] 5. UDM 134 is a control plane function provided by the operator, which is responsible for storing information such as the subscriber permanent identifier (SUPI) of the subscriber in the operator network, the generic public subscription identifier (GPSI) of the subscriber, and credentials. The SUPI will be encrypted during the transmission process, and the encrypted SUPI is called the hidden user subscription identifier (SUCI). The information stored by the UDM network function 134 can be used for authentication and authorization of the terminal device 110 to access the operator network. Among them, the subscribers of the above-mentioned operator network can specifically be users who use the services provided by the operator network, such as users who use China Telecom's mobile phone core card (subscriber identity module, SIM) card, or users who use China Mobile's mobile phone core card. The credentials of the above-mentioned subscribers can be a small file storing long-term keys stored in the mobile phone core card or information related to the encryption of the mobile phone core card, which is used for authentication and / or authorization. It should be noted that the permanent identifier, credentials, security context, authentication data, and token are equivalent to information related to verification / authentication and authorization. In the embodiment of the present application, no distinction or restriction is made for the convenience of description.

[0107] 6. UDR 135 is a control plane function provided by the operator, which provides the functions of storing and retrieving subscription data for UDM, storing and retrieving policy data for PCF, storing and retrieving user's NF group ID information, etc.

[0108] 7. NWDAF 136 is a control plane function provided by the operator. Its main function is to collect data from NF, external application function (AF) and operation, administration and maintenance (OAM) system, and provide NWDAF service registration, data opening and analysis data to NF and AF.

[0109] 8. AUSF 137 is a control plane function provided by the operator, and is usually used for primary authentication, i.e., authentication between the terminal device 110 (subscriber) and the operator network. After receiving the authentication request initiated by the subscriber, the AUSF network function 137 may authenticate and / or authorize the subscriber through the authentication information and / or authorization information stored in the UDM network function 134, or generate the authentication and / or authorization information of the subscriber through the UDM network function 134. The AUSF network function 137 may feed back the authentication information and / or authorization information to the subscriber.

[0110] 9. AMF 138 is a control plane network function provided by the operator network, responsible for access control and mobility management of the terminal device 110 accessing the operator network, such as mobility status management, allocation of user temporary identity, authentication and authorization of users, etc.

[0111] 10. SMF 139 is a control plane network function provided by the operator network, responsible for managing the PDU session of the terminal device 110. The PDU session is a channel for transmitting PDUs. The terminal device needs to transmit PDUs to and from the data network DN 140 through the PDU session. The PDU session is established, maintained, and deleted by the SMF network function 139. The SMF network function 139 includes session management (such as session establishment, modification, and release, including tunnel maintenance between the user plane function UPF 130 and (R)AN 120), selection and control of the UPF network function 130, service and session continuity (SSC) mode selection, roaming and other session-related functions.

[0112] Optionally, the network architecture may also include a data collection coordination function (DCCF) network element and an analytics data repository function (ADRF) network element. The DCCF supports the following functions: determining a data source that can provide data for a received data request; determining whether data has been collected from a data source; instructing a messaging framework to send data to a consumer or notification endpoint; instructing a messaging framework to format and process data sent through the messaging framework; formatting and processing data; sending data to a consumer or notification endpoint; registering NWDAF and ADRF that have received data from a data source.

[0113] ADRF provides storage and retrieval services for data and analytics to consumers. Exemplarily, a consumer sends a Nadrf_DataManagement_StorageRequest to ADRF containing the data or analytics to be stored; alternatively, a consumer sends a Nadrf_DataManagement_StorageSubscriptionRequest to ADRF, requesting ADRF to subscribe to receive data or analytics for storage, and then ADRF subscribes to NWDAF or DCCF to obtain the data or analytics, providing the ADRF notification address (or notification association ID). The analytics or data are then provided as notifications using DCCF, NWDAF, or MFAF services (Ndccf_DataManagement Nnwdaf_DataManagement or Nmfaf_3caDataManagement services).

[0114] Exemplarily, a consumer sends a Nadrf_DataManagement_RetrievalRequest request to ADRF to retrieve data or analysis for a specified data or analysis collection time window. ADRF determines the availability of the data or analysis in its repository and sends the data or analysis, or instructions for obtaining the data or analysis, to the consumer in response; alternatively, a consumer sends a Nadrf_DataManagement_RetrievalSubscribe request to ADRF to retrieve data or analysis for a specified data or analysis collection time window. If the time window includes the future and ADRF has subscribed to receive data or analysis, subsequent notifications received by ADRF will be sent by ADRF to the notification endpoint. ADRF determines the availability of the data or analysis and sends a success / failure indication to the consumer in a response. ADRF then sends one or more notifications to the notification address (or notification association ID) specified by the consumer using Nadrf_DataManagement_RetrievalNotify. The notification provides data or analysis, or provides instructions to the endpoint to obtain data or analysis using Nadrf_DataManagement_RetrievalRequest.

[0115] It is understandable that the above network elements or functions can be physical entities in hardware devices, software instances running on dedicated hardware, or virtualized functions instantiated on a shared platform (e.g., a cloud platform). In short, an NF can be implemented by hardware or software.

[0116] Figure 1 Where Nnef, Nnrf, Npcf, Nudm, Nudr, Nnwdaf, Nausf, Namf, Nsmf, N1, N2, N3, N4, and N6 are interface serial numbers. For example, the meaning of the above interface serial numbers can be found in the meaning defined in the 3GPP standard protocol, and this application does not limit the meaning of the above interface serial numbers. It should be noted that, Figure 1 The interface name between the various network functions in the system architecture is only an example. In a specific implementation, the interface name of the system architecture may also be other names, which are not limited in this application. In addition, the name of the message (or signaling) transmitted between the above-mentioned network elements is only an example and does not constitute any limitation on the function of the message itself.

[0117] For the convenience of explanation, in the embodiments of the present application, the network functions (such as NEF 131 ... SMF139) are collectively referred to as NFs, that is, the NFs described later in the embodiments of the present application can be replaced by any network function. Figure 1 Only some network functions are schematically described. The NF described below is not limited to Figure 1 The network functions shown in .

[0118] It should be understood that the above-mentioned network architecture applied to the embodiment of the present application is only a network architecture described from the perspective of a service-oriented architecture, and the network architecture applicable to the embodiment of the present application is not limited to this. Any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiment of the present application.

[0119] It should also be understood that Figure 1 The AMF, SMF, UPF, NEF, AUSF, NRF, PCF, and UDM shown in the figure can be understood as network elements used to implement different functions in the core network, for example, they can be combined into network slices as needed. These core network network elements can be independent devices or integrated into the same device to implement different functions. This application does not limit the specific form of the above network elements.

[0120] It should also be understood that the above naming is only defined for the convenience of distinguishing different functions and should not constitute any limitation to this application. This application does not exclude the possibility of using other naming in 5G networks and other future networks. For example, in a 6G network, some or all of the above network elements may use the terminology in 5G, or may use other names.

[0121] In order to facilitate understanding of the solution provided by the embodiment of the present application, the communication mode between service-oriented network elements is first briefly described.

[0122] In the 5G service-oriented system architecture, the two parties communicating based on the service-oriented interface are called service consumers and service providers. The party requesting the service is called service consumer, and the party providing the service is called service producer. Service consumers can also be called consumers, consumer network elements, users, requesters, requesters, or service consumer network elements. Service providers can also be called providing network elements, service providing network elements, providers, producers, or responders, etc., which are not limited in this application.

[0123] Figure 2 2 is a flow chart of a method 200 for obtaining an access token and NF services provided by an embodiment of the present application. Figure 2 As shown, taking NFc obtaining data collection service from NFp through DCCF as an example, the method includes the following steps, and the parts not described in detail can refer to the existing protocol.

[0124] S201, NF service consumer NFc (e.g. NWDAF) sends access token request message #1 to the authorization function network element (e.g. network storage function network element NRF);

[0125] Correspondingly, NRF receives access token request message #1 from NFc.

[0126] Among them, the access token request message #1 is used to request to obtain the authorization token for the data collection service from the DCCF.

[0127] In one case, NFc may request an access token for accessing a service of NFp of a specific network function type (NF type). In this case, the access token request message #1 includes the NF instance ID of NFc (e.g., NFInstance Id(s) of the NF service consumer), the expected NF service name (e.g., expected NFservice name(s), such as collecting data), the expected NF type (e.g., DCCF), the NF type of NFc and the NFtype of NFp. Optionally, the access token request message #1 may also include additional scopes (i.e., requested resources and requested operations on resources), a list of network slice selection assistance information (S-NSSAI) or a list of NSI IDs of the expected NFp instance, a list of NF Set IDs of the expected NFp instance, a list of S-NSSAIs of NFc, etc.

[0128] In another case, the NF service consumer may request an access token for accessing the services of a specific NF service provider instance or NF service provider service instance. In this case, the access token request message #1 includes the NF instance ID(s) of the requested NFp, the desired service name, and the NF instance ID of NFc. Optionally, the access token request message #1 also includes additional scopes (i.e., the requested resources and the requested operations on the resources).

[0129] Exemplarily, the access token request message #1 may be a Nnrf_AccessToken_Get Request message.

[0130] Optionally, before NFc sends access token request message #1 to NRF, NFc and NFp complete registration at NRF. In order to ensure the security of information exchange between NF and NRF, the standard authorization framework of OAuth 2.0 developed by the Internet Engineering Task Force (IETF) can be followed to exchange registration information. Among them, the client in OAuth2.0 corresponds to NFc here, the client ID corresponds to the NFc instance ID, and the authorization server corresponds to NRF. The specific NF registration process can refer to the existing protocol, which will not be repeated here.

[0131] It should be noted that this implementation is applicable to the case where NFc and NFp belong to the same operator, and is also applicable to the case where NFc and NFp belong to different operators, and this application does not make any specific limitation.

[0132] S202, NRF authorizes NFc to generate access token token#1 (eg, access_token_nwdaf).

[0133] In the service-oriented system architecture, when NFc requests a service from NFp, NFp needs to perform an authorization check on the service requested by NFc, that is, check whether NFc is authorized to use the requested service. Only after the authorization check is passed, NFp will provide the corresponding service to NFc. For the authorization verification of NFp for the service requested by NFc, an authorization verification scheme based on access tokens can be used.

[0134] Exemplarily, the NRF performing authorization check on the NFc may include: the NRF verifies the identity of the NFc, and if the identity verification is successful, verifies whether the NFc has the authority to access the requested service. If the NFc has the authority, token#1 is generated, which is conducive to the service obtained by the NFc through token#1 being the authorized service, and preventing the unauthorized use of the service.

[0135] The NRF may verify the identity of NFc by verifying whether the parameters carried in the token#1 acquisition request (e.g., NF type of NFc) match the public key certificate or NF configuration information of NFc. If they match, the identity authentication is successful, otherwise, the authentication fails. Specifically, for example, the NRF may obtain the corresponding public key certificate from NFc, and the public key certificate contains information about NFc. The NRF compares the parameters in the token#1 acquisition request (e.g., NF type of NFc) with the information contained in the public key certificate. If the information is consistent, the identity authentication is successful, otherwise, the identity authentication fails. Or, for another example, the NRF obtains the NF configuration information (i.e., NF configuration information of NFc) corresponding to the NF instance ID stored locally in the NRF network element according to the NF instance ID of NFc in the token#1 acquisition request, and compares the parameters in the token#1 acquisition request, such as NF type of NFc, with the NF type in the NF configuration information. If they are consistent, the identity authentication is successful, otherwise, the identity authentication fails.

[0136] NRF verifies whether NFc has the authority to access the requested service, which may include: NRF obtains the service-related parameters (such as the expected service name) carried in the request based on token#1, the NF type of NFc, and the local configuration to determine whether NFc has the authority to access the requested service. For example, NFc is an NWDAF network element, NFp is a DCCF network element, and the expected service name is data collection service. NRF determines based on the local configuration that the NWDAF network element has the authority to obtain data from the DCCF network element, and the authorization check is passed. For another example, NFc is an NWDAF network element, NFp is an ADRF network element, and the expected service name is model acquisition. At this time, since NRF determines based on the local configuration that the NWDAF network element cannot obtain the model from the ADRF network element, the authorization check fails. If the authorization check on NFc passes, then NRF generates an access token containing claims.

[0137] Further, if the authorization check on NFc passes, that is, NFc is authorized, NRF generates token#1 containing claims. The claims include the NF instance ID of the authorized network element, the NF instance ID of the NF service consumer, the NF type of the NF service provider, the expected service name, the expiration time (expires_in), etc. Optionally, the claims may also include additional scopes (resources allowed and operations requested on resources), the S-NSSAI list or NSI ID list of the expected NF service provider instance, the NF Set ID of the expected NF service provider instance, etc.

[0138] Furthermore, NRF can perform security protection on the generated token#1, and the security protection here can be integrity protection. For example, NRF uses a shared key to generate a message authentication code MAC for token#1, and NRF can send the MAC and token#1 together to NFc, and the MAC is used to verify whether the information in token#1 has been tampered with; or, NRF uses a private key to sign the claims, and NFp can verify whether the claims have been tampered with through the signature. The specific method of protecting the access token using signatures and MAC values ​​is defined in RFC 7515.

[0139] If NFc is not authorized, NRF shall not issue token#1 to NFc. It should be understood that integrity protection refers to ensuring that information is not tampered with or modified without authorization during generation, transmission, storage, and thereafter by physical means or cryptographic methods.

[0140] Optionally, the claims may also include other parameters such as allowed resources, network slice information, "additional scope" information (i.e. allowed resources and allowed resource operations (service operations)), a list of NSSAI or NSI IDs of the expected NFp instance, NF Set ID of the expected NFp instance, etc.

[0141] It should be noted that the verification granularity of NRF in the above step S202 is the service level. Therefore, if the verification is passed, NFc can initiate a service request to any NFp that can provide the service based on token#1.

[0142] S203, NRF sends access token response message #1 to NFc;

[0143] Correspondingly, NFc receives the access token response message #1 from NRF.

[0144] Among them, the access token response message #1 is used to authorize the NFc to obtain data collection services from the DCCF, that is, to receive the data requested by the NFc from the DCCF, and the access token response message #1 includes token #1.

[0145] Optionally, the access token response message #1 may also include a validity period of token #1. Token #1 may generally be reused within the validity period.

[0146] Exemplarily, if all parameters in the access token request message #1 are verified and NFc is authorized to access the requested service, the NRF sends the generated token #1 to NFc via the access token response message #1 (e.g., Nnrf_AccessToken_Get Response). Optionally, the access token response message #1 may also include other parameters, such as the expiration time of token #1, the scope of the request for which token #1 is allowed to be used, etc. If the authorization verification in S202 fails, the NRF sends an error response or a rejection response to NFc.

[0147] S204, NFc sends NF service request message #1 to DCCF;

[0148] Correspondingly, DCCF receives NF service request message #1 from NFc.

[0149] Among them, NF service request message #1 is used to request data from NFp through DCCF, and NF service request message #1 includes token #1 and CCA generated by NFc (for example, CCA_NWDAF), and the CCA_NWDAF is used by NFp to authenticate NFc in subsequent steps.

[0150] Exemplarily, NF service request message #1 may be a NF Service Request message, specifically, an Ndccf_DataManagement_Subscribe message.

[0151] S205, DCCF verifies token#1 and executes the service after verification.

[0152] Exemplarily, DCCF verifies the integrity of token#1, for example, by verifying the digital signature using the public key of NRF to ensure that token#1 is issued by NRF; and uses the shared key to check the MAC value to verify the integrity protection of token#1 to ensure that token#1 has not been tampered with or modified without authorization. Further, after the integrity protection verification is passed, the identity of NFc is verified by comparing CCA_NWDAF with the instance ID of NFc carried in token#1. Optionally, while ensuring the authenticity and legality of token#1, DCCF can also determine the validity of token#1 through the validity period of token#1, and the content of DCCF verification depends on which parameters are carried in the claims. Only after passing the above verification, DCCF executes the service requested by NFc, that is, executes step S206; otherwise, the service request is rejected. Optionally, NRF can reply a response message of the verification error to NFc.

[0153] S206, DCCF determines NFp.

[0154] Optionally, if the information of NFp (eg, the type of NFp and the instance ID of NFp) is carried in step S204, DCCF may not select NFp autonomously, but use the NFp provided by NFc to send a request to NRF, that is, execute step S207.

[0155] S207, DCCF sends access token request message #2 to NRF;

[0156] Correspondingly, NRF receives access token request message #2 from DCCF.

[0157] The access token request message #2 is used to request an authorization token for the data collection service from NFp, and the access token request message #2 includes the instance ID of NFc (e.g., NWDAF), the NF instance ID of DCCF, CCA_NWDAF, the desired NF service name (e.g., collect data), and the desired NFp type (e.g., data producer function NF). It should be understood that the NF instance ID of DCCF can be included in an information element (IE) different from that of NFc.

[0158] Optionally, the access token request message #2 also includes but is not limited to: the type of NFc (e.g., NWDAF), the NSSAI list or NSI ID list of the expected NFp instance, the NF Set ID of the expected NFp instance, the S-NSSAI list of NFc, etc.

[0159] Exemplarily, the access token request message #2 may be a Nnrf_AccessToken_Get Request message.

[0160] S208, NRF verifies the identities of DCCF and NFc, and generates token#2 (eg, access_token_dataproducer).

[0161] Exemplarily, the NRF checks whether the DCCF and NFc are allowed to access the services provided by the determined NFp. For example, the NRF authenticates the DCCF and NFc according to one of the SBA methods. For example, the NRF verifies the parameters (such as NF type, etc.) in the access token request message #2 to determine whether the parameters match the public key certificate or NF profile of the NF service consumer. In addition, the NRF also checks whether the NFc is authorized to access the requested service.

[0162] Optionally, in the standard version of 3GPP Release 16, NRF authenticates NFc using CCA_NWDAF. In the standard version of 3GPP Release 16 or earlier, NRF verifies whether NFc is authorized to accept the requested service, but does not verify whether DCCF is authorized to accept the requested service.

[0163] If the above verification process is passed, NRF generates token#2. The token#2 includes claims, which include additional claims of NFc's NF instance ID and DCCF identity, and is used to authorize NFc and DCCF to obtain data collection services from NFp.

[0164] Optionally, the claims may also include but are not limited to: NF instance ID of the issuing NRF, NF type of NFp, service name expected by NFc, validity period of token#2, resources allowed for use, network slice information, "additional scope" information (i.e., allowed resources and allowed resource operations (service operations)), NSSAI or NSI ID list of the expected NFp instance, NF Set ID of the expected NFp instance, etc.

[0165] Optionally, in the standard version of 3GPP Release 16 or earlier, no additional declaration of the DCCF identifier may be added to token#2.

[0166] Furthermore, NRF can perform security protection on the generated token#2, and the security protection here can be integrity protection. For example, NRF uses the shared key to generate a message authentication code MAC for token#2, and NRF can send the MAC and token#2 together to DCCF or NFc. The MAC is used to verify whether the information in token#2 has been tampered with; or, NRF uses the private key to sign the claims, and NFp can verify whether the claims have been tampered with through the signature.

[0167] S209, NRF sends access token response message #2 to DCCF;

[0168] Correspondingly, DCCF receives access token response message #2 from NRF.

[0169] Among them, the access token response message #2 is used to indicate the consent to authorize the NFc and DCCF to obtain data collection from the NFp, and the access token response message #2 includes token #2.

[0170] Optionally, the access token response message #2 may also include a validity period of token #2. Token #2 may generally be reused within the validity period.

[0171] Exemplarily, the access token response message #2 may be a Nnrf_AccessToken_Get Response message.

[0172] S210, DCCF sends NF service request message #2 to NFp;

[0173] Correspondingly, NFp receives NF service request message #2 from DCCF.

[0174] Among them, NF service request message #2 is used to request NFp to provide data collection service, that is, DCCF requests to obtain data from NFp for NFc. NF service request message #2 includes token #2, NF instance ID of DCCF and CCA_NWDAF.

[0175] Exemplarily, NF service request message #2 may be a NF Service Request message.

[0176] S211, NFp verifies token#2 and provides services after verification.

[0177] Exemplarily, NFp verifies NFc, token#2 and DCCF. For example, NFp verifies the identity of NFc by comparing CCA_NWDAF and the instance ID of NFc carried in token#2; verifies the identity of DCCF by comparing the DCCF identifier in the claims contained in token#2 and the NF instance ID of DCCF carried in NF service request message #2; at the same time, the digital signature is verified by using the public key of NRF to ensure that token#2 is issued by NRF; and the MAC value is checked using the shared key to verify the integrity protection of token#2 to ensure that token#2 has not been tampered with or modified without authorization; if the integrity protection verification of token#2 passes, NFp further needs to verify the claims in token#2. For example, verify whether the NF instance ID or NF type of NFc in the claims matches its own ID or type; if the claims include S-NSSAIs or NSIIDs, NFp verifies whether it can serve the corresponding slice; if the claims include NF Set ID of NFp, NFp verifies whether the NF set ID in the claims matches its own NF Set ID; if the claims include the service name, NFp verifies whether it matches the requested service operation; if the claims include additional scope information, NFp verifies whether the additional scope matches the requested operation; NFp compares the expiration time in token#2 with the current time to verify whether the token is expired; if NF service request message #2 includes NF set ID, NFp verifies whether the NF set ID matches the NF set ID in the claims in token#2, and so on.

[0178] Optionally, if the DCCF identity is not included in the additional statement of token#2, for example, the NRF is a standard version of 3GPP Release 16 or earlier, the NFp can authorize the DCCF locally and perform the service after the authentication authorization is successful. Optionally, the DCCF can include an additional CCA for identity authentication.

[0179] S212, NFp sends NF service response message #2 to DCCF;

[0180] Correspondingly, DCCF receives NF service response message #2 from NFp.

[0181] Among them, NF service response message #2 includes the data requested by NFc.

[0182] Exemplarily, NF service response message #2 may be a NF Service Response via notification message.

[0183] It should be understood that, based on the successful verification of token#2 in the above step S211, the NFp performs the service. Otherwise, the NFp refuses to provide the service.

[0184] S213, DCCF sends NF service response message #1 to NFc;

[0185] Correspondingly, NFc receives NF service response message #1 from DCCF.

[0186] Among them, NF service response message #1 includes the data requested by NFc.

[0187] Exemplarily, NF service response message #1 may be a NF Service Response via notification message.

[0188] Optionally, if other NFcs request the data collected in the above step S212 from DCCF at a later stage, the above steps S201 to S212 need to be performed, and then when NFp receives the NF service request message, NFp needs to authenticate the new NFc, verify the access token carried in the NF service request message, and send a NF service response message to DCCF. If the NF service response message indicates that the access token verification is successful, DCCF can also send the data to the new NFc; if the NF service response message indicates that the access token verification fails, DCCF rejects the NF service request of the new NFc.

[0189] It should be noted that the above-provided process of obtaining tokens and requesting services is only an example description, and the present application is not limited thereto. Other methods that can achieve obtaining tokens and requesting services fall within the scope of protection of the present application.

[0190] Based on this implementation, NFc can receive data from NFp through DCCF. Since NF services may have authorized service scopes, if the NFc is hacked, the NF service may have unauthorized access across service areas, that is, NFc can obtain data across domains without authorization, which may lead to network security issues.

[0191] Figure 3 3 is a flow chart of a model sharing method 300 provided in an embodiment of the present application, that is, NFc requests the data analysis and storage function network element ADRF to obtain the model trained by NFp. Figure 3 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.

[0192] S301, NF service producer NFp (eg, NWDAF MTLE) registers using an interoperation ID.

[0193] S302, NF service consumer NFc (eg, NWDAF AnLF) registers using the vendor ID.

[0194] It should be understood that the interoperability ID is a list of vendor IDs that each analytical ID is allowed to access the ML model.

[0195] Exemplarily, in step S301, the NWDAF including the MTLE registers its NFp profile Profile in the NRF, which is supported by the NWDAF including the MTLE and its interoperability ID; similarly, in step S302, the NWDAF including the AnLF registers its NFc profile Profile in the NRF, which is supported by the NWDAF including the AnLF and its vendor ID.

[0196] S303, optionally, the NFp performs an operation specific to the interoperability ID.

[0197] Exemplarily, NFp performs operations such as encryption and integrity protection for the security of the ML model, and the encryption method of the ML model is not within the scope of 3GPP.

[0198] S304, NFp triggers storage of the ML model.

[0199] Exemplarily, NFp sends a request message to ADRF to request storage of the ML model. The request message includes the storage address of the ML model in NFp, such as URL1. The request message also includes a model association identifier (e.g., modelcorrection ID). Correspondingly, ADRF obtains the protected ML model according to the address URL1 of the ML model in NFp, and stores the ML model.

[0200] S305, ADRF sends the storage location of the ML model to NFp.

[0201] Exemplarily, the storage location of the ML model in ADRF is URL2, which is used for NFp to subsequently update or access the ML model.

[0202] S306, the NFc and the NRF perform a MTLF discovery process.

[0203] Based on the above steps, NRF records the ML model trained by NFp, such as the analytical ID of each ML model. Since NFc uses the vendor ID to register with NRF, NRF can notify NFc of the association between the ML model, analytical ID and NFc, vendor ID, so that NFc can request ML models from ADRF in a targeted manner.

[0204] S307, NFc sends an access token request message to NRF;

[0205] Correspondingly, NRF receives the access token request message from NFc.

[0206] The access token request message includes the analysis ID.

[0207] Exemplarily, the access token request message may be a Nnrf_AccessToken_Get Request message.

[0208] S308, NRF sends an access token response message to NFc;

[0209] Correspondingly, NFc receives the access token response message from NRF.

[0210] The access token response message includes a token, and the token includes a specified supplier ID.

[0211] Exemplarily, the access token response message may be a Nnrf_AccessToken_Get Response message.

[0212] Specifically, the specific implementation of the above steps S307 and S308 can refer to steps S201 to S203 of method 200, including the implementation of NRF authorizing NFc, which will not be described in detail here for the sake of brevity.

[0213] S309, NFc sends a model request message to NFp;

[0214] Correspondingly, NFp receives the model request message from NFc.

[0215] The model request message includes an analysis ID and a token, and the token carries a specified supplier ID.

[0216] S310, NFp verifies the token and performs authorization.

[0217] Exemplarily, NFp needs to verify whether the vendor ID specified in the token corresponds to the analysis ID carried in the model request message. It should be understood that NFp can use the vendor ID specified in the token to perform further authorization if the token is verified to be valid. If the ML model requested by NFc is stored in ADRF, continue to execute steps S311 to S313.

[0218] S311, NFp sends a message requesting a URL to ADRF;

[0219] Correspondingly, ADRF receives the message of the request URL from NFp.

[0220] The message requesting the URL includes a model association identifier (eg, model correction ID) or URL2.

[0221] Exemplarily, after receiving the URL request from NFp, ADRF checks whether the owner of the ML model stored in step S304 is NFp. If the check is successful, ADRF provides a new storage address for the stored ML model, such as URL3, and continues to execute step S312. Wherein, URL3 can be a URL used only once.

[0222] S312, ADRF sends URL3 to NFp;

[0223] Correspondingly, NFp receives URL3 from ADRF.

[0224] S313, NFp sends URL3 to NFc;

[0225] Correspondingly, NFc receives URL3 from NFp.

[0226] It should be understood that the premise of executing the above steps S311 to S313 is that the ML model requested by NFc is stored in ADRF. Optionally, if the ML model requested by NFc is stored in NFp, after step 310, NFp provides a new storage address for the stored ML model, such as URL4, and returns the URL4 to NFc, that is, there is no need to execute steps S311 to S313. Among them, URL4 can be a URL that is used only once. Therefore, NFc can obtain the protected ML model from NFp or ADRF according to URL4 or URL3.

[0227] S314, optionally, the NFc performs an operation specific to the operational ID.

[0228] Exemplarily, NFc may perform operations such as decryption and integrity checking taking into account the interoperability ID on the protected ML model.

[0229] Based on this implementation, the ML model has service area restrictions. Since the access token does not contain service domain information, NFp does not know the service area of ​​NFc and may authorize ML models that exceed the service scope of NFc to NFc, which will cause model leakage and fail to ensure network security.

[0230] Figure 4 4 is a flow chart of another model sharing method 400 provided in an embodiment of the present application. Figure 4 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.

[0231] S401, optionally, the NF service producer NFp (eg, NWDAF MTLE) registers using an analysis ID and an interoperation ID.

[0232] S402, optionally, the NF service consumer NFc (eg, NWDAF AnLF) registers using the analysis ID and the vendor ID.

[0233] Exemplarily, in step S401, the NWDAF including MTLE registers its NFp profile in NRF, which is supported by the NWDAF including MTLE and its analysis ID and interoperation ID; similarly, in step S402, the NWDAF including AnLF registers its NFc profile Profile in NRF, which is supported by the NWDAF including AnLF and its analysis ID and vendor ID.

[0234] S403, NFp encrypts the ML model not specified by 3GPP.

[0235] The embodiments of the present application do not limit the specific encryption method.

[0236] S404, NFp triggers storage of the ML model.

[0237] S405, ADRF sends the storage location of the ML model to NFp.

[0238] S406, optionally, ADRF registers using the analysis ID, interoperation ID, and MTLF ID.

[0239] Exemplarily, ADRF registers its NF profile in NRF, where the profile includes analysis ID, interoperation ID, and MTLF ID.

[0240] S407, optionally, the NFc and the NRF perform a MTLF discovery process.

[0241] Exemplarily, the NFc (eg, NWDAF including AnLF) performs an Nnrf_NF discovery request operation using the requested analysis ID to select a suitable NFp (eg, NWDAF including MTLF).

[0242] The specific implementation of the above steps S403 to S407 can refer to the relevant description of steps S303 to S306 of the above method 300. For the sake of brevity, no further details will be given here.

[0243] S408, NFc sends access token request message #1 to NRF;

[0244] Correspondingly, NRF receives access token request message #1 from NFc.

[0245] The access token request message #1 is used to request an access token to retrieve the ML model. The access token request message #1 includes the target NF (e.g., NFp (NWDAF containing MTLF)), the NF type and / or NFc ID of the NFc (e.g., NWDAF containing AnLF), the analysis ID and vendor ID of the NFc.

[0246] Exemplarily, the access token request message #1 may be a Nnrf_AccessToken_Get Request message.

[0247] S409, NRF sends access token response message #1 to NFc;

[0248] Correspondingly, NFc receives the access token response message #1 from NRF.

[0249] The access token response message #1 includes token #1.

[0250] Exemplarily, the access token response message #1 may be a Nnrf_AccessToken_Get Response message.

[0251] The specific implementation of the above steps S408 and S409 can refer to steps S307 and S308 of the above method 300. For example, before executing step S409, the NRF needs to check whether the NWDAF containing AnLF is authorized to access the services provided by the NWDAF containing MTLF, and verify whether the NWDAF containing the AnLF vendor ID is included in the NWDAF of the analysis ID and interoperability ID of MTLF. Only when the verification is passed, the NRF generates token#1 based on the MTLF NF information contained in the NWADF, and then executes step S409. For the sake of brevity, no further details are given here.

[0252] S410, NFc sends ML model request message #1 to NFp;

[0253] Correspondingly, NFp receives the ML model request message #1 from NFc.

[0254] The ML model request message #1 is used to retrieve the ML model associated with the analysis ID, and the ML model request message #1 includes token #1, the analysis ID, and the supplier ID.

[0255] Exemplarily, the ML model request message #1 may be a Nnwdaf_ML modelProvision_Subscribe message.

[0256] S411, NFp sends ML model notification message #1 to NFc;

[0257] Correspondingly, NFc receives the ML model notification message #1 from NFp.

[0258] The ML model notification message #1 includes URL2, which is the storage address of the ML model in ADRF.

[0259] Exemplarily, the ML model notification message #1 may be a Nnwdaf_ML modelProvision_Notify message.

[0260] It should be noted that before executing step S411, NFp needs to verify token#1 and determine the ML model corresponding to the analysis ID. The specific method of verifying token#1 can refer to the above related description. For the sake of brevity, no further details are given here. Furthermore, if the ML model determined by NFp is stored in ADRF, the above step S411 is executed, that is, the storage address of the ML model requested by NFc is indicated to be URL2 in ADRF.

[0261] S412, NFc sends access token request message #2 to NRF;

[0262] Correspondingly, NRF receives access token request message #2 from NFc.

[0263] Among them, the access token request message #2 is used to request to obtain an authorization token for retrieving the ML model stored in ADRF, and the access token request message #2 includes the target NF (e.g., ADRF), the NF type and / or NFc ID of NFc (e.g., NWDAF containing AnLF), the vendor ID, analysis ID, and NFp (e.g., NWDAF containing MTLF) ID of NFc.

[0264] Exemplarily, the access token request message #2 may be a Nnrf_AccessToken_Get Request message.

[0265] S413, NRF sends access token response message #2 to NFc;

[0266] Correspondingly, NFc receives the access token response message #2 from NRF.

[0267] The access token response message #2 includes token #2.

[0268] Exemplarily, the access token response message #2 may be a Nnrf_AccessToken_Get Response message.

[0269] The specific implementation of the above steps S412 and S413 can refer to the above steps S408 and S409. For example, before executing step S413, NRF needs to verify whether the NWDAF containing the AnLF vendor ID is included in the analysis ID and interoperability ID of the model producer NF, that is, the NWDAF containing MTLF in the NF Profile of ADRF. Only when the verification is successful, NRF generates token#2 according to the information provided in the NF Profile of ADRF, and then executes step S413. For the sake of brevity, no further details will be given here.

[0270] S414, optionally, NFc retrieves the ML model from the storage address URL2 in ADRF based on token#2, and ADRF verifies token#2 and checks whether NFc is authorized to access the stored ML model. Only if the verification is passed, ADRF authorizes NFc to retrieve the ML model stored in ADRF.

[0271] S415, NFc decrypts the ML model not specified by 3GPP.

[0272] Exemplarily, the NFc may perform operations such as decryption and integrity checking taking into account the vendor ID associated with the protected ML model.

[0273] Based on this implementation, the access token obtained by NFc does not contain its own service domain information, so NFc can access all ML models associated with the analysis ID of NFp, and the scope of use of ML models may exceed the service area of ​​NFc, which will cause model leakage and fail to ensure network security.

[0274] In summary, the current OAuth authentication mechanism does not include verification of service area information, and cannot meet finer-grained service requirements, such as service area restrictions. If a NF service has regional restrictions, but the access token obtained by NFc does not contain service domain information, the service provided by NFp when the verification token passes is likely to have unauthorized access to the service, and network security cannot be guaranteed.

[0275] In view of this, the present application provides a communication method and device, which can solve the problem of NFc's cross-domain unauthorized access to services by adding service domain information to the access token and providing a more fine-grained authentication mechanism, thereby ensuring network communication security and improving user experience.

[0276] In order to facilitate understanding of the embodiments of the present application, the following points are explained:

[0277] First, in this application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0278] Second, in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the text description of this application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c. Where a, b and c can be single or multiple, respectively.

[0279] Third, in the present application, "first", "second" and various numerical numbers (e.g., #1, #2, etc.) indicate distinctions made for ease of description and are not used to limit the scope of the embodiments of the present application. For example, to distinguish between different messages, etc., rather than to describe a specific order or sequence. It should be understood that the objects described in this way can be interchanged where appropriate so as to be able to describe solutions other than the embodiments of the present application.

[0280] It should be noted that, in the following text, information #1, resource indication information #1, and resource request information #1 have different meanings. It should be understood that the names of the various information are only examples, and this application does not limit them, and should not constitute any limitation on the technical solution of this application;

[0281] Fourth, in this application, descriptions such as "when...", "in the case of..." and "if" all mean that the device will make corresponding processing under certain objective circumstances, but do not limit the time, nor do they require the device to have a judgment action when implementing it, nor do they mean the existence of other limitations.

[0282] Fifth, in this application, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0283] Sixth, in this application, "used for indication" may include being used for direct indication and being used for indirect indication. When describing that a certain indication information is used for indicating A, it may include that the indication information directly indicates A or indirectly indicates A, but it does not mean that the indication information must carry A.

[0284] The indication method involved in the embodiments of the present application should be understood to include various methods that can enable the party to be indicated to know the information to be indicated. The information to be indicated can be sent as a whole or divided into multiple sub-information and sent separately, and the sending period and / or sending time of these sub-information can be the same or different. The present application does not limit the specific sending method.

[0285] The "indication information" in the embodiments of the present application may be an explicit indication, i.e., directly indicated by signaling, or obtained by combining other rules or other parameters or by deduction according to the parameters indicated by the signaling. It may also be an implicit indication, i.e., obtained by combining other rules or other parameters or by deduction according to a rule or relationship. The present application does not make any specific limitation on this.

[0286] Seventh, in this application, "protocol" may refer to a standard protocol in the field of communications, for example, it may include 5G protocol, NR protocol and related protocols used in future communication systems, and this application does not limit this. "Predefined" may include pre-definition. For example, protocol definition. "Preconfiguration" can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in the device, and this application does not limit its specific implementation method.

[0287] Eighth, in this application, "storage" may refer to storage in one or more memories. The one or more memories may be separately set or integrated in an encoder or decoder, a processor, or a communication device. The one or more memories may also be partially separately set and partially integrated in a decoder, a processor, or a communication device. The type of memory may be any form of storage medium, which is not limited in this application.

[0288] Ninth, in this application, "communication" can also be described as "data transmission", "information transmission", "data processing", etc. "Transmission" includes "sending" and "receiving".

[0289] The communication method provided in the embodiment of the present application will be described in detail below with reference to the accompanying drawings, which can be applied to the above Figure 1 In the communication system shown.

[0290] Figure 5 is a flow chart of a communication method 500 provided in an embodiment of the present application. The method 500 can be applied to Figure 1 The network architecture given by Figure 5 As shown, the method includes the following steps.

[0291] S510: A first network function network element obtains a first token.

[0292] The first token includes first service domain information, and the first service domain information indicates a service area range in which the first network function network element can obtain services from the second network function network element.

[0293] Exemplarily, the first network function network element may be a NFc network element, and the second network function network element may be a NFp network element. That is, the second network function network element may be a service providing network element, and the first network function network element may be a service requesting network element. Among them, the first network function network element may request one or more services, and the second network function network element may provide one or more services, which is not limited in this application. Optionally, the identifier of the network function network element provided above may be an NF ID (identity or identifier) ​​or an instance ID of an NF.

[0294] Optionally, the service may be a data collection service, a model acquisition service, or other services, such as a registration service, an SM policy control service, etc. For example, if the NF service consumption network element is an NWDAF network element, and the NF service provision network element is a DCCF network element, the NWDAF network element requests the DCCF network element to obtain the data collection service; for another example, if the NF service consumption network element is an NWDAF network element, and the NF service provision network element is an ADRF network element, the NWDAF network element requests the ARDF network element to obtain the model acquisition service; for another example, if the NF service consumption network element is an SMF network element, and the NF service provision network element is a PCF network element, the SMF network element requests the PCF network element to obtain the SM policy control service.

[0295] Among them, the service area scope of obtaining the service can be understood as the area scope of the resource corresponding to the service of the service. In the service of obtaining resources, the service area scope of the service can be understood as the area scope of the resource corresponding to the service of the service. For example, when the resource is data, model, protocol data unit, etc., the corresponding area scope of the data, the area scope of the model, the area scope of the protocol data unit, etc. In other words, the first network function network element can obtain the data or model within the service area scope, or the first network function network element has the authority to request the second network function network element to provide the data or model within the service area scope.

[0296] It should be understood that the first service domain information indicates the service area range allowed by the capability of the first network function network element to obtain services; or the first service domain information indicates the service area range authorized by the authorization function network element to obtain services for the first network function network element. For example, if the service area range allowed by the capability of the first network function network element to obtain data is area 1, 2, and 3, then the service area range indicated by the first service domain information may be one or more of areas 1, 2, and 3.

[0297] That is, the first service domain information can be used to limit the service area range that the first network function network element can request services. In the embodiment of the present application, the service domain information is mainly for services within the authorized service area (such as data collection services or model acquisition services). For example, NWDAF has the authority to request services (data or models) of service domain #1 from NFp, but does not have the authority to request services (data or models) of other service domains #2 other than service domain #1 from NFp.

[0298] In an embodiment of the present application, the first service domain information can be divided into multiple dimensions according to different standards. For example, it can be divided according to the geographical location, or the location of the network logical area, or it can be divided by combining the geographical location and the network logical area. Optionally, the name of the first service domain information can be Serving Area, Area of ​​interest, Service Area, servingScope, tracking area identity (TAI), NF domain name, or fully qualified domain name (FQDN) type, etc. It should be understood that the above names are only examples given to facilitate understanding of the solution, and the first service domain information can also be other names, which are not specifically limited in this application.

[0299] Exemplarily, from the perspective of geographical location division, it can be understood as: specifying a location area in the 3GPP system. The area of ​​interest is represented by a tracking area list, a cell list, or a RAN node identifier list. In the case of LADN, the event user (such as SMF) provides the LADN DNN to refer to the LADN service area as the area of ​​interest. In the case of PRA, the event user (such as SMF or PCF) can provide an identifier of the area of ​​interest to refer to the predefined area as the area of ​​interest. The servingScope can indicate a geographic area, for example, it can be used to discover and select NFs in a centralized data center that are expected to provide services to users located in a specific area; or it can also be used to reduce the configuration of TAI in NF instances. From the perspective of logical location division, it can be understood as: TAIs (can also be servingScope, i.e., the service area of ​​NFc instance), domain name or FQDN type of NF, analysis IDs supported by NWDAF, NWDAF service area information (i.e., the TAI list of trained ML models and / or data that NWDAF can provide), analysis latency supported by each analysis ID, NF type of NF data source, NF set ID of NF data source, analysis aggregation function, analysis metadata provisioning function, S-NSSAI and service area of ​​trained ML models for each analysis ID of ML model, etc.

[0300] Exemplarily, for data collection services, the first service domain information indicates that the first network function network element can request the second network function network element to provide data within the authorized service area. For model acquisition services, the first service domain information indicates that the first network function network element can request the second network function network element to provide a model within the authorized service area.

[0301] In one example, the first network function network element's own capabilities can support the collection of data for service areas 1, 2, and 3. If the token request message sent in step S511 does not carry the second service domain information, the authorization function network element determines that the first network function network element is capable of collecting data for service areas 1, 2, and 3 based on the NF Profile of the first network function network element stored locally, and then generates the first service domain information carried in the first token to authorize service areas 1, 2, and 3.

[0302] In another example, the first network function network element's own capabilities can support the collection of data of service areas 1, 2, and 3. If the token request message sent in step S511 carries the second service domain information, and the second service domain information indicates service areas 1 and 2, the authorization function network element verifies the identity of the first network function network element, and according to the NF Profile of the first network function network element stored locally, determines that the first service domain information carried in the generated first token can authorize service areas 1 and 2. Optionally, the first service domain information here can also authorize service areas 1, 2, and 3, which is not limited in this application.

[0303] Optionally, the implementation method of the first network function network element acquiring the first token includes the following steps S511-S513.

[0304] S511, the first network function network element sends a token request message to the authorization function network element.

[0305] Correspondingly, the authorization function network element receives the token request message from the first network function network element.

[0306] The token request message includes the name or identifier of the service expected by the first network function element (e.g., Expected NF service name(s)), the identifier of the first network function element, the identifier of the second network function element, or the type of the second network function element. The service expected by the first network function element may be a data collection service or a model acquisition service.

[0307] Exemplarily, the token request message may be a Nnrf_AccessToken_GetRequest message.

[0308] Optionally, the token request message also includes fourth service domain information, and the fourth service domain information indicates a service area of ​​the service requested by the first network function network element.

[0309] Exemplarily, the fourth service domain information may be the area range of the resources corresponding to the data requested by the first network function network element. For example, if the service area range allowed by the capability of the first network function network element to obtain data is area 1, 2, and 3, then the service area range indicated by the fourth service domain information may be one or more of areas 1, 2, and 3. Optionally, the service area range indicated by the fourth service domain information may also include area 4, that is, requesting data from an area outside its own capability range. In this implementation, the authorization function network element may refuse to generate the first token.

[0310] In the technical solution of the present application, the area scope of the resources corresponding to the data acquired by the first network function network element is ultimately based on the service area scope indicated by the first service domain information in the token generated by the authorization function network element.

[0311] Optionally, the token request message also includes CCA, CCA includes the identifier of the third network function network element (for example, NWDAF) and the third service domain information, and the third service domain information indicates the service area of ​​the service requested by the third network function network element. It should be understood that this implementation method is mainly applicable to the scenario where the first network function network element, as a third-party entity, requests the second network function network element to provide the above-mentioned service to the third network function network element. Among them, CCA is used for the subsequent second network function network element to authenticate the third network function network element, and for the second network function network element to verify whether the service area indicated by the second service domain information requested by the first network function network element is included in the service area range indicated by the third service domain information carried in the CCA, so as to avoid the first function network element maliciously tampering with the service area range requested by the third network function network element, and improve the security of network communication. For example, the first network function network element is DCCF, the third network function network element is NWDAF, and the second network function network element is a data production network element, which is used to request data collection services.

[0312] Optionally, when the first network function network element is NFc (e.g., DCCF) and the second network function network element is NFp (e.g., data producer), the service area indicated by the fourth service domain information carried in the token request message sent by DCCF to NRF is included in the service area indicated by the third service domain information. It should be understood that in this implementation, the NFp selected by DCCF may be one or more, and this application does not limit this. For example, the fourth service domain information indicates areas 1 and 2. If the NFp1 selected by DCCF is one, DCCF sends a token request message #1 to NRF. After NRF verifies that DCCF and NWDAF are authorized, it provides token #A to DCCF. Subsequently, DCCF can request NFp1 to obtain data of areas 1 and 2 through token #A; or, if DCCF selects two or more NFp (for example, NFp2 and NFp3), DCCF sends a token request message #2 to NRF. After NRF verifies that DCCF and NWDAF are authorized, it provides token #B to DCCF. Subsequently, DCCF can request NFp2 to obtain data of area 1 through token #B. At the same time, DCCF sends a token request message #3 to NRF again. After NRF verifies that DCCF and NWDAF are authorized, it provides token #C to DCCF. Subsequently, DCCF can request NFp3 to obtain data of area 2 through token #C.

[0313] In the embodiment of the present application, the service area indicated by the third service domain information should be included in the service area range indicated by the first service domain information. For example, if the service area range allowed by the first network function network element's ability to obtain data is area 1, 2, and 3, then the service area range indicated by the third service domain information may be one or more of area 1, 2, and 3.

[0314] In an embodiment of the present application, for other services requested by the NF service consumer, when an access token carrying the first service domain information is obtained from the authorized function network element, the NF service producer can be requested for services within the authorized service area, that is, the NF service consumer and the NF service consumer communicate directly with each other; or, the NF service consumer can also request the NF service producer to obtain services within the authorized service area through a third-party entity. Among them, when sending a service request to the NF service producer, the third-party entity can carry the CCA of the NF service consumer (including the identifier of the NF service consumer and the service area information requested by the NF service consumer) to realize the identity authentication of the NF service consumer by the NF service producer, and verify whether the service domain information carried in the CCA contains the service domain information sent by the third-party entity, so as to prevent the third-party entity from maliciously tampering with the service area scope of the service requested by the NF service consumer (such as data or model), avoid unauthorized access, and ensure network communication security.

[0315] S512, the authorization function network element generates a first token.

[0316] In one implementation, when it is determined that the first network function network element is authorized to obtain the service, the authorization function network element generates a first token.

[0317] Among them, the specific implementation method of generating the first token can refer to the relevant description of step S202 of the above method 200. For the sake of brevity, it will not be repeated here. The difference is that the first token generated by the authorization function network element in step S512 carries the first service domain information.

[0318] In another implementation, the token request message also includes CCA, CCA includes the identifier of the third network function network element (such as NWDAF) and the third service domain information. At this time, the authorization function network element verifies the identities of the first network function network element and the third network function network element, and at the same time determines whether the service area indicated by the fourth service domain information carried in the token request message is included in the service area range indicated by the third service domain information carried in the CCA; when it is determined that the service area indicated by the fourth service domain information belongs to the service area range indicated by the third service domain information carried in the CCA, the authorization function network element generates a first token to ensure that the service area range of the service requested by the third network function network element has not been maliciously tampered with or expanded by the first network function network element, thereby ensuring network security.

[0319] S513: The authorization function network element sends a first token to the first network function network element.

[0320] Correspondingly, the first network function network element receives the first token from the authorization function network element.

[0321] Exemplarily, the authorization function network element sends a token response message to the first network function network element. The token response message may be an Nnrf_AccessToken_GetResponse message. The token response message includes the first token.

[0322] Based on the above implementation steps, the first network function network element can obtain the first token, and when determining that the service provided by the second network function network element is needed, generate a service request message and execute the following step S520.

[0323] S520. The first network function network element sends a service request message to the second network function network element.

[0324] Correspondingly, the second network function network element receives the service request message from the first network function network element.

[0325] The service request message is used to request the second network function network element to provide service to the first network function network element. The service request message includes a first token and second service domain information. The second service domain information indicates the service area of ​​the service requested by the first network function network element.

[0326] Exemplarily, the service request message may be an NF Service request message.

[0327] In one example, the service request message also includes a CCA, and the CCA includes an identifier of the third network function network element and third service domain information. For example, when the first network function network element is a data collection coordination function network element, the service request message is used by the data collection coordination function network element to request a data collection service from the second network function network element.

[0328] Optionally, before the first network function network element (e.g., DCCF) sends a service request message to the second network function network element (e.g., NFp), the first network function network element receives a service request message from a third network function network element (e.g., NWDAF), and the service request message carries CCA and second service domain information.

[0329] Exemplarily, the service area range indicated by the first service domain information is areas 1, 2, and 3, then the second service domain information indicates that the service area of ​​the service requested by the first network function network element can be one or more of areas 1, 2, and 3, then the third service domain information indicates that the service area of ​​the service requested by the first network function network element can be one or more of areas 1, 2, and 3.

[0330] That is to say, in the application embodiment, when the first network function network element is NFc (e.g., NWDAF) and the second network function network element is NFp (e.g., DCCF), the service area indicated by the second service domain information is the same as the service area indicated by the third service domain information. Alternatively, when the first network function network element is NFc (e.g., DCCF) and the second network function network element is NFp (e.g., data producer), the service area indicated by the second service domain information is included in the service area indicated by the third service domain information. In this implementation, the NFp selected by DCCF can be one or more, and this application does not limit this. For example, the second service domain information indicates areas 1 and 2. If the NFp selected by DCCF is one, after DCCF sends a service request message to the NFp, after NFp verifies the first token, it provides the data of areas 1 and 2 to DCCF; or, if DCCF selects two or more NFp (for example, NFp1 and NFp2), DCCF sends a service request message #1 to NFp1, carrying CCA and information of area 1, and after NFp1 verifies the first token, it provides the data of area 1 to DCCF; similarly, DCCF sends a service request message #2 to NFp2, carrying CCA and information of area 2, and after NFp2 verifies the first token, it provides the data of area 2 to DCCF.

[0331] S530: The second network function network element determines whether to provide a service to the first network function network element according to the first token.

[0332] Among them, the second network function network element determines whether to provide service to the first network function network element based on the first token, which can be understood as the second network function network element determining whether the first network function network element is authorized to use the service based on the first service domain information in the first token; or it can also be understood that the second network function network element determines to provide service to the first network function network element or refuse to provide service to the first network function network element based on the first service domain information in the first token; or it can also be understood that the second network function network element provides the requested service (or executes the service) and sends a response message, or sends a response message indicating that the service request failed, based on the first service domain information in the first token; or it can also be understood that the second network function network element provides the requested service (or executes the service) and sends a response message, or sends a response message indicating that the service request failed, based on the first service domain information in the first token.

[0333] In other words, the specific form in which the second network function network element determines whether the first network function network element is authorized to use the service may be: when it is determined that the first network function network element is authorized to use the service, the second network function network element provides the service to the first network function network element; or, when it is determined that the first network function network element is not authorized to use the service, the second network function network element rejects the service request message to reject the first network function network element's request for the service.

[0334] Specifically, the second network function network element verifies the first token; if the first token verification passes, the second network function network element determines to provide services to the first network function network element.

[0335] In one implementation, the second network function network element verifies the first token, including: the second network function network element verifies the integrity protection of the first token; if the integrity protection verification of the first token passes, the second network function network element determines whether the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information; if the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information, the second network function network element determines that the verification of the first token passes.

[0336] Among them, the second network function network element verifies the integrity protection of the first token, and the second network function network element can use the shared key to verify the MAC of the first token to determine whether the information in the first token has been tampered with; or, the second network function network element can use the private key of the authorization function network element to verify the signature of the claims of the first token to determine whether the claims have been tampered with, etc. The specific implementation method can refer to the existing technology and will not be repeated here for the sake of brevity.

[0337] Further, when the integrity protection verification of the first token passes, if the second service domain information indicates service areas 1 and 2, and the service area range authorized by the first service domain information in the first token includes service areas 1, 2 and 3, then it means that the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information. At this time, the second network function network element determines that the first token verification passes.

[0338] Optionally, when the service request message also includes a CCA, and the CCA includes an identifier of a third network function network element and third service domain information, the method further includes: the second network function network element determines whether to provide service to the first network function network element based on the CCA.

[0339] Specifically, the second network function network element determines whether the service area indicated by the second service domain information is included in the service area range indicated by the third service domain information carried in the CCA; when the service area indicated by the second service domain information belongs to the service area range indicated by the third service domain information carried in the CCA, the second network function network element determines to provide the first network function network element with the data or model within the area indicated by the second service domain information.

[0340] Optionally, the service area indicated by the second service domain information is the same as the service area indicated by the third service domain information.

[0341] Optionally, the service area indicated by the second service domain information is included in the service area indicated by the third service domain information.

[0342] Exemplarily, when the first network function network element is NFc (for example, NWDAF) and the second network function network element is NFp (for example, DCCF), if the second service domain information indicates service areas 1 and 2, the third service domain information carried in the CCA indicates service areas 1 and 2, and the first service domain information indicates service areas 1, 2, and 3, it means that the service area indicated by the second service domain information is the same as the service area indicated by the third service domain information, and is included in the service area range indicated by the first service domain information. Then, DCCF determines that the first token verification is successful and provides data of service areas 1 and 2 to NWDAF.

[0343] Exemplarily, when the first network function network element is NFc (for example, DCCF) and the second network function network element is NFp (for example, data producer), if the second service domain information indicates service areas 1 and 2, the third service domain information carried in the CCA indicates service areas 1 and 2, and the first service domain information indicates service areas 1, 2, and 3, it means that DCCF has not tampered with the service area information of the service requested by the third network function network element. At this time, NFp determines that the first token verification has passed, and provides the data of service areas 1 and 2 to DCCF. Further, DCCF provides the data of service areas 1 and 2 to NWDAF.

[0344] Exemplarily, when the first network function network element is NFc (e.g., DCCF) and the second network function network element is NFp (e.g., data producer), if the second service domain information sent by DCCF indicates service area 1, the third service domain information carried in CCA indicates service areas 1 and 2, and the first service domain information indicates service areas 1, 2, and 3, NFp1 determines that the first token verification is successful and provides the data of service area 1 to DCCF. If the second service domain information sent by DCCF indicates service area 2, the third service domain information carried in CCA indicates service areas 1 and 2, and the first service domain information indicates service areas 1, 2, and 3, NFp2 determines that the first token verification is successful and provides the data of service area 2 to DCCF. Further, DCCF provides the data of service areas 1 and 2 to NWDAF.

[0345] In one implementation, the service request message may further include an identifier of the first network function network element, and the first token may further include an identifier of the first network function network element and an identifier of a third network function network element.

[0346] Specifically, the second network function network element verifies the first token, and also includes: the second network function network element determines whether the identifier of the third network function network element carried in the first token is the same as the identifier of the third network function network element carried in the CCA, and whether the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message; when the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the CCA, and the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message, the second network function network element determines that the first token verification is successful.

[0347] Exemplarily, if the identifier of the third network function network element carried in the first token is NWDAF_ID, the identifier of the third network function network element carried in the CCA is also NWDAF_ID; and, the identifier of the first network function network element carried in the first token is DCCF_ID, and the identifier of the first network function network element carried in the service request message is also DCCF_ID, then it means that the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in CCA, and the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message, at this time, the second network function network element determines that the first token verification is successful.

[0348] In one implementation, the first token also includes other verification conditions, and the second network function network element determines whether to provide services to the first network function network element according to the other verification conditions. The other verification conditions include one or more of the following: NF instance identifier of the service provider, NF type of the service provider, single network slice selection auxiliary information of the service provider, network slice instance identifier of the service provider, identifier of the NF set to which the expected service provider belongs, expected service name, and validity period of the first token.

[0349] Specifically, the second network function network element verifies the first token, and also includes: the second network function network element verifies other verification conditions; when the other verification conditions are verified successfully, the second network function network element determines that the first token verification is successful.

[0350] Exemplarily, other verification conditions of the first token also include: the expected service name is data collection service, the validity period of the first token is 24 hours, and the generation timestamp of the first token is 10:30, the expected NFp type is data producer function network element Data producer NF, if the second network function network element is a data producer function network element, the service request message received by the second network function network element is used to request data collection, and the current timestamp is 23:30, indicating that the first token is still within the validity period, then the other verification conditions are verified successfully, and at this time the second network function network element determines that the first token is verified successfully.

[0351] In one implementation, when any one of the following conditions is met, the second network function network element determines that the first token verification fails; the second network function network element refuses to provide services to the first network function network element.

[0352] Among them, the conditions include one or more of the following: the service area indicated by the second service domain information does not belong to the service area range indicated by the first service domain information; the service area indicated by the second service domain information does not belong to the service area range indicated by the third service domain information carried in the CCA; the identifier of the third network function network element carried in the first token is different from the identifier of the third network function network element carried in the CCA; the identifier of the first network function network element carried in the first token is different from the identifier of the first network function network element carried in the service request message; or other verification conditions fail to pass.

[0353] That is to say, when the second network function network element verifies the parameters carried in the first token, if any one of the conditions fails to be verified, it will refuse to provide services to the first network function network element. For example, the second service domain information carried in the service request message indicates service area 1, but the first service domain information carried in the first token indicates service area 2, then there is a situation where the first network function network element has unauthorized access to the service, so the second network function network element determines that the first token verification fails, and the second network function network element can refuse to provide services to the first network function network element. Optionally, the second network function network element sends a response message to the first network function network element indicating that the service request failed, and optionally carries the reason for the rejection, that is, the area where the first network function network element requested service does not fall within the authorized service area.

[0354] S540, the second network function network element provides service to the first network function network element;

[0355] Correspondingly, the first network function network element receives services from the second network function network element.

[0356] Based on the above step S530, only when the first token verification is successful, the second network function network element provides services to the first network function network element, such as data collection service, model acquisition service, etc. Exemplarily, the second network function network element provides a service response message to the first network function network element, and the service response message may be a NF Service response message, for example, the service response message includes data or a model.

[0357] Exemplarily, for data collection services, a data collection coordination function network element (e.g., DCCF) may receive data from a second network function network element (e.g., a data producer function network element), and then forward the data to a third network function network element (e.g., NWDAF). For model acquisition services, the second network function network element (e.g., NWDAF MTLE) may acquire a model from a data analysis storage function network element if the first token is verified, and then forward the model to the first network function network element (e.g., NWDAF AnLF).

[0358] In the solution provided by the present application, during the process in which a first network function network element requests a service from a second network function network element, the second network function network element determines whether the first network function network element is authorized to use the service based on the first token carried in the service request message, such as comparing the first service domain information, network element identifier, or other verification conditions carried in the first token, and the service domain information, network element identifier, or other verification conditions carried in the service request message, thereby preventing malicious NF service consumers from unauthorizedly using the first token to obtain the service, thereby ensuring network security.

[0359] Next, take the NF service consumer as NFc, the NF service producer as NFp, the authorization function network element as the network storage function network element NRF, the data collection and coordination function network element as DCCF, and NFc requests NFp to obtain data through DCCF as an example. Figures 6 to 8 , respectively explain the schemes for enhancing the authorization granularity of access tokens.

[0360] Figure 6 6 is a flow chart of a communication method 600 provided in an embodiment of the present application. The method is to authorize NFc to receive data from NFp through DCCF, by adding service domain information in the authorization token, adding service domain information in the service request process, and providing data when the service domain information of NFc is verified, so as to solve the problem of NFc's cross-domain access unauthorized access and data leakage. Figure 6 As shown, the method includes the following steps.

[0361] S601, NFc (e.g., NWDAF) sends an access token request message #a to an authorization server (e.g., NRF);

[0362] Correspondingly, NRF receives the access token request message #a from NFc.

[0363] Among them, the access token request message #a includes the NF instance ID of NFc, service domain information #1 (i.e., the fourth service domain information), the expected NF service name (e.g., expected NF service name(s), such as collect data) and the expected NF type (e.g., data collection coordination function network element DCCF).

[0364] Optionally, the access token request message #a may also include but is not limited to: NF type of NFc, NSSAI list or NSI ID list of expected NFp, NF Set ID of expected NFp, S-NSSAI list of NFc, etc.

[0365] Exemplarily, the access token request message #a may be a Nnrf_AccessToken_GetRequest message.

[0366] Optionally, the service area information #a may be Serving Area, Area of ​​interest, Service Area, TAIs, etc. For specific interpretations, please refer to the relevant description of the above method 500. It should be understood that the above names are only examples given to facilitate understanding of the solution, and the service area information #a may also be other names, which are not specifically limited in this application.

[0367] S602, NRF authorizes NFc to generate token#a (ie, the first token).

[0368] Among them, token#a includes service domain information#2 (i.e., first service domain information). It should be understood that the scope of service domain information#2 may be the same as or different from that of service domain information#1, depending on the scope of the service requested by NFc (i.e., whether NFc is allowed to use the service within the service domain) and the scope of services that NFc can obtain stored by NRF.

[0369] Exemplarily, the service domain information #1 sent by NFc indicates that the service scope is area#1, and the NFcProfile stored in NRF indicates that the service areas that can be authorized for NFc are area#1 and area#2, then the service domain information #2 authorized by NRF can indicate the area#1, that is, NFc has the right to access the NF service of area#1; or, the service domain information #1 sent by NFc indicates that the service scope is area#1, and the NFc Profile stored in NRF indicates that the service areas that can be authorized for NFc are area#2 and area#3, then the service domain information #2 authorized by NRF does not include the area#1, that is, NFc has no right to access the NF service of area#1, and NRF can reject the token request; or, the service domain information #1 sent by NFc indicates that the service scope is area#1 and area#3, and the NFc Profile stored in NRF indicates that the service areas that can be authorized for NFc are area#2 and area#3. Profile indicates that the service areas that can be authorized for NFc are area#1 and area#2, then the service domain information #2 authorized by NRF can indicate area#1, that is, NFc has the right to access the NF service of area#1, or NRF can also reject the token request, which is not specifically limited in this application. It should be pointed out that the service area authorized by NF service is based on the service domain information #2 authorized in token#a.

[0370] It should be understood that service domain information #2 can indicate that the NFc is authorized to initiate services within the service area; or, the NFc is authorized to obtain data within the service area. Exemplarily, the service requested by the NFc is to collect data, and the data has objective regional content, such as which region the data comes from. The authorized access area of ​​the data, such as which region the NFc is allowed to collect data. Similarly, the service requested by the NFc is to obtain a model, and the authorized access area of ​​the model, such as which region the NFc is allowed to use the model. In particular, when the service is to collect data or obtain a model, the scope of the service requested by the NFc needs to be included in the access area authorized by the NRF to collect data or use the model.

[0371] In addition, the implementation method of the above-mentioned NRF authorizing NFc can refer to the relevant description of step S202 of the above-mentioned method 200, which will not be repeated here for the sake of brevity.

[0372] S603, NRF sends an access token response message #a to NFc;

[0373] Correspondingly, NFc receives the access token response message #a from NRF.

[0374] The access token response message #a is used to indicate the consent to authorize the NFc to access the DCCF, and the access token response message #a includes token#a.

[0375] Optionally, the access token response message #a may also include a validity period of token#a, and the token#a may generally be reused within the validity period.

[0376] Exemplarily, the access token response message #a may be a Nnrf_AccessToken_Get Response message.

[0377] S604, NFc sends NF service request message #a (i.e., service request message) to DCCF;

[0378] Correspondingly, DCCF receives NF service request message #a from NFc.

[0379] The NF service request message #a is used to request access to NFp to obtain data, and the NF service request message #a includes token #a, service domain information #3 (i.e., the second service domain information) and CCA (e.g., CCA_NWDAF), which is used by NRF or NFp to authenticate NFc. The CCA includes service domain information #4 (i.e., the third service domain information).

[0380] It should be noted that both service domain information #3 and service domain information #4 are subsets of service domain information #2 authorized in token #a. For example, if the service areas indicated by service domain information #2 are area #1 and area #2, then the service areas indicated by service domain information #1 and service domain information #3 can be area #1 and / or area #2, and cannot exceed the scope of the service area authorized by token #a to avoid NFc's unauthorized access to services. For example, the service areas indicated by service domain information #1 and service domain information #3 are the same, which can be area #1.

[0381] Exemplarily, the NF service request message #a may be a NF Service Request message, such as an Ndccf_DataManagement_Subscribe message.

[0382] S605, DCCF verifies token#a and executes the service after verification.

[0383] Among them, the specific verification method of token#a, as well as the specific meaning and information contained in token#a can refer to the relevant description of step S205 of the above method 200. For the sake of brevity, they will not be repeated here.

[0384] Exemplarily, DCCF compares the service area indicated by the service domain information #2 carried in token#a with the service area indicated by the service domain information #3 carried in the NF service request message #a, to ensure that the service area of ​​the service requested by NFc belongs to the service area authorized by NRF. Optionally, DCCF can also verify whether the service area indicated by the service domain information #4 carried in CCA belongs to the service area indicated by the service domain information #2 in the token#a authorized by NRF, and verify whether the service area range indicated by the service domain information #4 carried in CCA is equal to the service area indicated by the service domain information #3 carried in the NF service request message #a.

[0385] Therefore, based on the verification of the above step S205, when it is determined that token#a is issued by NRF and has not been maliciously tampered with, and the area indicated by service domain information #3 is included in the area indicated by service domain information #2, and further optionally, the area indicated by service domain information #3 is equal to the area indicated by service domain information #4, DCCF can determine that token#a has passed the verification and then execute subsequent services.

[0386] S606, DCCF determines NFp.

[0387] Specifically, the implementation method of DCCF determining NFp can refer to the relevant description of step S206 of the above method 200, which will not be repeated here for the sake of brevity. It should be pointed out that when DCCF selects NFp, it is necessary to additionally consider the service domain information of NFc carried by token#a, that is, it is necessary to select a service that can provide the corresponding service area for NFc. Exemplarily, the service area authorized by token#a is area#1, and the service area indicated by the service domain information #3 carried in the NF service request message #a is area#1, then the NFp selected by DCCF has the ability to provide data of area#1.

[0388] Optionally, the present application does not limit the number of NFp. For example, if the service area indicated by the service domain information #3 carried in the NF service request message #a is area#1 and area#2, the NFp selected by the DCCF can provide data of area#1 and area#2 at the same time; or, the NFp1 selected by the DCCF can provide data of area#1, and the NFp2 selected by the DCCF can provide data of area#2. The difference is that when the number of NFp is multiple, the following steps S607 to S612 are executed multiple times in sequence.

[0389] S607, DCCF sends an access token request message #b (i.e., a token request message) to NRF;

[0390] Correspondingly, NRF receives the access token request message #b from DCCF.

[0391] Among them, the access token request message #b includes the NF instance ID of NFc, the NF instance ID of DCCF, CCA (for example, carrying service domain information #4), service domain information #5 (i.e., the fourth service domain information), the expected NF service name (for example, collect data) and the expected NFp type (for example, data producer function network element Data producer NF).

[0392] Optionally, if there is one NFp, the service area indicated by service domain information #5 is the same as the service area indicated by service domain information #3; if there are multiple NFp, the service area indicated by service domain information #5 is included in the service area indicated by service domain information #3.

[0393] Optionally, the access token request message #b may also include, but is not limited to: NF type of NFc (e.g., NWDAF), NSSAI list or NSI ID list of expected NFp, NF Set ID of expected NFp, S-NSSAI list of NFc, etc.

[0394] Exemplarily, the access token request message #b may be a Nnrf_AccessToken_Get Request message.

[0395] S608, NRF verifies the identities of DCCF and NFc, and generates token#b (ie, the first token) after verification.

[0396] The first token includes service domain information #6 (ie, first service domain information).

[0397] Exemplarily, the service area indicated by the service domain information #6 is the same as the service area indicated by the service domain information #5.

[0398] Exemplarily, the NRF checks whether the DCCF and the NFc are allowed to access the services provided by the determined NFp. For example, the NRF authenticates the DCCF and the NFc according to one of the SBA methods.

[0399] Further, if NFp can provide data of all areas requested in NF service request message #b, then the NFp selected by DCCF can be one, and in this case, service domain information #5 can be the same as the service area indicated by service domain information #3. Further, NRF can also determine whether the service area indicated by service domain information #5 is equal to the service area range indicated by service domain information #4 carried in CCA, to ensure that DCCF or other network elements have not maliciously tampered with the service domain information requested by NFc, and to ensure network security communication. If the NFp selected by DCCF can be two, that is, NFp1 and NFp2 can respectively provide data of area#1 and area#2 requested in NF service request message #b, it means that the service area indicated by service domain information #5 is included in the service area indicated by service domain information #4. Further, NRF can also determine whether the service area indicated by service domain information #5 is included in the service area range indicated by service domain information #4, to ensure that DCCF or other network elements have not maliciously tampered with the service domain information requested by NFc, and to ensure network security communication. It should be understood that the NRF determines that the verification is successful and generates token#b only when it determines that the service area indicated by the service domain information #5 is included in the service area range indicated by the service domain information #4.

[0400] Specifically, the implementation of NRF verifying the identities of DCCF and NFc and generating token#b can refer to the relevant description of step S208 of the above method 200, which will not be repeated here for the sake of brevity.

[0401] Exemplarily, the token#b generated by NRF includes: NF instance ID of NFc, NF instance ID of DCCF and service domain information #2. That is, the authorized service area in token#b needs to consider both the service domain information #1 requested in step S607 and the service domain information #3 carried in CCA.

[0402] S609, NRF sends an access token response message #b to DCCF;

[0403] Correspondingly, DCCF receives the access token response message #b from NRF.

[0404] The access token response message #b is used to indicate the consent to authorize the NFc and DCCF to access the NFp, and the access token response message #b includes token#b.

[0405] Optionally, the access token response message #b may also include a validity period of token #b, and the token #b may generally be reused within the validity period.

[0406] Exemplarily, the access token response message #b may be a Nnrf_AccessToken_Get Response message.

[0407] S610, DCCF sends a NF service request message #b (i.e., a service request message) to NFp;

[0408] Correspondingly, NFp receives NF service request message #b from DCCF.

[0409] Among them, the NF service request message #b is used to request data acquisition, and the NF service request message #b includes service domain information #7 (ie, the second service domain information), token #b (carrying service domain information #6) and CCA (carrying service domain information #4).

[0410] Exemplarily, service domain information #7 is the same as the service area indicated by service domain information #5, the service area indicated by service domain information #7 is included in the service area indicated by service domain information #4, and the service area indicated by service domain information #7 is included in the service area indicated by service domain information #6.

[0411] Exemplarily, the NF service request message #b may be a NF Service Request message.

[0412] S611, NFp verifies token#b and provides services after verification.

[0413] Exemplarily, NFp compares the service domain information #6 in token#b with the service domain information #7 in the NF service request message #b, i.e., ensures that the service area indicated by service domain information #7 is included in the service area range indicated by service domain information #6. In addition, NFp also determines whether the service area range indicated by service domain information #4 in CCA includes the service area indicated by service domain information #7 in the NF service request message #b, and ensures that the service domain information #a requested by NFc is not maliciously tampered by DCCF during the transmission process. Only when the above content is verified, NFp can determine that token#b is verified, and then perform subsequent services, i.e., provide data within the specified service area range (i.e., service domain information #7) to DCCF.

[0414] Specifically, NFp verifies the identities of NFc and DCCF, and verifies the implementation method of other parameters carried in token#b. Please refer to the relevant description of step S211 of the above method 200, which will not be repeated here for the sake of brevity.

[0415] S612, NFp sends NF service response message #b to DCCF;

[0416] Correspondingly, DCCF receives NF service response message #b from NFp.

[0417] Among them, the NF service response message #b includes the data requested by NFc.

[0418] Exemplarily, the NF service response message #b may be a NF Service Response via notification message.

[0419] It should be understood that if the token#b is successfully authenticated, NFp performs the service. Otherwise, NFp refuses to provide the service.

[0420] S613, DCCF sends NF service response message #a to NFc;

[0421] Correspondingly, NFc receives NF service response message #a from DCCF.

[0422] Among them, the NF service response message #a includes the data requested by NFc.

[0423] Exemplarily, the NF service response message #a may be a NF Service Response via notification message.

[0424] The method disclosed in the present application solves the problem of NFc's cross-domain access unauthorized access by adding service domain information to the access token (e.g., token#a and token#b), limiting the service scope requested by NFc, and further providing services only when NRF verifies that the service domain information has passed. It can ensure network communication security and improve user experience.

[0425] Figure 7 800 is a flow chart of a communication method provided in an embodiment of the present application. This method is that NFc authorizes NFp to receive data through DCCF, by adding service domain information in the authorization token, adding service domain information in the service request process, and providing data after verifying that NFc's service domain information has passed, thereby solving the problem of NFc's cross-domain access unauthorized access and data leakage. Compared with method 600, in method 700, NFc may not carry service domain information when requesting to obtain an access token and requesting to obtain NF services, and the corresponding NRF and DCCF may complete authorization based on local policies. Figure 7 As shown, the method includes the following steps.

[0426] S701, NFc (e.g., NWDAF) sends an access token request message #A (i.e., token request message) to an authorization function network element (e.g., NRF);

[0427] Correspondingly, NRF receives the access token request message #A from NFc.

[0428] Among them, the access token request message #a includes the NF instance ID of NFc, the desired NF service name (e.g., collect data) and the desired NF type (e.g., data collection coordination function network element DCCF).

[0429] Optionally, the access token request message #A may also include but is not limited to: NF type of NFc, NSSAI list or NSI ID list of expected NFp, NF Set ID of expected NFp, S-NSSAI list of NFc, etc.

[0430] Exemplarily, the access token request message #A may be a Nnrf_AccessToken_GetRequest message.

[0431] S702, NRF authorizes NFc based on local policy and generates token#A (ie, the first token).

[0432] Wherein, token#A includes service domain information#a (ie, first service domain information). It should be noted that the service area authorized by the NF service is based on the service domain information#a authorized in token#A.

[0433] Optionally, the service domain information #a can be Serving Area, Area of ​​interest, Service Area, TAIs, etc. The specific meaning of the service domain information #a can be referred to the relevant description of step S701 of the above method 700. For the sake of brevity, it will not be repeated here.

[0434] Exemplarily, when NFc requests to obtain an access token, NRF may further authorize NFc to request NF services of area#1 and area#2 from NFp based on the NF service areas supported by NFc's own capabilities indicated in the locally stored NFc Profile, such as area#1 and area#2, i.e., the service domain information #a includes information indicating area#1 and area#2.

[0435] S703, NRF sends an access token response message #A to NFc;

[0436] Correspondingly, NFc receives the access token response message #A from NRF.

[0437] Among them, the access token response message #A includes token#A.

[0438] Optionally, the access token response message #A may also include a validity period of token #A, and token #A may generally be reused within the validity period.

[0439] Exemplarily, the access token response message #A may be a Nnrf_AccessToken_Get Response message.

[0440] S704, NFc sends NF service request message #A (i.e., service request message) to DCCF;

[0441] Correspondingly, DCCF receives NF service request message #A from NFc.

[0442] Among them, the NF service request message #A is used to request access to NFp to obtain data, and the NF service request message #A includes service domain information #b (i.e., the second service domain information), token#A and CCA (e.g., CCA_NWDAF), which is used by NRF or NFp to authenticate the NFc. Among them, the CCA includes service domain information #c (i.e., the third service domain information). It should be noted that the service domain information #b and service domain information #c are both subsets of the service domain information #a authorized in token#A. For example, if the service areas indicated by service domain information #a are area#1 and area#2, then the service areas indicated by service domain information #b and service domain information #c can be area#1 and / or area#2, and cannot exceed the scope of the service area authorized by token#A to avoid the situation where NFc unauthorized access to the service occurs. For example, the service area indicated by service domain information #b and service domain information #c is the same, which can be area#1.

[0443] Exemplarily, the NF service request message #A may be a Ndccf_DataManagement_Subscribe message.

[0444] S705, DCCF verifies token#A and executes the service after verification.

[0445] Among them, the specific verification method of token#a, as well as the specific meaning and information contained in token#a can refer to the relevant description of step S605 of the above method 600. For the sake of brevity, they will not be repeated here.

[0446] Specifically, regarding the verification of other information of token#A and other information contained in token#A, please refer to the relevant description of step S605 of the above method 600. For the sake of brevity, it will not be described in detail here.

[0447] S706, DCCF determines NFp.

[0448] Specifically, the implementation manner of DCCF determining NFp may refer to the relevant description of step S606 of the above method 600, which will not be repeated here for the sake of brevity.

[0449] S707, DCCF sends an access token request message #B (i.e., a token request message) to NRF;

[0450] Correspondingly, NRF receives access token request message #B from DCCF.

[0451] Among them, the access token request message #B includes service domain information #d (i.e., the fourth service domain information), NF instance ID of NFc, NF instance ID of DCCF, CCA (carrying service domain information #c), desired NF service name (e.g., collect data) and desired NFp type (e.g., data producer function network element Data producer NF).

[0452] Optionally, if there is one NFp, the service area indicated by the service domain information #d is the same as the service area indicated by the service domain information #b; if there are multiple NFp, the service area indicated by the service domain information #d is included in the service area indicated by the service domain information #b.

[0453] Optionally, the access token request message #B may also include, but is not limited to: NF type of NFc (e.g., NWDAF), NSSAI list or NSI ID list of expected NFp, NF Set ID of expected NFp, S-NSSAI list of NFc, etc.

[0454] Exemplarily, the access token request message #B may be a Nnrf_AccessToken_Get Request message.

[0455] S708, NRF verifies the identities of DCCF and NFc, and generates token#B (ie, the first token).

[0456] The first token includes service domain information #e (ie, first service domain information).

[0457] Exemplarily, the service area indicated by the service domain information #d is the same as the service area indicated by the service domain information #e.

[0458] Exemplarily, the NRF checks whether the DCCF and NFc are allowed to access the services provided by the determined NFp based on the profiles of the DCCF and NFc stored locally.

[0459] Further, if NFp can provide data of all areas requested in NF service request message #b, then the NFp selected by DCCF can be one, and in this case, service domain information #5 can be the same as the service area indicated by service domain information #3. Further, NRF can also determine whether the service area range indicated by service domain information #c carried in CCA is equal to the service area indicated by service domain information #d carried in access token request message #B, to ensure that DCCF or other network elements have not maliciously tampered with the service domain information requested by NFc, and to ensure network security communication. If the NFp selected by DCCF can be two, that is, NFp1 and NFp2 can respectively provide data of area#1 and area#2 requested in NF service request message #B, indicating that the service area indicated by service domain information #d is included in the service area indicated by service domain information #c. Further, NRF can also determine whether the service area indicated by service domain information #d is included in the service area range indicated by service domain information #c, to ensure that DCCF or other network elements have not maliciously tampered with the service domain information requested by NFc, and to ensure network security communication. It should be understood that the NRF determines that the verification is successful and generates token#B only when it determines that the service area indicated by the service domain information #d is included in the service area indicated by the service domain information #c.

[0460] S709, NRF sends an access token response message #B to DCCF;

[0461] Correspondingly, DCCF receives the access token response message #B from NRF.

[0462] Among them, the access token response message #B includes token#B.

[0463] Optionally, the access token response message #B may also include a validity period of token #B, and token #B may generally be reused within the validity period.

[0464] Exemplarily, the access token response message #B may be a Nnrf_AccessToken_Get Response message.

[0465] S710, DCCF sends a NF service request message #B (i.e., a service request message) to NFp;

[0466] Correspondingly, NFp receives NF service request message #B from DCCF.

[0467] Among them, the NF service request message #B is used to request to obtain data, and the NF service request message #B includes service domain information #f (ie, the second service domain information), token #B (service domain information #e) and CCA (service domain information #c).

[0468] Exemplarily, the service area indicated by the service domain information #f is the same as the service area indicated by the service domain information #d, the service area indicated by the service domain information #f is included in the service area indicated by the service domain information #e, and the service area indicated by the service domain information #f is included in the service area indicated by the service domain information #c.

[0469] Exemplarily, the NF service request message #B may be a NF Service Request message.

[0470] S711, NFp verifies token#B and provides services after verification.

[0471] Exemplarily, NFp compares the service domain information #e in token#B with the service domain information #f carried in the NF service request message #B, i.e., ensures that the service area indicated by the service domain information #f is included in the service area range indicated by the service domain information #e. In addition, NFp also determines whether the service area range indicated by the service domain information #c in CCA includes the service area indicated by the service domain information #f in the NF service request message #B, and ensures that the service domain information #A requested by NFc is not maliciously tampered by DCCF during the transmission process. Only when the above content is verified, NFp can determine that token#B is verified, and then perform subsequent services, i.e., provide data within the specified service area range (i.e., service domain information #f) to DCCF.

[0472] Specifically, NFp verifies the identities of NFc and DCCF, and verifies other parameters carried in token#B. For the implementation method, please refer to the relevant description of step S611 of the above method 600, which will not be repeated here for the sake of brevity.

[0473] S712, NFp sends NF service response message #B to DCCF;

[0474] Correspondingly, DCCF receives NF service response message #B from NFp.

[0475] Among them, the NF service response message #B includes the data requested by NFc.

[0476] Exemplarily, the NF service response message #B may be a NF Service Response via notification message.

[0477] S713, DCCF sends NF service response message #A to NFc;

[0478] Correspondingly, NFc receives NF service response message #A from DCCF.

[0479] Among them, the NF service response message #A includes the data requested by NFc.

[0480] Exemplarily, the NF service response message #A may be a NF Service Response via notification message.

[0481] The method disclosed in the present application solves the problem of NFc's cross-domain access unauthorized access by adding service domain information to the access token (e.g., token#A and token#B), limiting the service scope requested by NFc, and further providing services only when NRF verifies that the service domain information has passed. It can ensure network communication security and improve user experience.

[0482] Figure 8 800 is a flow chart of a communication method 800 provided in an embodiment of the present application. The method is that NFc requests ADRF to obtain the ML model trained by NFp, by adding service domain information in the authorization token, adding service domain information in the service request process, and providing the model when the service domain information of NFc is verified, so as to solve the problem of NFc's cross-domain access unauthorized access and model leakage. Figure 8 As shown, the method includes the following steps.

[0483] S801, NF service producer NFp (eg NWDAF MTLE) registers.

[0484] S802, NF service consumer NFc (eg NWDAF AnLF) registers.

[0485] The specific implementation of the registration in steps S810 and S802 may refer to steps S401 and S402 of the above method 400, and will not be described again for the sake of brevity.

[0486] S803, NFp encrypts the ML model not specified by 3GPP.

[0487] The embodiments of the present application do not limit the specific encryption method.

[0488] S804, NFp triggers storage of the ML model.

[0489] Exemplarily, NFp requests ADRF to store the ML model, and the storage address is URL1.

[0490] S805, ADRF sends the storage location of the ML model to NFp.

[0491] Exemplarily, the storage location of the ML model in ADRF is URL2.

[0492] S806, the NFc and the NRF perform a MTLF discovery process.

[0493] The specific implementation of the above steps S803 to S806 can refer to steps S303 and S306 of the above method 300, which will not be repeated here for the sake of brevity.

[0494] S807, NFc sends an access token request message (i.e., token request message) to NRF;

[0495] Correspondingly, NRF receives the access token request message from NFc.

[0496] The access token request message includes the NF instance ID of the NFc, the expected NF service name (e.g., expectedNF service name(s), such as the acquisition model), the expected NF type, and the analysis ID. It should be understood that the analysis ID is associated with one or more ML models.

[0497] Optionally, the access token request message includes service domain information #A (ie, fourth service domain information).

[0498] Exemplarily, the access token request message may be a Nnrf_AccessToken_Get Response message.

[0499] S808, NRF sends an access token response message to NFc;

[0500] Correspondingly, NFc receives the access token response message from NRF.

[0501] Exemplarily, if the access token request message of step S807 carries service domain information #A, the NRF verifies the service domain information #A carried in the access token request message according to the locally configured service domain information Service Area. If the request is allowed, that is, the service area indicated by the service domain information #A is included in the service area indicated by the service domain information locally configured by the NRF, the access token response message includes token #A, and the token #A includes service domain information #B (that is, the first service domain information) and the operator ID of the NFc. For example, if the service domain information #A indicates area #1, but the service domain information locally configured by the NRF indicates area #2, the service domain information #B in the token #A returned by the NRF to the NFc indicates area #2, and at this time, the service domain information #B is different from the service domain information #A. For another example, if service domain information #A indicates area#1, and the service domain information locally configured by NRF indicates area#1 and area#2, then the service domain information #B in token#A returned by NRF to NFc indicates area#1. At this time, service domain information #B is the same as service domain information #A.

[0502] Optionally, if the access token request message of step S807 does not carry service domain information #A, the NRF adds the locally configured service domain information #B to the token#A for subsequent token verification by the NFp. It should be noted that the service area authorized by the NF service is based on the service domain information #B authorized in token#A. The following embodiment is specifically described by taking the access token request message of step S807 carrying service domain information #A and the access token response message of step S808 carrying service domain information #B as an example.

[0503] Exemplarily, the access token response message may be a Nnrf_AccessToken_Get Response message.

[0504] That is, before executing step S808, the NRF needs to authorize the NFc. For the specific implementation method, reference may be made to the relevant description of step S202 of the above method 200, which will not be repeated here for the sake of brevity.

[0505] S809, NFc sends an ML model request message (i.e., a service request message) to NFp;

[0506] Correspondingly, NFp receives the ML model request message from NFc.

[0507] The ML model request message includes token#A, analysis ID and service domain information#C (ie, second service domain information), and the token#A includes service domain information#B and the operator ID of the NFc.

[0508] Exemplarily, the ML model request message may be a model request message.

[0509] S810, NFp verifies token#A.

[0510] Exemplarily, the implementation of NFp's verification of token#A can refer to step S310 of the above method 300, which will not be repeated here for the sake of brevity. Further, it should be noted that NFp needs to compare the service domain information #B in token#A with the service domain information #C carried in the ML model request message. Only when it is determined that the service area indicated by the service domain information #C is included in the service area indicated by the service domain information #B, can NFp determine that token#A is verified and provide services to NFc, that is, execute subsequent steps S811 to S813, and provide NFc with the model within the specified service area (i.e., service domain information #C).

[0511] S811, NFp sends a message requesting a URL to ADRF;

[0512] Correspondingly, ADRF receives the message of the request URL from NFp.

[0513] The message requesting the URL includes a model association identifier (eg, model correction ID) or URL2.

[0514] S812, ADRF sends URL3 to NFp;

[0515] Correspondingly, NFp receives URL3 from ADRF.

[0516] S813, NFp sends URL3 or URL4 to NFc;

[0517] Correspondingly, NFc receives URL3 or URL4 from NFp.

[0518] Among them, the specific implementation method of steps S811 to S813 can refer to steps S311 to S313 of the above method 300, and for the sake of brevity, they will not be described in detail here.

[0519] The method disclosed in the present application limits the service scope requested by NFc by adding service domain information in the access token (for example, token#A). NRF completes the access authorization of a specific service area according to the local configuration, and provides services to NFc only after verifying that the service domain information is passed. This solves the problem of NFc's cross-domain access unauthorized access, ensures network communication security, and improves user experience.

[0520] Combination of the above Figures 1 to 8 , describes in detail the communication method side embodiment of the present application, and will be combined with Fig. 9 and Fig.10 , describes in detail the communication device side embodiment of the present application. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0521] Fig. 9 is a schematic block diagram of a communication device provided in an embodiment of the present application. Fig. 9 As shown, the device 1000 may include a transceiver unit 1010 and a processing unit 1020. The transceiver unit 1010 may communicate with the outside, and the processing unit 1020 is used for data processing. The transceiver unit 1010 may also be called a communication interface or a transceiver unit.

[0522] In one possible design, the device 1000 may implement steps or processes corresponding to those executed by the first network function network element (e.g., NFc) in the above method embodiment, wherein the processing unit 1020 is used to perform operations related to the processing of NFc in the above method embodiment, and the transceiver unit 1010 is used to perform operations related to the transmission and reception of NFc in the above method embodiment.

[0523] In another possible design, the device 1000 may implement steps or processes corresponding to those executed by the second network function network element (e.g., NFp) in the above method embodiment, wherein the transceiver unit 1010 is used to perform operations related to the transceiver operation of the NFp in the above method embodiment, and the processing unit 1020 is used to perform operations related to the processing of the NFp in the above method embodiment.

[0524] In another possible design, the device 1000 can implement steps or processes corresponding to those performed by the authorization function network element (e.g., NRF) in the above method embodiment, wherein the transceiver unit 1010 is used to perform operations related to transceiving of the NRF in the above method embodiment, and the processing unit 1020 is used to perform operations related to processing of the NRF in the above method embodiment.

[0525] It should be understood that the device 1000 here is embodied in the form of a functional unit. The term "unit" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the device 1000 can be specifically the transmitting end in the above-mentioned embodiment, and can be used to execute the various processes and / or steps corresponding to the transmitting end in the above-mentioned method embodiment, or the device 1000 can be specifically the receiving end in the above-mentioned embodiment, and can be used to execute the various processes and / or steps corresponding to the receiving end in the above-mentioned method embodiment. To avoid repetition, it will not be repeated here.

[0526] The device 1000 of each of the above-mentioned solutions has the function of implementing the corresponding steps performed by the sending end in the above-mentioned method, or the device 1000 of each of the above-mentioned solutions has the function of implementing the corresponding steps performed by the receiving end in the above-mentioned method. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions; for example, the transceiver unit can be replaced by a transceiver (for example, the sending unit in the transceiver unit can be replaced by a transmitter, and the receiving unit in the transceiver unit can be replaced by a receiver), and other units, such as the processing unit, can be replaced by a processor, respectively performing the transceiver operations and related processing operations in each method embodiment.

[0527] In addition, the transceiver unit may also be a transceiver circuit (for example, it may include a receiving circuit and a sending circuit), and the processing unit may be a processing circuit. Fig. 9 The device in the embodiment may be a receiving end or a transmitting end in the foregoing embodiment, or may be a chip or a chip system, such as a system on chip (SoC). The transceiver unit may be an input / output circuit or a communication interface. The processing unit may be a processor or a microprocessor or an integrated circuit integrated on the chip. This is not limited here.

[0528] Fig.10 Another communication device 2000 provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the device 2000 includes a processor 2010 and a transceiver 2020. The processor 2010 and the transceiver 2020 communicate with each other through an internal connection path, and the processor 2010 is used to execute instructions to control the transceiver 2020 to send signals and / or receive signals.

[0529] Optionally, the device 2000 may further include a memory 2030, which communicates with the processor 2010 and the transceiver 2020 via an internal connection path. The memory 2030 is used to store instructions, and the processor 2010 may execute the instructions stored in the memory 2030.

[0530] In a possible implementation, the device 2000 is used to implement various processes and steps corresponding to the first network function network element in the above method embodiment.

[0531] In another possible implementation, the device 2000 is used to implement various processes and steps corresponding to the second network function network element in the above method embodiment.

[0532] In another possible implementation, the device 2000 is used to implement various processes and steps corresponding to the authorization function network element in the above method embodiment.

[0533] It should be understood that the device 2000 can be specifically the transmitting end or the receiving end in the above embodiment, or can be a chip or a chip system. Correspondingly, the transceiver 2020 can be the transceiver circuit of the chip, which is not limited here. Specifically, the device 2000 can be used to execute the various steps and / or processes corresponding to the transmitting end or the receiving end in the above method embodiment.

[0534] Optionally, the memory 2030 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 2010 may be used to execute instructions stored in the memory, and when the processor 2010 executes instructions stored in the memory, the processor 2010 is used to execute the various steps and / or processes of the above-mentioned method embodiment corresponding to the transmitting end or the receiving end.

[0535] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor 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 a processor for execution. The software module can be located in a storage medium mature 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 a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0536] It should be noted that the processor 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, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The processor in the embodiment of the present application can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present application. 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 to perform. 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.

[0537] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously connected dynamic random access memory, and direct memory bus random access memory. It should be noted that the memory of the system and method described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0538] Fig.11 30 is a schematic diagram of a chip system 3000 provided in an embodiment of the present application. The chip system 3000 (or also referred to as a processing system) includes a logic circuit 3010 and an input / output interface 3020 .

[0539] Among them, the logic circuit 3010 can be a processing circuit in the chip system 3000. The logic circuit 3010 can be coupled to the storage unit and call the instructions in the storage unit so that the chip system 3000 can implement the methods and functions of each embodiment of the present application. The input / output interface 3020 can be an input / output circuit in the chip system 3000, outputting information processed by the chip system 3000, or inputting data or signaling information to be processed into the chip system 3000 for processing.

[0540] As a solution, the chip system 3000 is used to implement the operations performed by the first network function network element, the first network function network element or the storage function network element in the above method embodiments.

[0541] An embodiment of the present application also provides a computer-readable storage medium on which are stored computer instructions for implementing the methods executed by a device (e.g., NFc, or NFp, or DCCF, or ADRF, or NRF) in the above-mentioned method embodiments.

[0542] An embodiment of the present application also provides a computer program product, comprising instructions, which, when executed by a computer, implement the methods performed by a device (e.g., NFc, or NFp, or DCCF, or ADRF, or NRF) in the above-mentioned method embodiments.

[0543] An embodiment of the present application also provides a communication system, including one or more of the aforementioned, such as NFc, or NFp, or DCCF, or ADRF, or NRF.

[0544] The explanation of the relevant contents and beneficial effects of any of the above-mentioned devices can be referred to the corresponding method embodiments provided above, which will not be repeated here.

[0545] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or 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 can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0546] 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.

[0547] 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 units 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.

[0548] 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.

[0549] 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.

[0550] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks or optical disks.

[0551] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present 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 communication method, characterized in that: include: The second network function network element receives a service request message from the first network function network element, the service request message being used to request the second network function network element to provide a service to the first network function network element, the service request message comprising a first token and second service domain information, the second service domain information indicating a service area of ​​the service requested by the first network function network element, the first token comprising first service domain information, the first service domain information indicating a service area range of the service that the first network function network element can obtain from the second network function network element; The second network function network element determines whether to provide the service to the first network function network element according to the first token.

2. The method according to claim 1, characterized in that: The second network function network element determines, according to the first token, whether to provide the service to the first network function network element, including: The second network function network element verifies the first token; In a case where the first token verification is successful, the second network function network element determines to provide the service to the first network function network element.

3. The method according to claim 2, characterized in that The second network function network element verifies the first token, including: The second network function network element verifies the integrity protection of the first token; In the case where the integrity protection verification of the first token passes, the second network function network element determines whether the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information; In a case where the service area indicated by the second service domain information belongs to the service area range indicated by the first service domain information, the second network function network element determines that the first token verification is successful.

4. The method according to any one of claims 1 to 3, characterized in that The service request message also includes a client credential assertion CCA, wherein the client credential assertion CCA includes an identifier of a third network function network element and third service domain information, wherein the third service domain information indicates a service area of ​​the service requested by the third network function network element.

5. The method according to claim 4, characterized in that The method further comprises: The second network function network element determines, according to the CCA, whether to provide the service to the first network function network element, specifically: The second network function network element determines whether the service area indicated by the second service domain information is included in the service area range indicated by the third service domain information carried in the CCA; In a case where the service area indicated by the second service domain information is included in the service area range indicated by the third service domain information carried in the CCA, the second network function network element determines to provide the service to the first network function network element.

6. The method according to claim 5, characterized in that The service request message further includes an identifier of the first network function network element, the first token further includes an identifier of the first network function network element and an identifier of the third network function network element, the second network function network element verifies the first token, and further includes: The second network function network element determines whether the identifier of the third network function network element carried in the first token is the same as the identifier of the third network function network element carried in the CCA, and whether the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message; When the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the CCA, and the identifier of the first network function network element carried in the first token is the same as the identifier of the first network function network element carried in the service request message, the second network function network element determines that the first token verification is successful.

7. The method according to claim 6, characterized in that The first token further includes other verification conditions, and the method further includes: The second network function network element determines whether to provide the service to the first network function network element according to the other verification conditions; wherein the other verification conditions include one or more of the following: The NF instance identifier of the service provider, the NF type of the service provider, the single network slice selection auxiliary information of the service provider, the network slice instance identifier of the service provider, the identifier of the NF set to which the desired service provider belongs, the desired service name, and the validity period of the first token.

8. The method according to claim 7, characterized in that The method further comprises: When the other verification conditions are verified successfully, the second network function network element determines that the first token verification is successful.

9. The method according to claim 7 or 8, characterized in that: The method further comprises: When any one of the following conditions is met, the second network function network element determines that the first token verification fails; The second network function network element refuses to provide the service to the first network function network element; The conditions include one or more of the following: The service area indicated by the second service domain information does not belong to the service area range indicated by the first service domain information; The service area indicated by the second service domain information does not belong to the service area range indicated by the third service domain information; the identifier of the third network function network element carried in the first token is different from the identifier of the third network function network element carried in the CCA; The identifier of the first network function network element carried in the first token is different from the identifier of the first network function network element carried in the service request message; or, The other verification conditions are not verified.

10. The method according to any one of claims 1 to 9, characterized in that The service area indicated by the second service domain information is included in the service area range indicated by the first service domain information.

11. The method according to any one of claims 1 to 10, characterized in that The service includes any one of the following: data collection service, or model acquisition service; When the service is a data collection service, the first service domain information indicates an area range of data that the first network function network element can obtain from the second network function network element; When the service is a model acquisition service, the first service domain information indicates an area range of a model that the first network function network element can acquire from the second network function network element.

12. A communication method, characterized in that: include: The first network function network element obtains a first token, where the first token includes first service domain information, where the first service domain information indicates a service area range in which the first network function network element can obtain services from the second network function network element; The first network function network element sends a service request message to the second network function network element, where the service request message is used to request the second network function network element to provide the service to the first network function network element, where the service request message includes the first token and second service domain information, where the second service domain information indicates a service area of ​​the service requested by the first network function network element; The first network function network element receives the service from the second network function network element.

13. The method according to claim 12, characterized in that The first network function network element obtains a first token, including: The first network function network element sends a token request message to the authorization function network element, where the token request message includes an identifier of the service, an identifier of the first network function network element, and an identifier of the second network function network element or a network element type of the second network function network element; The first network function network element receives the first token from the authorization function network element.

14. The method according to claim 13, characterized in that The token request message further includes fourth service domain information, where the fourth service domain information indicates a service area of ​​the service requested by the first network function network element.

15. The method according to claim 14, characterized in that The token request message further includes a client credential assertion CCA, the CCA includes an identifier of a third network function network element and third service domain information, the third service domain information indicates a service area of ​​the service requested by the third network function network element.

16. The method according to claim 15, characterized in that The service request message also includes the CCA.

17. The method according to any one of claims 12 to 16, characterized in that The service area indicated by the second service domain information is included in the service area range indicated by the first service domain information.

18. The method according to any one of claims 12 to 17, characterized in that The service includes any one of the following: data collection service, or model acquisition service; When the service is a data collection service, the first service domain information indicates an area range of data that the first network function network element can obtain from the second network function network element; When the service is a model acquisition service, the first service domain information indicates an area range of a model that the first network function network element can acquire from the second network function network element.

19. A communication method, characterized in that: include: The authorization function network element receives a token request message from the first network function network element, where the token request message includes an identifier of a service, an identifier of the first network function network element, and an identifier of a second network function network element or a type of the second network function network element; In the case of determining that the first network function network element is authorized to obtain the service, the authorization function network element generates a first token, where the first token includes first service domain information, where the first service domain information indicates a service area range in which the first network function network element can obtain the service from the second network function network element; The authorization function network element sends the first token to the first network function network element.

20. The method according to claim 19, characterized in that The token request message further includes fourth service domain information, where the fourth service domain information indicates a service area of ​​the service requested by the first network function network element.

21. The method according to claim 20, characterized in that The token request message further includes a client credential assertion CCA, the CCA includes an identifier of a third network function network element and third service domain information, the third service domain information indicates a service area of ​​the service requested by the third network function network element.

22. The method according to claim 21, characterized in that The authorization function network element generates the first token, including: The authorization function network element determines whether the service area indicated by the fourth service domain information is included in the service area range indicated by the third service domain information carried in the CCA; In a case where it is determined that the service area indicated by the fourth service domain information is included in the service area range indicated by the third service domain information carried in the CCA, the authorization function network element generates the first token.

23. The method according to any one of claims 19 to 22, characterized in that The service includes any one of the following: data collection service, or model acquisition service; When the service is a data collection service, the first service domain information indicates an area range of data that the first network function network element can obtain from the second network function network element; When the service is a model acquisition service, the first service domain information indicates an area range of a model that the first network function network element can acquire from the second network function network element.

24. A communication device, characterized in that: include: One or more functional modules, the one or more functional modules or network elements are used to execute the method as described in any one of claims 1 to 11, or the one or more functional modules or network elements are used to execute the method as described in any one of claims 12 to 18, or the one or more functional modules or network elements are used to execute the method as described in any one of claims 19 to 23.

25. A communication device, characterized in that: include: a processor coupled to the memory; The processor is used to execute the computer program stored in the memory so that the communication device performs the method as described in any one of claims 1 to 11, or so that the communication device performs the method as described in any one of claims 12 to 18, or so that the communication device performs the method as described in any one of claims 19 to 23.

26. A communication system, characterized in that: include: A first network function network element, a second network function network element and an authorization function network element, wherein the second network function network element is used to execute the method as described in any one of claims 1 to 11, the first network function network element is used to execute the method as described in any one of claims 12 to 18, and the authorization function network element is used to execute the method as described in any one of claims 19 to 23.

27. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed, the computer is caused to execute the method according to any one of claims 1 to 23.

28. A computer program product, characterized in that When the computer program product is executed by a communication device, the method according to any one of claims 1 to 23 is implemented.

Citation Information

Cited By

  • Communication method and communication apparatus

    EP4661339A1

  • Communication method and apparatus

    WO2026103455A1

  • Communication methods and device

    WO2026143509A1

  • Terminal device and operating method of terminal device

    WO2026151108A1

  • Cloud computing technology-based cloud service access method and cloud system

    WO2026223705A1