Communication method and communication apparatus

IN598381BActive Publication Date: 2026-08-07HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
IN202347057582
Authority / Receiving Office
IN · IN
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-02-21
Filing Date
2023-08-28
Publication Date
2026-08-07
Estimated Expiration
2042-02-17

AI Technical Summary

Technical Problem

The existing 4G network lacks support for on-demand user plane security protection mechanisms, particularly user plane integrity protection, which prevents seamless interworking with 5G networks when a user plane security policy requires integrity protection activation, leading to limitations in session handovers between different network generations.

Method used

A communication method that involves a session management network element obtaining indication information about user plane integrity support in a second network, requesting a bearer identifier, and mapping user plane security policies to enable session handovers, even when user plane integrity protection is required in the first network.

Benefits of technology

This method allows for successful handovers of sessions from a 5G network to a 4G network by activating user plane integrity protection, overcoming the limitations of fixed security settings in 4G networks and enabling interoperability between different network generations.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present application provides a communication method and communication apparatus. Said method may comprise: in the process that a terminal device establishes a session in a first network, a session management network element acquiring first indication information, the first indication information being used for indicating that user plane integrity protection is supported in a second network; the session management network element sending, according to the first indication information, a first request message to an access and mobility management function network element of the first network, the first request message being used for requesting the allocation of a bearer identifier to the session, and the bearer identifier corresponding to a bearer context of the terminal device in the second network; and the session management network element receiving a first response message from the access and mobility management function network element, the first response message comprising the bearer identifier. On the basis of the described method, the restriction, that a session established by a terminal device in a first network cannot be switched to a second network in the case where a user plane security policy of the first network requires that user plane integrity protection must be enabled, is removed.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] This application relates to the communication field, and more specifically, to a communication method and a communication apparatus. BACKGROUND

[0002] An on-demand user plane security protection mechanism is a security mechanism in a 5th generation (5th Generation, 5G) network, and on-demand user plane security protection includes user plane encryption protection and user plane integrity protection. In the on-demand user plane security protection mechanism, an access network device in the 5G network needs to determine, according to a user plane security policy received from a core network device, whether to activate user plane encryption protection and / or user plane integrity protection between the access network device and user equipment (user equipment, UE). The on-demand user plane security protection mechanism can provide more flexible user plane security protection for the UE.

[0003] However, an existing 4th generation (4th Generation, 4G) network does not support the on-demand user plane security protection mechanism. In the 4G network, user plane security between an access network device in the 4G network and the UE is fixed. To be specific, that user plane security is fixed means that user plane encryption protection is activated, and user plane integrity protection is not activated.

[0004] The 4G network will not retire in a short term. In this case, how to apply the on-demand user plane security protection mechanism to the 4G network has become a research hotspot in the industry.

[0005] Once the on-demand user plane security protection mechanism is introduced to the 4G network, how to implement interworking between the 4G network and the 5G network is a problem that needs to be urgently resolved in a current standard.SUMMARY

[0006] This application provides a communication method, to remove a limitation that a session established for a terminal device in a first network cannot be handed over to a second network when a user plane security policy in the first network requires that user plane integrity protection be activated.

[0007] According to a first aspect, a communication method is provided. The method may include: A session management network element obtains first indication information in a process of session establishment in a first network for a terminal device, where the first indication information indicates that user plane integrity protection in a second network is supported. The session management network element sends a first request message to an access and mobility management function network element in the first network based on the first indication information, where the first request message is used to request to assign a bearer identifier to the session, and the bearer identifier corresponds to a bearer context of the terminal device in the second network. The session management network element receives a first response message from the access and mobility management function network element, where the first response message includes the bearer identifier.

[0008] According to the foregoing technical solution, the session management network element can remove, based on the first indication information, a limitation that the session established for the terminal device in the first network cannot be handed over to the second network when a user plane security policy in the first network requires that user plane integrity protection be activated. According to the existing solution, when the user plane security policy in the first network requires that user plane integrity protection be activated, the session management networkelement does not request the bearer identifier from the access and mobility management function network element. Therefore, the access and mobility management function network element does not locally store the corresponding bearer identifier. In this case, when subsequently receiving a handing over requirement from an access network device in the first network, the access and mobility management function network element does not perform a related procedure of handing over the session established for the terminal device in the first network to the second network.

[0009] In a possible implementation, the session management network element sends the first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy in the first network.

[0010] That the session management network element does not consider the user plane security policy in the first network may be understood as that the session management network element does not consider a value of the user plane security policy in the first network. In other words, regardless of the value of the user plane security policy in the first network, the session management network element may send the first request message to the access and mobility management function network element based on the first indication information. For example, the session management network element may send the first request message to the access and mobility management function network element based on the first indication information when the user plane security policy in the first network includes activating user plane integrity protection (in other words, the value of user plane integrity protection is required (required)).

[0011] It should be understood that, when the terminal device is not connected in the 3rd generation partnership project, and the session that is requested to be established for the terminal device does not support interworking with the second network based on an N26 interface, the session management network element does not send the first request message to the access and mobility management function network element. Therefore, that the session management network element sends the first request message to the access and mobility management function networkelement based on the first indication information without considering the user plane security policy in the first network may be understood as that when the terminal device is connected in the 3rd generation partnership project, and the session that is requested to be established for the terminal device supports interworking with the second network based on an N26 interface, the session management network element sends the first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy in the first network.

[0012] For example, the first network is a 5th generation (5th generation, 5G) network, the second network is a 4th generation (4th generation, 5G) network, the session of the terminal device in the first network is a protocol data unit (protocol data unit, PDU) session, and the bearer context is an evolved packet system bearer context (evolved packet system bearer context, EPS bearer context).

[0013] For example, in a process of session establishment in a first network for a terminal device includes: after the terminal device sends a PDU session establishment request message and before the terminal device receives a PDU session establishment accept message.

[0014] With reference to the first aspect, in some implementations of the first aspect, the method further includes: The session management network element maps a user plane security policy of the terminal device in the first network to a user plane security policy of the terminal device in the second network. The session management network element stores the user plane security policy in the second network in the bearer context.

[0015] Based on the foregoing technical solution, the session management network element may map the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network, and may store the user plane security policy of the terminal device in the second network in the bearer context. Further, in a process in which the terminal device is handed over from the first network to the second network, the access and mobility management function network element in the first network obtains the bearer context from the session management network element, andfurther sends the obtained bearer context to a mobility management entity in the second network, so that the terminal device is handed over from the first network to the second network.

[0016] For example, the user plane security policy of the terminal device in the first network includes a user plane encryption protection policy and / or a user plane integrity protection policy, and the user plane security policy of the terminal device in the second network includes a user plane encryption protection policy and / or a user plane integrity protection policy.

[0017] For example, the user plane security policy in the first network is locally stored by the session management network element, or the user plane security policy in the first network is obtained by the session management network element from a unified data management network element.

[0018] For example, the user plane security policy of the terminal device in the first network is at a granularity of a PDU session, and the user plane security policy of the terminal device in the first network is at a granularity of an evolved packet system bearer (evolved packet system bearer, EPS bearer).

[0019] The user plane security policy of the terminal device in the first network may alternatively be at a granularity of a data network name (data network name, DNN) + single network slice selection assistance information (single network slice selection assistance information, S-NSSAI).

[0020] The user plane security policy of the terminal device in the second network may alternatively be at a granularity of an evolved universal terrestrial radio access network radio access bearer (evolved universal terrestrial radio access network radio access bearer, E-RAB) or an access point name (access point name, APN).

[0021] With reference to the first aspect, in some implementations of the first aspect, the method further includes: The session management network element obtains third indication information, where the third indication information indicates to perform user plane security policy mapping. That the session management network element maps a user plane security policy of the terminal device in the first network to a user plane security policy of the terminal device inthe second network includes: The session management network element maps the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network based on the third indication information.

[0022] Based on the foregoing technical solution, when receiving the third indication information, the session management network element maps the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network, so that the session management network element can be prevented from performing unnecessary mapping, and processing logic of the session management network element is optimized. When the session management network element does not receive the third indication information, the session management network element directly maps the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network. If the second network does not support the activation of user plane integrity protection, the terminal device cannot be handed over from the first network to the second network, and mapping performed by the session management network element is unnecessary mapping.

[0023] With reference to the first aspect, in some implementations of the first aspect, the method further includes: The session management network element sends the bearer context to a target mobility management entity in the second network via the access and mobility management function network element, where the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

[0024] Based on the foregoing technical solution, the session management network element sends the user plane security policy of the terminal device in the second network to the target mobility management entity, so that in the process in which the terminal device is handed over from the first network to the second network, the target mobility management entity may determine a user plane security activation state of the terminal device in the second network according to the user plane security policy of the terminal device in the second network. This helps theterminal device be successfully handed over from the first network to the second network.

[0025] With reference to the first aspect, in some implementations of the first aspect, the method further includes: The session management network element sends a fully qualified domain name of the session management network element on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

[0026] Based on the foregoing technical solution, the session management network element sends the fully qualified domain name of the session management network element on the S5 / S8 interface to the unified data management network element based on the first indication information, so as to remove a limitation that the session established for the terminal device in the first network cannot be handed over to the second network when the user plane security policy in the first network requires that user plane integrity protection be activated. According to the existing solution, when the user plane security policy in the first network requires that user plane integrity protection be activated, the session management network element does not send the fully qualified domain name of the session management network element on the S5 / S8 interface to the unified data management network element. Therefore, the session established for the terminal device in the first network cannot be subsequently handed over to the second network.

[0027] That the session management network element does not consider the user plane security policy in the first network may be understood as that the session management network element does not consider a value of the user plane security policy in the first network. In other words, regardless of the value of the user plane security policy in the first network, the session management network element may send the fully qualified domain name on the S5 / S8 interface to the unified data management network element based on the first indication information. For example, the session management network element may send the fully qualified domain name on the S5 / S8 interface to the unified data management network element based on the first indication information when the user plane securitypolicy in the first network includes activating user plane integrity protection (in other words, the value of user plane integrity protection is required (required)).

[0028] It should be understood that, when the terminal device does not support interworking with the second network and / or the session of the terminal device in the first network does not support interworking with the second network, the session management network element does not send the fully qualified domain name on the S5 / S8 interface to the unified data management network element. Therefore, that the session management network element sends a fully qualified domain name on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy in the first network may be understood as that when the terminal device supports the interworking with the second network and the session of the terminal device in the first network supports the interworking with the second network, the session management network element sends the fully qualified domain name on the S5 / S8 interface to the unified data management network element based on the first indication information without considering the user plane security policy in the first network.

[0029] With reference to the first aspect, in some implementations of the first aspect, that a session management network element obtains first indication information includes: The session management network element receives the first indication information from the access and mobility management function network element.

[0030] For example, the first indication information is included in a protocol data unit session session management context establishment request message.

[0031] With reference to the first aspect, in some implementations of the first aspect, that a session management network element obtains first indication information includes: The session management network element receives the first indication information from the terminal device via the access and mobility management function network element.

[0032] For example, the first indication information is included in a protocol data unit session establishment request message.

[0033] According to a second aspect, a communication method is provided. The method may include: An access and mobility management function network element in a first network receives a registration request message from a terminal device, where the registration request message includes second indication information, and the second indication information indicates that the terminal device supports user plane integrity protection in a second network. In a process of session establishment in the first network for the terminal device, the access and mobility management function network element sends first indication information to a session management network element based on the second indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported. The access and mobility management function network element receives a first request message, where the first request message is used to request to assign a bearer identifier to the session, and the bearer identifier corresponds to a bearer context of the terminal device in the second network. The access and mobility management function network element sends a first response message to the session management network element, where the first response message includes the bearer identifier.

[0034] Based on the foregoing technical solution, the access and mobility management function network element sends the first indication information to the session management network element, so that the session management network element can remove, based on the first indication information, a limitation that the session established for the terminal device in the first network cannot be handed over to the second network when a user plane security policy in the first network requires that user plane integrity protection be activated. According to the existing solution, when the user plane security policy in the first network requires that user plane integrity protection be activated, the session management network element does not request the bearer identifier from the access and mobility management function network element. Therefore, the access and mobility management function network element does not locally store the corresponding bearer identifier. In this case, when subsequently receiving a handing over requirement from an access network device in the first network, the access and mobility management functionnetwork element does not perform a related procedure of handing over the session established for the terminal device in the first network to the second network.

[0035] For example, the first network is a 5th generation network, the second network is a 4th generation network, the session of the terminal device in the first network is a protocol data unit session, and the bearer context is an evolved packet system bearer context.

[0036] For example, in a process of session establishment in a first network for a terminal device includes: after the terminal device sends a PDU session establishment request message and before the terminal device receives a PDU session establishment accept message.

[0037] With reference to the second aspect, in some implementations of the second aspect, the method further includes: The access and mobility management function network element sends a second request message to the session management function network element. The access and mobility management function network element receives a second response message from the session management network element, where the second response message includes the bearer context, the bearer context includes a user plane security policy of the terminal device in the second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network. The access and mobility management function network element sends the bearer context to a target mobility management entity in the second network, where the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

[0038] Based on the foregoing technical solution, the access and mobility management function network element may obtain the user plane security policy of the terminal device in the second network from the session management network element, and send the user plane security policy of the terminal device in the second network to the target mobility management entity, so that a problem of how the access and mobility management function network element obtains the user plane security policy of the terminal device in the second network in a process of handingover the terminal device from the first network to the second network is resolved. This helps the terminal device be successfully handed over from the first network to the second network.

[0039] For example, the user plane security policy of the terminal device in the first network includes a user plane encryption protection policy and / or a user plane integrity protection policy, and the user plane security policy of the terminal device in the second network includes a user plane encryption protection policy and / or a user plane integrity protection policy.

[0040] For example, a granularity of the user plane security policy in the first network is a granularity of a protocol data unit session. A granularity of the user plane security policy in the second network is a granularity of an evolved packet system bearer.

[0041] The user plane security policy of the terminal device in the first network may alternatively be a data network name + single network slice selection assistance information granularity.

[0042] The user plane security policy of the terminal device in the second network may alternatively be at a granularity of an evolved universal terrestrial radio access network radio access bearer or an access point name.

[0043] For example, the second request message is a protocol data unit session context request message, and the second response message is a protocol data unit session context response message.

[0044] With reference to the second aspect, in implementations of the second aspect, the second request message includes third indication information, and the third indication information indicates to perform user plane security policy mapping; and the method further includes: The access and mobility management function network element determines, according to a second local policy, to add the third indication information to the second request message, where the second local policy includes one or more of the following: whether the session supports interworking with the second network, and whether the target mobility management entity supports user plane integrity protection, where the target mobility management entity is a network element that serves the terminal device when the session ishanded over to the second network.

[0045] Based on the foregoing technical solution, the access and mobility management function network element sends the third indication information to the session management network element, so that when receiving the third indication information, the session management network element maps the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network. This can prevent the session management network element from performing unnecessary mapping, and optimize processing logic of the session management network element. When the session management network element does not receive the third indication information, the session management network element directly maps the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network. If the second network does not support the activation of user plane integrity protection, the terminal device cannot be handed over from the first network to the second network, and mapping performed by the session management network element is unnecessary mapping.

[0046] With reference to the second aspect, in implementations of the second aspect, the method further includes: The access and mobility management function network element determines, according to a first local policy, to send the first indication information to the session management network element, where the first local policy includes: whether the session supports interworking with the second network.

[0047] According to a third aspect, a communication method is provided. The method may include: A terminal device sends second indication information to an access and mobility management function network element in a first network, where the second indication information indicates that the terminal device supports user plane integrity protection in a second network. The terminal device receives radio resource control reconfiguration sent by an access network device in the second network, where the radio resource control reconfiguration includes indication information for activating user plane integrity protection.

[0048] Based on the foregoing technical solution, the terminal device sends thesecond indication information to the access and mobility management function network element in the first network, so that the terminal device can be successfully handed over from the first network to the second network.

[0049] For example, the second indication information is included in a registration request message.

[0050] For example, the second indication information is included in a protocol data unit session establishment request message.

[0051] According to a fourth aspect, a communication method is provided. The method may include: A session management network element receives a second request message from an access and mobility management function network element in a first network. The session management network element sends a second response message to the access and mobility management function network element in response to the second request message, where the second response message includes a bearer context, the bearer context includes a user plane security policy of a terminal device in a second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network.

[0052] Based on the foregoing technical solution, the session management network element sends the user plane security policy of the terminal device in the second network to the access and mobility management function network element, so that a problem of how the access and mobility management function network element obtains the user plane security policy of the terminal device in the second network in a process of handing over the terminal device from the first network to the second network is resolved. This helps the terminal device be successfully handed over from the first network to the second network.

