Communication method and communication device
Patent Information
- Application Number
- CN202310394661.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
Smart Images

Figure CN118785291A_ABST
Abstract
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 communication system, a communication device or user equipment (UE) can use a UE route selection policy (URSP) to determine the path through which its data traffic is sent. For example, the UE can select an existing session connected to a data network (DN) through the URSP rule to send its data traffic; or the UE can send its data traffic by establishing a new session in a specific network slice.
[0003] Currently, how to reduce or avoid potential security risks that terminal devices may encounter during the route selection process is an issue that needs to be considered. Summary of the invention
[0004] The present application provides a communication method and a communication device, which can reduce or avoid potential security risks that a terminal device may encounter during a route selection process.
[0005] In a first aspect, a communication method is provided, which can be performed by a communication device. Optionally, the communication device can be a terminal device, such as a mobile phone, a car, a drone, a wearable device, etc., or a chip or circuit of the terminal device. In addition, the terminal device can also be called a user device, so the communication device can also be a user device, or a chip or circuit in the user device. This application does not make specific restrictions on this.
[0006] The method includes: when a communication device detects an application, the communication device determines that the application matches a routing policy rule based on a second application identifier and a second application distinguishing parameter of the application, and the routing policy rule includes a first application identifier and a first application distinguishing parameter; the communication device associates the application to a session, such as a protocol data unit (PDU) session, based on the routing policy rule.
[0007] Exemplarily, the above-mentioned application can also be referred to as application traffic. The communication device determines whether the application matches the routing policy rule by evaluating whether the "application" matches the traffic descriptor in the routing policy rule. It can also be understood as evaluating whether the "application traffic" matches the traffic descriptor in the routing policy rule. The present application does not make a distinction between the two, and the relevant parts will not be repeated below.
[0008] According to the solution provided in the present application, by adding verification of the first application distinguishing parameter and the second application distinguishing parameter, the terminal device can effectively identify the detected application, and then determine whether the application matches the routing selection policy rule, thereby avoiding infringement of the network resources of the application in the routing selection policy rule and reducing the risk of network nodes being attacked by malicious traffic.
[0009] In combination with the first aspect, in certain implementations of the first aspect, before the communication device determines that the application matches the routing policy rule based on the second application identifier and the second application distinguishing parameter of the application, the method also includes: the communication device receives the routing policy rule from the network device.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the second application distinguishing parameter includes one or more of the following: an identifier of a binding platform for the application, an identifier of an application source for the application, a name of an installation file package for the application, an identifier of a user of the application, an identifier of a developer of the application, an identifier of a public land mobile network associated with the application, or an identifier of an application function for generating routing selection policy rules.
[0011] In combination with the first aspect, in certain implementations of the first aspect, the communication device performs an integrity or authenticity check on the second application identifier and the second application distinguishing parameter; wherein the communication device determines that the application and the routing selection policy rule match based on the second application identifier and the second application distinguishing parameter of the application, including: when the integrity or authenticity check passes, the communication device determines that the application and the routing selection policy rule match based on the second application identifier and the second application distinguishing parameter.
[0012] Based on the above solution, by performing integrity or authenticity verification on the second application identifier and the second application distinguishing parameter to ensure that the second application identifier and the second application distinguishing parameter have not been tampered with, potential security risks that the terminal device may encounter during the route selection process can be further reduced or avoided.
[0013] In combination with the first aspect, in certain implementations of the first aspect, the communication device determines that the application and the routing policy rule match based on the second application identifier and the second application distinguishing parameter of the application, including: the communication device determines that the first application identifier and the second application identifier are the same, and the first application distinguishing parameter and the second application distinguishing parameter are the same.
[0014] Based on the above scheme, when it is determined that the first application identifier and the second application identifier are the same, and the first application distinguishing parameter and the second application distinguishing parameter are the same, the communication device determines that the application and routing selection policy rules match, which can further reduce or avoid potential security risks that the terminal device may encounter during the routing selection process.
[0015] In combination with the first aspect, in certain implementations of the first aspect, the communication device includes an operating system and a modem, and the method also includes: the operating system receives a first parameter from an application, the first parameter including one or more of the following: a temporary identifier, a temporary key, or an access token; the operating system determines a second application identifier and a second application distinguishing parameter of the application based on the first parameter; the operating system sends the second application identifier and the second application distinguishing parameter to the modem; wherein the communication device determines that the application matches the routing policy rule based on the second application identifier and the second application distinguishing parameter of the application, including: the modem determines that the second application identifier is the same as the first application identifier, and that the second application distinguishing parameter is the same as the first application distinguishing parameter.
[0016] Based on the above scheme, the authenticity or integrity of the application is determined by verifying the second application identifier and the second application distinguishing parameter of the application through the operating system, and when the first application identifier and the second application identifier are the same, and the second application distinguishing parameter and the first application distinguishing parameter are the same, the modem determines that the application matches the routing policy rule, which can reduce or avoid potential security risks that the terminal device may encounter during the routing selection process.
[0017] In combination with the first aspect, in certain implementations of the first aspect, the operating system determines the second application identifier and the second application distinguishing parameter of the application based on the first parameter, including: the operating system determines the second application identifier and the second application distinguishing parameter of the application based on the temporary identifier and the mapping relationship, wherein the mapping relationship is used to characterize the association relationship between the second application identifier, the second application distinguishing parameter and the temporary identifier; or, the operating system determines the second application identifier and the second application distinguishing parameter associated with the application based on the temporary key or access token.
[0018] Based on the above scheme, the operating system determines the second application identifier and the second application distinguishing parameter of the application through a temporary identifier, a temporary key or an access token. Taking into account the uncertainty of the generation of the temporary identifier, the temporary key or the access token, it can improve security and reduce or avoid potential security risks that the terminal device may encounter during the routing selection process.
[0019] In combination with the first aspect, in some implementations of the first aspect, the operating system receives the first parameter from the application, including: when the application is activated or used, the operating system receives the first parameter from the application.
[0020] In combination with the first aspect, in certain implementations of the first aspect, before the operating system receives the first parameter from the application, the method also includes: the operating system generates the first parameter; the operating system sends the first parameter to the application; wherein, when the first parameter is a temporary identifier, the operating system stores the mapping relationship.
[0021] Based on the above scheme, considering the uncertainty of the generation of temporary identifiers, temporary keys or access tokens, the operating system determines the second application identifier associated with the application through the temporary identifier, temporary key or access token, which can improve security and reduce or avoid potential security risks that the terminal device may encounter during the routing selection process.
[0022] In combination with the first aspect, in certain implementations of the first aspect, the communication device sends an authentication request message to a user, the authentication request message includes a second application identifier and a second application distinguishing parameter of the application, and the authentication request message is used to request the user to verify the second application identifier and the second application distinguishing parameter; the communication device receives an authentication response message from the user, the authentication response message includes a verification result of the second application identifier and the second application distinguishing parameter. Wherein, the communication device determines that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application, including: the communication device determines that the application matches the routing policy rule according to the authentication response message.
[0023] Based on the above scheme, by sending an authentication request message to the user, requesting the user to verify the second application identifier and the second application distinguishing parameter, relying on the results of user identification and verification, to determine the application and routing policy rule match, reducing or avoiding potential security risks that the terminal device may encounter during the routing selection process.
[0024] In combination with the first aspect, in certain implementations of the first aspect, the communication device sends an authentication request message to a user, the authentication request message includes a second application identifier and a second application distinguishing parameter of the application, and the authentication request message is used to request whether the second application identifier matches the first application identifier, and whether the second application distinguishing parameter matches the first application distinguishing parameter; the communication device receives an authentication response message from the user, the authentication response message includes a first matching result between the second application identifier and the first application identifier, and a second matching result between the second application distinguishing parameter and the first application distinguishing parameter. Wherein, the communication device determines that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application, including: the communication device determines that the application matches the routing policy rule according to the authentication response message.
[0025] Based on the above scheme, by sending an authentication request message to the user, requesting the user to determine whether the second application identifier matches the first application identifier, and whether the second application distinguishing parameter matches the first application distinguishing parameter, relying on the results of user identification and verification, to determine the application and routing policy rule match, reduce or avoid potential security risks that the terminal device may encounter during the routing selection process.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the communication device determines, based on the authentication response message, that an application matches a routing policy rule, including: when a verification result indicates that the second application identifier and the second application distinguishing parameter have passed user verification, the communication device determines that the application matches the routing policy rule; or, when a first matching result indicates that the second application identifier is the same as the first application identifier, and a second matching result indicates that the second application distinguishing parameter is the same as the first application distinguishing parameter, the communication device determines that the application matches the routing policy rule.
[0027] Based on the above solution, the communication device determines that the application matches the routing policy rule according to the user's verification result or matching result, which can improve security and reduce or avoid potential security risks that the terminal device may encounter during the routing selection process.
[0028] In combination with the first aspect, in certain implementations of the first aspect, the communication device determines the second application distinguishing parameter associated with the application based on the result of the user verifying the second application distinguishing parameter associated with the application; or, when the matching result indicates that the second application distinguishing parameter associated with the application is the same as the first application distinguishing parameter, the communication device determines that the application and the routing selection policy rule match.
[0029] In a second aspect, a communication method is provided, which can be executed by a network device, or can also be executed by a chip or circuit used for a network device, which is not limited in this application. For ease of description, the following description is given by taking the execution by a network device as an example.
[0030] The method comprises: the network device acquires a routing selection policy rule, the routing selection policy rule comprises a first application identifier and a first application distinguishing parameter; the network device sends the routing selection policy rule to a communication device.
[0031] According to the solution provided in the present application, by adding the first application distinguishing parameter, the terminal device can effectively identify the detected application, verify whether the application matches the routing policy rule, avoid the network resources of the application associated with the routing policy rule from being damaged, and reduce the risk of network nodes being attacked by malicious traffic.
[0032] Among them, certain other specific implementation methods on the network device side and the beneficial effects of certain implementation methods can refer to the relevant description of the first aspect and will not be repeated here.
[0033] In a third aspect, a communication method is provided, which can be executed by a communication device, or can also be executed by a chip or circuit used for a communication device, which is not limited in this application. For ease of description, the following description is taken as an example of execution by a communication device.
[0034] The method includes: when a communication device detects an application, the communication device determines that the application matches a routing policy rule; the communication device sends a request message to a network device, the request message includes an application identifier of the application, and the request message is used to request verification of whether the application matches the routing policy rule; the communication device receives a response message from the network device.
[0035] According to the solution provided in the present application, on the basis of the communication device determining that the detected application matches the routing policy rules, a new step of requesting the network device to verify the match between the application and the routing policy rules is added to ensure the authenticity of the application detected by the communication device, avoid infringement of the network resources of the application associated with the routing policy rules, and reduce the risk of network nodes being attacked by malicious traffic.
[0036] In combination with the third aspect, in certain implementations of the third aspect, the application identifier of the application is security protected.
[0037] Based on the above scheme, by performing security protection on the application identifier of the application, the network communication security can be improved, the application identifier of the application can be prevented from being maliciously tampered with during the transmission process, the network resources of the application in the routing policy rules can be reduced from being infringed, and the risk of network nodes being attacked by malicious traffic can be increased.
[0038] In combination with the third aspect, in certain implementations of the third aspect, the application identifier of the application that has been securely protected includes one or more of the following: the application identifier of the application that has been digitally signed, the application identifier of the application that has been key encrypted, or the application identifier of the application that has been hashed.
[0039] In combination with the third aspect, in certain implementations of the third aspect, the request message also includes authentication information, the authentication information includes an application identifier of the application and a digital signature used to verify the application identifier of the application, the authentication information is used to verify the authenticity or integrity of the application, and the authentication information is any one of the following: a digital signature, a hash value, or a message authentication code.
[0040] Based on the above scheme, by carrying authentication information, the network device verifies the authenticity or integrity of the application newly detected by the communication device, and increases the security of the network device verifying the application identifier of the application, which can improve the security of network communications and reduce the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0041] Optionally, the communication device sends an identifier of the routing policy rule to the network device.
[0042] In combination with the third aspect, in certain implementations of the third aspect, before the communication device sends a request message to the network device, the method also includes: the communication device determines to send an application identifier of the application to the network device based on first configuration information, the first configuration information indicating that the application identifier of the application is sent to the network device, wherein the first configuration information is pre-configured in the communication device; or, the communication device determines to send the application identifier of the application to the network device based on first indication information from the network device, the first indication information being used to indicate that the application identifier of the application is sent to the network device.
[0043] Based on the above scheme, the communication device can determine to send a request message containing the application identifier of the application to the network device according to the first configuration information or the first indication information, add a process for the network device to verify the match between the application and the routing policy rules, avoid the communication device from impersonating the application, improve the security of network communications, and reduce the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0044] In combination with the third aspect, in some implementations of the third aspect, the request message is a session establishment request message or a session modification request message.
[0045] Based on the above solution, by carrying the application identifier of the application through a session establishment request message or a session modification request message, unnecessary interaction processes can be reduced and signaling overhead can be saved.
[0046] In combination with the third aspect, in certain implementations of the third aspect, the request message also includes second indication information, and the second indication information indicates that the application identifier of the application is carried in the request message, or the second indication information indicates that the network device verifies whether the application and the routing policy rules match.
[0047] Based on the above scheme, the second indication information can be used to instruct the network device to verify the application identifier of the application, increase the number of verifications or processes, improve network communication security, and reduce the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0048] In combination with the third aspect, in certain implementations of the third aspect, the request message also includes an application differentiation parameter of the application. By adding verification of the application differentiation parameter of the application, the authenticity of the application detected by the communication device can be more effectively identified, and then the application is determined to match the routing policy rules, thereby avoiding infringement of the network resources of the application in the routing policy rules and reducing the risk of network nodes being attacked by malicious traffic.
[0049] In combination with the third aspect, in certain implementation methods of the third aspect, the application differentiation parameters of the application are security protected. By performing security protection on the application differentiation parameters of the application, the network communication security can be effectively improved, and the application differentiation parameters of the application can be prevented from being maliciously tampered with during the transmission process, thereby reducing the risk of network resources of the application in the routing policy rules being infringed and the risk of network nodes being attacked by malicious traffic.
[0050] In combination with the third aspect, in certain implementations of the third aspect, the application distinguishing parameters of the application that have been securely protected include one or more of the following: application distinguishing parameters of the application that have been digitally signed, application distinguishing parameters of the application that have been key encrypted, or application distinguishing parameters of the application that have been hashed.
[0051] In combination with the third aspect, in certain implementations of the third aspect, before the communication device sends a request message to the network device, the method further includes: the communication device determines to send an application identifier and an application distinguishing parameter of the application to the network device according to the second configuration information, the second configuration information indicates to send the application identifier and the application distinguishing parameter of the application to the network device, wherein the second configuration information is preconfigured in the communication device. Alternatively, the communication device determines to send the application identifier and the application distinguishing parameter of the application to the network device according to third indication information from the network device, the third indication information is used to indicate to send the application identifier and the application distinguishing parameter of the application to the network device.
[0052] Based on the above scheme, the communication device can determine to send a request message containing the application identifier of the application and the application distinguishing parameters of the application to the network device according to the second configuration information or the third indication information, and add a process for the network device to verify the match between the application and the routing policy rules, which can improve the security of network communications and reduce the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0053] In combination with the third aspect, in certain implementations of the third aspect, the request message also includes fourth indication information, and the fourth indication information indicates that the request message carries an application identifier of the application and an application differentiation parameter of the application, or the fourth indication information indicates that the network device verifies whether the application and the routing policy rules match.
[0054] Based on the above scheme, the fourth indication information can instruct the network device to verify the application identifier of the application and the application distinguishing parameters of the application, thereby increasing the number of verifications or processes, thereby improving the security of network communications and reducing the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0055] In combination with the third aspect, in certain implementations of the third aspect, when the application matches the routing policy rule, the response message is used to instruct the network device to accept the request of the communication apparatus.
[0056] In combination with the third aspect, in certain implementations of the third aspect, the method also includes: when the application and the routing policy rule do not match, the communication device receives a rejection message from the network device, the rejection message is used to instruct the network device to reject the request of the communication device, the rejection message includes a rejection reason, and the rejection reason is used to indicate that the application identifier of the application is different from the application identifier in the routing policy rule, and / or, the application differentiation parameter of the application is different from the application differentiation parameter in the routing policy rule, that is, the verification fails.
[0057] Based on the above scheme, when the application and the routing policy rules match, the network device accepts the request of the communication device, such as establishing or modifying the session associated with the application; when the application and the routing policy rules do not match, the network device does not accept the request of the communication device, such as not establishing or modifying the session associated with the application, thereby reducing the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0058] In a fourth aspect, a communication method is provided, which can be executed by a network device, or can also be executed by a chip or circuit used for a network device, which is not limited in this application. For ease of description, the following description is taken as an example of execution by a network device.
[0059] The method includes: a network device receives a request message from a communication device, the request message includes an application identifier of the application, and the request message is used to request verification of whether the application matches a routing policy rule; the network device determines that the application matches the routing policy rule based on the application identifier of the application; and the network device sends a response message to the communication device.
[0060] According to the solution provided in the present application, on the basis of the communication device determining that the detected application matches the routing policy rules, a new step of requesting the network device to verify the match between the application and the routing policy rules is added to ensure the authenticity of the detection by the communication device, avoid infringement of the network resources of the application associated with the routing policy rules, and reduce the risk of network nodes being attacked by malicious traffic.
[0061] In combination with the fourth aspect, in certain implementations of the fourth aspect, the application identifier of the application is security protected.
[0062] Based on the above scheme, by performing security protection on the application identifier of the application, the network communication security can be increased, and the application identifier of the application can be prevented from being maliciously tampered with during the transmission process, thereby increasing the risk of network resources of the application associated with the routing policy rules being infringed and the risk of network nodes being attacked by malicious traffic.
[0063] In combination with the fourth aspect, in certain implementations of the fourth aspect, the application identifier of the application that has been securely protected includes one or more of the following: the application identifier of the application that has been digitally signed, the application identifier of the application that has been key encrypted, or the application identifier of the application that has been key encrypted.
[0064] In combination with the fourth aspect, in certain implementations of the fourth aspect, the request message also includes authentication information, the authentication information includes an application identifier of the application and a digital signature used to verify the application identifier of the application, the authentication information is used to verify the authenticity or integrity of the application, and the authentication information is any one of the following: a digital signature, a hash value, or a message authentication code.
[0065] Based on the above scheme, by carrying authentication information, the network device verifies the authenticity or integrity of the newly detected application of the communication device, which can improve the security of network communications and reduce the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0066] In combination with the fourth aspect, in certain implementations of the fourth aspect, the network device determines that the application matches the routing policy rule based on the application identifier in the routing policy rule and the application identifier of the application, including: the network device determines that the application identifier of the application is the same as the application identifier of the application in the routing policy rule.
[0067] Based on the above scheme, when the application identifier of the application and the application identifier in the routing policy rule are the same, the network device determines that the application and the routing policy rule match. By adding a step for the network device to verify the application identifier of the application, the communication security in the routing selection process is improved, and the risk of network resources of the application in the routing policy rule being infringed and network nodes being attacked by malicious traffic is reduced.
[0068] In combination with the fourth aspect, in certain implementations of the fourth aspect, the network device determines that the application matches the routing policy rule based on the application identifier in the routing policy rule and the application identifier of the application, including: when the application identifier of the application is digitally signed, the network device verifies the digital signature; when the digital signature verification passes, the network device determines that the application matches the routing policy rule based on the application identifier in the routing policy rule and the application identifier of the application.
[0069] Based on the above scheme, by adding verification of the digital signature of the application identifier of the application, the network communication security can be improved, and the risk of network resources of the application associated with the routing policy rules being infringed and network nodes being attacked by malicious traffic can be reduced.
[0070] In combination with the fourth aspect, in certain implementations of the fourth aspect, before the network device receives a request message from the communication device, the method also includes: the network device sends first indication information to the communication device, and the first indication information is used to instruct the communication device to send an application identifier of the application to the network device.
[0071] Based on the above scheme, by sending the first indication information, the communication device can determine to send a request message to the network device according to the first indication information, thereby adding a verification process in the routing selection process, thereby improving the security of network communications and reducing the risk of network resources of applications associated with routing selection policy rules being infringed and network nodes being attacked by malicious traffic.
[0072] In combination with the fourth aspect, in certain implementations of the fourth aspect, the request message is a session establishment request message or a session modification request message.
[0073] Based on the above solution, by carrying the application identifier of the application through a session establishment request message or a session modification request message, unnecessary interaction processes can be reduced and signaling overhead can be saved.
[0074] In conjunction with the fourth aspect, in certain implementations of the fourth aspect, the request message further includes second indication information, the second indication information indicates that the request message carries an application identifier of the application, or the second indication information indicates that the network device verifies whether the application matches the routing policy rule. Wherein, the network device determines that the application matches the routing policy rule based on the application identifier of the application and the application identifier in the routing policy rule, including: the network device determines that the application matches the routing policy rule based on the second indication information, the application identifier of the application, and the application identifier in the routing policy rule.
[0075] Based on the above scheme, the second indication information can be used to instruct the network device to verify the application identifier of the application, increase the number of verifications or processes, improve network communication security, and reduce the risk of network resources of applications associated with routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0076] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the request message further includes an application distinguishing parameter of the application. Wherein, the network device determines that the application matches the routing policy rule according to the application identifier of the application and the application identifier in the routing policy rule, including: the network device determines that the application matches the routing policy rule according to the application identifier of the application and the application identifier in the routing policy rule, and the application distinguishing parameter of the application and the application distinguishing parameter in the routing policy rule.
[0077] In combination with the fourth aspect, in certain implementations of the fourth aspect, the network device determines that the application and the routing policy rule match based on the application identifier of the application and the application identifier in the routing policy rule, as well as the application differentiation parameter of the application and the application differentiation parameter in the routing policy rule, including: the network device determines that the application identifier of the application and the application identifier in the routing policy rule are the same, and the application differentiation parameter of the application and the application differentiation parameter in the routing policy rule are the same.
[0078] Based on the above scheme, by adding the verification of the application differentiation parameters of the application, the authenticity of the application detected by the communication device can be more effectively identified, and then the application can be determined to match the routing policy rules, thereby avoiding the network resources of the application in the routing policy rules from being infringed and reducing the risk of network nodes being attacked by malicious traffic.
[0079] In combination with the fourth aspect, in certain implementation methods of the fourth aspect, the application differentiation parameters of the application are security protected. By performing security protection on the application differentiation parameters of the application, the network communication security can be effectively improved, and the application differentiation parameters of the application can be prevented from being maliciously tampered with during the transmission process, thereby reducing the risk of network resources of the application in the routing policy rules being infringed and the risk of network nodes being attacked by malicious traffic.
[0080] In combination with the fourth aspect, in certain implementations of the fourth aspect, the application distinguishing parameters of the application that have been securely protected include one or more of the following: application distinguishing parameters of the application that have been digitally signed, application distinguishing parameters of the application that have been key encrypted, or application distinguishing parameters of the application that have been hashed.
[0081] In combination with the fourth aspect, in certain implementations of the fourth aspect, before the network device receives a request message from the communication device, the method also includes: the network device sends third indication information to the communication device, and the third indication information is used to instruct the communication device to send an application identifier and application differentiation parameters of the application to the network device.
[0082] Based on the above scheme, the communication device can determine to send a request message containing the application identifier of the application and the application distinguishing parameters of the application to the network device according to the third indication information, and add a process for the network device to verify the match between the application and the routing selection policy rules, which can improve the security of network communications and reduce the risk of network resources of the application in the routing selection policy rules being infringed and network nodes being attacked by malicious traffic.
[0083] In combination with the fourth aspect, in certain implementations of the fourth aspect, the request message further includes fourth indication information, the fourth indication information indicates that the request message carries an application identifier of the application and an application distinguishing parameter of the application, or the fourth indication information indicates that the network device verifies whether the application and the routing policy rule match. Wherein, the network device determines that the application and the routing policy rule match according to the application identifier of the application and the application identifier in the routing policy rule, and the application distinguishing parameter of the application and the application distinguishing parameter in the routing policy rule, including: the network device determines that the application and the routing policy rule match according to the fourth indication information, the application identifier of the application and the application identifier in the routing policy rule, and the application distinguishing parameter of the application and the application distinguishing parameter in the routing policy rule.
[0084] Based on the above scheme, the fourth indication information can instruct the network device to verify the application identifier of the application and the application distinguishing parameters of the application, thereby increasing the number of verifications or processes, thereby improving the security of network communications and reducing the risk of network resources of the application in the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0085] In combination with the fourth aspect, in certain implementations of the fourth aspect, when the application and the routing policy rules do not match, the network device sends a rejection message to the communication device, and the rejection message is used to instruct the network device to reject the request of the communication device. The rejection message includes a rejection reason, and the rejection reason is used to indicate that the application identifier of the application is different from the application identifier in the routing policy rules, and / or that the application differentiation parameters of the application are different from the application differentiation parameters in the routing policy rules.
[0086] In combination with the fourth aspect, in certain implementations of the fourth aspect, when the application matches the routing policy rule, the response message is used to instruct the network device to accept the request of the communication apparatus.
[0087] In combination with the fourth aspect, in certain implementations of the fourth aspect, when the application and the routing policy rule do not match, the method also includes: the network device sends a rejection message to the communication device, the rejection message is used to instruct the network device to reject the request of the communication device, the rejection message includes a rejection reason, and the rejection reason is used to indicate that the application identifier of the application is different from the application identifier in the routing policy rule, and / or, the application differentiation parameter of the application is different from the application differentiation parameter in the routing policy rule, that is, the verification fails.
[0088] Based on the above scheme, when the application and the routing policy rules match, the network device accepts the request of the communication device, such as establishing or modifying the session associated with the application; when the application and the routing policy rules do not match, the network device does not accept the request of the communication device, such as not establishing or modifying the session associated with the application, thereby reducing the risk of network resources of the application associated with the routing policy rules being infringed and network nodes being attacked by malicious traffic.
[0089] In a fifth aspect, a communication method is provided, which can be executed by a communication device, or can also be executed by a chip or circuit for a communication device, and the present application does not limit this. For ease of description, the following is an example of execution by a communication device, and the communication device includes an operating system and a modem.
[0090] The method includes: an operating system receives a first parameter from an application, the first parameter including one or more of the following: a temporary identifier, a temporary key, or an access token; the operating system determines a second application identifier and a second application distinguishing parameter of the application based on the first parameter; the operating system sends the second application identifier to a modem; the modem determines that the application matches a routing policy rule based on the second application identifier and the first application identifier, wherein the routing policy rule match includes the first application identifier.
[0091] Optionally, the operating system can also determine a second application distinguishing parameter of the application based on the first parameter; the operating system sends the second application distinguishing parameter to the modem; the modem determines that the application matches the routing policy rule based on the second application distinguishing parameter and the first application distinguishing parameter, wherein the routing policy rule match includes the first application distinguishing parameter.
[0092] In combination with the fifth aspect, in certain implementations of the fifth aspect, the modem determines that the application matches the routing policy rule based on the second application identifier and the first application identifier, including: the modem determines that the second application identifier is the same as the first application identifier.
[0093] Optionally, the modem may also determine that the application matches the routing policy rule according to the second application distinguishing parameter and the first application distinguishing parameter, for example, the modem determines that the second application distinguishing parameter is the same as the first application distinguishing parameter.
[0094] According to the solution provided by the present application, the second application identifier (optionally, also including the second application distinguishing parameter) of the application is verified by the operating system to determine the authenticity or integrity of the application, thereby reducing or avoiding potential security risks that the terminal device may encounter during the route selection process. When the first application identifier and the second application identifier are the same, the modem determines that the application matches the route selection policy rule, thereby reducing or avoiding potential security risks that the terminal device may encounter during the route selection process.
[0095] In combination with the fifth aspect, in certain implementations of the fifth aspect, the operating system determines the second application identifier based on the first parameter, including: the operating system determines the second application identifier based on the temporary identifier and a mapping relationship, and the mapping relationship is used to characterize the association relationship between the second application identifier and the temporary identifier; or, the operating system determines the second application identifier based on a temporary key or an access token.
[0096] Optionally, the operating system can also determine the second application distinguishing parameter based on the first parameter, including: the operating system determines the second application distinguishing parameter based on the temporary identifier and the mapping relationship, and the mapping relationship is used to characterize the association between the second application distinguishing parameter and the temporary identifier; or, the operating system determines the second application distinguishing parameter based on a temporary key or access token.
[0097] In combination with the fifth aspect, in certain implementations of the fifth aspect, the operating system receives the first parameter from the application, including: when the application is activated or used, the operating system receives the first parameter from the application.
[0098] In combination with the fifth aspect, in certain implementations of the fifth aspect, before the operating system receives the first parameter from the application, the method also includes: the operating system generates the first parameter; the operating system sends the first parameter to the application; wherein, when the first parameter is a temporary identifier, the operating system stores the mapping relationship.
[0099] The beneficial effects of the fifth aspect and certain implementation methods of the fifth aspect can be referred to the relevant description of the first aspect, and will not be repeated here.
[0100] In a sixth aspect, a communication method is provided, which can be executed by a communication device, or can also be executed by a chip or circuit for a communication device, and the present application does not limit this. For ease of description, the following is an example of execution by a communication device, and the communication device includes an operating system.
[0101] The method includes: the application receives a first parameter from an operating system, the first parameter including one or more of the following: a temporary identifier, a temporary key, or an access token; when the application is activated or used, the application sends the first parameter to the operating system.
[0102] According to the solution provided in the present application, by sending the first parameter, the operating system can subsequently determine the authenticity or integrity of the application based on the verification of the second application identifier and the second application distinguishing parameter of the application, thereby reducing or avoiding potential security risks that the terminal device may encounter during the routing selection process.
[0103] In a seventh aspect, a communication method is provided, which can be executed by a communication device, or can also be executed by a chip or circuit used for a communication device, and this application does not limit this. For ease of description, the following description is taken as an example of execution by a communication device.
[0104] The method includes: a communication device sends an authentication request message to a user or an operator, the authentication request message includes a second application identifier of an application, and the authentication request message is used to request verification of the second application identifier; the communication device receives an authentication response message from the user, the authentication response message includes a verification result of the second application identifier; the communication device determines, based on the authentication response message, that the application matches the routing policy rule.
[0105] According to the solution provided in the present application, an authentication request message is sent to the user to request the user to verify the second application identifier, and the application and routing policy rule match is determined based on the results of user identification and verification, thereby reducing or avoiding potential security risks that the terminal device may encounter during the routing selection process.
[0106] Optionally, the authentication request message also includes a second application distinguishing parameter of the application, in which case the authentication request message is also used to request verification of the second application distinguishing parameter, and the authentication response message also includes a verification result of the second application distinguishing parameter. The communication device determines that the application matches the routing policy rule based on the second application identifier and the second application distinguishing parameter of the application.
[0107] In another implementation, the method includes: the communication device sends an authentication request message to a user or user, the authentication request message includes a second application identifier of the application, and the authentication request message is used to request whether the second application identifier matches the first application identifier in the routing policy rule; the communication device receives an authentication response message from the user, the authentication response message includes a first matching result between the second application identifier and the first application identifier; the communication device determines that the application matches the routing policy rule based on the authentication response message.
[0108] Optionally, the authentication request message also includes a second application distinguishing parameter of the application, and the authentication request message is also used to request whether the second application distinguishing parameter matches the first application distinguishing parameter in the routing selection policy rule. The authentication response message also includes a second matching result of the second application distinguishing parameter and the first application distinguishing parameter. The communication device determines that the application matches the routing selection policy rule based on the authentication response message.
[0109] According to the solution provided in the present application, by sending an authentication request message to the user, requesting the user to determine whether the second application identifier matches the first application identifier, and whether the second application distinguishing parameter matches the first application distinguishing parameter, relying on the results of user identification and verification, to determine the application and routing policy rule match, reducing or avoiding potential security risks that the terminal device may encounter during the routing selection process.
[0110] The beneficial effects of the seventh aspect and certain implementation methods of the seventh aspect can be referred to the relevant description of the first aspect, and will not be repeated here.
[0111] In an eighth aspect, a communication device is provided. The device includes: a processing unit, configured to, when an application is detected, determine that the application matches a routing policy rule according to a second application identifier and a second application distinguishing parameter of the application, wherein the routing policy rule includes a first application identifier and a first application distinguishing parameter; and the processing unit is further configured to associate the application with a session according to the routing policy rule.
[0112] 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.
[0113] In a ninth aspect, a communication device is provided, comprising: a processing unit, configured to obtain a routing policy rule, wherein the routing policy rule comprises a first application identifier and a first application distinguishing parameter; and a transceiver unit, configured to send the routing policy rule to the communication device.
[0114] 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.
[0115] In a tenth aspect, a communication device is provided. The device includes: a processing unit, which is used to determine whether the application matches the routing policy rule when an application is detected; a transceiver unit, which is used to send a request message to a network device, the request message includes an application identifier of the application, and the request message is used to request verification of whether the application matches the routing policy rule; the transceiver unit is also used to receive a response message from the network device.
[0116] 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.
[0117] In an eleventh aspect, a communication device is provided. The device includes: a transceiver unit, configured to receive a request message from a communication device, the request message including an application identifier of the application, and the request message is used to request verification of whether the application matches a routing policy rule; a processing unit, configured to determine that the application matches the routing policy rule according to the application identifier in the routing policy rule and the application identifier of the application; and the transceiver unit is further configured to send a response message to the communication device.
[0118] The transceiver unit can perform the receiving and sending processing in the fourth aspect, and the processing unit can perform other processing except receiving and sending in the fourth aspect.
[0119] In a twelfth aspect, a communication device is provided. The device includes: a transceiver unit, configured to receive a first parameter from an application, the first parameter including one or more of the following: a temporary identifier, a temporary key, or an access token; a processing unit, configured to determine a second application identifier and a second application distinguishing parameter of the application according to the first parameter; the second application identifier and the second application distinguishing parameter sent by the operating system to the modem; and the processing unit is further configured to determine that the application matches the routing policy rule according to the second application identifier and the first application identifier in the routing policy rule, the second application distinguishing parameter, and the first application distinguishing parameter in the routing policy rule.
[0120] The transceiver unit can perform the receiving and sending processing in the fifth aspect, and the processing unit can perform other processing except receiving and sending in the fifth aspect.
[0121] In a thirteenth aspect, a communication device is provided. The device includes: a transceiver unit, configured to receive a first parameter from an operating system, the first parameter including one or more of the following: a temporary identifier, a temporary key, or an access token; and the transceiver unit is further configured to send the first parameter to the operating system when the application is activated or used.
[0122] The transceiver unit can perform the receiving and sending processing in the aforementioned sixth aspect, and the processing unit can perform other processing except receiving and sending in the aforementioned sixth aspect.
[0123] In the fourteenth aspect, a communication device is provided. The device includes: a transceiver unit, which is used to send an authentication request message to a user or user, the authentication request message includes a second application identifier and a second application distinguishing parameter of the application, and the authentication request message is used to request the user to verify the second application identifier and the second application distinguishing parameter, or to determine whether the second application identifier matches the first application identifier in the routing policy rule, and whether the second application distinguishing parameter matches the first application distinguishing parameter in the routing policy rule; the transceiver unit is also used to receive an authentication response message from the user, the authentication response message includes a verification result of the second application identifier and the second application distinguishing parameter, or a first matching result of the second application identifier and the first application identifier, and a second matching result of the second application distinguishing parameter and the first application distinguishing parameter. Wherein, the communication device determines that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application, including: the communication device determines that the application matches the routing policy rule according to the authentication response message.
[0124] The transceiver unit can perform the receiving and sending processing in the aforementioned seventh aspect, and the processing unit can perform other processing in the aforementioned seventh aspect except receiving and sending.
[0125] In a fifteenth aspect, a communication device is provided, comprising a processor, the processor being coupled to a memory, the memory being used to store a computer program, the processor being used to call and run the computer program from the memory, so that the communication device executes the method in the above-mentioned first aspect, third aspect, fifth aspect or seventh aspect and any possible implementation thereof, or so that the network device executes the method in the above-mentioned second aspect or fourth aspect and any possible implementation thereof.
[0126] Optionally, the number of the processors is one or more, and the number of the memories is one or more.
[0127] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0128] Optionally, the communication device further comprises a transceiver.
[0129] In a sixteenth aspect, a communication system is provided, comprising one or more of a terminal device, a network device, an operating system, an application, or a modem.
[0130] In the seventeenth 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 seventh aspects and any possible implementation manner thereof.
[0131] In the eighteenth 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 terminal device equipped with the chip system executes the method in the first aspect, the third aspect, the fifth aspect or the seventh aspect and any possible implementation thereof, or a network device equipped with the chip system executes the method in the second aspect or the fourth aspect and any possible implementation thereof, or the application equipped with the chip system executes the method in the third aspect and any possible implementation thereof.
[0132] 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.
[0133] In the nineteenth aspect, a computer program product is provided, comprising: a computer program code, which, when executed, executes the method in the above-mentioned first to seventh aspects and any possible implementation manner thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0134] Figure 1 It is a structural diagram of the network architecture provided in an embodiment of the present application.
[0135] Figure 2 It is a flowchart of a UE receiving a URSP provided in an embodiment of the present application.
[0136] Figure 3 It is a flow chart of the communication method 300 provided in an embodiment of the present application.
[0137] Figure 4 It is a flow chart of the communication method 400 provided in an embodiment of the present application.
[0138] Figure 5 It is a flow chart of the communication method 500 provided in an embodiment of the present application.
[0139] Figure 6 It is a flow chart of the communication method 600 provided in an embodiment of the present application.
[0140] Figure 7 It is a flow chart of the communication method 700 provided in an embodiment of the present application.
[0141] Figure 8 It is a flow chart of the communication method 800 provided in an embodiment of the present application.
[0142] Fig. 9 It is a flow chart of the communication method 900 provided in an embodiment of the present application.
[0143] Fig.10 It is a flow chart of the communication method 1000 provided in an embodiment of the present application.
[0144] Fig.11 It is a schematic diagram of the structure of the communication device 2000 provided in an embodiment of the present application.
[0145] Fig.12 It is a structural diagram of the communication device 3000 provided in an embodiment of the present application.
[0146] Fig.13 It is a schematic diagram of the structure of the chip system 4000 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0147] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0148] 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.
[0149] 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 fifth-generation mobile communication (5th-generation, 5G) networks, fourth-generation mobile communication (4th-generation, 4G) networks, and other future communication systems, such as (6th-generation, 6G) networks, etc.
[0150] For the convenience of description, the embodiments of the present application will be described using PLMN or 5G network as an example.
[0151] Figure 1 1 is a schematic diagram of the structure of the network architecture 100 of the embodiment of the present application, taking the 5G network architecture based on the service-based architecture SBA in the non-roaming scenario defined in the 3GPP standardization process as an example. Figure 1 As shown, the network architecture may include three parts, namely, the terminal equipment part, the data network DN part and the operator network PLMN part. The functions of the network elements of each part are briefly described below.
[0152] 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) 120. 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 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 or the Internet of Vehicles, a terminal in 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.
[0153] The operator network PLMN part may include but is not limited to a (radio) access network ((R)AN) 120 and a core network (CN) part.
[0154] (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 the long term evolution (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 systems using different wireless access technologies, the names of the devices with access network device functions may be different. For the convenience of description, in all embodiments of the present application, the above-mentioned devices that provide wireless communication functions for the terminal device 110 are collectively referred to as access network devices or RAN or AN for short. It should be understood that this document does not limit the specific type of access network equipment.
[0155] 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, application function (AF) 136, authentication server function (AUSF) 137, access and mobility management function (AMF) 138, session management function (SMF) 139.
[0156] 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 DNs 140, and multiple services may be deployed on the DN 140, which may provide data and / or voice services to the terminal device 110. For example, the 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 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 DN 140 may be the 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 DN 140 through the operator network, and use the operator services deployed on the DN 140, and / or services provided by a third party.
[0157] The following is a brief description of the NF functions included in CN.
[0158] 1. UPF 130 is a gateway provided by the operator and is the gateway for the operator network to communicate with DN 140. UPF network function 130 includes user plane related functions such as packet routing and transmission, packet detection, service usage reporting, quality of service (QoS) processing, legal monitoring, uplink packet detection, downlink packet storage, etc.
[0159] 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.
[0160] 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.
[0161] 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.
[0162] 5. UDM 134 is a control plane function provided by the operator, which is responsible for storing the subscriber permanent identifier (SUPI) of the subscriber in the operator network, the generic public subscription identifier (GPSI) of the subscriber, the credential and other information. 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 the 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, etc. The credential of the above-mentioned subscriber 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 permanent identifiers, credentials, security contexts, authentication data (cookies), and tokens are equivalent to verification / authentication and authorization-related information, and are not distinguished or restricted in the embodiments of the present application for the sake of convenience of description.
[0163] 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.
[0164] 7. AF 136 is a control plane function provided by the operator. It mainly provides corresponding services by interacting with other NFs in the PLMN, such as providing roaming UE visit network selection information, guiding the routing of data flows, accessing NEF 131, etc. AF can be deployed by the operator inside the PLMN or outside the operator network.
[0165] 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.
[0166] 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.
[0167] 10. SMF 139 is a control plane network function provided by the operator network, responsible for managing the protocol data unit PDU session of the terminal device 110. The PDU session is a channel for transmitting PDUs, and the terminal device transmits PDUs to each other with the 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.
[0168] 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.
[0169] Figure 1Where Nnef, Nnrf, Npcf, Nudm, Nudr, Naf, 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.
[0170] 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 .
[0171] It should be understood that the network architecture 100 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 thereto, and any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiment of the present application. In this service-based architecture, the PLMN can combine part or all of the network functions in an orderly manner as needed according to the requirements of specific scenarios, realize the customization of network capabilities and services, and thus deploy dedicated networks for different services, that is, realize 5G network slicing. Network slicing technology can enable operators to respond to customer needs more flexibly and quickly, and support flexible allocation of network resources.
[0172] Network slicing (also referred to as slicing) can be simply understood as dividing the operator's physical network into multiple virtual end-to-end networks. Each virtual network (including equipment, access networks, transmission networks and core networks within the network) is logically independent to prevent any virtual network failure from affecting other virtual networks. In order to meet diverse needs and isolation between slices, relatively independent management and operation and maintenance of services are required, and tailored business functions and analysis capabilities must be provided. Instances of different service types can be deployed on different network slices, and different instances of the same service type can also be deployed on different network slices. A slice can be composed of a group of NFs and / or subnetworks. For example, Figure 1 The subnetwork (R)AN 150, AMF 137, SMF 138, and UPF 139 in the CAN bus can form a slice. It can be understood that Figure 1 Each network function in the diagram is only schematically drawn, but in actual network deployment, there can be multiple or even dozens of each network function or subnetwork. Many slices can be deployed in a PLMN, and each slice can have different performance to meet the needs of different applications and vertical industries. Operators can "tailor-make" a slice according to the needs of customers in different vertical industries.
[0173] Usually, the information identifying the slice is network slice selection assistance information (NSSAI). The NSSAI is actually a list or set, which includes one or more single network slice selection assistance information (single NSSAI, i.e. S-NSSAI). One S-NSSAI is used to identify a network slice, that is, it can be understood that S-NSSAI is the identification information of the slice.
[0174] 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.
[0175] 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.
[0176] For the convenience of explanation, in the embodiment of the present application, the session management function SMF 139 is referred to as SMF, the terminal device 110 is referred to as UE, and the policy control function PCF 133 is referred to as PCF. That is, the SMF described later in the embodiment of the present application can be replaced by the session management function, the PCF can be replaced by the policy control function, and the UE can be replaced by the terminal device.
[0177] To facilitate understanding of the technical solution of the present application, a simple description of the UE route selection policy (URSP) is first given.
[0178] URSP can be pre-configured in the UE by the operator or dynamically issued to the UE through the PCF. Furthermore, the UE determines the path through which its data traffic is sent from the network according to the URSP rules in the URSP. For example, the UE can select a PDU session that is currently connected to a DN through the URSP rules to send its data traffic; or, the UE can also send its data traffic by establishing a new PDU session in a specific network slice.
[0179] It should be understood that URSP is generally defined as a list in the standard, which includes one or more rules, such as URSP rule 1 shown in Table 1, different rules are given different priorities, and a series of parameters related to routing. Specifically, a URSP rule includes the following three (or three groups) of parameters: rule precedence, traffic descriptor, and route selection descriptor list.
[0180] (1) Rule priority is a single value parameter representing the priority order.
[0181] (2) Traffic descriptors are used to determine the attributes of traffic, including one or a group of sub-parameters: application descriptor, Internet protocol (IP) descriptor, domain descriptor, non-IP descriptor, data network name (DN Name, DNN), and connection capabilities. Among them, the application descriptor is used to identify the application and its operating system (OS). The OS includes two parameters: operating system ID (OSId) and operating system application ID (OSAppId), which respectively identify the UE operating system (OS) running the application and the application ID. Since this application descriptor is not sufficient to uniquely identify the traffic of the application, this application recommends the introduction of other identification information, such as information such as the App Store where the application is installed. Generally, applications published in an application store can be uniquely identified in the application store. It should be noted that the operating system ID (OSId) and operating system application ID (OSAppId) belong to the application descriptor and are used to distinguish different applications. At the same time, they are also parameters of the traffic descriptor, which can also be understood as being used to distinguish different traffic or traffic of different applications. This application does not make a strict distinction between being used to distinguish applications or being used to distinguish application traffic.
[0182] (3) The routing descriptor list includes one or more routing descriptors, each of which may include: routing descriptor priority, routing components, and routing confirmation criteria. The routing components may include sub-parameters, such as network slice selection, DNN selection, etc., to limit the route (slice, DN, etc.).
[0183] When the UE newly detects an application or when the UE detects a new application, for example, the UE can detect the application by identifying the header or payload of the application traffic data packet through the application detection filter, or the UE can also use other methods to detect. The present application does not limit the method of how the UE detects. The UE evaluates whether the application matches the traffic descriptor in the URSP rule, that is, determines whether the URSP rule is applicable or matches the application. If the application matches the traffic descriptor, the UE selects the corresponding routing descriptor in the URSP rule to route the traffic of the application. In other words, if the routing descriptor matches an existing PDU session, the UE can associate the application with the PDU session, that is, the UE can map the traffic of the newly detected application to the slice or data network in the URSP rule through the PDU session when it is determined that the newly detected application matches the URSP rule. If the routing descriptor does not match the existing PDU session, the UE will try to establish a new PDU session to match the routing descriptor, that is, the UE can initiate a new PDU session establishment process to the network side. When the newly established PDU session is established, the newly established PDU session is matched with the above routing descriptor, and the newly detected application is associated with the newly established PDU session. Alternatively, the UE can also match the modified PDU session with the above routing descriptor through the PDU session modification process, and associate the newly detected application with the modified PDU session. It should be noted that this application does not specifically limit the manner in which the newly detected application is associated with the PDU session (for example, using an existing PDU session, or using a newly created or modified PDU session).
[0184] For the convenience of description, unless otherwise specified, the following unified description is that the UE associates the application to the session, including the communication device matching the newly detected application to the existing PDU session, or matching the newly detected application to the newly created or modified PDU session.
[0185] For example, assume that the UE has installed an application whose application ID is App1. The operator sends a URSP to the UE through the PCF, including a URSP rule as shown in Table 1. When the UE runs the application App1, the UE triggers the identification of the application App1. If the UE correctly identifies the application ID as App1, the UE can evaluate whether the URSP rule matches the application. As shown in Table 1, the application App1 matches the application descriptor in rule 1.
[0186] =App1, and further, the UE can perform corresponding routing selection for the application App1 according to the URSP rule 1. For example, the UE maps the traffic of the application App1 to the corresponding slice S-NSSAI-1 and the data network DNN1. Optionally, if the UE has installed other applications, such as the application ID App2, the operator can send the URSP rule 2 corresponding to the application App2 to the UE through the PCF. When the UE runs App1 and App2, the UE can map the traffic of the applications App1 and App2 to the corresponding slices and data networks according to the priorities of URSP rule 1 and URSP rule 2, respectively, when it determines that App1 matches URSP rule 1 and App2 matches URSP rule 2. Optionally, if there is currently a suitable PDU session to connect App1 and App2 to the corresponding slices and data networks respectively, the UE can use the existing PDU session to carry the traffic of the two applications; if there is currently no suitable PDU session to connect App1 and App2 to the corresponding slices and data networks respectively, the UE can carry the traffic of the two applications through a newly created or modified PDU session.
[0187] Table 1
[0188]
[0189] Optionally, when the UE newly detects an application (for the sake of distinction, the application is referred to as the "current application"), it evaluates whether the traffic of the current application matches the traffic descriptor in the URSP rule to determine whether to execute the routing selection rule in the URSP rule. If the traffic descriptor includes an application descriptor, that is, OSAppId and OSId, the UE obtains the application ID of the current application (which may be referred to as the "current application ID") and compares it with the application ID (which may be referred to as the "target application ID") of the application included in the URSP rule (for the sake of distinction, the application is referred to as the "target application") to determine whether the current application ID matches the target application ID.
[0190] Figure 21 is a flow chart of a UE receiving a URSP according to an embodiment of the present application, and an application App1 is installed on the UE as an example for explanation. Figure 2 As shown, the components inside the UE include an OS, App1 and a modem, the modem includes a protocol stack, and Intf-1, Intf-3, and Intf-4 represent interfaces between the OS and App1, the OS and the modem, and the OS and a user using the UE, respectively. It should be understood that Figure 2 The internal structure of the UE shown is only an optional implementation method, and this application does not make any specific limitation on this.
[0191] Exemplarily, the network PLMN (such as PCF) can send a URSP to the UE, and the UE can store the URSP after receiving it. The specific interpretation of the URSP and the URSP rules can refer to the above-mentioned related instructions. For example, the URSP shown in Table 1 includes 1 URSP rule and the corresponding application descriptor is App1. When the UE runs an application whose current application ID is App1, App1 sends its application ID (i.e., App1) to the OS through the interface Intf-1, and then the OS sends the current application ID to the modem through Intf-3. Optionally, the way in which the current application sends a message to the OS can be that App1 actively sends its application ID to the OS, or it can be based on a request message triggered by the OS, and App1 sends its application ID to the OS through a response message. This application does not make specific limitations on this. When the modem obtains the current application ID (such as App1), it can be compared with the target application ID contained in the stored URSP rule (such as App1 shown in Table 1). If the two are the same (for example, current application ID = App1 = target application ID), the UE can map the detected traffic of the application App1 to the slice S-NSSAI and data network DNN corresponding to the application descriptor = App1 in the URSP rule.
[0192] The above describes the process of the UE determining whether the URSP rule matches the newly detected application, that is, determining whether the target application ID in the URSP rule is the same as the current application ID. In this implementation, there may be the following two security risks.
[0193] (1) Impersonate the target application by installing an application with the same application ID as the target application.
[0194] For applications installed on UE, their application IDs are generated by developers during development. There are no unified regulations for naming application IDs, nor is there a unified ID protection mechanism. Therefore, under the same operating system (ie, the OSId is the same), it may not be possible to ensure that the application ID is unique.
[0195] For example, the newly installed application of the UE is not the target application to be matched in the URSP policy, which is equivalent to the UE installing a "fake" application, which uses the same application ID as the "real" application (i.e., the target application) indicated in the URSP to be matched. For another example, an attacker can develop a "fake" application and deliberately set the ID of the "fake" application to the same application ID as the "real" application (i.e., the target application). These "fake" applications will pose potential security risks to the network using the URSP, such as the traffic of the "fake" application will be mistakenly arranged to be transmitted on the network resources of the "real" application, thereby occupying and consuming the network resources of the "real" application, causing the resources of the "real" application to be damaged, and in severe cases, even causing the "real" application to be denied service (Denial of Service, DoS). Alternatively, the attacker can also use this method of impersonating the target application ID to send the malicious traffic of the "fake" application to the network nodes storing the "real" application, making these network nodes face the risk of being attacked by malicious traffic.
[0196] (2) Impersonate the target application by transmitting a fake application ID (the same as the target application ID).
[0197] The UE's modem or network layer / network interface layer (hereinafter referred to as "modem") can obtain the application ID through the UE's OS. For example, the current application sends its application ID (i.e., the current application ID) to the OS, and then the OS sends the current application ID to the modem. Further, the modem compares the current application ID with the target application ID included in the URSP. For a malicious application, it can send a false application ID when sending it to the OS, such as a fake application ID that is the same as the "real" target application ID included in the URSP. The modem will send the detected traffic of the malicious application as the traffic of the "real" application (i.e., the target application ID) to the network, causing the network resources of the "real" application to be damaged, or causing the network nodes to be attacked by malicious traffic.
[0198] In summary, in the application identification process for UE routing selection, there may be a problem of target application being counterfeited, resulting in the infringement of network resources of the target application and potential security risks in network communication.
[0199] In view of this, the present application provides a communication method and a communication device, which add application differentiation parameters in the communication of the communication device or add verification steps in the network equipment, so that the verification steps of the communication device and / or the network equipment can effectively identify or verify whether the application matches the routing policy rules, and ensure that the communication device associates the real application to the session according to the routing policy rules, thereby avoiding the network resources of the application in the routing policy rules from being infringed and reducing the risk of network nodes being attacked by malicious traffic.
[0200] In order to facilitate understanding of the embodiments of the present application, the following points are explained:
[0201] 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.
[0202] 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.
[0203] 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.
[0204] 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.
[0205] 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.
[0206] 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.
[0207] 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.
[0208] 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.
[0209] Seventh, in this application, "protocol" may refer to a standard protocol in the field of communications, such as 5G protocol, NR protocol, and related protocols used in future communication systems, which are not limited in this application. "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.
[0210] 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.
[0211] Ninth, in this application, "communication" can also be described as "data transmission", "information transmission", "data processing", etc. "Transmission" includes "sending" and "receiving".
[0212] Tenth, in the present application, no strict distinction is made between the description of the term "application" or "application traffic". For example, evaluating whether an "application" matches a traffic descriptor in a routing policy rule can also be understood as evaluating whether "application traffic" matches a traffic descriptor in a routing policy rule. Similarly, the present application does not make a strict distinction between whether the second application distinguishing parameter is used to distinguish "applications" or to distinguish "application traffic", and it should be understood that both are applicable. For example, if it is used to distinguish "applications", the second application distinguishing parameter can be classified as a parameter of the application descriptor or an attribute of the application like the second application identifier; and if it is used to distinguish "application traffic", the second application distinguishing parameter can be classified as a parameter of the traffic descriptor or an attribute of the traffic, and the present application does not make any distinction between the two.
[0213] 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. In the embodiment of the present application, an application distinguishing parameter (AppDistinguisher, AppD) of a newly added application (such as App1) is used to uniquely identify or identify the application together with the application identifier of the application, and the application identifier of the application or the application distinguishing parameter of the application is verified through a communication device or a network device to ensure effective identification of the authenticity of the application and prevent the application from being maliciously tampered with, resulting in the risk of network resources of the application in the URSP rule being infringed and suffering from malicious traffic attacks.
[0214] For ease of description, in the embodiments of the present application, the application differentiation parameter in the URSP rule is uniformly referred to as the first application differentiation parameter, and the application differentiation parameter corresponding to the application detected by the communication device is referred to as the second application differentiation parameter. Similarly, the application identifier in the URSP rule is referred to as the first application identifier, and the application identifier corresponding to the application detected by the terminal device is referred to as the second application identifier, and the relevant parts are not repeated below.
[0215] Figure 3 3 is a flow chart of the communication method 300 provided in the embodiment of the present application. Figure 3 As shown, the communication device and the network device are used as the execution subjects to interact, and the method includes the following multiple steps. For the parts not described in detail, reference can be made to the existing protocol. It should be noted that the steps of the method 300 may be optional, that is, when the application is activated or used, or when the communication device detects the application, steps S310 to S340 are not necessarily executed. For example, step S310 or S320 may be optional. When the application is activated or used multiple times, steps S340 and S340 can be executed without repeating steps S310 and S320.
[0216] S310, the network device obtains a routing selection policy rule.
[0217] The routing selection policy rule includes a first application identifier and a first application distinguishing parameter.
[0218] Exemplarily, the routing policy rules include, but are not limited to, rule priority, traffic descriptor, and routing descriptor list. The specific meanings of the parameters can be found in the above related descriptions, and will not be repeated here for the sake of brevity.
[0219] Exemplarily, the first application identifier of an application may refer to the AppID of the application (such as AppID#1), and the first application distinguishing parameter of the application may be AppD (such as AppD#1). The first application distinguishing parameter is used to uniquely identify or identify the application together with the first application identifier of the application. The first application distinguishing parameter includes one or more of the following: an identifier of the application's installer or an identifier of the binding platform, an identifier of the application's application source, a name of the application's installation file package, an application user identifier, an identifier of the application's developer, an identifier of the public land mobile network associated with the application, or an identifier of an application function for generating routing policy rules. It should be noted that the "identification" here may refer to a name, an identifier, an identity, a parameter value, etc. For example, the binding platform identifier may also be referred to as a binding platform name, a binding platform identifier, etc. For the sake of convenience of description, this application is collectively referred to as an identifier.
[0220] (1) The identifier of the application's installer or the identifier of the binding platform (Installer). For example, if an application is downloaded and installed from the Google Play Store, the value of its Installer parameter is "com.android.vending", which means that the identifier of the "installer" or "binding platform" of the application is Google Play; for another example, if an application is downloaded and installed from the Huawei AppGalery, the value of its Installer parameter is "com.Huawei.appmarket", which means that the identifier of the "installer" or "binding platform" of the application is HuaweiAppGalery.
[0221] (2) Application source identifier of the application. This parameter represents the source of an application, and its value is usually "pre-installed" (from pre-installation), "Google Play" (from Google Store), or "unknown" (from unknown source).
[0222] (3) The name of the application installation file package (Package name). This name is usually unique within a single platform.
[0223] (4) Application user ID (App UID). This ID is not necessarily unique within a platform.
[0224] Optionally, the first application distinguishing parameter may be a 3GPP related parameter. For example, the 3GPP related parameter may be a PLMN ID, an AF ID, or any other parameter defined by an operator or service provider.
[0225] Optionally, preprocessing of the first application distinguishing parameter is added, such as mapping or masking the first application distinguishing parameter, to avoid the risk of sensitive information leakage in the 3GPP system.
[0226] S320, the network device sends a routing policy rule to the communication apparatus, and correspondingly, the communication apparatus receives the routing policy rule from the network device.
[0227] Exemplarily, the session management function network element sends the routing policy rule to the communication device, or the policy control function network element forwards the routing policy rule to the communication device through the session management function network element. Further, the communication device can determine through which path the data traffic of the application detected by it is sent according to the routing policy rule.
[0228] Optionally, the routing policy rules may also be pre-configured in the communication device by the operator.
[0229] S330: When the communication device detects an application, the communication device determines that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application.
[0230] Optionally, the specific implementation of this step may be that the communication device determines whether the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application, and if so, performs the following step S340, and if not, does not map the detected application to the slice and network in the routing policy rule. The specific determination of whether the application matches the routing policy rule is as follows.
[0231] In an embodiment of the present application, the application refers to an application newly detected by the communication device, corresponding to the current application above. When it is subsequently determined that the application matches the routing selection policy rule, it means that the application in the routing selection policy rule (i.e., the target application above) and the application detected by the communication device (i.e., the current application above) are the same application.
[0232] It should be understood that the communication device detecting the application may mean that the communication device is installing or running the application, or the application is transmitting data, or the communication device detects the data or traffic of the application, etc. In addition, the communication device determining that the application matches the routing policy rule may mean that the communication device determines that the second application identifier of the application is the same as the first application identifier in the routing policy rule, and / or the second application distinguishing parameter of the application is the same as the second application distinguishing parameter in the routing policy rule, and / or other parameters corresponding to the data, traffic, etc. on the application (such as Internet Protocol address (IP Address), DNN, etc.) are the same as the parameters in the routing policy rule.
[0233] Exemplarily, the second application identifier of the application may refer to the AppID of the application (such as AppID#2), and the second application distinguishing parameter of the application may be AppD (such as AppD#2). Among them, the second application distinguishing parameter includes one or more of the following: the identifier of the application's installer or the identifier of the binding platform, the identifier of the application's application source, the name of the application's installation file package, the application's user identifier, the identifier of the application's developer, the identifier of the public land mobile network associated with the application, or the identifier of the application function used to generate routing policy rules. For specific parameter interpretations, please refer to the relevant description of the first application distinguishing parameter in the above step S310. For the sake of brevity, it will not be repeated here. It should be noted that the above parameters are only examples given for ease of understanding and should not constitute any limitation on the technical solution of the present application. As long as the parameters can further distinguish the application, they belong to the scope of protection of the present application.
[0234] In the embodiment of the present application, the number of URSP rules is not limited, and can be one or more. Therefore, in the above step S320, the communication device can receive one or more URSP rules from the network device, such as URSP rule 1 and URSP rule 2, each URSP rule can correspond to an application, and each URSP rule includes a rule priority, a traffic descriptor, and a routing descriptor list.
[0235] In a possible implementation manner, the communication device determines that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application.
[0236] Exemplarily, assuming that the communication device receives two URSP rules, including URSP rule 1 and URSP rule 2, the communication device determines whether the application matches URSP rule 1 and URSP rule 2 respectively. For example, the communication device determines whether the first application identifier in URSP rule 1 and the second application identifier of the detected application are the same, and determines whether the first application distinguishing parameter in URSP rule 1 and the second application distinguishing parameter of the detected application are the same. Specifically, if the first application identifier in URSP rule 1 and the second application identifier of the application are the same, and the first application distinguishing parameter in URSP rule 1 and the second application distinguishing parameter of the application are the same, the communication device determines that the application matches URSP rule 1; conversely, if the first application identifier in URSP rule 1 and the second application identifier of the application are not the same, and / or the first application distinguishing parameter in URSP rule 1 and the second application distinguishing parameter of the application are not the same, the communication device determines that the application does not match URSP rule 1. Similarly, the communication device determines whether the first application identifier in URSP rule 2 and the second application identifier of the application are the same, and determines whether the first application distinguishing parameter in URSP rule 2 and the second application distinguishing parameter of the application are the same. If the first application identifier in URSP rule 2 is the same as the second application identifier of the application, and the first application distinguishing parameter in URSP rule 2 is the same as the second application distinguishing parameter of the application, the communication device determines that the application matches URSP rule 2; otherwise, the communication device determines that the application does not match URSP rule 2.
[0237] In one example, a modem or operating system of a communication device receives a second application identifier and a second application distinguishing parameter from an application, and receives URSP rule 1 from a network device, carrying a first application identifier and a first application distinguishing parameter. Assuming that the first application identifier and the first application distinguishing parameter are AppID#1 and AppD#1, respectively, and the second application identifier and the second application distinguishing parameter are AppID#2 and AppD#2, respectively, the communication device determines whether the application and the routing policy rule match, that is, compares whether AppID#1 and AppID#2 are the same, and compares whether AppD#1 and AppD#2 are the same. If AppID#1 = "weixin" and AppID#2 = "QQ", and the two are different, the communication device believes that the application and the routing policy rule do not match; if AppID#1 = AppID#2 = "weixin", further compare whether AppD#1 and AppD#2 are the same. Assuming that the application distinction parameter is determined according to the Installer, for example, the Installer of AppD#1 is "Huawei AppGalery" and the Installer of AppD#2 is "Google Play", and the two are different, the communication device believes that the application and the routing policy rule do not match; for another example, the Installer of AppD#1 is "Huawei AppGalery" and the Installer of AppD#2 is "HuaweiAppGalery", and the two are the same, the communication device believes that the application and the routing policy rule match, and then the communication device executes URSP rule 1 associated with the application; Assuming that the application distinction parameter is determined according to the Installer and Application source, for example, the Installer of AppD#1 is "Huawei AppGalery", Application source is "pre-installed", the Installer of AppD#2 is "Google Play", and the Application source is "unknown", and the two are different, the communication device believes that the application and routing selection policy rules do not match; for example, the Installer of AppD#1 is "Huawei AppGalery" and the Application source is "Google Play", and the Installer of AppD#2 is "Huawei AppGalery" and the Application source is "Google Play", and the two are the same, the communication device believes that the application and routing selection policy rules match.
[0238] It should be understood that the above is only an example for ease of understanding and should not constitute any limitation on the technical solution. In addition, the present embodiment does not limit the order of comparing AppID#1 and AppID#2, and comparing AppD#1 and AppD#2.
[0239] Optionally, before determining whether the detected application matches the URSP rule, if the App ID#2 and AppD#2 of the application are securely protected, such as being digitally signed, key encrypted, or hashed, the communication device may perform integrity verification or authenticity verification on App ID#2 and AppD#2, and if the integrity or authenticity verification passes, that is, if it is determined that App ID#2 and AppD#2 have not been tampered with, the communication device determines whether the detected application matches the URSP rule based on App ID#2 and AppD#2, and the specific implementation method is as described above. If the verification fails or the verification does not pass, the communication device does not need to further determine whether the application matches the URSP.
[0240] Among them, the communication device performs authenticity or integrity verification on App ID#2 and AppD#2, which can be understood as the communication device obtaining or determining the real App ID#2 and AppD#2, or determining whether App ID#2 and AppD#2 are forged or tampered with by performing integrity verification on App ID#2 and AppD#2 of the application.
[0241] It should be noted that the authenticity check or verification of the logo generally refers to the authentication of the logo or confirmation that the logo has not been forged, while the integrity check of the logo refers to the verification that the logo has not been tampered with. Both ensure that the logo is the true logo of the application. For the sake of ease of description, this application does not make a strict distinction between the two unless otherwise specified.
[0242] The following specifically describes the implementation method of the communication device performing authenticity or integrity verification on the second application identifier and the second application distinguishing parameter (eg, App ID#2 and AppD#2).
[0243] In one approach, authenticity or integrity checking involves two steps:
[0244] (1) App Store authenticated app (e.g. App ID#2 and AppD#2).
[0245] It should be understood that after an application is developed, the application developer or application publisher will usually use its private key to digitally sign and / or integrity protect the relevant file package (including one or more files) of the application, and the App Store will use the public key corresponding to the private key to verify the digital signature and / or integrity of the application file package (that is, to verify whether it has been forged or tampered with). Among them, the App Store can pre-store the above public key, or it can also obtain the public key by receiving its digital certificate from the application developer or application publisher. For the latter, the App Store also has the ability to verify the certificate issuer, such as pre-obtaining the public key used to verify the certificate issuer, and further verifying the digital signature of the certificate based on the public key. This application does not limit the method by which the App Store obtains the public key of the application developer, application publisher or certificate issuer.
[0246] Exemplarily, the application developer or application publisher first uses a hash function (hash function or called hash function) to perform a hash operation on the file package of the application. For example, the hash function can be HMAC-SHA256. Then, the application developer or application publisher uses its private key to encrypt the hash value (hash value or hash value, also called digest) generated after the operation, and the encrypted ciphertext is sent to the App Store together with the file package of the application. The above process of generating a hash value based on the file package can be referred to as hash processing of the file package. The hash processing can also include the above encryption process, which is not limited in this application.
[0247] After receiving the application file package and ciphertext, the App Store uses the same hash function (such as HMAC-SHA256) to perform a hash operation on the application file package to obtain a hash value. On the other hand, it uses the stored / obtained public key to decrypt the received ciphertext to obtain another hash value. The App Store verifies the authenticity or integrity of the application file package by comparing whether the two hash values are the same, that is, it determines whether the application comes from a genuine application developer or application publisher (that is, it has the corresponding private key and uses the private key to sign the application).
[0248] It should be noted that the process of App Store verifying the application by verifying the digital signature is only an example given for ease of understanding and does not constitute any limitation on the technical solution. Optionally, App Store may also have other verification methods, such as a message authentication code based on a hash operation (i.e., Hash-based Message Authentication Code, HMAC) or simply verification based on a hash operation. For example, an application developer or application publisher can use a shared key and an HMAC function to operate the file package of the application to generate a message authentication code (message authentication code, MAC) (the process of generating a message authentication code can also be called hash processing of the file package, which is not limited in this application), and send it to the App Store together with the file package of the application. The App Store uses the same shared key and HMAC function to perform a hash operation on the file package of the application, and compares the operation result with the received MAC. If the two are the same, it can be determined that the digital signature verification and / or integrity verification of the file package of the application has passed. This application does not limit the way in which the App Store obtains the shared key. For another example, if a trust relationship is established between the App Store and the application developer, based on the trust relationship, the App Store defaults that the application has passed verification.
[0249] It should be further explained that the verification of the target application by the App Store is not within the control scope of the communication device itself, that is, the UE does not perform additional operations. In an embodiment of the present application, if App ID#1 in the URSP rule includes App Store related parameters (such as Installer), the App Store indicated by the parameter can be assumed to have verified the target application by default, or to have established a trust relationship with the developer of the target application or the publisher of the target application, and its target application can be assumed to have been verified in the above step (1) by default. In actual applications, operators can specify the App Stores they trust through AppStore related parameters (such as Installer) in the URSP, that is, these App Stores verify the target application by default.
[0250] (2) OS verification application platform / store (App Store).
[0251] There are many ways for the OS of the communication device to verify the App Store, and this application does not limit the verification method.
[0252] For example, the App Store may be pre-installed on the communication device and is verified by default. For another example, the public key for verifying the App Store may be pre-configured on the communication device, or the communication device may obtain the public key from the certificate in the installation file package when installing the App Store. The present application does not limit the manner in which the communication device obtains the public key of the App Store. Optionally, if the communication device also verifies the authenticity of the App Store's certificate, the communication device also obtains the public key of the issuer of the App Store's certificate, and verifies the authenticity of the App Store's certificate through the public key of the issuer of the certificate. The present application also does not limit the manner in which the UE obtains the public key of the issuer of the App Store's certificate. Among them, the specific implementation method of the communication device's OS verifying the App Store can refer to the relevant description of the digital signature verification process described in step (1) above, that is, replacing the digital signature of the application developer or application publisher in step (1) above with the digital signature of the App Store, and replacing the execution subject of the verification in step (1) above with the OS. For the sake of brevity, it is not repeated here.
[0253] In another way, the communication device (or OS) can directly verify the application. For example, the file package of the current application includes the digital certificate of the application. The digital certificate includes a public key for verifying the integrity of the application, information about the certificate authority (CA) that issued the certificate, and the signature of the CA on the public key. It should be understood that the prerequisite for using this method is that the communication device can trust the CA, or the communication device can verify the authenticity of the CA. Further, the communication device can use the public key of the application in the certificate to verify the integrity of the file package (including App ID, or AppID and AppD). At the same time, the communication device can verify the authenticity of the public key through the CA information in the certificate. The specific implementation method of the communication device directly verifying the application digital certificate can refer to the relevant description of the digital signature verification process described in step (1) above, and for the sake of brevity, it is not repeated here. It should be noted that the present application does not specifically limit the method for the communication device to verify AppID, or AppID and AppD.
[0254] S340: The communication device associates the application with the session according to the routing policy rule.
[0255] It should be understood that when a communication device newly detects an application, it evaluates whether the application matches the traffic descriptor in the routing policy rule, that is, it determines whether the routing policy rule is applicable or matches the application. If the application matches the traffic descriptor, the communication device selects the corresponding routing descriptor in the routing policy rule to route the traffic of the application. In other words, if the routing descriptor matches an existing PDU session, the UE can associate the application with the PDU session, that is, the UE can map the traffic of the newly detected application to the slice or data network in the URSP rule through the PDU session when it is determined that the newly detected application matches the URSP rule. If the routing descriptor does not match the existing PDU session, the UE will try to establish a new PDU session to match the routing descriptor, that is, the UE can initiate a new PDU session establishment process to the network side. After the newly established PDU session is established, the newly established PDU session is matched with the above-mentioned routing descriptor, and the newly detected application is associated with the newly established PDU session. Alternatively, the UE may also match the modified PDU session with the above-mentioned routing descriptor through the PDU session modification process, and associate the newly detected application with the modified PDU session. That is, associating the application with the PDU session may mean that the communication device may determine through which path its data traffic is sent according to the matching routing policy rules. For example, an existing session connected to a DNN is selected through the routing policy rules to send its data traffic; or, its data traffic is sent by establishing a new session in a specific network slice.
[0256] The solution provided by the present application adds application distinguishing parameters during the interaction between the network device and the communication device, that is, adds an identification and verification process to the newly detected application of the communication device, so that the communication device adds a step of verifying the application distinguishing parameters on the basis of verifying the application identifier, which can more effectively identify or verify whether the application matches the routing policy rule. For example, the newly installed application of the communication device is not an application in the matching URSP rule, but because it has the same application identifier, it may be mistaken for a "real" application. These "fake" applications will cause potential security risks to the network using the URSP rule, such as the traffic of the "fake" application will be mistakenly arranged to be transmitted on the network resources of the "real" application, thereby occupying and consuming the network resources of the "real" application in the routing matching rule, resulting in the resources of the "real" application being damaged, and in severe cases, even causing the "real" application to be denied service (Denial of Service, DoS), or the attacker sends the malicious traffic of the "fake" application to the network node storing the "real" application, so that these network nodes are at risk of being attacked by malicious traffic. Then, based on the newly added application distinguishing parameters for verification and identification in this way, the risk of network resources of the application in the routing policy rule being damaged and network nodes being attacked by malicious traffic can be reduced or avoided.
[0257] Figure 4 FIG. 4 is a flow chart of a communication method 400 provided in an embodiment of the present application. It should be understood that the communication device includes a modem and an operating system (OS), such as Figure 4 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocol. It can be understood that the modem can also be replaced by other parts in the communication device, and this application does not limit this.
[0258] S410, the application sends a first parameter to the operating system, and correspondingly, the operating system receives the first parameter from the application.
[0259] The first parameter includes at least one of the following: a temporary identifier, a temporary key, or an access token.
[0260] Exemplarily, when the application is activated or used, the application sends the first parameter to the operating system. The activation or use of the application can be understood as: the communication device detects the data or traffic of the application, or the communication device detects that the application is running.
[0261] Optionally, before the operating system receives the first parameter from the application, the operating system generates the first parameter, and the operating system sends the first parameter to the application.
[0262] Exemplarily, when the first parameter is a temporary identifier, the operating system stores a mapping relationship, where the mapping relationship is used to characterize the association relationship between the second application identifier of the application, the second application distinguishing parameter, and the temporary identifier.
[0263] Exemplarily, when the first parameter is a temporary key or access token, the operating system may not store the mapping relationship between the temporary key or access token and the second application identifier and the second application distinguishing parameter of the application. This is because the temporary key or access token carries the second application identifier and the second application distinguishing parameter of the application. When the operating system subsequently receives the temporary key or access token, it can determine the corresponding second application identifier and the second application distinguishing parameter of the application.
[0264] S420: The operating system determines a second application identifier of the application according to the first parameter.
[0265] Exemplarily, the operating system determines the second application identifier of the application according to the temporary identifier and the mapping relationship.
[0266] Exemplarily, the operating system determines the second application identifier of the application based on the temporary key or the access token.
[0267] Optionally, the operating system may also determine the second application distinguishing parameter based on the first parameter. For example, the operating system determines the second application distinguishing parameter of the application based on the temporary identifier and the mapping relationship; or the operating system determines the second application distinguishing parameter of the application based on the temporary key or access token.
[0268] S430, the operating system sends a second application identifier of the application to the modem, and correspondingly, the modem receives the second application identifier of the application from the operating system.
[0269] Optionally, if in step S420, the operating system further determines a second application distinguishing parameter according to the first parameter, the operating system may further send the second application distinguishing parameter of the application to the modem.
[0270] For example, Figure 2 As shown, the operating system sends the second application identifier of the application to the modem via Intf-3; optionally, the second application distinguishing parameter may also be sent.
[0271] S440, the modem determines that the application matches the routing policy rule.
[0272] Optionally, the specific implementation of this step may be that the modem determines whether the application matches the routing policy rule, and if so, associates the application with the session according to the routing policy rule, and if not, does not associate the application with the session. The specific determination of whether the application matches the routing policy rule is as follows.
[0273] The following is an explanation of the modem determining that an application matches a routing policy rule based on the second application identifier and the second application distinguishing parameter of the application. It should be understood that the second application distinguishing parameter in this implementation is optional, that is, the modem can determine that an application matches a routing policy rule based on the second application identifier of the application, as described below. It should be noted that the modem determines whether an application matches a routing policy rule in a similar manner to step S330 of the above method 300. Further, after determining that the application matches the routing policy rule, the modem can perform the process of associating the application with the session as shown in step S340. The specific implementation method can refer to the above related instructions, and for the sake of brevity, it will not be repeated here.
[0274] In a possible implementation manner, the modem determines that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter of the application.
[0275] Exemplarily, assuming that the modem receives a URSP rule (such as URSP rule 1), it is determined whether the application matches URSP rule 1. For example, the modem determines whether the second application identifier is the same as the first application identifier in URSP rule 1, and determines whether the first application distinguishing parameter and the second application distinguishing parameter in URSP rule 1 are the same. Specifically, if the first application identifier and the second application identifier are the same, and the first application distinguishing parameter and the second application distinguishing parameter are the same, the modem determines that the application matches URSP rule 1; conversely, if the first application identifier and the second application identifier are not the same, and / or the first application distinguishing parameter and the second application distinguishing parameter are not the same, the modem determines that the application does not match URSP rule 1.
[0276] Optionally, before determining whether the detected application matches the URSP rule, if the App ID#2 and AppD#2 of the application are protected, such as being digitally signed, key encrypted, or hashed, the modem may perform integrity verification or authenticity verification on App ID#2 and AppD#2, and if the integrity or authenticity verification passes, that is, if it is determined that App ID#2 and AppD#2 have not been tampered with, the modem determines whether the detected application matches the URSP rule based on App ID#2 and AppD#2, and the specific implementation method is as described above. If the verification fails or the verification does not pass, the modem does not need to further determine whether the application matches the URSP.
[0277] Optionally, the method 400 can be regarded as a refinement of the step S330, that is, the modem of the communication device determines the match between the application and the routing policy rule according to the second application identifier of the application. Step S330 of the method 300 can be further implemented through the steps S410 to S490, so the relevant description in the method 300 is also applicable to the method 400. The same or similar technical means may exist between the two, and similar contents will not be repeated here.
[0278] The solution provided by the present application is that the operating system allocates a dynamic temporary identifier (or temporary key, access token) to the application, so that the application sends a temporary identifier (or temporary key, access token) to the operating system when it is activated or used, so as to protect the interaction between the application and the operating system and improve the security of the parameter passing process.
[0279] Furthermore, the implementation method increases the mapping relationship between the temporary identifier (or temporary key, access token) and the application identifier and application distinguishing parameter of the application, while improving the security in the parameter transmission process, and increasing the matching granularity between the application and the routing policy rules. For example, the modem or the network layer / network interface layer can obtain the second application identifier from the application through the operating system. For a malicious application, it can send a false application identifier when interacting with the operating system. If the application identifier of the malicious application received by the modem is the same as the application identifier of the "real" application in the URSP rule, the traffic of the malicious application may be sent to the network as the traffic of the "real" application, so that the network resources of the "real" application are damaged, or the network node is attacked by malicious traffic. Through this implementation method, by increasing the temporary identifier (or temporary key, access token) carried during the interaction between the application and the operating system, the second identifier and / or the second distinguishing parameter of the application can be reduced. The situation of malicious tampering can be reduced, the network communication security can be guaranteed, and the risk of network resources of the application in the routing policy rules being damaged and network nodes being attacked by malicious traffic can be reduced.
[0280] Figure 5 is a flow chart of a communication method 500 provided in an embodiment of the present application. Figure 5 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.
[0281] S510, the communication device sends an authentication request message to the user, and correspondingly, the user receives the authentication request message from the communication device.
[0282] The authentication request message includes the second application identifier of the application, and is used to request the user to verify the second application identifier of the application; or, the authentication request message is used to request the user to determine whether the second application identifier of the application is the same as the first application identifier.
[0283] Exemplarily, the operating system in the communication device triggers a user request, requesting the user to identify the application, such as the operating system triggers a pop-up window, or sends a text message or message to the user, requesting the user to confirm whether the second application identifier of the application is the first application identifier. If the user confirms that the second application identifier of the application is the same as the first application identifier, the user can click to confirm in the pop-up window, or reply by text message, etc.
[0284] Optionally, the authentication request message also includes a second application distinguishing parameter, and the authentication request message is also used to request the user to verify the second application distinguishing parameter, or to request the user to determine whether the second application distinguishing parameter is the same as the first application distinguishing parameter. The specific operating system triggers the user to verify the second application distinguishing parameter. Please refer to the above description of the verification of the second application identifier, which will not be repeated here.
[0285] S520, the user sends an authentication response message to the communication device, and correspondingly, the communication device receives the authentication response message from the user.
[0286] The authentication response message includes a verification result of the second application identifier, or the authentication response message includes a first matching result between the second application identifier and the first application identifier of the application.
[0287] Optionally, if the authentication request message further includes a second application distinguishing parameter, the authentication response message further includes a verification result of the second application distinguishing parameter; or further includes a second matching result of the second application distinguishing parameter and the first application distinguishing parameter.
[0288] S530: The communication device determines, based on the authentication response message, that the application matches the routing policy rule.
[0289] Optionally, the specific implementation of this step may be that the communication device determines whether the application matches the routing policy rule according to the authentication response message, and if so, associates the application with the session according to the routing policy rule, and if not, does not associate the application with the session. The specific determination of whether the application matches the routing policy rule is as follows.
[0290] Exemplarily, when the verification result indicates that the second application identifier has passed the user's verification, the communication device determines that the application matches the routing policy rule. Conversely, if the verification result indicates that the second application identifier has not passed the user's verification, that is, the verification fails, the communication device determines that the application does not match the routing policy rule.
[0291] Optionally, if the verification result indicates that the second application distinguishing parameter has passed the user's verification, the communication device determines that the application matches the routing policy rule. Conversely, if the verification result indicates that the second application distinguishing parameter has not passed the user's verification, that is, the verification fails, the communication device determines that the application does not match the routing policy rule.
[0292] Exemplarily, when the first matching result indicates that the second application identifier is the same as the first application identifier, the communication device determines that the application matches the routing policy rule. Conversely, if the first matching result indicates that the second application identifier is not the same as the first application identifier, that is, the verification fails, the communication device determines that the application does not match the routing policy rule.
[0293] Optionally, when the first matching result indicates that the second matching result indicates that the second application distinguishing parameter is the same as the first application distinguishing parameter, the communication device determines that the application matches the routing policy rule. Conversely, if the second matching result indicates that the second application distinguishing parameter is not the same as the first application distinguishing parameter, that is, the verification fails, the communication device determines that the application does not match the routing policy rule.
[0294] It should be pointed out that the above is only an example given for ease of understanding. The implementation methods provided above can be implemented independently or in combination, that is, the verification of the second application identifier and the second application distinguishing parameter can be performed separately or in combination. When the second application identifier and the second application distinguishing parameter are both verified, the communication device determines that the application and the routing selection policy rules match; conversely, if the second application identifier and / or the second application distinguishing parameter fail to be verified, that is, the second matching result indicates that the second application distinguishing parameter and the first application distinguishing parameter are not the same, and / or the second application identifier is not the same as the first application identifier, then the communication device determines that the application and the routing selection policy rules do not match.
[0295] Optionally, the method 500 can be regarded as a refinement of the step S330, that is, the communication device determines the application and the routing policy rule match through the user's authentication response message. Step S330 of the method 300 can also be further implemented through the steps S510 and S520, so the relevant description in the method 300 is also applicable to the method 500, and the same or similar technical means may exist between the two, and similar contents will not be repeated here.
[0296] In the solution provided by the present application, the communication device requests user authentication, and determines the application and routing policy rule match based on the user's authentication result, or the first matching result and the second matching result, thereby increasing the flexibility of authentication. At the same time, adding the second application distinguishing parameter for authentication can reduce the risk of network resources of the application in the routing policy rule being infringed and network nodes being attacked by malicious traffic.
[0297] Figure 6 600 is a flow chart of a communication method 600 provided in an embodiment of the present application. Figure 6 As shown, the communication device and the network device are used as the execution subjects to interact, and the method includes the following multiple steps. For the parts not described in detail, reference can be made to the existing protocols and the relevant descriptions of the above methods 300 to 500, which will not be repeated here. In comparison, the above methods 300 to 500 are determined by the communication device (including the modem) to match the application and the routing policy rules according to the application identifier and application distinguishing parameters of the application. The method 600 is based on the communication device determining that the application and the routing policy rules match, and the network device further verifies whether the application and the routing policy rules match according to the second application identifier of the application, or the second application identifier and the second application distinguishing parameter of the application, thereby providing more implementation methods and multiple guarantees for the authenticity of application identification.
[0298] S610: When the communication device detects an application, the communication device determines that the application matches a routing policy rule.
[0299] The routing policy rule includes a first application identifier of the application. Exemplarily, the communication device may refer to the relevant description in the existing solution to determine whether the application matches the routing policy rule, for example, by comparing whether the second application identifier of the detected application is the same as the first application identifier in the URSP rule. The specific implementation method refers to the above-mentioned relevant description, which will not be described in detail here.
[0300] Optionally, the routing policy rule includes a first application identifier and a first application distinguishing parameter. Exemplarily, the communication device may refer to the relevant description in step S330 of the above method 300 to determine whether the application and the routing policy rule match, for example, by comparing whether the second application identifier of the detected application is the same as the first application identifier in the URSP rule, and whether the second application distinguishing parameter of the detected application is the same as the first application distinguishing parameter in the URSP rule. The specific implementation method refers to the above relevant description, which will not be repeated here.
[0301] Optionally, when the communication device detects an application, it determines whether the application matches the routing policy rule. Reference may also be made to the relevant description in the existing solution, which is not limited in the present application.
[0302] S620, the communication device sends a request message to the network device, and correspondingly, the network device receives the request message from the communication device.
[0303] The request message includes a second application identifier of the application, and the request message is used to request verification of whether the application matches the routing policy rule. Optionally, the request message also includes an identifier of the routing policy rule, which is used to identify the routing policy rule (URSP rule). The present application does not limit the form of the identifier of the routing policy rule, for example, it can be an ID of the routing policy rule, or a priority of the routing policy rule.
[0304] Exemplarily, for the application newly detected by the communication device, it can be determined whether to send the application identifier of the application to the network side according to the following implementation method.
[0305] Optionally, before the communication device sends a request message to the network device, the communication device determines to send a second application identifier to the network device according to first configuration information, and the first configuration information is used to instruct to send the second application identifier to the network device.
[0306] For example, if the first configuration information indicates that the application AppID#2 detected by the communication device is "weixin", the application identifier of the application needs to be sent, then the communication device sends the application identifier of the application to the network device after the new application is detected as "weixin". Optionally, the first configuration information of the above communication device can be the application ID for the newly detected application (i.e., AppID#2), or the application ID for the application carried in the routing policy rule (i.e., AppID#1), and this application does not make specific limitations on this.
[0307] Optionally, the first configuration information is pre-configured in the communication device.
[0308] Optionally, before the communication device sends a request message to the network device, the network device sends first indication information to the communication device, the first indication information is used to instruct the communication device to send the second application identifier of the application to the network device. Correspondingly, the communication device determines to send the second application identifier to the network device according to the first indication information.
[0309] Optionally, the communication device will send the application identifier of the application to the network side regardless of the circumstances.
[0310] Optionally, the request message also includes second indication information, where the second indication information indicates that the request message carries a second application identifier, or the second indication information instructs the network device to verify whether the application matches the routing policy rule.
[0311] Optionally, the second application identifier of the application is securely protected. Exemplarily, the securely protected second application identifier may be: a digitally signed second application identifier, a key encrypted second application identifier, or a hashed second application identifier.
[0312] Optionally, the request message is a session establishment request message or a session modification request message. By carrying the identifier of the routing policy rule used for network side verification and the application identifier of the application in the session establishment request message or the session modification request message, unnecessary processes can be reduced and signaling overhead can be reduced.
[0313] Optionally, the request message also includes a second application distinguishing parameter of the application. Further, the second application distinguishing parameter of the application is securely protected. Exemplarily, the second application distinguishing parameter of the application that is securely protected may be: a second application distinguishing parameter that is digitally signed, a second application distinguishing parameter that is key encrypted, or a second application distinguishing parameter that is hashed.
[0314] Optionally, the communication device determines to send a second application identifier and a second application distinguishing parameter of the application to the network device according to the second configuration information, and the second configuration information indicates to send the second application identifier and the second application distinguishing parameter to the network device.
[0315] Optionally, the communication device determines to send the second application identifier and the second distinguishing parameter to the network device according to third indication information from the network device, where the third indication information is used to indicate sending the second application identifier and the second application distinguishing parameter to the network device.
[0316] Optionally, the second configuration information is pre-configured in the communication device.
[0317] Optionally, the request message also includes fourth indication information, and the fourth indication information indicates that the request message carries a second application identifier and a second application distinguishing parameter of the application, or the fourth indication information instructs the network device to verify whether the application matches the routing policy rule.
[0318] Optionally, the request message also includes authentication information, which is used to verify the authenticity or integrity of the application. The authentication information is any one of the following: a digital signature, a hash value, or a message authentication code.
[0319] Optionally, the application identifier of the application, the application distinguishing parameter of the application, and the authentication information in the above request message may be sent in the same message or in different messages respectively, and this application does not impose any limitation on this.
[0320] S630: The network device determines that the application matches the routing policy rule according to the first application identifier in the routing policy rule and the second application identifier of the application.
[0321] Optionally, the specific implementation of this step may be that the network device determines whether the application matches the routing policy rule according to the first application identifier and the second application identifier, and executes the following step S640. The specific determination of whether the application matches the routing policy rule is as follows.
[0322] Optionally, if the request message does not carry the identifier of the routing policy rule, the network device can traverse the locally stored routing policy rules and compare the first application identifier with the second application identifier in each routing policy rule. If the two are the same, the network device determines that the application and the routing policy rule match; otherwise, if the two are not the same, the network device determines that the application and the routing policy rule do not match.
[0323] Optionally, if the request message does not carry the identifier of the routing policy rule, the request message can also be understood as the communication device requesting the network device to determine whether the application has a matching routing policy rule. If so, the traffic of the application can be routed to the slice and network associated with the routing policy rule. Otherwise, the request of the communication device will be rejected.
[0324] Optionally, if the request message carries an identifier of a routing policy rule, the network device determines the routing policy rule according to the identifier of the routing policy rule, and then compares whether the second application identifier and the first application identifier are the same. Specifically, if the two are the same, the network device determines that the application and the routing policy rule match; otherwise, if the two are not the same, the network device determines that the application and the routing policy rule do not match.
[0325] Optionally, if the request message also includes a second application distinguishing parameter of the application, the network device may also determine whether the second application distinguishing parameter is the same as the first application distinguishing parameter. Specifically, if the first application identifier and the second application identifier are the same, and the first application distinguishing parameter and the second application distinguishing parameter are the same, the network device determines that the application matches the routing policy rule; otherwise, if the first application identifier and the second application identifier are different, and / or the second application distinguishing parameter and the second application distinguishing parameter are different, the network device determines that the application does not match the routing policy rule.
[0326] Optionally, when the received second application identifier is digitally signed or integrity protected, the network device verifies the digital signature or integrity protection. When the verification is successful, the network device determines whether the application matches the routing policy rule based on the first application identifier in the routing policy rule and the received second application identifier. Optionally, the network device determines whether the application matches the routing policy rule based on the first application distinguishing parameter in the routing policy rule and the received second distinguishing parameter. The specific implementation method for determining whether the match is made can be found in the above-mentioned related description, which will not be described here. Among them, the verification of the digital signature or integrity protection by the network device can refer to the existing solution, which will not be described here for the sake of brevity.
[0327] Exemplarily, the second application identifier of the application (e.g., AppID#2, or AppID#2 and the second application distinguishing parameter AppD#2 of the application) can be carried in a digital certificate, which also includes a public key used to verify the digital signature of the second application identifier of the application. The network device can ensure the authenticity of the second application identifier of the application by using the public key to verify the digital signature of the second application identifier of the application.
[0328] Exemplarily, the second application identifier of the application (e.g., AppID#2, or AppID#2 and the second application distinguishing parameter AppD#2 of the application) can be carried in an access token, which also includes a digital signature for the second application identifier of the application. The network device can ensure the authenticity of the second application identifier of the application by verifying the digital signature of the second application identifier of the application.
[0329] Exemplarily, the second application identifier of the application (e.g., AppID#2, or AppID#2 and the second application distinguishing parameter AppD#2 of the application) can be carried in a fingerprint information including the application, for example, the fingerprint information is generated by hashing the digital certificate of the application. The fingerprint information is used to verify the authenticity of the application.
[0330] Optionally, if the request message also includes a message authentication code, the network device can also verify the integrity protection of the second application identifier of the application (e.g., AppID#2, or AppID#2 and the second application distinguishing parameter AppD#2 of the application) through the message authentication code to ensure that the second application identifier of the application has not been tampered with. For the verification method of using a digital signature and a message authentication code to perform integrity protection on the information to be verified, please refer to the relevant description of step S530 of the following method 500, which will not be repeated here for the sake of brevity.
[0331] Optionally, the second application identifier of the application (e.g., AppID#2, or AppID#2 and the second application distinguishing parameter AppD#2 of the application) may be carried in the authentication information of the application newly detected by the communication device, or the application identifier of the application may include or be equal to the authentication information of the application. Generally, the authentication information is used to verify the authenticity of the application. It should be understood that this application does not limit the carrier of the second application identifier of the application, or other information included in the second application identifier of the application.
[0332] If the above verification fails, the subsequent judgment on whether the application matches the routing policy rule will not be performed. In the case of passing the above security verification, the network device will compare the received second application identifier of the application (for example, AppID#2, or AppID#2 and the second application distinguishing parameter AppD#2 of the application) with the information of the application contained in the routing policy rule obtained by the network device (for example, AppID#1, or AppID#1 and AppD#1), that is, to determine whether the application detected by the communication device matches the routing policy rule. Specifically, if the second application identifier of the application carried in the request message is AppID#2, and AppID#2="weixin"=AppID#1, it means that the application matches the routing policy rule; if the second application identifier and the second application distinguishing parameter carried in the request message are AppID#2 and AppD#2, respectively, and AppID#2="weixin"=AppID#1, AppD#2≠AppD#1 (for example, AppD#2="Google Play", AppD#1="unknown"), it means that the application does not match the routing policy rule.
[0333] S640, the network device sends a response message to the communication apparatus, and correspondingly, the communication apparatus receives the response message from the network device.
[0334] Optionally, the response message is a session establishment response message (including a session establishment accept / reject message), or a session modification response message (including a session modification accept / reject message).
[0335] Exemplarily, when the application matches the routing policy rule, the response message is used to instruct the network device to accept the request of the communication device. For example, the second application identifier carried in the request message is the same as the first application identifier carried in the routing policy rule, that is, the verification is passed.
[0336] Further optionally, if the request message also includes an application distinguishing parameter of the application, then when the application matches the routing policy rule, the response message is used to instruct the network device to accept the request of the communication device. For example, the second application distinguishing parameter carried in the request message is the same as the first application distinguishing parameter carried in the routing policy rule.
[0337] Exemplarily, when the application does not match the routing policy rule, the response message is used to instruct the network device to reject the request of the communication device, and the response message includes a rejection reason, and the rejection reason is used to indicate that the second application identifier of the application has failed to be verified. For example, the second application identifier carried in the request message is different from the first application identifier carried in the routing policy rule.
[0338] Optionally, if the request message also includes an application distinguishing parameter of the application, then when the application and the routing policy rule do not match, the response message is used to instruct the network device to reject the request of the communication device, and the response message includes a reason for rejection, and the reason for rejection is used to indicate that the second application identifier is different from the first application identifier, and / or the second application distinguishing parameter is different from the second application distinguishing parameter.
[0339] The solution provided by the present application, on the basis of the communication device determining that the detected application matches the routing policy rule, adds a step of network equipment verifying the match between the application and the routing policy rule, which can more effectively ensure the match between the application and the routing policy rule. For example, the newly installed application of the communication device is not an application in the matching URSP rule, but because it has the same application identifier, it may be mistaken for a "real" application. These "fake" applications will cause potential security risks to the network using the URSP rule, such as the traffic of the "fake" application will be mistakenly arranged to be transmitted on the network resources of the "real" application, thereby occupying and consuming the network resources of the "real" application in the routing matching rule, causing the resources of the "real" application to be damaged, and in severe cases, it may even cause the "real" application to be denied service, or the attacker sends the malicious traffic of the "fake" application to the network node storing the "real" application, making these network nodes face the risk of being attacked by malicious traffic. Then, based on the newly added application differentiation parameters for verification and identification in this method, the network resources of the application associated with the routing policy rule are prevented from being damaged and the risk of network nodes being attacked by malicious traffic is reduced.
[0340] The following takes the communication device as UE and the network device as PCF as an example to specifically explain the application identification used for terminal routing selection. For ease of understanding and description, the application detected by the UE can be referred to as the "current application", and the application identifier and application distinguishing parameter of the current application are the second application identifier and the second application distinguishing parameter respectively. The application associated with the first application identifier and the first application distinguishing parameter in the URSP rule issued by the network side is referred to as the "target application", which will not be repeated below. In an embodiment of the present application, the URSP rules issued by the network side are integrity protected, or in other words, the URSP rules are assumed to have not been tampered with. The technical solution of the present application mainly focuses on the verification of whether the current application matches the URSP rules, so as to avoid infringement of the network resources of the target application and reduce the risk of network nodes being attacked by malicious traffic.
[0341] Figure 7 700 is a flow chart of a communication method 700 provided in an embodiment of the present application. This method can be regarded as a further refinement of the above method 300. It should be understood that Figure 7 The embodiment shown is Figure 3 The embodiments shown can be coupled to each other and can be used as references to each other, so the relevant description in the above method 300 is also applicable to this implementation, and the two may have the same or similar technical means. Figure 3 The contents already described in the illustrated embodiment will not be repeated. Figure 2 As shown, the UE includes a current application (such as App1) as an example for explanation. It should be understood that the present application does not limit the number of current applications. In this implementation, by adding application differentiation parameters, the UE can achieve the purpose of identifying whether the current application matches the URSP rule. Figure 7 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.
[0342] S710, PCF configures the target application ID (i.e., the first application identifier) and the target application distinguishing parameter AppD (i.e., the first application distinguishing parameter). For ease of description and distinction, the target application ID and the target application distinguishing parameter of the target application in the URSP rule sent by the network side are represented by App ID#1 and AppD#1 respectively, and correspondingly, the current application ID (i.e., the second application identifier) and the current application distinguishing parameter (i.e., the second application distinguishing parameter) of the current application received from the OS (i.e., the application detected by the UE) are represented by App ID#2 and AppD#2 respectively, which will not be repeated below.
[0343] It should be understood that the target application distinguishing parameter AppD#1 refers to a parameter used to determine or distinguish the target application, and its name is only an example, and it can also be called target application specific information, etc. This application does not make any specific limitation on this.
[0344] Among them, AppD#1 and AppD#2 can be expressed in the form of Installer, Application source, Package name, 3GPP related parameters, etc. The specific meaning can be referred to the relevant description of the above step S330. For the sake of brevity, it will not be repeated here.
[0345] S720, the PCF sends the URSP rule to the UE. Correspondingly, the UE receives the URSP rule from the PCF.
[0346] Optionally, the PCF sends the URSP rule to the UE through the AMF or SMF.
[0347] The URSP rule includes App ID#1 and AppD#1. Specifically, other contents, uses, configuration methods, etc. included in the URSP rule can refer to the relevant description of the above method 300, and will not be repeated here for the sake of brevity.
[0348] S730: The UE determines, according to the current application ID and the current application distinguishing parameter, that the current application matches the URSP rule.
[0349] Optionally, the specific implementation of this step may be that the network device determines whether the application matches the routing policy rule according to the current application ID and the current application distinguishing parameter, and if so, associates the application with the session according to the routing policy rule, and if not, does not associate the application with the session. The specific determination of whether the application matches the routing policy rule is as follows.
[0350] Exemplarily, the UE compares whether the current application ID and the target application ID are the same, and compares whether the current application distinguishing parameter and the target application distinguishing parameter are the same. Specifically, when the current application ID and the target application ID are the same, and the current application distinguishing parameter and the target application distinguishing parameter are the same, the UE determines that the current application matches the URSP rule. Conversely, when the current application ID and the target application ID are not the same, and / or the current application distinguishing parameter and the target application distinguishing parameter are not the same, the UE determines that the current application does not match the URSP rule.
[0351] Exemplarily, the UE modem receives App ID#2 and AppD#2 from the application App1, and receives the URSP rule from the PCF, the URSP rule carrying App ID#1 and AppD#1. Specifically, it is determined whether the current application matches the URSP rule, that is, whether AppID#1 and AppID#2 are the same, and whether AppD#1 and AppD#2 are the same. If AppID#1 = "weixin" and AppID#2 = "QQ", and the two are different, the UE believes that the current application does not match the URSP rule; if AppID#1 = AppID#2 = "weixin", further, compare whether AppD#1 and AppD#2 are the same, assuming that the application distinction parameter is determined according to the Installer, for example, the Installer of AppD#1 is "Huawei AppGalery" and the Installer of AppD#2 is "Google Play", and the two are different, then the UE believes that the current application does not match the URSP rule; for example, the Installer of AppD#1 is "Huawei AppGalery" and the Installer of AppD#2 is "Huawei AppGalery", and the two are the same, then the UE believes that the current application matches the URSP rule, and then the UE executes the routing selection rules associated with App1 in the URSP rule respectively. It should be understood that the above is only an example given for ease of understanding and should not constitute any limitation on the technical solution. In addition, this application does not limit the order of comparing AppID#1 and AppID#2, and comparing AppD#1 and AppD#2.
[0352] Optionally, before determining whether the current application matches the URSP rule, the UE first verifies the authenticity or integrity of App ID#2 and AppD#2 to determine whether App ID#2 and AppD#2 are counterfeited or tampered with. If the verification is successful, that is, AppID#2 and AppD#2 are not counterfeited or tampered with, the UE determines whether the current application matches the URSP rule. If the verification fails or the verification does not pass, the UE does not need to further determine whether the current application matches the URSP rule.
[0353] For the authenticity or integrity verification of App ID#2 and AppD#2, reference may be made to the relevant description of step S330 of the above method 300, which will not be described here for the sake of brevity. Further, if the above verification is passed, the UE determines whether the current application matches the URSP rule. The specific determination method may refer to the relevant description above, which will not be described here for the sake of brevity.
[0354] The solution provided in the present application increases the parameters for UE to identify and verify whether the current application matches the URSP rule by adding an application differentiation parameter AppD, so as to improve the security of application identification.
[0355] Considering that in the above method 700, the UE identifies and verifies whether the current application matches the URSP rules, there may be a situation where an attacker maliciously tampered with the current application ID without being detected. Therefore, the following method 800 is proposed. When the communication device determines that the current application matches the URSP rules, the network side is added with identification and verification of whether the current application matches the URSP rules, which can ensure the security of terminal routing selection.
[0356] Figure 8 800 is a flow chart of a communication method 800 provided in an embodiment of the present application. This method can be regarded as a further refinement of the above method 600. It should be understood that Figure 8 The embodiment shown is Figure 6 The embodiments shown can be coupled to each other and can be used as references to each other, so the relevant description in the above method 600 is also applicable to this implementation, and the two may have the same or similar technical means. Figure 6 The contents already described in the illustrated embodiment will not be repeated. Figure 2 As shown, the UE includes a current application (such as App1) as an example for explanation. It should be understood that the present application does not limit the number of current applications. In this implementation, by adding the interaction and verification of the information to be verified (such as AppID, or AppID and AppD), the network side can achieve the purpose of identifying whether the current application matches the URSP rule, such as Figure 8 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.
[0357] S810, PCF configures the target application ID (App ID).
[0358] Optionally, PCF may also configure a target application differentiation parameter AppD. For specific implementation, reference may be made to the relevant description of step S510 of the above method 700, which will not be described again for brevity.
[0359] S820, the PCF sends the URSP rule to the UE. Correspondingly, the UE receives the URSP rule from the PCF.
[0360] Exemplarily, the PCF sends the URSP rule to the UE via the AMF or SMF, wherein the URSP rule includes the App ID; or, the URSP rule includes the App ID and AppD.
[0361] S830: The UE determines, according to the current application ID, that the current application matches the URSP rule.
[0362] Exemplarily, when the current application is detected, the UE compares whether the target application ID is the same as the current application ID, that is, compares whether App ID#1 is the same as App ID#2. Specifically, when the current application ID is the same as the target application ID, the UE determines that the current application matches the URSP rule. On the contrary, when the current application ID is different from the target application ID, the UE determines that the current application does not match the URSP rule.
[0363] Optionally, if the URSP rule includes a target application distinguishing parameter, the UE may further compare whether the current application distinguishing parameter is the same as the target application distinguishing parameter, that is, compare whether AppD#1 and AppD#2 are the same. Specifically, when the current application ID is the same as the target application ID, and the current application distinguishing parameter is the same as the target application distinguishing parameter, the UE determines that the current application matches the URSP rule. Conversely, when the current application ID is different from the target application ID, and / or the current application distinguishing parameter is different from the target application distinguishing parameter, the UE determines that the current application does not match the URSP rule.
[0364] The specific implementation of steps S810 to S830, other contents, uses, configuration methods, etc. of the URSP rules can be referred to in the above Figure 7 For the sake of brevity, the relevant description is not repeated here.
[0365] S840, optionally, the UE determines whether to send information to be verified to the network side.
[0366] The information to be verified includes AppID#2 of the current application, or the information to be verified includes AppID#2 and AppD#2 of the current application.
[0367] Optionally, the information to be verified includes an identifier of a URSP rule, so that the network device can quickly determine the routing policy rule and perform subsequent judgments applied to the routing policy rule.
[0368] Exemplarily, for the current application newly detected by the UE, it can be determined whether to send the information to be verified to the network side (eg, PCF) according to the following implementation method.
[0369] (1) Send by default, that is, the UE will send the information to be verified to the network side under any circumstances.
[0370] (2) UE configuration information (i.e., first configuration information), that is, the UE determines whether to send the information to be verified to the network side according to the configuration information. For example, if the first configuration information indicates that the current application AppID#2 detected by the UE is "weixin", the information to be verified needs to be sent, then after the UE newly detects that the current application is "weixin", it sends the information to be verified to the PCF, that is, executes the subsequent step S850; conversely, if the first configuration information indicates that the current application AppID#2 detected by the UE is not "weixin", it does not need to send the information to be verified, then the UE does not need to execute the subsequent step S850.
[0371] (3) Network indication (i.e., first indication information), that is, the UE further determines whether to send the information to be verified to the network side according to the indication sent by the network side. Optionally, in the above step S820, the URSP rule additionally carries an indication information #1 (i.e., first indication information), and the indication information #1 is used to indicate that when the application identifier of the current application detected by the UE is AppID#2, the UE needs to send the information to be verified to the network side.
[0372] Optionally, if in the above step S820, the URSP rule also includes the target application differentiation parameter AppD#1, then the indication information #1 is also used to indicate: when the application identifier of the current application detected by the UE is AppID#2, and the application differentiation parameter of the current application is AppD#2, the UE needs to send the information to be verified to the network side.
[0373] It should be noted that the above implementation methods are only examples given for ease of understanding and do not constitute any limitation on the technical solution of the present application. Optionally, the UE can further limit the information to be verified sent to the network for the three implementation methods provided above. That is, the UE can determine whether to send the information to be verified to the network side based on one or more of specific application parameters (for example, the application ID is a specific ID, such as the ID is "weixin"), specific slice information (for example, the slice selection auxiliary information is S-NSSAI-1), and a specific DN (for example, the DN name is DNN1).
[0374] For example, the current application ID detected by the UE is "weixin", and the UE evaluates the URSP rule and matches the current application in step S830 (such as the matching target application ID is "weixin"). Further, the UE can determine, based on the configuration information or network indication, that it is necessary to send the information to be verified to the network side for the current application with ID "weixin" and execute the subsequent step S850.
[0375] For another example, the UE detects that the slice requested for use by the current application is S-NSSAI-1, and the UE evaluates in step S830 that the URSP rule matches the current application (such as the matching slice selects S-NSSAI-1). Further, the UE can determine, based on the configuration information or network indication, that it is necessary to send verification information to the network side for the current application using the slice S-NSSAI-1, and execute subsequent step S850.
[0376] For another example, the UE detects that the current application requests to use access to the data network DNN1, and the UE evaluates the URSP rule in step S830 to match the current application (such as the matching DNN selected is DNN1). Further, the UE can determine, based on the configuration information or network indication, that it is necessary to send verification information to the network side for the current application using DNN1, and execute subsequent step S850.
[0377] Optionally, the information to be verified is carried in authentication information, and the authentication information is used to verify the authenticity or integrity (ie, it has not been tampered with) of the current application. The authentication information includes one or more of the following: a digital signature, a hash value, or a message authentication code.
[0378] Optionally, the UE uses authentication information as the above-mentioned information to be verified. That is, the UE sends authentication information to the PCF, and the authentication information includes but is not limited to: the digital signature of the current application, the hash value of the current application, or the MAC of the current application, etc. Optionally, the authentication information carries AppID#2, or carries AppID#2 and AppD#2. Optionally, the UE obtains the authentication information through the OS. It should be understood that this application does not specifically limit the way in which the UE obtains the above-mentioned information to be verified.
[0379] Optionally, the UE determines whether to send indication information #2 (ie, second indication information) to the network side. The specific interpretation of the indication information #2 can be found in the relevant description of the following step S850, which will not be explained here.
[0380] S850, the UE sends a PDU session establishment / modification request message (ie, a request message) to the SMF. Correspondingly, the SMF receives the PDU session establishment / modification request message from the UE.
[0381] The PDU session establishment / modification request message includes information to be verified.
[0382] Optionally, the UE sends a PDU session establishment / modification request message to the SMF. Further, the SMF forwards the information to be verified in the PDU session establishment / modification request message to the PCF, so as to facilitate the verification of the information to be verified by the PCF in the subsequent step S870. That is to say, if the PCF performs the verification in the subsequent step S870, the SMF needs to send the information to be verified to the PCF. If the SMF performs the verification, the SMF may not send the information to be verified to the PCF. For the convenience of description, the following steps do not specifically distinguish between the SMF and the PCF.
[0383] Optionally, the PDU session establishment / modification request message also includes indication information #2, which can be used to indicate that the PDU session establishment / modification request message carries information to be verified; or, the indication information #2 can also be used to instruct the network side PCF (or SMF) to verify the information to be verified.
[0384] S860, PCF (or SMF) verifies the information to be verified, that is, verifies whether the current application matches the routing policy rule. The specific implementation of this step can be that PCF determines whether the application matches the routing policy rule based on the information to be verified, and executes the following step S870. The specific determination of whether the application matches the routing policy rule is as follows.
[0385] Exemplarily, the PCF (or SMF) may determine whether the information to be verified needs to be verified based on the received indication information #2. This implementation method may better achieve backward compatibility.
[0386] Exemplarily, the information to be verified (such as AppID#2, or AppID#2 and AppD#2) can be carried in a digital certificate, which also includes a public key used to verify the digital signature of the information to be verified. The PCF (or SMF) can ensure the authenticity of the information to be verified by using the public key to verify the digital signature of the information to be verified.
[0387] Exemplarily, the information to be verified (such as AppID#2, or AppID#2 and AppD#2) can be carried in an access token (token), and the access token (token) also includes a digital signature for the information to be verified. The PCF (or SMF) can ensure the authenticity of the information to be verified by verifying the digital signature of the information to be verified.
[0388] Exemplarily, the information to be verified (such as AppID#2, or AppID#2 and AppD#2) can be carried in a fingerprint information including the current application, for example, the fingerprint information is generated by hashing the digital certificate of the current application. The fingerprint information is used to verify the authenticity of the application.
[0389] Optionally, if the information to be verified also includes a message authentication code, the PCF (or SMF) may also verify the integrity protection of the information to be verified through the message authentication code to ensure that the information to be verified has not been tampered with. For the verification method of using a digital signature and a message authentication code to perform integrity protection on the information to be verified, reference may be made to the relevant description of step S530 above, which will not be repeated here for the sake of brevity.
[0390] Optionally, the information to be verified may be carried in the authentication information of the current application, or the information to be verified may also include or be equal to the authentication information of the current application. Generally, the authentication information is used to verify the authenticity of the current application. It should be understood that this application does not limit the carrier of the information to be verified or the information included in the information to be verified.
[0391] If the above verification fails, the subsequent judgment of whether the current application matches the URSP rule is not performed, that is, step S870 is executed. If the above verification passes, the PCF (or SMF) compares the information to be verified (for example, AppID#2, or AppID#2 and AppD#2) with the information of the target application contained in the locally stored URSP rule (for example, AppID#1, or AppID#1 and AppD#1), that is, it is determined whether the current application detected by the UE matches the URSP rule. Specifically, if the information to be verified is AppID#2, and AppID#2 = "weixin" = AppID#1, it means that the current application matches the URSP rule; if the information to be verified is AppID#2 and AppD#2, and AppID#2 = "weixin" = AppID#1, AppD#2≠AppD#1 (for example, AppD#2 = "Google Play", AppD#1 = "unknown", it means that the current application does not completely match the URSP rule.
[0392] S870, SMF sends a PDU session establishment / modification response message (ie, a response message) to the UE. Correspondingly, the UE receives the PDU session establishment / modification response message from the SMF.
[0393] Exemplarily, the session establishment response message includes a session establishment acceptance or rejection message, and the session modification response message includes a session modification acceptance or rejection message. If the information to be verified in the above step S860 fails to pass the verification or the verification fails, for example, the authenticity or integrity verification of the current application fails, and / or the current application does not match the URSP rule, for example, the application identifier of the current application is different from the application identifier of the target application in the URSP rule, and / or the application differentiation parameter of the current application is different from the application differentiation parameter of the target application in the URSP rule, then the SMF may reject the PDU session establishment / modification request of the UE in the above step S850, and optionally, the PDU session establishment / modification response message may carry the rejection reason, such as the verification failure of the information to be verified.
[0394] Exemplarily, if the information to be verified in the above step S860 passes the verification, the SMF accepts the UE's PDU session establishment / modification request in the above step S850.
[0395] It should be noted that if step S860 is for the PCF to verify the information to be verified, then the PCF needs to send the verification result (for example, verification passed or verification failed) to the SMF, and the SMF then sends the verification result to the UE via a PDU session establishment / modification response message.
[0396] The solution provided by the present application, by adding information to be verified in the existing PDU session request, eliminates the need for adding new processes, simplifies steps and signaling overhead, and verifies whether the current application matches the URSP rules on the network side, which can reduce the complexity calculation requirements on the UE side and improve user experience.
[0397] It should be understood that in the above methods 700 and 800, by adding application differentiation parameters, the UE determines whether the current application matches the URSP rule, and when the UE verifies that the application matches the routing policy, the verification step of the network device is added to reduce the risk of network resources of the target application being infringed or attacked. In addition, when the current application is running or transmitted inside the UE, the application ID may be counterfeited, causing the UE modem to send the traffic of the malicious application as the traffic of the target application to the network, causing the network resources of the target application to be infringed or the network node to be at risk of being attacked by malicious traffic. Therefore, the following methods 900 and 1000 are proposed, in which the OS or user verifies the current application to ensure that the information of the current application has not been tampered with during transmission, avoid potential risks, and ensure network security.
[0398] Fig. 9 900 is a flow chart of a communication method 900 provided in an embodiment of the present application. This method can also be regarded as a further refinement of the above method 400. It should be understood that Fig. 9 The embodiment shown is Figure 4 The embodiments shown can be coupled to each other and can be used as references to each other, so the relevant description in the above method 400 is also applicable to this implementation, and the two may have the same or similar technical means. Figure 4 The contents already described in the illustrated embodiment will not be repeated. Figure 2 As shown, the example of UE containing one current application (e.g., App1) is used for illustration. It should be understood that the present application does not limit the number of current applications. In this implementation, the OS performs security protection and security verification on its interface interaction information to prevent security threats of fake application IDs. Fig. 9 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.
[0399] S910, installation process of App1.
[0400] Optionally, App1 may be an application running on the UE, or a new application detected by the UE.
[0401] Exemplarily, when installing an application, the UE's OS verifies the certificate of the App developer or App publisher, or the OS verifies the application through the App Store (the specific implementation method can refer to the relevant description of the above step S330), to ensure that App1 has not been tampered with during installation. The installation process of App1 can refer to the existing application installation process, and for the sake of brevity, it will not be repeated here. Assume that the OS can already distinguish between different installed applications. For example, different installed applications can be distinguished based on different application IDs, that is, the OS can identify App1 based on the original ID of App1 (for example, the original ID of App1 can be referred to as original ID1); or, referring to the above method 500, the OS can also distinguish applications based on different application IDs and application distinction parameters AppD, that is, the OS can identify App1 based on the original ID of App1 and AppD (for example, the application distinction parameter AppD of App1 can be referred to as AppD1).
[0402] S920, the OS generates a temporary ID1 for App1.
[0403] Furthermore, the OS stores the mapping relationship between the original ID1 of App1 and the temporary ID1. Optionally, if the current application is also configured with an application distinguishing parameter AppD, the OS stores the mapping relationship between the original ID1 of App1, AppD1 and the temporary ID1.
[0404] S930, OS sends temporary ID1 to App1. Correspondingly, App1 receives temporary ID1 from OS.
[0405] Among them, the above steps S710 to S730 are a solution for the OS to assign a temporary ID to the current application. When the user determines to trigger or activate the application, the subsequent steps S740-S780 are executed, that is, when App1 is activated or used, App1 requests to use a modem or network to send data as an example.
[0406] S940, optionally, App1 triggers activation.
[0407] S950, App1 sends temporary ID1 to OS. Correspondingly, OS receives temporary ID1 from App1.
[0408] Optionally, App1 sends the original ID1 to the OS.
[0409] S960 , the OS determines the original ID1 of the application App1 based on the temporary ID1 and the stored mapping relationship between the original ID1 of App1 and the temporary ID1 .
[0410] Optionally, if the OS stores the mapping relationship between the original ID1, AppD1 and the temporary ID1 of App1 in step S910, the OS may also determine AppD1 of App1 in step S960.
[0411] S970, the OS sends the original ID1 of App1 to the modem. Correspondingly, the modem receives the original ID1 of App1 from the OS.
[0412] Optionally, the OS sends the application distinguishing parameter AppD1 and other parameters of App1 to the modem.
[0413] S980: The modem uses the original ID1 of App1 to determine a matching URSP rule.
[0414] Optionally, the specific implementation of this step may be that the modem determines whether the application matches the routing policy rule according to the original ID1 of App1, and if so, associates the application with the session according to the routing policy rule, and if not, does not associate the application with the session. The specific determination of whether the application matches the routing policy rule is as follows.
[0415] Optionally, the modem uses the original ID1 of App1 and AppD1 to determine the matching URSP rule.
[0416] Exemplarily, after the modem obtains the original ID1 of App1, it can be compared with the target application ID (or, the target application ID and the target application distinguishing parameter AppD) in the locally stored URSP rule. If they are the same (for example, the original ID1 of App1 = the ID of the target application App1, AppD1 = the AppD of the target application App1), it is determined to execute the routing selection rule corresponding to App1 in the URSP rule.
[0417] Optionally, the above method 900 is based on a temporary ID generated by the OS to reduce the risk of counterfeiting application IDs. The present application may also use other implementations to reduce the risk of malicious applications counterfeiting other application IDs.
[0418] In one implementation, the UE verifies the current application based on the access token method. Specifically, the OS generates token#1 for App1, where the claim in the token may include the application ID of App1 (or, the application ID of App1 and the application distinguishing parameter AppD), and sends token#1 to App1. Unlike using a temporary ID, the OS does not need to store the mapping relationship between the original ID1 of App1 and token#1. If step S740 is still based on the example of application App1 being activated / used, the temporary ID1 in step S750 is replaced with token#1. Correspondingly, in step S760, the OS verifies the integrity and authenticity of token#1 based on the digital signature carried in token#1. When the integrity and authenticity verification is passed, the UE determines the original ID1 of App1 (or the original ID1 and AppD1 of App1) based on the claim in token#1, and then uses the original ID1 of App1 (or the original ID1 and AppD1 of App1) to determine the matching URSP rule. For the specific implementation method, please refer to the relevant description of the above method 200. For the sake of brevity, it is not repeated here.
[0419] In another implementation, the UE verifies the current application based on a secure channel method. Specifically, the OS generates a temporary key (e.g., key#1) for App1 and sends the temporary key key#1 to App1. Unlike using a temporary ID, the OS does not need to store the mapping relationship between the original ID1 of App1 and key#1. If step S740 is still based on the example of when the application App1 is activated / used, App1 can use key#1 to perform integrity protection or encryption on the original ID1 of App1 (or, the original ID1 of App1 and AppD1). Correspondingly, in step S780, the OS obtains the original ID1 of App1 (or, the original ID1 of App1 and AppD1) when the integrity protection verification is passed or the decryption is passed, and then uses the original ID1 of App1 (or, the original ID1 of App1 and AppD1) to determine the matching URSP rule. The specific implementation method can refer to the relevant description of the above method 200, which is not repeated here for the sake of brevity.
[0420] The solution provided by the present application is that the OS uses a dynamic temporary ID (or token, or temporary key, etc.) to identify and verify the application (such as App1) and protect the interaction between the application and the OS (for example, through the interface Intf-1), which can reduce the temporary ID (or token, or temporary key, etc.) of the malicious counterfeit application (such as App1), thereby reducing the risk of App1 being counterfeited or attacked. This is because it is difficult for malicious applications to predict and counterfeit the temporary ID (or token, or temporary key, etc.) of other applications during the development stage. When the malicious application is running, the malicious application needs to have the ability to dynamically obtain the temporary ID (or token, or temporary key, etc.) of other applications in order to counterfeit, and this ability usually requires breaking into the UE's operating system OS. The present application is mainly aimed at malicious applications, not at the scenario where the OS is compromised, so the modem trusts the verification result of the OS, that is, there is security protection between the modem and the OS and it has not been compromised.
[0421] Based on the above method 900, the OS uses a dynamic temporary ID (or token, or temporary key, etc.) to identify and verify the application and protect the interaction between the application and the OS. In contrast, the following method 1000 relies on the user to identify and verify the application to reduce the security threat of fake application IDs.
[0422] Fig.10 1 is a flow chart of a communication method 1000 provided in an embodiment of the present application. This method can be regarded as a further refinement of the above method 500. It should be understood that Fig.10 The embodiment shown is Figure 5The embodiments shown can be coupled to each other and can be used as references to each other, so the relevant description in the above method 500 is also applicable to this implementation, and the two may have the same or similar technical means. Figure 5 The contents already described in the illustrated embodiment will not be repeated. Figure 2 As shown, the UE includes one current application (eg, App1) as an example for illustration. It should be understood that the present application does not limit the number of current applications. Figure 8 As shown, the method includes the following steps, and the parts not described in detail can refer to the existing protocols.
[0423] S1010, installation process of App1.
[0424] S1020, optionally, App1 triggers activation.
[0425] Among them, the specific implementation methods of the above steps S1010 and S1020 can refer to the relevant descriptions of steps S710 and S740 of the above method 700, and for the sake of brevity, they will not be repeated here.
[0426] S1030, App1 sends original ID1 to OS. Correspondingly, OS receives original ID1 from App1.
[0427] Optionally, App1 sends an application differentiation parameter AppD1 to the OS.
[0428] S1040, the OS sends an authentication request message to the user. Correspondingly, the user receives the authentication request message from the OS.
[0429] S1050: The user sends an authentication response message to the OS. Correspondingly, the OS receives the authentication response message from the user.
[0430] Exemplarily, the OS triggers a user request, requesting the user to identify the application, for example, the OS triggers a pop-up window, requesting the user to confirm whether the current application is App1, such as confirming whether the application ID of App1 is App ID#1. If the user confirms that the application ID of App1 is App ID#1, the user can click to confirm in the pop-up window. Optionally, it is also used to request the user to confirm whether the application distinguishing parameter of the current application is AppD1. Further, when the user confirms that the current application is App1 (for example, the application ID of App1 is AppID#1, or the application ID of App1 is App ID#1, and the application distinguishing parameter of App1 is AppD1), the authentication response message carries the verification result, indicating that App ID#1 has passed the user verification, or AppID#1 and AppD1 have passed the user verification. Optionally, the authentication response message carries "yes" or "no", indicating whether the current application ID is AppID#1, or indicating whether the current application ID is AppID#1, and whether the current application distinguishing parameter is AppD1.
[0431] Exemplarily, the authentication request message may also be used to request the user to determine whether the application identifier of the current application matches the application identifier of the target application, and whether the application distinguishing parameter of the current application matches the distinguishing parameter of the target application. Correspondingly, the authentication response message carries a first matching result and a second matching result, the first matching result is used to indicate whether the application identifier of the current application is the same as the application identifier of the target application, and the second matching result is used to indicate whether the application distinguishing parameter of the current application is the same as the application distinguishing parameter of the target application.
[0432] like Figure 2 As shown, in the above steps S1040 and S1050, the messages exchanged between the OS and the user can be sent and received through the interface Intf-4, which is a logical interface. Optionally, the interaction between the OS and the user can also be carried out through the interface between Intf-1 and App1 and the user ( Figure 2 In the embodiment of the present application, it is assumed that the above-mentioned interface has security protection, that is, App1 or the information interacting with the OS has not been tampered with.
[0433] S1060, the OS sends the original ID1 of App1 to the modem. Correspondingly, the modem receives the original ID1 of App1 from the OS.
[0434] Optionally, the OS sends the application distinguishing parameter AppD1 and other parameters of App1 to the modem.
[0435] S1070 , the modem uses the original ID1 of App1 to determine a matching URSP rule.
[0436] Optionally, the specific implementation of this step may be that the modem determines whether the application matches the routing policy rule according to the original ID1 of App1, and if so, associates the application with the session according to the routing policy rule, and if not, does not associate the application with the session. The specific determination of whether the application matches the routing policy rule is as follows.
[0437] Optionally, the modem uses the original ID1 of App1 and AppD1 to determine the matching URSP rule.
[0438] Among them, the specific implementation methods of the above steps S1060 and S1070 can refer to the relevant descriptions of steps S770 and S780 of method 700, and for the sake of brevity, they will not be repeated here.
[0439] The solution provided in this application reduces the security risk of fake application IDs by triggering user requests through the OS and allowing users to identify and verify the current application ID (or application ID and AppD).
[0440] Combination of the above Figures 1 to 10 , describes in detail the communication method side embodiment of the present application, and will be combined with Fig.11 and Fig.12 , 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.
[0441] Fig.11 2 is a schematic diagram of the structure of a communication device or network device 2000 provided in an embodiment of the present application. Fig.11 As shown, the device 2000 may include a transceiver unit 2010 and a processing unit 2020. The transceiver unit 2010 may communicate with the outside, and the processing unit 2020 is used for data processing. The transceiver unit 2010 may also be called a communication interface or a transceiver unit.
[0442] In one possible design, the device 2000 can implement steps or processes corresponding to those performed by the communication device in the above method embodiment, wherein the processing unit 2020 is used to perform processing-related operations of the communication device in the above method embodiment, and the transceiver unit 2010 is used to perform transceiver-related operations of the communication device in the above method embodiment.
[0443] In another possible design, the device 2000 may implement steps or processes corresponding to those executed by the network device in the above method embodiment, wherein the transceiver unit 2010 is used to execute transceiver-related operations of the network device in the above method embodiment, and the processing unit 2020 is used to execute processing-related operations of the network device in the above method embodiment.
[0444] It should be understood that the device 2000 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 2000 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 2000 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.
[0445] The device 2000 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 2000 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 by hardware executing corresponding software implementations. 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.
[0446] 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.11 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.
[0447] Fig.12 3000 is a schematic diagram of the structure of a communication device or network equipment provided in an embodiment of the present application. Fig.12 As shown, the device 3000 includes a processor 3010 and a transceiver 3020. The processor 3010 and the transceiver 3020 communicate with each other through an internal connection path, and the processor 3010 is used to execute instructions to control the transceiver 3020 to send signals and / or receive signals.
[0448] Optionally, the device 3000 may further include a memory 3030, and the memory 3030 communicates with the processor 3010 and the transceiver 3020 through an internal connection path. The memory 3030 is used to store instructions, and the processor 3010 may execute the instructions stored in the memory 3030.
[0449] In a possible implementation, the device 3000 is used to implement various processes and steps corresponding to the communication device in the above method embodiment.
[0450] In another possible implementation, the device 3000 is used to implement various processes and steps corresponding to the network device in the above method embodiment.
[0451] It should be understood that the device 3000 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 3020 can be the transceiver circuit of the chip, which is not limited here. Specifically, the device 3000 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.
[0452] Optionally, the memory 3030 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 3010 may be used to execute instructions stored in the memory, and when the processor 3010 executes instructions stored in the memory, the processor 3010 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.
[0453] 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.
[0454] 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.
[0455] 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.
[0456] Fig.13 4 is a schematic diagram of the structure of a chip system 4000 provided in an embodiment of the present application. Fig.13 As shown, the chip system 4000 (or may also be called a processing system) includes a logic circuit 4010 and an input / output interface (input / output interface) 4020.
[0457] Among them, the logic circuit 4010 can be a processing circuit in the chip system 4000. The logic circuit 4010 can be coupled to the storage unit and call the instructions in the storage unit so that the chip system 4000 can implement the methods and functions of each embodiment of the present application. The input / output interface 4020 can be an input / output circuit in the chip system 4000, outputting information processed by the chip system 4000, or inputting data or signaling information to be processed into the chip system 4000 for processing.
[0458] As a solution, the chip system 4000 is used to implement the operations performed by the communication device and the network equipment in the above method embodiments.
[0459] An embodiment of the present application also provides a computer-readable storage medium on which computer instructions for implementing the methods executed by the device in the above-mentioned method embodiments are stored.
[0460] 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 the device in the above-mentioned method embodiments.
[0461] An embodiment of the present application also provides a communication system, including one or more of the aforementioned communication devices or network equipment.
[0462] 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.
[0463] 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.
[0464] 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.
[0465] 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.
[0466] 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.
[0467] 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.
[0468] 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.
[0469] 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: In the case where the communication device detects the application, the communication device determines, based on the second application identifier and the second application distinguishing parameter of the application, that the application matches the routing policy rule, wherein the routing policy rule includes the first application identifier and the first application distinguishing parameter; The communication device associates the application to a session according to the routing policy rule.
2. The method according to claim 1, characterized in that Before the communication device determines, according to the second application identifier and the second application distinguishing parameter of the application, that the application matches the routing policy rule, the method further includes: The communication device receives the routing policy rule from a network device.
3. The method according to claim 1 or 2, characterized in that: The second application distinguishing parameter includes one or more of the following: The identifier of the binding platform of the application, the identifier of the application program source of the application, the name of the installation file package of the application, the user identifier of the application, the identifier of the developer of the application, the identifier of the public land mobile network associated with the application, or the identifier of the application function used to generate the routing policy rule.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The communication device performs integrity or authenticity verification on the second application identifier and the second application distinguishing parameter; The communication device determines, according to the second application identifier and the second application distinguishing parameter of the application, that the application matches the routing policy rule, including: In a case where the integrity or authenticity check passes, the communication device determines, based on the second application identifier and the second application distinguishing parameter, that the application matches the routing policy rule.
5. The method according to any one of claims 1 to 4, characterized in that The communication device determines, according to the second application identifier and the second application distinguishing parameter of the application, that the application matches the routing policy rule, including: The communication device determines that the first application identifier is the same as the second application identifier, and that the first application distinguishing parameter is the same as the second application distinguishing parameter.
6. The method according to any one of claims 1 to 5, characterized in that The communication device includes an operating system and a modem, and the method further includes: The operating system receives a first parameter from the application, the first parameter including one or more of the following: a temporary identifier, a temporary key, or an access token; The operating system determines the second application identifier and the second application distinguishing parameter according to the first parameter; The operating system sends the second application identifier and the second application distinguishing parameter to the modem; The communication device determines, according to the second application identifier and the second application distinguishing parameter of the application, that the application matches the routing policy rule, including: The modem determines that the second application identifier is the same as the first application identifier and that the second application distinguishing parameter is the same as the first application distinguishing parameter.
7. The method according to claim 6, characterized in that The operating system determines the second application identifier and the second application distinguishing parameter according to the first parameter, including: The operating system determines the second application identifier and the second application distinguishing parameter according to the temporary identifier and the mapping relationship, wherein the mapping relationship is used to characterize the association relationship between the second application identifier, the second application distinguishing parameter and the temporary identifier; or The operating system determines the second application identifier and the second application distinguishing parameter according to the temporary key or the access token.
8. The method according to claim 6 or 7, characterized in that: The operating system receives a first parameter from the application, including: In case the application is activated or used, the operating system receives a first parameter from the application.
9. The method according to any one of claims 6 to 8, characterized in that Before the operating system receives the first parameter from the application, the method further includes: The operating system generates the first parameter; The operating system sends the first parameter to the application; Wherein, when the first parameter is the temporary identifier, the operating system stores the mapping relationship.
10. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The communication device sends an authentication request message to the user, the authentication request message including the second application identifier and the second application distinguishing parameter, the authentication request message being used to request the user to verify the second application identifier and the second application distinguishing parameter, or the authentication request message being used to request the user to determine whether the second application identifier is the same as the first application identifier, and whether the second application distinguishing parameter is the same as the first application distinguishing parameter; The communication device receives an authentication response message from the user, the authentication response message including a verification result of the second application identifier and the second application distinguishing parameter, or the authentication response message including a first matching result of the second application identifier and the first application identifier, and a second matching result of the second application distinguishing parameter and the first application distinguishing parameter; The communication device determines, according to the second application identifier and the second application distinguishing parameter of the application, that the application matches the routing policy rule, including: The communication device determines, based on the authentication response message, that the application matches the routing policy rule.
11. The method according to claim 10, characterized in that The communication device determines, according to the authentication response message, that the application matches the routing policy rule, including: In the case where the verification result indicates that the second application identifier and the second application distinguishing parameter have passed the verification of the user, the communication device determines that the application matches the routing policy rule; or, When the first matching result indicates that the second application identifier is the same as the first application identifier, and the second matching result indicates that the second application distinguishing parameter is the same as the first application distinguishing parameter, the communication device determines that the application matches the routing policy rule.
12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: The network device obtains the routing policy rule; The network device sends the routing policy rule to the communication apparatus.
13. A communication device, characterized in that: include: A processing unit, configured to determine, when an application is detected, that the application matches a routing policy rule according to a second application identifier and a second application distinguishing parameter of the application, wherein the routing policy rule includes a first application identifier and a first application distinguishing parameter; The processing unit is further configured to associate the application with the session according to the routing policy rule.
14. The device according to claim 13, characterized in that The device also includes: The transceiver unit is used to receive the routing policy rule from the network device.
15. The device according to claim 13 or 14, characterized in that The second application distinguishing parameter includes one or more of the following: The identifier of the binding platform of the application, the identifier of the application program source of the application, the name of the installation file package of the application, the user identifier of the application, the identifier of the developer of the application, the identifier of the public land mobile network associated with the application, or the identifier of the application function used to generate the routing policy rule.
16. The device according to any one of claims 13 to 15, characterized in that The processing unit is further used to perform integrity or authenticity verification on the second application identifier and the second application distinguishing parameter; The processing unit is further configured to determine, when the integrity or authenticity check passes, that the application matches the routing policy rule according to the second application identifier and the second application distinguishing parameter.
17. The device according to any one of claims 13 to 16, characterized in that The processing unit is further configured to determine that the first application identifier is the same as the second application identifier, and that the first application distinguishing parameter is the same as the second application distinguishing parameter.
18. The device according to any one of claims 13 to 17, characterized in that The transceiver unit is further configured to receive a first parameter from the application, wherein the first parameter includes one or more of the following: a temporary identifier, a temporary key, or an access token; The processing unit is further configured to determine the second application identifier and the second application distinguishing parameter according to the first parameter; The transceiver unit is further configured to send the second application identifier and the second application distinguishing parameter to the modem; The processing unit is further configured to determine that the second application identifier is the same as the first application identifier, and the second application distinguishing parameter is the same as the first application distinguishing parameter.
19. The device according to claim 18, characterized in that The processing unit is further used to determine the second application identifier and the second application distinguishing parameter according to the temporary identifier and the mapping relationship, wherein the mapping relationship is used to characterize the association relationship between the second application identifier, the second application distinguishing parameter and the temporary identifier; or The processing unit is further used to determine the second application identifier and the second application distinguishing parameter according to the temporary key or the access token.
20. The device according to claim 18 or 19, characterized in that The transceiver unit is further configured to receive a first parameter from the application when the application is activated or used.
21. The device according to any one of claims 18 to 20, characterized in that The processing unit is further used to generate the first parameter; The transceiver unit is further configured to send the first parameter to the application; The processing unit is further configured to store the mapping relationship when the first parameter is the temporary identifier.
22. The device according to any one of claims 13 to 17, characterized in that The transceiver unit is further used to send an authentication request message to the user, where the authentication request message includes the second application identifier and the second application distinguishing parameter, and the authentication request message is used to request the user to verify the second application identifier and the second application distinguishing parameter, or to determine whether the second application identifier is the same as the first application identifier, and whether the second application distinguishing parameter is the same as the first application distinguishing parameter; The transceiver unit is further configured to receive an authentication response message from the user, the authentication response message including a verification result of the second application identifier and the second application distinguishing parameter, or a first matching result of the second application identifier and the first application identifier, and a second matching result of the second application distinguishing parameter and the first application distinguishing parameter; The processing unit is further configured to determine, based on the authentication response message, that the application matches the routing policy rule.
23. The device according to claim 22, characterized in that The processing unit is further configured to determine that the application matches the routing policy rule if the verification result indicates that the second application identifier and the second application distinguishing parameter have passed the verification of the user; or, When the first matching result indicates that the second application identifier is the same as the first application identifier, and the second matching result indicates that the second application distinguishing parameter is the same as the first application distinguishing parameter, it is determined that the application matches the routing policy rule.
24. A communication device, characterized in that: include: A processor, configured to execute a computer program stored in a memory, so that the apparatus performs the method according to any one of claims 1 to 11.
25. The device according to claim 24, characterized in that The device further comprises the memory and / or a communication interface, wherein the communication interface is coupled to the processor and is used to input and / or output information.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.
27. A computer program product, characterized in that The computer program product comprises instructions for performing the method of any one of claims 1 to 11.
Citation Information
Cited By
Communication method and communication apparatus
EP4686262A1
Communication method and communication apparatus
WO2024207998A1