[0053] For example, in the process in which the terminal device is handed over from the first network to the second network, the session management network element receives the second request message from the access and mobility management function network element in the first network, and sends the second response message to the access and mobility management function network element in response to the second request message.

[0054] For example, the first network is a 5th generation network, the second network is a 4th generation network, and the bearer context is an evolved packet system bearer context.

[0055] For example, the user plane security policy of the terminal device in the first network includes a user plane encryption protection policy and / or a user plane integrity protection policy, and the user plane security policy of the terminal device in the second network includes a user plane encryption protection policy and / or a user plane integrity protection policy.

[0056] For example, the user plane security policy of the terminal device in the first network is a granularity of a protocol data unit session, and the user plane security policy of the terminal device in the first network is a granularity of an evolved packet system bearer.

[0057] The user plane security policy of the terminal device in the first network may alternatively be a data network name + single network slice selection assistance information granularity.

[0058] The user plane security policy of the terminal device in the second network may alternatively be at a granularity of an evolved universal terrestrial radio access network radio access bearer or an access point name.

[0059] For example, the second request message is a protocol data unit session context request message, and the second response message is a protocol data unit session context response message.

[0060] With reference to the fourth aspect, in some implementations of the fourth aspect, the method further includes: The session management network element maps the user plane security policy in the first network to the user plane security policy in the second network. The session management network element stores the user plane security policy in the second network in the bearer context.

[0061] Based on the foregoing technical solution, the session management network element may map the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network, and may store the user plane security policy of the terminal device in the second network in the bearer context. Further, in a process in which theterminal device is handed over from the first network to the second network, the access and mobility management function network element in the first network obtains the bearer context from the session management network element, and further sends the obtained bearer context to a mobility management entity in the second network, so that the terminal device is handed over from the first network to the second network.

[0062] With reference to the fourth aspect, in some implementations of the fourth aspect, the method further includes: The session management network element obtains first indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported. That the session management network element maps the user plane security policy in the first network to the user plane security policy in the second network includes: When receiving the first indication information, the session management network element maps the user plane security policy in the first network to the user plane security policy in the second network.

[0063] Based on the foregoing technical solution, when receiving the first indication information, the session management network element may directly map the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network without considering the user plane security policy in the first network, so that processing logic of the session management network element is optimized. If the session management network element does not receive the first indication information, before performing mapping, optionally, the session management network element needs to first determine whether the user plane security policy in the first network requires activating of user plane integrity protection, and if user plane integrity protection is not required to be activated, maps the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network.

[0064] For example, the user plane security policy in the first network is locally stored by the session management network element, or the user plane security policy in the first network is obtained by the session management network elementfrom a unified data management network element.

[0065] With reference to the fourth aspect, in some implementations of the fourth aspect, the method further includes: The session management network element obtains first indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported. The session management network element requests the bearer identifier from the access and mobility management function network element based on the first indication information, where the bearer identifier corresponds to the bearer context.

[0066] For example, the session management network element obtains the first indication information in a process of session establishment in the first network for the terminal device. For example, in a process of session establishment in a first network for a terminal device includes: after the terminal device sends a PDU session establishment request message and before the terminal device receives a PDU session establishment accept message.

[0067] In a possible implementation, the session management network element sends the first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy in the first network.

[0068] That the session management network element does not consider the user plane security policy in the first network may be understood as that the session management network element does not consider a value of the user plane security policy in the first network. In other words, regardless of the value of the user plane security policy in the first network, the session management network element may send the first request message to the access and mobility management function network element based on the first indication information. For example, the session management network element may send the first request message to the access and mobility management function network element based on the first indication information when the user plane security policy in the first network includes activating user plane integrity protection (in other words, the value of user plane integrity protection is required (required)).

[0069] It should be understood that, when the terminal device is not connected in the 3rd generation partnership project, and the session that is requested to be established for the terminal device does not support interworking with the second network based on an N26 interface, the session management network element does not send the first request message to the access and mobility management function network element. Therefore, that the session management network element sends the first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy in the first network may be understood as that when the terminal device is connected in the 3rd generation partnership project, and the session that is requested to be established for the terminal device supports interworking with the second network based on an N26 interface, the session management network element sends the first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy in the first network.

[0070] According to the foregoing technical solution, the session management network element can remove, based on the first indication information, a limitation that the session established for the terminal device in the first network cannot be handed over to the second network when a user plane security policy in the first network requires that user plane integrity protection be activated. According to the existing solution, when the user plane security policy in the first network requires that user plane integrity protection be activated, the session management network element does not request the bearer identifier from the access and mobility management function network element. Therefore, the access and mobility management function network element does not locally store the corresponding bearer identifier. In this case, when subsequently receiving a handing over requirement from an access network device in the first network, the access and mobility management function network element does not perform a related procedure of handing over the session established for the terminal device in the first network to the second network.

[0071] With reference to the fourth aspect, in some implementations of thefourth aspect, the method further includes: The session management network element sends a fully qualified domain name of the session management network element on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

[0072] Based on the foregoing technical solution, the session management network element sends the fully qualified domain name of the session management network element on the S5 / S8 interface to the unified data management network element based on the first indication information, so as to remove a limitation that the session established for the terminal device in the first network cannot be handed over to the second network when the user plane security policy in the first network requires that user plane integrity protection be activated. According to the existing solution, when the user plane security policy in the first network requires that user plane integrity protection be activated, the session management network element does not send the fully qualified domain name of the session management network element on the S5 / S8 interface to the unified data management network element. Therefore, the session established for the terminal device in the first network cannot be subsequently handed over to the second network.

[0073] That the session management network element does not consider the user plane security policy in the first network may be understood as that the session management network element does not consider a value of the user plane security policy in the first network. In other words, regardless of the value of the user plane security policy in the first network, the session management network element may send the fully qualified domain name on the S5 / S8 interface to the unified data management network element based on the first indication information. For example, the session management network element may send the fully qualified domain name on the S5 / S8 interface to the unified data management network element based on the first indication information when the user plane security policy in the first network includes activating user plane integrity protection (in other words, the value of user plane integrity protection is required (required)).

[0074] It should be understood that, when the terminal device does not supportinterworking with the second network and / or the session of the terminal device in the first network does not support interworking with the second network, the session management network element does not send the fully qualified domain name on the S5 / S8 interface to the unified data management network element. Therefore, that the session management network element sends a fully qualified domain name on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy in the first network may be understood as that when the terminal device supports the interworking with the second network and the session of the terminal device in the first network supports the interworking with the second network, the session management network element sends the fully qualified domain name on the S5 / S8 interface to the unified data management network element based on the first indication information without considering the user plane security policy in the first network.

[0075] With reference to the fourth aspect, in some implementations of the fourth aspect, that a session management network element obtains first indication information includes: The session management network element receives the first indication information from the access and mobility management function network element.

[0076] For example, the first indication information is included in a protocol data unit session session management context establishment request message.

[0077] With reference to the fourth aspect, in some implementations of the fourth aspect, that a session management network element obtains first indication information includes: The session management network element receives the first indication information from the terminal device via the access and mobility management function network element.

[0078] For example, the first indication information is included in a protocol data unit session establishment request message.

[0079] According to a fifth aspect, a communication method is provided. The method may include: An access and mobility management function network element in a first network sends a second request message to a session managementnetwork element. The access and mobility management function network element receives a second response message from the session management network element, where the second response message includes a bearer context, the bearer context includes a user plane security policy of a terminal device in a second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network. The access and mobility management function network element sends the bearer context to a target mobility management entity serving the terminal device in the second network.

[0080] Based on the foregoing technical solution, the access and mobility management function network element may obtain the user plane security policy of the terminal device in the second network from the session management network element, and send the user plane security policy of the terminal device in the second network to the target mobility management entity, so that a problem of how the access and mobility management function network element obtains the user plane security policy of the terminal device in the second network in a process of handing over the terminal device from the first network to the second network is resolved. This helps the terminal device be successfully handed over from the first network to the second network.

[0081] For example, the user plane security policy of the terminal device in the first network includes a user plane encryption protection policy and / or a user plane integrity protection policy, and the user plane security policy of the terminal device in the second network includes a user plane encryption protection policy and / or a user plane integrity protection policy.

[0082] For example, a granularity of the user plane security policy in the first network is a granularity of a protocol data unit session. A granularity of the user plane security policy in the second network is a granularity of an evolved packet system bearer.

[0083] The user plane security policy of the terminal device in the first network may alternatively be a data network name + single network slice selection assistance information granularity.

[0084] The user plane security policy of the terminal device in the secondnetwork may alternatively be at a granularity of an evolved universal terrestrial radio access network radio access bearer or an access point name.

[0085] For example, the second request message is a protocol data unit session context request message, and the second response message is a protocol data unit session context response message.

[0086] With reference to the fifth aspect, in some implementations of the fifth aspect, the method further includes: The access and mobility management function network element receives second indication information from the terminal device, where the second indication information indicates that the terminal device supports user plane integrity protection in the second network. The access and mobility management function network element sends first indication information to the session management network element based on the second indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported.

[0087] For example, the second indication information is included in a registration request message, and the first indication information is included in a protocol data unit session session management context establishment request message.

[0088] With reference to the fifth aspect, in some implementations of the fifth aspect, the method further includes: The access and mobility management function network element determines, according to a first local policy, whether to send the first indication information to the session management network element, where the first local policy includes whether a session of the terminal device in the first network supports interworking with the second network.

[0089] According to a sixth aspect, a communication apparatus is provided, including units configured to perform steps in the method according to any one of the first aspect or the implementations of the first aspect.

[0090] According to a seventh aspect, a communication apparatus is provided, including units configured to perform steps in the method according to any one of the second aspect or the implementations of the second aspect.

[0091] According to an eighth aspect, a communication apparatus is provided,including units configured to perform steps in the method according to any one of the third aspect or the implementations of the third aspect.

[0092] According to a ninth aspect, a communication apparatus is provided. The communication apparatus may include a transceiver unit, and the transceiver unit is configured to receive a second request message from an access and mobility management function network element in a first network. The transceiver unit is further configured to send a second response message to the access and mobility management function network element in response to the second request message, where the second response message includes a bearer context, the bearer context includes a user plane security policy of a terminal device in a second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network.

[0093] For example, in the process in which the terminal device is handed over from the first network to the second network, the transceiver unit is configured to: receive the second request message from the access and mobility management function network element in the first network, and send the second response message to the access and mobility management function network element in response to the second request message.

[0094] For example, the first network is a 5th generation network, the second network is a 4th generation network, and the bearer context is an evolved packet system bearer context.

[0095] For example, the user plane security policy of the terminal device in the first network includes a user plane encryption protection policy and / or a user plane integrity protection policy, and the user plane security policy of the terminal device in the second network includes a user plane encryption protection policy and / or a user plane integrity protection policy.

[0096] For example, the user plane security policy of the terminal device in the first network is a granularity of a protocol data unit session, and the user plane security policy of the terminal device in the first network is a granularity of an evolved packet system bearer.

[0097] The user plane security policy of the terminal device in the first networkmay alternatively be a data network name + single network slice selection assistance information granularity.

[0098] The user plane security policy of the terminal device in the second network may alternatively be at a granularity of an evolved universal terrestrial radio access network radio access bearer or an access point name.

[0099] For example, the second request message is a protocol data unit session context request message, and the second response message is a protocol data unit session context response message.

[00100] With reference to the ninth aspect, in some implementations of the ninth aspect, the communication apparatus further includes a processing unit, and the processing unit is configured to map the user plane security policy in the first network to the user plane security policy in the second network. The processing unit is further configured to store the user plane security policy in the second network in the bearer context.

[00101] With reference to the ninth aspect, in some implementations of the ninth aspect, the transceiver unit is further configured to obtain first indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported. The processing unit is specifically configured to, when receiving the first indication information, map the user plane security policy in the first network to the user plane security policy in the second network.

[00102] For example, the user plane security policy in the first network is locally stored by the session management network element, or the user plane security policy in the first network is obtained by the session management network element from a unified data management network element.

[00103] With reference to the ninth aspect, in some implementations of the ninth aspect, the transceiver unit is further configured to obtain first indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported. The transceiver unit is further configured to request the bearer identifier from the access and mobility management function network element based on the first indication information,where the bearer identifier corresponds to the bearer context.

[00104] For example, the transceiver unit is configured to obtain the first indication information in a process of session establishment in the first network for the terminal device. For example, in a process of session establishment in a first network for a terminal device includes: after the terminal device sends a PDU session establishment request message and before the terminal device receives a PDU session establishment accept message.

[00105] In a possible implementation, the transceiver unit is configured to send a first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy in the first network.

[00106] With reference to the ninth aspect, in some implementations of the ninth aspect, the transceiver unit is further configured to send a fully qualified domain name of the session management network element on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

[00107] With reference to the ninth aspect, in some implementations of the ninth aspect, that a session management network element obtains first indication information includes: The session management network element receives the first indication information from the access and mobility management function network element.

[00108] For example, the first indication information is included in a protocol data unit session session management context establishment request message.

[00109] With reference to the ninth aspect, in some implementations of the ninth aspect, that a session management network element obtains first indication information includes: The session management network element receives the first indication information from the terminal device via the access and mobility management function network element.

[00110] For example, the first indication information is included in a protocol data unit session establishment request message.

[00111] According to a tenth aspect, a communication apparatus is provided. Thecommunication apparatus may include a transceiver unit, and the transceiver unit is configured to send a second request message to a session management network element. The transceiver unit is further configured to receive a second response message from the session management network element, where the second response message includes a bearer context, the bearer context includes a user plane security policy of a terminal device in a second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network. The transceiver unit is further configured to send the bearer context to a target mobility management entity serving the terminal device in the second network.

[00112] For example, the user plane security policy of the terminal device in the first network includes a user plane encryption protection policy and / or a user plane integrity protection policy, and the user plane security policy of the terminal device in the second network includes a user plane encryption protection policy and / or a user plane integrity protection policy.

[00113] For example, a granularity of the user plane security policy in the first network is a granularity of a protocol data unit session. A granularity of the user plane security policy in the second network is a granularity of an evolved packet system bearer.

[00114] The user plane security policy of the terminal device in the first network may alternatively be a data network name + single network slice selection assistance information granularity.

[00115] The user plane security policy of the terminal device in the second network may alternatively be at a granularity of an evolved universal terrestrial radio access network radio access bearer or an access point name.

[00116] For example, the second request message is a protocol data unit session context request message, and the second response message is a protocol data unit session context response message.

[00117] With reference to the tenth aspect, in some implementations of the tenth aspect, the transceiver unit is further configured to receive second indication information from the terminal device, where the second indication informationindicates that the terminal device supports user plane integrity protection in the second network. The transceiver unit is further configured to send first indication information to the session management network element based on the second indication information, where the first indication information indicates that support user plane integrity protection in the second network is supported.

[00118] For example, the second indication information is included in a registration request message, and the first indication information is included in a protocol data unit session session management context establishment request message.

[00119] With reference to the tenth aspect, in some implementations of the tenth aspect, the communication apparatus further includes a processing unit, and the processing unit is configured to determine, according to a first local policy, whether to send the first indication information to the session management network element, where the first local policy includes whether a session of the terminal device in the first network supports interworking with the second network.

[00120] According to an eleventh aspect, this application provides a communication device, including a processor. The processor is coupled to a memory, and may be configured to execute instructions in the memory, to implement the method in any one of the first aspect or the possible implementations of the first aspect, or implement the method in any one of the fourth aspect or the possible implementations of the fourth aspect. The communication device further includes the memory. The communication device further includes a communication interface. The processor is coupled to the communication interface.

[00121] In an implementation, the communication device is a session management network element. When the communication device is the session management network element, the communication interface may be a transceiver or an input / output interface.

[00122] In another implementation, the communication device is a chip or a chip system configured in a session management network element. When the communication device is the chip or the chip system configured in the session management network element, the communication interface may be an input / outputinterface.

[00123] The transceiver may be a transceiver circuit. The input / output interface may be an input / output circuit.

[00124] According to a twelfth aspect, this application provides a communication device, including a processor. The processor is coupled to a memory, and may be configured to execute instructions in the memory, to implement the method in any one of the second aspect or the possible implementations of the second aspect, or implement the method in any one of the fifth aspect or the possible implementations of the fifth aspect. The communication device further includes the memory. The communication device further includes a communication interface. The processor is coupled to the communication interface.

[00125] In an implementation, the communication device is an access and mobility management function network element. When the communication device is the access and mobility management function network element, the communication interface may be a transceiver or an input / output interface.

[00126] In another implementation, the communication device is a chip or a chip system configured in an access and mobility management function network element. When the communication device is the chip or the chip system configured in the access and mobility management function network element, the communication interface may be an input / output interface.

[00127] The transceiver may be a transceiver circuit. The input / output interface may be an input / output circuit.

[00128] According to a thirteenth aspect, this application provides a communication device, including a processor. The processor is coupled to a memory, and may be configured to execute instructions in the memory, to implement the method in any one of the third aspect and the possible implementations of the third aspect. The communication device further includes the memory. The communication device further includes a communication interface. The processor is coupled to the communication interface.

[00129] In an implementation, the communication device is a terminal device. When the communication device is the terminal device, the communicationinterface may be a transceiver or an input / output interface.

[00130] In another implementation, the communication device is a chip or a chip system configured in a terminal device. When the communication device is the chip or the chip system configured in the terminal device, the communication interface may be an input / output interface.

[00131] The transceiver may be a transceiver circuit. The input / output interface may be an input / output circuit.

[00132] According to a fourteenth aspect, this application provides a processor, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to: receive a signal through the input circuit, and transmit a signal through the output circuit, so that the processor performs the methods in the foregoing aspects.

[00133] During specific implementation, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, any logic circuit, or the like. An input signal received by the input circuit may be received and input by using, for example, but not limited to, a receiver, a signal output by the output circuit may be output to, for example, but not limited to, a transmitter and transmitted by the transmitter, and the input circuit and the output circuit may be a same circuit, where the circuit is used as the input circuit and the output circuit at different moments. Specific implementations of the processor and the various circuits are not limited in this embodiment of this application.

[00134] According to a fifteenth aspect, this application provides a processing apparatus, including: a communication interface and a processor. The communication interface is coupled to the processor. The communication interface is configured to input and / or output information. The information includes at least one of instructions or data. The processor is configured to execute a computer program, so that the processing apparatus performs the methods in the foregoing aspects.

[00135] According to a sixteenth aspect, this application provides a processing apparatus, including: a processor and a memory. The processor is configured to:read instructions stored in the memory, receive a signal by using a receiver, and transmit a signal by using a transmitter, so that the processing apparatus performs the methods in the foregoing aspects.

[00136] Optionally, there are one or more processors. If there is a memory, there may alternatively be one or more memories.

[00137] Optionally, the memory may be integrated with the processor, or the memory and the processor are separately disposed.

[00138] During specific implementation, the memory may be a non-transitory (non-transitory) memory, such as a read-only memory (read-only memory, ROM). The memory and the processor may be integrated into one chip, or may be separately disposed in different chips. A type of the memory and a manner of disposing the memory and the processor are not limited in this embodiment of this application.

[00139] It should be understood that in a related information exchange process, for example, sending indication information may be a process of outputting the indication information from the processor, and receiving the indication information may be a process of inputting the received indication information to the processor. Specifically, the information output by the processor may be output to the transmitter, and the input information received by the processor may be from the receiver. The transmitter and the receiver may be collectively referred to as a transceiver.

[00140] The apparatus in the fifteenth aspect and the sixteenth aspect may be a chip, the processor may be implemented by hardware, or may be implemented by software. When the processor is implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like. When the processor is implemented by the software, the processor may be a general-purpose processor, and is implemented by reading software code stored in a memory. The memory may be integrated into the processor, or may be located outside the processor and exist independently.

[00141] According to a seventeenth aspect, this application provides a computer program product. The computer program product includes a computer program(also referred to as code or instructions). When the computer program is run, a computer is enabled to perform the methods in the foregoing aspects.

[00142] According to an eighteenth aspect, this application provides a computer-readable medium. The computer-readable medium stores a computer program (also referred to as code or instructions). When the computer program is run on a computer, the computer is enabled to perform the methods in the foregoing aspects.

[00143] According to a nineteenth aspect, this application provides a communication system, including the session management network element, the terminal device, and the access and mobility management function network element described above. BRIEF DESCRIPTION OF DRAWINGS

[00144] FIG. 1 is a schematic diagram of a network architecture to which an embodiment of this application is applicable;

[00145] FIG. 2 is a schematic flowchart of a communication method according to an embodiment of this application;

[00146] FIG. 3 is a schematic flowchart of a communication method according to another embodiment of this application;

[00147] FIG. 4 is a schematic flowchart of a communication method according to another embodiment of this application;

[00148] FIG. 5 is a schematic flowchart of a communication method according to another embodiment of this application;

[00149] FIG. 6 is a schematic flowchart of a communication method according to another embodiment of this application;

[00150] FIG. 7(a) and FIG. 7(b) are a schematic flowchart of a communication method according to another embodiment of this application;

[00151] FIG. 8 is a schematic block diagram of a communication apparatus according to an embodiment of this application; and

[00152] FIG. 9 is a schematic block diagram of a communication device according to an embodiment of this application.DESCRIPTION OF EMBODIMENTS

[00153] The following describes technical solutions of this application with reference to the accompanying drawings.

[00154] The technical solutions in embodiments of this application may be applied to various communication systems, for example, a long term evolution (long term evolution, LTE) system, an LTE frequency division duplex (frequency division duplex, FDD) system, an LTE time division duplex (time division duplex, TDD) system, a universal mobile telecommunications system (universal mobile telecommunications system, UMTS), a worldwide interoperability for microwave access (worldwide interoperability for microwave access, WiMAX) communication system, a 5th generation (5th generation, 5G) system, a new radio (new radio, NR) system, or a future network. The 5G mobile communication system described in this application includes a non-standalone (non-standalone, NSA) 5G mobile communication system or a standalone (standalone, SA) 5G mobile communication system. The technical solutions provided in this application may be further applied to a future communication system, for example, a sixth generation mobile communication system. Alternatively, the communication system may be a public land mobile network (public land mobile network, PLMN), a device-to-device (device-to-device, D2D) communication system, a machine-to-machine (machine-to-machine, M2M) communication system, an internet of things (internet of Things, IoT) communication system, or another communication system.

[00155] FIG. 1 shows a network architecture to which an embodiment of this application is applicable. Specifically, a system architecture 100 may include network elements in a 4G network and network elements in a 5G network. Some modules in the system architecture 100 have functions of the network elements in the 4G network and functions of the network elements in the 5G network, for example, a user plane function (user plane function, UPF) + packet data network gateway for user plane (packet data network gateway for user plane, PGW-U) function entity, a session management function (session management function, SMF) + packet data network gateway control plane function (packet data networkgateway control plane function, PGW-C) entity, a policy control function (policy control function, PCF) + policy and charging rules function (policy and charging rules function, PCRF) entity, and a home subscriber server (home subscriber server, HSS) + unified data management (unified data management, UDM) entity.

[00156] The UPF+PGW-U entity is used for user data transmission management. In the interworking system architecture, the module can not only be used for 4G data transmission, but also provide a 5G data transmission function.

[00157] The SMF+PGW-C entity is used for session establishment, deletion, and modification management. In the interworking system architecture, the module can provide both a 4G session management function and a 5G session management function.

[00158] The PCF+PCRF entity is used for policy and charging control. In the interworking system architecture, the module can provide a terminal with both 4G policy and charging control and 5G policy and charging control.

[00159] The HSS+UDM entity is configured to store subscription data of a user. In the interworking system architecture, the module stores both 4G subscription information and 5G subscription information of a terminal.

[00160] It should be understood that, "+" indicates integrated configuration. A UPF is a user plane function in the 5G network, and a PGW-U is a gateway user plane function that is in the 4G network that corresponds to the UPF; an SMF is a session management function in the 5G network, and a PGW-C is a gateway control plane function that is in the 4G network and that corresponds to the SMF; and a PCF is a policy control function in the 5G network, and a PCRF is a policy and charging rules function that is in the 4G network and that corresponds to the PCF. The "integrated configuration" herein means that a same network element may have functions of two network function entities.

[00161] In embodiments of this application, for ease of description, the HSS+UDM entity is referred to as a subscriber data management network element, the SMF+PGW-C is referred to as a session management network element, and the UPF+PGW-U is referred to as a user plane function network element. This is described herein for once, and details are not described below again. Certainly, theforegoing network devices obtained through integrated configuration may also use other names. This is not specifically limited in embodiments of this application.

[00162] In addition, the system architecture 100 may further include: a mobility management entity (mobility management entity, MME) and a serving gateway (serving gateway, SGW) in the 4G network, and an access and mobility management function (access and mobility management function, AMF) entity in the 5G network.

[00163] The MME is used for mobility management of a user. For example, the mobility management mainly includes attachment management, accessibility management, mobility management, paging management, access authentication and authorization, non-access stratum signaling encryption and integrity protection, and the like of the user.

[00164] The SGW is a user plane gateway, and is a user plane termination point of an evolved universal terrestrial radio access network (evolved universal terrestrial radio access network, E-UTRAN). The SGW manages data packet routing and transmission, adds a packet tag of a transport layer, and so on.

[00165] The AMF entity is used for access and mobility management of a user, mainly including registration management, accessibility management, mobility management, paging management, access authentication and authorization, non-access stratum signaling encryption and integrity protection, and the like of the user.

[00166] The terminal accesses the 4G network through the E-UTRAN, and the terminal accesses the 5G network via a next generation radio access network (next generation radio access network, NG-RAN) device.

[00167] The NG-RAN device is configured to provide the terminal with a radio air interface to access a core network, to obtain a corresponding service.

[00168] The E-UTRAN is configured to perform radio resource management, establish, modify, or delete an air interface resource, provide data and signaling transmission for the terminal, and the like for the terminal.

[00169] The following describes communication interfaces between the foregoing modules in the system architecture 100.

[00170] An S1-MME interface is a control plane interface between the MMEand the E-UTRAN.

[00171] An S1-U interface is a user plane interface between the SGW and the E-UTRAN.

[00172] An S5-U interface is a user plane interface between the SGW and the PGW-U, and is configured to transmit user plane data of the terminal.

[00173] An S5-C interface is a control plane management interface between the SGW and the PGW-U, and is configured to establish a user plane connection between the SGW and the PGW-U for the terminal.

[00174] An S6a interface is an interface between the MME and an HSS, and is configured to obtain the subscription data of the user and perform an authentication and authorization function for the terminal.

[00175] An S11 interface is an interface between the SGW and the MME, and is configured to establish a user plane bearer.

[00176] An N1 interface is an interface between the terminal and the AMF, and is used for non-access stratum signaling management and transmission.

[00177] An N2 interface is an interface between the NG-RAN and the AMF, and is used for signaling transmission.

[00178] An N3 interface is an interface between the UPF and the NG-RAN, and is configured to transmit user data.

[00179] An N4 interface is an interface between the SMF and the UPF, and is configured to establish a user plane transmission channel.

[00180] An N7 interface is an interface between the SMF and the PCF, and is configured to formulate and deliver policy control and charging information.

[00181] An N8 interface is an interface between the AMF and a UDM, and is configured to obtain mobility-related subscription information of the user and the like.

[00182] An N10 interface is an interface between the SMF and the UDM, and is configured to obtain session management-related subscription information of the user and the like.

[00183] An N11 interface is an interface between the SMF and the AMF, and is used for transmission of session management information and the like.

[00184] An N15 interface is an interface between the AMF and the PCF, and is configured to obtain access and mobility-related policy information.

[00185] It should be understood that, in the system architecture 100, a first interface is introduced to support interworking between the 4G network and the 5G network. The first interface is a communication interface between the AMF in the 5G network and the MME in the 4G network, and may be represented by an N26 interface. The system architecture optionally supports the N26 interface. A handing over procedure can be used only in an interworking system architecture that supports the N26 interface, to ensure service continuity.

[00186] It should be noted that in the system architecture 100, names of the interfaces between the modules are merely examples, and the interfaces may have other names in a specific implementation. This is not specifically limited in embodiments of this application.

[00187] It should be further noted that in the system architecture 100, the NG-RAN device in the 5G network may also be referred to as an access device. The access device is a device that accesses the core network, and may be, for example, a base station, a broadband network service gateway (broadband network gateway, BNG), an aggregation switch, or a non-3rd generation partnership project (3rd generation partnership project, 3GPP) access device. The base station may be in various forms, for example, may be a macro base station, a micro base station (also referred to as a small cell), a relay station, or an access point. This is not limited in embodiments of this application.

[00188] Certainly, in the system architecture 100, other modules may be further included in the 4G network and the 5G network. For example, a serving general packet radio system (general packet radio system, GPRS) support node (serving GPRS support node, SGSN) module and the like may be further included in the 4G network, and an authentication server function (authentication server function, AUSF) module, a network slice selection function (network slice selection function, NSSF) module, and the like may be included in the 5G network. This is not limited in embodiments of this application.

[00189] The terminal (terminal) in embodiments of this application may includevarious handheld devices, vehicle-mounted devices, wearable devices, and computing devices that have a wireless communication function, or other processing devices connected to a wireless modem; and may further include a subscriber unit (subscriber unit), a cellular phone (cellular phone), a smartphone (smartphone), a wireless data card, a personal digital assistant (personal digital assistant, PDA) computer, a tablet computer, a wireless modem (modem), a handheld (handheld) device, a laptop computer (laptop computer), a cordless phone (cordless phone) or a wireless local loop (wireless local loop, WLL) station, a machine type communication (machine type communication, MTC) terminal, user equipment (user equipment, UE), a mobile station (mobile station, MS), a terminal device (terminal device), and the like. For ease of description, all the foregoing devices are collectively referred to as the terminal device in embodiments of this application.

[00190] It should be understood that, as the terminal device continuously moves, a location change of the terminal device may cause the terminal device to be handed over between different networks. For example, when moving from the 4G network to the 5G network, the terminal device needs to be handed over from an evolved packet system (evolved packet system, EPS) bearer (bearer) in the 4G network to a protocol data unit (protocol data network, PDU) session in the 5G network; or when moving from the 5G network to the 4G network, the terminal device needs to be handed over from a PDU session in the 5G network to an EPS bearer in the 4G network.

[00191] Currently, a security mechanism used in the 5G network is an on-demand user plane security protection mechanism, and on-demand user plane security protection includes user plane encryption protection and user plane integrity protection. In the on-demand user plane security protection mechanism, an access network device needs to determine, according to a user plane security policy received from a core network device, whether to activate user plane encryption protection and / or user plane integrity protection between the access network device and the terminal device. However, the existing 4G network does not support the on-demand user plane security protection mechanism. In the 4Gnetwork, a method for protecting user plane security between the access network device and the terminal device is fixed. To be specific, that user plane security is fixed means that user plane encryption protection is activated, and user plane integrity protection is not activated.

[00192] Therefore, if a user plane security policy corresponding to a PDU session in the 5G network requires that user plane integrity protection be activated, the PDU session cannot be handed over to the EPS bearer in the 4G network. This is because the access network device in the 4G network cannot activate user plane integrity protection for the terminal device.

[00193] Currently, the session management network element determines, based on the following factors, whether to request an EPS bearer identifier from the AMF for a PDU session requested to be established: (1) an access type is 3GPP access or non-3GPP access; (2) whether a user plane integrity protection policy of a session requested to be established in a first network is necessarily set to be activated; and (3) the session requested to be established in the first network supports interworking with a second network based on the N26 interface or supports interworking with a second network not based on the N26 interface. When the access type is the 3GPP access, the user plane integrity protection policy of the session requested to be established in the first network is not necessarily set to be activated, and the session requested to be established in the first network supports the interworking with the second network based on the N26 interface, the session management network element requests the EPS bearer identifier from the AMF for the PDU session requested to be established.

[00194] Currently, the session management network element determines, based on the following factors, whether to send a fully qualified domain name (fully qualified domain name, FQDN) of the session management network element on an S5 / S8 interface to a unified data management network element: (1) whether the terminal device supports the interworking with the second network; (2) whether the user plane integrity protection policy of the session requested to be established in the first network is necessarily set to be activated; and (3) whether the session requested to be established in the first network supports the interworking with thesecond network. When the terminal device supports the interworking with the second network, the user plane integrity protection policy of the session requested to be established in the first network is not necessarily set to be activated, and the session requested to be established in the first network supports the interworking with the second network, the session management network element sends the FQDN of the session management network element on the S5 / S8 interface to the unified data management network element; otherwise, does not send the FQDN of the session management network element on the S5 / S8 interface.

[00195] Based on this, in a process of preparing an EPS bearer context (EPS bearer context) in the 5G network, if the user plane security policy corresponding to the PDU session includes activating user plane integrity, the session management network element does not request an EPS bearer identifier (EPS bearer identifier, EBI) for the EPS bearer context from the AMF, and the session management network element does not send the fully qualified domain name of the session management network element on the S5 / S8 interface to the UDM. Further, the PDU session cannot be handed over to the EPS bearer.

[00196] The 4G network will not retire in a short term. In this case, once the 4G network also supports user plane integrity protection, how to remove a limitation that the 5G network cannot interwork (interworking) with the EPS when the 5G network has a requirement for forcibly activating user plane integrity protection becomes an urgent problem to be resolved.

[00197] In addition, although it has been proposed that, in a process in which the PDU session in the 5G network is handed over to the EPS bearer in the 4G network, a forward relocation request (forward relocation request) message sent by the AMF to a target MME may carry the user plane security policy of the terminal device in the 4G network, how the AMF obtains the user plane security policy of the terminal device in the 4G network is not resolved. This is because the user plane security policy of the terminal device in the 5G network is at a granularity of the PDU session, but the user plane security policy of the terminal device in the 4G network is at a granularity of an E-UTRAN radio access bearer (E-UTRAN radio access bearer, E-RAB).

[00198] In view of this, this application provides a communication method, to remove a limitation that a 5G network cannot interwork with an EPS when the 5G network has a requirement of forcibly activating user plane integrity protection.

[00199] It should be understood that a specific structure of an execution body of a method provided in embodiments of this application is not particularly limited in the following embodiments provided that a program that records code for the method in embodiments of this application can be run to perform communication according to the method provided in embodiments of this application. For example, the method provided in embodiments of this application may be performed by a terminal device, a core network device, or a functional module that is in a terminal device or a core network device and that can invoke and execute the program.

[00200] It should be further noted that in the following embodiments, a session management network element is a network element in a first network and a network element in a second network. To be specific, the session management network element may communicate with a network element in another first network in the first network, or may communicate with a network element in another second network in the second network. An access and mobility management function network element is a network element in the first network, and a mobility management function entity is a network element in the second network. In a process in which the terminal device is handed over from the first network to the second network, the access and mobility management function network element in the first network may communicate with a target mobility management function entity in the second network.

[00201] The first network may be a 5G network, and the second network may be a 4G network; or the first network may be a 4G network, and the second network may be a 5G network.

[00202] FIG. 2 is a schematic flowchart of a communication method according to an embodiment of this application. As shown in FIG. 2, the method 200 may include S210 to S240. The following describes steps in detail.

[00203] S210: A session management network element obtains first indication information.

[00204] Specifically, in a process of session establishment in a first network for a terminal device, the session management network element obtains the first indication information. The process of the session establishment in the first network for the terminal device includes a process in which the terminal device completes session establishment with the network after the terminal device sends a session establishment request message. For example, the session is a protocol data unit (protocol data unit, PDU) session, and the process of establishing the PDU session includes a process in which the terminal device completes PDU session establishment after the terminal device sends a PDU session establishment request message. For example, for the process of the PDU session establishment, refer to related content in section 4.3.2 in the 3GPP technical specification (technical specification, TS) 23.502.

[00205] The first indication information indicates that user plane integrity protection in a second network is supported. Alternatively, the first indication information indicates that user plane integrity protection with an access network device in a second network is supported. Alternatively, the first indication information indicates that on-demand user plane protection with an access network device in a second network is supported. The on-demand user plane protection means that the access network device in the second network may determine, according to a user plane security policy received from a core network device, whether to activate user plane encryption protection and / or user plane integrity protection with the terminal device. Alternatively, the first indication information indicates that interworking of a user plane security policy between the first network and a second network is supported, in other words, indicates that the terminal device supports mapping of the user plane security policy between the first network and the second network. In other words, supporting user plane integrity protection in the second network may be replaced with supporting user plane integrity protection with the access network device in the second network, supporting the on-demand user plane protection with the access network device in the second network, supporting the interworking of the user plane security policy between the first network and the second network, or supporting the mapping of the user planesecurity policy between the first network and the second network.

[00206] A manner in which a session management network element obtains first indication information is not limited in this embodiment of this application.

[00207] In an example, the session management network element receives the first indication information from an access and mobility management function network element. In this example, S210 may include:

[00208] S211a: A terminal device sends second indication information to the access and mobility management function network element. Correspondingly, in S211a, the access and mobility management function network element receives the second indication information.

[00209] The second indication information indicates that the terminal device supports user plane integrity protection in a second network.

[00210] Alternatively, the second indication information indicates that the terminal device supports user plane integrity protection with an access network device in a second network. Alternatively, the second indication information indicates that the terminal device supports on-demand user plane protection with an access network device in a second network. The on-demand user plane protection means that the access network device in the second network may determine, according to a user plane security policy received from a core network device, whether to activate user plane encryption protection and / or user plane integrity protection with the terminal device. Alternatively, the second indication information indicates that the terminal device supports interworking of a user plane security policy between a first network and a second network, in other words, indicates that the terminal device support smapping of the user plane security policy between the first network and the second network.

[00211] In other words, that the terminal device supports user plane integrity protection in a second network may be replaced with that the terminal device supports user plane integrity protection with the access network device in the second network, the terminal device supports the on-demand user plane protection with the access network device in the second network, the terminal device supports the interworking of the user plane security policy between the first network and thesecond network, or the terminal device supports the mapping of the user plane security policy between the first network and the second network.

[00212] For example, the second indication information sent by the terminal device to the access and mobility management function network element may be included in a registration request (registration request) message. For example, the second indication information may be carried in a 5G mobility management (mobile management, MM) capability, a UE security capability, or an S1 UE network capability.

[00213] S212a: The access and mobility management function network element sends first indication information based on the second indication information. Correspondingly, in S212a, the session management network element receives the first indication information.

[00214] The first indication information and the second indication information may be the same. For example, the second indication information indicates that the terminal device supports user plane integrity protection with the access network device in the second network, and the first indication information also indicates that the terminal device supports user plane integrity protection with the access network device in the second network.

[00215] Alternatively, the first indication information and the second indication information may be different. For example, the second indication information indicates that the terminal device supports the on-demand user plane protection with the access network device in the second network, and the first indication information indicates that the mapping of the user plane security policy between the first network and the second network is supported.

[00216] In other words, after receiving the second indication information sent by the terminal device, the access and mobility management function network element may send the second indication information as the first indication information to the session management network element. Alternatively, after receiving the second indication information sent by the terminal device, the access and mobility management function network element generates the first indication information based on the second indication information, and sends the first indicationinformation to the session management network element.

[00217] For example, the first indication information may be included in a PDU session session management context establishment request (Nsmf_PDUSession_CreateSMContext Request) message, or a PDU session context request (Nsmf_PDUSession_Context Request) message.

[00218] Optionally, in this example, the method S210 may further include S213: The access and mobility management function network element determines, according to a local policy #1, whether to send the first indication information to the session management network element.

[00219] Specifically, with reference to another embodiment, the following describes in detail how the access and mobility management function network element determines, according to a local policy #1 (an example of a first local policy), whether to send the first indication information to the session management network element. For brevity, details are not described herein.

[00220] In another example, the session management network element receives the first indication information from the terminal device via an access and mobility management function network element. In this example, S210 may include:

[00221] S211b and S212b: The terminal device sends the first indication information to the session management network element via the access and mobility management function network element.

[00222] For example, the terminal device sends a PDU session establishment request (PDU Session Establishment Request) message to the session management network element via the access and mobility management function network element, where the PDU session establishment request (PDU Session Establishment Request) message includes the first indication information.

[00223] In a possible implementation, the terminal device sends a non-access stratum (non-access stratum, NAS) message to the access and mobility management function network element, where the NAS message includes an N1 session management (session management, SM) container, and the N1 SM container includes the first indication information. The access and mobility management function network element sends the N1 SM container to the session managementnetwork element. Optionally, the N1 SM container includes the PDU session establishment request, and the PDU session establishment request includes the first indication information.

[00224] S220: The session management network element sends a request message #1 (an example of a first request message) to the access and mobility management function network element based on the first indication information. Correspondingly, in S220, the access and mobility management function network element receives the request message #1.

[00225] The request message #1 is used to request a bearer identifier, the bearer identifier corresponds to a bearer context, and the bearer context corresponds to a second network.

[00226] Optionally, the request message #1 includes a session identifier, and the request message #1 is used to request to assign a bearer identifier to this session.

[00227] For example, the first network is a 5G network, the second network is a 4G network, the session is a PDU session, the session identifier is a PDU session ID, a bearer is an EPS bearer, the bearer identifier is an EBI, and the request message #1 is an EBI assignment request (Namf_Communication_EBIAssignment Request) message.

[00228] Optionally, when the first indication information indicates that user plane integrity protection with an access network device in the second network is supported, the session management network element sends the request message #1 to the access and mobility management function network element based on the first indication information.

[00229] Specifically, that the session management network element sends a request message #1 to the access and mobility management function network element based on the first indication information includes: The session management network element sends the request message #1 to the access and mobility management function network element based on the first indication information without considering a user plane security policy of the terminal device in the first network. For example, that the session management network element does not consider a user plane security policy of the terminal device in the first networkmeans that the session management network element does not consider a value of a user plane integrity protection policy of the terminal device in the first network. In other words, regardless of which one of the following three values is the value of the user plane integrity protection policy of the terminal device in the first network: "required (required)", "not needed (not needed)", and "preferred (preferred)", when a session in the first network supports interworking with the second network, the session management network element sends the request message #1 to the access and mobility management function network element based on the first indication information.

[00230] In a possible implementation, the session management network element determines, based on the first indication information, that the user plane security policy of the terminal device in the first network has no limitation on whether the session established for the terminal device in the first network can be handed over to the second network.

[00231] In a possible implementation, the session management network element further receives an N26 interface-based interworking indication of the second network from the access and mobility management function network element, where the N26 interface-based interworking indication of the second network indicates that the session requested to be established supports N26 interface-based interworking with the second network. The session management network element further receives an access type from the access and mobility management function network element, where the access type indicates whether 3GPP access or non-3GPP access is currently used. When the access type is 3GPP access, and the N26 interface-based interworking indication of the second network indicates that the session requested to be established supports the N26 interface-based interworking with the second network, if the session management network element receives the first indication information, the session management network element directly determines, without considering the user plane security policy of the terminal device in the first network, that the session of the terminal device in the first network supports EPS interworking.

[00232] After determining that the session of the terminal device in the firstnetwork supports the EPS interworking, to subsequently hand over the session to the second network, the session management network element may perform S220 and S230 to request the access and mobility management function network element to assign the bearer identifier to the session.

[00233] S230: The access and mobility management function network element sends a response message #1 (an example of a first response message) in response to the request message #1. Correspondingly, in S230, the session management network element receives the response message #1.

[00234] The response message #1 includes the bearer identifier assigned by the access and mobility management function network element to the session, the bearer identifier may be identified by the second network, the first network is the 5G network, the second network is the 4G network, and the bearer identifier is an EBI. For example, the response message #1 is an EBI assignment response (Namf_Communication_EBIAssignment Response) message.

[00235] In this embodiment of this application, the session management network element can remove, based on the first indication information, a limitation that the session established for the terminal device in the first network cannot be handed over to the second network when the user plane security policy in the first network requires that user plane integrity protection be activated. According to the existing solution, when the user plane security policy in the first network requires that user plane integrity protection be activated, the session management network element does not request the bearer identifier from the access and mobility management function network element. Therefore, the access and mobility management function network element does not locally store the corresponding bearer identifier. In this case, when subsequently receiving a handing over requirement from an access network device in the first network, the access and mobility management function network element does not perform a related procedure of handing over the session established for the terminal device in the first network to the second network.

[00236] Optionally, the method 200 may further include S240: The session management network element sends an FQDN of the session management network element on an S5 / S8 interface to the unified data management network elementbased on the first indication information.

[00237] Optionally, when the first indication information indicates that userplane integrity protection with the access network device in the second network issupported, the session management network element sends the fully qualifieddomain name of the session management network element on the S5 / S8 interfaceto the unified data management network element.

[00238] Specifically, that the session management network element sends anFQDN of the session management network element on an S5 / S8 interface to theunified data management network element based on the first indication informationincludes: The session management network element sends the FQDN of the sessionmanagement network element on the S5 / S8 interface to the unified datamanagement function network element based on the first indication informationwithout considering the user plane security policy in the first network. For example,that the session management network element does not consider a user planesecurity policy of the terminal device in the first network means that the sessionmanagement network element does not consider a value of a user plane integrityprotection policy of the terminal device in the first network. In other words,regardless of which one of the following three values is the value of the user planeintegrity protection policy of the terminal device in the first network: "required","not needed", and "preferred", when a session in the first network supportsinterworking with the second network, the session management network elementsends the FQDN of the session management network element on the S5 / S8 interfaceto the unified data management user plane function network element based on thefirst indication information.

[00239] In a possible implementation, the session management network elementfurther receives an EPS interworking indication (EPS interworking indication) fromthe access and mobility management function network element, where the EPSinterworking indication indicates that the terminal device supports the EPSinterworking. The session management network element further determines, basedon subscription data of the terminal device, that the session of the terminal devicein the first network allows the EPS interworking. When the terminal device supportsthe EPS interworking, and the session of the terminal device in the first networkallows the EPS interworking, if the session management network element receivesthe first indication information, the session management network element directlydetermines, without considering the user plane security policy of the terminaldevice in the first network, that the session of the terminal device in the first networksupports the EPS interworking.

[00240] After determining that the session of the terminal device in the firstnetwork supports the EPS interworking, to subsequently hand over the session tothe second network, the session management network element may further performS240 to store the FQDN of the session management network element in the unifieddata management network element.

[00241] In this embodiment of this application, the session management networkelement sends the FQDN of the session management network element on the S5 / S8interface to the unified data management network element based on the firstindication information, so as to remove a limitation that the session established forthe terminal device in the first network cannot be handed over to the second networkwhen the user plane security policy in the first network requires that user planeintegrity protection be activated. According to the existing solution, when the userplane security policy in the first network requires that user plane integrity protectionbe activated, the session management network element does not send the FQDN ofthe session management network element on the S5 / S8 interface to the unified datamanagement network element. Therefore, the session established for the terminaldevice in the first network cannot be subsequently handed over to the secondnetwork.

[00242] In the foregoing embodiment, a limitation that the session establishedfor the terminal device in the first network cannot support the EPS interworkingwhen the user plane security policy in the first network requires that user planeintegrity protection be activated is removed, but how a device (for example, amobility management entity in the second network or an access device in the secondnetwork) in the second network obtains the user plane security policy of theterminal device in the second network is still not resolved.

[00243] In view of this, an embodiment of this application further provides acommunication method, so that in a process of handing over a session establishedfor a terminal device in a first network to a second network, a device in the secondnetwork can obtain a user plane security policy of the terminal device in the secondnetwork. In this way, the session of the terminal device in the first network can besuccessfully handed over to the second network.

[00244] FIG. 3 is a schematic flowchart of a communication method accordingto an embodiment of this application. As shown in FIG. 3, the method 300 mayinclude S310 and S320. The following describes steps in detail.

[00245] S310: A session management network element maps a user planesecurity policy of a terminal device in a first network to a user plane security policyof the terminal device in a second network.

[00246] For example, the first network may be a 5G network, and the secondnetwork may be a 4G network.

[00247] The user plane security policy of the terminal device in the firstnetwork / second network may include a user plane encryption protection policy anda user plane integrity protection policy. The user plane encryption protection policyindicates whether to activate user plane encryption protection. The user planeencryption protection policy has three possible values: "required", "preferred", and"not needed". "Required" indicates that the protection needs to be activated,"preferred" indicates that the protection can be activated or cannot be activated, and"not needed" indicates that the protection does not need to be activated. The userplane integrity protection policy indicates whether to activate user plane integrityprotection. The user plane integrity protection policy also has three possible values:"required", "preferred", and "not needed". "Required" indicates that the protectionneeds to be activated, "preferred" indicates that the protection can be activated orcannot be activated, and "not needed" indicates that the protection does not need tobe activated. The foregoing three possible values each may be indicated by usingtwo bits (bits). For example, 00 indicates that the protection does not need to beactivated, 01 indicates that the protection can be activated or cannot be activated,and 10 indicates that the protection needs to be activated.

[00248] For example, a granularity of the user plane security policy of theterminal device in the first network may be any one of the following granularities:a granularity of a protocol data unit (protocol data unit, PDU) session and agranularity of a data network name (data network name, DNN).

[00249] For example, a granularity of the user plane security policy of theterminal device in the second network may be any one of the following granularities:a granularity of an EPS bearer, a granularity of an E-RAB, and a granularity of anaccess point name (access point name, APN).

[00250] A manner in which the session management network element obtainsthe user plane security policy of the terminal device in the first network is notlimited in this embodiment of this application. For example, the user plane securitypolicy of the terminal device in the first network may be locally stored by thesession management network element. For another example, the user plane securitypolicy of the terminal device in the first network may be obtained from a unifieddata management network element. With reference to another embodiment, thefollowing describes in detail a method in which the session management networkelement obtains the user plane security policy of the terminal device in the firstnetwork from the unified data management network element. For brevity, detailsare not described herein.

[00251] The mapping a user plane security policy of a terminal device in a firstnetwork to a user plane security policy of the terminal device in a second networkmay be understood as: converting the user plane security policy that can beidentified by the first network into the user plane security policy that can beidentified by the second network, or storing the user plane security policy in thefirst network in a context that can be identified by the second network. For example,the user plane security policy that can be identified by the first network is at thegranularity of the DNN or the granularity of the PDU session. The user planesecurity policy that can be identified by the second network is at the granularity ofthe EPS bearer, the granularity of the E-RAB, or the granularity of the APN. TheDNN and the PDU session may be in a one-to-many relationship, the PDU sessionand the EPS bearer may be in a one-to-many relationship, the DNN and the APNmay be in a one-to-one relationship, the APN and the EPS bearer may be in a oneto-many relationship, and the EPS bearer and the E-RAB may be in a one-to-manyrelationship.

[00252] The user plane security policy that is of the terminal device in the firstnetwork and that is locally stored by the session management network element oris obtained from the unified data management network element may be at agranularity of a DNN + single network slice selection assistance information (singlenetwork slice selection assistance information, S-NSSAI). If the user plane securitypolicy of the terminal device in the second network obtained by the sessionmanagement network element through mapping in S310 is at the granularity of theEPS bearer, the session management network element first maps the user planesecurity policy of the terminal device in the first network at the granularity of theDNN+S-NSSAI to the user plane security policy at the granularity of the PDUsession, and then maps the user plane security policy of the terminal device in thefirst network at the granularity of the PDU session to the user plane security policyof the terminal device in the second network at the granularity of the EPS bearer. Ifthe user plane security policy of the terminal device in the second network obtainedby the session management network element through mapping in S310 is at thegranularity of the APN, the session management network element maps the userplane security policy of the terminal device in the first network at the granularity ofthe DNN to the user plane security policy of the terminal device in the secondnetwork at the granularity of the APN.

[00253] The user plane security policy that is of the terminal device in the firstnetwork and that is locally stored by the session management network element oris obtained from the unified data management network element may be at thegranularity of the PDU session. If the user plane security policy of the terminaldevice in the second network obtained by the session management network elementthrough mapping in S310 is at the granularity of the EPS bearer, the sessionmanagement network element maps the user plane security policy at the granularityof the PDU session to the user plane security policy of the terminal device in thesecond network at the granularity of the EPS bearer. If the user plane security policyof the terminal device in the second network obtained by the session managementnetwork element through mapping in S310 is at the granularity of the E-RAB, thesession management network element obtains the user plane security policy of theterminal device in the second network at the granularity of the EPS bearer in theforegoing manner, and then maps the user plane security policy of the terminaldevice in the second network at the granularity of the EPS bearer to the user planesecurity policy at the granularity of the E-RAB.

[00254] For example, an implementation in which the session managementnetwork element stores the user plane security policy in the first network to acontext that can be identified by the second network may include: The sessionmanagement network element obtains a user plane security policy 1 of the terminaldevice in the first network, where the user plane security policy 1 corresponds to aPDU session 1; and stores the user plane security policy 1 to an EPS bearer contextcorresponding to the PDU session 1.

[00255] For another example, an implementation in which the sessionmanagement network element stores the user plane security policy in the firstnetwork to a context that can be identified by the second network may include: Thesession management network element obtains a user plane security policy 1 of theterminal device in the first network, where the user plane security policy 1corresponds to a DNN 1+S-NSSAI 1; determines a PDU session 1 and a PDUsession 1 that correspond to the DNN 1+S-NSSAI 1; and stores the user planesecurity policy 1 in an EPS bearer context 1 corresponding to the PDU session 1,and stores the user plane security policy 1 in an EPS bearer context 2 correspondingto the PDU session 2.

[00256] Optionally, the session management network element may performS310 in a process of handing over the terminal device from the first network to thesecond network. For details, refer to descriptions in the following method 700.Optionally, the session management network element may perform S310 before theterminal device is handed over from the first network to the second network. Fordetails, refer to descriptions in the following method 500 and method 600.

[00257] When obtaining the user plane security policy of the terminal device inthe first network, the session management network element may map the user planesecurity policy in the first network to the user plane security policy of the terminaldevice in the second network; or when obtaining third indication information / thefirst indication information, the session management network element may map theuser plane security policy of the terminal device in the first network to the userplane security policy of the terminal device in the second network.

[00258] When the session management network element maps the user planesecurity policy of the terminal device in the first network to the user plane securitypolicy of the terminal device in the second network based on the third indicationinformation / the first indication information, the method 300 further includes S320:The session management network element obtains the third indicationinformation / the first indication information.

[00259] For descriptions of the first indication information and descriptions ofobtaining the first indication information by the session management networkelement, refer to the foregoing descriptions in S210. For brevity, details are notdescribed herein again.

[00260] The third indication information indicates the session managementnetwork element to map the user plane security policy in the second network. Formore descriptions of the third indication information and descriptions of obtainingthe third indication information by the session management network element, referto descriptions in S718 in FIG. 7(a) and FIG. 7(b). For brevity, details are notdescribed herein again.

[00261] Optionally, the method 300 may further include: The sessionmanagement network element stores the user plane security policy of the terminaldevice in the second network in a bearer context of the terminal device in the secondnetwork.

[00262] Optionally, the method 300 may further include: The sessionmanagement network element locally stores the user plane security policy of theterminal device in the second network, and stores a binding relationship betweenthe user plane security policy of the terminal device in the second network and thebearer context.

[00263] In this embodiment of this application, the session management networkelement may map the user plane security policy of the terminal device in the firstnetwork to the user plane security policy of the terminal device in the secondnetwork, and may store the user plane security policy of the terminal device in thesecond network in the bearer context. Further, in a process in which the terminaldevice is handed over from the first network to the second network, the access andmobility management function network element in the first network obtains thebearer context from the session management network element, and further sendsthe obtained bearer context to a mobility management entity in the second network,so that the terminal device is handed over from the first network to the secondnetwork.

[00264] In addition, when receiving the third indication information, the sessionmanagement network element maps the user plane security policy of the terminaldevice in the first network to the user plane security policy of the terminal devicein the second network, so that the session management network element can beprevented from performing unnecessary mapping, and processing logic of thesession management network element is optimized. When the session managementnetwork element does not receive the third indication information, the sessionmanagement network element directly maps the user plane security policy of theterminal device in the first network to the user plane security policy of the terminaldevice in the second network. If the second network does not support the activationof user plane integrity protection, the terminal device cannot be handed over fromthe first network to the second network, and mapping performed by the sessionmanagement network element is unnecessary mapping.

[00265] With reference to FIG. 4 to FIG. 7(a) and FIG. 7(b), the followingdescribes in detail, by using an example in which a terminal device is handed overfrom 5G to 4G, a communication method provided in embodiments of thisapplication. It should be understood that, the following source AMF corresponds tothe foregoing access and mobility management function network element, anSMF+PGW-C corresponds to the foregoing session management network element,UE corresponds to the foregoing terminal device, and a UDM corresponds to theforegoing unified data management network element. It should be furtherunderstood that the following UE capability indication may correspond to theforegoing second indication information or first indication information, indicationinformation #1 may correspond to the foregoing first indication information, andindication information #2 may correspond to the foregoing third indicationinformation.

[00266] FIG. 4 is a schematic flowchart of a method according to an embodimentof this application. Specifically, FIG. 4 is a flowchart of how a source AMF obtainsa user plane security policy in a 4G network from an SMF+PGW-C in a process inwhich UE is handed over from a 5G network to the 4G network. As shown in FIG.4, the method 400 includes S401 to S413. The following describes steps in detail.

[00267] S401: A source next generation node base station (next generation NodeBase station, gNB) determines to trigger an N2 handover.

[00268] The UE accesses the 5G network via the source gNB, and a PDU sessionin the 5G network is established; and the source gNB determines to initiate ahandover from a 5G system (5G system, 5GS) to an EPS, so that the UE is handedover to an eNB in the 4G network. The eNB in the 4G network is denoted as thefollowing target eNB.

[00269] In a process in which the UE accesses the 5G network, the source gNBobtains a user plane security policy of the UE in the 5G network from a corenetwork side, and activates user plane security between the source gNB and the UEby using the user plane security policy of the UE in the 5G network. The sourcegNB further stores the obtained user plane security policy of the UE in the 5Gnetwork in an access stratum (access stratum, AS) context of the UE.

[00270] When the source gNB determines that the UE needs to be handed overto the target eNB, the handover from the 5GS to the EPS may be triggered based onthe following conditions: (1) a current poor wireless network status; (2) loadbalancing; and (3) a voice service requirement.

[00271] S402: The source gNB sends a handover required (handover required)message to a source AMF.

[00272] The handover required message carries an identifier of the UE. Theidentifier of the UE is used to obtain a context of the UE. The identifier of the UEmay include: a unique identifier (gNB UE NG application protocol identifier, gNBUE NGAP ID) of a terminal device on an NG interface on a source gNB side or aunique identifier (AMF UE NG application protocol identifier, AMF UE NGAP ID)of a terminal device on an NG interface on a source AMF side.

[00273] S403: The source AMF sends a PDU session context request(Nsmf_PDUSession_Context Request) message (an example of a second requestmessage) to the SMF+PGW-C.

[00274] Before sending the PDU session context request message to theSMF+PGW-C, the source AMF determines, according to a local policy #2, whetherto obtain an EPS bearer context from the SMF+PGW-C. If the source AMFdetermines, according to the local policy #2, to obtain the EPS bearer context fromthe SMF+PGW-C, the source AMF sends the PDU session context request messageto the SMF+PGW-C. The PDU session context request message includes a PDUsession ID.

[00275] The local policy #2 of the source AMF may include: The source AMFhas assigned an EBI to a PDU session to be handed over. Specifically, the sourceAMF obtains the context of the UE based on the identifier of the UE. Further, thesource AMF obtains, based on the context of the UE, a PDU session that needs tobe handed over, and determines whether the EBI has assigned to the PDU session.

[00276] It should be noted that, according to the embodiment shown in FIG. 2,when the PDU session in the 5G network is established for the UE, and theSMF+PGW-C determines that the PDU session supports a handover to the EPS,S220 and S230 are performed to request the AMF to assign the EBI to the PDUsession. After assigning the EBI to the PDU session, the AMF may store theassigned EBI in the context of the UE.

[00277] S404: The SMF+PGW-C obtains an EPS bearer context of the UE basedon the PDU session ID.

[00278] In a possible implementation, according to the embodiment shown inFIG. 3, the EPS bearer context of the UE already stores the user plane securitypolicy of the UE in the 4G network.

[00279] In another possible implementation, according to the embodimentshown in FIG. 3, the SMF+PGW-C may locally store the user plane security policyof the UE in the 4G network, and store a correspondence between the user planesecurity policy of the UE in the 4G network and the EPS bearer context. In this case,the SMF+PGW-C may determine the corresponding EPS bearer context based onthe PDU session ID, and then obtain the user plane security policy of the UE in the4G network based on the EPS bearer context.

[00280] The user plane security policy of the UE in the 4G network includes auser plane encryption protection policy and a user plane integrity protection policy.The user plane encryption protection policy indicates whether to activate user planeencryption protection, and the user plane integrity protection policy indicateswhether to activate user plane integrity protection. The user plane encryptionprotection policy has three possible values: "not needed", "preferred", and"required"; and the user plane integrity protection policy has three possible values:"not needed", "preferred", and "required". "Not needed" indicates that protectiondoes not need to be activated, "preferred" indicates that protection can be activatedor cannot be activated, and "required" indicates that protection needs to be activated.The foregoing three possible values each may be indicated by using two bits (bits).For example, 00 indicates that the protection does not need to be activated, 01indicates that the protection can be activated or cannot be activated, and 11 indicatesthat the protection needs to be activated.

[00281] The user plane security policy of the UE in the 4G network may be at agranularity of an EPS bearer / E-RAB / APN. For example, a form of the EPS bearercontext is {EPS bearer 1: user plane security policy 1}; {E-RAB 1: user planesecurity policy 1}; or {APN 1: user plane security policy 1}. {EPS bearer 1: userplane security policy 1} indicates that the EPS bearer 1 corresponds to the userplane security policy 1, in other words, the user plane security policy 1 is at thegranularity of the EPS bearer. {E-RAB 1: user plane security policy 1} indicatesthat the E-RAB 1 corresponds to the user plane security policy 1, in other words,the user plane security policy 1 is at the granularity of the E-RAB. {APN 1: userplane security policy 1} indicates that the APN 1 corresponds to the user planesecurity policy 1, in other words, the user plane security policy 1 is at the granularityof the APN.

[00282] S405: The SMF+PGW-C sends a PDU session context response(Nsmf_PDUSession_Context Response) message (an example of a second responsemessage) to the source AMF.

[00283] In a possible implementation, the PDU session context responsemessage includes the EPS bearer context, and the EPS bearer context includes theuser plane security policy of the UE in the 4G network.

[00284] In another possible implementation, the PDU session context responsemessage includes the EPS bearer context and the user plane security policy of theUE in the 4G network.

[00285] S406: The source AMF sends a forward relocation request (forwardrelocation request) message to a target MME.

[00286] In a possible implementation, the forward relocation request messageincludes the EPS bearer context, and the EPS bearer context includes the user planesecurity policy of the UE in the 4G network.

[00287] In another possible implementation, the forward relocation requestmessage includes the EPS bearer context and the user plane security policy of theUE in the 4G network.

[00288] S407: The target MME sends a handover request (handover request)message to the target eNB (an access network device in the 4G network).

[00289] The handover request message includes the user plane security policy ofthe UE in the 4G network.

[00290] In a possible implementation, the target MME obtains the user planesecurity policy of the UE in the 4G network based on the EPS bearer context.Optionally, if the user plane security policy that is of the UE in the 4G network andthat is obtained by the target MME is at the granularity of the EPS bearer / APN, thetarget MME maps the user plane security policy at the granularity of the EPSbearer / APN to the user plane security policy at the granularity of the E-RAB.

[00291] S408: The target eNB determines a user plane security activation statusof the UE in the 4G network according to the user plane security policy of the UEin the 4G network.

[00292] The user plane security activation status indicates whether to activateuser plane encryption protection and / or user plane integrity protection. The targeteNB determines a user plane security activation status at a granularity of a dataradio bearer (da ta radio bearer, DRB) according to the user plane security policy atthe granularity of the E-RAB. A relationship between the E-RAB and the DRB is aone-to-many mapping relationship. For example, the target eNB obtains a DRB 1and a DRB 2 through mapping from the E-RAB 1, determines a user plane securityactivation status of the DRB 1 according to the user plane security policy 1corresponding to the E-RAB 1, and then determines a user plane security activationstatus of the DRB 2 according to the user plane security policy 1.

[00293] Specifically, if the user plane encryption protection policy is required,for all the DRBs corresponding to the E-RAB, the target eNB determines thatencryption activation statuses corresponding to all the DRBs are activated. If theuser plane encryption protection policy corresponding to the E-RAB is preferred,for all the DRBs corresponding to the E-RAB, the target eNB determines thatencryption activation statuses corresponding to the DRBs can be activated or cannotbe activated. The target eNB may determine, according to a local policy (forexample, a running status of the target eNB, a control policy, or regulationsrequired), whether to activate the encryption activation status. If the user planeencryption protection policy corresponding to the E-RAB is not needed, for all theDRBs corresponding to the E-RAB, the target eNB determines that encryptionactivation statuses corresponding to all the DRBs are not activated.

[00294] If the user plane integrity protection policy is required, for all the DRBscorresponding to the E-RAB, the target eNB determines that integrity encryptionactivation statuses corresponding to all the DRBs are activated. If the user planeintegrity protection policy corresponding to the E-RAB is preferred, for all theDRBs corresponding to the E-RAB, the target eNB determines that integrityencryption activation statuses corresponding to the DRBs can be activated or cannotbe activated. The target eNB may determine, according to a local policy (forexample, a running status of the target eNB, a control policy, or regulationsrequired), whether to activate the integrity protection activation status. If the userplane integrity protection policy corresponding to the E-RAB is not needed, for allthe DRBs corresponding to the E-RAB, the target eNB determines that integrityencryption activation statuses corresponding to all the DRBs are not activated.

[00295] S409: The target eNB sends a handover request acknowledge (handoverrequest acknowledge) message to the target MME.

[00296] The handover request acknowledge message includes a radio resourcecontrol (radio resource control, RRC) reconfiguration (connection reconfiguration),and the RRC reconfiguration is constructed by the target eNB.

[00297] The RRC reconfiguration carries configuration information, and theconfiguration information indicates whether the UE activates user plane encryptionprotection and / or user plane integrity protection in the 4G network. Theconfiguration information is determined based on the user plane security activationstatus in S408.

[00298] Specifically, if determining that the encryption activation status isactivated, the target eNB encapsulates a ciphering disabled (ciphering disabled)field in the configuration information. If determining that the encryption activationstatus is not activated, the target eNB does not encapsulate a ciphering disabled(ciphering disabled) field in the configuration information. If determining that theintegrity protection activation status is activated, the target eNB encapsulates anintegrity protection (integrity protection) field in the configuration information. Ifdetermining that the integrity protection activation status is not activated, the targeteNB does not encapsulate an integrity protection (integrity protection) field in theconfiguration information.

[00299] The integrity protection field indicates to activate user plane integrityprotection. The integrity protection field may be equivalent to indicationinformation for activating user plane integrity protection, or content of the integrityprotection field may be indication information for activating user plane integrityprotection. Therefore, when the integrity protection field is encapsulated in theconfiguration information, it may be considered that the RRC reconfigurationincludes the indication information for activating user plane integrity protection.

[00300] S410: The target MME sends a forward relocation response (forwardrelocation response) message to the source AMF. The forward relocation responsemessage includes the RRC reconfiguration, and the RRC reconfiguration includesthe configuration information.

[00301] S411: The source AMF sends a handover command (handovercommand) message to the source gNB. The handover command message includesthe RRC reconfiguration, and the RRC reconfiguration includes the configurationinformation.

[00302] S412: The source gNB sends the RRC reconfiguration to the UE. TheUE determines, based on the configuration information included in the RRCreconfiguration, whether to activate user plane security encryption protectionand / or user plane integrity protection between the UE and the target eNB.

[00303] Specifically, if the ciphering disabled (ciphering disabled) field isencapsulated in the configuration information, the UE does not activate theencryption protection in the 4G network. If the ciphering disabled (cipheringdisabled) field is not encapsulated in the configuration information, the UEactivates the encryption protection in the 4G network. If the integrity protection(integrity protection) field is encapsulated in the configuration information, the UEactivates the integrity protection in the 4G network. If the integrity protection(integrity protection) field is not encapsulated in the configuration information, theUE does not activate the integrity protection in the 4G network.

[00304] S413: The UE sends an RRC reconfiguration complete message to thetarget eNB to complete the handover.

[00305] FIG. 5 is a schematic flowchart of a method according to an embodimentof this application. Specifically, FIG. 5 shows a process in which an SMF+PGW-Cmaps a user plane security policy of UE in a 5G network to a user plane securitypolicy of the UE in a 4G network before the UE is handed over from the 5G networkto the 4G network, and FIG. 5 further shows a procedure in which the SMF+PGWCrequests, based on indication information #1, to assign an EBI and send an FQDNon an S5 / S8 interface. As shown in FIG. 5, the method 500 includes S501 to S516.The following describes steps in detail.

[00306] S501: The UE sends a registration request (registration request) messageto an AMF.

[00307] The registration request message includes a UE capability indication.The UE capability indication is equivalent to the second indication information inthe embodiment in FIG. 2. For related descriptions, refer to related content in theembodiment in FIG. 2. Details are not described herein again. The UE capabilityindication may be carried in a 5G MM capability, a UE security capability, or an S1UE network capability.

[00308] S502: The AMF sends a registration accept (registration accept)message to the UE.

[00309] Optionally, the AMF stores the UE capability indication in a context ofthe UE.

[00310] S503: The UE sends an uplink NAS transport (uplink NAS transport)message to the AMF.

[00311] The uplink NAS transport message includes SM container information,and the SM container information includes a PDU session establishment requestmessage. The uplink NAS transport message further includes a DNN and S-NSSAI.

[00312] Optionally, the method 500 may further include S504: The AMFdetermines whether to send the indication information #1.

[00313] The indication information #1 is equivalent to the first indicationinformation in the embodiment in FIG. 2. For related descriptions, refer to relatedcontent in the embodiment in FIG. 2. Details are not described herein again.

[00314] The AMF obtains the context of the UE based on the uplink NAStransport message. Further, the AMF determines, based on the uplink NAS transportmessage and the context of the UE, whether to send the indication information #1.In a possible implementation, the AMF determines, based on an indicationindicating that the DNN and the S-NSSAI support interworking with an EPS andthe UE capability indication that are stored in the context of the UE, whether tosend the indication information #1. If the indication that the DNN and the S-NSSAIsupport the interworking with the EPS indicates that the UE supports interworkingwith the EPS, and the UE capability indication indicates that the UE supports userplane integrity protection with an eNB, the AMF determines to send the indicationinformation #1.

[00315] A process in which the AMF determines, based on the uplink NAStransport message and the context of the UE, whether to send the indicationinformation #1 is equivalent to that the access and mobility management functionnetwork element determines, according to a local policy #1, whether to send thefirst indication information in the embodiment in FIG. 2. That is, the local policy#1 of the access and mobility management function network element may include:whether the DNN and the S-NSSAI support the interworking with the EPS, andwhether the UE capability indication is obtained. Whether the DNN+S-NSSAIsupports the interworking with the EPS may also be understood as whether a PDUsession corresponding to the DNN+S-NSSAI supports the interworking with theEPS.

[00316] The indication of supporting the interworking with the EPS indicateswhether the UE supports the interworking with the EPS, and the indication ofsupporting the interworking with the EPS is stored in subscription information ofthe UE. When the UE registers with the network, the AMF obtains, from a UDM,the indication that is stored in the subscription information of the UE and that is ofsupporting the interworking with the EPS, and stores, in the context of the UE, theindication of supporting the interworking with the EPS.

[00317] S505: The AMF sends a PDU session SM context establishment request(Nsmf_PDUSession_CreateSMContext Request) message to the SMF+PGW-C.The PDU session SM context establishment request message includes asubscription permanent identifier (subscription permanent identifier, SUPI), a DNN,S-NSSAI, and the indication information #1 of the UE.

[00318] The AMF obtains the context of the UE based on the uplink NAStransport message. Further, the AMF selects the SMF+PGW-C based on the uplinkNAS transport message and the context of the UE. Optionally, the AMF selects theSMF+PGW-C based on the DNN and the S-NSSAI that are in the uplink NAStransport message and an indication that is stored in the context of the UE and thatindicates that the UE supports an evolved packet core (evolved packet core, EPC)NAS. Optionally, the AMF further selects the SMF+PGW-C based on the indicationthat is stored in the context of the UE and that indicates that the DNN and the SNSSAIsupport the interworking with the EPS. The indication indicating that theUE supports the EPC NAS indicates whether the UE supports an S1 mode (a modein which an access network device interacts with a core network device through anS1 interface). When the UE registers with the network, the UE reports, based on a5G mobility management capability (5G MM capability), the indication indicatingthat the UE supports the EPC NAS.

[00319] S506: The SMF+PGW-C sends a subscription data management request(Nudm_SubscriberDataManagement_Get) message to the UDM, to request thesubscription information of the UE. The obtained subscription data managementrequest message includes: an SUPI, a DNN, and S-NSSAI.

[00320] S507: The UDM sends a subscription data management response(Nudm_SubscriberDataManagement_Response) message to the SMF+PGW-C.

[00321] The subscription data management response message includes sessionmanagement subscription data of the UE. The session management subscriptiondata of the UE includes the DNN, the S-NSSAI, the user plane security policy ofthe UE in the 5G network, and the indication of supporting the interworking withthe EPS. The user plane security policy of the UE in the 5G network and theindication of supporting the interworking with the EPS are at a granularity of theDNN, the S-NSSAI, or the DNN+S-NSSAI. For example, the user plane securitypolicy of the UE in the 5G network and the indication of supporting theinterworking with the EPS are at the granularity of the DNN+S-NSSAI. The sessionmanagement subscription data of the UE may be represented as: {S-NSSAI 1, DNN1, user plane security policy 1, indication 1 of supporting interworking with theEPS}. {S-NSSAI 1, DNN 1, user plane security policy 1, indication 1 of supportinginterworking with the EPS} indicates that the user plane security policy 1 and theindication 1 of supporting the interworking with the EPS correspond to the SNSSAI1+DNN 1, in other words, the user plane security policy 1 and the indication1 of supporting the interworking with the EPS are at a granularity of the S-NSSAI1+DNN 1.

[00322] If the user plane security policy that is of the UE in the 5G network andthat is included in the session management subscription data of the UE is at thegranularity of the DNN+S-NSSAI, the SMF+PGW-C may map the user planesecurity policy of the UE in the 5G network at the granularity of the DNN+S-NSSAIto a user plane security policy at a granularity of the PDU session. One DNN+SNSSAImay correspond to one or more PDU sessions. For example, theSMF+PGW-C obtains a PDU session 1 through mapping from the DNN 1+SNSSAI1, and then determines, according to the user plane security policy 1corresponding to the DNN 1+S-NSSAI 1, a user plane security policy 1corresponding to the PDU session 1.

[00323] S508: The SMF+PGW-C sends the FQDN of the SMF+PGW-C on theS5 / S8 interface to the UDM.

[00324] Specifically, the SMF+PGW-C sends the FQDN of the SMF+PGW-Con the S5 / S8 interface to the UDM based on the indication information #1. For moredescriptions of how the SMF+PGW-C sends the FQDN of the SMF+PGW-C on theS5 / S8 interface based on the indication information #1, refer to the foregoingdescriptions in S240. For brevity, details are not described herein again.

[00325] Optionally, the SMF+PGW-C may add the FQDN of the SMF+PGW-Con the S5 / S8 interface to the subscription data management request message, andsend the FQDN to the UDM. In this case, S508 and S506 may be combined intoone step.

[00326] S509: The SMF+PGW-C maps a 5G context to an EPS bearer context.

[00327] That the SMF+PGW-C map a 5G context to an EPS bearer contextincludes mapping a 5G QoS parameter to an EPS QoS parameter, and furtherincludes mapping a 5G user plane security policy to an EPS user plane securitypolicy.

[00328] Optionally, the SMF+PGW-C maps the 5G user plane security policy tothe EPS user plane security policy based on the indication information #1. TheSMF+PGW-C stores the mapped EPS user plane security policy in the EPS contextof the UE. In other words, when receiving the indication information #1, theSMF+PGW-C maps the 5G context to the EPS bearer context.

[00329] Specifically, for descriptions of how the SMF+PGW-C maps a userplane security policy to an EPS user plane security policy, refer to the foregoingdescriptions in S310. For brevity, details are not described herein again.

[00330] S510: The SMF+PGW-C sends an N1N2 message transfer(Namf_Communication_N1N2MessageTransfer) message to the AMF.

[00331] The N1N2 message transfer message includes N1 SM information andN2 SM information. The AMF does not parse the N1 SM information, andtransparently transfers the N1 SM information to the UE. The N1 SM informationincludes a PDU session establishment accept (PDU Session Establishment Accept)message. The AMF does not parse the N2 SM information, and transparentlytransfers the N2 SM information to a gNB. The N2 SM information includes theuser plane security policy at the granularity of the PDU session.

[00332] S511: The AMF sends the N2 SM information to the gNB, and the gNBdetermines a user plane security activation status at a granularity of a DRBaccording to the user plane security policy at the granularity of the PDU session.

[00333] S512a: The gNB sends an RRC reconfiguration to the UE, where theRRC reconfiguration includes configuration information. The UE determines,based on the configuration information included in the RRC reconfiguration,whether to activate user plane security encryption protection / user plane integrityprotection between the UE and the gNB.

[00334] S512b: The AMF sends, to the UE, content of the N1 SM information,namely, the PDU session establishment accept message, to complete PDU sessionestablishment.

[00335] S513: The SMF+PGW-C determines, according to a local policy #3,whether to request the AMF to assign an EBI.

[00336] The local policy #3 includes, for example, that the current PDU sessionis used for a 3rd generation partnership project (3rd generation partnership project,3GPP) access and supports interworking with the EPS through an N26 interface.

[00337] Further, the SMF+PGW-C further performs further determining basedon the indication information #1 and an integrity protection policy in the user planesecurity policy of the UE in the 5G network. For example, if obtaining the indicationinformation #1, the SMF+PGW-C does not need to determine the user planesecurity policy of the UE in the 5G network. If the SMF+PGW-C does not obtainthe indication information #1 of the UE, the integrity protection policy in the userplane security policy of the UE in the 5G network is not required. In this case, theSMF+PGW -C needs to request the AMF to assign the EBI. If the integrityprotection policy in the user plane security policy of the UE in the 5G network isrequired, the SMF+PGW-C cannot request the AMF to assign the EBI.

[00338] For how to determine whether the SMF+PGW-C requests the AMF toassign the EBI to the PDU session, refer to the related descriptions in S220 in theembodiment in FIG. 2. Details are not described herein again.

[00339] S514: If the SMF+PGW-C determines to request the AMF to assign theEBI, the SMF+PGW-C sends an EBI assignment request message to the AMF. TheEBI assignment request message includes a PDU session ID.

[00340] S515: The AMF assigns an EBI to the PDU session.

[00341] S516: The AMF sends an EBI assignment response message to theSMF+PGW-C. The EBI assignment response message includes the assigned EBI.The SMF+PGW-C associates the EBI with the mapped EPS context.

[00342] It should be understood that in the method 500, sequence numbers of theforegoing processes do not mean execution sequences. The execution sequences ofthe processes should be determined based on functions and internal logic of theprocesses, and should not be construed as any limitation on the implementationprocesses of the method 500. For example, S508 may be performed between S505and S512 (S512a / S512b), or S508 may be performed after S516. To be specific,after the SMF+PGW-C successfully receives the EBI assignment response message,and it indicates that the SMF+PGW-C determines that the AMF successfullyassigns the EBI, the SMF+PGW-C performs S508. For another example, thecontent of the N1 SM information in S511b may be carried in the RRCreconfiguration message in S511a. Therefore, S511a and S511b may be performedsimultaneously. For another example, S509 may be performed between S505 andS516, or S509 may be performed after S516.

[00343] In this embodiment of this application, before the UE is handed overfrom the 5G network to the 4G network, the SMF+PGW-C maps the user planesecurity policy of the UE in the 5G network to the user plane security policy of theUE in the 4G network, so that in a process of subsequently handing over the UEfrom the 5G network to the 4G network, the AMF in the 5G network may directlyobtain the user plane security policy of the UE in the 4G network from theSMF+PGW-C, and there is no need to wait for the SMF+PGW-C to map the userplane security policy of the UE in the 5G network to the user plane security policyof the UE in the 4G network, thereby reducing a handover delay.

[00344] FIG. 6 is a schematic flowchart of a method according to an embodimentof this application. Specifically, FIG. 6 shows a process in which an SMF+PGW-Cmaps a user plane security policy of UE in a 5G network to a user plane securitypolicy of the UE in a 4G network before the UE is handed over from the 5G networkto the 4G network, and FIG. 6 further shows a procedure in which the SMF+PGWCrequests, based on UE capability indication, to assign an EBI and send an FQDNon an S5 / S8 interface. As shown in FIG. 6, the method 600 includes S601 to S613.The following describes steps in detail.

[00345] S601: The UE sends an uplink NAS transport message to an AMF.

[00346] The uplink NAS transport message includes SM container information,and the SM container information includes a PDU session establishment requestmessage. The uplink NAS transport message further includes a DNN and S-NSSAI.

[00347] The PDU session establishment request message includes a UEcapability indication. The UE capability indication is equivalent to the firstindication information in S211b and S212b in the embodiment in FIG. 2. For relateddescriptions, refer to related content in the embodiment in FIG. 2. Details are notdescribed herein again.

[00348] S602: The AMF sends a PDU session establishment SM context requestmessage to the SMF+PGW-C. The PDU session establishment SM context requestmessage includes an SUPI, a DNN, S-NSSAI, and the PDU session establishmentrequest message of the UE.

[00349] S603 to S613 are the same as S506 to S516 in the method 500. Forbrevity, details are not described herein again.

[00350] It should be understood that in the method 600, sequence numbers of theforegoing processes do not mean execution sequences. The execution sequences ofthe processes should be determined based on functions and internal logic of theprocesses, and should not be construed as any limitation on the implementationprocesses of the method 600. For example, S606 may be performed between S604and S609 (S609a / S609b), or S606 may be performed after S613. To be specific,after the SMF+PGW-C successfully receives an EBI assignment response message,and it indicates that the SMF+PGW-C determines that the AMF successfullyassigns the EBI, the SMF+PGW-C performs S606. For another example, thecontent of the N1 SM information in S609b may be carried in the RRCreconfiguration message in S609a. Therefore, S609a and S609b may be performedsimultaneously. For another example, S605 may be performed between S602 andS613, or S605 may be performed after S613.

[00351] In this embodiment of this application, before the UE is handed overfrom the 5G network to the 4G network, the SMF+PGW-C maps the user planesecurity policy of the UE in the 5G network to the user plane security policy of theUE in the 4G network, so that in a process of subsequently handing over the UEfrom the 5G network to the 4G network, the AMF in the 5G network may directlyobtain the user plane security policy of the UE in the 4G network from theSMF+PGW-C, and there is no need to wait for the SMF+PGW-C to map the userplane security policy of the UE in the 5G network to the user plane security policyof the UE in the 4G network, thereby reducing a handover delay.

[00352] FIG. 7(a) and FIG. 7(b) are a schematic flowchart of a method accordingto an embodiment of this application. Specifically, FIG. 7(a) shows a process inwhich an SMF+PGW-C requests, based on indication information #2, to assign anEBI and send an FQDN on an S5 / S8 interface before UE is handed over from a 5Gnetwork to a 4G network. FIG. 7(b) shows a process in which the SMF+PGW-Cmaps a user plane security policy of the UE in the 5G network to a user planesecurity policy of the UE in the 4G network in a process of handing over the UEfrom the 5G network to the 4G network. As shown in FIG. 7(a) and FIG. 7(b), themethod 700 includes S701 to S728. The following describes steps in detail.

[00353] S701 to S708 are the same as S501 to S508 in the method 500, and S709to S715 are the same as S510 to S516 in the method 500. For brevity, details are notdescribed herein again.

[00354] Optionally, in S705, the SMF+PGW-C stores indication information #1in a context of a terminal device.

[00355] S716 to S717 are the same as S401 to S402 in the method 400. Forbrevity, details are not described herein again.

[00356] S718: A source AMF determines whether to send the indicationinformation #1 / the indication information #2.

[00357] The indication information #1 is equivalent to the first indicationinformation in the embodiment in FIG. 2. For related descriptions, refer to relatedcontent in the embodiment in FIG. 2. Details are not described herein again.

[00358] The indication information #2 indicates to perform user plane securitypolicy mapping. Alternatively, the indication information #2 indicates that userplane integrity protection with an access network device in the 4G network issupported. Alternatively, the indication information #2 indicates that on-demanduser plane protection with an access network device in the 4G network is supported.Alternatively, the indication information #2 indicates that interworking of the userplane security policy between the 5G network and the 4G network is supported, inother words, indicates that mapping of the user plane security policy between the5G network and the 4G network is supported.

[00359] The source AMF obtains a context of the UE based on an uplink NAStransport message. Further, the source AMF determines, based on the uplink NAStransport message, the context of the UE, and whether a target MME supports userplane integrity protection, whether to send the indication information #1 / theindication information #2. The source AMF further stores capability information ofthe target MME, and the capability information of the target MME indicateswhether the target MME supports user plane integrity protection. If the target MMEsupports user plane integrity protection, the source AMF determines to send the UEindication capacity #1 / the indication information #2. The capability information ofthe target MME is locally configured by the AMF.

[00360] A process in which the AMF determines, based on the uplink NAStransport message and the context of the UE, whether to send the indicationinformation #1 is equivalent to that the access and mobility management functionnetwork element determines, according to a local policy #1, whether to send thefirst indication information in the embodiment in FIG. 2. That is, the local policy#1 of the access and mobility management function network element may furtherinclude whether the target MME supports user plane integrity protection. Thesource AMF determines, according to a local policy #4 (an example of a secondlocal policy), whether to send the indication information #2. The local policy #4may include: whether a DNN and S-NSSAI support interworking with an EPS,whether a UE capability indication is obtained, and whether the target MMEsupports user plane integrity protection. For a manner in which the source AMFdetermines whether the DNN and the S-NSSAI support interworking with an EPSand whether the target MME supports user plane integrity protection, refer to thedescriptions of the local policy #1 in the embodiment in FIG. 5 and the embodimentin FIG. 7(a) and FIG. 7(b).

[00361] S719: The source AMF sends a PDU session context request(Nsmf_PDUSession_Context Request) message to the SMF+PGW-C.

[00362] Before sending the PDU session context request message to theSMF+PGW-C, the source AMF determines, according to a local policy #2, whetherto obtain an EPS bearer context from the SMF+PGW-C. If the source AMFdetermines, according to the local policy #2, to obtain the EPS bearer context fromthe SMF+PGW-C, the source AMF sends the PDU session context request messageto the SMF+PGW-C. The PDU session context request message includes a PDUsession ID.

[00363] Optionally, the PDU session context request message further includesthe indication information #2.

[00364] The local policy #2 of the source AMF may include: The source AMFhas assigned an EBI to a PDU session to be handed over. Specifically, the sourceAMF obtains the context of the UE based on the identifier of the UE. Further, thesource AMF obtains, based on the context of the UE, a PDU session that needs tobe handed over, and determines whether the EBI has assigned to the PDU session.

[00365] It should be noted that, with reference to the embodiments in FIG. 2 andFIG. 7(a) and FIG. 7(b), between S703 and S711b (in other words, in a process ofPDU session establishment in the 5G network for the UE), when the SMF+PGWCdetermines that the PDU session supports a handover to the EPS, S713 to S715in the method 700 are performed to request the AMF to assign the EBI to the PDUsession. After assigning the EBI to the PDU session, the AMF may store theassigned EBI in the context of the UE.

[00366] S720: The SMF+PGW-C maps a 5G user plane security policy to anEPS user plane security policy.

[00367] Optionally, the SMF+PGW-C obtains context information of the UEbased on the PDU session context request message, and obtains the indicationinformation #1 from the context information of the UE. The SMF+PGW-C mapsthe 5G user plane security policy to the EPS user plane security policy based on theindication information #1.

[00368] Optionally, the SMF+PGW-C maps the 5G user plane security policy tothe EPS user plane security policy based on the indication information #2 obtainedfrom the PDU session context request message.

[00369] Specifically, for more descriptions of mapping, by the SMF+PGW-C, a5G user plane security policy to an EPS user plane security policy, refer to theforegoing descriptions in S310.

[00370] S721 to S729 are the same as S405 to S413 in the method 400. Forbrevity, details are not described herein again.

[00371] In this embodiment of this application, in the process in which the UEis handed over from the 5G network to the 4G network, the SMF+PGW-C maps theuser plane security policy of the UE in the 5G network to the user plane securitypolicy of the UE in the 4G network, to avoid unnecessary mapping. For example,before the UE is handed over from the 5G network to the 4G network, after theSMF+PGW-C maps the user plane security policy of the UE in the 5G network tothe user plane security policy of the UE in the 4G network, if the UE does not accessthe 4G network, the UE does not perform a handover procedure. In this case, if theSMF+PGW-C performs unnecessary mapping, computing resources and storageresources of the SMF+PGW-C are wasted.

[00372] The methods provided in embodiments of this application are describedabove in detail with reference to FIG. 2 to FIG. 7(a) and FIG. 7(b). Communicationapparatuses provided in embodiments of this application are described below indetail with reference to FIG. 8 and FIG. 9. It should be understood that descriptionsof apparatus embodiments correspond to the descriptions of the methodembodiments. Therefore, for content that is not described in detail, refer to theforegoing method embodiments. For brevity, details are not described herein again.

[00373] In embodiments of this application, a transmit end device or a receiveend device may be divided into functional modules based on the foregoing methodexamples. For example, each functional module may be obtained through divisioncorresponding to each function, or two or more functions may be integrated in oneprocessing module. The integrated module may be implemented in a form ofhardware, or may be implemented in a form of a software functional module. Itshould be noted that, in embodiments of this application, module division is anexample, and is merely a logical function division. During actual implementation,another division manner may be used. An example in which each functional moduleis obtained through division based on each corresponding function is used belowfor description.

[00374] FIG. 8 is a schematic block diagram of a communication apparatus 800according to an embodiment of this application. As shown in the figure, thecommunication apparatus 800 may include: a transceiver unit 810 and a processingunit 820.

[00375] In a possible design, the apparatus 800 may be the session managementnetwork element in the foregoing method embodiments, or may be a chipconfigured to implement a function of the session management network element inthe foregoing method embodiments.

[00376] It should be understood that the communication apparatus 800 maycorrespond to the session management network element in the method 200 to themethod 700 according to embodiments of this application. The communicationapparatus 800 may include units configured to perform the methods performed bythe session management network element in the method 200 in FIG. 2, the method300 in FIG. 3, the method 200 in FIG. 4, the method 500 in FIG. 5, the method 600in FIG. 6, and the method 700 in FIG. 7(a) and FIG. 7(b). In addition, the units inthe communication apparatus 800 and the foregoing other operations and / orfunctions are respectively intended to implement corresponding procedures of themethod 200 in FIG. 2, the method 300 in FIG. 3, the method 200 in FIG. 4, themethod 500 in FIG. 5, the method 600 in FIG. 6, and the method 700 in FIG. 7(a)and FIG. 7(b). It should be understood that a specific process in which the unitsperform the foregoing corresponding steps is described in detail in the foregoingmethod embodiments. For brevity, details are not described herein.

[00377] In another possible design, the communication apparatus 800 may bethe access and mobility management function network element in the foregoingmethod embodiments, or may be a chip configured to implement a function of theaccess and mobility management function network element in the foregoing methodembodiments.

[00378] It should be understood that the communication apparatus 800 maycorrespond to the access and mobility management function network element in themethod 200 to the method 700 according to embodiments of this application. Thecommunication apparatus 800 may include units configured to perform the methodsperformed by the access and mobility management function network element in themethod 200 in FIG. 2, the method 300 in FIG. 3, the method 200 in FIG. 4, themethod 500 in FIG. 5, the method 600 in FIG. 6, and the method 700 in FIG. 7(a)and FIG. 7(b). In addition, the units in the communication apparatus 800 and theforegoing other operations and / or functions are respectively intended to implementcorresponding procedures of the method 200 in FIG. 2, the method 300 in FIG. 3,the method 200 in FIG. 4, the method 500 in FIG. 5, the method 600 in FIG. 6, andthe method 700 in FIG. 7(a) and FIG. 7(b). It should be understood that a specificprocess in which the units perform the foregoing corresponding steps is describedin detail in the foregoing method embodiments. For brevity, details are notdescribed herein.

[00379] In a possible design, the apparatus 800 may be the terminal device in theforegoing method embodiments, or may be a chip configured to implement afunction of the terminal device in the foregoing method embodiments.

[00380] It should be understood that the communication apparatus 800 maycorrespond to the terminal device in the method 200 to the method 700 accordingto embodiments of this application. The communication apparatus 800 may includeunits configured to perform the methods performed by the terminal device in themethod 200 in FIG. 2, the method 300 in FIG. 3, the method 200 in FIG. 4, themethod 500 in FIG. 5, the method 600 in FIG. 6, and the method 700 in FIG. 7(a)and FIG. 7(b). In addition, the units in the communication apparatus 800 and theforegoing other operations and / or functions are respectively intended to implementcorresponding procedures of the method 200 in FIG. 2, the method 300 in FIG. 3,the method 200 in FIG. 4, the method 500 in FIG. 5, the method 600 in FIG. 6, andthe method 700 in FIG. 7(a) and FIG. 7(b). It should be understood that a specificprocess in which the units perform the foregoing corresponding steps is describedin detail in the foregoing method embodiments. For brevity, details are notdescribed herein.

[00381] It should be further understood that the transceiver unit 810 in thecommunication apparatus 800 may correspond to a transceiver 920 in acommunication device 900 shown in FIG. 9, and the processing unit 820 in thecommunication apparatus 800 may correspond to a processor 910 in thecommunication device 900 shown in FIG. 9.

[00382] It should be further understood that when the communication apparatus800 is a chip, the chip includes a transceiver unit and a processing unit. Thetransceiver unit may be an input / output circuit or a communication interface. Theprocessing unit may be a processor, a microprocessor, or an integrated circuitintegrated on the chip.

[00383] The transceiver unit 810 is configured to implement a signal receivingand sending operation of the communication apparatus 800, and the processing unit820 is configured to implement a signal processing operation of the communicationapparatus 800.

[00384] Optionally, the communication apparatus 800 further includes a storageunit 830, and the storage unit 830 is configured to store instructions.

[00385] FIG. 9 is a schematic block diagram of a communication device 900according to an embodiment of this application. As shown in the figure, thecommunication device 900 includes: at least one processor 910 and a transceiver920. The processor 910 is coupled to a memory, and is configured to executeinstructions stored in the memory, to control the transceiver 920 to send a signaland / or receive a signal. Optionally, the communication device 900 further includesa memory 930, configured to store instructions.

[00386] It should be understood that the processor 910 and the memory 930 maybe integrated into one processing apparatus, and the processor 910 is configured toexecute program code stored in the memory 930 to implement the foregoingfunctions. During specific implementation, the memory 930 may alternatively beintegrated into the processor 910, or may be independent of the processor 910.

[00387] It should be further understood that the transceiver 920 may include areceiver (or referred to as a receive machine) and a transmitter (or referred to as atransmit machine). The transceiver 920 may further include an antenna. There maybe one or more antennas. The transceiver 920 may be a communication interface oran interface circuit.

[00388] When the communication device 900 is a chip, the chip includes: atransceiver unit and a processing unit. The transceiver unit may be an input / outputcircuit or a communication interface. The processing unit may be a processor, amicroprocessor, or an integrated circuit integrated on the chip. An embodiment ofthis application further provides a processing apparatus, including a processor andan interface. The processor may be configured to perform the methods in theforegoing method embodiments.

[00389] It should be understood that the processing apparatus may be a chip. Forexample, the processing apparatus may be a field programmable gate array (fieldprogrammable gate array, FPGA), an application-specific integrated circuit(application-specific integrated circuit, ASIC), a system on chip (system on chip,SoC), a central processing unit (central processing unit, CPU), a network processor(network processor, NP), a digital signal processor (digital signal processor, DSP),a microcontroller unit (microcontroller unit, MCU), a programmable logic device(programmable logic device, PLD), or another integrated chip.

[00390] During implementation, steps in the foregoing methods can beimplemented by using a hardware integrated logical circuit in the processor, or byusing instructions in a form of software. The steps in the methods disclosed withreference to embodiments of this application may be directly performed andcompleted by using a hardware processor, or may be performed and completed byusing a combination of hardware and software modules in the processor. A softwaremodule may be located in a mature storage medium in the art, such as a randomaccess memory, a flash memory, a read-only memory, a programmable read-onlymemory, an electrically erasable programmable memory, or a register. The storagemedium is located in the memory, and the processor reads information in thememory and completes the steps in the foregoing methods in combination withhardware of the processor. To avoid repetition, details are not described herein again.

[00391] It should be noted that the processor in embodiments of this applicationmay be an integrated circuit chip, and has a signal processing capability. Duringimplementation, steps in the foregoing method embodiments can be implementedby using a hardware integrated logical circuit in the processor, or by usinginstructions in a form of software. The processor may be a general-purposeprocessor, a digital signal processor (DSP), an application-specific integratedcircuit (ASIC), a field programmable gate array (FPGA) or another programmablelogic device, a discrete gate or a transistor logic device, or a discrete hardwarecomponent. The processor may implement or perform the methods, steps, andlogical block diagrams that are disclosed in embodiments of this application. Thegeneral-purpose processor may be a microprocessor, or the processor may be anyconventional processor, or the like. The steps in the methods disclosed withreference to embodiments of this application may be directly performed andcompleted by using a hardware decoding processor, or may be performed andcompleted by using a combination of hardware and software modules in thedecoding processor. A software module may be located in a mature storage mediumin the art, such as a random access memory, a flash memory, a read-only memory,a programmable read-only memory, an electrically erasable programmable memory,or a register. The storage medium is located in the memory, and the processor readsinformation in the memory and completes the steps in the foregoing methods incombination with hardware of the processor.

[00392] It may be understood that the memory in embodiments of thisapplication may be a volatile memory or a nonvolatile memory, or may include botha volatile memory and a nonvolatile memory. The nonvolatile memory may be aread-only memory (read-only memory, ROM), a programmable read-only memory(programmable ROM, PROM), an erasable programmable read-only memory(erasable PROM, EPROM), an electrically erasable programmable read-onlymemory (electrically EPROM, EEPROM), or a flash memory. The volatile memorymay be a random access memory (random access memory, RAM), used as anexternal cache. By way of example, and not limitation, many forms of RAMs maybe used, for example, a static random access memory (static RAM, SRAM), adynamic random access memory (dynamic RAM, DRAM), a synchronous dynamicrandom access memory (synchronous DRAM, SDRAM), a double data ratesynchronous dynamic random access memory (double data rate SDRAM, DDRSDRAM), an enhanced synchronous dynamic random access memory (enhancedSDRAM, ESDRAM), a synchronous link dynamic random access memory(synchlink DRAM, SLDRAM), and a direct rambus dynamic random accessmemory (direct rambus RAM, DR RAM). It should be noted that the memory ofthe systems and methods described in this specification includes but is not limitedto these and any memory of another proper type.

[00393] According to the methods provided in embodiments of this application,this application further provides a computer program product. The computerprogram product includes computer program code. When the computer programcode is run on a computer, the computer is enabled to perform the method in anyone of the embodiments shown in FIG. 2 to FIG. 7(a) and FIG. 7(b).

[00394] According to the methods provided in embodiments of this application,this application further provides a computer-readable medium. The computerreadablemedium stores program code. When the program code is run on a computer,the computer is enabled to perform the method in any one of the embodimentsshown in FIG. 2 to FIG. 7(a) and FIG. 7(b).

[00395] According to the methods provided in embodiments of this application,this application further provides a system, including the session managementnetwork element, the terminal device, and the access and mobility managementfunction network element described above.

[00396] All or some of the foregoing embodiments may be implemented bysoftware, hardware, firmware, or any combination thereof. When software is usedto implement the embodiments, all or some of the embodiments may beimplemented in a form of a computer program product. The computer programproduct includes one or more computer instructions. When the computerinstructions are loaded and executed on a computer, the procedure or functionsaccording to embodiments of this application are all or partially generated. Thecomputer may be a general-purpose computer, a dedicated computer, a computernetwork, or other programmable apparatuses. The computer instructions may bestored in a computer-readable storage medium or may be transmitted from acomputer-readable storage medium to another computer-readable storage medium.For example, the computer instructions may be transmitted from a website,computer, server, or data center to another website, computer, server, or data centerin a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line(digital subscriber line, DSL)) or wireless (for example, infrared, radio, ormicrowave) manner. The computer-readable storage medium may be any usablemedium accessible by the computer, or a data storage device, for example, a serveror a data center, integrating one or more usable media. The usable medium may bea magnetic medium (for example, a floppy disk, a hard disk drive, or a magnetictape), an optical medium (for example, a digital video disc (digital video disc,DVD)), a semiconductor medium (for example, a solid-state disc (solid-state disc,SSD)), or the like.

[00397] The network side device and the terminal device in the foregoingapparatus embodiments correspond to the network side device or the terminaldevice in the method embodiments. A corresponding module or unit performs acorresponding step. For example, a communication unit (a transceiver) performs areceiving or sending step in the method embodiments, and a step other than thesending or receiving step may be performed by a processing unit (a processor). Fora function of a specific unit, refer to a corresponding method embodiment. Theremay be one or more processors.

[00398] Terms such as "component", "module", and "system" used in thisspecification are used to indicate computer-related entities, hardware, firmware,combinations of hardware and software, software, or software being executed. Forexample, a component may be, but is not limited to, a process that runs on aprocessor, a processor, an object, an executable file, an execution thread, a program,and / or a computer. As illustrated by using figures, both a computing device and anapplication that runs on the computing device may be components. One or morecomponents may reside within a process and / or a thread of execution, and acomponent may be located on one computer and / or distributed between two or morecomputers. In addition, these components may be executed from various computerreadablemedia that store various data structures. For example, the components mayperform communication by using a local and / or remote process and based on, forexample, a signal having one or more data packets (for example, data from twocomponents interacting with another component in a local system, a distributedsystem, and / or across a network such as the internet interacting with other systemsby using the signal).

[00399] A person of ordinary skill in the art may be aware that units andalgorithm steps in the examples described with reference to embodiments disclosedin this specification may be implemented by electronic hardware or a combinationof computer software and electronic hardware. Whether the functions are performedby hardware or software depends on particular applications and design constraintconditions of the technical solutions. A person skilled in the art may use differentmethods to implement the described functions for each particular application, but itshould not be considered that the implementation goes beyond the scope of thisapplication.

[00400] It may be clearly understood by a person skilled in the art that, for thepurpose of convenient and brief description, for detailed working processes of theforegoing system, apparatus, and unit, refer to corresponding processes in theforegoing method embodiments. Details are not described herein again.

[00401] In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may be implementedin other manners. For example, the described apparatus embodiment is merely anexample. For example, unit division is merely logical function division. Duringactual implementation, another division manner may be used. For example, aplurality of units or components may be combined or integrated into another system,or some features may be ignored or not performed. In addition, the displayed ordiscussed mutual couplings or direct couplings or communication connections maybe implemented through some interfaces. The indirect couplings or communicationconnections between the apparatuses or units may be implemented in electronic,mechanical, or other forms.

[00402] The units described as separate components may or may not bephysically separate, and components displayed as units may or may not be physicalunits, may be located in one position, or may be distributed on a plurality of networkunits. Some or all of the units may be selected based on an actual requirement toachieve the objectives of the solutions of embodiments.

[00403] In addition, functional units in embodiments of this application may beintegrated into one processing unit, each of the units may exist independentlyphysically, or two or more units may be integrated into one unit.

[00404] When the functions are implemented in a form of a software functionalunit and sold or used as an independent product, the functions may be stored in acomputer-readable storage medium. Based on such an understanding, the technicalsolutions of this application essentially, or the part contributing to the currenttechnology, or some of the technical solutions may be implemented in a form of asoftware product. The computer software product is stored in a storage medium,and includes several instructions for instructing a computer device (which may bea personal computer, a server, or a network device) to perform all or some of thesteps in the methods described in embodiments of this application. The foregoingstorage medium includes any medium that can store program code, such as a USBflash drive, a removable hard disk, a read-only memory (Read-Only Memory,ROM), a random access memory (Random Access Memory, RAM), a magneticdisk, or an optical disc.

[00405] The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of this application.Any variation or replacement readily figured out by a person skilled in the art withinthe technical scope disclosed in this application shall fall within the protectionscope of this application. Therefore, the protection scope of this application shallbe subject to the protection scope of the claims.

Claims

1. A communication method, comprising: obtaining, by a session management network element, first indication information in a process of session establishment in a first network for a terminal device, wherein the first indication information indicates that user plane integrity protection in a second network is supported; sending, by the session management network element, a first request message to an access and mobility management function network element in the first network based on the first indication information, wherein the first request message is used to request to assign a bearer identifier to the session, and the bearer identifier corresponds to a bearer context of the terminal device in the second network; and receiving, by the session management network element, a first response message from the access and mobility management function network element, wherein the first response message comprises the bearer identifier.

2. The method according to claim 1, wherein the method further comprises: mapping, by the session management network element, a user plane security policy of the terminal device in the first network to a user plane security policy of the terminal device in the second network; and storing, by the session management network element, the user plane security policy in the second network in the bearer context.

3. The method according to claim 2, wherein the method further comprises: obtaining, by the session management network element, third indication information, wherein the third indication information indicates to perform user plane security policy mapping; and the mapping, by the session management network element, a user plane security policy of the terminal device in the first network to a user plane security policy of the terminal device in the second network comprises: mapping, by the session management network element, the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network based on the third indication information.

4. The method according to claim 2 or 3, wherein the method further comprises: sending, by the session management network element, the bearer context to a target mobility management entity in the second network via the access and mobility management function network element, wherein the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

5. The method according to any one of claims 1 to 4, wherein the sending, by the session management network element, a first request message to an access and mobility management function network element in the first network based on the first indication information comprises: sending, by the session management network element, the first request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

6. The method according to any one of claims 1 to 5, wherein the method further comprises: sending, by the session management network element, a fully qualified domain name of the session management network element on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

7. The method according to claim 5 or 6, wherein the user plane security policy of the terminal device in the first network comprises activating user plane integrity protection.

8. The method according to any one of claims 1 to 7, wherein the obtaining, by a session management network element, first indication information comprises: receiving, by the session management network element, the first indication information from the access and mobility management function network element.

9. The method according to claim 8, wherein the first indication information is comprised in a protocol data unit session session management context establishment request message.

10. The method according to any one of claims 1 to 9, wherein the obtaining, by a session management network element, first indication information comprises: receiving, by the session management network element, the first indication information from the terminal device via the access and mobility management function network element.

11. The method according to any one of claims 1 to 10, wherein the first network is a 5th generation communication system network, the second network is an evolved packet system network, and the bearer context is an evolved packet system bearer context.

12. A communication method, comprising: receiving, by an access and mobility management function network element in a first network, a registration request message from a terminal device, wherein the registration request message comprises second indication information, and the second indication information indicates that the terminal device supports user plane integrity protection in a second network; in a process of session establishment in the first network for the terminal device, sending, by the access and mobility management function network element, first indication information to a session management network element based on the second indication information, wherein the first indication information indicates that support user plane integrity protection in the second network is supported; receiving, by the access and mobility management function network element, a first request message, wherein the first request message is used to request to assign a bearer identifier to the session, and the bearer identifier corresponds to a bearer context of the terminal device in the second network; and sending, by the access and mobility management function network element, a first response message to the session management network element, wherein the first response message comprises the bearer identifier.

13. The method according to claim 12, wherein the method further comprises: sending, by the access and mobility management function network element, a second request message to the session management function network element; receiving, by the access and mobility management function network element, a second response message from the session management network element, wherein the second response message comprises the bearer context, the bearer context comprises a user plane security policy of the terminal device in the second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network; and sending, by the access and mobility management function network element, the bearer context to a target mobility management entity in the second network, wherein the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

14. The method according to claim 13, wherein the second request message comprises third indication information, and the third indication information indicates to perform user plane security policy mapping; and the method further comprises: determining, by the access and mobility management function network element according to a second local policy, to add the third indication information to the second request message, wherein the second local policy comprises one or more of the following: whether the session supports interworking with the second network, and whether the target mobility management entity supports user plane integrity protection, wherein the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

15. The method according to claim 13 or 14, wherein a granularity of the user plane security policy in the first network is a granularity of a protocol data unit session; and a granularity of the user plane security policy in the second network is a granularity of an evolved packet system bearer.

16. The method according to any one of claims 12 to 15, wherein the method further comprises: determining, by the access and mobility management function network element according to a first local policy, to send the first indication information to the session management network element, wherein the first local policy comprises: whether the session supports interworking with the second network.

17. The method according to any one of claims 12 to 16, wherein the first network is a 5th generation communication system network, the second network is an evolved packet system network, and the bearer context is an evolved packet system bearer context.

18. A communication method, comprising: sending, by a terminal device, second indication information to an access and mobility management function network element in a first network, wherein the second indication information indicates that the terminal device supports user plane integrity protection in a second network; and receiving, by the terminal device, radio resource control reconfiguration sent by an access network device in the second network, wherein the radio resource control reconfiguration comprises indication information for activating user plane integrity protection.

19. The method according to claim 18, wherein the second indication information is comprised in a registration request message.

20. The method according to claim 18, wherein the second indication information is comprised in a protocol data unit session establishment request message.

21. A communication apparatus, comprising a transceiver unit, wherein the transceiver unit is configured to obtain first indication information in a process of session establishment in a first network for a terminal device, wherein the first indication information indicates that user plane integrity protection in a second network is supported; the transceiver unit is further configured to send a first request message to an access and mobility management function network element in the first network based on the first indication information, wherein the first request message is used to request to assign a bearer identifier to the session, and the bearer identifier corresponds to a bearer context of the terminal device in the second network; and the transceiver unit is further configured to receive a first response message from the access and mobility management function network element, wherein the first response message comprises the bearer identifier.

22. The communication apparatus according to claim 21, wherein the communication apparatus further comprises a processing unit, wherein the processing unit is configured to map a user plane security policy of the terminal device in the first network to a user plane security policy of the terminal device in the second network; and the processing unit is further configured to store the user plane security policy in the second network in the bearer context.

23. The communication apparatus according to claim 22, wherein the transceiver unit is further configured to obtain third indication information, wherein the third indication information indicates to perform user plane security policy mapping; and the processing unit is specifically configured to map the user plane security policy of the terminal device in the first network to the user plane security policy of the terminal device in the second network based on the third indication information.

24. The communication apparatus according to claim 22 or 23, wherein the transceiver unit is further configured to send the bearer context to a target mobility management entity in the second network via the access and mobility management function network element, wherein the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

25. The communication apparatus according to any one of claims 21 to 24, wherein the transceiver unit is specifically configured to send the second request message to the access and mobility management function network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

26. The communication apparatus according to any one of claims 21 to 25, wherein the transceiver unit is further configured to send a fully qualified domain name of the communication apparatus on an S5 / S8 interface to a unified data management network element based on the first indication information without considering the user plane security policy of the terminal device in the first network.

27. The communication apparatus according to claim 25 or 26, wherein the user plane security policy of the terminal device in the first network comprises activating user plane integrity protection.

28. The communication apparatus according to any one of claims 21 to 27, wherein the transceiver unit is specifically configured to receive the first indication information from the access and mobility management function network element.

29. The communication apparatus according to any one of claims 21 to 28, wherein the transceiver unit is specifically configured to receive the first indication information from the terminal device via the access and mobility management function network element.

30. The communication apparatus according to claim 29, wherein the first indication information is comprised in a protocol data unit session establishment request message.

31. The communication apparatus according to any one of claims 21 to 30, wherein the first network is a 5th generation communication system network, the second network is an evolved packet system network, and the bearer context is an evolved packet system bearer context.

32. A communication apparatus, comprising a transceiver unit, wherein the transceiver unit is configured to receive a registration request message from a terminal device in a first network, wherein the registration request message comprises second indication information, and the second indication information indicates that the terminal device supports user plane integrity protection in a second network; the transceiver unit is further configured to: in a process of session establishment in the first network for the terminal device, send first indication information to a session management network element based on the second indication information, wherein the first indication information indicates that support user plane integrity protection in the second network is supported; the transceiver unit is further configured to receive a first request message, wherein the first request message is used to request to assign a bearer identifier to the session, and the bearer identifier corresponds to a bearer context of the terminal device in the second network; and the transceiver unit is further configured to send a first response message to the session management network element, wherein the first response message comprises the bearer identifier.

33. The communication apparatus according to claim 32, wherein the transceiver unit is further configured to send a second request message to the session management function network element; the transceiver unit is further configured to receive a second response message from the session management network element, wherein the second response message comprises the bearer context, the bearer context comprises a user plane security policy of the terminal device in the second network, and the user plane security policy in the second network is obtained according to a user plane security policy of the terminal device in the first network; and the transceiver unit is further configured to send the bearer context to a target mobility management entity in the second network, wherein the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

34. The communication apparatus according to claim 33, wherein the second request message comprises third indication information, and the third indication information indicates to perform user plane security policy mapping; and the communication apparatus further comprises a processing unit, wherein the processing unit is configured to determine, according to a second local policy, to add the third indication information to the second request message, wherein the second local policy comprises one or more of the following: whether the session supports interworking with the second network, and whether the target mobility management entity supports user plane integrity protection, wherein the target mobility management entity is a network element that serves the terminal device when the session is handed over to the second network.

35. The communication apparatus according to claim 33 or 34, wherein a granularity of the user plane security policy in the first network is a granularity of a protocol data unit session; and a granularity of the user plane security policy in the second network is a granularity of an evolved packet system bearer.

36. The communication apparatus according to any one of claims 32 to 35, wherein the communication apparatus further comprises a processing unit, wherein the processing unit is configured to determine, according to a local policy, to send the first indication information to the session management network element, wherein the local policy comprises: whether the session supports interworking with the second network.

37. The communication apparatus according to any one of claims 32 to 36, wherein the first network is a 5th generation communication system network, the second network is an evolved packet system network, and the bearer context is an evolved packet system bearer context.

38. A communication apparatus, comprising a transceiver unit, wherein the transceiver unit is configured to send second indication information to an access and mobility management function network element in a first network, wherein the second indication information indicates that the communication apparatus supports user plane integrity protection in a second network; and the transceiver unit is further configured to receive radio resource control reconfiguration sent by an access network device in the second network, wherein the radio resource control reconfiguration comprises indication information for activating user plane integrity protection.

39. The communication apparatus according to claim 38, wherein the second indication information is comprised in a registration request message.

40. The communication apparatus according to claim 38, wherein the second indication information is comprised in a protocol data unit session establishment request message.

41. A communication device, comprising: a memory, wherein the memory is configured to store a computer program; a transceiver, wherein the transceiver is configured to perform sending and receiving steps; and a processor, wherein the processor is configured to invoke the computer program from the memory and run the computer program, to enable the communication device to perform the method according to any one of claims 1 to 20.

42. A computer-readable storage medium, wherein the computer-readable medium stores a computer program; and when the computer program is run on a computer, the computer is enabled to perform the method according to any one of claims 1 to 20.